Give up on using gnutls-cli for starttls.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
321401d1
DN
12010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2
088dcc3e
DN
3 * nsselect.m (syms_of_nsselect):
4 * nsmenu.m (syms_of_nsmenu):
5 * nsfns.m (syms_of_nsfns):
6 * msdos.c (syms_of_msdos):
7 * image.c (syms_of_image):
8 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
9
321401d1
DN
10 * point.h: Remove, unused.
11
73077a9a
EZ
122010-10-01 Eli Zaretskii <eliz@gnu.org>
13
14 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
15 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
16 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
17
55e572ef
DN
182010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
19
20 * xml.c (parse_string): Use const.
21
d4b6d95d
LMI
222010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
23
24 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
25 only override Vprint_level if it isn't already bound, and increase
26 the level to 8 to produce more useful backtraces for bug reports.
27
e4b6db12
DN
282010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
29
30 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
31
1becef93
JB
322010-09-30 Juanma Barranquero <lekktu@gmail.com>
33
34 * w32console.c (vga_stdcolor_name): Remove unused function;
35 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
36
df7fcaff
LMI
372010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
38
bac5cef8
LMI
39 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
40 (Fgnutls_boot): Start the handshake.
41 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
42 (Fgnutls_boot): Remove some debugging messages.
43 Change indentation throughout to use the Emacs style.
44 (emacs_gnutls_handshake): Cast the fds to something that's
45 possibly the expected length.
46 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 47
df7fcaff
LMI
48 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
49
50 * process.c (make_process): Set the gnutls_p field to zero by
51 default.
52 (read_process_output): Always call the gnutls_read function if the
53 stream is a gnutls stream.
54 (send_process): Ditto for writes.
55
56 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
57 or write anything until the state is GNUTLS_STAGE_READY.
58 (Fgnutls_boot): Mark the stream as being a gnutls stream.
59
d585695f
EZ
602010-09-29 Eli Zaretskii <eliz@gnu.org>
61
af7ef32d
EZ
62 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
63 NEUTRAL_DIR.
64 (handle_invisible_prop, iterate_out_of_display_property)
65 (next_element_from_buffer): If bidi_it.first_elt is set, call
66 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
67 (Bug#7128)
68
d585695f
EZ
69 * print.c (print_object): Fix format string and argument types for
70 printing a Lisp_Misc_Marker.
71
72 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
73 (load_overlay_strings, get_overlay_strings_1)
74 (get_overlay_strings, forward_to_next_line_start)
75 (back_to_previous_visible_line_start, reseat, reseat_to_string)
76 (get_next_display_element, next_element_from_string)
77 (next_element_from_c_string, next_element_from_buffer)
78 (move_it_vertically_backward, move_it_by_lines, add_to_log)
79 (message_dolog, message_log_check_duplicate, message2_nolog)
80 (message3, message3_nolog, vmessage, set_message, set_message_1)
81 (hscroll_window_tree, text_outside_line_unchanged_p)
82 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
83 (find_last_unchanged_at_beg_row)
84 (find_first_unchanged_at_end_row, row_containing_pos)
85 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
86 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
87 EMACS_INT for buffer and string positions.
88
89 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
90 (row_containing_pos): Adjust prototype.
91
92 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
93 (message2_nolog, set_message): Adjust prototypes.
94
a6f3211f
SM
952010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
96
97 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
98 (Fgnutls_boot): Use SDATA.
99 (Fgnutls_handshake): Remove unused var `max_log_level'.
100
e0720500
MA
1012010-09-27 Michael Albinus <michael.albinus@gmx.de>
102
11a5af7c 103 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
104 (Bug#7113)
105
d8a4b27a
J
1062010-09-27 Jan Djärv <jan.h.d@swipnet.se>
107
42d3022b
J
108 * xgselect.c (xg_select): Clear file descriptors not set from
109 rfds and wfds.
110
d8a4b27a
J
111 * process.c (wait_reading_process_output): Add missing FD_CLR
112 for write_mask (must mirror connect_wait_mask).
113
8ed70bf3
LMI
1142010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
115
116 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
117 prefix.
118 (Fgnutls_boot): Use changed process members. Use log level with a
119 function parameter to set it. Bring back Emacs-level debugging
120 messages at log level 1 and 2.
121
122 * process.c (make_process): Initialize gnutls_log_level.
123
124 * process.h: Add gnutls_log_level and rename x509_cred and
125 anon_cred to have the gnutls_ prefix for consistency.
126
127 * gnutls.h (GNUTLS_LOG): Add convenience macro.
128
bedf4aab
JB
1292010-09-27 Juanma Barranquero <lekktu@gmail.com>
130
131 * w32.c (g_b_init_get_sid_identifier_authority)
132 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
133 Remove, not used.
134 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
135 (init_winsock): Remove useless assignment.
136 (open_process_token, get_token_information, lookup_account_sid)
137 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
138 (get_security_descriptor_owner, get_security_descriptor_group)
139 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
140 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
141 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
142 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
143 (unc_volume_file_attributes, convert_from_time_t)
144 (create_toolhelp32_snapshot, process32_first, process32_next)
145 (open_thread_token, impersonate_self, revert_to_self)
146 (get_process_memory_info, get_process_working_set_size)
147 (global_memory_status, global_memory_status_ex, socket_to_fd)
148 (shutdown_handler): Make static.
149
08609ffd
MA
1502010-09-27 Michael Albinus <michael.albinus@gmx.de>
151
152 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
153 (xd_pending_messages): Functions removed.
154 (xd_read_queued_messages): Add parameters fd, *data, for_read in
155 order to be compatible with add_read_fd. Determine bus from data,
156 and call xd_read_message just for this bus.
157 (xd_add_watch): Use xd_read_queued_messages as callback function.
158 Add data.
159
160 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
161
d2e9d0bb
LMI
1622010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
163
164 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 165 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 166
4be9765d
KH
1672010-09-27 Kenichi Handa <handa@m17n.org>
168
169 These changes are to remove restriction on the number of glyphs in
170 one composition.
171
172 * dispextern.h (struct glyph): Change the member "slice" to union.
173 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
174 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
175
176 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
177 instead of glyph->slice.
178 (marginal_area_string): Likewise.
179
180 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
181 glyph->u.cmp.
182 (append_composite_glyph): Likewise.
183
184 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
185 glyph->u.cmp.
186 (fill_gstring_glyph_string, x_get_glyph_overhangs)
187 (append_composite_glyph): Likewise.
188 (fill_image_glyph_string): Use glyph->slice.img instead of
189 glyph->slice.
190 (append_glyph, produce_image_glyph, append_stretch_glyph)
191 (note_mouse_highlight): Likewise.
192
3fad2ad2
J
1932010-09-26 Jan Djärv <jan.h.d@swipnet.se>
194
bf05eed6
J
195 * process.c (add_keyboard_wait_descriptor)
196 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
197 (wait_reading_process_output): Don't pass write_mask to select
198 if SELECT_CANT_DO_WRITE_MASK is defined.
199 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 200
3fad2ad2
J
201 * process.h (add_read_fd, delete_read_fd, add_write_fd)
202 (delete_write_fd): Declare.
203
204 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
205 (write_mask): New variable.
206 (max_input_desc): Renamed from max_keyboard_desc.
207 (fd_callback_info): New variable.
70e31436
JB
208 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
209 New functions.
3fad2ad2
J
210 (Fmake_network_process): FD_SET write_mask.
211 (deactivate_process): FD_CLR write_mask.
212 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
213 check_connect removed. check_write is new. Remove references to gpm.
214 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
215 NON_BLOCKING_CONNECT) instead of Connecting.
216 Loop over file descriptors and call callbacks in fd_callback_info
217 if file descriptor is ready for I/O.
218 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
219 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
220 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
221 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
222 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
223 (init_process): Initialize write_mask and fd_callback_info.
224
225 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
226
227 * dbusbind.c: Include process.h.
228 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
229 (xd_read_message_1): New functions.
70e31436
JB
230 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
231 Handle watch for both read and write.
3fad2ad2
J
232 (Fdbus_init_bus): Also register xd_toggle_watch.
233 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
234 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
235 to dbus_connection_flush.
70e31436 236 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
237 Call xd_read_message_1 until status is COMPLETE.
238
dce4c2ac
DN
2392010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
240
241 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
242 (init_tty): Reorder code to reduce the number of #ifdefs.
243 No code changes.
dce4c2ac 244
8af55556
TZ
2452010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
246
247 * process.h: Set up GnuTLS support.
248
249 * process.c (make_process, Fstart_process)
250 (read_process_output, send_process): Set up GnuTLS support for
251 process input/output file descriptors.
252
253 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
254
255 * gnutls.c: The source code for GnuTLS support in Emacs.
256
257 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
258
259 * config.in: Set up GnuTLS support.
260
261 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
262 (obj, LIBES): Set up GnuTLS support.
263
83e245c4
JB
2642010-09-26 Juanma Barranquero <lekktu@gmail.com>
265
266 * w32.c (get_emacs_configuration_options): Fix previous change.
267
d24ec09a
CY
2682010-09-25 Chong Yidong <cyd@stupidchicken.com>
269
270 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
271 alive before using it (Bug#6977).
272
b7bdc47c
LMI
2732010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
274
a952d5f3
LMI
275 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
276
277 * dispextern.h: EMACS_INT/int fixup.
278
279 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
280 fixup.
281
b7bdc47c
LMI
282 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
283
41118bd3
EZ
2842010-09-25 Eli Zaretskii <eliz@gnu.org>
285
2452438f
EZ
286 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
287 (Fselect_window, window_scroll_pixel_based)
288 (window_scroll_line_based, Frecenter, Fset_window_configuration):
289 Use EMACS_INT for buffer positions.
290
291 * textprop.c (validate_interval_range, interval_of)
292 (property_change_between_p, Fadd_text_properties)
293 (set_text_properties_1, Fremove_text_properties)
294 (Fremove_list_of_text_properties, Ftext_property_any)
295 (Ftext_property_not_all, copy_text_properties)
296 (text_property_list, extend_property_ranges)
297 (verify_interval_modification): Use EMACS_INT for buffer
298 positions.
299
f877c546
EZ
300 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
301 for buffer positions.
302
303 * process.c (read_process_output, send_process)
304 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
305 and string positions and size.
306
da43f021
EZ
307 * print.c (print_object, print_string, strout): Use EMACS_INT for
308 string indices.
309
310 * minibuf.c (string_to_object): Use EMACS_INT for string position
311 and size.
312
313 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
314
315 * lread.c <read_from_string_index, read_from_string_index_byte>
316 <read_from_string_limit, readchar_count>: Define EMACS_INT.
317 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
318 buffer positions and string length.
319
41118bd3
EZ
320 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
321 EMACS_INT.
322 (echo_truncate, adjust_point_for_property, read_char)
323 (gen_help_event, make_lispy_event, modify_event_symbol)
324 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
325 for buffer positions and string length.
326
327 * keyboard.h (gen_help_event): Adjust prototype.
328
329 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
330
331 * commands.h <last_point_position>: Declare EMACS_INT.
332
333 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
334 (truncate_echo_area): Accept EMACS_INT argument.
335
336 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
337
338 * lisp.h (truncate_echo_area): Adjust prototype.
339
340 * composite.c (composition_adjust_point): Return EMACS_INT.
341
342 * composite.h (composition_adjust_point): Adjust prototype.
343
ba3033ee
JB
3442010-09-25 Juanma Barranquero <lekktu@gmail.com>
345
346 * process.c (Fmake_network_process): When arg :host is 'local,
347 use address 127.0.0.1, not name "localhost". (Bug#6781)
348
4f3a2f8d
EZ
3492010-09-24 Eli Zaretskii <eliz@gnu.org>
350
5816888b
EZ
351 * indent.c (Fcurrent_indentation, indented_beyond_p)
352 (compute_motion): Use EMACS_INT for buffer position variables.
353
354 * lisp.h (indented_beyond_p): Adjust prototype.
355
356 * buffer.c (overlay_strings): Return EMACS_INT.
357
358 * buffer.h (overlay_strings): Adjust prototype.
359
360 * region-cache.c (pp_cache): Adjust format to arguments.
361
362 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
363 (call_debugger): Use EMACS_INT for specpdl_size related variables.
364 (verror): Use EMACS_INT for size of allocated buffer.
365
ace1712c
EZ
366 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
367 positions.
368
369 * xdisp.c (redisplay_internal, try_window_id)
370 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
371 EMACS_INT for buffer positions.
372
f5276b75 373 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
374
375 * dispnew.c (increment_matrix_positions)
376 (increment_row_positions, copy_glyph_row_contents)
377 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
378 positions.
379
380 * dispextern.h (mode_line_string, marginal_area_string)
381 (increment_matrix_positions, increment_row_positions): Adjust
382 prototypes.
383
384 * data.c (Faref, Faset): Use EMACS_INT for string length and
385 positions.
386
387 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
388 characters to insert.
389
390 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
391 position and size.
392
4f3a2f8d
EZ
393 * syntax.c (scan_words, update_syntax_table)
394 (prev_char_comend_first, back_comment, skip_chars)
395 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
396 EMACS_INT for buffer and string positions.
397
398 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
399
400 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
401 positions.
402
db063399
LMI
4032010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
404
f0812d35
LMI
405 * scroll.c (calculate_scrolling, line_ins_del)
406 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
407 conversion.
408
f5c7fc27
LMI
409 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
410 (region_cache_backward, region_cache_forward)
411 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
412 conversion.
413
db063399
LMI
414 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
415
416 * eval.c (verror): Fix EMACS_INT/int conversion.
417
07914cd0 418 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
419 (print_preprocess, print_check_string_charset_prop)
420 (print_object): Fix EMACS_INT/int conversion.
421
422 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
423
e6d4aefa
EZ
4242010-09-24 Eli Zaretskii <eliz@gnu.org>
425
69481da7
EZ
426 * callproc.c (Fcall_process): Use EMACS_INT for count of
427 characters read from the subprocess.
428
61bfec98
EZ
429 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
430 positions.
431 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
432 positions.
433
145582a0
EZ
434 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
435 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
436 length.
437 (advance_to_char_boundary, Fset_buffer_multibyte)
438 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
439 (overlay_touches_p, record_overlay_string, overlay_strings)
440 (recenter_overlay_lists, fix_start_end_in_overlays)
441 (modify_overlay, Fmove_overlay, report_overlay_modification)
442 (evaporate_overlays): Use EMACS_INT for buffer positions.
443
444 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
445 prototypes.
446
446470a9
EZ
447 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
448 positions.
449
e6d4aefa
EZ
450 * fns.c (Fcompare_strings, Fstring_lessp, concat)
451 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
452 (Fsubstring_no_properties, substring_both, Ffillarray)
453 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
454 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
455 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
456 (Fmd5): Use EMACS_INT for buffer and string positions and length
457 variables and arguments.
458
459 * lisp.h (substring_both): Adjust prototype.
460
eb652396
JB
4612010-09-24 Juanma Barranquero <lekktu@gmail.com>
462
463 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
464 * w32fns.c (clipboard_sequence_fn): Don't declare.
465 (globals_of_w32fns): Don't initialize it.
466
266a86bd 4672010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
468
469 * syntax.c (back_comment): Detect the case where a 1-char comment
470 starter is also the 2nd char of a 2-char comment ender.
471
266a86bd 4722010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
473
474 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
475
40283062
LMI
4762010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
477
db063399
LMI
478 * eval.c (verror): EMACS_INT/int cleanup.
479
faf8b5bc
LMI
480 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
481 unwind_protect more than 2GB worth of functions.
482
483 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
484
40283062
LMI
485 * lisp.h: Have oblookup take EMACS_INT to allow interning big
486 string and avoid compiler warnings.
487 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
488 all users.
489
490 * lread.c (oblookup): EMACS_INT/int cleanup.
491
492 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
493
fe3537c3
EZ
4942010-09-23 Eli Zaretskii <eliz@gnu.org>
495
496 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
497
498 * lisp.h (clip_to_bounds): Adjust prototype.
499
500 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
501
0350982f
LMI
5022010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
503
84c9ce05
LMI
504 * lisp.h: doprnt.c EMACS_INT/int cleanup.
505
506 * doprnt.c (doprnt): EMACS_INT/int cleanup.
507
508 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
509 cleanup.
510
0350982f
LMI
511 * lisp.h: Change the definition of all marker.c functions that
512 take and return buffer stuff to be EMACS_INT instead of int.
513
514 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
515 (buf_charpos_to_bytepos, bytepos_to_charpos)
516 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
517 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
518 for all buffer positions.
519
c50bd0d2
CY
5202010-09-23 Chong Yidong <cyd@stupidchicken.com>
521
522 * intervals.c (traverse_intervals, rotate_right, rotate_left)
523 (split_interval_right, find_interval, next_interval)
524 (delete_node, delete_interval, interval_deletion_adjustment)
525 (adjust_intervals_for_deletion, merge_interval_right)
526 (merge_interval_left, graft_intervals_into_buffer)
527 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
528
529 * intervals.h (traverse_intervals): Update prototype.
530
14162469
EZ
5312010-09-23 Eli Zaretskii <eliz@gnu.org>
532
c098fdb8
EZ
533 * indent.c (compute_motion): Use EMACS_INT for arguments to
534 region_cache_forward.
535
536 * region-cache.c (struct boundary, struct region_cache): Use
537 EMACS_INT for positions.
538 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
539 (delete_cache_boundaries, set_cache_region)
540 (invalidate_region_cache, know_region_cache)
541 (region_cache_forward, region_cache_backward, pp_cache): Use
542 EMACS_INT for buffer positions.
543
544 * region-cache.h (know_region_cache, invalidate_region_cache)
545 (region_cache_forward, region_cache_backward): Adjust prototypes.
546
547 * search.c (string_match_1, fast_c_string_match_ignore_case)
548 (looking_at_1, scan_buffer, scan_newline)
549 (find_next_newline_no_quit, find_before_next_newline)
550 (search_command, trivial_regexp_p, search_buffer, simple_search)
551 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
552 and string positions and length.
553
caefdbe7
EZ
554 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
555 (find_before_next_newline): Adjust prototypes.
c098fdb8 556
29cdc13e
EZ
557 * editfns.c (transpose_markers, update_buffer_properties)
558 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
559 (get_pos_property, Fconstrain_to_field)
560 (Fline_beginning_position, Fline_end_position, Fprevious_char)
561 (Fchar_after, Fchar_before, Finsert_char)
562 (Finsert_buffer_substring, Fcompare_buffer_substrings)
563 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
564 EMACS_INT for buffer and string position variables.
c098fdb8 565 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
566
567 * lisp.h (clip_to_bounds): Adjust prototype.
568
e79123aa
EZ
569 * intervals.c (traverse_intervals, rotate_right, rotate_left)
570 (balance_an_interval, split_interval_right, split_interval_left)
571 (find_interval, next_interval, update_interval)
572 (adjust_intervals_for_insertion, delete_node, delete_interval)
573 (interval_deletion_adjustment, adjust_intervals_for_deletion)
574 (offset_intervals, merge_interval_right, merge_interval_left)
575 (graft_intervals_into_buffer, adjust_for_invis_intang)
576 (move_if_not_intangible, get_local_map, copy_intervals)
577 (copy_intervals_to_string, compare_string_intervals)
578 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 579 and for interval tree size.
e79123aa
EZ
580
581 * intervals.h (traverse_intervals, split_interval_right)
582 (split_interval_left, find_interval, offset_intervals)
583 (graft_intervals_into_buffer, copy_intervals)
584 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
585 (update_interval): Adjust prototypes.
586
579c18d0
EZ
587 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
588 Use EMACS_INT for buffer position variables and arguments.
589
590 * composite.c (get_composition_id, find_composition)
591 (run_composition_function, compose_text)
592 (composition_gstring_width, autocmp_chars)
593 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
594 for buffer positions and string length variables and arguments.
595
596 * composite.h (get_composition_id, find_composition, compose_text)
597 (composition_gstring_width): Adjust prototypes.
598
599 * editfns.c (Fformat): Use EMACS_INT for string size variables.
600
601 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
602 EMACS_INT for string positions.
603
604 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
605 position arguments.
606
607 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
608
609 * character.c (parse_str_as_multibyte, str_as_multibyte)
610 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
611 (string_count_byte8, string_escape_byte8, c_string_width)
612 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
613 EMACS_INT for string length variables and arguments.
14162469
EZ
614
615 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
616 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
617 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
618 prototypes.
619
579c18d0
EZ
620 * font.c (font_intern_prop): Use EMACS_INT for string length
621 variables.
622
623 * font.c (font_intern_prop): Use EMACS_INT for string length
624 variables.
625
14162469
EZ
626 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
627 variables.
628
629 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
630 (Fmake_string): Protect against too large strings.
631 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
632 (live_misc_p): Use ptrdiff_t instead of int for pointer
633 differences.
634 (string_bytes, check_sblock, check_string_free_list)
635 (allocate_string_data, compact_small_strings, Fmake_string)
636 (Fmake_bool_vector, make_string, make_unibyte_string)
637 (make_multibyte_string, make_string_from_bytes)
638 (make_specified_string_string, Fmake_list, Fmake_vector): Use
639 EMACS_INT for string length variables and arguments.
640 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
641 (Fpurecopy): Use EMACS_INT for string size.
642 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
643 for vector size.
644
645 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
646 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
647 (make_pure_string, string_bytes, check_point_in_composition):
648 Adjust prototypes.
14162469 649
c8a66ab8
EZ
6502010-09-22 Eli Zaretskii <eliz@gnu.org>
651
652 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
653 (check_translation): Use EMACS_INT for buffer positions and
654 length.
655
656 * undo.c (record_marker_adjustment, record_delete)
657 (record_change, record_point, record_insert)
658 (record_property_change, Fprimitive_undo): Use EMACS_INT for
659 buffer positions.
660
661 * lisp.h (record_marker_adjustment, record_delete)
662 (record_change, record_point, record_insert)
663 (record_property_change, Fprimitive_undo): Adjust prototypes.
664
38c54d9d
JB
6652010-09-22 Juanma Barranquero <lekktu@gmail.com>
666 Eli Zaretskii <eliz@gnu.org>
667
668 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
669
413d18e7
EZ
6702010-09-22 Eli Zaretskii <eliz@gnu.org>
671
672 * minibuf.c (Fminibuffer_contents)
673 (Fminibuffer_contents_no_properties)
674 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
675 positions.
676
677 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
678 mark.
679
680 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
681 (allocate_string_data): Accept EMACS_INT for string length.
682
683 * editfns.c (Ffield_string, Ffield_string_no_properties)
684 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
685 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
686 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
687 (Ffield_end): Use EMACS_INT for buffer positions.
688
689 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
690 point with mark.
691
692 * lisp.h (allocate_string_data, make_uninit_string)
693 (make_uninit_multibyte_string, make_buffer_string)
694 (make_buffer_string_both): Adjust prototypes.
695
4b9832a6
CY
6962010-09-22 Chong Yidong <cyd@stupidchicken.com>
697
698 * xml.c: Switch to GNU indentation.
699 (make_dom): Change parse tree format to match xml.el.
700 (Fxml_parse_html_string_internal): Rename from html-parse-string.
701 (Fxml_parse_string_internal): Rename from xml-parse-string.
702
86282aab
KH
7032010-09-22 Kenichi Handa <handa@m17n.org>
704
705 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
706 only if we are not at a composition.
707 (set_iterator_to_next): Give it->end_charpos to
708 composition_compute_stop_pos.
709 (set_iterator_to_next, next_element_from_buffer): Likewise.
710
711 * dispnew.c (buffer_posn_from_coords): Fix position when the
712 current display element is a grapheme cluster in bidi-reordered
713 region.
714
840b985a
AR
7152010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
716
717 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
718 the regions may overlap.
719
5bc88f4b
JB
7202010-09-21 Juanma Barranquero <lekktu@gmail.com>
721
722 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
723
92bc9a36
DN
7242010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
725
d19e096e
DN
726 * emacs.c: Do not include sys/ioctl.h, not needed.
727
92bc9a36
DN
728 * doprnt.c: Do not include stdlib.h, config.h does it.
729 Move #include before macro definition.
730
15f844ac
DN
7312010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
732
48e24408
DN
733 * Makefile.in (temacs): Link using $(CC) not $(LD).
734 (LD_FIRSTFLAG): Define using autoconf.
735 (LD): Remove.
736
65539506
DN
737 Remove HAVE_TERMIOS definitions.
738 * s/usg5-4-common.h (HAVE_TERMIOS):
739 * s/template.h (HAVE_TERMIOS):
740 * s/gnu-linux.h (HAVE_TERMIOS):
741 * s/darwin.h (HAVE_TERMIOS):
742 * s/cygwin.h (HAVE_TERMIOS):
743 * s/bsd-common.h (HAVE_TERMIOS):
744 * s/aix4-2.h (HAVE_TERMIOS):
745 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
746 defined on all non-MS platforms.
747 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
748
15f844ac
DN
749 * xterm.c (xt_action_hook): Use const.
750
7d701334
JB
7512010-09-20 Juanma Barranquero <lekktu@gmail.com>
752
753 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
754 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
755 (gethostname) [!HAVE_SOCKETS]: Remove.
756 (SOCK_REPLACE_HANDLE): Remove macro.
757 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
758 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
759 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
760 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
761
f3ec267a
EZ
7622010-09-18 Eli Zaretskii <eliz@gnu.org>
763
764 * deps.mk (xml.o): Add dependencies.
765
93acd23d
JB
766 * xdisp.c (Fcurrent_bidi_paragraph_direction):
767 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
768
769 * bidi.c (bidi_paragraph_init): Accept an additional argument
770 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
771 search back until a paragraph with a strong directional character
772 is found, and use that to determine paragraph's base direction.
773
774 * dispextern.h (bidi_paragraph_init): Update prototype.
775
69e847be
EZ
7762010-09-17 Eli Zaretskii <eliz@gnu.org>
777
778 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
779 of w32api >= 3.15. (Bug#6989)
780
283357a7
LMI
7812010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
782
783 * process.c (wait_reading_process_output): Don't message about
784 accept-process-output unless the time limit really is zero.
785
4ddb20d6
SM
7862010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
787
788 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
789 int/Lisp_Object mixup).
790
e24ad6dd
J
7912010-09-17 Jan Djärv <jan.h.d@swipnet.se>
792
793 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
794 not HELP.
795
fb0cf781
J
7962010-09-17 Stephen Berman <stephen.berman@gmx.net>
797
798 * frame.c (Ftool_bar_pixel_width): New function to expose tool
799 bar's pixel width to Lisp (Bug#7048).
800
4ddb20d6
SM
8012010-09-14 Juanma Barranquero <lekktu@gmail.com>
802
803 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 804
318a04c6
J
8052010-09-17 Jan Djärv <jan.h.d@swipnet.se>
806
807 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
808 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
809
78a21772
KH
8102010-09-17 Kenichi Handa <handa@m17n.org>
811
812 * ftfont.c (ftfont_check_otf): Fix previous change.
813
fa3f6039
KH
8142010-09-14 Kenichi Handa <handa@m17n.org>
815
816 * ftfont.c (ftfont_check_otf): Fix the case of checking just
817 existence of GSUB or GPOS.
818
2b5491fa
JB
8192010-09-14 Juanma Barranquero <lekktu@gmail.com>
820
821 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
822
c97c655f
LMI
8232010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
824
2b5491fa 825 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
826 what it does.
827 (parse_string): Return nil when the document can't be parsed.
828
6664fc59 8292010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
830
831 * xterm.c (get_current_vm_state): New function.
832 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
833 want_fullscreen so set_wm_state calls are few (Bug#7013).
834 (x_handle_net_wm_state): Move code to get_current_vm_state and
835 call that function.
836
6664fc59 8372010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
838
839 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
840
6664fc59 8412010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
842
843 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
844 we may use designation or locking-shift.
845
6664fc59 8462010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
847
848 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
849 sequence when the source is multibyte.
850
1da70e99
AS
8512010-09-14 Andreas Schwab <schwab@linux-m68k.org>
852
6664fc59
JB
853 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
854 Don't make first argument optional. Doc fix.
1da70e99 855
26632d8d
LMI
8562010-09-14 Leo <sdl.web@gmail.com> (tiny change)
857
858 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
859 parameters for the doc string.
860
21fa8e37
LMI
8612010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
862
863 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
864
5616cc54
SM
8652010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
866
867 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
868 (syms_of_fns): Don't defsubr Sy_or_n_p.
869 * lisp.h: Don't declare Fy_or_n_p.
870 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
871
381408e2
LMI
8722010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
873
874 * xml.c (Fxml_parse_buffer): New function to parse XML files.
875
8762010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
877
878 * xml.c: New file.
879 (Fhtml_parse_buffer): New function to interface to the libxml2
880 html parsing function.
881
733946e7
JB
8822010-09-05 Juanma Barranquero <lekktu@gmail.com>
883
884 * biditype.h: Regenerate.
885
7574650a
AS
8862010-09-04 Andreas Schwab <schwab@linux-m68k.org>
887
888 * nsimage.m (ns_load_image): Check argument types.
889
890 * image.c: Remove all uses of gcpro.
891 (xpm_load): Check all lisp types.
892 (pbm_load): Likewise.
893 (png_load): Likewise.
894 (jpeg_load): Likewise.
895 (tiff_load): Likewise.
896 (gif_load): Likewise.
897 (imagemagick_load_image): Likewise.
898 (imagemagick_load): Likewise.
899 (svg_load): Likewise.
900 (gs_load): Likewise.
901
6e6b8e25
EZ
9022010-09-04 Eli Zaretskii <eliz@gnu.org>
903
904 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
905 try to reorder grapheme clusters, since LGSTRING should always
906 hold them in the logical order.
907 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
908 return glyph codes in the logical order.
909
dbfe4532
AS
9102010-09-04 Andreas Schwab <schwab@linux-m68k.org>
911
912 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 913 (imagemagick_load_image): Fix type mismatch.
5e5992c2 914 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 915
6d7cc563
JD
9162010-09-02 Jan Djärv <jan.h.d@swipnet.se>
917
918 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
919
920 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
921
922 * xselect.c: Remove declaration of cut-buffer objects and functions.
923 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
924 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
925 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
926 (Fx_rotate_cut_buffers_internal): Remove.
927 (syms_of_xselect): Remove defsubr of above.
928 Remove intern of QCUT_BUFFERn.
929
8f4e9110
SM
9302010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
931
932 * cmds.c (Vblink_paren_function): Remove.
933 (internal_self_insert): Make it insert N chars at a time.
934 Don't call blink-paren-function.
935 (Fself_insert_command): Adjust accordingly.
936 (syms_of_cmds): Don't declare blink-paren-function.
937
d419e1d9
KH
9382010-08-31 Kenichi Handa <handa@m17n.org>
939
940 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
941 characters.
942
943 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
944 (produce_glyphs): Don't set it->char_to_display here.
945 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
946 (produce_special_glyphs): Set temp_it.char_to_display before
947 calling produce_glyphs.
948
949 * xdisp.c (get_next_display_element): Set it->char_to_display
950 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
951 characters.
952 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
953 calling PRODUCE_GLYPHS.
954 (append_space_for_newline): Save and store it->char_to_display.
955 Set it->char_to_display before calling PRODUCE_GLYPHS.
956 (extend_face_to_end_of_line): Set it->char_to_display before
957 calling PRODUCE_GLYPHS.
958 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
959 character to its byte value.
960 (get_char_glyph_code): New function.
961 (produce_stretch_glyph): Set it2.char_to_display too before
962 calling x_produce_glyphs.
963 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
964 non-ASCII characters. Don't set it->char_to_display here.
965 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 966 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 967
b819f760
SM
9682010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
969
970 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
971
07fa68a7
CY
9722010-08-31 Chong Yidong <cyd@stupidchicken.com>
973
974 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
975
cd196f12
SM
9762010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
977
978 * marker.c (Fcopy_marker): Make the first arg optional.
979
49a752bb
KH
9802010-08-30 Kenichi Handa <handa@m17n.org>
981
982 * composite.c (composition_update_it): Fix computing of
983 cmp_it->width.
984
769ae9e1
KH
9852010-08-29 Kenichi Handa <handa@m17n.org>
986
9e69cb05 987 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 988 corresponding bytes.
9e69cb05 989
4520b858
J
9902010-08-29 Jan Djärv <jan.h.d@swipnet.se>
991
992 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
993
fe50eb41
KH
9942010-08-26 Kenichi Handa <handa@m17n.org>
995
996 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
997 on calling composition_compute_stop_pos.
998
f6aa6ec6
KH
9992010-08-25 Kenichi Handa <handa@m17n.org>
1000
9dfdbc0a
KH
1001 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1002 :otf.
1003
f6aa6ec6
KH
1004 * composite.c (composition_compute_stop_pos): Don't break
1005 composition at PT.
1006 (composition_reseat_it): Likewise. Fix calculation of character
1007 position starting a composition.
1008 (Fcomposition_get_gstring): Don't limit the number of components
1009 for automatic composition.
1010
ff94e32c
KH
10112010-08-25 Kenichi Handa <handa@m17n.org>
1012
1013 * composite.c (composition_compute_stop_pos): In forward search,
1014 pay attention to the possibility that some character after ENDPOS
1015 will be composed with charactrs before ENDPOS.
1016
1c409d0b
CY
10172010-08-24 Chong Yidong <cyd@stupidchicken.com>
1018
1019 * keyboard.c (command_loop_1): Don't clobber primary selection
1020 during handle-switch-frame (Bug#6872).
1021
0c372655
MA
10222010-08-23 Michael Albinus <michael.albinus@gmx.de>
1023
1024 * dbusbind.c: Accept UNIX domain sockets as bus address.
1025 (Fdbus_close_bus): New function.
1026 (Vdbus_registered_buses): New variable.
1027 (xd_initialize): Implement string as bus address.
1028 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1029 (Fdbus_get_unique_name, Fdbus_call_method)
1030 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1031 (Fdbus_method_error_internal, Fdbus_send_signal)
1032 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1033 check. This is done in xd_initialize_bus. Adapt doc string, if
1034 necessary.
1035 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1036 Vdbus_registered_buses.
1037 (Vdbus_registered_objects_table): Create hash.
1038
7133b7ee
JL
10392010-08-22 Juri Linkov <juri@jurta.org>
1040
1041 * keyboard.c (Fexecute_extended_command): Move reading a command name
1042 with `completing-read' to a new Elisp function `read-extended-command'.
1043 Call it to read a command to `function' (bug#5364, bug#5214).
1044
198a7a97
CY
10452010-08-22 Chong Yidong <cyd@stupidchicken.com>
1046
1047 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1048
b0126eac 10492010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1050
1051 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1052 instead of SAFE_ALLOCA.
1053
b0126eac 10542010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1055
1056 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1057 (Bug#6214).
1058
b0126eac 10592010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1060
1061 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1062
b0126eac
CY
10632010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1064
1065 * doc.c (Fsnarf_documentation): Initialize skip_file before
1066 build-files test.
1067
692f3ddc 10682010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1069
692f3ddc
JB
1070 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1071 New definitions.
b0126eac
CY
1072 (HAVE_TERMIO): Remove.
1073
5f2f0bc1
EZ
10742010-08-22 Eli Zaretskii <eliz@gnu.org>
1075
b613941b
EZ
1076 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1077
a583bbef
EZ
1078 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1079 for w32.
1080
1081 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1082 it's done in nt/config.nt.
1083
1084 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1085
5f2f0bc1
EZ
1086 * unexcoff.c (report_error, make_hdr, write_segment)
1087 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1088 Convert argument lists and prototypes to ANSI C.
1089 (make_hdr, write_segment): Remove unused variables.
1090 (unexec): Remove commented-out line. Initialize `new' to shut up
1091 compiler warnings.
1092
a7ebc409
DN
10932010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1094
1095 Simplify termio code.
1096 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1097 HAVE_TERMIO code is obsolete.
1098 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1099 * systty.h: Do not define HAVE_TCATTR.
1100 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1101 Do not define EMACS_HAVE_TTY_PGRP. Only define
1102 EMACS_GET_TTY_PGRP for !DOS_NT.
1103 * sysdep.c: Include sysselect.h unconditionally. Do not include
1104 sys/ioctl.h and termios.h, systty.h does it. Use
1105 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1106 (init_baud_rate): Remove HAVE_TERMIO code.
1107 (child_setup_tty): Remove HAVE_TERMIO code.
1108 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1109 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1110 (new_ltchars, new_tchars): Remove, unused.
1111 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1112 code. Remove special casing for __mips__, it was a no-op. Remove
1113 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1114 (init_sys_modes): Remove HPUX special case.
1115 * process.c: Include stdlib.h unconditionally. Do not include
1116 fcntl.h, systty.h does it. Remove conditional code for
1117 HAVE_SERIAL, it is always true.
1118 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1119 always true when SIGNALS_VIA_CHARACTERS is true.
1120 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1121 !WINDOWSNT means HAVE_TERMIOS.
1122 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1123 conditional, which is true for all HAVE_TERMIOS systems.
1124 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1125 instead of HAVE_TERMIOS.
1126 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1127 EMACS_HAVE_TTY_PGRP.
1128 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1129 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1130 anyway.
1131
40629f17
EZ
11322010-08-21 Eli Zaretskii <eliz@gnu.org>
1133
1134 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1135 mirroring pixel positions.
1136
d931da8c
DN
11372010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1138
b5c76d0c
DN
1139 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1140 write only.
1141 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1142 malloc_sbrk_used, nothing uses them.
1143
74815588
DN
1144 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1145 defined, unconditionally defined in lisp.h.
1146
f5817d1c
DN
1147 * term.c: Do not include <termios.h>, systty.h does it.
1148
d931da8c
DN
1149 * s/unixware.h (HAVE_TCATTR):
1150 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1151 systty.h defines it when HAVE_TERMIOS is defined.
1152
ff2de6d2 11532010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1154
b43c883c 1155 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1156 terminals: add one-character offset for R2L lines.
b43c883c 1157
491a1546
EZ
1158 * emacs.c <emacs_version>: Add a comment regarding
1159 msdos/mainmake.v2's dependency on the syntax of this declaration.
1160
2396cbba
EZ
11612010-08-20 Eli Zaretskii <eliz@gnu.org>
1162
1163 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1164 position for R2L lines by mirroring the pixel position wrt the
1165 text are box. Improve commentary.
1166
7df6150a
AS
11672010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1168
1169 * image.c (imagemagick_clear_image): Remove debugging output.
1170
a2e5caf7
SM
11712010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1172
1173 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1174 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1175 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1176 self-insert-face.
1177 (syms_of_cmds): Initialize the new vars.
1178
20d60baf
JR
11792010-08-19 Jason Rumney <jasonr@gnu.org>
1180
cc477da7
JR
1181 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1182
20d60baf
JR
1183 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1184
2c0ac867
J
11852010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1186
1187 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1188
93352106
EZ
11892010-08-18 Eli Zaretskii <eliz@gnu.org>
1190
1191 * xterm.c (x_draw_bar_cursor):
1192 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1193 R2L, draw the bar cursor on its right rather than on its left.
1194
c785836d
SM
11952010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1196
0193499f
SM
1197 * eval.c (Fdefmacro): Only obey one declaration.
1198
c785836d
SM
1199 * casefiddle.c (casify_region): Setup gl_state.
1200
9cb728a5
J
12012010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1202
1203 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1204
e1e18511
J
12052010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1206
1d77b63e 1207 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1208
64cb6c78
J
12092010-08-18 David De La Harpe Golden <david@harpegolden.net>
1210
1211 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1212 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1213 QPRIMARY => NXPrimaryPboard.
1214 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1215 NXPrimaryPboard => QPRIMARY.
1216 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1217 NXSecondaryPboard = SecondarySelection.
1218 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1219
0c9b8993
GM
12202010-08-18 Joakim Verona <joakim@verona.se>
1221
1222 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1223 defined:
1224 (imagemagick_image_p): New function to test for ImageMagic image.
1225 (imagemagick_load): New function to load ImageMagick image.
1226 (imagemagick_load_image): New function, helper for imagemagick_load.
1227 (imagemagick-types): New function.
1228 (Qimagemagick): New Lisp_object.
1229 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1230
c3554f68
SM
12312010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1232
1233 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1234 is a string.
1235
1ff2e434
J
12362010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1237
1238 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1239 x_set_tool_bar_position handler.
1240
0cc56427
EZ
12412010-08-17 Eli Zaretskii <eliz@gnu.org>
1242
1243 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1244 x_set_tool_bar_position handler, needed to support changes from
1245 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1246
e45a249b
JD
12472010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1248
921242c6
J
1249 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1250 declaration (Bug#6863).
573d150b 1251 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1252
e45a249b
JD
1253 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1254
1255 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1256
7c23dd44
CY
12572010-08-16 Chong Yidong <cyd@stupidchicken.com>
1258
1259 * keyboard.c (command_loop_1): Avoid setting selection twice,
1260 since it's done in deactivate-mark as well.
1261 (Vselect_active_regions): Change default to t. Replace `lazy'
1262 with non-default value `only', meaning only set PRIMARY for
1263 temporarily active regions.
1264
1265 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1266 select-active-regions.
1267
0005830c
J
12682010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1269
1270 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1271 isn't a string.
1272
603dfc72
AS
12732010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1274
1275 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1276
c25ce9d0
J
12772010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1278
c3554f68
SM
1279 * keyboard.c (parse_tool_bar_item): malloc buf.
1280 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1281 new_lbl (Bug#6855).
c25ce9d0 1282
5872c762
EZ
12832010-08-14 Eli Zaretskii <eliz@gnu.org>
1284
b236615c
EZ
1285 * xterm.c (x_draw_stretch_glyph_string):
1286 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1287 the cursor on the right edge of the stretch glyph.
1288
c3554f68
SM
1289 * xdisp.c (window_box_right_offset, window_box_right):
1290 Fix commentary.
b236615c 1291
5872c762
EZ
1292 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1293 direction when point is inside a run of whitespace characters.
1294
1295 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1296
e66f9a1b
JR
12972010-08-14 Jason Rumney <jasonr@gnu.org>
1298
1299 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1300
79d6f59e
CY
13012010-08-14 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1304
1c9b4129
JR
13052010-08-13 Jason Rumney <jasonr@gnu.org>
1306
1307 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1308 (MessageBoxW_Proc): New function typedef.
1309 (unicode-message-box): New function pointer.
1310 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1311
2b4e6277
J
13122010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1313
1314 * frame.h (Qtool_bar_position): Declare.
1315
1316 * xfns.c (Fx_create_frame): Call x_default_parameter for
1317 Qtool_bar_position.
1318
94c97d85
EZ
13192010-08-13 Eli Zaretskii <eliz@gnu.org>
1320
8ee81892
EZ
1321 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1322 (report_error, report_error_1): Ditto.
1323 (write_segment): Remove "#if 0" unused code.
1324 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1325 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1326 (start_of_text): Remove unused function (was used only if NO_REMAP
1327 was NOT defined).
1328
891ef8f7
EZ
1329 * msdos.c (IT_set_face): Fix format string to match argument
1330 types.
1331 (IT_write_glyphs, IT_note_mode_line_highlight)
1332 (IT_set_frame_parameters): Remove unused variables.
1333 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1334 (IT_set_terminal_modes): Disambiguate expression in if clause.
1335 (Fmsdos_remember_default_colors): Return Qnil.
1336 (IT_set_frame_parameters): Add parens to disambiguate boolean
1337 expression for logging the cursor type to termscript.
1338 (keyboard_layout_list, keypad_translate_map)
1339 (grey_key_translate_map): Add braces in inner initializers.
1340 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1341 (dos_rawgetc): Remove unused label.
1342 (XMenuActivate): Add braces to remove ambiguous `else'.
1343 (dos_ttraw): Always return a value.
1344 (spawnve): Declare.
1345 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1346
1347 * dosfns.h (x_set_title): Declare.
1348
1349 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1350 Remove unused variables.
1351
1352 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1353 variables.
1354 (init_dosfns): Declare get_lim_data.
1355 (system_process_attributes): Declare Fget_internal_run_time.
1356
38e41e0e
EZ
1357 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1358 list to be consistent with menu.h.
1359
94c97d85
EZ
1360 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1361 warnings due to mixing of "char *" and "const char *".
1362
c5683ceb
SM
13632010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1364
1365 Introduce a new comment style "c" flag.
1366 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1367 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1368 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1369 (syntax_prefix_flag_p): New function.
1370 (Fstring_to_syntax): Understand new "c" flag.
1371 (Finternal_describe_syntax_value): Recognize new flag; use the
1372 SYNTAX_FLAGS_* macros.
1373 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1374 comment style to accomodate the new styles.
1375 (back_comment, forw_comment, Fforward_comment, scan_lists)
1376 (scan_sexps_forward): Update code to obey the new comment style flag.
1377
1378 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1379
1380 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1381
7aee76f4
J
13822010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1383
3a46642b
J
1384 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1385 first.
94dff98f 1386 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1387
1388 * gtkutil.h (xg_check_special_colors): Declare.
1389
1390 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1391 (xg_create_frame_widgets): Connect theme name changes to
1392 style_changed_cb.
1393
42ca4633
J
1394 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1395 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1396 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1397 string literal. file is const char*.
42ca4633
J
1398
1399 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1400 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1401 props. Free them at the end.
1402
1403 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1404
c5683ceb
SM
1405 * xrdb.c (get_system_app): Make path const and use char *p for
1406 non-const char.
42ca4633
J
1407
1408 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1409 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1410 char *.
1411 (button_names): Is const char *.
1412 (xdialog_show): error_name and pane_string is const.
1413
1414 * process.h (synch_process_death): Is const char*.
1415
1416 * w32menu.c (w32_menu_show):
1417 * nsmenu.m (ns_menu_show): error parameter is const char **.
1418
1419 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1420 is const char **.
1421
1422 * menu.c (Fx_popup_menu): error_name is const.
1423
1424 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1425 with unsigned char and XtPointer with void *.
1426
1427 * gtkutil.h: Replace widget_value with struct _widget_value.
1428 (enum button_type, struct _widget_value): Remove and use the one from
1429 keyboard.h.
1430
1431 * gtkutil.c (get_utf8_string): Always return an allocated string.
1432 Parameter is const.
1433 (create_dialog, xg_create_one_menuitem, create_menus)
1434 (xg_item_label_same_p, xg_update_menu_item): Free result from
1435 get_utf8_string.
1436 (xg_separator_p, xg_item_label_same_p): label is const.
1437
1438 * font.h (font_open_by_name): Make name const.
1439
1440 * font.c (font_open_by_name): Make name const.
1441
1442 * floatfns.c (matherr): Use a const char* variable for x->name.
1443
1444 * emacs.c (main): Pass char[] to putenv instead of literal.
1445
1446 * callproc.c (synch_process_death): Make const.
1447 (Fcall_process): Make signame const.
1448
9c5bd55a
J
1449 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1450 (addDisplayItemWithImage): Use const char*.
1451
1452 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1453 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1454
1455 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1456
1457 * keyboard.h (_widget_value): name, value and key are const char*.
1458
7aee76f4
J
1459 * unexmacosx.c (unexec_error): Use const char *.
1460
09d93395
DN
14612010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1462
1463 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1464 (font_parse_name, font_open_by_name):
09d93395 1465 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1466 (font_parse_name, font_open_by_name): Remove const.
09d93395 1467
671d409f
AS
14682010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1469
1470 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1471 definition.
1472
1473 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1474 * m/amdx86-64.h: Likewise.
1475 * m/arm.h: Likewise.
1476 * m/hp800.h: Likewise.
1477 * m/ia64.h: Likewise.
1478 * m/ibmrs6000.h: Likewise.
1479 * m/ibms390.h: Likewise.
1480 * m/intel386.h: Likewise.
1481 * m/iris4d.h: Likewise.
1482 * m/m68k.h: Likewise.
1483 * m/macppc.h: Likewise.
1484 * m/mips.h: Likewise.
1485 * m/sh3.h: Likewise.
1486 * m/sparc.h: Likewise.
1487 * m/template.h: Likewise.
1488 * m/vax.h: Likewise.
1489 * m/xtensa.h: Likewise.
1490 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1491 WORDS_BIG_ENDIAN.
1492 * lisp.h: Likewise.
1493 * md5.c: Likewise.
1494 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1495
8ea90aa3
DN
14962010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1497
1498 Use const char* instead of char*.
1499 Reduce the number of warnings with -Wwrite-strings.
1500 * xrdb.c (get_environ_db, get_system_name):
1501 * unexelf.c (find_section):
1502 * term.c (string_cost, string_cost_one_line, per_line_cost)
1503 (get_named_tty, init_tty):
1504 * sysdep.c (sys_subshell):
1505 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1506 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1507 * search.c (Freplace_match):
1508 * process.c (Fmake_network_process, send_process, init_process):
1509 * lread.c (Fload, init_lread):
1510 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1511 * keyboard.c (parse_tool_bar_item, struct event_head):
1512 * gtkutil.h (xg_get_font_name):
1513 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1514 (make_widget_for_menu_item, make_menu_item, create_menus)
1515 (xg_make_tool_item):
1516 * font.c (parse_matrix, font_parse_name):
1517 * floatfns.c (rounding_driver, float_error_fn_name):
1518 * filelock.c (get_boot_time_1, lock_file_1):
1519 * fileio.c (barf_or_query_if_file_exists, check_writable):
1520 * editfns.c (get_system_name, get_operating_system_release)
1521 (Fencode_time, Fset_time_zone_rule):
1522 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1523 * buffer.c (defvar_per_buffer): Use const.
1524
7815fe19 15252010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1526
692f3ddc 1527 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1528 (struct charset_sort_data): New struct.
1529 (charset_compare): New function.
692f3ddc 1530 (Fsort_charsets): New function.
7a84eee5
KH
1531 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1532
1533 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1534 number in CTEXT extended segment.
1535
7815fe19 15362010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1537
1538 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1539 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1540
7815fe19 15412010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1542
1543 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1544 (Fhash_table_size): Fix typos in docstrings.
1545 (Fmake_hash_table): Doc fix.
1546
7815fe19 15472010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1548
1549 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1550 Doc fix (bug#5625).
1551
7815fe19 15522010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1553
1554 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1555 the MSDOS definition.
1556
1b6d8cf0
DN
15572010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1558
675e2c69
DN
1559 Use const char* instead of char*.
1560 * xterm.c (x_create_toolkit_scroll_bar):
1561 * xfont.c (xfont_list_pattern):
1562 * xfns.c (x_default_scroll_bar_color_parameter)
1563 (xic_create_fontsetname, x_default_font_parameter)
1564 (x_screen_planes):
1565 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1566 (store_mode_line_string, decode_mode_spec, display_string):
1567 * menu.c (digest_single_submenu):
1568 * keymap.h (initial_define_key, initial_define_lispy_key):
1569 * keymap.c (initial_define_key, initial_define_lispy_key):
1570 * image.c (image_error, image_keyword):
1571 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1572 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1573 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1574 (ftfont_list, ftfont_match):
1575 * frame.c (frame_parm_table):
1576 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1577 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1578 (font_add_log, font_deferred_log):
1579 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1580 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1581 (font_add_log, font_deferred_log):
1582 * emacs.c (argmatch):
1583 * dispextern.h (struct it):
1584 * coding.c (ENCODE_DESIGNATION):
1585 * charset.c (define_charset_internal): Use const.
1586
25717ca1
DN
1587 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1588
c5683ceb
SM
1589 * xrdb.c: Remove include guard.
1590 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1591 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1592 realloc->xrealloc instead of using #defines.
1593
efb41e21
EZ
15942010-08-08 Eli Zaretskii <eliz@gnu.org>
1595
cd21226d 1596 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1597 * editfns.c (Fline_beginning_position, Fline_end_position):
1598 State in the doc strings that start and end of line are in the
1599 logical order.
cd21226d 1600
efb41e21
EZ
1601 * xdisp.c (display_line): Move the handling of overlay arrow after
1602 the call to find_row_edges. (Bug#6699)
1603
746812d9
CY
16042010-08-07 Chong Yidong <cyd@stupidchicken.com>
1605
1606 * keyboard.c (command_loop_1):
1607 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1608
9852377f
CY
16092010-08-07 Chong Yidong <cyd@stupidchicken.com>
1610
1611 * insdel.c (prepare_to_modify_buffer): Save active region text to
1612 Vsaved_region_selection.
1613
1614 * xselect.c (QPRIMARY): Move to keyboard.c.
1615
1616 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1617 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1618 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1619
0e9c8657
JB
16202010-08-07 Juanma Barranquero <lekktu@gmail.com>
1621
1622 * alloc.c (lisp_malloc):
1623 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1624 * charset.h (emacs_mule_charset):
1625 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1626 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1627 (bitch_at_user):
1628 * lisp.h (Fcheck_coding_system, Fget_text_property)
1629 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1630 Remove duplicate declarations.
1631
648801d1
DN
16322010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1633
32bc6709
DN
1634 * process.c: Simplify include logic.
1635
3ef1d108
DN
1636 * keyboard.h (quit_char): Add declaration.
1637 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1638 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1639 Add declarations.
3ef1d108
DN
1640 * sysdep.c:
1641 * w32.c: Remove the above declarations.
1642
97ec208f
DN
1643 Remove extern declarations in .c files, .h files have them.
1644 * xterm.c:
1645 * xdisp.c:
97ec208f
DN
1646 * msdos.c:
1647 * image.c:
1648 * gtkutil.c:
1649 * fileio.c:
1650 * eval.c: Remove declarations.
1651
94eed851
DN
1652 * frame.c (frame_params): Make const.
1653
36e053eb
DN
1654 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1655
0e843971
DN
1656 * emacs.c (emacs_copyright, emacs_version): Make static.
1657 (Vinitial_window_system, Vauto_save_list_file_name)
1658 (Vinhibit_redisplay): Remove declarations.
1659 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1660 for AIX.
1661
648801d1
DN
1662 Use const for some arrays and functions.
1663 * xterm.h (xg_set_icon_from_xpm_data):
1664 * xfns.c (xg_set_icon_from_xpm_data):
1665 * term.c (fkeys):
1666 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1667 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1668 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1669 (frame.c frame_parms):
1670 * emacs-icon.h (gnu_xpm_bits):
1671 * callint.c (callint_argfuns): Use const.
1672
8646d999
J
16732010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1674
1675 * sysdep.c: Move include term.h last of includes (Bug#6812).
1676
cb4545ad
EZ
16772010-08-06 Eli Zaretskii <eliz@gnu.org>
1678
1679 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1680
1681 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1682
1683 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1684
da7e2be6
JB
16852010-08-06 Juanma Barranquero <lekktu@gmail.com>
1686
1687 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1688
3d608a86
J
16892010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1690
7908fb60
J
1691 * xterm.h (x_get_focus_frame): Declare.
1692
1693 * keyboard.h (poll_for_input_1): Unconditionally declare.
1694
4094bf36
J
1695 * nsterm.h (x_set_menu_bar_lines): Declare.
1696
1697 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1698
3d608a86
J
1699 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1700
1701 * window.c: Include menu.h.
1702
1703 * unexmacosx.c (print_region_list, print_regions)
1704 (build_region_list, find_emacs_zone_regions)
1705 (unexec_regions_merge, read_load_commands, dump_it)
1706 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1707
1708 * term.c: Check HAVE_SYS_IOCTL_H.
1709
686b968e 1710 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1711
686b968e 1712 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1713
1714 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1715 (ns_ring_bell, ns_defined_color, hide_hourglass)
1716 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1717 Convert to ANSI C prototypes.
1718 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1719 before code.
1720
1721 * nsterm.h : Include sysselect.h.
1722 (x_sync, x_get_focus_frame, x_set_mouse_position)
1723 (x_set_mouse_pixel_position, x_make_frame_visible)
1724 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1725 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1726 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1727 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1728 Declare.
3d608a86
J
1729
1730 * nsmenu.m (popup_activated, name_is_separator)
1731 (syms_of_nsmenu): Convert to ANSI C prototypes.
1732 (runMenuAt): Prototypes and move declarations before code.
1733
1734 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1735
1736 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1737 prototypes.
1738
1739 * nsfns.m (have_menus_p, ns_display_info_for_name)
1740 (x_set_cursor_type, ns_appkit_version_str)
1741 (ns_appkit_version_int, ns_do_applescript)
1742 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1743 (syms_of_nsfns): Convert to ANSI C prototypes.
1744
1745 * menu.h (x_set_menu_bar_line): Declare.
1746 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1747
1748 * lisp.h (fmod_float): Declare.
1749
1750 * image.c (xpm_scan, xpm_make_color_table_v)
1751 (xpm_put_color_table_v, xpm_get_color_table_v)
1752 (xpm_make_color_table_h, xpm_put_color_table_h)
1753 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1754 (xpm_load): Convert to ANSI C prototypes.
1755
1756 * emacs.c: Include nsterm.h if HAVE_NS.
1757
1758 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1759
fce70521
DN
17602010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1761
1762 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1763 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1764 (socket_options): Use const char* for name.
1765
a11889ab
JB
17662010-08-06 Juanma Barranquero <lekktu@gmail.com>
1767
1768 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1769
1770 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1771 Don't declare xmalloc_widget_value and digest_single_submenu.
1772
1773 * w32font.c (Qlatin): Remove declaration.
1774
1775 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1776
c95b508f 1777 * dired.c (compile_pattern): Restore declaration.
a11889ab 1778
6254cdda
DN
17792010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1780
04bab72c
DN
1781 Remove extern declarations in .c files, .h files have them.
1782 * data.c:
1783 * dired.c:
1784 * editfns.c:
1785 * filelock.c:
1786 * fns.c:
1787 * font.c:
1788 * fontset.c:
1789 * frame.c:
1790 * fringe.c:
1791 * ftfont.c:
1792 * gtkutil.c:
1793 * indent.c:
1794 * keyboard.c:
1795 * keymap.c:
1796 * lread.c:
1797 * menu.c:
1798 * print.c:
1799 * search.c:
1800 * sound.c:
1801 * window.c:
1802 * xdisp.c:
1803 * xfaces.c:
1804 * xfns.c:
1805 * xfont.c:
1806 * xftfont.c:
1807 * xmenu.c:
1808 * xterm.c: Remove declarations.
1809
dff94ed5
DN
1810 Cleanup syssignal.h.
1811 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1812 (main_thread): Move down to remove #ifdef.
1813 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1814 Remove conditional definition following unconditional ones.
1815
99f3388e
DN
1816 * lisp.h: Remove HAVE_SHM code, unused.
1817 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1818 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1819 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1820 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1821 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1822 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1823 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1824 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1825 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1826 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1827 (Qwindow_scroll_functions, Vafter_load_alist)
1828 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1829 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1830 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1831 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1832 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1833 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1834 (initial_argv, last_nonmenu_event, load_in_progress)
1835 (noninteractive_need_newline, scroll_margin): Add declarations.
1836
1837 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1838 declarations, menu.h has them.
1839 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1840 (Vinput_method_function, Qinput_method_function)
1841 (Qevent_symbol_element_mask, last_event_timestamp):
1842 * dispextern.h (Voverflow_newline_into_fringe):
1843 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1844 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1845 (syms_of_w32font, syms_of_nsfont):
1846 * fontset.h (find_font_encoding, Qlatin):
1847 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1848 (Vtool_bar_mode, set_frame_menubar):
1849 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1850 * xterm.h (Qx_gtk_map_stock):
1851 * keymap.h (meta_prefix_char): Add declarations.
1852
9f5dd6f2
DN
1853 * term.c: Remove dead code.
1854
6254cdda
DN
1855 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1856 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1857 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1858 which is what was there before BSD_PGRPS was removed.
1859
29cf3e20
EZ
18602010-08-05 Eli Zaretskii <eliz@gnu.org>
1861
1862 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1863
1864 * unexcoff.c: Renamed from unexec.c.
1865
aaa0a19a
SM
18662010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1867
1868 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1869
8d1d9587
JB
18702010-08-03 Johan Bockgård <bojohan@gnu.org>
1871
1872 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1873 (Bug#6744)
8d1d9587 1874
9a747ba6
JD
18752010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1876
4d464ae4
JD
1877 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1878 to TRUE if depth of screen is < 16.
1879
ac01763e
JD
1880 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1881 USE_GTK_TOOLTIP.
e0d62a9b
JB
1882 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1883 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1884 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1885 USE_GTK_TOOLTIP.
1886 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1887
1888 * xterm.h (USE_GTK_TOOLTIP): New define.
1889 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1890
9a747ba6
JD
1891 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1892 to Control-D (Bug#6771).
1893
7b0815ba
JB
18942010-08-02 Juanma Barranquero <lekktu@gmail.com>
1895
1896 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1897 Wording by Drew Adams <drew.adams@oracle.com>.
1898
aa1859f5
J
18992010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1900
1901 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1902 ttip_lbl.
1903
1904 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1905 calling gtk_widget_queue_draw.
1906 (x_free_frame_resources): Call xg_free_frame_widgets.
1907
1908 * xfns.c (x_gtk_use_system_tooltips): New variable.
1909 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1910 new gtkutil tooltip functions to show the tooltip.
1911 (Fx_hide_tip): Call xg_hide_tooltip.
1912 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1913
1914 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1915 (xg_show_tooltip, xg_hide_tooltip): Declare.
1916
1917 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1918 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1919 New functions.
aa1859f5
J
1920 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1921 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1922 Remove code that is commented out.
1923
76417ef4
SM
19242010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1925
1926 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1927
16041401
CY
19282010-07-31 Chong Yidong <cyd@stupidchicken.com>
1929
1930 * xselect.c (x_own_selection): Use list4.
1931
2c09a58f
DN
19322010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1933
1934 * buffer.c (Qwindow): Do not define, already defined in data.c.
1935 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1936
59df9fdd 19372010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1938
59df9fdd
JB
1939 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1940 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1941 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1942 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1943 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1944
1b231651
DN
19452010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1946
1947 Rename s/usg5-4.h -> s/usg5-4-common.h.
1948 * s/usg5-4.h: Rename file to ...
1949 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1950 * s/unixware.h:
1951 * s/sol2-6.h:
1952 * s/irix6-5.h: Update includes accordingly.
1953
bfeabdc3
JD
19542010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1955
2ebf1083
J
1956 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1957
bfeabdc3 1958 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1959 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1960 Remove toolbar_height.
1961 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1962 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1963 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1964 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1965
1966 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1967
1968 * xfns.c (x_set_tool_bar_position): New function.
1969 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1970 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1971 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1972
1973 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1974 and FRAME_TOOLBAR_LEFT_WIDTH.
1975
1976 * gtkutil.h (xg_change_toolbar_position): Declare.
1977
1978 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1979 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1980 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1981 (xg_create_frame_widgets): Create a hobox for placing widgets
1982 vertically. Use gtk_box_pack_start.
1983 (xg_height_or_width_changed): Renamed from xg_height_changed.
1984 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1985 (xg_update_frame_menubar, free_frame_menubar): Change to
1986 xg_height_or_width_changed.
1987 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1988 size correctly. Remove hardcoded 4, instead use handlebox size -
1989 toolbar size.
1990 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1991 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1992 (xg_pack_tool_bar): POS is a new parameter.
1993 Set orientation of tool bar based on pos.
1994 Only make handlebox_widget if NULL.
1995 Check if tool bar goes to vbox or hbox depending on pos.
1996 (xg_update_tool_bar_sizes): New function.
686b968e 1997 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1998 height, call xg_update_tool_bar_sizes instead.
1999 (free_frame_tool_bar): Remove from hbox or vbox depending on
2000 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2001 (xg_change_toolbar_position): New function.
2002
2003 * frame.h (struct frame): Add tool_bar_position.
2004 (Qbottom): Declare.
2005
2006 * frame.c (Qtool_bar_position): New variable.
2007 (make_frame): Set tool_bar_position to Qtop.
2008 (frame_parms): Add tool-bar-position.
2009 (x_report_frame_params): Store tool_bar_position.
2010 (x_set_fringe_width): Reset wm size hint after fringe changes.
2011
26469a38
DN
20122010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2013
2014 Make lisp_time_argument declaration work on all systems.
2015 * lisp.h (lisp_time_argument): Move declaration ...
2016 * systime.h (lisp_time_argument): ... here
2017 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2018
8848b728
JD
20192010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2020
2021 * vm-limit.c (POINTER): Add typedef for it.
2022 (start_of_data): Change return type from POINTER to char *.
2023
2024 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2025 HAVE_WINDOW_SYSTEM.
2026
76fd1ee9
DN
20272010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2028
0441987e
DN
2029 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2030 Remove reference to __osf__, unused.
2031
56a000c7
DN
2032 * mem-limits.h: Remove duplicated includes.
2033 (NULL): Remove definition, unused.
2034 (POINTER): Remove definition.
2035 (start_of_data): Use char* in prototype, as the function
2036 definition does.
2037
e6cba650
DN
2038 Remove extern declarations from .c files, and them to .h files.
2039 * keyboard.h (Qhelp_echo, waiting_for_input)
2040 (input_available_clear_time, ignore_mouse_drag_p)
2041 (Vdouble_click_time, real_this_command, Vthis_original_command):
2042 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2043 (Voverriding_local_map_menu_flag):
2044 * lisp.h (Qinteractive_form, use_file_dialog)
2045 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2046 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2047 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2048 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2049 (Qfunction, debug_on_next_call, Qfield)
2050 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2051 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2052 (Qfile_directory_p, Qinsert_file_contents)
2053 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2054 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2055 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2056 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2057 (Qminibuffer_prompt)
2058 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2059 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2060 (gray_bitmap_bits, xic_create_fontsetname):
2061 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2062
2063 * xsmfns.c (Vuser_login_name):
2064 * xrdb.c (Vdouble_click_time):
2065 * xfaces.c (xic_create_fontsetname):
2066 * w32select.c (waiting_for_input):
2067 * print.c (minibuffer_auto_raise):
2068 * msdos.c (Qhelp_echo):
2069 * macros.c (real_this_command):
2070 * keymap.c (Voverriding_local_map):
2071 * xterm.c (poll_for_input_1, gray_bitmap_width)
2072 (gray_bitmap_height, gray_bitmap_bits;
2073 * xmenu.c ( Voverriding_local_map)
2074 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2075 (use_file_dialog, Xt_app_con):
2076 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2077 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2078 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2079 (Qtool_bar_lines, ignore_mouse_drag_p):
2080 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2081 (Qrear_nonsticky, nconc2):
2082 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2083 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2084 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2085 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2086 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2087 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2088 (gc_in_progress):
2089 * doc.c (Voverriding_local_map, Qremap):
2090 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2091 (Vcompletion_regexp_list):
2092 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2093 (Qcompletion_ignore_case):
2094 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2095 (Vhistory_length, Vthis_original_command, real_this_command)
2096 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2097 * image.c (Qrisky_local_variable):
2098 * fontset.c (QCname):
2099 * fns.c (minibuffer_auto_raise, QCname):
2100 * dispnew.c (char_ins_del_cost):
2101 * composite.c (font_fill_lglyph_metrics):
2102 * cmds.c (Qface, Vtranslation_table_for_input):
2103 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2104 * ccl.c (charset_unicode):
2105 * callproc.c (Vtemporary_file_directory):
2106 * buffer.c (emacs_strerror): Remove extern declarations.
2107
2108 * data.c (Qwindow): Make non-static, used from other files too.
2109 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2110
76fd1ee9
DN
2111 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2112 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2113 * s/usg5-4.h (COFF):
2114 * s/template.h:
2115 * s/msdos.h (COFF, NO_REMAP):
2116 * s/ms-w32.h (NO_REMAP):
2117 * s/hpux10-20.h (NO_REMAP):
2118 * m/sparc.h (SEGMENT_MASK):
2119 * m/m68k.h (NO_REMAP):
2120 * m/intel386.h (SEGMENT_MASK):
2121 * m/arm.h (NO_REMAP):
2122 * m/alpha.h (COFF):
2123 * m/template.h: Remove references to unused defines.
2124
8a52f00a
JD
21252010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2126
2127 * xsettings.c (Ftool_bar_get_system_style): Also check for
2128 Qtext_image_horiz.
2129
2130 * xdisp.c (Qtext_image_horiz): Define.
2131 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2132 to documentation of tool-bar-style.
8a52f00a
JD
2133
2134 * lisp.h (Qtext_image_horiz): Declare.
2135
2136 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2137 style text_image_horiz.
2138
89dc303e
DN
21392010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2140
60799703
DN
2141 * emacs.c (Fkill_emacs): Remove return statement.
2142
37254dc1
DN
2143 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2144 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2145 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2146 local extern declarations.
2147
71c7345a
DN
2148 * xmenu.c: Do not included lwlib.h, not needed.
2149
6ba577cb
DN
2150 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2151
fdb183d6
DN
2152 * process.c: Move definitions earlier to minimize #ifdefs.
2153
2154 * xterm.h (x_get_customization_string, x_load_resources)
2155 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2156 (x_check_errors, x_property_data_to_lisp, defined_color)
2157 (xic_set_xfontset, x_defined_color): Use const.
2158
2159 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2160 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2161
2162 * xselect.c (selection_data_to_lisp_data)
2163 (x_property_data_to_lisp):
2164 * xrdb.c (x_get_string_resource, file_p)
2165 (x_get_customization_string, magic_file_p, search_magic_path)
2166 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2167 (x_get_string_resource): Use const.
2168
2169 * xfns.c: Include xlwmenu.h when USE_LUCID.
2170 (x_defined_color, xic_set_xfontset): Use const.
2171 (Fx_hide_tip): Remove local extern declaration.
2172
2173 * xfaces.c (Qmouse_face): Remove declaration.
2174 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2175 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2176
2177 * xdisp.c (do_mouse_tracking): Remove declaration.
2178 (add_to_log): Use const.
2179
2180 * minibuf.c (Qmouse_face): Remove declaration.
2181
2182 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2183
2184 * keyboard.h (do_mouse_tracking): Add declaration.
2185
2186 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2187 (QCdata, QCtype, Qcenter): Remove declarations.
2188
2189 * frame.c (x_get_resource_string, x_get_string_resource)
2190 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2191 (x_default_parameter): Use const.
2192
2193 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2194 (QCheight, QCsize, QCname): Remove declarations.
2195
2196 * emacs.c (main): Remove local extern declaration.
2197
2198 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2199 declarations.
2200
2201 * dispnew.c: Remove duplicate #include <unistd.h>.
2202 (update_window, update_frame_1, init_display): Remove local extern
2203 declarations.
2204
2205 * dispextern.h (add_to_log): Remove declaration.
2206 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2207 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2208
2209 * dired.c (scmp): Add const.
2210 (directory_files_internal): Remove local extern declaration.
2211
2212 * data.c (Finteractive_form): Use const.
2213
2214 * composite.c (syms_of_composite): Remove local extern declarations.
2215
2216 * charset.c (add_to_log): Remove declaration.
2217
2218 * character.c (strwidth, parse_str_to_multibyte): Add const.
2219
2220 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2221
2222 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2223
89dc303e 2224 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2225 (Lisp_Subr): Make doc and intspec constant.
2226 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2227 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2228 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2229 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2230 (display_arg): Add declarations.
89dc303e 2231
0ed082fe 22322010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2233
2234 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2235
0ed082fe
JB
2236 * window.c (Fwindow_height): Doc fix (bug#6518).
2237
22382010-07-27 Juanma Barranquero <lekktu@gmail.com>
2239
2240 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2241
ccaf0336
DN
22422010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2243
977105dc
DN
2244 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2245 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2246 functions.
2247
f5ada890
DN
2248 * frame.h (Qtty_color_mode): Add declaration.
2249
ccaf0336
DN
2250 * lisp.h (Ftop_level, Fexit_recursive_edit)
2251 (Fabort_recursive_edit): Mark as NO_RETURN.
2252
dfe3c90f
KH
22532010-07-26 Kenichi Handa <handa@m17n.org>
2254
2255 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2256 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2257
7d383292
JB
22582010-07-26 Juanma Barranquero <lekktu@gmail.com>
2259
2260 * lread.c (unreadpure, mapatoms_1): Make static.
2261
da31e629
JB
22622010-07-25 Juanma Barranquero <lekktu@gmail.com>
2263
2264 * terminfo.c (tparam): Fix prototype of tparm.
2265
7bfa6d77
AS
22662010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2267
dcc19aac
AS
2268 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2269 find start of text segment.
2270 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2271 is defined.
2272
7bfa6d77
AS
2273 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2274
63f9a672
KB
22752010-07-25 Ken Brown <kbrown@cornell.edu>
2276
2277 * vm-limit.c (check_memory_limits): Fix previous change;
2278 accidentally reverted an earlier change.
2279
24933075
KB
22802010-07-25 Ken Brown <kbrown@cornell.edu>
2281
2282 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2283 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2284
361358ea
JB
22852010-07-25 Juanma Barranquero <lekktu@gmail.com>
2286
2287 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2288 * dired.c (opendir, readdir): Fix prototypes.
2289 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2290 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2291 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2292 (telldir): Remove declaration.
2293 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2294 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2295 * syssignal.h (strsignal): Fix prototype.
2296 * term.c (tparam): Fix prototype.
2297 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2298 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2299 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2300 and __morecore.
2301 * w32gui.h (XParseGeometry): Fix prototype.
2302 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2303 * w32term.c (my_set_focus): Declare inside #if 0.
2304 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2305 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2306 (drain_message_queue, get_next_msg, post_msg, parse_button)
2307 (ClipboardSequence_Proc): Fix prototypes.
2308 (wait_for_sync): Remove declaration.
2309
630b9592
JB
23102010-07-24 Juanma Barranquero <lekktu@gmail.com>
2311
2312 * w32fns.c (w32_to_x_color): Remove, unused.
2313
6a0d6611
AS
23142010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2315
2316 * lisp.h: Remove leftover P_.
2317
4e8608ff
DN
23182010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2319
2320 * ecrt0.c, unexalpha.c: Remove files, unused.
2321
c8197983
AS
23222010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2323
2324 * cmds.c (internal_self_insert): Make static.
2325 * lisp.h (internal_self_insert): Remove declaration.
2326
97b372d7
JB
23272010-07-23 Juanma Barranquero <lekktu@gmail.com>
2328
33ac0414
JB
2329 * alloc.c (free_float):
2330 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2331 * frame.c (delete_frame_handler):
2332 * ralloc.c (reorder_bloc):
2333 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2334 Remove unused static functions.
2335
94da8397
JB
2336 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2337 it is called only from NS code.
2338
2e6c8532
JB
2339 * w32term.c (my_set_focus): #ifdef away; it is called only from
2340 "#ifdef 0" code.
2341
97b372d7
JB
2342 * w32fns.c (x_edge_detection):
2343 * xfaces.c (may_use_scalable_font_p):
2344 Remove obsolete static declarations.
2345
7c3320d8
JB
23462010-07-20 Juanma Barranquero <lekktu@gmail.com>
2347
2348 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2349 (emacs_blocked_realloc, uninterrupt_malloc):
2350 * fringe.c (w32_reset_fringes):
2351 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2352 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2353 * sound.c (be2hs, do_play_sound):
2354 * vm-limit.c (get_lim_data, ret_lim_data):
2355 * w32term.c (x_free_frame_resources):
2356 * xfaces.c (x_create_gc, x_free_gc):
2357 Convert definitions to standard C.
2358
d5273788
SM
23592010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2360
2361 * eval.c (Feval, Ffuncall): Use the new names.
2362
2363 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2364 (DEFUN): Add braces around the union initialisation and use ## to
2365 specify the right union alternative and avoid a cast.
2366
8d16a259
JB
23672010-07-18 Juanma Barranquero <lekktu@gmail.com>
2368
2369 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2370
3b8eff32
CY
23712010-07-17 Chong Yidong <cyd@stupidchicken.com>
2372
2373 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2374
499322ce
J
23752010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2376
2377 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2378 is related to the menu bar (Bug#6499).
a628ad9d 2379 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2380
f6003da5 23812010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2382
2383 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2384
2385 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2386
2387 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2388 i.e. don't put back ButtonRelease (Bug#6608).
2389
2390 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2391 instead of Window. Call xg_event_is_for_menubar when
2392 USE_GTK (Bug#6499).
2393
2394 * gtkutil.h (xg_event_is_for_menubar): Declare.
2395
2396 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2397
f6003da5 23982010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2399
2400 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2401 when it's the same as the old foreground. (Bug#6609)
2402
23243f29
J
24032010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2404
2405 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2406 widget is non-null (Bug#6645).
2407
2b23d2a6
AS
24082010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2409
01b564ff
AS
2410 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2411 Convert old-style definition.
2412
2b23d2a6
AS
2413 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2414 timestamp argument.
2415
c4affd2c
EZ
24162010-07-15 Eli Zaretskii <eliz@gnu.org>
2417
2418 * fringe.c (update_window_fringes): Restore mistakenly reverted
2419 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2420
cf28cebc
J
24212010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2422
2423 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2424 (SET_SAVED_KEY_EVENT): Remove (not used).
2425 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2426 remove size parameter.
2427 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2428 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2429 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2430 ButtonRelease.
6b2c4bd9
J
2431 (x_set_window_size_1): scroll_bar_actual_width is always
2432 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2433
2434 * xdisp.c (pending_menu_activation): Remove extern declaration.
2435 (prepare_menu_bars): Remove setting of pending_menu_activation.
2436
2437 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2438 (x_activate_menubar): Set popup_activated_flag for Xt also.
2439 Remove setting of pending_menu_activation.
cf28cebc
J
2440 (set_frame_menubar): Remove check of pending_menu_activation.
2441 Declare menubar_size before code. Correct spelling in comment.
2442
f6c1c771
KH
24432010-07-14 Kenichi Handa <handa@m17n.org>
2444
2445 * font.c (font_open_entity): Cancel previous change.
2446 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2447
20477505
EZ
24482010-07-13 Eli Zaretskii <eliz@gnu.org>
2449
77defa9a
EZ
2450 Remove subprocesses #ifdefs.
2451 * process.c <inhibit_sentinels>: Move to the common part.
2452 (Fwaiting_for_user_input_p): Move to the common part; return nil
2453 if async subprocesses aren't supported.
2454 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2455 MS-DOS. Remove "#ifdef subprocesses".
2456 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2457 (gettimeofday): Remove "#ifdef subprocesses".
2458 (wait_without_blocking): Remove function.
2459 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2460 Remove "#ifdef subprocesses".
2461 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2462 compiled on MS-DOS.
2463 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2464 wait_for_termination on MS-DOS.
2465 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2466 initialization of inhibit_sentinels.
2467 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2468 subprocesses" conditional.
2469 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2470 wait_for_termination, since `buffer' cannot be an integer when
2471 async subprocesses are not supported
2472 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2473 for ifdefing away the call to Fprocess_status.
2474
20477505
EZ
2475 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2476 away the entire body of the function.
2477
b3ffc17c
DN
24782010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2479
01faa934
DN
2480 Remove subprocesses #ifdefs from term.c.
2481 * process.c (add_keyboard_wait_descriptor)
2482 (delete_keyboard_wait_descriptor): Move to common section, do
2483 nothing when subprocesses is not defined.
a628ad9d
JB
2484 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2485 Remove subprocesses #ifdefs.
01faa934 2486
b3ffc17c
DN
2487 Convert maybe_fatal to standard C.
2488 * lisp.h (verror): Declare.
2489 * eval.c (verror): New function containing the code from ...
2490 (error): ... this. Call verror.
2491 * term.c (vfatal): New function containing the code from ...
2492 (fatal): ... this. Call vfatal.
2493 (maybe_fatal): Convert to standard C, use variable number of
2494 arguments. Declare as non-return.
2495 (init_tty): Fix maybe_fatal call.
2496
0521f580
DN
24972010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2498
2499 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2500 (_scroll_bar_note_movement): Convert definitions to standard C.
2501 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2502 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2503
ebd15611
DN
25042010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2505
2506 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2507 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2508 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2509 (xaw_jump_callback, xaw_scroll_callback)
2510 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2511 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2512 definitions to standard C.
2513 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2514 (popup_activate_callback, popup_deactivate_callback)
2515 (menu_highlight_callback, menubar_selection_callback)
2516 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2517 (free_frame_menubar, popup_selection_callback, as)
2518 (create_and_show_popup_menu, dialog_selection_callback)
2519 (create_and_show_dialog):
2520 * xfns.c (hack_wm_protocols, x_window):
2521 * xfaces.c (x_update_menu_appearance):
2522 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2523 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2524 (set_frame_size, update_wm_hints, setup_frame_gcs)
2525 (update_various_frame_slots, update_from_various_frame_slots)
2526 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2527 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2528 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2529
de06a2dd
AS
25302010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2531
a628ad9d 2532 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2533
fc549af9
EZ
25342010-07-12 Eli Zaretskii <eliz@gnu.org>
2535
2536 * process.c (setup_process_coding_systems): Move to the part
2537 shared by non-subprocesses systems, and make its body empty when
2538 subprocesses is not defined.
2539 (close_process_descs): Move to the part shared by non-subprocesses
2540 systems.
1408902e
EZ
2541 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2542 ANSI C.
fc549af9 2543
d5a3eaaf
AS
25442010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2545
2546 * editfns.c (transpose_markers): Convert old-style definition.
2547 * emacs.c (abort, shut_down_emacs, fixup_locale)
2548 (synchronize_system_time_locale)
2549 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2550 * floatfns.c (extract_float, matherr, init_floatfns)
2551 (syms_of_floatfns): Likewise.
2552 * fns.c (make_hash_table): Likewise.
2553 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2554 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2555 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2556 (ftfont_variation_glyphs): Likewise.
2557 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2558 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2559 * lread.c (read_filtered_event): Likewise.
2560 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2561 * process.c (wait_reading_process_output): Likewise.
2562 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2563 * search.c (search_buffer, boyer_moore): Likewise.
2564 * syntax.c (scan_sexps_forward): Likewise.
2565 * xdisp.c (try_scrolling): Likewise.
2566 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2567 (face_at_string_position): Likewise.
2568 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2569 * xselect.c (x_get_window_property, receive_incremental_selection)
2570 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2571 Likewise.
2572 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2573
6f704c76
DN
25742010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2575
ded80a25
DN
2576 * callproc.c (child_setup): Remove subprocesses conditional.
2577 Remove code dealing with SET_EMACS_PRIORITY, unused.
2578
49d937f4 2579 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2580 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2581
2582 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2583 (__do_global_dtors, __main): Use void in definition.
2584 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2585 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2586 the only users from ...
2587 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2588 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2589 (HAVE_VOLATILE): Remove, unused.
2590
6f704c76
DN
2591 Convert more function definitions to standard C.
2592 * xdisp.c (window_box_edges, handle_single_display_spec)
2593 (display_string): Convert definition to standard C.
2594 * scroll.c (do_direct_scrolling, scrolling_1):
2595 * dispnew.c (allocate_matrices_for_frame_redisplay)
2596 (mirrored_line_dance):
2597 * coding.c (code_convert_string):
2598 * charset.c (map_charset_chars):
2599 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2600 (Fregister_ccl_program, Fregister_code_conversion_map):
2601 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2602 (head_table): Make static and const.
2603
e6cfa7c3
AS
26042010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2605
2606 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2607 (PROFILING_LDFLAGS): Set from substitution.
2608 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2609 CFLAGS last.
2610
892dd565
KH
26112010-07-12 Kenichi Handa <handa@m17n.org>
2612
6f2cdcd1
KH
2613 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2614 (shortlisp): Likewise.
2615
892dd565
KH
2616 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2617
2618 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2619 of FONT_ENTITY_INDEX.
2620 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2621 property, get the property value dynamically.
2622 (Ffont_put): Accept font-entity and font-object too.
2623 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2624 return value changed.
2625 (syms_of_font): Adjusted for the above change.
2626
ae96d47a
AS
26272010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2628
c8fc18ee
AS
2629 * blockinput.h: Remove obsolete comment.
2630
89887d67
AS
2631 * lisp.h: Include <stddef.h>.
2632 (OFFSETOF): Don't define.
2633 (VECSIZE): Use offsetof instead of OFFSETOF.
2634 (PSEUDOVECSIZE): Likewise.
2635 * process.c (conv_sockaddr_to_lisp): Likewise.
2636 * alloc.c: Don't include <stddef.h>.
2637 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2638
ae96d47a
AS
2639 * process.c: Remove obsolete comment.
2640
635c0aa1
CY
26412010-07-11 Chong Yidong <cyd@stupidchicken.com>
2642
2643 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2644
a64df650
AS
26452010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2646
8966b757
AS
2647 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2648 index, rindex.
2649 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2650 * editfns.c (Fuser_full_name, Fformat): Likewise.
2651 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2652 * fileio.c (Ffile_symlink_p): Likewise.
2653 * filelock.c (current_lock_owner): Likewise.
2654 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2655 * fontset.c (fontset_pattern_regexp): Likewise.
2656 * lread.c (read1): Likewise.
2657 * sysdep.c (init_system_name): Likewise.
2658 * xfns.c (select_visual): Likewise.
2659 * s/hpux10-20.h (index, rindex): Don't define.
2660 * s/ms-w32.h (index): Likewise.
2661 * s/usg5-4.h: Likewise.
2662
cf237e27
AS
2663 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2664
a8fe7202
AS
2665 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2666 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2667 (egetenv): Likewise.
2668 * doprnt.c (doprnt): Likewise.
2669 * editfns.c (set_time_zone_rule, format2): Likewise.
2670 * emacs.c (decode_env_path): Likewise.
2671 * eval.c (signal_error, error): Likewise.
2672 * insdel.c (replace_range_2): Likewise.
2673 * keyboard.c (cmd_error_internal): Likewise.
2674 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2675 * print.c (write_string, write_string_1, print_error_message):
2676 Likewise.
2677 * vm-limit.c (warn_function, memory_warnings): Likewise.
2678 * xdisp.c (message1, message1_nolog, message_with_string)
2679 (vmessage, message, message_nolog): Likewise.
2680 * emacs.c: Remove duplicate declaration.
2681 * keyboard.h: Likewise.
2682 * lisp.h: Update prototypes.
2683
bb8e180f
AS
2684 * eval.c: Fix indentation problem.
2685
83380e65
AS
2686 * keyboard.c: Include "process.h"
2687
a64df650
AS
2688 * eval.c: Remove obsolete noinline declaration.
2689 * fns.c: Likewise.
2690
6a8033e1
KR
26912010-07-11 Ken Raeburn <raeburn@raeburn.org>
2692
2693 * doprnt.c (doprnt): Take a va_list argument instead of count and
2694 pointer.
2695 * eval.c (error): Change to a standard-C variadic function.
2696 * xdisp.c (vmessage): Renamed from message, made static, and
2697 changed to take a va_list argument.
2698 (message): New variadic wrapper.
2699 (message_nolog): Now a variadic function, calling vmessage.
2700 * lisp.h: Include stdarg.h for va_list.
2701 (doprnt, error, message, message_nolog): Decls updated.
2702
462aa963
EZ
27032010-07-11 Eli Zaretskii <eliz@gnu.org>
2704
2705 * process.c (syms_of_process) <delete-exited-processes>: Define
2706 even if !subprocesses.
2707 (delete_exited_processes): Ditto.
2708
2709 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2710 (delete_exited_processes): Don't define.
2711
48104462
CY
27122010-07-10 Chong Yidong <cyd@stupidchicken.com>
2713
2714 * frame.c (make_frame): Initialize menu_bar_lines and
2715 tool_bar_lines members.
2716 (make_initial_frame, make_terminal_frame): Initialize
2717 menu_bar_lines using value of menu-bar-mode.
2718
2719 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2720
f388c88a
EZ
27212010-07-10 Eli Zaretskii <eliz@gnu.org>
2722
2723 * process.c: Reshuffle #include's. Condition some of the global
2724 and static variables on `subprocesses'.
2725 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2726 Leave only one implementation.
2727 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2728 (kill_buffer_processes, Flist_system_processes)
2729 (Fprocess_attributes, init_process, syms_of_process): Unify the
2730 implementations for with subprocesses and without them.
2731
723f5a07
J
27322010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2733
2734 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2735 correct size for Motif.
2736 (free_frame_menubar): Call x_set_window_size to update frame size.
2737
2738 * xfns.c (x_window): Set borderWidth to 0 for pane and
2739 EmacsFrame. Frame size calculation is wrong otherwise.
2740
2536a4b7
MA
27412010-07-09 Michael Albinus <michael.albinus@gmx.de>
2742
2743 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2744 allows to suppress errors when polling in Emacs' main loop.
2745 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2746 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2747 (Fdbus_method_error_internal, Fdbus_send_signal)
2748 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2749 (Fdbus_register_method): Use it. (Bug#6579)
2750
5842a27b
DN
27512010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2752
2753 * alloc.c: Convert DEFUNs to standard C.
2754 * buffer.c:
2755 * bytecode.c:
2756 * callint.c:
2757 * callproc.c:
2758 * casefiddle.c:
2759 * casetab.c:
2760 * category.c:
2761 * character.c:
2762 * charset.c:
2763 * chartab.c:
2764 * cmds.c:
2765 * coding.c:
2766 * composite.c:
2767 * data.c:
2768 * dbusbind.c:
2769 * dired.c:
2770 * dispnew.c:
2771 * doc.c:
2772 * dosfns.c:
2773 * editfns.c:
2774 * emacs.c:
2775 * eval.c:
2776 * fileio.c:
2777 * filelock.c:
2778 * floatfns.c:
2779 * fns.c:
2780 * font.c:
2781 * fontset.c:
2782 * frame.c:
2783 * fringe.c:
2784 * image.c:
2785 * indent.c:
2786 * insdel.c:
2787 * keyboard.c:
2788 * keymap.c:
2789 * lread.c:
2790 * macros.c:
2791 * marker.c:
2792 * menu.c:
2793 * minibuf.c:
2794 * msdos.c:
2795 * nsfns.m:
2796 * nsmenu.m:
2797 * nsselect.m:
2798 * print.c:
2799 * process.c:
2800 * search.c:
2801 * sound.c:
2802 * syntax.c:
2803 * term.c:
2804 * terminal.c:
2805 * textprop.c:
2806 * undo.c:
2807 * w16select.c:
2808 * w32console.c:
2809 * w32fns.c:
2810 * w32font.c:
2811 * w32menu.c:
2812 * w32proc.c:
2813 * w32select.c:
2814 * window.c:
2815 * xdisp.c:
2816 * xfaces.c:
2817 * xfns.c:
2818 * xmenu.c:
2819 * xselect.c:
2820 * xsettings.c:
2821 * xsmfns.c: Likewise.
2822
d568829b
EZ
28232010-07-08 Eli Zaretskii <eliz@gnu.org>
2824
2825 * process.c (kbd_is_on_hold, hold_keyboard_input)
2826 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2827
52214050
J
28282010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2829
2830 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2831 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2832 unless USE_LUCID.
2833
313d9eb2
DN
28342010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2835
a628ad9d
JB
2836 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2837 declaration.
d8825aa3 2838
295d0d8f
DN
2839 Clean up include guards.
2840 * tparam.c: Remove include guards for config.h, string.h and code
2841 that assumes #ifndef emacs.
2842 * termcap.c:
2843 * unexalpha.c:
2844 * sysdep.c:
2845 * filemode.c:
2846 * filelock.c:
2847 * bidi.c: Likewise.
2848
49d9e6b0
DN
2849 Remove prefix-args.c
2850 * prefix-args.c: Remove file.
2851 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2852 * Makefile.in (temacs${EXEEXT}): Remove references to
2853 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2854 (mostlyclean): Remove reference to prefix-args.
2855 (prefix-args): Remove.
2856
313d9eb2
DN
2857 Simplify cstart_of_data, start_of_code and related code.
2858 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2859 (start_of_data): Merge into start_of_data function.
2860 * sysdep.c (start_of_text): Remove. Move simplified versions of
2861 it in the only users: unexaix.c and unexec.c.
2862 (read_input_waiting): Remove local declaration of quit_char.
2863 (start, etext): Remove declarations.
2864 (start_of_data): Merge with the version in mem-limits.h and move
2865 to vm-limits.c.
2866 * vm-limit.c (start_of_data): Merged and simplified version of the
2867 code formerly in mem-limits.h and sysdep.c.
2868 * unexec.c (start): New declaration, moved from sysdep.c.
2869 (start_of_text): Simplified version of the code formerly in sysdep.c.
2870 * unexaix.c (start_of_text): Simplified version of the code
2871 formerly in sysdep.c.
2872 * m/alpha.h (HAVE_TEXT_START): Remove.
2873 (TEXT_START): Move ...
2874 * unexalpha.c (TEXT_START): ... here.
2875 * s/hpux10-20.h (TEXT_START): Remove.
2876 * s/darwin.h (TEXT_START):
2877 * m/mips.h (TEXT_START):
2878 * m/macppc.h (HAVE_TEXT_START):
2879 * m/m68k.h (TEXT_START):
2880 * m/iris4d.h (TEXT_START):
2881 * m/intel386.h (TEXT_START):
2882 * m/ibmrs6000.h (TEXT_START):
2883 * m/ia64.h (HAVE_TEXT_START):
2884 * s/msdos.h (TEXT_START): Likewise.
2885
72af86bd
AS
28862010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2887
2888 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2889 (overrun_check_free, xstrdup, allocate_string)
2890 (allocate_string_data, compact_small_strings, Fmake_string)
2891 (make_unibyte_string, make_multibyte_string)
2892 (make_string_from_bytes, make_specified_string, make_float)
2893 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2894 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2895 memcpy, memmove, memset, memcmp.
2896 * atimer.c (start_atimer, set_alarm): Likewise.
2897 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2898 (mmap_realloc, init_buffer_once): Likewise.
2899 * callint.c (Fcall_interactively): Likewise.
2900 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2901 (getenv_internal_1): Likewise.
2902 * casefiddle.c (casify_object): Likewise.
2903 * ccl.c (ccl_driver): Likewise.
2904 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2905 * charset.c (load_charset_map_from_file)
2906 (load_charset_map_from_file, load_charset_map_from_vector)
2907 (Fdefine_charset_internal): Likewise.
2908 * cm.c (Wcm_clear): Likewise.
2909 * coding.c (decode_eol, decode_coding_object)
2910 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2911 * data.c (Faset): Likewise.
2912 * dired.c (directory_files_internal, file_name_completion_stat):
2913 Likewise.
2914 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2915 (clear_glyph_row, copy_row_except_pointers)
2916 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2917 (save_current_matrix, restore_current_matrix)
2918 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2919 (mirror_line_dance, scrolling_window): Likewise.
2920 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2921 Likewise.
2922 * doprnt.c (doprnt): Likewise.
2923 * editfns.c (Fuser_full_name, make_buffer_string_both)
2924 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2925 * emacs.c (sort_args): Likewise.
2926 * eval.c (Fapply, Ffuncall): Likewise.
2927 * fileio.c (Ffile_name_directory, make_temp_name)
2928 (Fexpand_file_name, search_embedded_absfilename)
2929 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2930 (auto_save_error): Likewise.
2931 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2932 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2933 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2934 (Fmake_hash_table): Likewise.
2935 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2936 * ftfont.c (ftfont_text_extents): Likewise.
2937 * getloadavg.c (getloadavg): Likewise.
2938 * image.c (define_image_type, make_image, make_image_cache)
2939 (x_create_x_image_and_pixmap, xbm_image_p)
2940 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2941 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2942 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2943 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2944 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2945 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2946 Likewise.
2947 * indent.c (scan_for_column, compute_motion): Likewise.
2948 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2949 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2950 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2951 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2952 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2953 (store_user_signal_events, menu_bar_items, tool_bar_items)
2954 (process_tool_bar_item, append_tool_bar_item)
2955 (read_char_minibuf_menu_prompt, read_key_sequence)
2956 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2957 Likewise.
2958 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2959 Likewise.
2960 * lisp.h (STRING_COPYIN): Likewise.
2961 * lread.c (Fload, read1, oblookup): Likewise.
2962 * msdos.c (Frecent_doskeys): Likewise.
2963 * nsfns.m (Fx_create_frame): Likewise.
2964 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2965 Likewise.
2966 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2967 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2968 Likewise.
2969 * nsmenu.m (ns_update_menubar): Likewise.
2970 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2971 * print.c (print_unwind, printchar, strout, print_string)
2972 (print_error_message): Likewise.
2973 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2974 (Fmake_network_process, Fnetwork_interface_list)
2975 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2976 (init_process): Likewise.
2977 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2978 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2979 Likewise.
2980 * scroll.c (do_scrolling, do_direct_scrolling)
2981 (scrolling_max_lines_saved): Likewise.
2982 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2983 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2984 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2985 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2986 (emacs_set_tty): Likewise.
2987 * term.c (encode_terminal_code, calculate_costs)
2988 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2989 Likewise.
2990 * termcap.c (tgetst1, gobble_line): Likewise.
2991 * termhooks.h (EVENT_INIT): Likewise.
2992 * tparam.c (tparam1): Likewise.
2993 * unexalpha.c (unexec): Likewise.
2994 * unexec.c (write_segment): Likewise.
2995 * unexmacosx.c (unexec_write_zero): Likewise.
2996 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2997 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2998 * w32font.c (w32font_list_family, w32font_text_extents)
2999 (w32font_list_internal, w32font_match_internal)
3000 (w32font_open_internal, compute_metrics, Fx_select_font):
3001 Likewise.
3002 * w32menu.c (set_frame_menubar, add_menu_item)
3003 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3004 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3005 * w32uniscribe.c (uniscribe_list_family): Likewise.
3006 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3007 * window.c (make_window, replace_window, set_window_buffer)
3008 (Fsplit_window): Likewise.
3009 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3010 (add_to_log, message3, x_consider_frame_title)
3011 (append_space_for_newline, extend_face_to_end_of_line)
3012 (decode_mode_spec_coding, init_glyph_string): Likewise.
3013 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3014 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3015 (face_attr_equal_p, make_realized_face, make_face_cache)
3016 (free_realized_faces, lookup_named_face, smaller_face)
3017 (face_with_height, lookup_derived_face)
3018 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3019 (Finternal_set_font_selection_order, realize_default_face)
3020 (compute_char_face, face_at_buffer_position)
3021 (face_for_overlay_string, face_at_string_position, merge_faces):
3022 Likewise.
3023 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3024 (Fx_window_property, x_create_tip_frame)
3025 (Fx_backspace_delete_keys_p): Likewise.
3026 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3027 (xfont_text_extents): Likewise.
3028 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3029 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3030 * xselect.c (x_queue_event, x_get_window_property)
3031 (receive_incremental_selection): Likewise.
3032 * xsmfns.c (x_session_check_input): Likewise.
3033 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3034 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3035 Likewise.
3036 * character.h (BCOPY_SHORT): Removed.
3037 * config.in: Regenerate.
3038 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3039 * emacs.c (main) [PROFILING]: Don't declare
3040 dump_opcode_frequencies.
3041 * lisp.h (safe_bcopy): Remove declaration.
3042 (memset) [!HAVE_MEMSET]: Declare.
3043 (memcpy) [!HAVE_MEMCPY]: Likewise.
3044 (memmove) [!HAVE_MEMMOVE]: Likewise.
3045 (memcmp) [!HAVE_MEMCMP]: Likewise.
3046 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3047 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3048 Don't define.
3049 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3050 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3051 (BCOPY_DOWNWARD_SAFE): Don't define.
3052 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3053 (memcpy) [!HAVE_MEMCPY]: Define.
3054 (memmove) [!HAVE_MEMMOVE]: Define.
3055 (memcmp) [!HAVE_MEMCMP]: Define.
3056
cb768704
J
30572010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3058
3059 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3060 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3061 New functions.
cb768704
J
3062 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3063 select on empty input mask.
3064 (init_process): Initialize kbd_is_on_hold to 0.
3065
3066 * process.h (hold_keyboard_input, unhold_keyboard_input)
3067 (kbd_on_hold_p): Declare.
3068
3069 * keyboard.c (input_available_signal): Declare.
3070 (kbd_buffer_nr_stored): New function.
3071 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3072 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3073 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3074 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3075 (tty_read_avail_input): If input is on hold, return.
3076 Don't read more that free slots in kbd_buffer (Bug#6571).
3077
3a8ce822
EZ
30782010-07-07 Eli Zaretskii <eliz@gnu.org>
3079
3080 * msdos.h:
3081 * msdos.c:
3082 * dosfns.c:
3083 * w16select.c: Convert function definitions to ANSI C.
3084
a628ad9d
JB
3085 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3086 Remove unused prototypes.
3a8ce822 3087
cf84bb53
JB
30882010-07-07 Juanma Barranquero <lekktu@gmail.com>
3089
3090 * coding.c, sysdep.c: Convert some more functions to standard C.
3091
1a4990fb
JB
30922010-07-07 Juanma Barranquero <lekktu@gmail.com>
3093
3094 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3095 (encode_coding_object): Use SPECPDL_INDEX.
3096 (syms_of_coding): Use DOS_NT.
3097
c0f2f16b
DN
30982010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3099
48fb6855
DN
3100 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3101
c0f2f16b
DN
3102 Make the function member of Lisp_Subr use standard C prototypes.
3103 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3104 (DECL_ALIGN): Add a cast for the function.
3105 * eval.c (Feval, Ffuncall): Use the proper type for each type
3106 function call.
3107
67aecef9
CY
31082010-07-06 Chong Yidong <cyd@stupidchicken.com>
3109
3110 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3111 fringe face id, so face-remapping-alist works (Bug#6091).
3112
b56ceb92
JB
31132010-07-06 Juanma Barranquero <lekktu@gmail.com>
3114
3115 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3116 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3117 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3118
7af07b96
AS
31192010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3120
3121 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3122 * lisp.h: Declare x_get_keysym_name.
3123 * keyboard.c (modify_event_symbol): Don't declare
3124 x_get_keysym_name here.
3125
69e24e34
DN
31262010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3127
3128 * ecrt0.c: Revert conversion to standard C.
3129
d3da34e0 31302010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3131
3132 * vm-limit.c (memory_warnings):
3133 * keyboard.c (modify_event_symbol):
3134 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3135 (round2, emacs_rint):
3136 * process.c (send_process, old_sigpipe): Convert function
3137 definitions and declarations to standard C.
3138
31392010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3140
3141 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3142 * xdisp.c: Convert function definitions to standard C.
3143
3144 * cm.c (cmputc): Arg C is now int, not char.
3145 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3146
00be444c
J
31472010-07-05 James Cloos <cloos@jhcloos.com>
3148
3149 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3150
3151 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3152 _NET_WM_ICON_NAME atoms.
3153
3154 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3155 and _NET_WM_ICON_NAME properties, too, matching what is
3156 done in the Gtk+ case.
3157
e4c8d29a
J
31582010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3159
ff919460
J
3160 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3161
e4c8d29a
J
3162 * xsmfns.c (SSDATA): New macro.
3163 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3164 passed to strlen/strcpy/strcat.
3165 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3166 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3167
3168 * xsettings.c (something_changedCB, parse_settings)
3169 (apply_xft_settings): Reformat prototype.
3170 (something_changedCB, init_gconf): Remove unused variable i.
3171 (read_settings): Remove unused variable long_len.
3172
3173 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3174 (xg_get_image_for_pixmap, create_dialog)
3175 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3176 (menuitem_highlight_callback, make_menu_item)
3177 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3178 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3179 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3180 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3181 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3182 (xg_tool_bar_item_expose_callback): Reformat prototype.
3183 (xg_update_menubar): GList *group => GSList *group.
3184 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3185 before use.
3186 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3187 to GTK_IMAGE (wimage).
3188
dd4c5104
DN
31892010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3190
898b4c5c
DN
3191 * atimer.c: Use "" instead of <> for local includes for
3192 consistency with the rest of the code.
3193
dd4c5104
DN
3194 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3195 * xrdb.c (get_system_name):
3196 * window.c (shrink_windows):
3197 * syntax.c (forw_comment):
3198 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3199 (ins_del_costs):
3200 * mem-limits.h (start_of_data):
3201 * lread.c (readevalloop):
3202 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3203 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3204 * frame.c (x_get_focus_frame):
3205 * floatfns.c (fmod_float):
3206 * fileio.c (choose_write_coding_system):
3207 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3208 (malloc_initialize_hook, sort_args, synchronize_locale):
3209 * doprnt.c (doprnt):
3210 * dired.c (compile_pattern):
3211 * data.c (fmod_float):
3212 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3213 (map_char_table_for_charset):
3214 * charset.c (define_charset_internal):
3215 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3216 to standard C.
3217
9a39b306 32182010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3219 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3220
3221 * lread.c (read1): Fix up last change to not mess up `c'.
3222
e6cb2cbb
JB
32232010-07-04 Juanma Barranquero <lekktu@gmail.com>
3224
3225 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3226
438105ed
JB
32272010-07-04 Juanma Barranquero <lekktu@gmail.com>
3228
3229 Fix prototypes.
3230
e5447b22 3231 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3232 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3233 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3234 arg, as required by internal_condition_case_1.
dcc7404b 3235 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3236 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3237 (analyse_first): Fix "const const".
e5447b22 3238 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3239 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3240 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3241
971de7fb
DN
32422010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3243
3244 * alloc.c: Convert function definitions to standard C.
3245 * atimer.c:
3246 * bidi.c:
3247 * bytecode.c:
3248 * callint.c:
3249 * callproc.c:
3250 * casefiddle.c:
3251 * casetab.c:
3252 * category.c:
3253 * ccl.c:
3254 * character.c:
3255 * charset.c:
3256 * chartab.c:
3257 * cmds.c:
3258 * coding.c:
3259 * composite.c:
3260 * data.c:
3261 * dbusbind.c:
3262 * dired.c:
3263 * dispnew.c:
3264 * doc.c:
3265 * doprnt.c:
3266 * ecrt0.c:
3267 * editfns.c:
3268 * fileio.c:
3269 * filelock.c:
3270 * filemode.c:
3271 * fns.c:
3272 * font.c:
3273 * fontset.c:
3274 * frame.c:
3275 * fringe.c:
3276 * ftfont.c:
3277 * ftxfont.c:
3278 * gtkutil.c:
3279 * indent.c:
3280 * insdel.c:
3281 * intervals.c:
3282 * keymap.c:
3283 * lread.c:
3284 * macros.c:
3285 * marker.c:
3286 * md5.c:
3287 * menu.c:
3288 * minibuf.c:
3289 * prefix-args.c:
3290 * print.c:
3291 * ralloc.c:
3292 * regex.c:
3293 * region-cache.c:
3294 * scroll.c:
3295 * search.c:
3296 * sound.c:
3297 * strftime.c:
3298 * syntax.c:
3299 * sysdep.c:
3300 * termcap.c:
3301 * terminal.c:
3302 * terminfo.c:
3303 * textprop.c:
3304 * tparam.c:
3305 * undo.c:
3306 * unexelf.c:
3307 * window.c:
3308 * xfaces.c:
3309 * xfns.c:
3310 * xfont.c:
3311 * xftfont.c:
3312 * xgselect.c:
3313 * xmenu.c:
3314 * xrdb.c:
3315 * xselect.c:
3316 * xsettings.c:
3317 * xsmfns.c:
3318 * xterm.c: Likewise.
3319
ae492bec
EZ
33202010-07-03 Eli Zaretskii <eliz@gnu.org>
3321
76ea4cc9
EZ
3322 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3323 frames other than the initial one. Fix reversal of colors when
3324 `reverse' is specified in the frame parameters. Call
3325 update_face_from_frame_parameter instead of
3326 internal-set-lisp-face-attribute. Initialize screen colors from
3327 initial_screen_colors[] when f->default_face_done_p is zero,
3328 instead of depending on being called with default-frame-alist as
3329 the alist argument.
3330
3331 * xfaces.c (update_face_from_frame_parameter): Move out of
3332 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3333 with HAVE_WINDOW_SYSTEM.
3334
1e6255ae
EZ
3335 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3336 to menu-bar-mode, if not set in the frame parameters or in
3337 default-frame-alist.
3338
ae492bec
EZ
3339 * w32console.c (sys_tputs): Adjust argument list to prototype in
3340 term.c.
3341
3a35a84c
JB
33422010-07-03 Juanma Barranquero <lekktu@gmail.com>
3343
3344 * lisp.h (memory_warnings): Fix prototype.
3345
3346 * cm.h (evalcost): Fix prototype.
3347
3348 * cm.c (evalcost): Fix arg type.
3349
c532d349
DN
33502010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3351
3352 * term.c (term_clear_mouse_face, Fidentity):
3353 * syssignal.h (signal_handler_t):
3354 * lisp.h (memory_warnings):
3355 * coding.h (preferred_coding_system):
3356 * cm.h (evalcost):
3357 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3358
c0b36d46
EZ
33592010-07-02 Eli Zaretskii <eliz@gnu.org>
3360
3361 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3362 from prototypes.
3363
3364 * msdos.h (load_pixmap): Don't define away.
3365
383e0970
J
33662010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3367
f57e2426
J
3368 * lisp.h:
3369 * atimer.h: Remove define for P_.
3370
3371 * alloc.c: Remove __P and P_ from .c and .m files.
3372 * atimer.c:
3373 * buffer.c:
3374 * callint.c:
3375 * category.c:
3376 * charset.c:
3377 * chartab.c:
3378 * cm.c:
3379 * coding.c:
3380 * composite.c:
3381 * data.c:
3382 * dired.c:
3383 * dispnew.c:
3384 * doc.c:
3385 * editfns.c:
3386 * emacs.c:
3387 * eval.c:
3388 * fileio.c:
3389 * filelock.c:
3390 * fns.c:
3391 * font.c:
3392 * fontset.c:
3393 * frame.c:
3394 * ftfont.c:
3395 * ftxfont.c:
3396 * gmalloc.c:
3397 * gtkutil.c:
3398 * image.c:
3399 * indent.c:
3400 * intervals.c:
3401 * keyboard.c:
3402 * keymap.c:
3403 * lread.c:
3404 * marker.c:
3405 * menu.c:
3406 * minibuf.c:
3407 * print.c:
3408 * process.c:
3409 * scroll.c:
3410 * search.c:
3411 * sound.c:
3412 * strftime.c:
3413 * syntax.c:
3414 * sysdep.c:
3415 * term.c:
3416 * terminal.c:
3417 * textprop.c:
3418 * unexalpha.c:
3419 * w32console.c:
3420 * w32fns.c:
3421 * w32font.c:
3422 * w32menu.c:
3423 * w32term.c:
3424 * w32uniscribe.c:
3425 * window.c:
3426 * xdisp.c:
3427 * xfaces.c:
3428 * xfns.c:
3429 * xfont.c:
3430 * xftfont.c:
3431 * xmenu.c:
3432 * xselect.c:
3433 * xterm.c: Likewise.
3434
383e0970 3435 Remove P_ and __P macros.
f57e2426
J
3436 * atimer.h: Remove P_ and __P macros.
3437 * buffer.h:
383e0970
J
3438 * category.h:
3439 * ccl.h:
3440 * character.h:
3441 * charset.h:
3442 * cm.h:
3443 * coding.h:
3444 * composite.h:
3445 * dispextern.h:
3446 * disptab.h:
9e892c8d 3447 * dosfns.h:
383e0970
J
3448 * font.h:
3449 * fontset.h:
3450 * frame.h:
3451 * gtkutil.h:
3452 * indent.h:
3453 * intervals.h:
3454 * keyboard.h:
3455 * keymap.h:
3456 * lisp.h:
3457 * macros.h:
3458 * md5.h:
3459 * menu.h:
3460 * msdos.h:
3461 * nsterm.h:
3462 * puresize.h:
3463 * region-cache.h:
3464 * syntax.h:
3465 * syssignal.h:
3466 * systime.h:
3467 * termhooks.h:
9e892c8d 3468 * w32font.h:
383e0970
J
3469 * w32term.h:
3470 * widget.h:
3471 * window.h:
3472 * xgselect.h:
3473 * xsettings.h:
3474 * xterm.h: Likewise.
3475
98601119
DN
34762010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3477
d9170db5
DN
3478 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3479
98601119
DN
3480 Cleanup old code.
3481 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3482 * syssignal.h: Remove code for Lynx, not supported anymore.
3483 * vm-limit.c: Remove unused code the depends on emacs not being
3484 defined and NO_LIM_DATA being defined.
3485 * mem-limits.h: Remove dead code.
3486
1f984e12
J
34872010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3488
c49d071a
J
3489 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3490
9d5405ec
J
3491 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3492 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3493
7a18115b
J
3494 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3495 parameters, they are already absolute.
3496
a628ad9d
JB
3497 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3498 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3499
a628ad9d 3500 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3501
a628ad9d
JB
3502 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3503 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3504
a628ad9d
JB
3505 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3506 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3507
c1ef4455
CY
35082010-06-30 Chong Yidong <cyd@stupidchicken.com>
3509
3510 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3511 check default-frame-alist.
3512
ce8f5a9a
AS
35132010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3514
3515 * process.c (create_process): Avoid using invalid file descriptors.
3516
3517 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3518
bf935339
J
35192010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3520
3521 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3522 Improve documentation. Return font regardless of use_system_font.
3523 (syms_of_xsettings): Improve documentation for font-use-system-font.
3524
7c33a057
CY
35252010-07-10 Chong Yidong <cyd@stupidchicken.com>
3526
2ec1b5ee
CY
3527 * xfaces.c (realize_face): Garbage the frame if a face is removed
3528 (Bug#6593).
3529
35302010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3531
3532 * keyboard.c: Remove duplicate <setjmp.h>.
3533 (read_key_sequence): Remove volatile qualifiers.
3534
35352010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3536
3537 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3538 (struct glyph_row): New members left_fringe_offset and
3539 right_fringe_offset.
3540
3541 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3542 specially.
3543 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3544 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3545
3546 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3547 Take account of bitmap offset.
2ec1b5ee
CY
3548 (draw_window_fringes): Take account of window vscroll.
3549 (update_window_fringes): Likewise. Extend top-aligned top indicator
3550 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3551 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3552 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3553
35542010-07-04 Juanma Barranquero <lekktu@gmail.com>
3555
3556 * w32fns.c (Qtooltip): Declare.
3557 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3558
35592010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3560
3561 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3562 grab on just Press (Bug#6499).
3563
35642010-07-02 Chong Yidong <cyd@stupidchicken.com>
3565
3566 * frame.c (Qtooltip): New var.
3567 (delete_frame): Use it. Fix faulty if statement. Don't update
3568 mode line for tooltip frames. Suggested by Martin Rudalics.
3569
3570 * xfns.c (x_create_tip_frame):
3571 * w32fns.c (x_create_tip_frame): Use it.
3572
35732010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3574
3575 * xftfont.c (xftfont_open): Check font width one by one also when
3576 spacing is dual.
3577
3578 * ftfont.c (ftfont_open): Ditto.
3579
6259c2ec
GM
35802010-06-30 Glenn Morris <rgm@gnu.org>
3581
a46007e9
GM
3582 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3583
6259c2ec
GM
3584 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3585
3586 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3587 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3588 * s/darwin.h (SYSTEM_MALLOC):
3589 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3590
5d1d3d04
J
35912010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3592
3593 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3594 (ns_get_screen): Don't assign integer to f.
3595 (Fx_display_color_cells): Declarations before statements.
3596
e547b051
J
35972010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3598
5fc8e5bc
J
3599 * xfns.c (x_default_font_parameter): Remove got_from_system
3600 (Bug#6526).
3601
e547b051
J
3602 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3603 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3604 defines based on what configure finds.
3605
3606 * xterm.c (XTflash): Use gtk_widget_get_window.
3607 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3608 gtk_adjustment_get_page_size.
3609 (handle_one_xevent): Use gtk_widget_get_mapped.
3610 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3611 messages.
3612
3613 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3614
3615 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3616 HAVE_GTK_FILE_SELECTION_NEW.
3617
3618 * gtkutil.c (xg_display_open, xg_display_close): Remove
3619 HAVE_GTK_MULTIDISPLAY, it is always defined.
3620 (xg_display_open): Return type is void.
3621 (gtk_widget_set_has_window)
3622 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3623 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3624 (gtk_adjustment_set_page_increment)
3625 (gtk_adjustment_get_step_increment): #define these if not found
3626 by configure.
3627 (remove_submenu): New define based on Gtk+ version.
3628 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3629 gtk_widget_get_window.
3630 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3631 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3632 (create_dialog): Use gtk_dialog_get_action_area and
3633 gtk_dialog_get_content_area.
3634 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3635 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3636 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3637 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3638 g_object_ref and g_object_unref.
3639 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3640 gtk_widget_get_sensitive.
3641 (xg_update_submenu): Use remove_submenu.
3642 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3643 properties instead to get old x and y position.
3644 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3645 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3646 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3647 (xg_get_tool_bar_widgets): New function.
3648 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3649 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3650 (toolbar_set_orientation): New #define based on if configure
3651 finds gtk_orientable_set_orientation.
3652 (xg_create_tool_bar): Call toolbar_set_orientation.
3653 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3654 instead of gtk_box_pack_start_defaults.
3655
b9229673
CY
36562010-06-28 Chong Yidong <cyd@stupidchicken.com>
3657
3658 * cmds.c (Fdelete_backward_char): Move into Lisp.
3659
bbc803b0
DN
36602010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3661
3662 * s/freebsd.h (BSD4_2): Remove redundant definition.
3663 bsd-common.h defines it already.
3664
6431f2e6
CY
36652010-06-27 Chong Yidong <cyd@stupidchicken.com>
3666
3667 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3668 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3669 tool-bar-mode, which are now set using these X resources at
3670 startup, to determine the defaults (Bug#2249).
3671
3672 * w32fns.c (Fx_create_frame):
3673 * nsfns.m (Fx_create_frame): Likewise.
3674
3675 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3676
8c079ebb
JB
36772010-06-24 Juanma Barranquero <lekktu@gmail.com>
3678
3679 * gtkutil.c (xg_update_scrollbar_pos):
3680 Avoid C99 mid-block variable declaration.
3681
e9b7ab96
JD
36822010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3683
bc869eca
JD
3684 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3685
2b7e356a 3686 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3687
3688 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3689 if height is less than scroll bar min size.
3690 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3691
e9b7ab96
JD
3692 * xfns.c (x_default_font_parameter): Try to open font from system
3693 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3694
a628ad9d 36952010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3696
3697 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3698
70c4cfbb
EZ
36992010-06-20 Eli Zaretskii <eliz@gnu.org>
3700
3701 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3702 most-positive-fixnum, be extra accurate when scrolling window
3703 start, to avoid missing the cursor line.
3704
ad5a12b5
EZ
37052010-06-19 Eli Zaretskii <eliz@gnu.org>
3706
3707 * xdisp.c (try_scrolling): Compute the limit for searching point
3708 in forward scroll from scroll_max, instead of an arbitrary limit
3709 of 10 screen lines. See
3710 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3711 and
3712 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3713 for details.
3714
2a64315a 37152010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3716
3717 * editfns.c (Fbyte_to_string): Pacify compiler.
3718
288cf4e9
SM
37192010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3720
3721 * lread.c (read1): Phase out old-style backquotes a bit more.
3722
6e6e5760
EZ
37232010-06-12 Eli Zaretskii <eliz@gnu.org>
3724
cbc4fd20
EZ
3725 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3726 bidimirror.h.
3727
3728 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3729
317fbf33
EZ
3730 * bidi.c (bidi_initialize): Remove explicit initialization of
3731 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3732 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3733 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3734
3735 * biditype.h: New file.
3736
cbc4fd20
EZ
3737 * bidimirror.h: New file.
3738
6e6e5760
EZ
3739 * window.c (syms_of_window): Doc fix (bug#6409).
3740
4176cba2
RF
37412010-06-12 Romain Francoise <romain@orebokech.com>
3742
3743 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3744 ediff-hook.
3745
cb4bfcb5
GM
37462010-06-10 Glenn Morris <rgm@gnu.org>
3747
64c60c2f
GM
3748 * editfns.c (Fbyte_to_string): Pacify compiler.
3749
cb4bfcb5
GM
3750 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3751
2ec1b5ee
CY
37522010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3753
3754 * alloc.c (Fmake_byte_code): Don't access undefined argument
3755 (Bug#6517).
3756
37572010-06-25 Chong Yidong <cyd@stupidchicken.com>
3758
3759 * xdisp.c (next_element_from_image): Ensure that after-strings are
3760 read the next time we hit handle_stop (Bug#1336).
3761
37622010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3763
3764 * lread.c (read1): Signal error if #s is not followed by paren.
3765
37662010-06-19 Chong Yidong <cyd@stupidchicken.com>
3767
3768 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3769
3770 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3771
37722010-06-15 Glenn Morris <rgm@gnu.org>
3773
3774 * editfns.c (Fbyte_to_string): Pacify compiler.
3775
e454a4a3
SM
37762010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3777
3778 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3779 Check `object's type before accessing its guts.
3780
c1b1acc2
DN
37812010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3782
3783 * s/usg5-4.h: Fix previous change.
3784 Suggested by Lawrence Mitchell <wence@gmx.li>
3785
657d4c0b
AS
37862010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3787
3788 * minibuf.c (Fall_completions): Add more checks.
3789
9b27fd9f
JB
37902010-06-08 Juanma Barranquero <lekktu@gmail.com>
3791
3792 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3793
a99ebb40
DN
37942010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3795
d7c5d87d
DN
3796 * lread.c (X_OK): Remove, unused.
3797
0263a941
DN
3798 * dispnew.c: Remove obsolete comment.
3799
a99ebb40
DN
3800 Remove INCLUDED_FCNTL.
3801 * xterm.c (INCLUDED_FCNTL):
3802 * callproc.c (INCLUDED_FCNTL):
3803 * alloc.c (INCLUDED_FCNTL):
3804 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3805 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3806
13b5221f
MR
38072010-06-07 Martin Rudalics <rudalics@gmx.at>
3808
3809 * window.c (Fselect_window): Move `record_buffer' up to the
3810 beginning of this function, so the buffer gets recorded
3811 even if the selected window does not change.
3812 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3813
5220357f
JB
38142010-06-07 Juanma Barranquero <lekktu@gmail.com>
3815
3816 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3817 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3818
3085237c
DN
38192010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3820
3821 Remove BSTRING related code, all platforms define it.
3822 * s/usg5-4.h (BSTRING): Remove definition.
3823 * s/template.h (BSTRING):
3824 * s/msdos.h (BSTRING):
3825 * s/ms-w32.h (BSTRING):
3826 * s/hpux10-20.h (BSTRING):
3827 * s/gnu-linux.h (BSTRING):
3828 * s/darwin.h (BSTRING):
3829 * s/cygwin.h (BSTRING):
3830 * s/bsd-common.h (BSTRING):
3831 * s/aix4-2.h (BSTRING): Likewise.
3832 * sysdep.c: Remove code depending on BSTRING not being defined.
3833
409f2919
JB
38342010-06-05 Juanma Barranquero <lekktu@gmail.com>
3835
3836 Remove obsolete macro BASE_LEADING_CODE_P.
3837 * character.h (BASE_LEADING_CODE_P): Remove.
3838 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3839 * buffer.c (Fset_buffer_multibyte):
3840 * indent.c (scan_for_column, compute_motion):
3841 * insdel.c (count_combining_before, count_combining_after):
3842 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3843
087fc47a
JB
38442010-06-04 Juanma Barranquero <lekktu@gmail.com>
3845
3846 Turn `directory-sep-char' into a noop.
3847
3848 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3849 (DIRECTORY_SEP): Define unconditionally.
3850
3851 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3852
3853 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3854 call dostounix_filename directly.
3855
3856 * fileio.c (CORRECT_DIR_SEPS): Remove.
3857 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3858 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3859 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3860 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3861
3862 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3863 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3864
0eb7675e
AS
38652010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3866
a628ad9d
JB
3867 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3868 (Bug#6346)
0eb7675e 3869
78edd3b7
JB
38702010-06-03 Juanma Barranquero <lekktu@gmail.com>
3871
3872 * ccl.c (Fccl_program_p): Fix typo in docstring.
3873
eb697db5
DN
38742010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3875
3876 Move UNEXEC definition to autoconf.
3877 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3878 * s/sol2-10.h (UNEXEC):
3879 * s/irix6-5.h (UNEXEC):
3880 * s/hpux10-20.h (UNEXEC):
3881 * s/gnu-linux.h (UNEXEC):
3882 * s/darwin.h (UNEXEC):
3883 * s/cygwin.h (UNEXEC):
3884 * s/bsd-common.h (UNEXEC):
3885 * s/aix4-2.h (UNEXEC):
3886 * m/alpha.h (UNEXEC): Likewise.
3887 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3888
aa3830c4
JB
38892010-06-03 Juanma Barranquero <lekktu@gmail.com>
3890
3891 Remove obsolete pre-unicode2 macros.
3892 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3893 * composite.c (composition_reseat_it):
3894 * data.c (Faset):
3895 * fns.c (Ffillarray):
3896 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3897 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3898
d234d13e
JL
38992010-06-03 Juri Linkov <juri@jurta.org>
3900
3901 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3902 (Fswitch_to_buffer): Remove unused variable `err'.
3903
0d4bcf4d
GM
39042010-06-03 Glenn Morris <rgm@gnu.org>
3905
e23dc1e2
GM
3906 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3907
05b09564
GM
3908 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3909 now that AH_BOTTOM does it.
3910
824e2978
GM
3911 * m/hp800.h (HAVE_ALLOCA):
3912 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3913
0d4bcf4d
GM
3914 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3915 Remove NOT_C_CODE tests, it is always true now.
3916
c55d2abf
DN
39172010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3918
08a494a3
DN
3919 Fix config.h includes.
3920 * xsettings.c:
3921 * xgselect.c:
3922 * nsterm.m:
3923 * nsselect.m:
3924 * nsimage.m:
3925 * nsfont.m:
3926 * nsfns.m:
3927 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3928 other files do.
3929
75934b1d
DN
3930 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3931
9f32a766
DN
3932 * s/sol2-6.h: Remove obsolete comments.
3933
c55d2abf
DN
3934 Remove unnecessary alloca.h includes.
3935 * keymap.c: Do not include alloca.h, config.h does that.
3936 * sysdep.c: Likewise. Do not define fwrite, not used.
3937
06ac62b4
SM
39382010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3939
3940 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3941 the HAVE_TERMIO where it belongs (bug#6149).
3942
1ab8293c
SM
39432010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3944
3945 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3946 of bug#6305).
3947
6dcfd253
EZ
39482010-05-30 Eli Zaretskii <eliz@gnu.org>
3949
3950 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3951 state is always cached (bug#6306).
3952
6d26bbb2
EZ
39532010-05-29 Eli Zaretskii <eliz@gnu.org>
3954
06fa4a23
EZ
3955 Fix cursor motion in bidi-reordered continued lines.
3956 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3957 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3958 over continuation lines in bidi-reordered buffers. Return
3959 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3960 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3961
f5783df3
MA
39622010-05-28 Michael Albinus <michael.albinus@gmx.de>
3963
3964 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3965
7d56b2dd
KH
39662010-05-28 Kenichi Handa <handa@m17n.org>
3967
3968 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3969 Don't sheck SPEC if it is nil.
3970 (font_list_entities): Call font_delete_unmatched if
b925d231 3971 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3972
e58d4ff7
GM
39732010-05-28 Glenn Morris <rgm@gnu.org>
3974
3975 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3976
f1a5d776
CY
39772010-05-27 Chong Yidong <cyd@stupidchicken.com>
3978
3979 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3980 whether to trash.
3981 (internal_delete_file, Frename_file): Callers changed.
3982 (delete_by_moving_to_trash): Doc fix.
3983 (Fdelete_directory_internal): Don't move to trash.
3984
3985 * callproc.c (delete_temp_file):
3986 * buffer.c (Fkill_buffer): Callers changed.
3987
3988 * lisp.h: Update prototype.
3989
f44a59e6
CY
39902010-05-27 Chong Yidong <cyd@stupidchicken.com>
3991
3992 * xdisp.c (redisplay_window): After redisplay, check if point is
3993 still valid before setting it (Bug#6177).
3994
81ac4f35
GM
39952010-05-27 Glenn Morris <rgm@gnu.org>
3996
3997 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3998 Convert comments to Makefile format.
3999
4000 * Makefile.in (bootstrap-clean): No more Makefile.c.
4001
ccd89fb3
GM
40022010-05-26 Glenn Morris <rgm@gnu.org>
4003
90278cb6
GM
4004 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4005 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4006
ccd89fb3
GM
4007 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4008 Remove.
4009 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4010
b7050583
KH
40112010-05-26 Kenichi Handa <handa@m17n.org>
4012
4013 * composite.c (composition_compute_stop_pos): Fix condition for
4014 backward scanning.
4015
e5458003
GM
40162010-05-25 Glenn Morris <rgm@gnu.org>
4017
c345fe90
GM
4018 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4019 Move before TEMACS_LDFLAGS.
4020 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4021 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4022
2e0689ab
GM
4023 * Makefile.in (NOT_C_CODE): No longer define.
4024 (config.h): No longer include.
4025
8009a5e8
GM
4026 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4027 variables it may reference.
4028
e5458003
GM
4029 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4030 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4031
10f72a37
KH
40322010-05-25 Kenichi Handa <handa@m17n.org>
4033
4034 * dispextern.h (struct composition_it): New members rule_idx and
4035 charpos.
4036
4037 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4038 that the character positions of IT point the last character of the
4039 current grapheme cluster.
4040 (next_element_from_composition): Don't change character positions
4041 of IT.
4042 (append_composite_glyph): Set glyph->charpos to
4043 it->cmp_it.charpos.
4044
4045 * composite.c (autocmp_chars): Change the first argument to RULE,
4046 and try composition with RULE only.
4047 (composition_compute_stop_pos): Record the index number of the
4048 composition rule in CMP_IT->rule_idx.
4049 (composition_reseat_it): Call autocmp_chars repeatedly until the
4050 correct rule of the composition is found.
4051 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4052 is at the last character of the current grapheme cluster when
4053 CMP_IT->reversed_p is nonzero.
4054
171eda53 40552010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4056
171eda53
SM
4057 * editfns.c (Fbyte_to_string): New function.
4058
66a9f7f4
SM
40592010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4060
4061 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4062 Suggested by Masatake YAMATO <yamato@redhat.com>.
4063
d8c315d1
EZ
40642010-05-23 Eli Zaretskii <eliz@gnu.org>
4065
171eda53 4066 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4067
f5b416d2 40682010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4069
4070 * s/netbsd.h: If terminfo is found, use it in preference to
4071 termcap. (Bug#6190) [Backport from trunk]
4072
0416466c
EZ
40732010-05-19 Eli Zaretskii <eliz@gnu.org>
4074
11117830 4075 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4076
4077 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4078 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4079 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4080 and maxpos members instead of start.pos and end.pos, respectively.
4081
4082 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4083 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4084 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4085 (try_window_reusing_current_matrix, try_window_id):
4086 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4087 (init_from_display_pos, init_iterator): Use EMACS_INT for
4088 character and byte positions.
66a9f7f4 4089 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4090 arguments for minimum and maximum buffer positions seen by
4091 display_line for this row. Don't use iterator to find the
4092 position following the maximum one; instead, increment the
11117830
EZ
4093 position found by display_line directly. Fix logic; eol_pos
4094 should be tested before the rest. Handle the case of characters
4095 delivered from display vector (bug#6036). Fix tests related to
4096 it->method. Handle the truncated_on_right_p rows.
4097 (RECORD_MAX_MIN_POS): New macro.
4098 (display_line): Use it to record the minimum and maximum buffer
4099 positions for glyphs in the row being assembled. Record the
4100 position of the newline that terminates the line. If word wrap is
4101 in effect, restore minimum and maximum positions seen up to the
4102 wrap point, when iterator returns to it.
4103 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4104 row and cursor not already at point. Restore original pre-bidi
4105 code for unidirectional buffers.
d36fe237
EZ
4106
4107 * dispnew.c (increment_row_positions, check_matrix_invariants):
4108 Increment and check row->start.pos and row->end.pos, in addition
4109 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4110
11117830
EZ
4111 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4112 Display truncated_on_left_p and truncated_on_right_p flags.
4113 Formatting fixes.
4114 (pmtxrows): Display the ordinal number of each row. Don't display
4115 rows beyond the last one.
4116
4117 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4118 it is not copied by bidi_copy_it.
4119
6e83d800
EZ
41202010-05-22 Eli Zaretskii <eliz@gnu.org>
4121
4122 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4123 (Bug#6237)
4124
110683ad
CY
41252010-05-22 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * image.c (Fimage_flush): Rename from image-refresh.
4128
98fe5161
CY
41292010-05-21 Chong Yidong <cyd@stupidchicken.com>
4130
4131 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4132 just one window.
4133
4134 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4135 (clear_image_cache): If the number of cached images is unusually
4136 large, decrease the cache eviction delay (Bug#6230).
4137
e8752c66
GM
41382010-05-21 Glenn Morris <rgm@gnu.org>
4139
66dbf213
GM
4140 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4141 Move these rules to ns.mk.
4142 * ns.mk: New file.
4143
04384b2d
GM
4144 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4145
e8752c66
GM
4146 * Makefile.in (CANNOT_DUMP): New, set by configure.
4147 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4148
2e2bbddb
JL
41492010-05-20 Juri Linkov <juri@jurta.org>
4150
4151 * fileio.c (Fdelete_file): Change interative spec to use
4152 `read-file-name' like in `find-file-read-args' where the default
4153 value is `default-directory' instead of `buffer-file-name'.
4154 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4155
31c4aaf6
KR
41562010-05-20 Kevin Ryde <user42@zip.com.au>
4157
4158 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4159 (Voverriding_terminal_local_map, Vsystem_key_alist)
4160 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4161
9d5cf9b6
GM
41622010-05-20 Glenn Morris <rgm@gnu.org>
4163
4164 * Makefile.in (DEPDIR): New constant.
4165 (DEPFLAGS): Set with configure, not cpp.
4166 (MKDEPDIR): New, set by configure.
4167 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4168 (clean): Use $DEPDIR.
4169 (deps_frag): Include from configure.
4170 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4171 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4172
ead6f8f5
EZ
4173 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4174 reallocation of the cache. (Bug#6210)
4175
7f34aec3
GM
41762010-05-19 Glenn Morris <rgm@gnu.org>
4177
d494e8f2
GM
4178 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4179
c1d0dcfd
GM
4180 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4181 (GNULIB_VAR): Remove.
4182 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4183
4184 * m/ibms390x.h (LINKER):
4185 * m/macppc.h (LINKER) [GNU_LINUX]:
4186 * s/aix4-2.h (ORDINARY_LINK):
4187 * s/cygwin.h (LINKER):
4188 * s/darwin.h (ORDINARY_LINK):
4189 * s/gnu.h (ORDINARY_LINK):
4190 * s/netbsd.h (LINKER):
4191 * s/usg5-4.h (ORDINARY_LINK):
4192 Move to configure.
4193
7f34aec3
GM
4194 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4195
754790b6
CY
41962010-05-18 Chong Yidong <cyd@stupidchicken.com>
4197
4198 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4199 prevent stack overflow if number of arguments is too large
4200 (Bug#6214).
4201
161e44d1
JB
42022010-05-18 Juanma Barranquero <lekktu@gmail.com>
4203
4204 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4205
be4ff9da
GM
42062010-05-18 Glenn Morris <rgm@gnu.org>
4207
9539dc5d
GM
4208 * s/gnu-linux.h: Combine two conditionals.
4209
4210 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4211 $(POST_ALLOC_OBJ).
4212
40dc6bf4
GM
4213 * Makefile.in (RALLOC_OBJ): New, set by configure.
4214 (rallocobj): Replace with the previous variable.
4215 (otherobj): Use $RALLOC_OBJ.
4216
4217 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4218 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4219
be4ff9da
GM
4220 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4221 (gmallocobj, vmlimitobj): Replace with previous two variables.
4222 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4223
16455a85
GM
42242010-05-17 Glenn Morris <rgm@gnu.org>
4225
4226 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4227 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4228
5fdb7468
GM
42292010-05-16 Glenn Morris <rgm@gnu.org>
4230
7ca1f3f9
GM
4231 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4232
7541dad5
GM
4233 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4234
da53fab9
GM
4235 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4236 trailing "/".
4237
b02a6645
GM
4238 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4239 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4240
8877ca0f
GM
4241 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4242 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4243 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4244 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4245 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4246
5fdb7468
GM
4247 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4248 Remove ${STARTFLAGS}, nothing ever sets it.
4249
95adb4b1
DN
42502010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4251
4252 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4253
676b6304
GM
42542010-05-16 Glenn Morris <rgm@gnu.org>
4255
9beab9ce
GM
4256 * Makefile.in (LIBX_BASE): Always define.
4257
8a95f0e7
GM
4258 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4259
676b6304
GM
4260 * Makefile.in (LIBXT): Always define.
4261
6e546d18
GM
42622010-05-15 Glenn Morris <rgm@gnu.org>
4263
4235ca47 4264 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4265
6e546d18
GM
4266 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4267 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4268
8c5ff6dd
KR
42692010-05-15 Ken Raeburn <raeburn@raeburn.org>
4270
560bb7ae 4271 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4272 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4273
8b4eb796
KR
4274 * emacs.c (main): Initialize initial-environment and
4275 process-environment before generating from env, not after.
4276
8c5ff6dd
KR
4277 Handle --version reasonably in CANNOT_DUMP configuration.
4278 * emacs.c (emacs_version, emacs_copyright): New string variables.
4279 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4280 (syms_of_emacs): Defvar them, and initialize them from the C
4281 string variables.
4282 (main): If initialization hasn't been done, print initial version
4283 info from the C strings, instead of starting an interactive session.
4284
dbd3f723
EZ
42852010-05-15 Eli Zaretskii <eliz@gnu.org>
4286
d20e1419
EZ
4287 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4288 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4289 (bidi_paragraph_init): Remove redundant assertion that we are at
4290 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4291
4292 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4293 (syms_of_xdisp): Defsubr it.
4294
d36fe237
EZ
4295 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4296
dbd3f723
EZ
4297 * Makefile.in: Fix MSDOS-related comments.
4298
02be533b
GM
42992010-05-15 Glenn Morris <rgm@gnu.org>
4300
1a82cca9
GM
4301 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4302 (really-lwlib, really-oldXMenu): Always define.
4303 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4304
3df7b338
GM
4305 * Makefile.in: Simplify cpp conditional.
4306
2b5f541b
GM
4307 * Makefile.in (${ns_appdir}): Simplify using umask.
4308
02be533b
GM
4309 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4310
4e2db1fe
SM
43112010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4312
4313 * eval.c (specbind): Remove left-over duplicate test.
4314 Disallow let-binding frame-local vars. Add comment.
4315
4b292a22
EZ
43162010-05-14 Eli Zaretskii <eliz@gnu.org>
4317
2fe72643 4318 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4319 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4320 (bidi_init_it): Call it.
4321 (bidi_cache_iterator_state): Enlarge the cache if needed.
4322
4e2db1fe 4323 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4324 bidi_get_next_char_visually. All callers changed.
4325
82ebc97b
KH
43262010-05-14 Kenichi Handa <handa@m17n.org>
4327
4328 * dispextern.h (struct composition_it): New member reversed_p.
4329
4330 * composite.c (composition_compute_stop_pos): Search backward if
4331 ENDPOS < CHARPOS.
4332 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4333 Set CMP_IT->reversed_p.
b4b6e17e 4334 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4335
4e2db1fe
SM
4336 * xdisp.c (set_iterator_to_next):
4337 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4338 scanning backward. Call composition_compute_stop_pos if scan
4339 direction is changed.
4340 (next_element_from_buffer): Call composition_compute_stop_pos with
4341 negative ENDPOS if we are scanning backward.
4342 (next_element_from_composition): Pay attention to
4343 IT->cmp_it.reversed_p.
4344
0e5d7800
KH
43452010-05-14 Kenichi Handa <handa@m17n.org>
4346
560bb7ae 4347 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4348
cb027b32
GM
43492010-05-14 Glenn Morris <rgm@gnu.org>
4350
177b0288
GM
4351 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4352
fbc00890
GM
4353 * Makefile.in (mktime, X11, register): Move undefs to configure.
4354
f14d1dfd
GM
4355 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4356 (MSDOS_X_OBJ): New variable.
4357 (MSDOS_SUPPORT_REAL): New constant.
4358 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4359 (obj): Use MSDOS_X_OBJ.
4360 (lisp): Use MSDOS_SUPPORT as a variable.
4361
11842bd8
GM
4362 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4363 (GPM_MOUSE_SUPPORT): Now it's a constant.
4364 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4365 not cpp.
4366
489d31a4 4367 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4368 (ns_appresdir): Remove, unused.
e20f1f07 4369
489d31a4
GM
4370 * Makefile.in (SHELL): Move outside cpp section.
4371
cb027b32
GM
4372 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4373
5a903aa9
GM
43742010-05-13 Glenn Morris <rgm@gnu.org>
4375
3369c79f
GM
4376 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4377 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4378
d5e982a6
GM
4379 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4380 HAVE_WINDOW_SYSTEM must be too.
4381
6192e163
GM
4382 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4383 (lisp): Remove WINNT_SUPPORT.
4384
472c5d6b
GM
4385 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4386 Let configure set these variables (to empty) in this case as well.
4387
0116466b
GM
4388 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4389 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4390
5a903aa9
GM
4391 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4392 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4393 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4394 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4395 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4396 the values output by configure.
5a903aa9
GM
4397 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4398
1a0d7c06
GM
43992010-05-12 Glenn Morris <rgm@gnu.org>
4400
b5457f14
GM
4401 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4402 (LINKER_WAS_SPECIFIED): Remove.
4403
1a0d7c06
GM
4404 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4405 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4406 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4407 * s/cygwin.h (LIB_GCC):
4408 * s/freebsd.h (LIB_GCC):
4409 * s/gnu-linux.h (LIB_GCC):
4410 * s/msdos.h (LIB_GCC):
4411 * s/netbsd.h (LIB_GCC):
4412 Move to configure.
4413
3ffd4615 44142010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4415
4416 * ftfont.c: Fix incorrect parentheses of #if condition for
4417 definining M17N_FLT_USE_NEW_FEATURE.
4418
acddf8ae
GM
44192010-05-11 Glenn Morris <rgm@gnu.org>
4420
4421 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4422 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4423
ae5e04fa
EZ
44242010-05-10 Eli Zaretskii <eliz@gnu.org>
4425
4426 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4427 unibyte buffers. See
4428 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4429
7490175b
GM
44302010-05-10 Glenn Morris <rgm@gnu.org>
4431
97efb629
GM
4432 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4433 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4434 (LIBES): Use LIBS_SYSTEM as a variable.
4435 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4436 * s/aix4-2.h (LIBS_SYSTEM):
4437 * s/freebsd.h (LIBS_SYSTEM):
4438 * s/hpux10-20.h (LIBS_SYSTEM):
4439 * s/sol2-6.h (LIBS_SYSTEM):
4440 * s/unixware.h (LIBS_SYSTEM):
4441 Move to configure.
4442
7490175b
GM
4443 * s/aix4-2.h (MAIL_USE_LOCKF):
4444 * s/bsd-common.h (MAIL_USE_FLOCK):
4445 * s/darwin.h (MAIL_USE_FLOCK):
4446 * s/gnu-linux.h (MAIL_USE_FLOCK):
4447 * s/irix6-5.h (MAIL_USE_FLOCK):
4448 * s/template.h (MAIL_USE_FLOCK):
4449 Move to configure.
4450
0235128c 44512010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4452
4453 * Version 23.2 released.
4454
0235128c 44552010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4456
4457 * composite.c (autocmp_chars): Save point as marker before calling
4458 auto-composition-function (Bug#5984).
4459
4460 * lisp.h (restore_point_unwind): Add prototype.
4461
4462 * fileio.c (restore_point_unwind): Remove static attribute.
4463
0235128c 44642010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4465
4466 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4467 new feature of libotf and m17n-flt.
0235128c
SM
4468 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4469 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4470 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4471 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4472 that OUT is NULL. Use OTF_drive_gsub_with_log and
4473 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4474 OTF_drive_gpos.
4475 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4476 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4477 Setup mflt_enable_new_feature and mflt_try_otf.
4478
4721152c
J
44792010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4480
4481 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4482
4483 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4484 box and toolbar (Bug #6139).
4485 (xg_create_tool_bar): Remove comment (Bug #6139).
4486 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4487 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4488
ee0a16cf
JB
44892010-05-08 Juanma Barranquero <lekktu@gmail.com>
4490
4491 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4492 Update dependencies.
4493
96d79611
EZ
44942010-05-08 Eli Zaretskii <eliz@gnu.org>
4495
4496 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4497 R2L lines.
4498
40c17879
GM
44992010-05-08 Glenn Morris <rgm@gnu.org>
4500
7b42b29f
GM
4501 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4502
40c17879
GM
4503 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4504 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4505 (termcapobj): Replace with TERMCAP_OBJ.
4506 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4507 (LIBES): Use LIBS_TERMCAP as a variable.
4508
4509 * s/freebsd.h (osreldate.h): No longer include, since this file
4510 does not use __FreeBSD_version any more.
4511
4512 * s/aix4-2.h (TERMINFO):
4513 * s/cygwin.h (TERMINFO):
4514 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4515 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4516 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4517 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4518 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4519 * s/irix6-5.h (TERMINFO):
4520 * s/netbsd.h (LIBS_TERMCAP):
4521 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4522 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4523 * s/usg5-4.h (TERMINFO):
4524 Move to configure.
4525
94b612ad
SM
45262010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4527
4528 * eval.c (unbind_to): Don't unbind a local binding into the global
4529 binding when the local binding disappeared. Inversely, don't unbind
4530 a global binding into a newly created local binding.
4531 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4532 can specify the frame to use, when applicable. Adjust callers.
4533
15e12598 45342010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4535 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4536
4537 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4538
f724825e
EZ
45392010-05-07 Eli Zaretskii <eliz@gnu.org>
4540
5cba3209
EZ
4541 * w32fns.c: Include w32.h.
4542 (Fw32_shell_execute): Decode the error message before passing it
4543 to `error'. (Bug#6126)
4544
d16bdfc3
EZ
4545 * msdos.c (dos_set_window_size):
4546 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4547 instead of `XSYMBOL (foo)->value'.
4548
59d93e87
EZ
45492010-05-07 Eli Zaretskii <eliz@gnu.org>
4550
9fdec8bc
EZ
4551 Fix the MS-DOS build, broken by autoconfiscation.
4552
4553 * Makefile.in: Don't use Make-style comments past the "start of
4554 cpp stuff" line.
4555 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4556
4557 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4558 edited directly by msdos/sed1v2.inp).
f724825e 4559
2f86b22b
GM
45602010-05-07 Glenn Morris <rgm@gnu.org>
4561
4562 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4563 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4564 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4565 move out of cpp section.
4566 * s/freebsd.h (LD_SWITCH_SYSTEM):
4567 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4568 * s/netbsd.h (LD_SWITCH_SYSTEM):
4569 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4570
49ebbd65
DN
45712010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4572
4573 Define LIB_STANDARD and START_FILES using autoconf.
4574 * s/usg5-4.h (LIB_STANDARD):
4575 * s/netbsd.h (START_FILES):
4576 * s/irix6-5.h (LIB_STANDARD):
4577 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4578 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4579 * s/freebsd.h (START_FILES):
4580 * s/darwin.h (START_FILES):
4581 * s/cygwin.h (START_FILES):
4582 * s/aix4-2.h (LIB_STANDARD):
4583 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4584 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4585 autoconf, not cpp.
4586
d43c06d6
DN
45872010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4588
28823648
DN
4589 Remove NEED_BSDTTY and NEED_UNISTD_H.
4590 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4591 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4592 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4593 <sys/ptyio.h> and <unistd.h>.
4594
aca00430
DN
4595 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4596
d43c06d6
DN
4597 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4598 * s/gnu.h (START_FILES): Remove empty definition.
4599
3e56b11d
JD
46002010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4601
4602 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4603
e3cf0cde
GM
46042010-05-06 Glenn Morris <rgm@gnu.org>
4605
4606 * Makefile.in (CPP, LN_S): Remove unused variables.
4607
774b9a60
SM
46082010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4609
4610 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4611
4ab92842
LM
46122010-05-05 Lawrence Mitchell <wence@gmx.li>
4613
4614 * m/sparc.h: Fix typo in earlier change.
4615
178f2507
SM
46162010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4617
4618 Misc tweaks.
4619 * eval.c (Fdefvaralias): Remove unintended nested if.
4620 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4621
80f00217 46222010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4623
4624 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4625
ef03a4e6
DN
46262010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4627
58eb6cf0
DN
4628 Remove BSD_PGRPS.
4629 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4630 * s/gnu-linux.h (BSD_PGRPS): Remove.
4631 * term.c (dissociate_if_controlling_tty):
4632 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4633 (init_sys_modes, reset_sys_modes):
4634 * emacs.c (main):
4635 * callproc.c (Fcall_process, child_setup): Remove code depending
4636 on BSD_PGRPS.
4637
ef03a4e6
DN
4638 Remove POSIX_SIGNALS.
4639 * s/usg5-4.h (POSIX_SIGNALS):
4640 * s/netbsd.h (POSIX_SIGNALS):
4641 * s/msdos.h (POSIX_SIGNALS):
4642 * s/ms-w32.h (POSIX_SIGNALS):
4643 * s/hpux11.h (POSIX_SIGNALS):
4644 * s/gnu.h (POSIX_SIGNALS):
4645 * s/gnu-linux.h (POSIX_SIGNALS):
4646 * s/freebsd.h (POSIX_SIGNALS):
4647 * s/darwin.h (POSIX_SIGNALS):
4648 * s/cygwin.h (POSIX_SIGNALS):
4649 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4650 * s/unixware.h:
4651 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4652 * process.c (create_process):
4653 * syssignal.h:
4654 * sysdep.c (wait_for_termination, init_signals):
4655 * process.c (create_process):
4656 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4657 remove all code that assumes the contrary.
4658
49628785
GM
46592010-05-04 Glenn Morris <rgm@gnu.org>
4660
27a2cdfc
GM
4661 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4662 variable.
4663 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4664 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4665 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4666 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4667 LD_SWITCH_SYSTEM_tmp.
4668 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4669 New variables, set by configure.
4670
eb21eab5
GM
4671 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4672 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4673 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4674 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4675 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4676
49628785
GM
4677 * s/aix4-2.h (C_SWITCH_SYSTEM):
4678 * m/alpha.h (C_SWITCH_MACHINE):
4679 Move to configure.in.
4680 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4681 New variables, set by configure.
4682 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4683 $c_switch_machine and $c_switch_system.
4684
7dff330b
DN
46852010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4686
4687 * s/hpux10-20.h (LIB_STANDARD): New definition.
4688 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4689 on it, not used anymore.
4690
53967e09
CY
46912010-05-03 Chong Yidong <cyd@stupidchicken.com>
4692
4693 * eval.c (internal_condition_case_n): Rename from
4694 internal_condition_case_2.
4695 (internal_condition_case_2): New function.
4696
4697 * xdisp.c (safe_call): Use internal_condition_case_n.
4698
4699 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4700 (internal_delete_file, Frename_file): Callers changed.
4701
4702 * buffer.c (Fkill_buffer):
4703 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4704
4705 * lisp.h: Update prototypes.
4706
3dee6fdb
GM
47072010-05-03 Glenn Morris <rgm@gnu.org>
4708
4709 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4710 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4711 (LIBXT): Set with configure, not cpp.
4712 (LIBX): Remove.
4713 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4714
a101e0fb
DN
47152010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4716
4717 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4718 The FreeBSD is not needed, the default works, Solaris version is
4719 not needed, and the remaining case is not supported by configure.
4720
f63d0028
JD
47212010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4722
4723 * xsmfns.c (CHDIR_OPT): New define.
4724 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4725 restarting emacs.
4726
4727 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4728 shut_down_emacs.
4729
4730 * emacs.c (USAGE1): Mention --chdir.
4731 (main): Handle --chdir.
4732 (standard_args): Add --chdir.
4733 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4734 #5552).
4735
e4814a9f
DN
47362010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4737
cd03c74a
DN
4738 Remove LD_SWITCH_MACHINE.
4739 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4740 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4741
c3a398a1
DN
4742 Clean up IRIX code.
4743 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4744 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4745
87e7285c
DN
4746 Clean up AIX code.
4747 * m/ibmrs6000.inp: Remove file, unused.
4748 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4749 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4750 definition ...
4751 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4752
80f00217
JB
4753 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4754 unused.
e4814a9f 4755
59ca28de
EZ
47562010-05-01 Eli Zaretskii <eliz@gnu.org>
4757
197daef4
EZ
4758 Emulate POSIX_SIGNALS on MS-Windows.
4759
4760 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4761 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4762
4763 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4764 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4765 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4766
80f00217
JB
4767 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4768 New stubs.
197daef4 4769
af7c7572
EZ
4770 Miscellaneous fixes of bidi display.
4771
59ca28de
EZ
4772 * xdisp.c (find_row_end): New function, refactored from display_line.
4773 (display_line): Use it.
017ea819
EZ
4774 (extend_face_to_end_of_line): In almost-filled rows, extend only
4775 if the row is R2L and not continued.
166e930d 4776 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4777 Preserve overlay and string info in row->end.
166e930d
EZ
4778 (insert_left_trunc_glyphs): Support addition of left truncation
4779 glyphs to R2L rows.
b47e0dcf 4780 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4781 glyph between adjacent windows. Fix a crash when a display string
4782 is continued to the next line. Don't return zero if cursor was
4783 found by `cursor' property of a display string.
b47e0dcf
EZ
4784 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4785 test for that explicitly.
59ca28de 4786
7acac9f4
GM
47872010-05-01 Glenn Morris <rgm@gnu.org>
4788
4789 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4790 for clarity.
4791 (OTHER_OBJ): Remove.
4792 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4793 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4794
45841e65
KK
47952010-05-01 Karel Klíč <kklic@redhat.com>
4796
4797 * fileio.c (Ffile_selinux_context): Context functions may return null.
4798
afc61943
DN
47992010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4800
80f00217 4801 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4802
5a1bb006
GM
48032010-04-30 Glenn Morris <rgm@gnu.org>
4804
4805 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4806 (OTHER_OBJ): Define as a separate variable, for clarity.
4807
210af043
J
48082010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4809
4810 * xsettings.c: include limits.h and update file comment.
4811
0a7df391
GM
48122010-04-30 Glenn Morris <rgm@gnu.org>
4813
d5096f16
GM
4814 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4815 Set with configure, not cpp.
4816 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4817
7eb1ac33
GM
4818 * Makefile.in (mallocobj): Remove.
4819 (otherobj): Simplify using @OTHER_OBJ@.
4820
517d086b
GM
4821 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4822 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4823 Don't bother making nsgui.h dependency platform-specific.
4824
0a7df391
GM
4825 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4826
d6d23852
SM
48272010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4828
d2630aef
SM
4829 * process.c (read_process_output, exec_sentinel): Don't burp if the
4830 sentinel/filter kills the current buffer (bug#6060).
4831
f9dddf52 4832 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4833 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4834 Remove unused var `args'.
4835 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4836 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4837 * doc.c (store_function_docstring): Use XSETCAR.
4838
f1e3642a
GM
48392010-04-28 Glenn Morris <rgm@gnu.org>
4840
faf535f8
GM
4841 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4842 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4843
c40f9449
GM
4844 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4845
658f86ca
GM
4846 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4847 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4848
bc0b5f61
GM
4849 * Makefile.in (FONT_OBJ): New, set by configure.
4850 (FONT_DRIVERS): Use $FONT_OBJ.
4851
294c50a0
GM
4852 * Makefile.in (LIBXMU): Set with configure, not cpp.
4853 * s/aix4-2.h (LIBXMU):
4854 * s/hpux10-20.h (LIBXMU):
4855 Remove definition, now set in configure.
4856
e6ec4e99
GM
4857 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4858
f1e3642a
GM
4859 * m/amdx86-64.h [i386]: Move this test to configure.in.
4860
c6ea2936
GM
48612010-04-27 Glenn Morris <rgm@gnu.org>
4862
8fdac2c3
GM
4863 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4864 * s/unixware.h (NEED_LIBW): Remove definition.
4865
986fb647
GM
4866 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4867 (TOOLKIT_LIBW): New, set by configure.
4868 (@X_TOOLKIT_TYPE@): No longer define it.
4869
c6ea2936
GM
4870 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4871 (MOTIF_LIBW): Set with configure, not cpp.
4872 * s/aix4-2.h (LIB_MOTIF):
4873 * s/gnu-linux.h (LIB_MOTIF):
4874 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4875
aaa36002
DN
48762010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4877
4878 Reduce CPP usage.
4879 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4880 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4881 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4882 definitions and undefs. Inline definitions in the only user.
4883 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4884
b678dd8b
GM
48852010-04-27 Glenn Morris <rgm@gnu.org>
4886
76cda504
GM
4887 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4888 since the defaults (set by the system file) are fine in most cases.
4889 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4890 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4891 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4892 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4893 Remove definitions, since they are set correctly in s/gnu-linux.h.
4894 * s/freebsd.h (START_FILES, LIB_STANDARD):
4895 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4896 * s/hpux10-20.h (START_FILES):
4897 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4898 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4899
b678dd8b
GM
4900 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4901 (MOTIF_LIBW): Use $LIBXP.
4902 (otherobj): Use $WIDGET_OBJ.
4903
9452ded1
DN
49042010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4905
7e10844c
DN
4906 * Makefile.in (LIBS_MACHINE): Remove, unused.
4907
9452ded1
DN
4908 Use autoconf instead of cpp for LIB_MATH.
4909 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4910 * s/cygwin.h (LIB_MATH): Likewise.
4911 * Makefile.in (LIB_MATH): Do not define with cpp.
4912 (LIBES): Use autoconf for LIB_MATH.
4913
fcebfc6a
KH
49142010-04-26 Kenichi Handa <handa@m17n.org>
4915
4916 * composite.c (Ffind_composition_internal): Fix the return value
4917 for an automatic composition.
4918
39e2ad1b
DN
49192010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4920
4921 Remove all NO_ARG_ARRAY uses.
4922 * fns.c (concat2, concat3, nconc2):
4923 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4924 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4925 * m/xtensa.h (NO_ARG_ARRAY):
4926 * m/template.h (NO_ARG_ARRAY):
4927 * m/sparc.h (NO_ARG_ARRAY):
4928 * m/sh3.h (NO_ARG_ARRAY):
4929 * m/mips.h (NO_ARG_ARRAY):
4930 * m/macppc.h (NO_ARG_ARRAY):
4931 * m/iris4d.h (NO_ARG_ARRAY):
4932 * m/intel386.h (NO_ARG_ARRAY):
4933 * m/ibms390x.h (NO_ARG_ARRAY):
4934 * m/ibms390.h (NO_ARG_ARRAY):
4935 * m/ibmrs6000.h (NO_ARG_ARRAY):
4936 * m/ia64.h (NO_ARG_ARRAY):
4937 * m/hp800.h (NO_ARG_ARRAY):
4938 * m/arm.h (NO_ARG_ARRAY):
4939 * m/amdx86-64.h (NO_ARG_ARRAY):
4940 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4941
adf4f59c
EZ
49422010-04-25 Eli Zaretskii <eliz@gnu.org>
4943
6bdf5d65
EZ
4944 * xdisp.c (display_line): Don't assume 2nd call to
4945 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4946 (iterate_out_of_display_property): New function, body from pop_it.
4947 (pop_it): Use it.
adf4f59c 4948
dfbbda83
GM
49492010-04-24 Glenn Morris <rgm@gnu.org>
4950
4951 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4952 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4953 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4954 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4955
2d4018aa
EZ
49562010-04-24 Eli Zaretskii <eliz@gnu.org>
4957
a49884a6
EZ
4958 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4959 use `get_next_display_element' and `set_iterator_to_next' to
4960 advance to the next character, when looking for the character that
4961 begins the next row.
4962
76db6fcc 4963 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4964 definition of "struct Lisp_Symbol".
4965
70eab5c1
GM
49662010-04-24 Glenn Morris <rgm@gnu.org>
4967
4968 * Makefile.in (CRT_DIR): New variable, set by configure.
4969 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4970 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4971
1ad4cc3d
DN
49722010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4973
e769f484
DN
4974 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4975
4196ff33
DN
4976 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4977
879b0ee4
DN
4978 Remove redundant flags.
4979 * s/freebsd.h (C_SWITCH_SYSTEM):
4980 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4981 * s/netbsd.h (C_SWITCH_SYSTEM):
4982 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4983 of these.
4984
03cbbcb8
DN
4985 Simplify m/intel386.h.
4986 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4987 user: ecrt0.c.
4988 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4989 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4990 the only user: s/unixware.h.
4991 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4992 from m/intel386.h.
4993 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4994 moved here from m/intel386.h.
4995
1ad4cc3d
DN
4996 * m/mips.h: Remove #if 0 code.
4997
8785b888
EZ
49982010-04-23 Eli Zaretskii <eliz@gnu.org>
4999
728588cc
EZ
5000 Fix display of composed characters from L2R scripts in bidi buffers.
5001 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5002 After advancing IT past the composition, resync the bidi iterator
5003 with IT's position. (Bug#5977)
5004
a63f80b4
DN
50052010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5006
5007 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5008 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5009
ff5dec5c
SM
50102010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5011
5012 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5013
8785b888
EZ
50142010-04-23 Eli Zaretskii <eliz@gnu.org>
5015
58ccf243 5016 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5017 * xdisp.c (pop_it): When the stack is popped after displaying
5018 from a string, bidi-iterate to exit from the text portion covered
5019 by the `display' property or overlay. (Bug#5988, bug#5920)
5020
feeb1604
DN
50212010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5022
8e324eb6
DN
5023 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5024 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5025
809fcaba
DN
5026 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5027 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5028
ed710380
DN
5029 Simplify STARTFILES definition.
5030 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5031 relying on Makefile.in to define it.
5032 * s/cygwin.h (START_FILES): Likewise.
5033 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5034
feeb1604
DN
5035 Clean up Solaris code.
5036 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5037 (LIB_MOTIF): Remove, configure takes care of this.
5038 (NOT_USING_MOTIF): Remove, unused.
5039 * xrdb.c: Remove #if 0-ed #include.
5040 (SYSV): Remove conditional for old SysV.
5041 * sysdep.c (closedir): Remove conditional code for Solaris,
5042 Solaris has closedir.
5043
a0d0b563
JD
50442010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5045
5046 * xsettings.c (read_and_apply_settings): Check if current_font is
5047 NULL before strcmp (Bug#6001).
5048
56bae7c7
DN
50492010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5050
5051 Clean up HP-UX files.
5052 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5053 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5054 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5055 * s/hpux10-20.h: ... to the only user, here.
5056
372b7a95
EZ
50572010-04-21 Eli Zaretskii <eliz@gnu.org>
5058
5059 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5060 use buffer-local values of paragraph-start and paragraph-separate.
5061 <paragraph_start_re, paragraph_separate_re>: Rename from
5062 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5063 (Bug#5992)
5064
f904c0f9
JD
50652010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5066
5067 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5068 current_tool_bar_style are new.
5069 (store_config_changed_event): Rename from store_font_changed_event.
5070 (XSETTINGS_TOOL_BAR_STYLE): New define.
5071 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5072 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5073 HAVE_XFT.
5074 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5075 store_config_changed_event.
f904c0f9
JD
5076 (parse_settings): Rename from parse_xft_settings. Read
5077 non-xft xsettings outside #ifdef HAVE_XFT.
5078 (read_settings): Renamed from read_xft_settings.
5079 (apply_xft_settings): Take current settings as parameter. Do not
5080 call read_(xft)_settings.
5081 (read_and_apply_settings): New function.
5082 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5083 read_and_apply_settings if there are settings to be read.
5084 (init_xsettings): Renamed from init_xfd_settings.
5085 Call read_and_apply_settings unconditionally.
5086 (xsettings_initialize): Call init_xsettings.
5087 (Ftool_bar_get_system_style): New function.
5088 (syms_of_xsettings): Define Qmonospace_font_name and
5089 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5090 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5091 dynamic-setting.
31a01b90 5092 Move misplaced HAVE_GCONF
f904c0f9
JD
5093
5094 * xsettings.h (Ftool_bar_get_system_style): Declare.
5095
5096 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5097 Qtext, Qboth, Qboth_horiz are new.
5098 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5099 Vtool_bar_style, tool_bar_max_label_size.
5100
5101 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5102
5103 * keyboard.c: QClabel is new.
5104 (parse_tool_bar_item): Take out QClabel from tool bar items.
5105 Try to construct a label if ther is no QClabel.
5106 (syms_of_keyboard): Intern :label as QClabel.
5107
5108 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5109 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5110 New.
5111
5112 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5113 dynamic-setting.el.
5114
5115 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5116 (xg_make_tool_item, xg_show_toolbar_item): New function.
5117 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5118 Call xg_make_tool_item to make a tool bar item.
5119 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5120
5121 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5122 into account for toolbars.
5123
c632dfda
JD
51242010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5125
5126 * data.c (make_blv): Declarations before code (Bug#5993).
5127
10efe302
GM
51282010-04-21 Glenn Morris <rgm@gnu.org>
5129
5130 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5131 Define using autoconf, not cpp.
5132 (LIBXSM): New variable, set by autoconf.
5133 (LIBXT): Use $LIBXSM.
5134
4285ac5a
DN
51352010-04-21 Dan Nicolaescu <local_user@dannlt>
5136
3ec759e7
DN
5137 Remove NOMULTIPLEJOBS, unused.
5138 * s/template.h (NOMULTIPLEJOBS):
5139 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5140
4285ac5a
DN
5141 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5142 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5143 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5144 detects -znocombreloc and passes it to the linker
5145 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5146
2807228d
GM
51472010-04-21 Glenn Morris <rgm@gnu.org>
5148
5149 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5150
574c05e2
KK
51512010-04-21 Karel Klíč <kklic@redhat.com>
5152
5153 * Makefile.in (LIBSELINUX_LIBS): New.
5154 (LIBES): Add $LIBSELINUX_LIBS.
5155 * eval.c, lisp.h (call7): New function.
5156 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5157 (Ffile_selinux_context, Fset_file_selinux_context):
5158 New functions.
5159 (Fcopy_file): New parameter preserve-selinux-context.
5160 (Frename_file): Preserve selinux context when renaming by copy-file.
5161
91eac4bb 51622010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5163 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5164
50426a04
JB
5165 Don't depend on cm.c or termcap.c on Windows, use stubs.
5166 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5167 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5168 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5169 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5170 (sys_tputs, sys_tgetstr): New stubs.
5171 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5172 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5173
938efb77
JB
51742010-04-20 Juanma Barranquero <lekktu@gmail.com>
5175
5176 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5177
b4bf28b7
SM
51782010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5179
8b1e1112
SM
5180 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5181 Just signal a warning rather than an error when inside a let.
5182 (Fmake_variable_frame_local): Add the same test.
5183
933ac235
SM
5184 * font.c (syms_of_font): Make the style table vars read-only.
5185
b4bf28b7
SM
5186 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5187 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5188
5189 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5190
93d68d0c
EZ
51912010-04-20 Eli Zaretskii <eliz@gnu.org>
5192
5193 Fix R2L paragraph display on TTY.
5194
5195 * xdisp.c (unproduce_glyphs): New function.
5196 (display_line): Use it when produced glyphs are discarded from R2L
5197 glyph rows.
5198 (append_composite_glyph): In R2L rows, prepend the glyph rather
5199 than appending it.
5200
5201 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5202 rather than append it. Set up the resolved_level and bidi_type
5203 attributes of the appended glyph.
283ccc18
EZ
5204 (produce_special_glyphs): Mirror the backslash continuation
5205 character in R2L lines.
93d68d0c 5206
283ccc18 5207 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5208
283ccc18
EZ
5209 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5210 append_stretch_glyph.
5211 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5212 off-by-one error in computing x at end of text in the row.
5213 (append_stretch_glyph): In reversed row, prepend the glyph rather
5214 than append it. Set resolved_level and bidi_type of the glyph.
5215 (extend_face_to_end_of_line): If the row is reversed, prepend a
5216 stretch glyph whose width is such that the rightmost glyph will be
5217 drawn at the right margin of the window. Fix off-by-one error on
5218 TTY frames in testing whether a line needs face extension. Fix
5219 face extension at ZV. If this is the last glyph row, use
5220 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5221 region face.
5222 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5223 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5224 row->continuation_lines_width.
283ccc18
EZ
5225 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5226 are at ZV. Fixes a crash when reseated to ZV by
5227 try_window_reusing_current_matrix.
45903529
EZ
5228 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5229 which happens with R2L glyph rows. Fixes a crash when inserting a
5230 character at end of an R2L line.
283ccc18
EZ
5231 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5232 treat them as having zero-width characters. Improve comments.
5233 Don't reverse pos_before and pos_after for reversed glyph rows.
5234 Set cursor.x to negative value when the cursor might be on the
5235 left fringe.
5236 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5237 left fringe, not the right one.
f951a506
EZ
5238 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5239 (erase_phys_cursor): For reversed cursor_row, support cursor on
5240 the left fringe.
5241
283ccc18
EZ
5242 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5243 of continuation indicators on the fringes.
5244 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5245 left fringe.
5246
f951a506
EZ
5247 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5248 draw cursor on the left fringe.
5249
5250 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5251 cursor on the left fringe.
5252
f951a506
EZ
5253 * dispnew.c (update_text_area): Handle reversed desired rows when
5254 the cursor is on the left fringe.
5255 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5256 below, not by 0, for when the cursor is on the left fringe.
5257
3bb49aaf
JD
52582010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5259
5260 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5261 widget is a scrollbar.
5262
c0be27fd
KH
52632010-04-20 Kenichi Handa <handa@m17n.org>
5264
5265 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5266 only when the arg CHARSET_LIST is nil.
5267
ce5b453a
SM
52682010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5269
5270 Make variable forwarding explicit rather the using special values.
5271 Basically, this makes the structure of buffer-local values and object
5272 forwarding explicit in the type of Lisp_Symbols rather than use
5273 special Lisp_Objects for that. This tends to lead to slightly more
5274 verbose code, but is more C-like, simpler, and makes it easier to make
5275 sure we handled all cases, among other things by letting the compiler
5276 help us check it.
5277 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5278 Removing forwarding objects.
5279 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5280 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5281 explicit rather than hiding them inside Lisp_Object "values".
5282 (XFWDTYPE): New macro.
5283 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5284 (XBUFFER_LOCAL_VALUE): Remove.
5285 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5286 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5287 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5288 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5289 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5290 Remove the Lisp_Misc_* header.
5291 (struct Lisp_Buffer_Local_Value): Redefine.
5292 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5293 (struct Lisp_Misc_Any): Add filler to get the right size.
5294 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5295 Lisp_Intfwd.
5296 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5297 (DEFVAR_KBOARD): Allocate a forwarding object.
5298 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5299 (let_shadows_global_binding_p): New function.
5300 (union Lisp_Val_Fwd): New type.
5301 (make_blv): New function.
5302 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5303 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5304 (swap_in_symval_forwarding, find_symbol_value, Fset)
5305 (let_shadows_buffer_binding_p, set_internal, default_value)
5306 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5307 (Fkill_local_variable, Fmake_variable_frame_local)
5308 (Flocal_variable_p, Flocal_variable_if_set_p)
5309 (Fvariable_binding_locus):
5310 * xdisp.c (select_frame_for_redisplay):
5311 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5312 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5313 * frame.c (store_frame_param):
5314 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5315 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5316 value structure.
5317 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5318 (clone_per_buffer_values): Only adjust markers into the current buffer.
5319 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5320 (Fbuffer_local_value, set_buffer_internal_1)
5321 (swap_out_buffer_local_variables):
5322 Adapt to the new symbol value structure.
5323 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5324 (defvar_per_buffer): Take a new arg for the fwd object.
5325 (buffer_lisp_local_variables): Return a proper alist (different fix
5326 for bug#4138).
5327 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5328 (Fgarbage_collect): Don't handle buffer_defaults specially.
5329 (mark_object): Handle new symbol value structure rather than the old
5330 special Lisp_Misc_* objects.
5331 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5332 * term.c (set_tty_color_mode):
5333 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5334 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5335 a buffer_local_flags.
5336 * print.c (print_object): Get rid of impossible forwarding objects.
5337
fd3998ff
EZ
53382010-04-19 Eli Zaretskii <eliz@gnu.org>
5339
5340 * bidi.c (bidi_get_type, bidi_get_category)
5341 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5342 (bidi_type_of_next_char, bidi_level_of_next_char):
5343 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5344
e42cd1a7
JB
53452010-04-19 Juanma Barranquero <lekktu@gmail.com>
5346
5347 * dired.c (Ffile_attributes): Fix typo in docstring.
5348
6e104790 53492010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5350
5351 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5352 NSInteger (Bug#5811).
5353
6e104790 53542010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5355
5356 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5357 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5358
6e104790 53592010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5360
5361 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5362
6e104790
SM
53632010-04-19 Chong Yidong <cyd@stupidchicken.com>
5364
5365 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5366 terminal frames (Bug#5837).
5367
37dcfea0
EZ
53682010-04-19 Eli Zaretskii <eliz@gnu.org>
5369
d1da276f
EZ
5370 * .gdbinit (xsubchartable): New command.
5371
37dcfea0
EZ
53722010-04-19 Eli Zaretskii <eliz@gnu.org>
5373
5374 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5375 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5376 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5377 and
5378 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5379
e9515805
SM
53802010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5381
5382 * alloc.c (Fpurecopy): Hash-cons if requested.
5383 (syms_of_alloc): Update purify-flag docstring.
5384
22aa44a8
JD
53852010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5386
5387 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5388 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5389
ebb5722e
EZ
53902010-04-17 Eli Zaretskii <eliz@gnu.org>
5391
5392 Fix a crash when an NSM character is inserted at BEGV.
5393
5394 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5395 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5396 NEUTRAL_B or UNKNOWN_BT.
5397
0f4442ef
EZ
53982010-04-16 Eli Zaretskii <eliz@gnu.org>
5399
5400 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5401 other rows with cursor unless they are different from this row and
5402 this row is part of a continued line. (Bug#5943)
5403
7d4e45f8
DN
54042010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5405
5406 * s/freebsd.h: Restore osreldate.h include.
5407 Suggested by Naohiro Aota.
5408
5ba5ec85
J
54092010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5410
5411 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5412
20af301d
CY
54132010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5414
5415 * s/cygwin.h: Avoid linking against static libgcc.
5416
a4b000fb
JL
54172010-04-15 Juri Linkov <juri@jurta.org>
5418
5419 * window.c: Add Qscroll_command.
5420 Remove Vscroll_preserve_screen_position_commands.
5421 (window_scroll_pixel_based, window_scroll_line_based): Check the
5422 `scroll-command' property on the last command instead of searching
5423 the last command in Vscroll_preserve_screen_position_commands.
5424 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5425 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5426 (scroll-preserve-screen-position): Doc fix.
5427 (Vscroll_preserve_screen_position_commands): Remove variable.
5428
bc319ba4
DN
54292010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5430
6bb24457
DN
5431 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5432
19d4c244
DN
54332010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5434
5435 Reduce cpp use in Makefile.in.
5436 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5437 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5438 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5439 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5440 (CRT0_COMPILE): Remove, inline it in the only user.
5441
32129746
JL
54422010-04-14 Juri Linkov <juri@jurta.org>
5443
5444 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5445 `scroll-up-command' and `M-v' from `scroll-down' to
5446 `scroll-down-command'.
5447
9013a7f8
JL
54482010-04-14 Juri Linkov <juri@jurta.org>
5449
5450 * window.c (Vscroll_preserve_screen_position_commands): New variable
5451 with the default value as the list of Qscroll_down and Qscroll_up.
5452 (window_scroll_pixel_based, window_scroll_line_based): Search the
5453 last command in the list Vscroll_preserve_screen_position_commands
5454 instead of comparing with Qscroll_up and Qscroll_down.
5455
4bef8d26
JD
54562010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5457
92848133
JD
5458 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5459 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5460 does that.
5461
4bef8d26
JD
5462 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5463 to zero.
5464
58b963f7
SM
54652010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5466
84164a0d
SM
5467 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5468
2b0a91e7
SM
5469 Try to solve the problem of spurious EOF chars in long lines of text
5470 sent to interactive subprocesses.
5471 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5472 (system_process_attributes): Remove unused var `ttotal'.
5473 * process.c (send_process): Don't bother breaking long line with EOF
5474 chars when talking to ttys any more.
5475 (wait_reading_process_output): Output a warning when called in such
5476 a way that it could block without being interruptible.
5477
58b963f7
SM
5478 Try to detect file modification within the same second.
5479 * buffer.h (struct buffer): New field modtime_size.
5480 * buffer.c (reset_buffer): Initialize it.
5481 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5482 (Fverify_visited_file_modtime): Check it.
5483 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5484 (Fset_visited_file_modtime): Set (or clear) it.
5485
01f5787b
SM
54862010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5487
5488 * process.c (status_notify): Remove unused var `ro'.
5489
83725342
JD
54902010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5491
5492 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5493 more than one visual (Bug#5938).
5494
b9465836
DN
54952010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5496
50426a04
JB
5497 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5498 Undefine.
b9465836 5499
8d9c8ece
DN
55002010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5501
b1f52161
DN
5502 Remove C_SWITCH_SYSTEM_TEMACS.
5503 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5504 (malloc, realloc, free): Use emacs, not temacs for conditional
5505 definition.
5506
5507 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5508 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5509
8d9c8ece
DN
5510 Use autoconf, not cpp for some variables.
5511 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5512 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5513 (ALL_CFLAGS): Use them as make variables.
5514 (really-lwlib, really-oldXMenu): Do not pass them.
5515
1ecb2d3f
JD
55162010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5517
5518 * xmenu.c (apply_systemfont_to_dialog): New.
5519 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5520
3a4fa2f2
SM
55212010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5522
97e53006
SM
5523 * process.c (exec_sentinel): Preserve current-buffer.
5524
3a4fa2f2
SM
5525 * process.c (read_process_output): Move the save-current-buffer to
5526 apply to both the filter and the non-filter branches.
5527
88df7221
DN
55282010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5529
5530 * s/msdos.h (UNEXEC): New definition.
5531
5634ff85
YM
55322010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5533
6eff5c3d
YM
5534 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5535 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5536
5537 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5538 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5539 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5540 TRY_WINDOW_CHECK_MARGINS.
5541
5542 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5543 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5544 width only when it is for padding.
5634ff85 5545
b13aef54
J
55462010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5547
5548 * xfns.c (Fx_show_tip): Call try_window in a loop until
5549 fonts_changed_p is zero (Bug#2423).
5550
21d28484
EZ
55512010-04-08 Eli Zaretskii <eliz@gnu.org>
5552
5553 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5554 the end of TEXT_AREA. (Bug#5856)
5555
0269ef77
JD
55562010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5557
5558 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5559 HAVE_GCONF.
5560
5930fe97
EZ
55612010-04-08 Eli Zaretskii <eliz@gnu.org>
5562
5563 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5564 prev.orig_type, for resolving type of NSM. (Bug#5858)
5565
99852628
JD
55662010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5567
5568 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5569 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5570 in current_font.
5571 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5572 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5573 New functions.
5574 (syms_of_xsettings): Initialize current_font.
5575 defsubr Sfont_get_system_normal_font.
99852628 5576
686b968e
JB
5577 * xsettings.h (Ffont_get_system_normal_font)
5578 (xsettings_get_system_normal_font): Declare.
99852628
JD
5579
5580 * xfns.c (extern xlwmenu_default_font): Remove.
5581 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5582 to xlwmenu.c.
5583
5584 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5585 menu items in UTF-8.
5586
5587 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5588 (apply_systemfont_to_menu): New function.
5589 (set_frame_menubar, create_and_show_popup_menu): Call
5590 apply_systemfont_to_menu.
5591
7fc874c4
J
55922010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5593
5594 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5595 FRAME_LINE_TO_PIXEL_Y.
5596
5597 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5598 pixelwidth/height.
5599
863bf481
DN
56002010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5601
5e5a3b92
DN
5602 Simplify code for HP machines.
5603 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5604 for GNU_LINUX, not needed.
5605 (UNEXEC, NEED_BSDTTY): Move definitions...
5606 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5607
863bf481
DN
5608 * m/iris4d.h (UNEXEC): Move definition ...
5609 * s/irix6-5.h (UNEXEC): ... here.
5610
3e6bec3b
JD
56112010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5612
5613 * xfns.c (set_machine_and_pid_properties): New function.
5614 (Fx_create_frame): Call set_machine_and_pid_properties.
5615
2912322b
SM
56162010-04-03 Eli Zaretskii <eliz@gnu.org>
5617
1502b819
EZ
5618 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5619 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5620 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5621
2912322b
SM
5622 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5623 in this function. (Bug#5703)
5624
56252010-04-03 Chong Yidong <cyd@stupidchicken.com>
5626
5627 * nsterm.h: Fix last change.
5628
c435b432
DN
56292010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5630
a568f507
DN
5631 * m/intel386.h (NO_REMAP): Move definition ...
5632 * s/msdos.h (NO_REMAP): ... here.
5633
4cd9f6c2
DN
5634 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5635
c435b432
DN
5636 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5637 used on those platforms.
5638
42a2c622
DN
56392010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5640
5641 Remove extern errno declarations.
5642 * xterm.c:
5643 * xrdb.c:
5644 * w32term.c:
5645 * unexec.c:
5646 * unexaix.c:
5647 * sysdep.c:
5648 * process.c:
5649 * lread.c:
5650 * keyboard.c:
5651 * floatfns.c:
5652 * filelock.c:
5653 * fileio.c:
5654 * emacs.c (main):
5655 * ecrt0.c:
5656 * dispnew.c:
5657 * callproc.c:
5658 * buffer.c: Remove errno extern declarations.
5659 * s/netbsd.h (NEED_ERRNO): Remove.
5660
8224f93d
DN
56612010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5662
5663 Remove all uses of LIBX11_SYSTEM.
5664 * Makefile.in (LIBX11_SYSTEM): Remove.
5665 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5666 instead.
5667
814062c7
EZ
56682010-04-01 Eli Zaretskii <eliz@gnu.org>
5669
ed68db4d
EZ
5670 Remove support for DJGPP v1.x (bug#5813).
5671
5672 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5673 * s/msdos.h:
5674 * unexec.c (make_hdr, copy_text_and_data):
5675 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5676 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5677 (IT_set_terminal_modes, __write, _rename, gethostname)
5678 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5679 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5680 the value of __DJGPP__.
ed68db4d
EZ
5681 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5682 compatibility code.
8224f93d
DN
5683 * lread.c:
5684 * gmalloc.c (memalign):
5685 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5686 * emacs.c (main):
5687 * dosfns.c (init_dosfns):
ed68db4d
EZ
5688 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5689
52f4d8d5
EZ
56902010-04-01 Eli Zaretskii <eliz@gnu.org>
5691
814062c7
EZ
5692 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5693 string with `cursor' property comes from an `after-string'
5694 overlay. (Bug#5816)
5695
0dc2e11d
GM
56962010-04-01 Glenn Morris <rgm@gnu.org>
5697
5698 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5699 Define as Makefile variables.
5700 (LIBX): Use above variables rather than directly using autoconf.
5701
1d29df59
DN
57022010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5703
5704 Clean up BSD_SYSTEM use.
5705 * xterm.c:
5706 * process.c:
5707 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5708 for including <sys/ioctl.h>.
5709 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5710 code is only used for MSDOS.
5711
1546c559
JL
57122010-03-31 Juri Linkov <juri@jurta.org>
5713
5714 * image.c: Add `Qextension_data'.
5715 (syms_of_image): Initialize and staticpro `Qextension_data'.
5716 (Fimage_metadata): Rename from `Fimage_extension_data'.
5717 (gif_load): Put GIF extension data to the property
5718 `Qextension_data'.
5719
6521c534
CY
57202010-03-31 Chong Yidong <cyd@stupidchicken.com>
5721
5722 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5723 * nsterm.h: Fix prototype.
5724
52c30783
EZ
57252010-03-31 Eli Zaretskii <eliz@gnu.org>
5726
5727 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5728 trailing whitespace in right-to-left rows.
5729
855a0da7
SM
57302010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5731
5732 Get rid of the direct_output optimizations.
5733 * keyboard.c (nonundocount): Remove extern declaration.
5734 (command_loop_1): Remove brittle optimisation for cheap and
5735 common operations.
5736 * xdisp.c (redisplay_internal): Don't bother checking
5737 redisplay_performed_directly_p any more.
5738 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5739 any more.
5740 * dispnew.c (redisplay_performed_directly_p)
5741 (direct_output_for_insert, direct_output_forward_char):
5742 * dispextern.h (redisplay_performed_directly_p)
5743 (direct_output_for_insert, direct_output_forward_char): Remove.
5744 * cmds.c (nonundocount): Make it static.
5745
85738751 57462010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5747
5748 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5749
85738751 57502010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5751
5752 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5753 invisible (Bug#5766).
5754
85738751 57552010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5756
855a0da7
SM
5757 * xdisp.c (x_consider_frame_title, update_window_cursor):
5758 Remove HAVE_NS conditionals.
194d44e7 5759 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5760
5761 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5762 filename for the title.
5763 (ns_set_doc_edited): Do nothing if the selected window is a
5764 minibuffer window.
5765
5766 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5767 ns_set_doc_edited.
5768
5769 * nsterm.m: Remove unneeded prototype.
5770
85738751 57712010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5772
5773 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5774 in the DOC file. (Bug#5336)
5775
85738751 57762010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5777
5778 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5779
75d1428c
SM
57802010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5781
5782 * window.c (keys_of_window): Remove redundant/overridden bindings.
5783
82043cfb
EZ
57842010-03-30 Eli Zaretskii <eliz@gnu.org>
5785
5786 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5787 Restore original behavior when the iterator is not bidi_p.
5788
b5dd0ae7
DN
57892010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5790
5791 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5792
bd924a5d
EZ
57932010-03-30 Eli Zaretskii <eliz@gnu.org>
5794
5795 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5796 are outside the range of cached character positions.
5797
3580374b
JB
57982010-03-30 Juanma Barranquero <lekktu@gmail.com>
5799
5800 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5801
a7b02820
EZ
58022010-03-30 Eli Zaretskii <eliz@gnu.org>
5803
5804 Initial support for bidirectional editing.
5805
5806 * Makefile.in (obj): Include bidi.o.
5807 (bidi.o): New target.
5808
5809 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5810 ($(BLD)/bidi.$(O)): New target.
5811
5812 * bidi.c: New file.
5813
5814 * buffer.h (struct buffer): New members bidi_display_reordering
5815 and bidi_paragraph_direction.
5816
5817 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5818 and bidi_paragraph_direction.
5819 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5820 and bidi-paragraph-direction.
5821 (Fbuffer_swap_text): Swap the values of
5822 bidi_display_reordering and bidi_paragraph_direction.
5823
5824 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5825 (bidi_type_t, bidi_dir_t): New types.
5826 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5827 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5828 prev_stop, base_level_stop, and eol_pos.
5829 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5830 (IT_STACK_SIZE): Enlarge to 5.
5831 (struct glyph_row): New member reversed_p.
5832 <string_buffer_position>: Update prototype.
5833 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5834 glyph_row if bidi_it.paragraph_dir == R2L.
5835 (struct glyph): New members resolved_level and bidi_type.
5836
5837 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5838 processing or buffer's direction is right-to-left.
5839 (prepare_desired_row): Preserve the reversed_p flag.
5840 (row_equal_p): Compare the reversed_p attributes as well.
5841
5842 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5843 bidi_init_it and set it->paragraph_embedding from the current
5844 buffer's value of bidi_paragraph_direction.
5845 (reseat_1): Initialize bidi_it.first_elt.
5846 (set_iterator_to_next, next_element_from_buffer): Use the value of
5847 paragraph_embedding to determine the paragraph direction.
5848 (set_iterator_to_next): Under bidi reordering, call
5849 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5850 new_paragraph flag is set in the bidi iterator.
5851 (next_element_from_buffer): If bidi_it.first_elt is set,
5852 initialize paragraph direction and find the first character to
5853 display in the visual order. If reseated to a middle of a line,
5854 prime the bidi iterator starting at the line's beginning. Handle
5855 the situation where we overstepped stop_charpos due to
5856 non-linearity of the bidi iteration. Likewise for when we back up
5857 beyond the previous stop_charpos. When moving across stop_charpos,
5858 record it in prev_stop.
5859 (display_line): Set row->end and it->start for the next row to the
5860 next character in logical order. Always extend reversed_p rows to
5861 the end of line, even if they end at ZV. Copy the reversed_p flag
5862 to the next glyph row. Keep calling set_cursor_from_row for
5863 bidi-reordered rows even if we already have a possible candidate
5864 for cursor position. Set row_end after all the row's glyphs have
5865 been produced, by looping over the glyphs. Record the position
5866 after EOL in it->eol_pos, and use it to set end_pos of the last
5867 row produced for a continued line.
5868 <Qright_to_left, Qleft_to_right>: New variables.
5869 (syms_of_xdisp): Initialize and staticpro them.
5870 (string_buffer_position_lim): New function.
5871 (string_buffer_position): Most of code moved to
5872 string_buffer_position_lim. Last argument and return value are
5873 now EMACS_INT; all callers changed.
5874 (set_cursor_from_row): Rewritten to support bidirectional text and
5875 reversed glyph rows.
5876 (text_outside_line_unchanged_p, try_window_id): Disable
5877 optimizations if we are reordering bidirectional text and the
5878 paragraph direction can be affected by the change.
5879 (append_glyph, append_composite_glyph)
5880 (produce_image_glyph, append_stretch_glyph): Set the
5881 resolved_level and bidi_type members of each glyph.
5882 (append_glyph): If the glyph row is reversed, prepend the glyph
5883 rather than appending it.
5884 (handle_stop_backwards): New function.
5885 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5886 (reseat): call handle_stop_backwards to recompute prev_stop and
5887 base_level_stop for the new position.
5888 (handle_invisible_prop): Under bidi iteration, skip invisible text
5889 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5890 paragraph direction. Update IT->prev_stop after skipping
5891 invisible text.
5892 (move_it_in_display_line_to): New variables prev_method
5893 and prev_pos. Compare for strict equality in
5894 BUFFER_POS_REACHED_P.
5895 (try_cursor_movement): Examine all the candidate rows that occlude
5896 point, to return the best match. If rows are bidi-reordered
5897 and point moved backwards, back up to the row that is not a
5898 continuation line, and start looking for a suitable row from
5899 there.
5900
5901 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5902 rather than appending, if the glyph_row's reversed_p flag is set.
5903 Set the resolved_level and bidi_type members of each glyph.
5904
5905 * .gdbinit (pbiditype): New command.
5906 (pgx): Use it to display bidi level and type of the glyph.
5907 (pitx): Display some bidi information about the iterator.
5908 (prowlims, pmtxrows): New commands.
5909
32a8894e
DN
59102010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5911
5912 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5913 * s/usg5-4.h (LIBS_DEBUG):
5914 * s/irix6-5.h (C_DEBUG_SWITCH):
5915 * s/gnu-linux.h (LIBS_DEBUG):
5916 * s/darwin.h (LIBS_DEBUG):
5917 * s/bsd-common.h (LIBS_DEBUG):
5918 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5919 * m/iris4d.h (LIBS_DEBUG):
5920 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5921
5922 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5923 (LIBS_DEBUG): Remove definition.
5924
649dbf36
CY
59252010-03-27 Chong Yidong <cyd@stupidchicken.com>
5926
5927 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5928 Windows.
5929
cad4261f
YM
59302010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5931
5932 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5933 `connect' (Bug#5723).
5934
cd591dbc
HE
59352010-03-25 Helmut Eller <eller.helmut@gmail.com>
5936
5937 * process.c (Fmake_network_process): Call `select' for interrupted
5938 `connect' rather than creating new socket (Bug#5173).
5939
e867cb5d 59402010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5941
5942 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5943
5944 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5945
5946 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5947
e867cb5d 59482010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5949
5950 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5951 XLoadQueryFont.
5952
e867cb5d 59532010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5954
5955 * coding.c (decode_coding_ccl): Fix previous change for the
5956 multibyte case.
fb608df3
KH
5957 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5958 case that the output buffer is fullfilled.
5959 (encode_coding): Setup ccl program here.
fbdc1721 5960
5845f0ed
DN
59612010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5962
814fb708
DN
5963 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5964
5845f0ed
DN
5965 Simplify LIBS_MACHINE definitions.
5966 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5967 * m/iris4d.h (LIBS_MACHINE): Likewise.
5968 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5969 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5970 * s/netbsd.h: Remove commented out code.
5845f0ed 5971
b7064064
DN
59722010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5973
df7734b2
DN
5974 Remove dead code dealing with POSIX_SIGNALS.
5975 * atimer.c (set_alarm): Remove dead code, all USG systems define
5976 POSIX_SIGNALS.
5977 * data.c (arith_error): Likewise.
5978 * keyboard.c (input_available_signal, handle_user_signal)
5979 (interrupt_signal): Likewise.
5980 * process.c (sigchld_handler): Likewise.
5981 (create_process): Remove if 0 code. Remove HPUX conditional when
5982 !defined (POSIX_SIGNALS), it cannot be true.
5983 * syssignal.h: Remove USG5_4 and USG conditionals when
5984 !POSIX_SIGNALS, they cannot be true.
5985
b7064064
DN
5986 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5987 NO_SOCK_SIGIO, not used anymore.
5988
55da5ee3
DN
59892010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5990
0be96e3a
DN
5991 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5992 support vax on BSDs.
5993
55da5ee3
DN
5994 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5995 * s/aix4-2.h (ORDINARY_LINK): ... here.
5996
c0282183
AS
59972010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5998
82c3d67a
AS
5999 * Makefile.in (abs_builddir): Define.
6000 (bootstrap_exe): Use it.
6001 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6002
3613edce
SM
60032010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6004
6005 * Makefile.in (bootstrap_exe): Use an absolute name.
6006
7f110ddc
DN
60072010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6008
22e87574
DN
6009 Remove support for old GNU/Linux using libc version 5.
6010 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6011 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6012
05a670e6
DN
6013 Consolidate redundant definitions in s/bsd-common.h.
6014 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6015 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6016 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6017 doing it in all files that include this one.
6018 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6019 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6020 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6021 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6022 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6023 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6024 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6025 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6026 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6027
2968f561
DN
6028 Consolidate redundant definitions.
6029 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6030 it's undefined in all files that include this one.
6031 (POSIX_SIGNALS): Define here instead of doing it in all files that
6032 include this one.
6033 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6034 (POSIX_SIGNALS): Do not define.
6035 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6036 (POSIX_SIGNALS): Do not define.
6037 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6038 (POSIX_SIGNALS): Do not define.
6039
15d25dc0
DN
6040 Remove support for old UNIX System V systems.
6041 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6042 * s/usg-5-4-2.h: Remove.
6043
07e339e4
DN
6044 Remove support for Solaris on PPC and for old versions.
6045 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6046 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6047 that cancel each other.
6048 * s/sol2-3.h:
6049 * s/sol2-4.h:
6050 * s/sol2-5.h: Remove.
6051 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6052 (NO_REMAP): Remove, unused.
6053 (UNEXEC): Move definition ...
6054 * s/aix4-2.h (UNEXEC): ... here.
6055
7f110ddc
DN
6056 * s/openbsd.h: Remove support for non-ELF and for systems that do
6057 not support shared libraries.
6058 * s/netbsd.h:
6059 * s/freebsd.h: Likewise.
6060
605f35cd
DN
60612010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6062
6063 Remove non-working support for lynxos 3.0.
6064 * s/lynxos.h: Remove file.
6065
6066 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6067 COFF_BSD_SYMBOLS, nothing defines it anymore.
6068
aed71cf4
DN
60692010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6070
6071 Remove obsolete uses of HAVE_SHM.
6072 * emacs.c (standard_args):
6073 (Fdump_emacs):
6074 (syms_of_emacs): Remove code depending on HAVE_SHM.
6075
6076 * alloc.c: Remove HAVE_SHM dependent definition.
6077
6078 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6079
aded53ff
GM
60802010-03-18 Glenn Morris <rgm@gnu.org>
6081
17284745
GM
6082 * emacs.c (USAGE4): Hard-code bug address.
6083 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6084 (bug_reporting_address): Remove.
6085 (main): Don't call bug_reporting_address.
6086
aded53ff
GM
6087 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6088 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6089
303500aa
CY
60902010-03-15 Chong Yidong <cyd@stupidchicken.com>
6091
6092 * xfns.c (Fx_create_frame):
6093 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6094 on left.
6095
cef3058f
CY
60962010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6097
6098 * editfns.c (Fformat): Account for string precision when computing
6099 field width (Bug#5710).
6100
a647d59d
CY
61012010-03-12 Chong Yidong <cyd@stupidchicken.com>
6102
4fa42018
CY
6103 * xfns.c (Fx_create_frame): Set default to Qright.
6104
a647d59d
CY
6105 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6106 all window systems.
6107
6da23aaa
EZ
61082010-03-12 Eli Zaretskii <eliz@gnu.org>
6109
a96f6398 6110 These changes remove termcap.c from the build on Posix platforms.
83d02def 6111 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6112 (MSDOS_OBJ): ...to here.
6113 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6114 now identical to when LIBS_TERMCAP is defined.
6115
6116 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6117
6118 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6119
a96f6398 6120 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6121
288f9fc0
CY
61222010-03-10 Chong Yidong <cyd@stupidchicken.com>
6123
6124 * Branch for 23.2.
6125
d48cd3f4
SM
61262010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6127
6128 Cleanup setup of gl_state in various parts of the code.
6129 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6130 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6131 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6132 (skip_chars):
6133 * regex.c (regex_compile): Use it.
6134 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6135 it's now set in regex_compile when/if we need it.
6136
618db430
SM
61372010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6138
c0335e02
SM
6139 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6140 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6141 (QUIT): Use it to consolidate code and remove redundancy.
6142 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6143
254c06a8
SM
6144 * regex.c (regex_compile): Setup gl_state as well.
6145
618db430
SM
6146 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6147 (in_classes): Use CONSP before XCAR/XCDR.
6148
233f0c9f
CY
61492010-03-03 Chong Yidong <cyd@stupidchicken.com>
6150
6151 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6152 definitions, so that keyboard macros are correctly handled
6153 (Bug#5481).
6154
75f80e63
EZ
61552010-03-02 Eli Zaretskii <eliz@gnu.org>
6156
6157 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6158 text that could be relocated inside the call to emacs_mule_char.
6159 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6160 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6161
dcfb9bc4
KH
61622010-03-02 Kenichi Handa <handa@m17n.org>
6163
fc9a17bc
KH
6164 * character.c (parse_str_as_multibyte): Fix handling of the
6165 multibyte form of raw-bytes.
6166 (str_as_multibyte): Likewise.
6167
dcfb9bc4
KH
6168 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6169 form of raw-bytes.
6170
412c01b6
CY
61712010-02-28 Chong Yidong <cyd@stupidchicken.com>
6172
6173 * charset.c (load_charset_map_from_file)
6174 (load_charset_map_from_vector): Zero out allocated
6175 charset_map_entries before using them.
6176
df7e1ea0
AS
61772010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6178
6179 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6180
fe69a722
CY
61812010-02-27 Chong Yidong <cyd@stupidchicken.com>
6182
4ed28cf4
CY
6183 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6184 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6185
7379cfce
KH
61862010-02-26 Kenichi Handa <handa@m17n.org>
6187
f88cc4d6
KH
6188 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6189
7379cfce
KH
6190 * xdisp.c (reseat_to_string): Fix previous change.
6191
cf2fdcfb
CY
61922010-02-26 David Reitter <david.reitter@gmail.com>
6193
6194 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6195 Lisp_Object (Bug#4736).
6196
cc6c7c75
KH
61972010-02-25 Kenichi Handa <handa@m17n.org>
6198
6199 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6200
32e737d7
JD
62012010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6202
6203 * xterm.c (XTflash): Move declarations before statements.
6204
6205 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6206 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6207 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6208 (xg_create_tool_bar): Remove unused variables.
6209 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6210 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6211
676cae9f
CY
62122010-02-21 Chong Yidong <cyd@stupidchicken.com>
6213
6214 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6215
886cc2b8
SM
62162010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6217
6218 * term.c (fatal): Add a final \n if needed (bug#5596).
6219
ddb2d8e2
CY
62202010-02-18 Chong Yidong <cyd@stupidchicken.com>
6221
6222 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6223
2a4f8d3d
GM
62242010-02-18 Glenn Morris <rgm@gnu.org>
6225
6226 * callint.c (Finteractive): Doc fix.
6227
ebaf11b6
KH
62282010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6229
886cc2b8
SM
6230 * coding.c (record_conversion_result):
6231 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6232 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6233 memory allocation error.
6234
d0396581
KH
62352010-02-17 Kenichi Handa <handa@m17n.org>
6236
886cc2b8
SM
6237 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6238 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6239 (decode_coding): Setup ccl program here. Keep looping when the
6240 decoder stopped because the output buffer is
6241 fullfilled (bug#5534).
6242
6243 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6244
98599f74
JD
62452010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6246
471e4f04 6247 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6248 bug #5571.
886cc2b8 6249 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6250 overdrawn.
98599f74 6251
182659ae
JD
62522010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6253
6254 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6255 doing_interact here.
6256 (ice_connection_closed): New function.
6257 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6258 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6259 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6260 returns I/O error.
6261 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6262 bug #5512.
6263
9be32c4e 62642010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6265
6266 * nsfont.m (nsfont_open): The system's value for the font descent
6267 is negative, so round it down to avoid clipping.
6268
a2f3eb19
CY
62692010-02-06 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * charset.c (load_charset_map_from_file)
6272 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6273 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6274
3088147c
CY
62752010-02-05 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * charset.c (load_charset_map_from_file): Allocate large
6278 charset_map_entries structure on the heap rather than the stack.
6279 (Bug#5526).
6280
b57d9029
KH
62812010-01-31 Kenichi Handa <handa@m17n.org>
6282
6283 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6284 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6285
c67d885b
CY
62862010-01-31 Chong Yidong <cyd@stupidchicken.com>
6287
6288 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6289 <deactivated@gmail.com> (Bug#3605).
6290
8fab2362
CY
62912010-01-31 David De La Harpe Golden <david@harpegolden.net>
6292
6293 * fileio.c (Frename_file): Correctly rename symlinks to
6294 directories (Bug#5496).
6295
cb2a62f2
CY
62962010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6297
6298 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6299
944c7a26
AS
63002010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6301
6302 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6303
c024ac08
CY
63042010-01-29 Chong Yidong <cyd@stupidchicken.com>
6305
6306 * frame.c (DEFAULT_ROWS): Change default to 35.
6307
6308 * xfns.c (x_default_font_parameter): Change default XFT font to
6309 monospace-10 (Bug#3643).
6310
af93af83
EZ
63112010-01-29 Eli Zaretskii <eliz@gnu.org>
6312
6313 * w32inevt.c (key_event): Remove unnecessary comparison of
6314 event->uChar.AsciiChar with 128.
6315
ca0eb708
CY
63162010-01-28 Chong Yidong <cyd@stupidchicken.com>
6317
b242dbfc
CY
6318 * fileio.c (Frename_file): Fix last change (Bug#5487).
6319
ca0eb708
CY
6320 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6321
6322 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6323
45d45af5
JD
63242010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6325
6326 * xfns.c (Fx_create_frame): Remove window size matching code from
6327 2010-01-15.
a73f9c9d 6328 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6329
7e233730
JR
63302010-01-27 Jason Rumney <jasonr@gnu.org>
6331
6332 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6333 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6334
86e893e3
KH
63352010-01-27 Kenichi Handa <handa@m17n.org>
6336
6337 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6338 pattern string (Bug#4209).
86e893e3 6339
8719abec
CY
63402010-01-27 David De La Harpe Golden <david@harpegolden.net>
6341
6342 * fileio.c (Frename_file): Call copy-directory and
6343 delete-directory for directories, in order to handle cross-device
6344 renaming (Bug#3353).
6345
844794c8
JD
63462010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6347
aa3e13b5 6348 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6349 sizes 24 and 10. Bug #3643.
844794c8 6350
bd4b5750
SM
63512010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6352
8dc1adf6 6353 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6354 * keymap.c (shadow_lookup): Add `remap' arg.
6355 (describe_map, describe_vector): Update calls to shadow_lookup.
6356 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6357 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6358 perform remapping during shadow_lookup check of remapped_sequences.
6359
285d07e2
CY
63602010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6361
6362 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6363 png_check_sig, which has been removed in libpng 1.4.
6364
c6d09b8d
CY
63652010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6366
6367 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6368 lacks this header file).
6369
3d782998
YM
63702010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6371
6372 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6373 as in Emacs 22.
6374
2aff7c53
YM
63752010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6376
6377 * lisp.h (make_pure_string): String pointer arg now points to const.
6378
6379 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6380 args now point to const.
6381
74327f7a
EZ
63822010-01-22 Eli Zaretskii <eliz@gnu.org>
6383
6384 * lread.c (Fload): Don't treat files without .elc extension as
6385 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6386 them. (bug#5303)
6387
4d1e6632
KH
63882010-01-20 Kenichi Handa <handa@m17n.org>
6389
6390 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6391 treat the source as actual byte sequence.
6392
1fdede8f
AM
63932010-01-19 Alan Mackenzie <acm@muc.de>
6394
6395 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6396 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6397 `signal_after_change_p' to `coherent_change_p', and make the
6398 invocation of `modify_region' conditional on it.
6399
67477f30
JD
64002010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6401
6402 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6403 for debug purpose.
6404 (syms_of_xsettings): Declare xft-settings.
6405
244b023e
CY
64062010-01-18 Chong Yidong <cyd@stupidchicken.com>
6407
6408 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6409
617364fe
CY
64102010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6411
6412 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6413
4fe22cdf
CY
64142010-01-16 Chong Yidong <cyd@stupidchicken.com>
6415
6416 * emacs.c (standard_args): Adjust arg priorities to reflect how
6417 they are processed in startup.el.
6418
e118d2be
AS
64192010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6420
6421 * Makefile.in (lisp, shortlisp): Update.
6422
523ae620
SM
64232010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6424
6425 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6426 code, link the new kboard into all_kboard before running Lisp code,
6427 and protect the new terminal with GCPRO (Bug#5365).
6428 (x_term_init): Remove unused var `atom'.
6429 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6430
f0d13888
JD
64312010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6432
6433 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6434 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6435 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6436 this. Bug #3643.
f0d13888 6437
cc320f07
KH
64382010-01-15 Kenichi Handa <handa@m17n.org>
6439
6440 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6441
7ffdf101
CY
64422010-01-15 Chong Yidong <cyd@stupidchicken.com>
6443
6444 * nsterm.m (Qnone): Define.
6445
6446 * nsfns.m (Qnone): Move definition to nsterm.m.
6447
d12bd917
KH
64482010-01-14 Kenichi Handa <handa@m17n.org>
6449
6450 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6451 systems.
6452
d9a7c140
KH
64532010-01-14 Kenichi Handa <handa@m17n.org>
6454
6455 Make auto-composition work on all buffers even if they are
6456 fundamental mode.
6457
6458 * composite.c (Vauto_composition_mode): New variable.
6459 (composition_compute_stop_pos): Check Vauto_composition_mode
6460 instead of Vauto_composition_function.
6461 (composition_adjust_point, Ffind_composition_internal): Likewise.
6462 (syms_of_composite): Declare Lisp variable
6463 "auto-composition-mode" here.
6464
63286bb2
CY
64652010-01-13 Chong Yidong <cyd@stupidchicken.com>
6466
6467 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6468 during call to vendor-specific-keysyms (Bug#5365).
6469
c2623ee7
YM
64702010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6471
6472 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6473 Call SIGNAL_THREAD_CHECK (Bug#5333).
6474
6475 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6476 Call SIGNAL_THREAD_CHECK.
6477
0b5397c2
SM
64782010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6479
6480 Try to fix bug#5314. This is probably not the final word, tho.
6481 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6482 recent-auto-save-p as a side-effect.
6483 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6484 * buffer.c (Fkill_buffer, reset_buffer):
6485 * editfns.c (Fsubst_char_in_region):
6486 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6487 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6488
dc954cb2
KH
64892010-01-13 Kenichi Handa <handa@m17n.org>
6490
6491 Display buffer name, etc. in mode line by composing correctly.
6492
6493 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6494 STRING is not nil.
0b5397c2 6495 (display_mode_element): Adjust for the change of
dc954cb2
KH
6496 decode_mode_spec and display_line.
6497 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6498 (display_string): Handle the case that STRING is non-null and
6499 LISP_STRING is not nil.
6500
0b5397c2
SM
6501 * xterm.c (x_draw_composite_glyph_string_foreground):
6502 Pay attention to s->face->overstrike.
dc954cb2
KH
6503
6504 * composite.c (composition_reseat_it): Don't check PT if STRING is
6505 non nil.
6506
4a00eaca
YM
65072010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6508
6509 * keyboard.c (read_char): Don't apply previous change when current
6510 buffer is unchanged by command execution.
6511
60abb287
JD
65122010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6513
6514 * keyboard.c (read_char): Return after executing from special map.
6515
893db5bc
GM
65162010-01-12 Glenn Morris <rgm@gnu.org>
6517
6518 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6519 bug-gnu-emacs rather than emacs-pretest-bug.
6520
4d03ece0
CY
65212010-01-11 Chong Yidong <cyd@stupidchicken.com>
6522
6523 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6524 initializing the Lisp variables that depend on them.
6525
1df47e38
YM
65262010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6527
6528 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6529 Clear areas that will not be updated after change of menu bar lines.
6530 Clear the menu bar window's current matrix when the window gets empty.
6531
2f1c6384
CY
65322010-01-09 Chong Yidong <cyd@stupidchicken.com>
6533
e398c61c
CY
6534 * intervals.h, textprop.c (extend_property_ranges): Return value
6535 and args changed. Discard properties that begin at or after the
6536 new end (Bug#5306).
6537
6538 * editfns.c (Fformat): Caller changed.
6539
e5a29a10
CY
6540 * nsterm.m (ns_set_default_prefs): Delete function.
6541 (syms_of_nsterm): Initialize ns_command_modifier,
6542 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6543 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6544
2f1c6384
CY
6545 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6546 position (Bug#4040).
6547
d427a9fa
EZ
65482010-01-09 Eli Zaretskii <eliz@gnu.org>
6549
6550 * editfns.c (Ffloat_time): Doc fix.
6551
21b9df2f
JD
65522010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6553
6554 * xfns.c (Fx_create_frame): Don't create frame larger than display
6555 by default bug#3643.
6556
4b00d3b1
YM
65572010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6558
6559 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6560 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6561 windows above internal border.
6562
6563 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6564 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6565 windows above internal border.
6566
6567 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6568 tool bar windows specially.
6569
6570 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6571
6572 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6573 specially.
6574 (XTflash): Take account of menu bar height.
6575
6576 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6577 specially.
6578
5075d853
JD
65792010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6580
ac146f82 6581 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6582 also be true before we can return early (bug #5339).
6583
474217c8
CY
65842010-01-06 David Reitter <david.reitter@gmail.com>
6585
6586 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6587 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6588 (Bug#3233).
6589
c0e6d47d
JD
65902010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6591
d0cf45b7
JD
6592 * font.c (font_open_entity): Enable chache and call cached_font_ok
6593 for the driver if defined.
6594 (QCuser_spec): New symbol.
6595 (font_spec_from_name): Save name as user-spec.
6596 (font_load_for_lface): Keep user-spec instead of name.
6597 (font_open_by_name): Save name as user-spec.
6598 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6599 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6600
6601 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6602 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6603 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6604
6605 * font.h (struct font_driver): Add cached_font_ok.
6606
c0e6d47d
JD
6607 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6608
7c583cd8
JD
66092010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6610
6611 * xterm.c (x_new_font): Move code for setting rows/cols before
6612 resizing ...
ac146f82 6613 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6614
6615 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6616 (xg_frame_resized, xg_frame_set_char_size):
6617 Call xg_clear_under_internal_border.
7c583cd8 6618 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6619
03f77f0a
CY
66202010-01-05 Chong Yidong <cyd@stupidchicken.com>
6621
6622 * keyboard.c (read_key_sequence): Catch keyboard switch after
6623 making a new tty frame (Bug#5095).
6624
2a1ef5be
KH
66252010-01-05 Kenichi Handa <handa@m17n.org>
6626
6627 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6628
e3eb1dae
SM
66292010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6630
6631 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6632 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6633 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6634
777013f2
MA
66352010-01-03 Michael Albinus <michael.albinus@gmx.de>
6636
6637 * dbusbind.c (xd_add_watch): Improve debug message.
6638 (xd_remove_watch): Improve debug message. If DATA is the session
6639 bus, unset D-Bus session environment.
6640 (Fdbus_init_bus): Pass the bus as argument to
6641 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6642
8932b1c2
CY
66432010-01-01 Chong Yidong <cyd@stupidchicken.com>
6644
87231e2c
CY
6645 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6646
4801c5fa
CY
6647 * lread.c (syms_of_lread): Make it clearer that these are the
6648 names of loaded files (Bug#5068).
6649
8932b1c2
CY
6650 * eval.c (run_hook_with_args): Handle the case where the global
6651 value has the obsolete single-function form (Bug#5026).
6652
11e3c684
CY
66532009-12-27 Chong Yidong <cyd@stupidchicken.com>
6654
6655 * minibuf.c (Fall_completions): Minor optimization.
6656
5b28ce35
EZ
66572009-12-26 Eli Zaretskii <eliz@gnu.org>
6658
5ce6e4f4
JB
6659 * .gdbinit (pgx): Fix display of composite glyphs.
6660 Display cmp.from and cmp.to as well.
6661 (pitx): Fix last change.
5b28ce35 6662
bcffff46
KH
66632009-12-25 Kenichi Handa <handa@m17n.org>
6664
6665 * composite.h (composition_adjust_point): Update prototype.
6666
6667 * composite.c (composition_reseat_it): Don't make a composition
6668 spanning over point.
6669 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6670 composable characters.
6671 (composition_adjust_point): New arg NEW_PT. Callers changed.
6672
6673 * keyboard.c (command_loop_1): Force redisplay if the last point
6674 was within a composition.
6675 (adjust_point_for_property): Don't adjust point for automatic
6676 composition when called after buffer modification.
6677
3f670e9a
EZ
66782009-12-19 Eli Zaretskii <eliz@gnu.org>
6679
5ce6e4f4
JB
6680 * .gdbinit (pitx): Don't use enum names, use their values.
6681 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6682 (pgx): Don't use enum names, use their values.
6683 (pitmethod): New helper command.
6684 (pitx): Use it to display iteration method.
6685 (pgrowit): New command.
6686
ad903955
EZ
6687 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6688
3f670e9a
EZ
6689 Update dependencies in Makefile.in.
6690
6691 * Makefile.in (alloc.o): Depend on termhooks.h.
6692 (atimer.o): Depend on blockinput.h.
6693 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6694 and frame.h.
6695 (callint.o): Depend on systime.h, coding.h, and composite.h.
6696 (callproc.o): Depend on buffer.h.
6697 (casefiddle.o): Don't depend on charset.h.
6698 (casetab.o): Depend on character.h.
6699 (ccl.o): Depend on composite.h.
6700 (chartab.o): Depend on ccl.h.
6701 (cm.o): Depend on dispextern.h.
6702 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6703 (coding.o): Don't depend on $(INTERVALS_H).
6704 (composite.o): Don't depend on dispextern.h explicitly (it's in
6705 $(INTERVALS_H)). Depend on ccl.h.
6706 (data.o): Depend on systime.h, coding.h, composite.h,
6707 dispextern.h, font.h, and ccl.h.
6708 (dired.o): Depend on composite.h.
6709 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6710 composite.h (it's in $(INTERVALS_H)).
6711 (doc.o): Depend on systime.h, coding.h, and composite.h.
6712 (editfns.o): Don't depend explicitly on dispextern.h.
6713 (emacs.o): Depend on frame.h and coding.h.
6714 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6715 (fileio.o): Depend on frame.h and commands.h. Don't depend
6716 explicitly on dispextern.h.
6717 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6718 composite.h.
6719 (fns.o): Don't depend on termhooks.h.
6720 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6721 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6722 coding.h, $(INTERVALS_H), window.h, xterm.h.
6723 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6724 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6725 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6726 fontset.h, ccl.h, and ftfont.h.
6727 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6728 (gtkutil.o): Depend on dispextern.h and composite.h.
6729 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6730 termhooks.h, and ccl.h.
6731 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6732 (intervals.o): Depend on systime.h and coding.h.
6733 (keyboard.o): Depend on composite.h and coding.h.
6734 (keymap.o): Depend on coding.h and frame.h.
6735 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6736 (macros.o): Depend on systime.h, coding.h, and composite.h.
6737 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6738 and atimer.h.
6739 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6740 dispextern.h explicitly.
0b5397c2
SM
6741 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6742 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6743 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6744 (regex.o): Don't depend on charset.h.
6745 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6746 (search.o): Don't depend explicitly on composite.h.
6747 (sound.o): Depend on atimer.h and systime.h.
6748 (syntax.o): Don't depend explicitly on composite.h.
6749 (sysdep.o): Depend on coding.h and composite.h.
6750 (term.o): Depend on xterm.h and buffer.h.
6751 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6752 (textprop.o): Don't depend on dispextern.h explicitly.
6753 (undo.o): Depend on dispextern.h.
6754 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6755 dispextern.h and composite.h explicitly.
6756 (xdisp.o): Depend on ccl.h.
6757 (xfaces.o): Depend on coding.h and ccl.h.
6758 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6759 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6760 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6761 ftfont.h.
6762 (xgselect.o): New dependency.
6763 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6764 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6765 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6766 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6767 (xsmfns.o): Depend on frame.h and dispextern.h.
6768 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6769 sysselect.h.
6770
7a6f7fea
AS
67712009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6772
6773 * font.c (Fclear_font_cache): Pass correct cache argument to
6774 font_clear_cache.
6775
f4c21026
AS
67762009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6777
6778 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6779 twice.
6780
f7ab0997
CY
67812009-12-15 Chong Yidong <cyd@stupidchicken.com>
6782
6783 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6784 calling file-remote-p. Reported by Jim Meyering.
6785
fa8e045a
MA
67862009-12-15 Michael Albinus <michael.albinus@gmx.de>
6787
6788 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6789 avoid compiler warnings. (Bug #5217)
fa8e045a 6790
a63dba42
KH
67912009-12-14 Kenichi Handa <handa@m17n.org>
6792
6793 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6794 in 8-bit encoding.
6795
5ce6e4f4 67962009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6797
6798 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6799 tooltip windows.
6800
223e5fc6
JD
68012009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6802
36acb2a7
JD
6803 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6804 Xatom_net_window_type.
6805
6806 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6807 Xatom_net_window_type.
6808
b8f00677
JD
6809 * xterm.c (my_log_handler): New function.
6810 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6811 so we can filter out buggy messages. (Bug #5120).
b8f00677 6812
e5f0bc9a
JD
6813 * xterm.c (xg_scroll_callback): Parameter list changed,
6814 use parameter GtkScrollType to determine scroll/line/page.
6815 Only allow dragging if a button < 4 is grabbed (bug #5177).
6816 (xg_end_scroll_callback): New function.
6817 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6818 xg_create_scroll_bar.
6819
6820 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6821 (scroll_end_callback): Remove.
6822 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6823 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6824 bug #5177.
e5f0bc9a
JD
6825 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6826 bug #5177.
6827
6828 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6829 (xg_create_scroll_bar): Add GCallback end_callback.
6830
223e5fc6
JD
6831 * xftfont.c (QClcdfilter): New variable.
6832 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6833 (syms_of_xftfont): Initialize QClcdfilter.
6834
3c055b77
JD
68352009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6836
6837 * xsettings.c (struct xsettings): Add member seen.
6838 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6839 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6840 (apply_xft_settings): Only update Xft settings with what member seen
6841 indicates as new.
6842
05fe33ff
EZ
68432009-12-12 Eli Zaretskii <eliz@gnu.org>
6844
c4cc8b9a 6845 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6846 (struct glyph): Use EMACS_INT for charpos.
6847 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6848 region_beg_charpos, region_end_charpos,
6849 redisplay_end_trigger_charpos, and also for
6850 iterator_stack_entry.end_charpos and
6851 iterator_stack_entry.stop_charpos.
6852
e8d7886a
JD
68532009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6854
5ce6e4f4 6855 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6856 (xg_create_scroll_bar): Call scroll_end_callback on button release
6857 event (bug #5177).
6858 (xg_event_is_for_scrollbar): != replaced with ==.
6859
d0db2ec8
KH
68602009-12-12 Kenichi Handa <handa@m17n.org>
6861
6862 * ftfont.c (struct ftfont_info): New member matrix.
6863 (ftfont_open): Setup xftfont_info->matrix.
6864 (MFLTFontFT): New member matrix.
6865 (FLOOR, CEIL, ROUND): New macros.
6866 (ftfont_get_metrics): Handle matrix transformation.
6867 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6868
6869 * xftfont.c (struct xftfont_info): New member matrix.
6870 (xftfont_open): Setup xftfont_info->matrix.
6871
68722009-12-10 Kenichi Handa <handa@m17n.org>
6873
6874 * xdisp.c (append_space_for_newline): Consider face-remapping.
6875
2cc7b62f
AS
68762009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6877
b87dd913
AS
6878 * xsettings.c: Include "keyboard.h".
6879
eba5eb94
AS
6880 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6881
2cc7b62f
AS
6882 Fix implicit function declarations.
6883 * cmds.c: Include "frame.h".
6884 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6885 * frame.h: Move declaration of delete_frame outside of
6886 HAVE_WINDOW_SYSTEM.
6887
a4ef73c8
CY
68882009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6889
6890 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6891
6892 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6893 GTK builds.
6894
944a300c
AS
68952009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6896
6897 * unexelf.c (unexec): Don't search for .data twice.
6898
022eef62
CY
68992009-12-05 Chong Yidong <cyd@stupidchicken.com>
6900
426ac949
CY
6901 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6902 if push failed.
6903 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6904 of push_display_prop (Bug#5000).
6905
022eef62
CY
6906 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6907 value of font_list_entities (Bug#5085).
6908
be95bee9
JB
69092009-12-04 Juanma Barranquero <lekktu@gmail.com>
6910
6911 Fix `string-to-number' to deal consistently with integers and floats.
6912 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6913 trailing characters, not just whitespace.
6914 (read1): Pass new arg 0 to keep old behavior.
6915 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6916 trailing chars, as it is already done for integers. Doc fixes.
6917 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6918
24c2d7ce
EZ
69192009-12-04 Eli Zaretskii <eliz@gnu.org>
6920
0b5397c2
SM
6921 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6922 Delete unused enumeration value.
24c2d7ce 6923
7e694795
EZ
69242009-12-03 Eli Zaretskii <eliz@gnu.org>
6925
6926 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6927
84b31826
SM
69282009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6929
6930 * process.c (Fmake_network_process): Fix up the tests for
6931 "connectionless socket", so they DTRT for seqpacket sockets as well.
6932
f00c449b
SM
69332009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6934
6935 * process.c (Qseqpacket): New symbol.
6936 (HAVE_SEQPACKET): New macro.
6937 (Fmake_network_process): Accept new :type `seqpacket'.
6938 (init_process): Add `seqpacket' feature when applicable.
6939 (syms_of_process): Initialize Qseqpacket.
6940
8096a0ff
YM
69412009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6942
6943 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6944 if entity is Qnil.
6945
3e0de07f
SM
69462009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6947
6948 * print.c (print_preprocess): Preprocess the key_and_value table of
6949 hashtables, even tho they're "hidden" (bug#5082).
6950
abeafb2a
JD
69512009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6952
6953 * frame.c (frame_make_pointer_invisible)
6954 (frame_make_pointer_visible): Declare f before statements.
6955
4bf47195
EZ
69562009-11-28 Eli Zaretskii <eliz@gnu.org>
6957
6958 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6959 omitted dependencies on lisp.h.
6960
c525b3f2
JD
69612009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6962
ece2d4ed
JD
6963 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6964 is NULL.
6965
6966 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6967
6968 * frame.c (frame_make_pointer_invisible)
3e0de07f 6969 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6970 frame.
6971
c525b3f2
JD
6972 * search.c (simple_search): Remove warning by making *p const.
6973
2f00e299
DN
69742009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6975
6976 * xdisp.c (power_letter): Remove duplicate const.
6977
084b049b
JD
69782009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6979
a1fadc6f
JD
6980 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6981
5ce6e4f4 6982 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6983 defaults (bug #5025).
6984
28259cac
SM
69852009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6986
6987 * insdel.c (adjust_markers_for_delete): Move it in the
6988 right direction! (bug#4803)
6989
e8e14166
YM
69902009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6991
6992 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6993
6994 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6995
86677b58
GM
69962009-11-24 Glenn Morris <rgm@gnu.org>
6997
6998 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6999
581e51e8
JD
70002009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7001
cfc86c7a
JD
7002 * Makefile.in: Must create deps for ecrt0.o in its rule.
7003
581e51e8
JD
7004 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7005 because that is what Gtk+ font dialog understands.
7006
7007 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7008 of Fcopy_sequence.
7009 (font_open_by_name): Put name given into QCname for font-object returned.
7010
7011 * frame.c (x_set_font): Save original font name as frame parameter
7012 font-parameter.
7013
7014 * xsettings.c (set_default_xft_settings): New function.
7015 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7016 is found.
7017
8b264ecb
AS
70182009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7019
7020 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7021 searching backwards through multibyte buffer.
7022
872870b2
JD
70232009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7024
7025 * xterm.c: #include xgselect.h.
7026 (x_initialize): Call xgselect_initialize.
7027
7028 * xsettings.c (something_changedCB): C++ comments => C comments.
7029 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7030 does that now.
7031
7032 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7033 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7034 (scroll_bar_button_cb): Remove.
5ce6e4f4 7035 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7036 event.
7037 (xg_create_scroll_bar): Don't bind button-press-event and
7038 button-release-event.
7039
7040 * process.c: Include xgselect.h if defined (USE_GTK) ||
7041 defined (HAVE_GCONF).
7042 (wait_reading_process_output): Call xg_select for the same condition.
7043
7044 * xgselect.c (xg_select): New function to better integrate with
7045 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7046
7047 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7048
7049 * Makefile.in (XOBJ): Add xgselect.o.
7050
62a6e103
AS
70512009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7052
0b5397c2
SM
7053 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7054 Remove ignored second argument. All callers changed.
62a6e103
AS
7055 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7056 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7057 * xdisp.c (string_char_and_length): Likewise.
7058
b0ca0f33
DN
70592009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7060
7061 * xterm.c (x_new_font):
7062 * print.c (print_object):
7063 * cmds.c (Fself_insert_command): Move declarations before statements.
7064
dd5a6279
CY
70652009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7066
7067 * s/cygwin.h: Remove unneeded linker flags.
7068
4a8e097d
JD
70692009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7070
0d1d0d26
JD
7071 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7072
7073 * xsettings.h: Declare xsettings_get_system_font.
7074
7075 * xsettings.c (xsettings_get_system_font): New function.
7076 (init_gconf): No use initiating gconf unless we have Xft also.
7077 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7078 HAVE_GCONF.
7079
4a8e097d
JD
7080 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7081 add a blank entry so it doesn't collapse into nothing.
7082
8ab1650e
SM
70832009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7084
7085 * lread.c (Funintern): Comment out last change.
7086
82c602f0
RS
70872009-11-19 Richard Stallman <rms@gnu.org>
7088
7089 * lread.c (Funintern): Error if symbol is t or nil.
7090
87e32266
SM
70912009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7092
7093 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7094 representation of Lisp integers.
7095 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7096
1b9ac145
AS
70972009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7098
7099 * lisp.h: Remove declaration of Ffont_get_system_font.
7100 * xfns.c: Move include of "xsettings.h".
7101 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7102
dfb3c4c6
JD
71032009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7104
87e32266
SM
7105 * xsettings.c (something_changedCB, Ffont_get_system_font):
7106 Check use_system_font.
dfb3c4c6
JD
7107 (syms_of_xsettings): DEFVAR font-use-system-font.
7108
9370c1d8
AS
71092009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7110
25fe851a
AS
7111 * xfns.c (x_default_font_parameter): Remove dead assignment.
7112
9370c1d8
AS
7113 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7114
637fa988
JD
71152009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7116
87e32266 7117 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7118 not have FC_LCD_*. #define them if not there.
a6eb20d8 7119
87e32266 7120 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7121
637fa988
JD
7122 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7123
7124 * xterm.c (handle_one_xevent): Call xft_settings_event for
7125 ClientMessage, PropertyNotify and DestroyNotify.
7126 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7127 Call xsettings_initialize.
7128
7129 * xftfont.c (xftfont_fix_match): New function.
7130 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7131 Call xftfont_fix_match after XftFontMatch.
7132
7133 * xfont.c (xfont_driver): Initialize all members.
7134
87e32266
SM
7135 * xfns.c (x_default_font_parameter):
7136 Try font from Ffont_get_system_font.
637fa988
JD
7137 Do not get font from x_default_parameter if we got one from
7138 Ffont_get_system_font.
87e32266 7139 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7140
7141 * w32font.c (w32font_driver): Initialize all members.
7142
7143 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7144
7145 * lisp.h: Declare syms_of_xsettings.
7146
87e32266
SM
7147 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7148 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7149
7150 * ftfont.c (ftfont_filter_properties): New function.
7151
7152 * frame.c (x_set_font): Remove unused variable lval.
7153
87e32266 7154 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7155
7156 * font.c (font_put_extra): Don't return if val is nil, it means
7157 boolean option is off.
7158 (font_parse_fcname): Collect all extra properties in extra_props
7159 and call filter_properties for all drivers with extra_props and
7160 font as parameter.
87e32266
SM
7161 (font_open_entity): Do not use cache, it does not pick up new
7162 fontconfig settings like hinting.
637fa988
JD
7163 (font_load_for_lface): If spec had a name in it, store it in entity.
7164
a73f9c9d 7165 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7166
7167 * config.in: HAVE_GCONF is new.
7168
7169 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7170 xsettings.o is new.
7171
5a942932
KH
71722009-11-17 Kenichi Handa <handa@m17n.org>
7173
7174 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7175 back to the default font in case that no suitable font is found.
7176
b7c7a4d1
SM
71772009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7178
7179 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7180 Suggested by Chad Brown <yandros@mit.edu>.
7181 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7182
072f1e39
JD
71832009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7184
7185 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7186
5d1e70a2
AS
71872009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7188
87e32266 7189 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7190
a53cfbe5
JD
71912009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7192
473a99b7
JD
7193 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7194 has a parent.
7195
a53cfbe5 7196 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7197 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7198
7199 * config.in: Generated (AUTO_DEPEND).
7200
f04bb9b2
MA
72012009-11-13 Michael Albinus <michael.albinus@gmx.de>
7202
b7c7a4d1 7203 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7204 Vdbus_registered_functions_table, because it contains also
7205 properties. Fix docstring.
b7c7a4d1 7206 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7207
8f11f7ec
SM
72082009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7209
7210 * alloc.c (mark_object): Don't reprocess marked strings.
7211 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7212 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7213
8a605fe8
KH
72142009-11-13 Kenichi Handa <handa@m17n.org>
7215
8f11f7ec 7216 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7217 semantics of Vword_combining_categories.
7218 (Vword_combining_categories): Describe the slight change of the
7219 semantics.
7220
241c4680
EZ
72212009-11-13 Eli Zaretskii <eliz@gnu.org>
7222
7223 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7224
7225 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7226
5d58e44c
SM
72272009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7228
7229 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7230
5e13f9d3
JB
72312009-11-12 Juanma Barranquero <lekktu@gmail.com>
7232
7233 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7234
cf54c754
DR
72352009-11-11 David Reitter <david.reitter@gmail.com>
7236
7237 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7238 variables to fix 2009-11-09 change.
7239
a4ada374
DN
72402009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7241
91433552
DN
7242 * process.c (ifflag_def): Make flag_sym constant.
7243 (Fnetwork_interface_info): Use a constant pointer.
7244 (ifflag_table):
7245 * xfns.c (cursor_bits):
7246 * xdisp.c (power_letter):
7247 * termcap.c (speeds, esctab):
7248 * sysdep.c (baud_convert):
7249 * keyboard.c (lispy_accent_codes, modifier_names):
7250 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7251 (jpeg_format, tiff_format, gif_format, svg_format)
7252 (interlace_start, interlace_increment, gs_format):
7253 * gtkutil.c (separator_names):
7254 * fringe.c (swap_nibble):
7255 * fns.c (base64_value_to_char, base64_char_to_value):
7256 * fileio.c (make_temp_name_tbl):
7257 * coding.c (suffixes): Make constant.
7258
f4265f6c
DN
7259 * frame.c (make_initial_frame):
7260 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7261 build_string.
7262 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7263
04420943
DN
7264 * s/freebsd.h:
7265 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7266
0a5d24ae
DN
7267 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7268 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7269
a4ada374
DN
7270 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7271 * xterm.c (syms_of_xterm):
7272 * xfaces.c (syms_of_xfaces):
7273 * xdisp.c (syms_of_xdisp):
7274 * lread.c (syms_of_lread):
7275 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7276 build_string.
91433552 7277
a4ada374
DN
7278 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7279
af98fc7f
SM
72802009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7281
8ab1650e 7282 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7283
e90292a9
JD
72842009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7285
7286 * keyboard.h: Declare timer_check.
7287
7288 * keyboard.c (timer_check_2): New function that does what the old
7289 timer_check did.
7290 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7291 returned, i.e. don't return -1 with timers pending.
7292
7293 * process.c: Remove extern declaration of timer_check.
7294
7295 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7296 even if timer_check returned -1.
7297
af98fc7f
SM
7298 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7299 xg_dialog_data.
e90292a9
JD
7300 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7301 the event loop.
7302 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7303 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7304 Destroy the dialog after xg_dialog_run.
7305
045b83c0
SM
73062009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7307
7308 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7309
1fb99a3a
JD
73102009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7311
7312 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7313
04e452cb
JB
73142009-11-09 Juanma Barranquero <lekktu@gmail.com>
7315
7316 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7317
ef7417fd
SM
73182009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7319
7320 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7321 w32menu.c, and nsmenu.m.
7322 Simplify the obsolete case where position is nil.
7323 (cleanup_popup_menu): New function, moved from nsmenu.m.
7324 (struct skp): Remove slot `notreal'.
7325 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7326 adjust callers.
7327 (single_menu_item): Adjust call to parse_menu_item.
7328 (syms_of_menu): Defsubr x-popup-menu.
7329 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7330 (keymap_panes): Don't export any more.
7331 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7332 (xmenu_show): Declare.
7333 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7334 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7335 * keyboard.h (parse_menu_item): Update declaration.
7336 * xmenu.c (Fx_popup_menu): Remove.
7337 (syms_of_xmenu): Don't defsubr x-popup-menu.
7338 * w32menu.c (Fx_popup_menu): Remove.
7339 (syms_of_w32menu): Don't defsubr x-popup-menu.
7340 * nsmenu.m (cleanup_popup_menu): Remove.
7341 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7342 moved to menu.c's Fx_popup_menu.
7343 (Fx_popup_menu): Remove.
7344 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7345 menu_items (it's done in menu.c already).
7346
424d6179
SM
73472009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7348
7349 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7350 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7351
c0df13a6 73522009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7353
7354 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7355 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7356 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7357 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7358
2de9f71c
SM
73592009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7360
7361 Let integers use up 2 tags to give them one extra bit and thus double
7362 their range.
7363 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7364 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7365 New macros.
7366 (enum Lisp_Type): Use them. Give explicit values.
7367 (Lisp_Type_Limit): Remove.
7368 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7369 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7370 Pay attention to USE_2_TAGS_FOR_INTS.
7371 (INTEGERP): Use LISP_INT_TAG_P.
7372 * fns.c (internal_equal): Simplify the default case.
7373 (sxhash): Use case_Lisp_Int.
7374 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7375 any more.
7376 (Ftype_of): Use case_Lisp_Int.
7377 (store_symval_forwarding): Take into account the fact that Ints can
7378 now have more than one tag.
7379 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7380 (buffer_slot_type_mismatch):
2de9f71c
SM
7381 * xfaces.c (face_attr_equal_p):
7382 * print.c (print_object):
7383 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7384 Use case_Lisp_Int.
7385
323637a2
EZ
73862009-11-06 Eli Zaretskii <eliz@gnu.org>
7387
7ac65b38
EZ
7388 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7389
323637a2
EZ
7390 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7391 warning.
7392
e511451f
JD
73932009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7394
7395 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7396
7397 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7398
7399 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7400 ButtonPressRelease and MotionNotify (bug#4870).
7401
5e2327cf
DN
74022009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7403
5adc433e
DN
7404 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7405
d67b4f80
DN
7406 * xterm.c (syms_of_xterm):
7407 * xselect.c (syms_of_xselect):
7408 * xmenu.c (syms_of_xmenu):
7409 * xfns.c (syms_of_xfns):
7410 * xfaces.c (syms_of_xfaces):
7411 * xdisp.c (syms_of_xdisp):
7412 * window.c (syms_of_window):
7413 * w32fns.c (syms_of_w32fns):
7414 * undo.c (syms_of_undo):
7415 * textprop.c (syms_of_textprop):
7416 * terminal.c (syms_of_terminal):
7417 * syntax.c (syms_of_syntax):
7418 * sound.c (syms_of_sound):
7419 * search.c (syms_of_search):
7420 * print.c (syms_of_print):
7421 * minibuf.c (syms_of_minibuf):
7422 * macros.c (syms_of_macros):
7423 * keymap.c (syms_of_keymap, initial_define_key)
7424 (initial_define_lispy_key):
7425 * keyboard.c (syms_of_keyboard):
7426 * insdel.c (syms_of_insdel):
7427 * image.c (syms_of_image):
7428 * fringe.c (syms_of_fringe):
7429 * frame.c (syms_of_frame):
7430 * fontset.c (syms_of_fontset):
7431 * fns.c (syms_of_fns):
7432 * fns.c (syms_of_fns):
7433 * fileio.c (syms_of_fileio):
7434 * fileio.c (syms_of_fileio):
7435 * eval.c (syms_of_eval):
7436 * doc.c (syms_of_doc):
7437 * dispnew.c (syms_of_display):
7438 * dired.c (syms_of_dired):
7439 * dbusbind.c (syms_of_dbusbind):
7440 * data.c (syms_of_data):
7441 * composite.c (syms_of_composite):
7442 * coding.c (syms_of_coding):
7443 * cmds.c (syms_of_cmds):
7444 * charset.c (define_charset_internal, syms_of_character):
7445 * ccl.c (syms_of_ccl):
7446 * category.c (syms_of_category, init_category_once):
7447 * casetab.c (syms_of_casetab):
7448 * casefiddle.c (syms_of_casefiddle):
7449 * callint.c (syms_of_callint):
7450 * bytecode.c (syms_of_bytecode):
7451 * buffer.c (keys_of_buffer, syms_of_buffer):
7452 * alloc.c (syms_of_alloc):
7453 * process.c (syms_of_process, init_process):
7454 * lread.c (syms_of_lread, init_obarray):
7455 * font.c (build_style_table):
7456 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7457 intern_c_string, calls to make_pure_string with
7458 make_pure_c_string. Use pure_cons instead of Fcons.
7459
5e2327cf
DN
7460 * process.c (socket_options): Make it const.
7461 (set_socket_option, init_process): Use a const pointer.
7462
7463 * lread.c (intern_c_string): New function.
7464 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7465 (defvar_int): Uset it. Make the name const char*.
7466
7467 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7468 (defvar_int): Update prototypes.
7469 (DEFUN, EXFUN): Support for prototypes is now required.
7470 (intern_c_string): New prototype.
7471 (struct Lisp_Subr): Make symbol_name constant.
7472
7473 * font.c (struct table_entry): Remove unused member. Make NAMES
7474 constant.
7475 (weight_table, slant_table, width_table): Make constant.
7476
7477 * emacs.c (struct standard_args): Make name and longname constant.
7478
7479 * character.h (DEFSYM): Use intern_c_string.
7480
a56eaaef
DN
74812009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7482
7483 * alloc.c (make_pure_c_string): New function.
7484
7485 * eval.c (Fautoload): Purecopy all arguments.
7486
f6a07420
KH
74872009-11-05 Kenichi Handa <handa@m17n.org>
7488
7489 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7490 the buffer in case of replace.
7491
5d28d4b1
DN
74922009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7493
7494 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7495
b349d111
SM
74962009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7497
d528b1ce
SM
7498 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7499 when applicable (bug#4851).
7500
b349d111
SM
7501 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7502 (P_): Support for prototypes is now required.
7503
c38eb027
CY
75042009-10-31 Chong Yidong <cyd@stupidchicken.com>
7505
7506 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7507 (Bug#4827).
7508
0405f8d9
EZ
75092009-10-30 Eli Zaretskii <eliz@gnu.org>
7510
d528b1ce 7511 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7512
ca0a881a
DN
75132009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7514
7515 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7516
d528b1ce
SM
7517 * lread.c (Fload): Purecopy the file name when building
7518 Vpreloaded_file_list.
ca0a881a 7519
47e0e0e4
JR
75202009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7521
7522 * w32fns.c (syms_of_w32fns): Change default value of
7523 w32-scroll-lock-modifier to nil. (Bug#2827)
7524
057bce6f
JB
75252009-10-26 Juanma Barranquero <lekktu@gmail.com>
7526
782a943e 7527 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7528
242bc74c
AS
75292009-10-26 Andreas Schwab <schwab@redhat.com>
7530
7531 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7532
522d013a
JB
75332009-10-26 Juanma Barranquero <lekktu@gmail.com>
7534
7535 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7536 For delta < 0, skip check that only makes sense when the mini-window
7537 is going to be enlarged. (Bug#4534)
7538
18060980
CY
75392009-10-25 Chong Yidong <cyd@stupidchicken.com>
7540
7541 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7542 string in menu maps (Bug#4471).
7543
fec8f0fe
CY
75442009-10-24 Chong Yidong <cyd@stupidchicken.com>
7545
7546 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7547 FRAME_NS_VIEW on terminal frames (Bug#4765).
7548
10d66ec0
AS
75492009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7550
1cae01f7
AS
7551 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7552 DBUS_TYPE_UINTnn separately to get proper sign extension.
7553
58a12889
AS
7554 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7555 can properly handle unsigned types.
d528b1ce 7556 (make_uid, make_gid): Remove.
58a12889 7557
987c9327
AS
7558 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7559 types again.
7560
522d013a 7561 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7562 (system_process_attributes): Likewise.
7563
905a9ed3
DN
75642009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7565
7566 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7567
7568 * eval.c (Fautoload): Purecopy the filename. Simplify.
7569
7570 * category.c (Fdefine_category): Purecopy docstring.
7571
a599b3e8
AS
75722009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7573
7b792fc9
AS
7574 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7575
a599b3e8
AS
7576 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7577
b35ac83e
CY
75782009-10-23 Chong Yidong <cyd@stupidchicken.com>
7579
7580 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7581 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7582 (Bug#4775).
7583
e8903e00
SM
75842009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7585
7586 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7587 (init_fileio_once):
7588 * lisp.h (init_fileio_once): Remove.
7589 * emacs.c (main): Don't call init_fileio_once.
7590
8f43cbf3
DN
75912009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7592
7593 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7594
26898943
AS
75952009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7596
7597 * doprnt.c (doprnt): Fix overflow check.
7598
5c646d5a
JD
75992009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7600
3132a7ea
JD
7601 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7602
5c646d5a
JD
7603 * xterm.h (x_wait_for_event): Declare it.
7604
7605 * xterm.c (pending_event_wait): New variable.
7606 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7607 see pending_event_wait.eventtype.
7608 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7609 (x_new_font): Call change_frame_size with new rows/columns before we
7610 try to resize the frame.
5c646d5a 7611 (x_wait_for_event): New function.
d528b1ce
SM
7612 (x_set_window_size_1): Don't change gravity unless change_gravity
7613 is set.
5c646d5a
JD
7614 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7615 don't change frame size, instead wait for the ConfigureNotify.
7616 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7617 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7618 (x_initialize): Initialize pending_event_wait.
7619
7620 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7621 size.
7622
7623 * widget.c (EmacsFrameSetValues): Add comment.
7624 (EmacsFrameSetCharSize): Just call x_set_window_size.
7625
7626 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7627 x_wait_for_event.
d528b1ce 7628 (flush_and_sync): Remove again.
5c646d5a
JD
7629 (xg_get_font_name): Suggest monospace if no previous font is known.
7630
e9c1637d
SM
76312009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7632
7633 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7634 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7635
5a72cccb
YM
76362009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7637
7638 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7639 processing pending events when event is filtered for input method.
ab04798f 7640 (Bug#3681)
5a72cccb 7641
2629aa37
JB
76422009-10-20 Juanma Barranquero <lekktu@gmail.com>
7643
7644 * fns.c: Add #endif accidentally removed in previous change.
7645
c3417a74
DN
76462009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7647
7648 * fns.c: Remove code for unsupported system: MAC_OS.
7649 * image.c: Likewise. Include setjmp.h.
7650
9685cef2
JD
76512009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7652
7653 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7654 pixel -1 (bug #4742).
7655
d7306fe6
DN
76562009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7657
019d2c4c
DN
7658 * process.c (create_pty): Remove conditionals for no longer
7659 supported systems: UNIPLUS and RTU.
7660
ee6bacd4
DN
7661 * xterm.c:
7662 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7663
d7306fe6
DN
7664 * alloc.c: Do not define struct catchtag.
7665 * eval.c: Move struct catchtag definition ...
7666 * lisp.h: ... here.
7667
7668 * image.c: Move png.h #include earlier to avoid warnings.
7669
7670 * xterm.c:
7671 * xsmfns.c:
7672 * xselect.c:
7673 * xrdb.c:
7674 * xmenu.c:
7675 * xftfont.c:
7676 * xfont.c:
7677 * xfns.c:
7678 * xfaces.c:
7679 * xdisp.c:
7680 * window.c:
7681 * widget.c:
7682 * w32xfns.c:
7683 * w32uniscribe.c:
7684 * w32term.c:
7685 * w32select.c:
7686 * w32reg.c:
7687 * w32proc.c:
7688 * w32menu.c:
7689 * w32inevt.c:
7690 * w32heap.c:
7691 * w32font.c:
7692 * w32fns.c:
7693 * w32console.c:
7694 * w32.c:
7695 * w16select.c:
7696 * vm-limit.c:
7697 * unexsol.c:
7698 * unexec.c:
7699 * unexcw.c:
7700 * unexaix.c:
7701 * undo.c:
7702 * tparam.c:
7703 * textprop.c:
7704 * terminfo.c:
7705 * terminal.c:
7706 * termcap.c:
7707 * term.c:
7708 * syntax.c:
7709 * sound.c:
7710 * sheap.c:
7711 * search.c:
7712 * scroll.c:
7713 * region-cache.c:
7714 * regex.c:
7715 * ralloc.c:
7716 * process.c:
7717 * print.c:
b024548b
DN
7718 * nsterm.m:
7719 * nsselect.m:
7720 * nsmenu.m:
7721 * nsimage.m:
7722 * nsfont.m:
7723 * nsfns.m:
d7306fe6
DN
7724 * msdos.c:
7725 * minibuf.c:
7726 * menu.c:
7727 * marker.c:
7728 * macros.c:
7729 * keymap.c:
7730 * keyboard.c:
7731 * intervals.c:
7732 * insdel.c:
7733 * indent.c:
7734 * gtkutil.c:
7735 * ftxfont.c:
7736 * ftfont.c:
7737 * fringe.c:
7738 * frame.c:
7739 * fontset.c:
7740 * font.c:
7741 * fns.c:
7742 * floatfns.c:
7743 * filelock.c:
7744 * fileio.c:
7745 * emacs.c:
7746 * editfns.c:
7747 * dosfns.c:
7748 * doprnt.c:
7749 * doc.c:
7750 * dispnew.c:
7751 * dired.c:
7752 * dbusbind.c:
7753 * data.c:
7754 * composite.c:
7755 * coding.c:
7756 * cmds.c:
7757 * cm.c:
7758 * chartab.c:
7759 * charset.c:
7760 * character.c:
7761 * ccl.c:
7762 * category.c:
7763 * casetab.c:
7764 * casefiddle.c:
7765 * callproc.c:
7766 * callint.c:
7767 * bytecode.c:
7768 * buffer.c:
7769 * atimer.c: Include setjmp.h. (Bug#4643)
7770
fd5f21e6
SM
77712009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7772
4c0354d7
SM
7773 Remove leftover table unibyte_to_multibyte_table.
7774 * character.c (unibyte_to_multibyte_table): Remove.
7775 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7776 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7777 * character.h (UNIBYTE_TO_CHAR): New macro.
7778 (MAKE_CHAR_MULTIBYTE): Use it.
7779 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7780 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7781 (message_dolog, set_message_1):
7782 * search.c (Freplace_match):
7783 * editfns.c (Fcompare_buffer_substrings):
7784 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7785 (concat):
7786 * insdel.c (copy_text, count_size_as_multibyte):
7787 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7788 * term.c (produce_glyphs):
7789 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7790 * regex.c (RE_CHAR_TO_MULTIBYTE):
7791 * cmds.c (internal_self_insert):
7792 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7793
fd5f21e6
SM
7794 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7795
4418646e
DN
77962009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7797
7798 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7799
35f5c1d2
JB
78002009-10-16 Juanma Barranquero <lekktu@gmail.com>
7801
7802 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7803
a0cd8f6b
AR
78042009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7805
7806 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7807 still needed under Tiger.
7808
7809 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7810
7811 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7812 __Apple__.
7813
7814 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7815
01a8d3fa
KH
78162009-10-15 Kenichi Handa <handa@m17n.org>
7817
7818 * print.c (print_object): Escape a symbol like "2E10" too.
7819
bf6c75c9 78202009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7821
7822 Cleanups and changes for 64-bit compile under Snow Leopard.
7823 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7824
7825 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7826
c5959062 7827 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7828 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7829 cast argument.
7830 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7831 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7832
7833 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7834
7835 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7836 where appropriate.
7837
7838 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7839 where appropriate.
6e4780c5
JB
7840 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7841 Use stringWithUTF8String.
bf6c75c9
AR
7842 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7843
6e4780c5
JB
7844 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7845 Add formal protocol mention to inheritance.
bf6c75c9
AR
7846 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7847
6e4780c5
JB
7848 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7849 Fix printf format.
bf6c75c9
AR
7850 (ns_query_color): Use CGFloat where appropriate.
7851 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7852 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7853 argument.
7854
3d87f118
AR
7855 * config.in (NS_HAVE_NSINTEGER): Drop.
7856
a95c8102
AR
7857 * dbusbind.c (dbus-method-return-internal)
7858 (dbus-method-error-internal): Use long format in printf, and cast
7859 argument.
7860
7861 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7862 in printf, and cast argument.
7863
6873acca 7864 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7865 cast argument.
7866
9ec6f100
GM
78672009-10-11 Glenn Morris <rgm@gnu.org>
7868
7869 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7870
5be883cd
JD
78712009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7872
7873 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7874 menu bar with a small width so it doesn't enlarge the frame.
7875
d7a39b51
JB
78762009-10-08 Juanma Barranquero <lekktu@gmail.com>
7877
7878 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7879
0c2b6f8e
GM
78802009-10-06 Glenn Morris <rgm@gnu.org>
7881
7882 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7883 SOME_MACHINE_LISP (this enters indirectly via DOC).
7884
e02131a2
EZ
78852009-10-05 Eli Zaretskii <eliz@gnu.org>
7886
7887 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7888
b4744254
EZ
78892009-10-04 Eli Zaretskii <eliz@gnu.org>
7890
7891 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7892 Doc fix.
7893
dbf64827
JB
78942009-10-03 Martin Rudalics <rudalics@gmx.at>
7895
7896 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7897
e9a0aef8
MA
78982009-10-02 Michael Albinus <michael.albinus@gmx.de>
7899
d528b1ce 7900 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7901 used anymore outside fileio.c.
7902
7903 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7904
64eb2b56
JB
79052009-10-01 Juanma Barranquero <lekktu@gmail.com>
7906
7907 * lisp.h (Qdelete_directory_internal):
7908 Declare, instead of Qdelete_directory.
7909
7910 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7911
9d28c33e
SM
79122009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7913
7914 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7915
9d8f3bd9
MA
79162009-10-01 Michael Albinus <michael.albinus@gmx.de>
7917
9d28c33e 7918 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7919 Fdelete_directory. It is not a command anymore. It has no file
7920 name handler.
7921
9694740b
SM
79222009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7923
7924 * xdisp.c (get_next_display_element): Use an enum in last change.
7925
748e162f
KH
79262009-09-28 Kenichi Handa <handa@m17n.org>
7927
9694740b 7928 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7929 unibyte_display_via_language_environment in handling
7930 Vnobreak_char_display.
7931
17efd58d
AR
79322009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7933
7934 * nsterm.h (ns_app_name): New extern variable.
7935
7936 * nsterm.m (ns_app_name): New variable.
7937 (ns_term_init): Set and use it.
7938 (ns_term_shutdown): Use it.
7939
7940 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7941 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7942
7943 * nsfns.m (ns_set_name_iconic, ns_set_name)
7944 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7945 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7946
9694740b
SM
7947 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7948 Remove double-casting in client_data comparison.
31c2d412 7949
3208cb35
YM
79502009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7951
7952 * keyboard.c (make_lispy_event): Remember last wheel direction.
7953 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7954
b7d552d6
GM
79552009-09-26 Glenn Morris <rgm@gnu.org>
7956
7957 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7958 internal.elc. Add term/pc-win.elc.
7959 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7960 term/x-win.elc.
7961 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7962 term/w32-win.elc.
7963 (NS_SUPPORT): New.
7964 (lisp): Add NS_SUPPORT.
7965 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7966
4ff670a8
DR
79672009-09-25 David Reitter <david.reitter@gmail.com>
7968
7969 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7970 on Mac OS X 10.6+ (bug#4513).
7971
feabfb6c
JB
79722009-09-24 Juanma Barranquero <lekktu@gmail.com>
7973
7974 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7975 some parts of Emacs code (like font selection) don't grok them.
7976 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7977
de59072a
AS
79782009-09-24 Andreas Schwab <schwab@redhat.com>
7979
7980 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7981
a489517b
JB
79822009-09-24 Juanma Barranquero <lekktu@gmail.com>
7983
7984 * dired.c (Fdirectory_files): Fix typo in docstring.
7985
0592970c
AR
79862009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7987
7988 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7989 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7990 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7991 under GNUstep.
7992 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7993
7994 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7995 glyph advancement.
7996
48e8a88b
AR
79972009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7998
7999 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8000 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8001
8002 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8003 deleted (bug #4492).
8004
e14f0a78
AR
8005 * nsfont.m (Vns_reg_to_script): New lisp variable.
8006 (syms_of_nsfont): Declare it.
8007 (ns_registry_to_script): New function.
8008 (ns_get_req_script): Call it.
8009 (ns_findfonts): Don't give up on non-unicode registry.
8010
8011 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8012
5b650faa
SM
80132009-09-20 Tom Tromey <tromey@redhat.com>
8014
8015 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8016 batch mode (bug#4228).
8017
a489517b 80182009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8019
8020 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8021 carefully. (Bug #4339)
0bae4e09 8022
fcfe06f3
CY
80232009-09-18 Chong Yidong <cyd@stupidchicken.com>
8024
d798ba87 8025 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8026
31642728
AR
80272009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8028
8029 * emacs.c (inhibit_x_resources): Update doc string for NS.
8030 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8031 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8032
8033 * nsterm.h (ns_no_defaults): Remove.
8034
8035 * nsterm.m (ns_no_defaults): Remove.
8036 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8037 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8038 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8039 don't update the NSWindow itself.
8040 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8041 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8042
8043 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8044 ns_use_qd_smoothing.
8045
8046 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8047 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8048 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8049 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8050
8686ac71
JB
80512009-09-17 Juanma Barranquero <lekktu@gmail.com>
8052
8053 * emacs.c (inhibit_x_resources): New variable.
8054 (main) [HAVE_NS]: Don't process --quick command line option.
8055 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8056
8057 * lisp.h (inhibit_x_resources): Declare it extern.
8058
8059 * w32reg.c (x_get_string_resource):
8060 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8061
e227ba05
EZ
80622009-09-17 Eli Zaretskii <eliz@gnu.org>
8063
362654a6
JB
8064 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8065 Add lisp/term/internal.elc.
e227ba05 8066
742d40e8
SM
80672009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8068
8069 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8070 (bug#4461).
8071
005bd5a2
DN
80722009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8073
8074 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8075
8076 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8077 (OBJECTS_MACHINE): Remove, unused.
8078
f9af9719
SM
80792009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8080
8081 * frame.c (x_get_resource_string): Remove unused.
8082
0307c7d2
JD
80832009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8084
8085 * xterm.c (x_new_font): Call change_frame_size before calling
8086 x_set_window_size, in case frame size won't change.
8087
8088 * frame.c (x_set_font): Remove dead code.
8089
428b13d6
SM
80902009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8091
8092 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8093
5766c380
SM
80942009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8095
8096 * lread.c (Fload): Don't output a message after loading an obsolete
8097 package any more (done in Lisp now).
8098
2fd0161b
CY
80992009-09-12 Chong Yidong <cyd@stupidchicken.com>
8100
8101 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8102
bc5e75b6
SM
81032009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8104
8105 * keymap.c (Fwhere_is_internal): Use nconc2.
8106
c31c985e
AM
81072009-09-11 Alan Mackenzie <acm@muc.de>
8108
8109 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8110 batch mode.
8111
78012bd2
AS
81122009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8113
8114 * xdisp.c (display_mode_element): Detect cycles.
8115
9d889332
SM
81162009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8117
8118 * keymap.c (where_is_internal): Don't erroneously return nil right after
8119 filling the cache.
8120 (where_is_internal_1): Fix up typo.
8121
7ab5d780
GM
81222009-09-11 Glenn Morris <rgm@gnu.org>
8123
8124 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8125 share a common doc-string.
8126
5238a749
SM
81272009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8128
66d77eda
SM
8129 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8130 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8131
5238a749
SM
8132 * keymap.c (QCadvertised_binding): New constant.
8133 (syms_of_keymap): Initialize it.
8134 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8135 if applicable.
8136
19f48442
SM
81372009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8138
50d4ba39
SM
8139 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8140 (parse_menu_item): Streamline since bindings are recomputed all the
8141 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8142 more and don't support lmenu's menu-alias any more either.
8143
a88a5372
SM
8144 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8145 (where_is_internal): Strip it down to only traverse the keymaps.
8146 Move the cache handling from Fwhere_is_internal to here.
8147 (Fwhere_is_internal): Move the handling of remapping and the choice of
8148 the best binding from where_is_internal to here.
8149 Unify the cached/noncached paths, so remapping is also handled
8150 correctly when the cache is used, and so the cache can be used to
8151 speed up remap-handling when applicable.
8152 Give preference to non-remapped bindings.
8153 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8154 non-remapped bindings.
8155 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8156 command remapping.
8157
19f48442
SM
8158 * xdisp.c (display_mode_element): Move list length limit from 50 to
8159 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8160
599498c3 81612009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8162
8163 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8164
f9b7b5ac
SM
81652009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8166
a53af587
JB
8167 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8168 (Bug#4334)
8169
f9b7b5ac
SM
8170 * keymap.c (where_is_internal): Filter out shadowed remappings.
8171 Assume that where_is_internal returns unshadowed bindings to simplify
8172 the code and get rid of the gotos. Use ASIZE.
8173
04f4b72d
JD
81742009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8175
4da146f2
JD
8176 * xterm.c (x_focus_changed): If we get a focusout and pointer
8177 is invisible, make it visible.
8178
04f4b72d
JD
8179 * xterm.h: Remove condition for declaration of
8180 x_*_window_to_frame.
8181
7cef7ce3
SM
81822009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8183
8184 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8185 initial terminal as well.
8186
a54fa5b7
JD
81872009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8188
8189 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8190 x_menubar_window_to_frame.
a54fa5b7 8191
50426a04 8192 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8193 (XTmouse_position): Do not return valid positions
8194 for clicks in the menubar and the toolbar for Gtk+.
8195
8196 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8197 if the widget for the event has the same top level as a frame,
8198 return the frame.
8199 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8200 internal windows, bug #4122.
8201 (x_non_menubar_window_to_frame): Remove.
8202
5a021dd0
GM
82032009-09-02 Glenn Morris <rgm@gnu.org>
8204
8205 * buffer.c (default-major-mode): Move most of the doc from here...
8206 (major-mode): ... to here.
8207
548fe2f3
NR
82082009-08-30 Nick Roberts <nickrob@snap.net.nz>
8209
8210 * process.c (wait_reading_process_output): Keep the descriptor
8211 when pty is used by a non-child process, e.g., in I/O buffer of
8212 GDB this allows inferior to be restarted.
8213
e0840eef
EZ
82142009-08-29 Eli Zaretskii <eliz@gnu.org>
8215
8216 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8217 both branches into one.
8218
82e98df4
SM
82192009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8220
8221 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8222 (main): Use enable-multibyte-characters rather than
8223 default-enable-multibyte-characters. Output a warning message when
8224 running a unibyte session.
8225
890617cb
YM
82262009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8227
8228 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8229 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8230 (copy_data_segment): Also copy __program_vars section.
8231 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8232 (dump_it) [LC_DYLD_INFO]: Use it.
8233
8234 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8235
e7adeadc
EZ
82362009-08-28 Eli Zaretskii <eliz@gnu.org>
8237
8238 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8239 $(SRC)/buildobj.h.
8240 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8241 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8242 $(SRC)/buildobj.h.
8243 (clean): Add buildobj.h.
8244
3ed8bbdc
TZ
82452009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8246
8247 * print.c (print_object): Set escapeflag to 1 when printing
8248 hashtable keys and values.
8249
155a6764
SM
82502009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8251
8252 * lread.c (read_integer): Use doubles (and potentially return a float
8253 number) as we do in string-to-number.
8254 (read1): Use strtol to read integers, signal errors on strtol's
8255 overflow and use floats if strtol's output is too large for
8256 Elisp integers.
8257
877610de
EZ
82582009-08-27 Eli Zaretskii <eliz@gnu.org>
8259
8260 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8261 (make-buildobj-SH): Fix last change.
8262 (SRC): Move to before where it's first used.
8263
ef73e7be
KH
82642009-08-27 Kenichi Handa <handa@m17n.org>
8265
550c8289
KH
8266 * process.c (send_process): Use encode_coding_object instead of
8267 encode_coding_string to perform eol-conversion even if the string
8268 is unibyte.
8269
60afa08d
KH
8270 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8271 character.
8272
ef73e7be 8273 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8274 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8275
7b3a82d7
DN
82762009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8277
5654bf63
DN
8278 * callproc.c (Fcall_process): Remove always true #if.
8279
7b3a82d7
DN
8280 * lisp.h: Replace #if 0 code for checking with text pointing to
8281 the --enable-checking configure flag.
8282
8283 * emacs.c (main): Mention the --enable-profiling configure flag
8284 instead of using CFLAGS.
8285
878bde49
KR
82862009-08-26 Ken Raeburn <raeburn@raeburn.org>
8287
8288 * Makefile.in (buildobj.h): New target.
8289 (doc.o): Depend on it.
8290 (temacs${EXEEXT}): Don't generate buildobj.lst.
8291 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8292 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8293 ($(BLD)/doc.$(O)): Depend on it.
8294 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8295 provided by Eli Zaretskii.)
8296 ($(TEMACS)): Don't generate buildobj.lst.
8297 * doc.c: Include buildobj.h.
8298 (buildobj): New static variable.
8299 (Fsnarf_documentation): Use it, instead of opening and reading
8300 buildobj.lst.
8301
1574224c
MA
83022009-08-25 Michael Albinus <michael.albinus@gmx.de>
8303
8304 * dbusbind.c (Fdbus_call_method)
8305 (Fdbus_call_method_asynchronously): Use English numeric format for
8306 timeout values in doc string.
8307
d9da2f45
KH
83082009-08-25 Kenichi Handa <handa@m17n.org>
8309
ef73e7be
KH
8310 * alloc.c (mark_char_table): New function.
8311 (mark_object): Use mark_char_table for a char-table.
8312
d9da2f45
KH
8313 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8314 (CHAR_TABLE_REF): Use it.
8315
c8edcc01
KR
83162009-08-23 Ken Raeburn <raeburn@raeburn.org>
8317
8318 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8319 before invoking the newly build emacs to check for load-path
8320 shadowing.
8321
7763401b
GM
83222009-08-22 Glenn Morris <rgm@gnu.org>
8323
8324 * Makefile.in (bootstrap_exe): New variable.
8325 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8326 Use ${bootstrap_exe}.
8327
729eadda
EZ
83282009-08-22 Eli Zaretskii <eliz@gnu.org>
8329
8330 * coding.h (encode_coding_string): Don't encode unibyte strings.
8331 (Bug#4047)
8332
eb4c6ace
MA
83332009-08-22 Michael Albinus <michael.albinus@gmx.de>
8334
8335 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8336
8337 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8338 intended as hotfix only.
8339 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8340
36e34d1b
AR
83412009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8342
8343 * nsterm.m (ns_get_color): Update documentation properly for last
8344 change, and clean up loose ends in the code left by it. Fix
8345 longstanding bug with 16-bit hex parsing, and add support for
8346 yet another X11 format (rgb:r/g/b) for compatibility.
8347 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8348 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8349
f983eb8a
SM
83502009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8351
8352 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8353
3f56d3c6
MA
83542009-08-20 Michael Albinus <michael.albinus@gmx.de>
8355
8356 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8357 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8358 (xd_initialize, xd_pending_messages): Check, whether
8359 $DBUS_SESSION_BUS_ADDRESS is set.
8360
fb641d68
YM
83612009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8362
8363 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8364
8365 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8366
cf59a374
GM
83672009-08-20 Glenn Morris <rgm@gnu.org>
8368
8369 * emacs.c (system-type): Doc fix.
8370
1373f3be
SM
83712009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8372
8373 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8374 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8375
058ed861
MA
83762009-08-18 Michael Albinus <michael.albinus@gmx.de>
8377
1373f3be
SM
8378 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8379 New functions.
058ed861
MA
8380 (xd_initialize): Revert change from 2009-08-16.
8381
563a866e 83822009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8383
8384 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8385 font-group vector, return nil.
5fc05db0 8386
e42bdf01
CY
83872009-08-17 Chong Yidong <cyd@stupidchicken.com>
8388
8389 * process.c (status_notify): Don't perform redisplay.
8390 (Fdelete_process, list_processes_1, process_send_signal):
8391 Expliticly perform redisplay.
8392 (wait_reading_process_output): Always check process status, but
8393 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8394
4230ab74
KR
83952009-08-17 Ken Raeburn <raeburn@raeburn.org>
8396
1373f3be 8397 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8398 (XFLOAT_INIT): New macro for storing a float value.
8399 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8400 * fns.c (sxhash): Copy out the value of a float in order to
8401 examine its bytes.
8402 * dbusbind.c (xd_append_arg): Likewise.
8403
4230ab74
KR
8404 * emacs.c (main): Don't call syms_of_data twice.
8405
a0645cdd
MA
84062009-08-16 Michael Albinus <michael.albinus@gmx.de>
8407
8408 * dbusbind.c (xd_initialize): Add connection file descriptor to
8409 input_wait_mask, in order to let select() detect, whether a new
8410 message has been arrived.
ca4f31ea 8411 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8412
485db0ba
MA
84132009-08-15 Michael Albinus <michael.albinus@gmx.de>
8414
1373f3be
SM
8415 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8416 New functions.
485db0ba
MA
8417
8418 * lisp.h (xd_pending_messages): Declare.
8419
8420 * keyboard.c (readable_events): Call xd_pending_messages.
8421
b5b98ff4
CY
84222009-08-15 Chong Yidong <cyd@stupidchicken.com>
8423
1373f3be 8424 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8425
f8354c6e
CY
8426 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8427
b5b98ff4
CY
8428 * buffer.c (set_buffer_internal_1)
8429 (swap_out_buffer_local_variables): Check for unbound local
8430 variables (Bug#4138).
8431
8b9fc636
EZ
84322009-08-14 Eli Zaretskii <eliz@gnu.org>
8433
8434 * process.c (create_pty): Fix last change.
8435
ce959360
CY
84362009-08-13 Chong Yidong <cyd@stupidchicken.com>
8437
8438 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8439 (xbm_load_image): Caller changed.
64b807c9 8440 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8441
c7baf7e9
NR
84422009-08-13 Nick Roberts <nickrob@snap.net.nz>
8443
8444 * process.c (create_pty): New function.
8445 (Fstart_process): Use it to allow Emacs to just associate a pty
8446 with the buffer. See associated change in gdb-mi.el.
8447 (list_processes_1): Deal with no program name.
8448 (start_process_unwind): Use pid == -2 to mean no process.
8449
1ac9108a
SM
84502009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8451
8452 * cmds.c (nonundocount): New global variable.
8453 (keys_of_cmds): Initialize it.
8454 (Fself_insert_command): Use it to combine upto 20 sequential chars
8455 into a single undo entry, just like the Qself_insert_command code in
8456 keyboard.c does.
8457 Call frame_make_pointer_invisible, also like the Qself_insert_command
8458 code in keyboard.c does.
8459 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8460 than its own local replacement for it.
8461
e267324c
KR
84622009-08-10 Ken Raeburn <raeburn@raeburn.org>
8463
1ac9108a 8464 * fns.c (concat): Don't re-set string length to its current value.
77437343 8465
1ac9108a
SM
8466 * coding.h (decode_coding_string, encode_coding_string):
8467 Use SBYTES macro.
f0bed503 8468
1ac9108a 8469 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8470 (doprnt): Merge with doprnt1, discarding lispstrings code.
8471 * lisp.h (doprnt_lisp): Don't declare.
8472
416e006d
JL
84732009-08-07 Juri Linkov <juri@jurta.org>
8474
8475 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8476
6f7d5780
DN
84772009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8478
8479 * print.c (syms_of_print): Undo previous change.
8480
f19a0f5b
TZ
84812009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8482
8483 * lread.c (read1, syms_of_lread): Read hashtables back from the
8484 readable format.
8485
8486 * print.c (print_preprocess, print_object): Print hashtables fully
8487 and readably.
8488 (syms_of_print): Provide 'hashtable-print-readable.
8489
b9173dc2
AR
84902009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8491
8492 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8493 no family set.
8494 (nsfont_open): Handle case when entity has no family.
8495
1586503c
AR
84962009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8497
8498 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8499 element, not a list, for match case.
8500
087048cd
KH
85012009-07-28 Kenichi Handa <handa@m17n.org>
8502
8503 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8504 rigidly.
8505
8506 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8507 font_parse_xlfd. Check font properties more rigidly.
8508
780c2506
DN
85092009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8510
31fd7c5c
JB
8511 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8512 bsd-common.h.
780c2506 8513
a8c0cc18
KH
85142009-07-27 Kenichi Handa <handa@m17n.org>
8515
8516 * xfaces.c (face_with_height): Call font_clear_prop.
8517
4fbe2306
CY
85182009-07-26 Chong Yidong <cyd@stupidchicken.com>
8519
111d9af3
CY
8520 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8521
8522 * xterm.c (x_term_init): Use Qx.
8523
4fbe2306
CY
8524 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8525
1ac9108a 8526 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8527 (ns_get_color): Revert 2009-07-16 change.
8528
beb0b7f9
EZ
85292009-07-25 Eli Zaretskii <eliz@gnu.org>
8530
8531 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8532 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8533
2baf5e76
KR
85342009-07-25 Ken Raeburn <raeburn@raeburn.org>
8535
1ac9108a
SM
8536 * coding.h (decode_coding_string, encode_coding_string):
8537 Use SCHARS macro.
8890e5f5 8538
2baf5e76 8539 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8540 (load_depth): Delete.
2baf5e76
KR
8541 (Qload_in_progress): New variable.
8542 (load_unwind): Don't reference load_depth or load_in_progress.
8543 (Fload): Likewise; specbind Qload_in_progress instead.
8544 (init_lread): Don't initialize load_depth.
8545 (syms_of_lread): Initialize and protect Qload_in_progress.
8546
1395c6f5
AR
85472009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8548
8549 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8550
4e2f36cf
AR
85512009-07-23 Yavor Doganov <yavor@gnu.org>
8552
8553 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8554
5dd9a6f7
AR
85552009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8556
8557 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8558 Bugs 3792, 3720, 2402.
8559 (ns_lookup_indexed_color): Check for bad index.
8560 (ns_index_color): Init unused slot to 0.
8561 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8562 Bug 3714, possibly 3082.
5dd9a6f7 8563
c902b920
JR
85642009-07-22 Jason Rumney <jasonr@gnu.org>
8565
1ac9108a
SM
8566 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8567 Position IME window at cursor (Bug#2570).
c902b920
JR
8568 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8569 (globals_of_w32fns): Dynamically load functions required above.
8570
8571 * w32term.c (w32_draw_window_cursor): Send message to reposition
8572 any IME window.
8573
090101cf
CY
85742009-07-21 Chong Yidong <cyd@stupidchicken.com>
8575
8576 * fileio.c: Revert 2009-07-16 changes.
8577 (Vauto_save_include_big_deletions): New variable.
8578 (Fdo_auto_save): Disable auto-save only if
8579 auto-save-include-big-deletions is nil.
8580
e6583e3d
CY
85812009-07-21 Chong Yidong <cyd@stupidchicken.com>
8582
8583 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8584 the overflowed pixels into account (Bug#3879).
8585
ece435a5
KR
85862009-07-21 Ken Raeburn <raeburn@raeburn.org>
8587
8588 * lread.c (load_depth): New variable.
8589 (Fload, load_unwind, init_lread): Set it to the load recursion
8590 depth; set load_in_progress as a simple boolean based on the
8591 current load_depth. (Bug#3892)
8592
40b2d973
AR
85932009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8594
8595 * nsfont.m (ns_has_attribute): Remove.
8596 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8597
10be7e0d
JL
85982009-07-18 Juri Linkov <juri@jurta.org>
8599
8600 * process.c (Fset_process_query_on_exit_flag): Mention killing
8601 a buffer in docstring.
8602
fa055055
KH
86032009-07-17 Kenichi Handa <handa@m17n.org>
8604
8605 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8606
042f7b69
YM
86072009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8608
8609 * nsfns.m (Fns_set_alpha): Remove function.
8610 (syms_of_nsfns): Don't defsubr it.
8611
8612 * nsterm.m (ns_get_color): Remove incompatible color formats.
8613 (ns_color_to_lisp): Generate #rrggbb color format string.
8614
4be941e3
RS
86152009-07-16 Richard Stallman <rms@gnu.org>
8616
8617 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8618 (Fset_buffer_auto_saved): Handle save_length = -2.
8619
4e6b227d
CY
86202009-07-16 Chong Yidong <cyd@stupidchicken.com>
8621
8622 * xterm.c (Qx_gtk_map_stock): New var.
8623
8624 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8625 of calling intern each time.
8626
a1856973
YM
86272009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8628
8629 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8630 does tiling.
8631
8632 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8633
497e54d8
KH
86342009-07-14 Kenichi Handa <handa@m17n.org>
8635
72d36834
KH
8636 * font.c (font_vconcat_entity_vectors): New function.
8637 (struct font_sort_data): New member font_driver_preference.
8638 (font_compare): Check font_driver_preference.
8639 (font_sort_entities): The format of the first argument changed.
8640 (font_delete_unmatched): Likewise.
8641 (font_list_entities): The return type changed.
8642 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8643 (font_find_for_lface): Adjuste for the above changes.
8644 Don't suppress the checking of C even if the repertory supports it.
8645 (Flist_fonts): Adjust for the above changes.
72d36834 8646
1ac9108a
SM
8647 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8648 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8649 Reject a font who has adstyle property that is different from a
8650 langname derived from registry property.
1ac9108a 8651 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8652
b6046155
EZ
86532009-07-13 Eli Zaretskii <eliz@gnu.org>
8654
8655 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8656 local copy of dirfilename.
8657
fb6b6049
KH
86582009-07-13 Kenichi Handa <handa@m17n.org>
8659
e2402a5e
KH
8660 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8661 against max_char.
8662
fb6b6049
KH
8663 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8664 calling XSYMBOL (sym).
8665
65156807
EZ
86662009-07-11 Eli Zaretskii <eliz@gnu.org>
8667
1ac9108a
SM
8668 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8669 New function.
8670 (directory_files_internal) [WINDOWSNT]:
8671 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8672 the filesystem of the directory is fast or slow.
8673
8674 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8675 file name.
8676 (is_slow_fs): New function.
8677 (stat): Use it to determine whether to issue more system calls to
8678 get accurate file attributes, when w32-get-true-file-attributes is
8679 `local'.
8680
e0ab5fcf
JD
86812009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8682
8683 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8684 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8685 parameter font-parameter as default to the font dialog.
8686
784ceded
KH
86872009-07-10 Kenichi Handa <handa@m17n.org>
8688
8689 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8690
fb8edc0b
EZ
86912009-07-09 Eli Zaretskii <eliz@gnu.org>
8692
1ac9108a 8693 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8694
fb8edc0b
EZ
8695 * w32.c (stat): Treat UNC file names as residing on remote
8696 drives. (Bug#3542)
8697
635c75b1
KH
86982009-07-09 Kenichi Handa <handa@m17n.org>
8699
8700 * fontset.c (fontset_find_font): Fix previous change.
8701
c1d5ce94
MA
87022009-07-08 Michael Albinus <michael.albinus@gmx.de>
8703
8704 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8705 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8706 error flag.
8707
edb61b39
KH
87082009-07-08 Kenichi Handa <handa@m17n.org>
8709
374bf7e4
KH
8710 * fontset.c (fontset_find_font): Fix the logic of handling
8711 charset_matched.
8712 (font_for_char): Delete unused var.
8713 (generate_ascii_font_name): Delete it.
8714
edb61b39
KH
8715 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8716
8717 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8718 (encode_coding_sjis): Fix the code range check.
8719
0f3f018c
CY
87202009-07-07 Chong Yidong <cyd@stupidchicken.com>
8721
8722 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8723 (Fexpand_file_name): Copy string data properly (Bug#3772).
8724
fcaf6f3a
JD
87252009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8726
8727 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8728 first MapNotify.
8729
6809ca75
KH
87302009-07-07 Kenichi Handa <handa@m17n.org>
8731
8732 * character.h (unibyte_has_multibyte_table): Delete extern.
8733 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8734
8735 * charset.c (Fset_charset_priority): Update charset_unibyte.
8736 (syms_of_charset): Initialize charset_unibyte.
8737
8738 * character.c (unibyte_has_multibyte_table): Delete it.
8739 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8740 charset_unibyte.
8741 (multibyte_char_to_unibyte_safe): Likewise.
8742 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8743
1ac9108a 8744 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8745 (x_produce_glyphs): Likewise.
8746
8747 * .gdbinit (xcharset): Fix the treating $arg0.
8748
ad9e2d54
EZ
87492009-07-04 Eli Zaretskii <eliz@gnu.org>
8750
8751 Emulation of `getloadavg' on MS-Windows.
50426a04 8752 * w32.c: Include float.h.
ad9e2d54
EZ
8753 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8754 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8755 (get_native_system_info, get_system_times): New functions.
8756 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8757 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8758 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8759 g_b_init_get_system_times, and num_of_processors.
8760
0a3472c7
JR
87612009-07-03 Jason Rumney <jasonr@gnu.org>
8762
8763 * w32term.c (w32_initialize): Use standard types.
8764
80904120
EZ
87652009-07-03 Eli Zaretskii <eliz@gnu.org>
8766
8767 * dired.c (Ffile_attributes): Decode user and group names by the
8768 locale's encoding. (Bug#3443)
8769
6978862d
DN
87702009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8771
f8d23104
DN
8772 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8773 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8774
8775 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8776
8777 * term.c (init_tty): Remove spurious #ifdef.
8778
6978862d
DN
8779 * m/mips.h: Mention this file is also used for netbsd.
8780 * m/pmax.h: Remove file.
8781
e044e4fc
JD
87822009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8783
8784 * xterm.h (struct x_display_info): Add invisible_cursor.
8785 (struct x_output): Add current_cursor.
8786
8787 * xterm.c (XTtoggle_invisible_pointer): New function.
8788 (x_define_frame_cursor): Don't define cursor if invisible or the
8789 same as before. Set current_cursor.
8790 (x_create_terminal): Set toggle_invisible_pointer_hook.
8791
8792 * xfns.c (make_invisible_cursor): New function.
8793 (x_set_mouse_color): Call make_invisible_cursor.
8794 Set current_cursor.
8795 (x_window): Set current_cursor.
8796
8797 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8798
8799 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8800 inserting a character.
8801 (read_avail_input): Call frame_make_pointer_visible.
8802
8803 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8804 (frame_make_pointer_invisible, frame_make_pointer_visible):
8805 New functions.
e044e4fc
JD
8806 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8807
8808 * frame.h: Declare frame_make_pointer_invisible and
8809 frame_make_pointer_visible.
8810 (struct frame): Add pointer_invisible.
8811
574c8efa
JD
88122009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8813
7b507248
JD
8814 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8815 frame isn't visible.
8816 (xg_frame_resized): If width/height is -1, get size of window
8817 from X server.
8818
8819 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8820 for MapNotify.
8821
835bdaa7 8822 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8823 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8824 (flush_and_sync): Reintroduce.
574c8efa 8825
3f1c6666 88262009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8827
31fd7c5c 8828 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8829
8830 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8831 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8832
8833 * frame.h: Declare Qsticky.
8834
cad9ef74
JD
8835 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8836
8837 * nsfns.m (ns_frame_parm_handlers): Ditto.
8838
8839 * frame.c: Declare Qsticky.
8840 (frame_parms): Add sticky.
8841
8842 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8843
8844 * xterm.h: Declare x_set_sticky.
8845
8846 * xterm.c (x_set_sticky): New function.
8847
69b16610
JD
8848 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8849 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8850 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8851
8852 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8853
8854 * frame.c: Qmaximized is new.
8855 (x_set_frame_parameters): Do not handle fullscreen specially.
8856 Only set width and height if explicitly set.
8857 (x_set_fullscreen): Handle Qmaximized.
8858 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8859 (syms_of_frame): Initialize Qmaximized.
8860
1ac9108a
SM
8861 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8862 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8863
8864 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8865 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8866 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8867 set gravity to NorthWestGravity when USE_GTK.
8868 (set_wm_state): New function.
31fd7c5c 8869 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8870 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8871 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8872 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8873 to x_real_positions and x_fullscreen_adjust.
8874
8875 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8876 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8877 flush_and_sync.
8878 (xg_height_changed): New function.
8879 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8880 and gtk_window_set_policy. Set frame gravity after parsing the
8881 geometry string.
3f1c6666
JD
8882 (xg_update_frame_menubar, free_frame_menubar)
8883 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8884 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8885 Remove calls to xg_frame_set_char_size.
8886
fd503d99
KH
88872009-07-01 Kenichi Handa <handa@m17n.org>
8888
8889 * keyboard.c (decode_keyboard_code): New function.
8890 (tty_read_avail_input): Decode the input bytes if necessary.
8891
1ac9108a
SM
8892 * coding.c (setup_coding_system):
8893 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8894 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8895 use Qno_conversion.
8896
24ed93fb
YM
88972009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8898
8899 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8900
99061dfc
CY
89012009-06-30 Chong Yidong <cyd@stupidchicken.com>
8902
1ac9108a 8903 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8904
ff90fbde
JR
89052009-06-30 Jason Rumney <jasonr@gnu.org>
8906
8907 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8908 is already loaded.
8909 Set user model ID if supported (bug#1849).
8910
5f445726
JM
89112009-06-29 Jim Meyering <meyering@redhat.com>
8912
8913 Remove useless if-before-xfree test.
8914 * nsfont.m (nsfont_close): Remove useless test.
8915 * term.c (delete_tty): Likewise.
8916 * w32.c (system_process_attributes): Likewise.
8917 * w32font.c (w32font_close): Likewise.
8918 * xfaces.c (x_free_gc): Likewise.
8919 * xselect.c (buffer): Likewise.
8920
b9607587
AS
89212009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8922
8923 * process.c (send_process): Keep decoded string in a local
8924 variable and protect it from GC. (Bug#3521)
8925
89ba96f4
EZ
89262009-06-28 Eli Zaretskii <eliz@gnu.org>
8927
8928 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8929 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8930
098a1589
CY
89312009-06-28 Chong Yidong <cyd@stupidchicken.com>
8932
485422be
CY
8933 * xdisp.c (start_display, handle_face_prop)
8934 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8935 (redisplay_window, try_window_id, produce_image_glyph):
8936 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8937
098a1589
CY
8938 * xterm.c (x_update_window_begin, x_new_focus_frame)
8939 (x_scroll_bar_handle_click, handle_one_xevent)
8940 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8941 (x_make_frame_visible, x_make_frame_invisible)
8942 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8943 code chunks that are now obsolete.
8944
78c38319
MA
89452009-06-28 Michael Albinus <michael.albinus@gmx.de>
8946
8947 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8948 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8949 for hours, when optimzation is enabled.
8950 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8951 (xd_read_message): Make them static.
8952
4189ed40
CY
89532009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8954
8955 * term.c (turn_on_face): Allow simultaneously bold and dim
8956 terminal faces (Bug#3530).
8957
cd9b5e16
CY
89582009-06-27 Chong Yidong <cyd@stupidchicken.com>
8959
4e23bedb
CY
8960 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8961
cd9b5e16
CY
8962 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8963 truncation glyphs (Bug#3686).
8964
07cc3c35
GM
89652009-06-27 Glenn Morris <rgm@gnu.org>
8966
8967 * m/pmax.h: Restore file, with only netbsd portions.
8968
31fd7c5c 89692009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8970
cd9b5e16 8971 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8972
42d4a64f
KH
89732009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8974
8975 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8976 the arg FORCE_SYMBOL.
8977
930fe55b 89782009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8979
8980 * fontset.c (fontset_find_font): When a usable rfont_def is found
8981 in a fallback font-group, make it the first element of the group.
8982
57ebc3fd
CY
89832009-06-24 Chong Yidong <cyd@stupidchicken.com>
8984
8985 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8986
f084f942
KH
89872009-06-24 Kenichi Handa <handa@m17n.org>
8988
8989 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8990 set for C.
8991 (fontset_font): Record the availability of a font for C both in
8992 the realized fontsets of the current one and the default one.
8993
2f686c87
DN
89942009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8995
8996 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8997 conditional, it is always defined on AIX.
8998
666e158e
MB
89992009-06-23 Miles Bader <miles@gnu.org>
9000
9001 * window.c (Vrecenter_redisplay): New variable.
9002 (syms_of_window): Initialize it.
9003 (Qtty): New extern declaration.
9004 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9005
c6da7cd2
JM
90062009-06-23 Jim Meyering <meyering@redhat.com>
9007
1ac9108a
SM
9008 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9009 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9010 pointer dereferences are guaranteed to be valid.
c6da7cd2 9011
678dca3d
KH
90122009-06-23 Kenichi Handa <handa@m17n.org>
9013
74d75424
KH
9014 * emacs.c (main): Call init_font ().
9015
9016 * font.h (Vfont_log): Extern it.
9017 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9018
9019 * font.c (font_sort_entities, font_list_entities)
9020 (font_matching_entity, font_open_entity)
9021 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9022 (Vfont_log): Delete static.
9023 (font_log_env_checked): Delete this variable.
9024 (font_add_log): Don't check font_log_env_checked.
9025 (font_deferred_log): Check Vfont_log.
9026 (init_font): New function.
9027
678dca3d
KH
9028 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9029
9030 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9031
9032 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9033
9034 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9035
9036 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9037 (face_for_char): Don't call font_deferred_log here.
9038 (font_for_char): Likewise.
9039
8a668709
CY
90402009-06-22 Chong Yidong <cyd@stupidchicken.com>
9041
9a01ee33
CY
9042 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9043 rather than its background_width for drawing the overline and
9044 underline (Bug#489).
9045
9046 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9047 rather than its background_width for drawing the overline and
9048 underline (Bug#489).
ec7c9926
CY
9049 (xg_default_icon_file): New variable.
9050 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9051 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9052
8a668709
CY
9053 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9054 (load_overlay_strings): Remove externs.
9055 (fast_find_position): Function deleted.
9056 (mouse_face_from_buffer_pos): New function, based on
9057 fast_find_position. Correctly handle before-strings,
9058 display-strings, and after-strings (Bug#1220).
9059 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9060
4d4c02d8
CY
90612009-06-21 Chong Yidong <cyd@stupidchicken.com>
9062
1ac9108a 9063 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9064 (move_it_in_display_line_to, move_it_in_display_line_to)
9065 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9066
70243478
CY
90672009-06-21 Chong Yidong <cyd@stupidchicken.com>
9068
9069 * Branch for 23.1.
9070
13087e59
JR
90712009-06-21 Jason Rumney <jasonr@gnu.org>
9072
9073 * w32term.c (keyboard_codepage): New static variable.
9074 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9075 (w32_read_socket) [WM_CHAR]: Use it to decode character
9076 input (bug#3237).
9077 (w32_initialize): Initialize it.
9078 (codepage_for_locale): New function.
9079
4735b74e
KR
90802009-06-20 Ken Raeburn <raeburn@raeburn.org>
9081
9082 * process.c (status_message): Pass Faset index argument as a lisp
9083 object, so as to work with USE_LISP_UNION_TYPE.
9084
0e727afa
YM
90852009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9086
9087 * coding.c (Ffind_coding_systems_region_internal):
9088 Cache checked characters.
9089
cf299835
KH
90902009-06-18 Kenichi Handa <handa@m17n.org>
9091
1ac9108a 9092 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9093
90f20d94
AS
90942009-06-18 Andreas Schwab <aschwab@redhat.com>
9095
9096 * xdisp.c (redisplay_internal): Check that the frame is still
9097 live after redisplay of its windows.
9098 (redisplay_windows): Check that the window is still live.
9099
7f1faf1c
KH
91002009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9101
9102 * coding.c (detect_coding_utf_16): Fix previous change.
9103
cc13543e
KH
91042009-06-16 Kenichi Handa <handa@m17n.org>
9105
9106 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9107 UTF-16 by checking the dispersion of Eth and Oth bytes.
9108
977b85f4
AS
91092009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9110
9111 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9112
66bd43d1
KH
91132009-06-15 Kenichi Handa <handa@m17n.org>
9114
9115 * process.c (status_message): Fix previous change. Be sure to
9116 decode a localized string.
9117
cb5ca9c5
YM
91182009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9119
9120 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9121 add comment explaining why.
9122
ec7709ba 91232009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9124
ec7709ba 9125 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9126
4b7f335c
AR
91272009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9128
9129 * nsfont.m (ns_attribute_value): Remove.
9130 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9131 (ns_has_attribute): Shrink the normal range.
9132 (ns_findfonts): Don't worry about requested spec in determining
9133 need for synthItal.
e41820ee 9134 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9135
73b26103
SZ
91362009-06-14 Seiji Zenitani <zenitani@mac.com>
9137
9138 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9139
5753e4da
KH
91402009-06-11 Kenichi Handa <handa@m17n.org>
9141
9142 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9143 overhang for the static composition case.
9144
3561b671
KH
91452009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9146
5753e4da
KH
9147 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9148 overhang for the automatic composition case.
9149
3561b671
KH
9150 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9151 composition case.
9152
852bbd41
CY
91532009-06-10 Chong Yidong <cyd@stupidchicken.com>
9154
9155 * xdisp.c (get_next_display_element): When handling wrap-prefix
9156 and line-prefix, treat \n as a control character (bug#3502).
9157
9903d1e6
KH
91582009-06-10 Kenichi Handa <handa@m17n.org>
9159
9160 * font.c (font_parse_family_registry): Fix for one-char foundry.
9161 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9162
0bcbaaaa
CY
91632009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9164
9165 * process.c (status_message): Fix handling of multibyte signal
9166 string (Bug#3499).
9167
40aa3f13
JM
91682009-06-09 Jim Meyering <meyering@redhat.com>
9169
1f80c7e2
CY
9170 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9171 color name is missing.
40aa3f13 9172
72d51285
KH
91732009-06-09 Kenichi Handa <handa@m17n.org>
9174
9175 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9176 FROM-CODE and TO-CODE are codepoints of CHARSET.
9177
c1d04d84
AR
91782009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9179
9180 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9181
91822009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9183
9184 Changes to support :script/:lang/:otf in NS font driver.
9185 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9186 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9187 indicate not part of font driver interface, and change callers.
9188 (ns_get_family): Remove pointless null check.
9189 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9190 ns_spec_to_descriptor, ns_descriptor_to_entity.
9191 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9192 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9193 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9194 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9195 (ns_get_req_script, ns_accumulate_script_ranges)
9196 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9197 New functions.
9198 (nsfont_list, nsfont_match): Use ns_findfonts.
9199 (nsfont_open): Use font descriptor instead of traits.
9200 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9201 (dump_glyphstring): Rename to ns_dump_glyphstring.
9202
c7eb9816
AR
9203 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9204
c1d04d84
AR
9205 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9206
9207 * fontset.c (fontset_from_font): Remove NS-specific code.
9208
ec7709ba 92092009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9210
9211 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9212 nonactive windows.
9213
31fd7c5c 92142009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9215
1ac9108a 9216 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9217
68852c13 92182009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9219
9220 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9221
6756cd1d
CY
92222009-06-07 Chong Yidong <cyd@stupidchicken.com>
9223
9224 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9225 account for the overflowing of newlines into the last glyph on the
9226 display line (Bug#3482).
9227
28bf482a
DR
92282009-06-05 David Reitter <david.reitter@gmail.com>
9229
ec7709ba
JB
9230 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9231 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9232 Fns_selection_exists_p, Fns_selection_owner_p.
9233
fdb55376
JR
92342009-06-03 Jason Rumney <jasonr@gnu.org>
9235
9236 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9237 available. (Bug#3379)
9238
05129fbe
KH
92392009-05-29 Kenichi Handa <handa@m17n.org>
9240
1ac9108a
SM
9241 * coding.c (get_translation_table):
9242 Check Venable_character_translation.
05129fbe 9243
ec7709ba 92442009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9245
ec7709ba
JB
9246 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9247 (x_make_frame_visible): Move frame to front rather than calling
15891144 9248 ns_raise_frame().
ec7709ba 9249 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9250 isn't key window.
ec7709ba 9251 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9252 drawRect may be called by NSView even if the frame is hidden.
9253
ec7709ba
JB
9254 * nsfns.m (Fx_create_frame): Follow other ports in
9255 determining visibility; default to t. Ensure async_visible is set.
15891144 9256
21f73755
EZ
92572009-05-23 Eli Zaretskii <eliz@gnu.org>
9258
9259 * dired.c (Ffile_attributes): Doc fix.
9260
34001e41
CY
92612009-05-22 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9264
46306a17
SM
92652009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9266
9267 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9268 and xfont_scratch_props.
9269 (syms_of_xfont): Do it here instead.
9270 (xfont_find_ccl_program): Delete, unused.
9271 (xfont_open): Delete unused var `i'.
9272
ef6e0694
KH
92732009-05-21 Kenichi Handa <handa@m17n.org>
9274
9275 * fontset.c (Qlatin): Don't make it static.
9276
46306a17
SM
9277 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9278 New functions.
ef6e0694
KH
9279 (xfont_scripts_cache, xfont_scratch_props): New variables.
9280 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9281 (xfont_list_pattern): Argument changed. Callers changed.
9282 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9283 (xfont_list): Don't reject a font spec with :script property.
9284 (xfont_has_char): Fix setting of encoding.
9285 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9286 xfont_scratch_props.
9287
92882009-05-19 Kenichi Handa <handa@m17n.org>
9289
46306a17 9290 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9291 Callers changed.
9292
92932009-05-18 Kenichi Handa <handa@m17n.org>
9294
9295 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9296
ac71ced7
SM
92972009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9298
9299 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9300 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9301
1c6d1051
YM
93022009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9303
9304 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9305 (x_delete_terminal): Dissociate resource database from display and
9306 then call XrmDestroyDatabase before closing display.
9307
9b9b779c
AR
93082009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9309
9310 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9311 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9312 whether selected frame is viable before raising it (based on patch
9313 by David Reitter), and improve commentary.
9314 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9315
cccd42d5
KH
93162009-05-15 Kenichi Handa <handa@m17n.org>
9317
9318 * font.c (Ffont_spec): Check arguments.
9319
337fbd17
CY
93202009-05-14 Chong Yidong <cyd@stupidchicken.com>
9321
9322 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9323 weight when testing attributes (Bug#3282).
9324
47a6002f
JD
93252009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9326
9327 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9328 what we expect to get in the next ConfigureNotify event.
9329
9cb363db
YM
9330 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9331 before Xft one (Bug#1696).
9332
b9126609
CY
93332009-05-07 David Reitter <david.reitter@gmail.com>
9334
9335 * nsfns.m (Fx_display_planes): Compute bitplanes using
9336 NSBitsPerPixelFromDepth (Bug#3207).
9337
27a69fd9
CY
93382009-05-10 Chong Yidong <cyd@stupidchicken.com>
9339
9340 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9341
00f37552
TTN
93422009-05-10 Ulrich Mueller <ulm@gentoo.org>
9343
9344 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9345
2d82a920
DR
93462009-05-07 David Reitter <david.reitter@gmail.com>
9347
ec7709ba
JB
9348 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9349 Respect mouse face background.
2d82a920 9350
46b0d52d
DR
93512009-05-07 David Reitter <david.reitter@gmail.com>
9352
ec7709ba
JB
9353 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9354 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9355 in ns_update_begin and ns_update_end.
9356
ce1b23bb
SM
93572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9358
5996e1b7
SM
9359 * nsfns.m (ns_get_screen): Rewrite.
9360 Don't presume selected-frame is of type `ns'.
9361
ba98e3a0
SM
9362 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9363 all drivers.
9364
ce1b23bb
SM
9365 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9366
bcda200f
YM
93672009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9368
9369 * keyboard.h (add_user_signal): Fix typo in extern.
9370
9371 * lisp.h (add_user_signal): Remove extern.
9372
9373 * unexelf.c (unexec): Consider a section to precede the .bss section
9374 if its addresses overlap that of .bss.
9375 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9376 instead of dumping process.
9377
864660a2
SM
93782009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9379
9380 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9381
50da4e56
SM
93822009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9383
9384 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9385
51520a1a
DN
93862009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9387
9388 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9389 any statements.
9390
409ea3a1
AS
93912009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9392
59c4c60f
AS
9393 * process.c (read_process_output): Make sure the current buffer is
9394 always restored.
9395
409ea3a1
AS
9396 * coding.c (record_conversion_result): Don't modify
9397 Vlast_code_conversion_error for successful result.
9398 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9399
56f00ed2
KH
94002009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9401
9402 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9403 (load_charset_map): Remove unnecessary code.
56f00ed2 9404
4491c9d2
DR
94052009-04-30 David Reitter <david.reitter@gmail.com>
9406
35f5b128 9407 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9408 through f24.
9409
6970f632
CY
94102009-04-30 Chong Yidong <cyd@stupidchicken.com>
9411
9412 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9413
9414 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9415 face_at_buffer_position.
9416 (face_before_or_after_it_pos, get_next_display_element)
9417 (note_mouse_highlight): Update face_at_buffer_position call.
9418
9419 * term.c (term_mouse_highlight):
9420 * msdos.c (IT_note_mouse_highlight):
9421 * fontset.c (Finternal_char_font):
35f5b128 9422 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9423
9424 * dispextern.h (face_at_buffer_position): Update prototype.
9425
0c616f63
KH
94262009-04-30 Kenichi Handa <handa@m17n.org>
9427
35f5b128 9428 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9429
ad3aaf33
AS
94302009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9431
9432 * callproc.c (Fcall_process): Fix GC protection. Make sure
9433 current buffer is always restored.
9434
c3c963a0
YM
94352009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9436
9437 * atimer.c (init_atimer): Also clear stopped_atimers.
9438
9439 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9440
7e3386cb
YM
9441 * process.c (create_process): Clean up merger residues of
9442 2008-07-17 change.
9443
91f68422
CY
94442009-04-29 Ulrich Mueller <ulm@gentoo.org>
9445
9446 * lread.c (Vread_circle): New variable.
9447 (read1): Disable recursive read if Vread_circle is nil.
9448
24b34550
KH
94492009-04-29 Kenichi Handa <handa@m17n.org>
9450
9451 * fontset.h (set_default_ascii_font): Delete extern.
9452
9453 * fontset.c (set_default_ascii_font): Delete this unused function.
9454
9455 * frame.c (x_set_font): When ARG is a font-object, check if the
9456 font-object matches with the ASCII font-spec of the frame's
9c358bda 9457 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9458
77bf07e1
AS
94592009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9460
9461 * fns.c (Flocale_info): Protect vector from GC during decoding.
9462
9463 * process.c (Fstart_process): Protect argv strings from GC during
9464 encoding.
9465
2c55aacf
AS
94662009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9467
9468 * sysdep.c: Include <ctype.h>.
9469
b892d3c9
DR
94702009-04-27 David Reitter <david.reitter@gmail.com>
9471
35f5b128 9472 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9473 Remove commented-out code.
9474
9d0644c4
JB
94752009-04-26 Johan Bockgård <bojohan@gnu.org>
9476
9477 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9478
b7053016
JR
94792009-04-25 Jason Rumney <jasonr@gnu.org>
9480
9481 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9482
4e8231f3
YM
94832009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9484
9485 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9486 Swap bytes in short integer if fringe bitmap width > 8.
9487
493dcf2c
KH
94882009-04-23 Kenichi Handa <handa@m17n.org>
9489
9490 * xfaces.c (Fx_list_fonts): If a font size is specified in
9491 PATTERN, set it in returned scalable fonts.
9492
401e9e57
CY
94932009-04-22 Chong Yidong <cyd@stupidchicken.com>
9494
708e05dc
CY
9495 * keyboard.c (Fset_input_meta_mode): Doc fix.
9496
9497 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9498
1ac9108a 9499 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9500
9501 * coding.c (Fterminal_coding_system): Doc fix.
9502
9503 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9504 (Fx_display_pixel_height, Fx_display_planes)
9505 (Fx_display_color_cells, Fx_server_max_request_size)
9506 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9507 (Fx_display_mm_height, Fx_display_mm_width)
9508 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9509 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9510 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9511 (check_x_display_info): Handle terminal objects instead of
9512 terminal ids.
9513
401e9e57
CY
9514 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9515 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9516 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9517 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9518
df80c7f0
KH
95192009-04-21 Kenichi Handa <handa@m17n.org>
9520
5a8f12af 9521 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9522 (font_score): Check AVGWIDTH too.
908567ef 9523
df80c7f0
KH
9524 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9525 worst case.
1ac9108a
SM
9526 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9527 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9528
705af33f
JR
95292009-04-19 Jason Rumney <jasonr@gnu.org>
9530
9531 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9532 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9533
9534 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9535 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9536 get_phys_cursor_geometry.
9537
b71ac3dd 9538 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9539 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9540 using get_phys_cursor_geometry.
9541
9542 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9543 correctly calculated.
9544
dc2933eb
JD
95452009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9546
1ac9108a
SM
9547 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9548 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9549 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9550 is deprecated.
9551
973e7849
AS
95522009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9553
9554 * font.c (font_put_frame_data): Use xfree instead of free.
9555
314d66f4
JB
95562009-04-17 Juanma Barranquero <lekktu@gmail.com>
9557
9558 * w32font.c (Qja, Qko): Remove declarations.
9559 (syms_of_w32font): Don't DEFSYM them.
9560
cf702558
CY
95612009-04-17 Chong Yidong <cyd@stupidchicken.com>
9562
9563 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9564
9565 * font.h (Qja, Qko): Extern them.
9566
9567 * ftfont.c (Qja, Qko): Remove declarations.
9568
9569 * xfont.c (Qja, Qko): Remove declarations.
9570
b50504f5
KH
95712009-04-17 Kenichi Handa <handa@m17n.org>
9572
bde25748
KH
9573 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9574 string from a vector to handle Latin-1 characters correctly.
9575
b50504f5
KH
9576 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9577 entity even if the cache hits.
9578
f4646fff
AS
95792009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9580
9581 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9582 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9583
e7deaab0
AS
9584 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9585 * lisp.h: Adjust prototypes.
9586
0a0e7d49
CY
95872009-04-16 Chong Yidong <cyd@stupidchicken.com>
9588
9589 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9590 change (Bug#3003).
9591
3c908a57
KH
95922009-04-16 Kenichi Handa <handa@m17n.org>
9593
1ac9108a 9594 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9595
9596 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9597 adstyle.
9598
9599 * ftfont.c (Qja, Qko): Don't make them static.
9600 (enum ftfont_cache_for): New enum.
9601 (fc_charset_table): Undo the previous change.
9602 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9603 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9604 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9605 non-scarable font, try to get AVERAGE_WIDTH.
9606 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9607 Change ft_face_cache from a list of a hash-table. Don't check
9608 `ja' and `ko' adstyle here.
9609 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9610 FTFONT_CACHE_FOR_CHARET.
9611 (ftfont_get_charset): Undo the previous change.
1ac9108a 9612 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9613 (ftfont_close): Likewise.
9614 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9615
9616 * font.c (font_sort_entites): Change the meaning of the arg
9617 BEST-ONLY. Don't optimize for VEC of lenght 1.
9618 (font_select_entity): Just return the value of font_sort_entites.
9619
9620 * xfaces.c (merge_face_vectors): Reflect font properties in
9621 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9622 font_clear_prop if a face attribute doesn't change.
9623
3c908a57
KH
9624 * charset.h (charset_ksc5601): Extern it.
9625
9626 * charset.c (charset_ksc5601): New variable.
9627 (Fdefine_charset_internal): Set charset_ksc5601.
9628 (init_charset_once): Initialize charset_ksc5601 to -1.
9629
d65859c3
DN
96302009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9631
9632 * fileio.c (history_delete_duplicates): Remove unused declaration.
9633
9634 * callint.c (history_delete_duplicates): New declaration.
9635 (Fcall_interactively): Remove command history duplicates when
9636 history_delete_duplicates is true.
9637
3ba010e5
EZ
96382009-04-14 Eli Zaretskii <eliz@gnu.org>
9639
9640 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9641
06f19b91
KH
96422009-04-14 Kenichi Handa <handa@m17n.org>
9643
9644 * font.c (Ffont_info): Fix docstring. Fix the second element of
9645 the returned value (bug#2949).
9646
2cce8bfc
CY
96472009-04-14 Chong Yidong <cyd@stupidchicken.com>
9648
9649 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9650
d156542d
KH
96512009-04-14 Kenichi Handa <handa@m17n.org>
9652
9653 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9654 encoding charset is ascii_compatible.
9655
9656 * charset.c (Fdefine_charset_internal): Make charset
9657 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9658 code_offset is 0, and covers all ASCII characters.
9659
86fa089e
SM
96602009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9661
9662 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9663 (ns_string_to_pasteboard_internal):
9664 * nsmenu.m (process_dialog):
9665 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9666 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9667 * lisp.h (Fx_load_color_file): Declare.
9668
a8a3728b
KH
96692009-04-13 Kenichi Handa <handa@m17n.org>
9670
1ac9108a 9671 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9672 (font_select_entity): Suppress the code to optimize for the same
9673 kind of fonts.
9674 (font_load_for_lface): Get a font that supports at least ASCII
9675 characters.
9676
9677 * ftfont.c (Qja, Qko): New variables.
9678 (fc_charset_table): Delete uniquifier data for iso8859-1.
9679 (ftfont_get_latin1_charset): New function.
9680 (get_adstyle_property): New function.
9681 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9682 bitmap fonts.
9683 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9684 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9685 `ko' or `ja'.
9686 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9687 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9688 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9689 property.
9690 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9691 (syms_of_ftfont): DEFSYM Qja and Qko.
9692
483670b5
KH
96932009-04-09 Kenichi Handa <handa@m17n.org>
9694
12b55765
KH
9695 * charset.c (map_charset_chars): For a charset of `superset'
9696 method, fix calculation of code range.
9697
483670b5
KH
9698 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9699 from the list of extra properties.
9700 (font_clear_prop): Be sure to delete `:name' font property.
9701
57d3b93b
KH
97022009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9703
b4b2c2ca
YM
9704 * dispnew.c (redraw_overlapping_rows): Fix detection of
9705 overlapping for topmost and bottommost rows.
9706
1ac9108a 9707 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9708
472c3609
JR
97092009-04-06 Jason Rumney <jasonr@gnu.org>
9710
9711 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9712
ab193662
KH
97132009-04-06 Kenichi Handa <handa@m17n.org>
9714
9715 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9716
9717 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9718
0c26f026
KH
97192009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9720
9721 * ftfont.c (ftfont_open): Fix checking of the return value of
9722 FT_Load_Char. Fix setting font->underline_thickness.
9723
e173bbce
CY
97242009-04-04 Chong Yidong <cyd@stupidchicken.com>
9725
9726 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9727 (Fterminal_parameters, Fterminal_parameter)
9728 (Fset_terminal_parameter): In doc string, refer to terminal
9729 objects rather than terminal ids.
9730
693a2698
EZ
97312009-04-04 Eli Zaretskii <eliz@gnu.org>
9732
9733 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9734 ret_lim_data. (Bug#2867)
9735
d5221487
CY
97362009-04-03 Chong Yidong <cyd@stupidchicken.com>
9737
9738 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9739 so they don't get wider than the window, matching 2006-01-23
9740 change to the partner function in xdisp.c (Bug#2800).
9741
223509a3
KH
97422009-04-03 Kenichi Handa <handa@m17n.org>
9743
9744 * print.c (print_object): Make each lowest sub_char_table start a
9745 new line (Bug#2866).
9746
74fcd0b1
KH
97472009-04-02 Kenichi Handa <handa@m17n.org>
9748
9749 * fontset.c (fontset_font): Record no-font when a fontset
9750 explicitly tells not to try another font-specs.
9751
c542407d
SM
97522009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9753
9754 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9755
e3869731
KH
97562009-03-30 Kenichi Handa <handa@m17n.org>
9757
d8d2f142
KH
9758 * fontset.c (fontset_from_font): Specify only registry in a
9759 font-spec for all characters supported by that registry.
9760
e3869731
KH
9761 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9762 even if HAVE_M17N_FLT is not defined.
9763
5da5f805
CY
97642009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9765
9766 * ftfont.c: Conditionalize prototyping and use of
9767 ftfont_variation_glyphs.
9768
ab226c50
SM
97692009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9770
9628fed7
SM
9771 * frame.c (delete_frame): Work around compiler bug.
9772
9773 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9774 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9775 Some more EMACS_INT.
9776 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9777
9778 * xdisp.c (dump_glyph): Fix typo.
9779
ae19ba7c
SM
9780 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9781 (adjust_markers_gap_motion, adjust_markers_for_delete)
9782 (adjust_markers_for_insert, adjust_point)
9783 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9784 (make_gap, copy_text, count_size_as_multibyte, insert)
9785 (insert_and_inherit, insert_before_markers)
9786 (insert_before_markers_and_inherit, insert_1)
9787 (count_combining_before, count_combining_after, insert_1_both)
9788 (insert_from_string, insert_from_string_before_markers)
9789 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9790 (insert_from_buffer_1, adjust_after_replace)
9791 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9792 (replace_range_2, del_range, del_range_1, del_range_byte)
9793 (del_range_both, del_range_2, modify_region)
9794 (prepare_to_modify_buffer, signal_before_change)
9795 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9796 for buffer positions and sizes.
9797 * lisp.h: Adjust prototypes accordingly.
9798
9799 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9800 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9801 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9802
ab226c50
SM
9803 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9804
46dfb8fb
JD
98052009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9806
9807 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9808 lines and columns so we keep the same pixel height and width.
9809
9810 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9811 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9812 (x_handle_net_wm_state): New function to update frame parameter
9813 fullscreen.
9814 (x_term_init): Initialize atoms for _NET_WM_STATE.
9815
9816 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9817
d347e494
SM
98182009-03-27 Kevin Ryde <user42@zip.com.au>
9819
9820 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9821 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9822 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9823 (Fgpm_mouse_stop): Pass that new parameter.
9824 * termhooks.h (close_gpm): Adjust prototype.
9825
84db11d6
SM
98262009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9827
c95a5008
SM
9828 * lisp.h (Fx_focus_frame): Declare.
9829
84db11d6
SM
9830 * callint.c (Fcall_interactively): For '^' just delegate the work to
9831 handle-shift-selection.
9832 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9833
0a1958d6
CY
98342009-03-24 Chong Yidong <cyd@stupidchicken.com>
9835
0bfdff23
CY
9836 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9837
0a1958d6
CY
9838 * data.c (Qinteractive_form): New variable.
9839 (Finteractive_form): Use it.
9840
9841 * eval.c (Fcommandp): Use Qinteractive_form.
9842
58aec0d6
JR
98432009-03-24 Jason Rumney <jasonr@gnu.org>
9844
9845 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9846 Calculate total size precisely. Decode environment variables
9847 before substituting. (Bug#38)
9848
553dd618
KH
98492009-03-24 Kenichi Handa <handa@m17n.org>
9850
9851 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9852 encoding (Bug#2722).
553dd618 9853
c39ea606
JD
98542009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9855
9856 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9857 that gdpy is set.
9858
bc9b2b5e
AM
98592009-03-22 Alan Mackenzie <acm@muc.de>
9860
9861 * callint.c (Finteractive): Clarify the doc string - even
9862 promptless elements need \n separators.
9863
9f995a76
JR
98642009-03-22 Jason Rumney <jasonr@gnu.org>
9865
9866 * w32term.c (syms_of_w32term): Doc fix for
9867 x-use-underline-position-properties.
9868
22749e9a
EZ
98692009-03-21 Eli Zaretskii <eliz@gnu.org>
9870
9871 * w32.c (getpwuid): Change argument type to unsigned.
9872 (struct w32_id): Change type of `rid' member to unsigned.
9873 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9874 argument ID to unsigned. All callers changed.
9875 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9876
e00553bf
EZ
98772009-03-20 Eli Zaretskii <eliz@gnu.org>
9878
9879 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9880 negative, produce a float value.
9881
9882 * dired.c (make_uid, make_gid): New functions.
9883 (Ffile_attributes): Use them to avoid negative UID and GID.
9884
f761d6b6
JB
98852009-03-20 Juanma Barranquero <lekktu@gmail.com>
9886
9887 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9888 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9889 Fix typos in docstrings.
9890
d507f8d7
KH
98912009-03-19 Kenichi Handa <handa@m17n.org>
9892
9893 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9894 changed, use font_load_for_lface to get a new font object.
9895 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9896
9897 * frame.c (x_set_font): Handle the case that ARG is a cons.
9898
c68845e0
GM
98992009-03-19 Glenn Morris <rgm@gnu.org>
9900
9901 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9902
bfa49dd1
CY
99032009-03-19 Chong Yidong <cyd@stupidchicken.com>
9904
9905 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9906
8458d4c1
KH
99072009-03-19 Kenichi Handa <handa@m17n.org>
9908
9909 * charset.c (load_charset_map_from_file): When a mapfile can't be
9910 loaded, signal an error.
9911
78e7d1fe
EZ
99122009-03-18 Eli Zaretskii <eliz@gnu.org>
9913
9914 * dired.c (Ffile_attributes): Make sure UID and GID are always
9915 positive, even if the value is too large for a positive EMACS_INT.
9916 Doc fix.
9917
9918 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9919
5da9fdfa
YM
99202009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9921
9922 * xmenu.c (xdialog_show): Move Fredisplay call ...
9923 (Fx_popup_dialog): ... here.
9924
7519c40d
SM
99252009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9926
9927 * dired.c (file_name_completion): Disable the first optimization just
9928 installed, since it is not implemented correctly.
9929
2cd298e2
SM
99302009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9931
9932 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9933 only if the entry can affect bestmatch.
2cd298e2
SM
9934 Stop the search early, as Ftry_completion already does.
9935
48d37adf
CY
99362009-03-17 Chong Yidong <cyd@stupidchicken.com>
9937
e10c9c93 9938 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9939
9286b16a
CY
99402009-03-15 Chong Yidong <cyd@stupidchicken.com>
9941
9942 * keyboard.c (parse_menu_item): Don't display remappings as menu
9943 equivalent bindings (Bug#788).
9944
f7b146dc
JR
99452009-03-15 Jason Rumney <jasonr@gnu.org>
9946
9947 * w32term.h (WM_EMACS_PAINT): New message.
9948 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9949 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9950 before passing to lisp thread. (Bug#950)
9951
f761d6b6 99522009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9953
d93f9575
CY
9954 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9955 variable as it was never reset.
9956 (ns_term_init): Remove initialization of Lisp-settable defaults
9957 and ns_expand_space.
9958 (-setPanelFromDefaultValues): Remove ns_expand_space.
9959 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9960 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9961 i.e. no additional spacing, similar to Carbon port.
9962
d93f9575
CY
9963 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9964 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9965
305018ec
JD
99662009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9967
9968 * sound.c (alsa_configure): Remove call to deprecated
9969 snd_pcm_sw_params_set_xfer_align.
9970
f761d6b6 99712009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9972
9973 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9974 after clicking in a detached tool bar.
9975 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9976
46e722a9
SM
99772009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9978
348db3dd
SM
9979 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9980 int/Lisp_Object mixup).
46e722a9 9981
a3d16f39
KH
99822009-03-13 Kenichi Handa <handa@m17n.org>
9983
9984 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9985 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9986 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9987 (set_fontset_font): Change ARG to a vector. Handle range_list in
9988 ARG correctly.
9989 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9990 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9991 the above change.
9992 (fontset_from_font): Fix previous change.
fe24f56a 9993 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9994 entry. If FONTSET is the default fontset, don't set the extra
9995 slot of the returning char-table.
9996
b066e6b6
JB
99972009-03-12 Juanma Barranquero <lekktu@gmail.com>
9998
9999 * nsfns.m (Fx_close_connection): Doc fix.
10000 (Fns_do_applescript): Reflow docstring.
10001 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10002 (Fx_display_pixel_width, Fx_display_pixel_height)
10003 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10004 Fix typos in docstrings.
10005 (Fns_set_alpha): Fix typos in error messages.
10006
d472514e 100072009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10008
d472514e 10009 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10010 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10011 were used for such events.
10012
d472514e
JB
10013 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10014 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10015
d472514e 10016 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10017 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10018
fb930676
KH
100192009-03-11 Kenichi Handa <handa@m17n.org>
10020
ff85581a
KH
10021 * font.h (font_open_by_spec): Extern it.
10022
c50b7e98
KH
10023 * font.c (font_open_by_spec): New function.
10024 (font_open_by_name): Use font_open_by_spec.
10025
fb930676
KH
10026 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10027 fontset of the frame.
10028
10029 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10030 modify the default font of frames that use this fontset.
10031 (num_auto_fontsets): New variable.
10032 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10033 name. Be sure to set FONTSET_ASCII to the correct font name.
10034 (update_auto_fontset_alist): New function.
10035
df4e8455
JB
100362009-03-11 Juanma Barranquero <lekktu@gmail.com>
10037
10038 * makefile.w32-in: Update dependencies.
10039
0a375797
AR
100402009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10041
10042 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10043
61313fa3
SM
100442009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10045
10046 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10047
b55103fb
CY
100482009-03-10 Chong Yidong <cyd@stupidchicken.com>
10049
10050 * lread.c (Feval_buffer): Doc fix.
10051
dde2559c
KH
100522009-03-09 Kenichi Handa <handa@m17n.org>
10053
10054 * charset.c (Qfile_name_handler_alist): Extern it.
10055 (load_charset_map_from_file): Temporarily bind
10056 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10057
df4e8455 100582009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10059
47f588bb
GM
10060 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10061 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10062
4ddf94bd
AR
100632009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10064
4c9bdfc2
AR
10065 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10066 (x_set_window_size): Change back to calculated method of setting
10067 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10068 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10069 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10070
fe41ae9e
AR
10071 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10072
4c9bdfc2
AR
10073 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10074 accelerator in parens under GNUstep.
10075
825d0875
KH
100762009-03-06 Kenichi Handa <handa@m17n.org>
10077
10078 These changes are to detect incorrect composition sequence without
f3b3be74 10079 looking ahead the source. (Bug#2370)
825d0875
KH
10080
10081 * coding.h: Include "composite.h".
10082 (enum compisition_state): New enum.
10083 (struct compisition_status): New struct.
10084 (struct iso_2022_spec): New member cmp_status.
10085 (struct emacs_mule_spec): New struct.
10086 (struct coding_system): New members ctext_extended_segment_len and
10087 embedded_utf_8. Change the union member
10088 spec.emacs_mule_full_support to spec.emacs_mule.
10089
10090 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10091 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10092 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10093 (ADD_COMPOSITION_DATA): New arg nbytes.
10094 (emacs_mule_char): New arg cmp_status.
10095 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10096 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10097 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10098 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10099 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10100 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10101 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10102 (EMACS_MULE_COMPOSITION_END): New macro.
10103 (emacs_mule_finish_composition): New function.
10104 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10105 (decode_coding_emacs_mule): Avoid long looking ahead while
10106 handling composition.
10107 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10108 (ENCODE_COMPOSITION_RULE): New macro.
10109 (finish_composition): New function.
10110 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10111 (DECODE_COMPOSITION_START): New implementation.
10112 (DECODE_COMPOSITION_END): Likewise.
10113 (STORE_COMPOSITION_RULE): New macro.
10114 (decode_coding_iso_2022): Avoid long looking ahead while handling
10115 composition, CTEXT extended segment, and embedded UTF-8.
10116 (setup_coding_system): For a coding of type iso-2022, reset
10117 CODING_ISO_EXTSEGMENT_LEN (coding) and
10118 CODING_ISO_EMBEDDED_UTF_8 (coding).
10119 (get_translation): Delete arguments last_block, from_nchars,
10120 to_nchars. Callers changed.
10121 (produce_chars): Don't modify charbuf. Adjusted for the change of
10122 get_translation.
98a326f7 10123 (produce_composition): Adjust for the new annotation sequence.
825d0875 10124 (handle_composition_annotation): Likewise.
98a326f7 10125 (consume_chars): Adjust for the change of get_translation.
825d0875 10126
ccbc4452
AR
101272009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10128
4ddf94bd 10129 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10130
988a7ddb
KH
101312009-03-05 Kenichi Handa <handa@m17n.org>
10132
10133 * font.c (font_select_entity): New function.
10134 (font_find_for_lface): Use font_select_entity to select a font.
10135
10136 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10137 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10138 font with C restriction.
10139
98a326f7 101402009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10141
be1bce46 10142 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10143
10ea2b82
JR
101442009-03-04 Jason Rumney <jasonr@gnu.org>
10145
2c93b248 10146 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10147 characters that have already been read. (Bug#2569)
2c93b248 10148
10ea2b82
JR
10149 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10150 Log an error message if check_image_size failed.
10151 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10152 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10153
71a0c011
EZ
101542009-03-02 Eli Zaretskii <eliz@gnu.org>
10155
10156 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10157 when decoding process output.
10158
2f63bba8
RS
101592009-03-01 Richard M Stallman <rms@gnu.org>
10160
10161 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10162
10163 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10164
0a9564cb
EZ
101652009-02-28 Eli Zaretskii <eliz@gnu.org>
10166
10167 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10168 (decode_coding_emacs_mule, decode_coding_iso_2022)
10169 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10170 (decode_coding_raw_text, decode_coding_charset)
10171 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10172 Honor inhibit-eol-conversion. (Bug #2186)
10173
449148b3
JR
101742009-02-28 Jason Rumney <jasonr@gnu.org>
10175
10176 * coding.c (detect_coding_charset): If not checking latin extra,
10177 fail on characters between 0x80 and 0xA0. (Bug#2354)
10178
a4aee864
EZ
101792009-02-28 Eli Zaretskii <eliz@gnu.org>
10180
10181 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10182 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10183
d88bee5a
GM
101842009-02-27 Glenn Morris <rgm@gnu.org>
10185
10186 * callint.c (Finteractive): Doc fix.
10187
a808f22d
KH
101882009-02-27 Kenichi Handa <handa@m17n.org>
10189
10190 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10191
caf8d60c
CY
101922009-02-27 Chong Yidong <cyd@stupidchicken.com>
10193
10194 * font.c (font_style_to_value): Set value for unknown symbols to
10195 100 instead of 255.
b61137ea
CY
10196 (weight_table, slant_table, width_table): Treat "unspecified" as
10197 the default value.
caf8d60c 10198
1a0de25c
JB
101992009-02-26 Juanma Barranquero <lekktu@gmail.com>
10200
10201 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10202
8fc45744
JB
102032009-02-25 Juanma Barranquero <lekktu@gmail.com>
10204
107bd7d1
JB
10205 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10206 error as soon as a recursive load is detected.
8fc45744 10207
f097e223
AR
102082009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10209
10210 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10211 before caching.
10212
8810a12f
KH
102132009-02-24 Kenichi Handa <handa@m17n.org>
10214
10215 * fontset.c (fontset_find_font): Fix the condition for checking
10216 unavailable font.
10217
2c7d1565
GM
102182009-02-24 Glenn Morris <rgm@gnu.org>
10219
10220 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10221 whitespace that confuses documentation.
10222
a20878b6
MB
102232009-02-23 Miles Bader <miles@gnu.org>
10224
10225 * process.c (Flist_system_processes, Fprocess_attributes)
10226 (syms_of_process): Rename `system-process-attributes' to
10227 `process-attributes'.
10228
b3b58c01
AS
102292009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10230
1b3b981b
AS
10231 * coding.h (struct coding_system): Make safe_charsets a pointer to
10232 unsigned char.
10233 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10234 being 255.
10235 (SAFE_CHARSET_P): Likewise.
10236 (setup_iso_safe_charsets): Properly setup safe_charsets.
10237 (Fdefine_coding_system_internal): Likewise.
10238 (setup_coding_system): Likewise. Remove unneeded casts.
10239 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10240 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10241 unneeded casts.
10242
b3b58c01
AS
10243 * insdel.c (del_range_2): Don't modify gap contents when called
10244 from decode_coding_object. (Bug#1809)
10245
0b6f228c
CY
102462009-02-21 Chong Yidong <cyd@stupidchicken.com>
10247
10248 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10249 Qfont_object.
10250 (Ftype_of): Recognize font objects.
10251
10252 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10253
10254 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10255 moved to data.c.
10256
52f8870b
AR
102572009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10258
10259 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10260 async_iconified. Based on a patch by Christian Lynbech
10261 <christian.lynbech@tieto.com>.
10262 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10263
7087d5e9
GM
102642009-02-20 Glenn Morris <rgm@gnu.org>
10265
10266 * syntax.c (Fskip_chars_forward): Fix doc typo.
10267
41d2ceef
CY
102682009-02-20 Chong Yidong <cyd@stupidchicken.com>
10269
10270 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10271
1a3b7ca6
CY
102722009-02-19 Chong Yidong <cyd@stupidchicken.com>
10273
10274 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10275
73cce38d
KH
102762009-02-19 Kenichi Handa <handa@m17n.org>
10277
10278 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10279 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10280
a51092ee
DN
102812009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10282
10283 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10284
c423ecca
KH
102852009-02-18 Kenichi Handa <handa@m17n.org>
10286
10287 * font.c (font_check_otf_features): Fix handling of `nil' element.
10288 (Ffont_spec): Describe :lang and :otf in the docstring.
10289
4c1958f4
AS
102902009-02-16 Andreas Schwab <schwab@suse.de>
10291
10292 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10293 string.
10294
5704f39a
KH
102952009-02-16 Kenichi Handa <handa@m17n.org>
10296
10297 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10298 (Bug#1723)
5704f39a 10299
8f0085aa
CY
103002009-02-14 Chong Yidong <cyd@stupidchicken.com>
10301
a057d86a 10302 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10303
10304 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10305 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10306
aff01dd9
EZ
103072009-02-14 Eli Zaretskii <eliz@gnu.org>
10308
10309 * msdos.c (MAX_SCREEN_BUF): New macro.
10310 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10311 Encode the entire run of glyphs sharing the same face, instead of
10312 doing that one glyph at a time (fixes a bug with displaying
10313 double-size characters).
10314
ba301db3
AR
103152009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10316
10317 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10318
10319 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10320 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10321 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10322
10323 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10324 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10325
51d861de
SM
103262009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10327
ac146f82 10328 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10329 invisible areas.
10330
7fed8996
JR
103312009-02-12 Jason Rumney <jasonr@gnu.org>
10332
631ea4fb
JR
10333 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10334 (add_font_entity_to_list): Call check_face_name even when family
10335 is unspecified.
10336
cb4a3e42
JR
10337 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10338 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10339 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10340
7fed8996 10341 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10342 raster fonts. (Bug#2219)
7fed8996 10343
895416e3
KH
103442009-02-12 Kenichi Handa <handa@m17n.org>
10345
10346 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10347 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10348 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10349 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10350 (find_automatic_composition): While looking forward and backward,
10351 check static composition. Fix where to stop looking forward.
10352 (composition_adjust_point): Fix checking of static composition.
10353 (Fcomposition_get_gstring): Pay attention to
1dacf998 10354 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10355
10356 * lisp.h (fast_looking_at): Extern it.
10357
10358 * search.c (fast_looking_at): New function.
10359
51d861de 10360 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10361 <struct glyph>.u.cmp.to.
10362 (append_composite_glyph): Likewise.
10363
51d861de 10364 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10365 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10366 composition.
51d861de 10367 (append_composite_glyph): Adjust for the change of
895416e3
KH
10368 <strcut glyph>.u.cmp.to.
10369
8510724d
JB
103702009-02-11 Juanma Barranquero <lekktu@gmail.com>
10371
10372 * casetab.c (init_casetab_once):
10373 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10374 * font.c (font_update_lface):
10375 * fontset.c (Fnew_fontset):
10376 * ftfont.c (ftfont_drive_otf):
10377 * xfont.c (xfont_open):
10378 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10379
294fa707
SM
103802009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * fileio.c (Fwrite_region): !NILP -> CONSP.
10383
b5bfebec
AS
103842009-02-10 Andreas Schwab <schwab@suse.de>
10385
10386 * process.c (send_process): Properly relocate pointer into data
adab88bd 10387 when using encoded data. (Bug#2272)
b5bfebec 10388
cb84a2be
KH
103892009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10390
10391 * coding.c (detect_coding_charset): Fix previous change.
10392
89e09428
JR
103932009-02-08 Jason Rumney <jasonr@gnu.org>
10394
10395 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10396 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10397
4470a277
AS
103982009-02-07 Andreas Schwab <schwab@suse.de>
10399
10400 * unexelf.c (unexec): Fix error message.
10401
3175b12a
AR
104022009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10403
10404 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10405 when modal window is active. (Bug #2152)
3175b12a
AR
10406 (applicationShouldTerminate:): Remove now-unneeded while loop
10407 around NSRunAlertPanel.
10408
10409 * nsmenu.m (popupSession): New file-global variable.
10410 (pop_down_menu): End the popupSession before closing dialog.
10411 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10412 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10413 don't query NSApp for events (just sleep instead).
10414
8434d0b8
EZ
104152009-02-07 Eli Zaretskii <eliz@gnu.org>
10416
51d861de
SM
10417 * coding.c (syms_of_coding) <translation-table-for-input>:
10418 Modify doc string to discourage use for character code unification.
8434d0b8 10419
aa82edfd
CY
104202009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10421
10422 * atimer.c (run_timers): Update pending_atimers.
10423
2d283c7c
CY
104242009-02-06 Chong Yidong <cyd@stupidchicken.com>
10425
eb306cab
CY
10426 * image.c (svg_load_image): Fix last change.
10427
2d283c7c
CY
10428 * xfns.c (Fx_create_frame): Signal an error if no font is
10429 found (Bug#2147).
10430
4d8e170e
JB
104312009-02-05 Juanma Barranquero <lekktu@gmail.com>
10432
10433 * character.c (syms_of_character) <script-representative-chars>:
10434 Fix typo in docstring.
10435
c96169a0
AR
104362009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10437
10438 * nsmenu.m (pop_down_menu): New function.
10439 (ns_popup_dialog): Call it on unwind.
10440 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10441 call timer_check() (Bug#2154).
10442 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10443 handling_signal is set.
10444 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10445
31fd7c5c 10446 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10447
10448 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10449
10450 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10451
51d861de
SM
10452 * keyboard.c (poll_for_input_1, handle_async_input):
10453 Set handling_signal under HAVE_NS.
c96169a0 10454
aacd8ba1
GM
104552009-02-04 Glenn Morris <rgm@gnu.org>
10456
10457 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10458
4cb75c4b
KH
104592009-02-04 Kenichi Handa <handa@m17n.org>
10460
10461 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10462
10463 * charset.c (Fchar_charset): New optional arg restriction.
10464
10465 * coding.h (coding_system_charset_list): Extern it.
10466
10467 * coding.c (coding_system_charset_list): New function.
10468
10469 * composite.c: Include coding.h and termhooks.h.
10470 (composition_gstring_p): Fix for the terminal case.
10471 (composition_gstring_width): Likewise.
10472 (fill_gstring_body): Likewise.
10473 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10474 the frame.
10475 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10476 is within a composition.
867d4bb3 10477 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10478
10479 * term.c (encode_terminal_code): Fix handling of composition.
10480 (produce_composite_glyph): For static composition, get pixel_width
10481 from struct composition.
10482
826ba17e
AS
104832009-02-02 Andreas Schwab <schwab@suse.de>
10484
10485 * unexelf.c (unexec): Handle unaligned bss offset.
10486
8ad093db
AR
104872009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10488
10489 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10490 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10491
8ad093db
AR
10492 * keyboard.c (handle_interrupt): Don't call
10493 quit_throw_to_read_char() under NS.
d0a76a6e 10494
8ad093db
AR
10495 * blockinput.h: Remove NS-specific code.
10496
4d18a7a2
DN
104972009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10498
db878925
DN
10499 * dispnew.c (window_change_signal): Don't try to get the size of a
10500 suspended tty frame.
10501 * term.c (Fresume_tty): Resize if the size has changed while the
10502 tty was suspended.
10503
4d18a7a2
DN
10504 * alloc.c (mark_stack): Properly conditionalize previous change.
10505
8984df7c
JB
105062009-01-30 Juanma Barranquero <lekktu@gmail.com>
10507
10508 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10509 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10510 Remove; this code is not used on Windows.
10511
75f4f1ac
EZ
105122009-01-30 Eli Zaretskii <eliz@gnu.org>
10513
10514 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10515 EOLs that also has stray ^M characters.
10516
07a1e794
JB
105172009-01-30 Juanma Barranquero <lekktu@gmail.com>
10518
10519 * atimer.c (run_timers, alarm_signal_handler):
10520 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10521 * w32inevt.c (w32_console_read_socket):
10522 * w32term.c (w32_read_socket):
10523 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10524
a8b11cc9
CY
105252009-01-30 Chong Yidong <cyd@stupidchicken.com>
10526
10527 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10528 Initialize it as a relative filename pattern.
10529 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10530 (Fcall_process_region): Simplify temp file creation using
10531 temporary-file-directory.
10532
c279587b
EZ
105332009-01-29 Eli Zaretskii <eliz@gnu.org>
10534
10535 * msdos.c: Rename pending_signals to msdos_pending_signals.
10536 (sig_suspender, sigprocmask): Adjust.
10537
a8fe3242
CY
105382009-01-29 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * keyboard.c (pending_signals): New var.
10541 (poll_for_input, input_available_signal, init_keyboard): Set it.
10542 (process_pending_signals): New function.
10543
10544 * lisp.h (QUIT): Check pending_signals instead of
10545 interrupt_input_pending. Use process_pending_signals.
10546
51d861de 10547 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10548
51d861de 10549 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10550
10551 * sysdep.c (emacs_write): Use process_pending_signals.
10552
10553 * xterm.c (XTread_socket): Update pending_signals.
10554
10555 * w32term.c (w32_read_socket): Update pending_signals.
10556
10557 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10558
6570a1c4
KH
105592009-01-29 Kenichi Handa <handa@m17n.org>
10560
10561 * xftfont.c (xftfont_has_char): New function.
10562 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10563
d72a4afa
AR
105642009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10565
10566 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10567 under GNUstep.
10568 (ns_query_color): New declaration.
10569
10570 * nsterm.m (ns_confirm_quit): New variable.
10571 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10572 (EmacsApp-applicationShouldTerminate:): Use it.
10573 (EmacsPrefsController): Let user set it.
10574 (ns_query_color): New function.
10575 (ns_defined_color): Use it.
10576 (ns_initialize): Drop.
10577 (ns_term_init): Add two lines from ns_initialize(), and set
10578 input_interrupt_mode to nil.
10579
10580 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10581 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10582
9fe78804
KH
105832009-01-28 Kenichi Handa <handa@m17n.org>
10584
10585 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10586 (fontset_get_font_group): Remember that no font-group is specified
10587 for C.
9fe78804 10588
fa57de36
CY
105892009-01-27 Chong Yidong <cyd@stupidchicken.com>
10590
930600e9
CY
10591 * fns.c (concat): Check for string overflow (bug#1787).
10592
fa57de36
CY
10593 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10594 Quadruple undo limits (bug#1501).
10595
7179ce7b
KH
105962009-01-27 Kenichi Handa <handa@m17n.org>
10597
10598 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10599 directly use GT_Get_Char_index.
10600
10601 * xftfont.c (struct xftfont_info): New member `index'.
10602
10603 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10604 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10605
5be8fcc0
CY
106062009-01-26 Kenichi Handa <handa@m17n.org>
10607
10608 * fontset.c (fontset_find_font): Fix handling of non-cons return
10609 value of fontset_get_font_group.
10610 (fontset_font): Revert last change.
10611
19ae3e61
JR
106122009-01-26 Jason Rumney <jasonr@gnu.org>
10613
10614 * w32font.c (w32font_list_internal): Return quickly if registry is
10615 unknown. Simplify final return.
10616 (add_font_entity_to_list): Break complex logic down into more
10617 manageable chunks. Move unknown registry check to
10618 w32font_list_internal.
10619
8612b71a
AR
106202009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10621
10622 Changes to remove Feval calls from GUI under NS.
10623
d8038940
JB
10624 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10625 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10626 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10627
10628 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10629 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10630 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10631 instead of NON_ASCII_KEYSTROKE_EVENT.
10632 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10633 (EmacsApp-applicationShouldTerminate:): Query user.
10634 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10635 instead of Feval.
10636
10637 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10638
10639 * keyboard.c (kbd_buffer_get_event): Check for it.
10640 (keys_of_keyboard): Define lispy keys for
10641 ns-put/unput-working-text.
10642
10643 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10644 versions.
10645 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10646
6288ae55
CY
106472009-01-25 Chong Yidong <cyd@stupidchicken.com>
10648
10649 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10650 setting current_buffer directly. (Bug#2044)
6288ae55 10651
289e7f8f
CY
106522009-01-24 Chong Yidong <cyd@stupidchicken.com>
10653
5ce87308 10654 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10655 any work. (Bug#1952, bug#1990).
5ce87308 10656
64cc3cf6 10657 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10658
b3243e6f
AR
106592009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10660
10661 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10662 (ns_no_defaults): New declaration.
10663 (main): Use it.
e0d2e69a 10664
d900b2af 10665 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10666
d900b2af 10667 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10668
d900b2af
AR
10669 * nsterm.m (ns_no_defaults): New variable.
10670 (ns_initialize): Don't read defaults when ns_no_defaults.
10671 (EmacsView-readSelectionFromPasteboard:)
10672 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10673 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10674 (ns_dumpglyphs_stretch): New function.
10675 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10676 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10677
e0d2e69a
AR
10678 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10679
3ac71f5d
CY
106802009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10681
10682 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10683 call for Sparc64.
10684
3fe53a83
AR
106852009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10686
10687 * nsfns.m:
10688 * nsgui.h:
10689 * nsmenu.m:
10690 * nsselect.m:
10691 * nsterm.h:
10692 * nsterm.m: Remove '23' comments that indicated code added during
10693 update from emacs-20 -> emacs-23.
10694
10f87c6f 106952009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10696
10697 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10698 ns_alternate_modifier. (Bug#1217)
a3b53a85 10699
c7cef62d
AR
10700 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10701 Display all shortcuts, including those w/o super modifier.
10702
575fb8bd
AR
10703 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10704
918b848b
CY
107052009-01-22 Chong Yidong <cyd@stupidchicken.com>
10706
10707 * fileio.c (Vwrite_region_post_annotation_function)
10708 (Vwrite_region_annotation_buffers): New vars.
10709 (build_annotations_unwind): Just reset
10710 Vwrite_region_annotation_buffers.
10711 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10712 Call write-region-post-annotation-function.
10713 (build_annotations): Add to Vwrite_region_annotation_buffers if
10714 buffer changes.
10715
a39e2539
AR
107162009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10717
10718 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10719 Tiger.
51d861de
SM
10720 * nsfns.m (ns_do_applescript):
10721 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10722
35ed44db
AR
107232009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10724
10725 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10726
cbe0b5bf
AR
107272009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10728
10729 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10730
6049d3a0
AR
10731 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10732
10733 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10734 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10735 handle Ctrl-tab. (Bug#1841)
10736 (ns_get_color): Use unsigned long long for scanned hex string value.
10737 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10738 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10739 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10740 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10741 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10742 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10743 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10744
d3810c21 10745 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10746 DPI. (Bug#1316)
d3810c21
AR
10747 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10748 values in onTiger section.
4c7077c3 10749
e301e634
CY
107502009-01-19 Chong Yidong <cyd@stupidchicken.com>
10751
7f82490b
CY
10752 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10753 Check return value of font_spec_from_name.
64cc3cf6 10754 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10755
10756 * font.c (font_spec_from_name): Return Qnil if font name could not
10757 be parsed.
10758 (font_parse_name): Treat a `?' character as part of an XLFD.
10759
e301e634
CY
10760 * fns.c (Fsubstring): Doc fix.
10761
1c0db158
KH
107622009-01-19 Kenichi Handa <handa@m17n.org>
10763
51d861de 10764 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10765 (ftfont_list): Likewise.
10766
acf20901
JB
107672009-01-18 Juanma Barranquero <lekktu@gmail.com>
10768
fff4e459
JB
10769 * dbusbind.c (Fdbus_register_signal):
10770 * process.c (conv_sockaddr_to_lisp):
10771 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10772
acf20901
JB
10773 * callproc.c (Fgetenv_internal): Doc fix.
10774
e7abcdfb
CY
107752009-01-16 Chong Yidong <cyd@stupidchicken.com>
10776
10777 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10778 it is not even used.
10779
b60861e6
GM
107802009-01-16 Glenn Morris <rgm@gnu.org>
10781
10782 * font.c (Ffont_variation_glyphs): Silence compiler.
10783
8db52afe
JB
107842009-01-15 Juanma Barranquero <lekktu@gmail.com>
10785
10786 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10787 Reported by David Robinow <drobinow@gmail.com>.
10788
4cddb209
KH
107892009-01-15 Kenichi Handa <handa@m17n.org>
10790
51d861de 10791 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10792
f247f67b
JR
107932009-01-14 Jason Rumney <jasonr@gnu.org>
10794
10795 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10796 never a fontset. (Bug#1562)
f247f67b 10797
f56a4450
KH
107982009-01-14 Kenichi Handa <handa@m17n.org>
10799
10800 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10801 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10802
4e99855e
CY
108032009-01-13 Chong Yidong <cyd@stupidchicken.com>
10804
10805 * font.c (font_clear_prop): If clearing the family, clear the font
10806 width index too.
10807
fff4e459 10808 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10809
24f01470
JB
108102009-01-12 Juanma Barranquero <lekktu@gmail.com>
10811
10812 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10813 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10814 functions, use sizeof.
10815
a41240a3
MR
108162009-01-12 Martin Rudalics <rudalics@gmx.at>
10817
10818 * keyboard.c (read_char): Fix case where last_nonmenu_event
10819 returned a bad value with submenus. (Bug#447)
10820
944636b8
CY
108212009-01-12 Chong Yidong <cyd@stupidchicken.com>
10822
10823 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10824 family, clear the font width index too.
10825
0dad7c6f
JR
108262009-01-11 Jason Rumney <jasonr@gnu.org>
10827
10828 * keyboard.c (cmd_error_internal): Exit when errors occur before
10829 frame creation and not in daemon mode. (Bug#1836)
10830
7c2363af
CY
108312009-01-10 Chong Yidong <cyd@stupidchicken.com>
10832
10833 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10834 of a display vector, backtrack.
10835 (try_window_reusing_current_matrix): Check glyph type before
10836 referencing charpos member.
10837
97b1b294
EZ
108382009-01-10 Eli Zaretskii <eliz@gnu.org>
10839
10840 Fix Bug #876:
10841
10842 * coding.c (inhibit_null_byte_detection): New variable.
10843 (detect_coding, detect_coding_system): Don't pay attention to null
10844 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10845 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10846 <inhibit-iso-escape-detection>: Doc fix.
10847
4624b6e3
JR
108482009-01-09 Jason Rumney <jasonr@gnu.org>
10849
10850 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10851 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10852 Only report Unicode Plane 2 fonts as unicode-sip.
10853
323b840c
CY
108542009-01-09 Chong Yidong <cyd@stupidchicken.com>
10855
51d861de
SM
10856 * xfaces.c (Fx_font_family_list): Delete function.
10857 Move compatibility version to faces.el.
323b840c 10858
51d861de 10859 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10860
eba7400d
MR
108612009-01-09 Martin Rudalics <rudalics@gmx.at>
10862
10863 * frame.c (x_set_frame_parameters): Remember requested value for
10864 fullscreen before it's reset by the parameter handler.
10865
4b09796d
GM
108662009-01-09 Glenn Morris <rgm@gnu.org>
10867
10868 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10869 (last_command_event): ... and update all users.
4b09796d
GM
10870 (last_input_char): For clarity, rename to...
10871 (last_input_event): ... and update all users.
10872 (last-command-char, last-input-char): Move to subr.el as aliases.
10873 * cmds.c, commands.h: Update for last_command_char rename.
10874
14ccea62
CY
108752009-01-08 Chong Yidong <cyd@stupidchicken.com>
10876
51d861de 10877 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10878
5f004711
JR
108792009-01-08 Jason Rumney <jasonr@gnu.org>
10880
10881 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10882 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10883 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10884 Don't declare.
fff4e459 10885 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10886 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10887
b71f6f73
KH
108882009-01-07 Kenichi Handa <handa@m17n.org>
10889
50b06221 10890 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10891 remember the coding system used for decoding in
50b06221
KH
10892 coding_system (Bug#1039).
10893
b71f6f73 10894 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10895 breaking the loop. (Bug#870)
b71f6f73
KH
10896 (decode_coding_utf_16, decode_coding_emacs_mule)
10897 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10898 (decode_coding_charset): Likewise.
10899
56f668f7
MR
109002009-01-05 Martin Rudalics <rudalics@gmx.at>
10901
10902 * frame.c (x_set_frame_parameters): Make sure height (width) get
10903 applied when fullwidth (fullheight) is set. (Bug#1522)
10904
5da9424d
JB
109052009-01-04 Juanma Barranquero <lekktu@gmail.com>
10906
10907 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10908 (utc_base): Declare as ULONGLONG, not long double.
10909 (convert_time_raw): Delete.
10910 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10911 (initialize_utc_base): New function.
10912 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10913 (convert_from_time_t): Use initialize_utc_base; compute result with
10914 64-bit arithmetic.
10915 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10916
c4605e09
EZ
109172009-01-03 Eli Zaretskii <eliz@gnu.org>
10918
9acef61c 10919 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10920 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10921 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10922 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10923 [!subprocesses]: Define.
10924 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10925 (Flist_system_processes, Fsystem_process_attributes)
10926 [!subprocesses]: Call list_system_processes and
10927 system_process_attributes instead of returning Qnil.
10928
9acef61c
JB
10929 * dosfns.c (system_process_attributes, list_system_processes):
10930 New functions.
c4605e09
EZ
10931
10932 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10933
10934 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10935 Don't use the default (no-op) implementation.
10936
8b7d0a16
JR
109372009-01-03 Jason Rumney <jasonr@gnu.org>
10938
a6d46bc1
JR
10939 * keyboard.c (parse_modifiers_uncached): Wheel events are
10940 clicks (bug#687).
10941
8b7d0a16
JR
10942 * w32term.c (x_query_colors, x_query_color): New functions.
10943
10944 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10945 (svg_load_image): Cast returned pointers from dynamically loaded
10946 functions. Eliminate W32 specific code.
10947
bfe11752
DN
109482009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10949
89e2438a
DN
10950 * nsfns.m (x_set_foreground_color, x_set_background_color)
10951 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10952 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10953 x_ prefix instead of ns_. Update references.
10954 (syms_of_nsfns): Add a FIXME comment.
10955
10956 * nsterm.m (x_set_cursor_type): New prototype.
10957 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10958
bfe11752
DN
10959 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10960 for Solaris instead of incorrectly providing Qutime and Qcutime.
10961
031da700
EZ
109622009-01-02 Eli Zaretskii <eliz@gnu.org>
10963
10964 * w32.c (process_times): Compute sum of utime and stime.
10965 (system_process_attributes): Add Qtime to the alist.
10966
10967 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10968 and add them to the alist.
10969
10970 * process.c (top level) <Qtime, Qctime>: New variables.
10971 (syms_of_process): staticpro them.
10972 (Fsystem_process_attributes): Add their documentation to the doc
10973 string.
10974
10975 * process.h: Declare Qtime and Qctime.
10976
df23bf08
JR
109772009-01-02 Jason Rumney <jasonr@gnu.org>
10978
9acef61c 10979 * image.c (Qgobject): New symbol.
df23bf08
JR
10980 (syms_of_image): Initialize it.
10981 (init_svg_functions): Load some functions from gobject library.
10982
5bbdf7aa
DN
109832009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10984
10985 * frame.c (make_terminal_frame): Remove redundant code and useless
10986 block.
10987
63136da6
AS
109882009-01-01 Andreas Schwab <schwab@suse.de>
10989
10990 * process.c (conv_sockaddr_to_lisp): Add workaround for
10991 getsockname bug on BSD.
10992
9ef69046
CY
109932009-01-01 Chong Yidong <cyd@stupidchicken.com>
10994
d6fafbe0
CY
10995 * xfns.c (x_create_tip_frame): Set border width of the X window.
10996
51d861de 10997 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10998
f9c34147
JR
109992009-01-01 Jason Rumney <jasonr@gnu.org>
11000
9acef61c 11001 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11002 Don't block input, as per earlier xterm.c changes.
11003
f5497e45
AR
110042008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11005
11006 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11007 (ns_appkit_version_int): New function.
11008 (x-server-version): Use ns_appkit_version_int and follow 21+
11009 convention of returning 3 integers.
11010
c19cab20
KH
110112008-12-30 Kenichi Handa <handa@m17n.org>
11012
11013 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11014 (CHAR_SURROGATE_PAIR_P): New macro.
11015
11016 * font.h (struct font_driver): New member get_variation_glyphs.
11017
9acef61c 11018 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11019 (Ffont_variation_glyphs): New function.
11020 (syms_of_font): Defsubr it.
11021
11022 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11023 ftfont_variation_glyphs.
11024 (setup_otf_gstring): New function.
11025 (ftfont_drive_otf): Use it.
11026 (ftfont_shape_by_flt): Handle variation selector.
11027 (ftfont_variation_glyphs): New function.
11028
28cd591f
MR
110292008-12-30 Martin Rudalics <rudalics@gmx.at>
11030
11031 * frame.c (Vemacs_iconified): Remove.
11032
7f714baf
JR
110332008-12-30 Jason Rumney <jasonr@gnu.org>
11034
11035 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11036 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11037
9d2d22ab
CY
110382008-12-30 Chong Yidong <cyd@stupidchicken.com>
11039
11040 * indent.c (Fvertical_motion): Don't advance iterator if we have
11041 reseated to the desired position.
11042
11043 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11044 checking for pos match.
11045
545312c2
KH
110462008-12-30 Kenichi Handa <handa@m17n.org>
11047
1ede3eb6
KH
11048 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11049 just get the low 8-bit of the code.
11050
545312c2
KH
11051 * font.c (font_intern_prop): Validate str as multibyte.
11052
bd7bbf29
DN
110532008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11054
31e0750e
DN
11055 * dispextern.h (struct face): Move lface and hash from the middle
11056 of bitfields.
11057
bd7bbf29
DN
11058 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11059
b5672e7c
DN
110602008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11061
11062 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11063 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11064 instead of intervals.h.
11065
d704470f
AS
110662008-12-26 Andreas Schwab <schwab@suse.de>
11067
11068 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11069 cons.
11070
54b33868
MR
110712008-12-26 Martin Rudalics <rudalics@gmx.at>
11072
11073 * textprop.c (Qminibuffer_prompt): New variable.
11074 (syms_of_textprop): Initialize it.
11075 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11076 in minibuffer-prompt face. (Bug#1662)
11077
40b615d6
JR
110782008-12-25 Jason Rumney <jasonr@gnu.org>
11079
11080 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11081
baae5c2d
JR
110822008-12-24 Jason Rumney <jasonr@gnu.org>
11083
11084 * ralloc.c (r_alloc_reset_variable): New function.
11085
11086 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11087 record of what points where. (Bug#716)
baae5c2d 11088
a9051c88
DN
110892008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11090
11091 * minibuf.c (read_minibuf): Follow the non-interactive case when
11092 running as a daemon, before detaching.
11093
8b146312
AS
110942008-12-22 Andreas Schwab <schwab@suse.de>
11095
11096 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11097 * gtkutil.c (free_widget_value): Use xfree instead of free.
11098
56f2de10
MR
110992008-12-22 Martin Rudalics <rudalics@gmx.at>
11100
11101 * frame.c (delete_frame): New function derived from
11102 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11103 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11104 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11105 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11106 * frame.h: Extern delete_frame.
11107 * window.c (window_loop):
11108 * terminal.c (delete_terminal):
11109 * xterm.c (x_connection_closed):
11110 * xfns.c (Fx_hide_tip):
9acef61c 11111 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11112
1fc200d6
JR
111132008-12-21 Jason Rumney <jasonr@gnu.org>
11114
11115 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11116 when character maps to .notdef character.
11117
5e252df2
SM
111182008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11119
11120 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11121
99b72cc4
JR
111222008-12-20 Jason Rumney <jasonr@gnu.org>
11123
11124 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11125 a graphical frame on Windows. (Bug#1325)
99b72cc4 11126
acc49a52
JD
111272008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11128
11129 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11130
6ea15123
CY
111312008-12-20 Chong Yidong <cyd@stupidchicken.com>
11132
11133 * minibuf.c (Fread_buffer): Doc fix.
11134
b2dab6c8
JR
111352008-12-20 Jason Rumney <jasonr@gnu.org>
11136
54ea0c87 11137 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11138 server name in UNC paths. (Bug#719)
54ea0c87 11139
b2dab6c8 11140 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11141 charbuf. (Bug#1035)
b2dab6c8 11142
6d1921be
DN
111432008-12-19 Daniel Engeler <engeler@gmail.com>
11144
11145 * sysdep.c (serial_configure): Fix typo.
11146
53934c98
DN
111472008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11148
11149 * sysdep.c: Include alloca.h.
f4f634e8
DN
11150 (system_process_attributes): Add implementation for Solaris.
11151
11152 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11153
06e111a6
DN
111542008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11155
11156 Reorganize implementation of Flist_system_processes and
11157 Fsystem_process_attributes. No functional changes.
11158 * process.c: Don't #include pwd.h, grp.h and limits.h.
11159 (Flist_system_processes): Just call list_system_processes.
11160 (Fsystem_process_attributes): Just call system_process_attributes.
11161 (procfs_list_system_processes, time_from_jiffies)
11162 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11163 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11164
11165 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11166 (list_system_processes): Rename from
11167 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11168 Provide a do nothing implementation.
11169 (system_process_attributes): Rename from
11170 procfs_list_system_processes.
11171 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11172 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11173
11174 * w32.c (list_system_processes): Rename from
11175 w32_list_system_processes.
11176 (system_process_attributes): Rename from
11177 w32_system_process_attributes.
11178
11179 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11180
11181 * process.h (w32_list_system_processes)
11182 (w32_system_process_attributes): Remove.
362654a6
JB
11183 (list_system_processes, system_process_attributes):
11184 New prototypes.
06e111a6 11185
6a705b23
KH
111862008-12-19 Kenichi Handa <handa@m17n.org>
11187
11188 * xfont.c (xfont_decode_coding_xlfd): New function.
11189 (xfont_encode_coding_xlfd): New function.
11190 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11191 (xfont_list): Decode and encode XLFD by iso-8859-1.
11192 (xfont_match): Likewise.
11193 (xfont_list_family): Likewise.
11194 (xfont_open): Likewise.
11195
d66c0241 11196 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11197 names are utf-8.
11198
d66c0241 11199 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11200 names are utf-8.
11201
5a130941
JD
112022008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11203
11204 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11205 changed.
bfd20325
JD
11206 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11207 clicked on a detached tool bar button.
5a130941 11208
fd95644b
DN
112092008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11210
11211 * emacs.c (main): Print and error and exit when no data is read
11212 from the pipe.
11213
e6eee6ae
JR
112142008-12-17 Jason Rumney <jasonr@gnu.org>
11215
11216 * w32font.c (w32font_has_char): Always return -1.
11217
a35dd56b
KH
112182008-12-16 Kenichi Handa <handa@m17n.org>
11219
11220 * font.c (font_open_entity): Fix previous change.
11221
0e3635c2
DN
112222008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11223
11224 * process.c: Include <limits.h>.
11225
d4835507 112262008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11227
11228 * font.c (font_update_drivers): Fix mistake in reconstructing the
11229 driver list.
11230
112312008-12-16 Chong Yidong <cyd@stupidchicken.com>
11232
11233 * font.c (font_clear_cache): Fix format of font cache data.
11234
e2cbc401
CY
112352008-12-15 Chong Yidong <cyd@stupidchicken.com>
11236
11237 * xftfont.c (xftfont_open): Free Xft font pattern if
11238 XftFontOpenPattern fails.
11239
11240 * xterm.c (x_free_frame_resources): Remove extraneous call to
11241 free_frame_faces.
11242
b131d535
CY
112432008-12-13 Chong Yidong <cyd@stupidchicken.com>
11244
11245 * xterm.c (x_delete_display): Move xim_close_dpy call to
11246 x_delete_terminal.
11247 (x_delete_terminal): Call xim_close_dpy.
11248
e6df5336
JR
112492008-12-13 Jason Rumney <jasonr@gnu.org>
11250
11251 * w32font.c (intern_font_name): New function.
11252 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11253 (w32font_open_internal, Fx_select_font): Decode font name.
11254 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11255
11256 * w32font.h (intern_font_name): Declare new function.
11257
11258 * w32uniscribe.c (add_opentype_font_name_to_list):
11259 Use intern_font_name.
11260
20d68145
CY
112612008-12-13 Chong Yidong <cyd@stupidchicken.com>
11262
9f2554de
CY
11263 * frame.c (Fdelete_frame): Call free_font_driver_list.
11264
3d9bec9a
CY
11265 * font.c (free_font_driver_list): Implement missing function.
11266
20d68145
CY
11267 * w32term.c (w32_term_init): Don't initialize the image cache
11268 here; it will be done in init_frame_faces.
11269
11270 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11271 (struct x_display_info): Remove unused member null_pixel. New
11272 member xim_callback_data.
11273
11274 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11275 (xim_initialize): Save pointer to callback function data.
11276 (xim_close_dpy): Free callback function data. Call XCloseIM,
11277 reverting 2008-11-04 change by David Smith.
11278 (x_term_init): Don't initialize the image cache here; it will be
11279 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11280 (x_delete_display): Free x_dnd_atoms member.
11281
96f9306b
KH
112822008-12-13 Kenichi Handa <handa@m17n.org>
11283
6dec9044
JB
11284 * font.c (font_rescale_ratio): Moved from xfaces.c.
11285 Argument type changed. Handle a font-spec too.
96f9306b 11286 (font_score): Check Vface_font_rescale_alist.
6dec9044 11287 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11288
11289 * xfaces.c (font_rescale_ratio): Moved to font.c.
11290
8d5b4964
CY
112912008-12-13 Chong Yidong <cyd@stupidchicken.com>
11292
11293 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11294
e6df5336
JR
112952008-12-12 Jason Rumney <jasonr@gnu.org>
11296
11297 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11298 Vwindow_system_version to the real w32 major version.
11299
97c6058a
DN
113002008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11301
11302 * term.c (init_tty): Move setting the terminal name before the
11303 potential user: maybe_fatal.
11304
ec4e88d7
CY
113052008-12-11 Chong Yidong <cyd@stupidchicken.com>
11306
d4835507
JB
11307 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11308 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11309
b4233ec9
JR
113102008-12-11 Jason Rumney <jasonr@gnu.org>
11311
8ec71e23 11312 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11313 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11314
b4233ec9 11315 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11316 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11317
011a0143
JB
113182008-12-11 Juanma Barranquero <lekktu@gmail.com>
11319
11320 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11321
3c309f34
JB
113222008-12-11 Juanma Barranquero <lekktu@gmail.com>
11323
11324 * process.c (Fsystem_process_attributes, syms_of_process):
11325 Fix typo in name of Ssystem_process_attributes.
11326 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11327
fedc6ab5
JB
113282008-12-11 Juanma Barranquero <lekktu@gmail.com>
11329
11330 * syntax.c (Fmodify_syntax_entry): Doc fix.
11331
ba3de0e8
JB
113322008-12-10 Juanma Barranquero <lekktu@gmail.com>
11333
11334 * font.c (Ffont_spec): Move usage to end of docstring.
11335
174f1c74
JR
113362008-12-10 Jason Rumney <jasonr@gnu.org>
11337
11338 * w32font.c (Qcham): New symbol.
11339 (font_supported_scripts): Add cham, and comments for other new
11340 scripts in bitfield from OpenType spec.
9d32f818
JR
11341 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11342 contain characters beyond the bmp.
174f1c74 11343
7b649478
KH
113442008-12-10 Kenichi Handa <handa@m17n.org>
11345
11346 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11347 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11348 Qunicode_sip.
11349
2133e2d1
JB
113502008-12-10 Juanma Barranquero <lekktu@gmail.com>
11351
11352 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11353 (Fcoding_system_put): Use QCdefault_char.
11354 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11355
9af886ee
CY
113562008-12-09 Chong Yidong <cyd@stupidchicken.com>
11357
74d819eb
CY
11358 * xftfont.c (syms_of_xftfont): Fix typo.
11359
4ccfa1c0 11360 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11361
7c19d3ae
DN
113622008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11363
11364 * emacs.c (main): Close daemon_pipe on exec.
11365
567826bb
CY
113662008-12-08 Chong Yidong <cyd@stupidchicken.com>
11367
11368 * termchar.h (struct tty): New members termcap_term_buffer and
11369 termcap_strings_buffer.
11370
11371 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11372 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11373 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11374 All callers changed.
11375 (init_tty): Store termcap data and string buffers in new struct
11376 tty members termcap_term_buffer and termcap_strings_buffer.
11377 (delete_tty): Free them.
4ccfa1c0 11378 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11379
aa96c42b
SZ
113802008-12-07 Seiji Zenitani <zenitani@mac.com>
11381
11382 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11383 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11384
b7e1d896
CY
113852008-12-06 Chong Yidong <cyd@stupidchicken.com>
11386
11387 * coding.c (make_conversion_work_buffer): Disable buffer
11388 modification hooks in the work buffer.
11389
b5ec91a5
EZ
113902008-12-05 Eli Zaretskii <eliz@gnu.org>
11391
11392 * process.c (procfs_system_process_attributes): If `nread' has a
11393 negative value, assign zero to it.
11394
a5d2a52b
CY
113952008-12-05 Chong Yidong <cyd@stupidchicken.com>
11396
68c5540b 11397 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11398
7bf1bb21
KH
113992008-12-05 Kenichi Handa <handa@m17n.org>
11400
11401 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11402 second character is a combining character.
11403
2fdc7d00
EZ
114042008-12-05 Eli Zaretskii <eliz@gnu.org>
11405
11406 * process.c (procfs_system_process_attributes): Don't use cmd,
11407 cmdsize, and q without initializing them first.
11408
bf6bfba8
JR
114092008-12-04 Jason Rumney <jasonr@gnu.org>
11410
11411 * w32font.c (w32font_draw): Initialize orig_clip before getting
11412 it, and delete it when finished.
11413
a3b1a468
DN
114142008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11415
11416 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11417 case when running as a daemon before detaching.
11418
8b8be8eb
JB
114192008-12-03 Juanma Barranquero <lekktu@gmail.com>
11420
805f2638 11421 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11422
b1bde622
KH
114232008-12-03 Kenichi Handa <handa@m17n.org>
11424
e500c47d
KH
11425 * font.c (font_at): Set `multibyte' at first.
11426
ca516334
KH
11427 * coding.c (decode_coding_charset): Check type of an element of
11428 vector VALIDS.
7bf1bb21 11429 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11430
4ccfa1c0 11431 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11432 (font_for_char): Likewise.
11433
1e5ecd37
CY
114342008-12-03 Chong Yidong <cyd@stupidchicken.com>
11435
d5b01609 11436 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11437 (font_update_lface): Handle fonts with corrupted size specs,
11438 i.e. non-int and non-float.
d5b01609 11439
11e3a6e4 11440 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11441 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11442 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11443
ab06788b
CY
11444 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11445
1e5ecd37 11446 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11447 underline_minimum_offset for underline position.
1e5ecd37 11448
63c125ab
DN
114492008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11450
11451 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11452
11453 * character.c (c_string_width): Specify the type for LEN.
11454
3a8406e1
KH
114552008-12-03 Kenichi Handa <handa@m17n.org>
11456
4ccfa1c0 11457 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11458 (decode_coding_utf_8): Likewise.
4ccfa1c0 11459 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11460 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11461
651df7d9
CY
114622008-12-02 Chong Yidong <cyd@stupidchicken.com>
11463
11464 * keyboard.c (make_lispy_position): Only use PT if the selected
11465 window is current.
11466
1f625c6c
AS
114672008-12-02 Andreas Schwab <schwab@suse.de>
11468
f7741ce9
AS
11469 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11470
1f625c6c
AS
11471 * doprnt.c (doprnt1): Fix size of charbuf.
11472
92bc2678
CY
114732008-12-02 Chong Yidong <cyd@stupidchicken.com>
11474
11475 * keyboard.c (timer_check): Revert last change.
11476
93b9e8cc
JB
114772008-12-02 Juanma Barranquero <lekktu@gmail.com>
11478
11479 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11480
fd7a37d5
JB
114812008-12-01 Juanma Barranquero <lekktu@gmail.com>
11482
11483 * makefile.w32-in: Update dependencies.
11484 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11485
c115043b
AS
114862008-12-01 Andreas Schwab <schwab@suse.de>
11487
11488 * font.c (register_font_driver): Use xmalloc.
11489 (font_put_frame_data): Likewise.
11490
f5668d2a
CY
114912008-12-01 Chong Yidong <cyd@stupidchicken.com>
11492
860d96be
CY
11493 * xfaces.c (realize_x_face): Make abort condition clearer.
11494
f5668d2a
CY
11495 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11496
379c17e7
CY
114972008-11-30 Chong Yidong <cyd@stupidchicken.com>
11498
11499 * keyboard.c (timer_check): After a timer runs, ensure that the
11500 selected window's buffer is current.
11501
35f36d65
JB
115022008-11-30 Juanma Barranquero <lekktu@gmail.com>
11503
f952c61c
JB
11504 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11505 It was accidentally restored by the Unicode merge.
11506
35f36d65
JB
11507 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11508
b23077df
JB
115092008-11-29 Juanma Barranquero <lekktu@gmail.com>
11510
11511 * w32proc.c: Include "coding.h".
11512 (Fw32_short_file_name): Encode filename passed to Windows API.
11513 (Fw32_long_file_name): Encode filename passed to Windows API and
11514 decode back the result. (Bug#1433)
11515
b8ebe9dd
KH
115162008-11-29 Kenichi Handa <handa@m17n.org>
11517
8cc53f96
KH
11518 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11519 not before accessing it.
11520
b8ebe9dd
KH
11521 * charset.c (Fdefine_charset_internal): After calculating
11522 min_char, max_char, and fastmap, copy the charset structure again.
11523 (encode_char): Fix the previous change.
11524
59bc82c0
SZ
115252008-11-28 Seiji Zenitani <zenitani@mac.com>
11526
11527 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11528
11529 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11530
11531 * nsterm.m (x_set_frame_alpha): New function.
11532
32247e3d
EZ
115332008-11-27 Eli Zaretskii <eliz@gnu.org>
11534
11535 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11536
b003e5ff
JB
115372008-11-27 Juanma Barranquero <lekktu@gmail.com>
11538
11539 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11540 pointer to check_face_name.
11541
708550f5
KH
115422008-11-27 Kenichi Handa <handa@m17n.org>
11543
11544 * category.h (SET_CATEGORY_SET): Call set_category_set.
11545 (set_category_set): Extern it.
11546
11547 * category.c (hash_get_category_set): New function.
11548 (Fmodify_category_entry): Adjusted for the change of
11549 char_table_ref_and_range. Call hash_get_category_set to get a
11550 category set to store in the table.
11551
11552 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11553 Funify_charset.
11554
2ae37cf0 11555 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11556 (DECODE_CHAR): Check if the decoder vector is ready.
11557 (ENCODE_CHAR): Check if the encoder char-table is ready.
11558 (maybe_unify_char): Extern it.
11559
11560 * charset.c (Vchar_unified_charset_table): Delete it.
11561 (inhibit_load_charset_map): New variable.
11562 (temp_charset_work): New variable.
11563 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11564 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11565 New macros.
11566 (load_charset_map): Meaning of control_flag changed. If
11567 inhibit_load_charset_map is nonzero, setup a table in
11568 temp_charset_work.
11569 (load_charset): New argument control_flag.
11570 (map_charset_for_dump): New function.
11571 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11572 map_charset_for_dump.
11573 (Fdefine_charset_internal): If the charset method is MAP, load
11574 mapping tables by calling load_charset.
11575 (Funify_charset): Don't load a mapping table but directly set
11576 Vchar_unify_table.
11577 (maybe_unify_char): New function.
11578 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11579 Handle the case of inhibit_load_charset_map being nonzero.
11580 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11581 Handle the case of inhibit_load_charset_map being nonzero.
11582 (Fclear_charset_maps): Just free temp_charset_work.
11583 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11584 variable.
11585
11586 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11587 change of char_table_ref_and_range.
11588 (char_table_ref_and_range): Change the meaning of argument FROM
11589 and TO. Now the caller must provide initial values for *FROM
11590 and *TO.
11591
11592 * fontset.c (fontset_add): Adjusted for the change of
11593 char_table_ref_and_range.
11594 (fontset_get_font_group): Likewise.
11595 (Ffontset_info): Likewise.
11596
11597 * keymap.c (describe_vector): Adjusted for the change of
11598 char_table_ref_and_range. For char-table, put boundary between
11599 non-ASCII and 8-bit characters.
11600
11601 * print.c (print_object): For bool-vector, delete unnecessary
11602 check of ASCII_BYTE_P.
11603
9196133b
JR
116042008-11-26 Jason Rumney <jasonr@gnu.org>
11605
11606 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11607 leading in font height. (Bug#879)
9196133b 11608
9f688acf
GM
116092008-11-26 Glenn Morris <rgm@gnu.org>
11610
11611 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11612 redefinition with ifdef. (Bug#1383)
11613
90d19aff
AR
116142008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11615
11616 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11617
4ccfa1c0 116182008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11619
11620 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11621 New EmacsView methods.
11622 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11623 Fixes bug #1048,1357,1414.
11624
116252008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11626
11627 Fix bug #1362.
11628 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11629 is not an indexed color.
11630 * nsterm.m (free_indexed_color): Add argument checking.
11631 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11632
e7d5ecb3
CY
116332008-11-24 Chong Yidong <cyd@stupidchicken.com>
11634
11635 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11636 Document confirm-after-completion value for
11637 minibuffer-completion-confirm.
11638
c285743c
JR
116392008-11-24 Jason Rumney <jasonr@gnu.org>
11640
11641 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11642 warning.
11643
b0857706
JR
116442008-11-23 Jason Rumney <jasonr@gnu.org>
11645
11646 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11647 restored before returning.
11648
11649 * w32font.c (check_face_name): New function.
11650 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11651 fonts. (Bug#642)
b0857706 11652
ee50ff07
MR
116532008-11-22 Martin Rudalics <rudalics@gmx.at>
11654
11655 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11656 confirm-nonexistent-file-or-buffer in doc-string.
11657
b8ff72fa
SM
116582008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11659
11660 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11661 Fix copy/paste typo. Add checks.
11662
cee53ed4
KH
116632008-11-21 Kenichi Handa <handa@m17n.org>
11664
11665 * coding.c (detect_coding_iso_2022): Reject invalid composition
11666 sequence.
11667 (DECODE_COMPOSITION_START): If the current source is the last
11668 block, and the current composition doesn't end, regard this
11669 sequence as invalid.
11670 (decode_coding_iso_2022): Handle invalid composition sequence.
11671
f6ef1e65
MR
116722008-11-20 Martin Rudalics <rudalics@gmx.at>
11673
11674 * window.c (coordinates_in_window): Don't return
11675 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11676 line when the window is not the rightmost one. (Bug#1372)
11677
e08b1705
MR
116782008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11679
11680 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11681
ad98e89f
EZ
116822008-11-15 Eli Zaretskii <eliz@gnu.org>
11683
11684 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11685 and bright_bg if noninteractive is non-zero.
11686
fb098a4b
CY
116872008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11688
11689 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11690 x_draw_glyph_string_background.
11691
11692 * w32term.c (x_draw_glyph_string): Likewise.
11693
ce952b6e
CY
116942008-11-15 Chong Yidong <cyd@stupidchicken.com>
11695
11696 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11697 the next glyph string once past the overhang width.
11698
11699 * nsterm.m (ns_draw_glyph_string): Likewise.
11700
11701 * w32term.c (x_draw_glyph_string): Likewise.
11702
26ea7079
CY
117032008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11704
11705 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11706 double file close.
11707
1c33c906
MR
117082008-11-14 Martin Rudalics <rudalics@gmx.at>
11709
11710 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11711 dedicated status of window before attempting to display another
11712 buffer in it.
11713
8fc29035
JB
117142008-11-14 Juanma Barranquero <lekktu@gmail.com>
11715
11716 * msdos.c (Fmsdos_long_file_names):
11717 (syms_of_msdos) <dos-unsupported-char-glyph>:
11718 * dosfns.c (Fint86): Fix typos in docstrings.
11719
55fb4286
EZ
117202008-11-14 Eli Zaretskii <eliz@gnu.org>
11721
11722 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11723
3fda0315
KY
117242008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11725
11726 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11727
7e849c17
CY
117282008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11729
11730 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11731
11732 * frame.h: Negative alpha means "don't touch".
11733
11734 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11735
11736 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11737
b9fd67bd
DN
117382008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11739
11740 * hftctl.c:
11741 * chpdef.h:
11742 * acldef.h: Remove files used only for systems no longer supported.
11743
11744 * Makefile.in: Fix .o alphabetical ordering.
11745 (hftctl.o): Remove dependency, file removed.
11746 (keymap.o, print.o): Depend on charset.h.
11747
d5998e03
KH
117482008-11-10 Kenichi Handa <handa@m17n.org>
11749
2ae37cf0 11750 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11751
be70e183
CY
117522008-11-08 Chong Yidong <cyd@stupidchicken.com>
11753
11754 * dired.c (file_name_completion): If completion_ignore_case is
11755 enabled, ignore case when checking completion-regexp-list.
11756
7cf94eac
EZ
117572008-11-08 Eli Zaretskii <eliz@gnu.org>
11758
11759 * vm-limit.c (get_lim_data): Fix last change.
11760
ee107a89
KH
117612008-11-08 Kenichi Handa <handa@m17n.org>
11762
11763 * character.c (Fget_byte): New function.
11764 (syms_of_character): Defsubr Fget_byte.
11765
5fd15622
CY
117662008-11-07 Chong Yidong <cyd@stupidchicken.com>
11767
11768 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11769 cursor position is valid after scrolling.
11770
13d62fad
JB
117712008-11-06 Juanma Barranquero <lekktu@gmail.com>
11772
11773 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11774
a1dd2936
GM
117752008-11-06 Glenn Morris <rgm@gnu.org>
11776
11777 * xterm.c (handle_one_xevent): Don't let popup menus cause
11778 mouse-autoselect-window related window switching. (Bug#1261)
11779
860cd236
CY
117802008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11781
11782 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11783
653a3150
AS
117842008-11-04 Andreas Schwab <schwab@suse.de>
11785
11786 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11787
870f5cac
CY
117882008-11-03 Chong Yidong <cyd@stupidchicken.com>
11789
11790 * xfns.c (Fx_wm_set_size_hint): New function.
11791
1e02f3cb
MR
117922008-11-03 Martin Rudalics <rudalics@gmx.at>
11793
11794 * textprop.c (Fprevious_single_char_property_change): Return 0
11795 when there's no change in a string. (Bug#1301)
11796
e630dfc6
MR
117972008-11-02 Martin Rudalics <rudalics@gmx.at>
11798
11799 * frame.c (do_switch_frame): New argument NORECORD passed to
11800 Fselect_window.
11801 (Fselect_frame): New argument NORECORD passed to
11802 do_switch_frame.
11803 (Fset_frame_selected_window): New argument NORECORD passed to
11804 Fselect_frame.
11805 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11806 in call of do_switch_frame.
11807 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11808 Handle NORECORD argument in call of Fselect_frame.
11809 * lisp.h (do_switch_frame, Fselect_frame)
11810 (Fset_frame_selected_window): Adjust declarations.
11811 * window.c (select_frame_norecord): New function.
11812 (run_window_configuration_change_hook): Use it and call
11813 Fselect_frame with NORECORD set.
11814 (Fselect_window): Pass NORECORD to Fselect_frame.
11815 (Fset_window_configuration): Handle NORECORD argument in call of
11816 do_switch_frame.
11817 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11818 Fset_frame_selected_window.
11819 * keyboard.c (command_loop_1): Handle NORECORD in call of
11820 Fselect_frame (currently ifdefd).
11821
9020b223
GM
118222008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11823
11824 * emacs.c (USAGE2): Untabify.
11825
793ffee8
SM
118262008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11827
11828 * composite.c (fill_gstring_header): Fix copy/paste typo.
11829
ab6d1131
MR
118302008-10-31 Martin Rudalics <rudalics@gmx.at>
11831
11832 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11833 (Fother_window): Rename argument and rewrite doc-string.
11834 (select_window_norecord): Fix return value. (Bug#1276)
11835
601a9cf1
JB
118362008-10-30 Juanma Barranquero <lekktu@gmail.com>
11837
11838 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11839 new frames overriding foreground for tooltips. Based on similar patch
11840 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11841
813b0652
CY
118422008-10-29 Chong Yidong <cyd@stupidchicken.com>
11843
11844 * emacs.c (Fdaemon_initialized): Initialize nfd.
11845
4414f58f
MR
118462008-10-29 Martin Rudalics <rudalics@gmx.at>
11847
11848 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11849 (Fwindow_text_height): Clarify doc-strings.
11850 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11851 doc-string of window-scroll-functions.
11852
ecdcaa09
RS
118532008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11854
11855 * category.c (syms_of_category): Fix typo in docstring.
11856
23fe745a
JB
118572008-10-28 Juanma Barranquero <lekktu@gmail.com>
11858
11859 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11860 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11861 Fix typos in docstrings.
11862
ff808935
DN
118632008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11864
11865 * emacs.c (daemon_pipe): Make non-static.
11866 (IS_DAEMON): Move definition ...
11867 * lisp.h (IS_DAEMON): ... here.
11868 (daemon_pipe): Declare.
11869 (is_daemon): Remove.
11870 * dispnew.c (init_display): Use IS_DAEMON.
11871
fc012771
SM
118722008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11873
11874 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11875 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11876
11877 * emacs.c (is_daemon): Remove.
11878 (main): Don't set is_daemon.
11879 (IS_DAEMON): New macro.
11880 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11881 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11882 parent exits.
11883 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11884
d8bdbe6f
CY
118852008-10-27 Chong Yidong <cyd@stupidchicken.com>
11886
d1a072bf
CY
11887 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11888 over-sized glyph, draw it with the default glyph width.
11889
e2e325aa
CY
11890 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11891 glyph, draw it with the default glyph width.
11892
11893 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11894 glyph, draw it with the default glyph width.
11895
d8bdbe6f
CY
11896 * xdisp.c (try_scrolling): When computing the distance from the
11897 scroll margin to PT, try moving some distance past the window
11898 bottom before giving up.
11899
7bfac547
MR
119002008-10-27 Martin Rudalics <rudalics@gmx.at>
11901
11902 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11903 (Fset_window_buffer): Explain in doc-string that a window can be
11904 "strongly" dedicated to its buffer.
11905
4ff029f6
DN
119062008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11907
11908 * emacs.c (daemon_name): New variable.
11909 (main): Deal with --daemon=SERVER_NAME.
11910 (Fdaemonp): Return a name if one was passed to --daemon.
11911
5790ef40
DN
119122008-10-26 Romain Francoise <romain@orebokech.com>
11913
f9bd0df9 11914 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11915 (main): Create a pipe before forking, make the parent exit only after
11916 the child has closed its end of the pipe. Move closing the
11917 descriptors ...
11918 (Fdaemon_initialized): ... here. New function.
11919
f5385255
SM
119202008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11921
4d632321
SM
11922 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11923 the previous unoptimized table.
11924
f5385255
SM
11925 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11926 the distinction between non-nil and non-t value of `dedicated'.
11927
6c56a0f3
CY
119282008-10-25 Chong Yidong <cyd@stupidchicken.com>
11929
11930 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11931 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11932
fec89261
MR
119332008-10-25 Martin Rudalics <rudalics@gmx.at>
11934
11935 * window.c (Fget_buffer_window, Fdelete_windows_on)
11936 (Freplace_buffer_in_windows): Make buffer argument optional and
11937 rename to buffer_or_name.
11938
34fcddd0
CY
119392008-10-24 Chong Yidong <cyd@stupidchicken.com>
11940
f5385255
SM
11941 * xdisp.c (handle_single_display_spec, handle_display_prop):
11942 Undo 2005-05-16 change.
34fcddd0
CY
11943 (handle_stop): Pop iterator if it's loaded with an empty string.
11944 (get_overlay_strings_1): Don't save iterator if it's loaded with
11945 an empty string (bug#1201).
11946
064766f2
KH
119472008-10-24 Kenichi Handa <handa@m17n.org>
11948
11949 * ftfont.c (ftfont_otf_features): Fix previous change.
11950 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11951 calling ftfont_otf_features.
11952
f9bd0df9 119532008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11954
11955 * font.c (font_match_p): Fix for the case that a vector of
11956 characters is in script-representative-chars.
11957
1dae9197
MA
119582008-10-24 Michael Albinus <michael.albinus@gmx.de>
11959
11960 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11961 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11962 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11963 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11964 macro. (Bug#1186)
1dae9197 11965
f9bd0df9 119662008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11967
11968 * s/sol2-10.h: New file.
11969
878a4584
JB
119702008-10-23 Juanma Barranquero <lekktu@gmail.com>
11971
11972 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11973 poor beast has survived 9+ years and the jump from xterm.c!).
11974
cd265ca6
MR
119752008-10-23 Martin Rudalics <rudalics@gmx.at>
11976
11977 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11978 Reword doc-string.
f5385255 11979 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11980
472a4dc9
JB
119812008-10-23 Juanma Barranquero <lekktu@gmail.com>
11982
11983 * character.c (syms_of_character) <script-representative-chars>:
11984 <unicode-category-table>: Doc fixes.
11985
159bd5a2
NF
119862008-10-23 Noah Friedman <friedman@splode.com>
11987
11988 * coding.c (make_conversion_work_buffer): Check that
11989 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11990 Fget_buffer_create.
11991
49f9c344
KH
119922008-10-23 Kenichi Handa <handa@m17n.org>
11993
11994 * font.c (font_add_log): Check the values of extra properties.
11995
12bb3111
MR
119962008-10-22 Martin Rudalics <rudalics@gmx.at>
11997
11998 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11999 Reword doc-string.
12000 (Fset_window_parameter): Use NILP.
12001 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12002 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12003
bbeb4e99
JB
120042008-10-22 Juanma Barranquero <lekktu@gmail.com>
12005
12006 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12007
120082008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12009
12010 * nsfns.m (ns_appkit_version): New function.
12011 (x-server-version): Use it.
12012 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12013 (x-server-vendor): Don't check_ns().
12014
12015 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12016
a9b555d3
JB
120172008-10-22 Juanma Barranquero <lekktu@gmail.com>
12018
12019 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12020 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12021
4626499f
KH
120222008-10-22 Kenichi Handa <handa@m17n.org>
12023
e3681952
KH
12024 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12025 scripts.
12026
4626499f
KH
12027 * category.c (word_boundary_p): Check scripts instead of charset.
12028 Handle nil value in word-separating-categories and
12029 word-combining-categories.
12030 (syms_of_category): Fix docstrings of word-separating-categories
12031 and word-combining-categories.
12032
1560f91a
EZ
120332008-10-21 Eli Zaretskii <eliz@gnu.org>
12034
12035 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12036 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12037
f4668441
MR
120382008-10-21 Martin Rudalics <rudalics@gmx.at>
12039
12040 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12041 Rename arg "buffer" to "buffer_or_name".
12042 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12043 it optional.
12044 (no_switch_window): Remove since the return value is not used.
a9b555d3 12045 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12046 Consider window as dedicated when Fwindow_dedicated_p returns a
12047 non-nil value.
12048 * lisp.h: Remove prototype for no_switch_window.
12049
fd75ddb2
JD
120502008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12051
12052 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12053 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12054
07295713
KH
120552008-10-21 Kenichi Handa <handa@m17n.org>
12056
12057 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12058 check Vlatin_extra_code_table.
12059
712adc82
EZ
120602008-10-20 Eli Zaretskii <eliz@gnu.org>
12061
12062 * fileio.c (Fset_file_modes): Doc fix.
12063
f549eb0b
MA
120642008-10-19 Michael Albinus <michael.albinus@gmx.de>
12065
12066 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12067 in arrays.
12068
aac0c6e3
MR
120692008-10-19 Martin Rudalics <rudalics@gmx.at>
12070
12071 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12072 Mention kill-buffer in doc-string.
12073 (Fset_window_buffer): Reinsert tem check removed in last commit.
12074 (Fenlarge_window, Fshrink_window): Have argument names and
12075 doc-string follow Elisp manual more closely.
12076
120772008-10-18 Eli Zaretskii <eliz@gnu.org>
12078
12079 * fileio.c (Fset_file_modes): Doc fix.
12080
120812008-10-18 Martin Rudalics <rudalics@gmx.at>
12082
12083 * window.c (Fwindow_width, Fset_window_start)
12084 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12085 (Fdelete_windows_on, Freplace_buffer_in_windows):
12086 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12087 (Fwindow_dedicated_p): Make window argument optional.
12088 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12089 (Fset_window_buffer): Respect any non-nil dedicated value for
12090 window. Rename "buffer" argument to "buffer_or_name".
12091
120922008-10-18 Ulrich Mueller <ulm@gentoo.org>
12093
12094 * m/sh3.h: New file, machine description for SuperH.
12095
120962008-10-17 Martin Rudalics <rudalics@gmx.at>
12097
12098 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12099
121002008-10-17 Kenichi Handa <handa@m17n.org>
12101
12102 * ftfont.c (ftfont_otf_features): Fix indexing
12103 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12104
121052008-10-16 Magnus Henoch <mange@freemail.hu>
12106
12107 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12108 (Fdbus_call_method_asynchronously): Ditto.
12109 This change makes C-h f display the argument list.
12110
121112008-10-16 Chong Yidong <cyd@stupidchicken.com>
12112
12113 * fileio.c (Fexpand_file_name): Doc fix.
12114
12115 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12116 of :foreground and :background equivalent to unspecified (20.x
12117 compatibility).
12118
121192008-10-15 Eli Zaretskii <eliz@gnu.org>
12120
12121 * buffer.c (syms_of_buffer): Doc fix.
12122
121232008-10-14 Kenichi Handa <handa@m17n.org>
12124
12125 * font.c (font_clear_prop): When clearing font width, clear the
12126 average width field too.
12127
121282008-10-12 Andreas Schwab <schwab@suse.de>
12129
12130 * ftfont.c (ftfont_shape_by_flt): Make static.
12131 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12132
12133 * font.c: Don't include <m17n-flt.h>.
12134
121352008-10-10 Eli Zaretskii <eliz@gnu.org>
12136
12137 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12138
121392008-10-09 Eli Zaretskii <eliz@gnu.org>
12140
12141 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12142 away code.
12143
121442008-10-09 Chong Yidong <cyd@stupidchicken.com>
12145
12146 * dispnew.c (update_text_area): Avoid looping due to large glyph
12147 overhangs (bug#1070).
12148
121492008-10-09 Kenichi Handa <handa@m17n.org>
12150
12151 * fontset.c (face_for_char): If face->fontset is negative, just
12152 return ascii_face.
12153
f5385255
SM
12154 * font.c (font_delete_unmatched): Fix previous change.
12155 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12156
121572008-10-09 Martin Rudalics <rudalics@gmx.at>
12158
12159 * frame.c (Fraise_frame): On text-only terminals select frame in
12160 order to make it visible. (Bug#1061)
12161
121622008-10-08 Chong Yidong <cyd@stupidchicken.com>
12163
12164 * fontset.c (fontset_find_font): Check frame validity.
12165
121662008-10-07 Chong Yidong <cyd@stupidchicken.com>
12167
a9b555d3 12168 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12169 (xg_display_close): Allow Emacs to close all displays (bug#985).
12170
121712008-10-06 Andreas Schwab <schwab@suse.de>
12172
f5385255 12173 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12174
121752008-10-06 Chong Yidong <cyd@stupidchicken.com>
12176
f5385255 12177 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12178
a9b555d3 12179 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12180
12181 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12182 during initialization.
12183
121842008-10-04 Eli Zaretskii <eliz@gnu.org>
12185
12186 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12187 whole thing on MSDOS frames as well as on a TTY.
12188
12189 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12190 well as for TTY.
12191 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12192 well as on a TTY.
12193
12194 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12195 as well as for TTY.
12196
12197 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12198
12199 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12200 MSDOS frames as well.
12201
122022008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12203
12204 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12205 correct arguments.
b71ac3dd 12206 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12207
122082008-10-03 Glenn Morris <rgm@gnu.org>
12209
12210 * emacs.c (USAGE1): Add --daemon.
12211
122122008-10-02 Eli Zaretskii <eliz@gnu.org>
12213
12214 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12215 100, so it's in percents as advertised.
12216
122172008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12218
12219 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12220 (ns_output.current_cursor, ns_output.desired_cursor)
12221 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12222 (FRAME_NEW_CURSOR_COLOR): Remove.
12223
12224 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12225 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12226 enumeration (HOLLOW_BOX_CURSOR, etc.).
12227
12228 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12229 (draw_window_cursor): Simplify code.
f5385255
SM
12230 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12231 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12232 updates manually.
a9b555d3
JB
12233 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12234 Use core Emacs cursor types.
aac0c6e3 12235
b8ff72fa 12236 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12237
122382008-10-02 Martin Rudalics <rudalics@gmx.at>
12239
12240 * process.c (Faccept_process_output): Fix doc-string.
12241
122422008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12243
12244 * gmalloc.c (__sbrk): Also define for uClibc.
12245
12246 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12247 for uClibc.
12248
122492008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12250
12251 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12252 styles.
12253 (nsfont_open): Reenable the cache.
12254
122552008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12256
12257 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12258 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12259
122602008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12261
12262 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12263 a suspended terminal.
12264
122652008-09-30 Michael Albinus <michael.albinus@gmx.de>
12266
12267 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12268
122692008-09-30 Eli Zaretskii <eliz@gnu.org>
12270
12271 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12272
122732008-09-30 Chong Yidong <cyd@stupidchicken.com>
12274
12275 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12276 in a continued line coincides with a line beginning.
12277
122782008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12279
12280 * nsfont.m (nsfont_trait_distance): Fix bug.
12281 (nsfont_list): Return a list rather than a vector (syncs with Handa
12282 changes of 2008-05-14).
12283 (nsfont_open): Improve logging.
12284
122852008-09-29 Andreas Schwab <schwab@suse.de>
12286
12287 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12288
122892008-09-28 Martin Rudalics <rudalics@gmx.at>
12290
12291 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12292 name as char-resolve-modifiers.
12293 Reported by: Markus Triska <markus.triska@gmx.at>
12294
122952008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12296
12297 * dispnew.c (init_display): Return earlier when running as a daemon.
12298
122992008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12300
12301 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12302
123032008-09-27 Eli Zaretskii <eliz@gnu.org>
12304
12305 * composite.c (Fcomposition_get_gstring)
12306 (Fcompose_region_internal, Fcompose_string_internal)
12307 (Ffind_composition_internal): Doc fix.
12308 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12309 (syms_of_composite) <auto-composition-function>: Doc fix.
12310 (syms_of_composite) <composition-function-table>: Doc fix.
12311
123122008-09-25 Chong Yidong <cyd@stupidchicken.com>
12313
12314 * search.c (wordify): New argument for lax word-ends.
12315 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12316
123172008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12318
12319 * lisp.h (is_daemon): Declare.
12320 * dispnew.c (init_display): Do not try to initialize the terminal
12321 when running as a daemon.
12322
123232008-09-22 Chong Yidong <cyd@stupidchicken.com>
12324
12325 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12326 x_display_pixel_height.
12327
123282008-09-22 Martin Rudalics <rudalics@gmx.at>
12329
12330 * undo.c (record_point): Don't call Fundo_boundary for first
12331 change. (Bug#731)
12332
123332008-09-22 Juanma Barranquero <lekktu@gmail.com>
12334
12335 * emacs.c (Fdaemonp): Doc fix.
12336
123372008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12338
12339 * emacs.c (main): Place #ifdef in the proper place.
12340
123412008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12342
12343 * emacs.c (standard_args): Add --daemon.
12344 (main): Disconnect from the terminal when --daemon is passed.
12345 (is_daemon): New variable.
12346 (Fdaemonp): New function.
12347 (syms_of_emacs): Defsubr it.
12348
123492008-09-20 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * xdisp.c (get_next_display_element): Handle string display
12352 correctly when checking for the end of a box run.
12353
123542008-09-20 Glenn Morris <rgm@gnu.org>
12355
12356 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12357 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12358 (Frename_file): Avoid copying to trash if a rename involves
12359 a delete. (Bug#964).
12360
123612008-09-20 Eli Zaretskii <eliz@gnu.org>
12362
12363 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12364 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12365 frames as well as termcap frames.
12366 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12367 get_named_tty.
12368
123692008-09-19 Eli Zaretskii <eliz@gnu.org>
12370
12371 * process.c (procfs_system_process_attributes): Fix cmdline in
12372 case /proc/PID/cmdline is empty.
12373
12374 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12375 x_display_pixel_height.
12376
123772008-09-19 Juanma Barranquero <lekktu@gmail.com>
12378
12379 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12380
12381 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12382 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12383
123842008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12385
12386 * dispextern.h (struct it): Move line_wrap away from the middle of
12387 bitfields. Move voffset in struct iterator_stack_entry after the
12388 bitfields. Move tab_width near after another short.
12389
123902008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12391
12392 * frame.h (struct frame): Move alpha from the middle of bitfields.
12393
12394 * window.h (struct window): Move frozen_window_start_p after the
12395 rest of the bitfields to reduce padding.
12396
123972008-09-18 Chong Yidong <cyd@stupidchicken.com>
12398
12399 * xterm.h (x_display_info): Remove `height' and `width' members.
12400
12401 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12402
12403 * w32term.h (w32_display_info): Remove `height', `width',
12404 `height_in', and `width_in' members.
12405
b8ff72fa
SM
12406 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12407 New functions.
aac0c6e3
MR
12408 (x_calc_absolute_position): Use them.
12409 (x_term_init): Omit removed `height' and `width' members.
12410
b8ff72fa
SM
12411 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12412 New functions.
aac0c6e3
MR
12413 (w32_read_socket, x_calc_absolute_position): Use them.
12414 (w32_initialize_display_info, w32_term_init): Omit removed members
12415 of w32_display_info.
12416
b8ff72fa
SM
12417 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12418 New functions.
12419 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12420
b8ff72fa
SM
12421 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12422 New functions.
aac0c6e3
MR
12423 (x_calc_absolute_position): Use them.
12424 (x_term_init): Omit removed `height' and `width' members.
12425
12426 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12427 (compute_tip_xy):
12428 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12429 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12430 x_display_pixel_width.
12431
124322008-09-18 Kenichi Handa <handa@m17n.org>
12433
12434 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12435 (composition_compute_stop_pos): Fix handling of static composition.
12436 (Fcomposition_get_gstring): Check FROM and TO at first.
12437
124382008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12439
46e722a9 12440 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12441 mixup (YAILOM).
12442
124432008-09-17 Chong Yidong <cyd@stupidchicken.com>
12444
12445 * indent.c (Fvertical_motion): Use position reported by iterator
12446 instead of PT for determining screen motion (bug#943).
12447
124482008-09-17 Romain Francoise <romain@orebokech.com>
12449
12450 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12451
124522008-09-17 Kenichi Handa <handa@m17n.org>
12453
12454 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12455
12456 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12457 if necessary.
12458
124592008-09-16 Kenichi Handa <handa@m17n.org>
12460
12461 * coding.c (make_conversion_work_buffer): Avoid calling
12462 Fget_buffer_create if it is not necessary.
12463
124642008-09-15 Martin Rudalics <rudalics@gmx.at>
12465
12466 * window.c (Fselect_window): Don't update window_select_count and
12467 use_time when norecord is not nil.
12468
124692008-09-14 Kenichi Handa <handa@m17n.org>
12470
12471 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12472 specpdl_ptr.
12473
124742008-09-12 Kenichi Handa <handa@m17n.org>
12475
12476 * indent.c (scan_for_column): Don't handle automatic composition
12477 if the current buffer is not associated with a window.
12478
12479 * composite.c (composition_reseat_it): If the current buffer is
12480 not associated with a window, ignore the automatic composition.
12481 (find_automatic_composition): Likewise.
12482
124832008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12484
12485 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12486 (Fgpm_mouse_stop): Use it.
12487 * termhooks.h (close_gpm): Declare.
12488 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12489 connection if Gpm_GetEvent fails.
12490
12491 * window.c (set_window_buffer): Always preserve current-buffer.
12492
124932008-09-12 Glenn Morris <rgm@gnu.org>
12494
12495 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12496
124972008-09-11 Glenn Morris <rgm@gnu.org>
12498
12499 * charset.c (charset-map-path): Doc fix.
12500
125012008-09-10 Kenichi Handa <handa@m17n.org>
12502
12503 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12504
12505 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12506 compose a grapheme cluster with the preceding base glyph.
12507
12508 * composite.c (composition_compute_stop_pos): Fix previous change.
12509 Reset cmp_it->id to -1 at first.
12510
125112008-09-10 Glenn Morris <rgm@gnu.org>
12512
12513 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12514
125152008-09-09 Chong Yidong <cyd@stupidchicken.com>
12516
12517 * keyboard.c (read_key_sequence): Reapply translation maps when
12518 switching keyboards.
12519
125202008-09-09 Kenichi Handa <handa@m17n.org>
12521
12522 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12523 characters.
12524
12525 * composite.c (FORWARD_CHAR): Fix calculation
12526 of (POSITION).pos_byte.
12527 (composition_compute_stop_pos): Limit the search of composition to
12528 at most 500 characters ahead. If we reach the limit or find a
12529 newline, set cmp_it->ch to -2 and return 0.
12530 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12531
125322008-09-08 Kenichi Handa <handa@m17n.org>
12533
12534 * indent.c (Fvertical_motion): Be sure to set
12535 it_overshoot_expected if it.cmp_it.id is non-negative.
12536
125372008-09-07 Andreas Schwab <schwab@suse.de>
12538
12539 * callproc.c (Fcall_process): Don't hold references to string data
12540 across garbage collection. Move initialisation of new_argv down
12541 to avoid compiler bug.
12542
125432008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12544
12545 * process.c (Fsystem_process_attributes): Doc fix.
12546
125472008-09-07 Chong Yidong <cyd@stupidchicken.com>
12548
12549 * callproc.c (Fcall_process): Canonicalize current directory name.
12550
12551 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12552 iterator advances to the next line if the current line ends in a
12553 continued tab.
12554
125552008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12556
12557 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12558 member to point to cmp_from.
12559
12560 * xdisp.c: Doc fix for references to gidx data member.
12561
125622008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12563
12564 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12565
125662008-09-07 Kenichi Handa <handa@m17n.org>
12567
12568 * composite.c (FORWARD_CHAR): Check STOP after
12569 incrementing (POSITION).pos.
12570
125712008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12572
12573 * process.c (Fsystem_process_attributes): Doc fix.
12574
125752008-09-06 Chong Yidong <cyd@stupidchicken.com>
12576
12577 * keyboard.c (Ftop_level): Doc fix.
12578
125792008-09-06 Eli Zaretskii <eliz@gnu.org>
12580
12581 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12582 minibuffer, don't let lower part of menu invade the echo area.
12583
12584 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12585 "char *q" to access menu text and advance through it. Revert the
12586 change that displayed ">" instead of ASCII character 0x10.
12587
125882008-09-05 Eli Zaretskii <eliz@gnu.org>
12589
12590 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12591 toggle boxes and radio buttons on MS-DOS as well.
12592
125932008-09-05 Kenichi Handa <handa@m17n.org>
12594
12595 * composite.c (autocmp_chars): Check lookback count.
12596 (composition_compute_stop_pos): Set cmp_it->lookback.
12597 (composition_reseat_it): Check lookback count.
12598 (struct position_record): New struct.
12599 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12600 (find_automatic_composition): New function.
12601 (composition_adjust_point): Use find_automatic_composition.
12602
12603 * dispextern.h (struct composition_it): New member lookback.
12604
126052008-09-02 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12608 if moving by a single line.
12609
126102008-09-02 Andreas Schwab <schwab@suse.de>
12611
12612 * xterm.c (x_delete_display): Fix merge error.
12613
12614 * fileio.c (Fexpand_file_name): Remove unused variables.
12615
126162008-09-02 Eli Zaretskii <eliz@gnu.org>
12617
12618 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12619 storage on all platforms, not just on DOS_NT.
12620
126212008-09-02 Jason Rumney <jasonr@gnu.org>
12622
b8ff72fa
SM
12623 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12624 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12625
126262008-09-01 Chong Yidong <cyd@stupidchicken.com>
12627
12628 * xfaces.c (Finternal_set_alternative_font_family_alist)
12629 (Finternal_set_alternative_font_registry_alist): Properly copy
12630 entire alist structure.
12631
126322008-09-01 Kenichi Handa <handa@m17n.org>
12633
d66c0241 12634 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12635 representative chars of the script is a vector.
d66c0241
JB
12636 (ftfont_list): Handle the case where the representative chars of
12637 the script is a vector.
aac0c6e3
MR
12638
12639 * character.c (syms_of_character): Docstring of
12640 script-representative-chars fixed.
12641
126422008-08-31 Eli Zaretskii <eliz@gnu.org>
12643
12644 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12645 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12646 the menu. Allocate larger buffer for `text', to account for
12647 possible ^C characters.
12648
126492008-08-31 Martin Rudalics <rudalics@gmx.at>
12650
12651 * xdisp.c (prepare_menu_bars): Don't call
12652 Vwindow_size_change_functions with arg Qt.
12653
126542008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12655
12656 * font.h (font_range):
12657 * fileio.c (report_file_error):
46e722a9
SM
12658 * composite.c (composition_update_it): Yet another int/Lisp_Object
12659 mixup (YAILOM).
aac0c6e3
MR
12660
126612008-08-30 Glenn Morris <rgm@gnu.org>
12662
12663 * data.c (Fmake_variable_frame_local): Doc fix.
12664
12665 * frame.c (Fmodify_frame_parameters): Doc fix.
12666
126672008-08-30 Eli Zaretskii <eliz@gnu.org>
12668
12669 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12670 needed by GetTokenInformation.
12671 (w32_system_process_attributes): Check return values of all system
12672 APIs.
12673
12674 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12675 only when the state changes.
12676 (IT_update_begin, IT_update_end): Add termscript trace.
12677
12678 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12679 clipboard is unavailable. Set dst to NULL if it doesn't point to
12680 malloc'ed data.
12681 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12682 passing random values to xfree.
12683
12684 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12685 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12686
126872008-08-29 Jason Rumney <jasonr@gnu.org>
12688
12689 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12690
126912008-08-29 Eli Zaretskii <eliz@gnu.org>
12692
12693 * composite.c (fill_gstring_body): Avoid compiler warnings.
12694
12695 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12696 LGLYPH_SET_CODE to avoid compiler warnings.
12697
2ae37cf0 12698 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12699
12700 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12701
12702 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12703 LGLYPH_SET_CODE.
12704
127052008-08-29 Kenichi Handa <handa@m17n.org>
12706
12707 * fileio.c (report_file_error): Don't downcase the first character
12708 of errstring if it is still unibyte.
12709
127102008-08-29 Kenichi Handa <handa@m17n.org>
12711
12712 These changes are to re-implement the automatic composition so
12713 that it doesn't use text properties.
12714
12715 * Makefile.in (ftfont.o): Depend on composite.h.
12716 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12717
12718 * character.h (Vunicode_category_table): Extern it.
12719
12720 * character.c (Vunicode_category_table): New variable.
12721 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12722
12723 * chartab.c (optimize_sub_char_table): Perform more greedy
12724 optimization.
12725
b8ff72fa
SM
12726 * composite.h (enum composition_method):
12727 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12728 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12729 (Vcomposition_function_table): Extern it.
12730 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12731 (composition_gstring_put_cache, composition_gstring_from_id)
12732 (composition_gstring_p, composition_gstring_width)
12733 (composition_compute_stop_pos, composition_reseat_it)
12734 (composition_update_it, composition_adjust_point): Extern them.
12735 (Fcomposition_get_gstring): EXFUN it.
12736
d66c0241 12737 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12738 (Vcomposition_function_table)
12739 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12740 (gstring_hash_table, gstring_work, gstring_work_headers):
12741 New variables.
aac0c6e3
MR
12742 (gstring_lookup_cache, composition_gstring_put_cache)
12743 (composition_gstring_from_id, composition_gstring_p)
12744 (composition_gstring_width, fill_gstring_header)
12745 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12746 (composition_reseat_it, composition_update_it)
b8ff72fa 12747 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12748 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12749 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12750 Defsubr composition_get_gstring.
aac0c6e3
MR
12751
12752 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12753 cmp_id.
12754 (struct glyph_string): Delete the member gidx. New members
12755 cmp_id, cmp_from, and cmp_to.
12756 (enum it_method): Delete GET_FROM_COMPOSITION.
12757 (struct composition_it): New struct.
12758 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12759 Delete c, len, cmp_id, cmp_len in u.comp.
12760
12761 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12762 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12763 (enum lglyph_indices): Likewise.
b8ff72fa 12764 (font_range): Adjust extern.
aac0c6e3
MR
12765 (font_fill_lglyph_metrics): Extern it.
12766
12767 * font.c (QCf): New variable.
12768 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12769 (font_prepare_composition): Delete this function.
12770 (font_range): Type and arguments changed.
12771 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12772 (font_fill_lglyph_metrics): New function.
b8ff72fa 12773 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12774 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12775 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12776 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12777
12778 * fontset.h (font_for_char): Extern it.
12779
12780 * fontset.c (font_for_char): New function.
12781
12782 * ftfont.c: Include composite.h.
12783 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12784 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12785
12786 * indent.c: Include composite.h and dispextern.h.
12787 (check_composition): Delete this function.
12788 (scan_for_column): Handle composition by
12789 composition_compute_stop_pos, composition_reseat_it, and
12790 composition_update_it.
12791 (compute_motion): Likewise.
12792 (Fvertical_motion): Fix checking of composition.
12793
12794 * keyboard.c (adjust_point_for_property): Check composition by
12795 composition_adjust_point.
12796
b8ff72fa 12797 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12798 struct glyph_string.
12799
b8ff72fa
SM
12800 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12801 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12802 struct glyph.
12803 (produce_composite_glyph): Likewise.
12804
b8ff72fa
SM
12805 * w32term.c (x_draw_composite_glyph_string_foreground):
12806 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12807 (x_draw_glyph_string): Likewise.
12808
12809 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12810 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12811
12812 * xdisp.c: Include font.h.
12813 (it_props): Delete the entry for Qauto_composed.
12814 (init_iterator): Initialize it->cmp_it.id to -1.
12815 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12816 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12817 (handle_auto_composed_prop): Delete it.
12818 (handle_composition_prop): Handle only static composition.
12819 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12820 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12821 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12822 (pop_it): Likewise.
12823 (get_next_element): Delete next_element_from_composition.
12824 (CHAR_COMPOSED_P): New macro.
12825 (get_next_display_element): For automatic composition, get a face
12826 from the font in the glyph-string.
12827 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12828 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12829 (next_element_from_string): Check if the character at the current
12830 position is composed by CHAR_COMPOSED_P.
12831 (next_element_from_buffer): Likewise.
d66c0241
JB
12832 (next_element_from_composition): Adjust for the change of struct it.
12833 Update it->cmp_it.
b8ff72fa
SM
12834 (dump_glyph): Adjust for the change of struct glyph.
12835 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12836 it and struct glyph. Don't handle automatic composition here.
12837 (fill_gstring_glyph_string): New function.
12838 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12839 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12840 (BUILD_GSTRING_GLYPH_STRING): New macro.
12841 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12842 automatic composition.
b8ff72fa 12843 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12844 struct glyph.
b8ff72fa 12845 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12846
b8ff72fa 12847 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12848 the change of struct glyph_string.
12849 (x_draw_glyph_string): Likewise.
12850
128512008-08-29 Glenn Morris <rgm@gnu.org>
12852
12853 * buffer.c (word-wrap): Doc fix.
12854 * xdisp.c (truncate-partial-width-windows): Doc fix.
12855 Increase default to 50.
12856
128572008-08-29 Chong Yidong <cyd@stupidchicken.com>
12858
12859 * xdisp.c (update_tool_bar_unwind): New function.
12860 (update_tool_bar): Temporarily set selected frame before building
12861 tool-bar items.
12862
128632008-08-28 Michael Albinus <michael.albinus@gmx.de>
12864
12865 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12866 snprintf, respectively.
12867 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12868
128692008-08-28 Chong Yidong <cyd@stupidchicken.com>
12870
12871 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12872 LDFLAGS to GNUstep CC invocation.
12873
128742008-08-27 Chong Yidong <cyd@stupidchicken.com>
12875
12876 * indent.c (Fvertical_motion): Revert last change. Handle the
12877 general case where we are moving forward, and PT spans multiple
12878 screen lines.
12879
12880 * eval.c (find_handler_clause): Temporarily increase
12881 max-lisp-eval-depth while printing the backtrace buffer, to
12882 guarantee that help-mode code can run.
12883
128842008-08-27 Eli Zaretskii <eliz@gnu.org>
12885
12886 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12887 colors under -rv.
12888 (IT_set_frame_parameters): Don't swap foreground and background
12889 colors if `(reverse . t)' is present in the frame properties.
12890 (internal_terminal_init): Call init_frame_faces only for the
12891 initial frame.
12892
128932008-08-27 Andreas Schwab <schwab@suse.de>
12894
12895 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12896
128972008-08-27 Andreas Schwab <schwab@suse.de>
12898
12899 * search.c (search_buffer): Set char_base to zero only at the end.
12900
129012008-08-27 Kenichi Handa <handa@m17n.org>
12902
b8ff72fa 12903 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12904
129052008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12906
12907 * xterm.c (x_term_init): Temporarily hide the partially
12908 initialized terminal while calling vendor-specific-keysyms.
12909
129102008-08-26 Eli Zaretskii <eliz@gnu.org>
12911
12912 * msdos.c (internal_terminal_init): Most initializations done only
12913 once, especially initial_screen_colors[] and termscript open.
12914
129152008-08-26 Chong Yidong <cyd@stupidchicken.com>
12916
12917 * eval.c (Fcondition_case): Doc fix.
12918
12919 * widgetprv.h (EmacsFramePart): Change font member to the new font
12920 struct.
12921
12922 * widget.c: Include character.h and font.h for XSETFONT.
12923 (setup_frame_gcs): Compute X font id from font struct, just once.
12924
129252008-08-26 Eli Zaretskii <eliz@gnu.org>
12926
12927 * term.c (get_named_tty): Fix last change.
12928
129292008-08-26 Chong Yidong <cyd@stupidchicken.com>
12930
12931 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12932 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12933
129342008-08-25 Eli Zaretskii <eliz@gnu.org>
12935
12936 * frame.c (do_switch_frame): Mark previously displayed frame as
12937 obscured for FRAME_MSDOS_P frames as well.
12938
129392008-08-24 Eli Zaretskii <eliz@gnu.org>
12940
12941 * frame.c (make_terminal_frame): Initialize f->terminal,
12942 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12943 Set the top frame to newly created frame.
12944 (Fmake_terminal_frame): Reuse the_only_display_info.
12945
12946 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12947 estimating available memory.
12948
b97439ce 129492008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12950
12951 * nsterm.m (ns_draw_window_cursor): Don't call
12952 NSDisableScreenUpdates and NSEnableScreenUpdates on
12953 non-NS_IMPL_COCOA systems.
12954
129552008-08-23 Andreas Schwab <schwab@suse.de>
12956
12957 * process.c (procfs_system_process_attributes): Fix use of
12958 uninitialized variables.
12959
129602008-08-23 Eli Zaretskii <eliz@gnu.org>
12961
12962 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12963
12964 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12965 calling tty-set-up-initial-frame-faces.
12966
b8ff72fa
SM
12967 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12968 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12969
12970 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12971 addition to output_termcap.
12972
12973 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12974
12975 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12976 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12977 highlight.
12978
12979 * process.c [!subprocesses]: Define QCname.
12980 (syms_of_process): Intern and staticpro it.
12981
12982 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12983 Adjust for changes in encoding/decoding routines.
12984 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12985 encode_coding and decode_coding.
12986
b8ff72fa 12987 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12988
12989 * dosfns.c: Include frame.h before termhooks.h.
12990 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12991 variable termscript.
12992
12993 * s/msdos.h (USER_FULL_NAME): Define.
12994 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12995
12996 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12997 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12998 pw->pw_gecos.
12999
13000 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13001 SELECTED_FRAME as additional (1st) argument.
13002 (tty_read_avail_input): Handle output_msdos_raw in
13003 addition to output_termcap.
13004
13005 * msdos.c: Include frame.h before termhooks.h.
13006 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13007 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13008 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13009 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13010 (IT_set_terminal_modes, IT_reset_terminal_modes)
13011 (IT_set_frame_parameters): Use tty->termscript instead of a global
13012 variable termscript.
13013 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13014 global variable terminal_coding. Don't refer to
13015 Vnonascii_translation_table.
13016 (internal_terminal_init): Set Vwindow_system in current_kboard.
13017 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13018 Announce date and time of session start, if termscript is open.
13019 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13020 term.c:init_tty). Open termscript only of not already open.
13021 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13022 here instead of dos_ttraw. Don't initialize display if this is an
13023 initial tty. Don't set FRAME_FONT.
13024 (Vwindow_system_version): Bump to 23.
13025 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13026 is available, set up mouse_position_hook.
13027 (dos_ttraw, IT_set_terminal_modes): If called with initial
13028 terminal, do nothing.
13029 (IT_set_frame_parameters): Handle the Qtty_type frame
13030 parameter by calling internal_terminal_init.
13031 (dos_set_window_size, show_mouse_face)
13032 (clear_mouse_face, IT_note_mode_line_highlight)
13033 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13034 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13035 (initialize_msdos_display): New function.
13036 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13037 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13038 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13039 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13040 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13041 (request_sigio, unrequest_sigio): Don't define, now defined on
13042 sysdep.c.
13043 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13044
13045 * term.c [MSDOS]: Include msdos.h.
13046 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13047 conditional to DOS_NT. Allow only one call to this function in a
13048 session. Don't allocate a new struct tty_display_info; instead,
13049 reuse the_only_display_info. Call get_tty_size to get screen
13050 dimensions. Call init_baud_rate to set bad_rate.
13051 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13052 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13053 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13054 (get_tty_terminal, get_named_tty, Ftty_type)
13055 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13056 output_termcap.
b8ff72fa
SM
13057 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13058 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13059 only when subprocesses are supported.
aac0c6e3
MR
13060
13061 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13062 f->output_data.x.
13063 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13064 terminal devices.
13065
5582fbc7 13066 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13067 x_output.
13068 (FRAME_FONT): Use output_data.tty.
13069 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13070 (struct x_display_info): Rename from display_info. Update all users in
13071 msdos.c.
aac0c6e3 13072 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13073 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13074 (dos_ttraw): Update prototype.
13075
13076 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13077 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13078
130792008-08-23 Jason Rumney <jasonr@gnu.org>
13080
13081 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13082 (fn_TIFFSetDirectory): New library function used.
13083 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13084 (tiff_load): Use :index to select among multiple images. Set count
13085 property when multiple images exist.
13086 (gif_format): Use :index, not :image.
13087
130882008-08-23 Chong Yidong <cyd@stupidchicken.com>
13089
13090 * xdisp.c (try_scrolling): Check INT_MAX instead of
13091 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13092 to obtain INT_MAX.
13093
130942008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13095
13096 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13097
130982008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13099
13100 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13101 GNUstep library location.
13102
131032008-08-21 Chong Yidong <cyd@stupidchicken.com>
13104
13105 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13106 before using it.
13107
13108 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13109
131102008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13111
13112 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13113 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13114 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13115 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13116 (EmacsApp-cursor_blink_handler): Remove declaration.
13117 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13118 match 01 Feb 2008 changes in xterm.c.
13119 (ns_read_socket): Add cast to avoid warning.
13120 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13121 GNUstep.
13122
131232008-08-20 Chong Yidong <cyd@stupidchicken.com>
13124
13125 * xselect.c (x_get_foreign_selection): Return nil if desired
13126 selection could not be obtained, instead of signalling an error.
13127
131282008-08-20 David Reitter <david.reitter@gmail.com>
13129
13130 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13131 * nsterm.m: Remove ns-specific code for cursor blinking.
13132 (ns_draw_window_cursor): Clear cursor properly rather than
13133 redrawing the area. Respect width of bar cursors.
13134 These changes enable the use of generic blink-cursor-mode and
13135 generic cursor types in NS and support smooth cursor movements (do
13136 not blink off after command).
13137 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13138 Nextstep, too.
13139
131402008-08-19 Kenichi Handa <handa@m17n.org>
13141
13142 * font.c (Vfont_log_deferred): New variable.
13143 (font_add_log): Check Vfont_log_deferred.
13144 (font_deferred_log): New function.
13145
13146 * font.h (font_deferred_log): Extern it.
13147
13148 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13149 for sorting.
13150 (face_for_char): Use deferred log.
13151
131522008-08-18 Kenichi Handa <handa@m17n.org>
13153
13154 * fontset.c (face_for_char): Add font log.
13155
13156 * font.c (font_add_log): Add the font properties :script, :lang,
13157 and :otf in the log.
13158
131592008-08-17 Chong Yidong <cyd@stupidchicken.com>
13160
13161 * xdisp.c: Remove dead code.
13162 (handle_invisible_prop, next_overlay_string): Defer call to
13163 setup_for_ellipsis.
13164 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13165
131662008-08-15 Chong Yidong <cyd@stupidchicken.com>
13167
13168 * xfaces.c (lookup_derived_face): Properly handle possible zero
13169 return value of get_lface_attributes.
13170 (merge_faces): Don't tell lookup_derived_face to signal an error
13171 if face is not found.
13172
13173 * dired.c (Fdirectory_files): Doc fix.
13174
13175 * process.c (make_process): Initialize kill_without_query struct
13176 member.
13177
131782008-08-15 Eli Zaretskii <eliz@gnu.org>
13179
13180 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13181 Alternative calculation of totphys for Visual Studio 6.
13182
13183 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13184
13185 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13186 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13187 All users changed.
13188 (stat): Only root directory passed to GetDriveType. Allow RAM
13189 disk as well as local fixed disk when w32-get-true-file-attributes
13190 is set to `local'.
13191 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13192 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13193 (w32_cached_id, w32_add_to_cache): New functions.
13194 (get_name_and_id): Look account names in the cache before calling
13195 lookup_account_sid.
13196 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13197 New initialization flags.
13198 (globals_of_w32): Initialize them to zero.
13199 (w32_system_process_attributes): Use w32_cached_id and
13200 w32_add_to_cache.
13201
132022008-08-14 Lawrence Mitchell <wence@gmx.li>
13203
13204 * lread.c (Fread_char, Fread_char_exclusive): If no character
13205 event is read before timeout is reached, return nil, rather than
13206 converting to a number.
13207
132082008-08-14 Chong Yidong <cyd@stupidchicken.com>
13209
13210 * fns.c (use_dialog_box): Doc fix.
13211
13212 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13213 on OS X.
13214
132152008-08-13 Chong Yidong <cyd@stupidchicken.com>
13216
13217 * frame.c (Qns_parse_geometry): New var.
13218 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13219
132202008-08-11 Chong Yidong <cyd@stupidchicken.com>
13221
13222 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13223 space character in calculating tabs.
13224
132252008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13226
13227 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13228
132292008-08-10 Glenn Morris <rgm@gnu.org>
13230
13231 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13232 silence gcc "limited range of data type" warnings in some
13233 make_fixnum_or_float calls.
13234
132352008-08-09 Eli Zaretskii <eliz@gnu.org>
13236
13237 * w32.c (w32_system_process_attributes): If the process does not
13238 exist, return nil.
13239
13240 * w32.c: Include thelp32.h, psapi.h and coding.h.
13241 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13242 declarations.
13243 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13244 (Process32Next_Proc): New typedefs.
13245 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13246 (g_b_init_process32_next, g_b_init_open_thread_token)
13247 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13248 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13249 (g_b_init_get_process_working_set_size)
13250 (g_b_init_global_memory_status_ex): New static variables.
13251 (globals_of_w32): Initialize them.
13252 (create_toolhelp32_snapshot, process32_first, process32_next)
13253 (open_thread_token, impersonate_self, revert_to_self)
13254 (get_process_memory_info, get_process_working_set_size)
13255 (global_memory_status, global_memory_status_ex): New wrapper
13256 functions.
13257 (w32_list_system_processes, w32_system_process_attributes)
13258 (enable_privilege, restore_privilege, ltime, process_times):
13259 New functions.
13260 (convert_time_raw): New function.
13261 (convert_time): Remove conversion of FILETIME into time in 100
13262 nsec units, call convert_time_raw instead.
13263
13264 * process.h (w32_list_system_processes, w32_system_process_attributes):
13265 Add prototypes.
13266 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13267 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13268 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13269 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13270
13271 * process.c (Fsystem_process_attributes): Doc fix.
13272
132732008-08-08 Chong Yidong <cyd@stupidchicken.com>
13274
13275 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13276 a continued multi-char glyph; if so, advance to the actual glyph.
13277
132782008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13279
13280 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13281
13282 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13283 (.m.o): Use it.
13284 * config.in: Regenerate.
13285
132862008-08-07 Chong Yidong <cyd@stupidchicken.com>
13287
13288 * xdisp.c (redisplay_window): Revert last change.
13289 (try_window): Check bottom scroll margin too.
13290
132912008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13292
13293 * config.in: Regenerate.
13294
13295 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13296 -list-load-path-shadows'.
13297 (nsgui.h): Reduce number of things depending on it.
13298
132992008-08-06 Chong Yidong <cyd@stupidchicken.com>
13300
13301 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13302 instead of window-end which does the wrong thing at eob.
13303 (try_cursor_movement): Minor optimization.
13304 (redisplay_window): If scroll margin is defined, don't assume
13305 window doesn't need scrolling.
13306
133072008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13308
13309 * config.in: Regenerate.
13310
13311 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13312 (mostlyclean): Don't delete *.d under NS.
13313
13314 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13315
133162008-08-06 Kenichi Handa <handa@m17n.org>
13317
13318 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13319
133202008-08-06 Andreas Schwab <schwab@suse.de>
13321
13322 * config.in: Regenerate.
13323
133242008-08-05 Chong Yidong <cyd@stupidchicken.com>
13325
13326 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13327 forcing a window start.
13328
13329 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13330 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13331
133322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13333
13334 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13335 argument.
13336
133372008-08-05 Juanma Barranquero <lekktu@gmail.com>
13338
13339 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13340 <scroll-down-aggressively, before-change-functions>:
13341 <after-change-functions>: Reflow docstrings.
13342
133432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13344 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13345
13346 Dock menu customization, based on a patch by Ken Raeburn, plus some
13347 other fixes.
13348 * nsmenu.m (dockMenu): New variable.
13349 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13350
13351 * nsterm.h (dockMenu): Declare.
13352
13353 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13354 (ns_term_init): Initialize dockMenu.
13355 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13356 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13357 left.
13358
13359 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13360
133612008-08-04 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13364
13365 * config.in: Regenerate.
13366
133672008-08-04 Seiji Zenitani <zenitani@mac.com>
13368
13369 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13370
133712008-08-04 Chong Yidong <cyd@stupidchicken.com>
13372
13373 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13374
133752008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13376
13377 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13378
13379 * keyboard.h: Comment an #endif.
13380
13381 * lisp.h (have_menus_p): Adjust comment.
13382
13383 * menu.c (find_and_return_menu_selection): Fix comparison with
13384 client_data.
13385
13386 * nsmenu.m (popup_activated_flag): New variable.
13387 (popup_activated): New function.
13388 (menu-or-popup-active-p): New exported lisp definition.
13389 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13390 when popup done.
13391 (ns_popup_dialog): Set popup_activated_flag.
13392
13393 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13394 version for GNUstep (handled by conditional typedef in nsterm.m).
13395 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13396 in rgb.txt).
13397
13398 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13399
13400 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13401
13402 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13403
13404 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13405 shortcircuit if popup_activated like GTK and X toolkit.
13406
13407 * m/inter386.h: Change DARWIN to DARWIN_OS.
13408
13409 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13410 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13411 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13412 comment on NO_SOCK_SIGIO.
13413
134142008-08-03 Chong Yidong <cyd@stupidchicken.com>
13415
13416 * nsterm.m (windowDidResize): Remove stopModal call.
13417
134182008-08-03 Andreas Schwab <schwab@suse.de>
13419
13420 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13421 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13422
134232008-08-02 Chong Yidong <cyd@stupidchicken.com>
13424
13425 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13426 Don't use uninitialized pointer variable when using getrlimit.
13427
134282008-08-02 Jason Rumney <jasonr@gnu.org>
13429
13430 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13431
134322008-08-02 Eli Zaretskii <eliz@gnu.org>
13433
13434 * alloc.c (NSTATICS): Bump to 0x640.
13435
13436 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13437
13438 * lisp.h: Add prototype for directory_files_internal.
13439
13440 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13441 New functions.
13442 (syms_of_process): Defsubr them. Add initializations for various
13443 Q* symbols used in procfs_system_process_attributes.
13444 (procfs_list_system_processes, procfs_system_process_attributes)
13445 [HAVE_PROCFS]: New functions.
13446 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13447 (procfs_get_total_memory): New functions.
13448
134492008-08-01 Juanma Barranquero <lekktu@gmail.com>
13450
13451 * xfaces.c (Fx_load_color_file): Fix previous change;
13452 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13453
134542008-08-01 Michael Albinus <michael.albinus@gmx.de>
13455
13456 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13457
134582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13459
13460 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13461
134622008-08-01 Chong Yidong <cyd@stupidchicken.com>
13463
13464 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13465
13466 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13467 define NSApplicationDelegateReplySuccess.
13468 (EmacsView -converstationIdentifier): Use long instead of
13469 NSInteger for GNUstep, since it doesn't have NSInteger.
13470
13471 * xmenu.c: Revert last change.
13472
13473 * keyboard.h: Fix last change.
13474
134752008-08-01 Juanma Barranquero <lekktu@gmail.com>
13476
13477 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13478 on Windows.
13479
134802008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13481
13482 Warning clearing and clean-up in NS port.
13483 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13484 Add prototypes.
13485 * nsgui.h (FACE_DEFAULT): Remove, unused.
13486 (XGCValues): Change colors to unsigned long.
13487 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13488 nsterm.m.
13489 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13490 (ns_list_fonts): Remove, unused.
13491 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13492 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13493 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13494 (nsfont_draw): Compare face colors to 0, not nil.
13495 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13496 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13497 (-addSubmenuWithTitle:): Use NSMenuItem class.
13498 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13499 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13500 (ns_clip_to_row): Make gc arg a BOOL.
13501 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13502 ns_clip_to_row() call.
13503 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13504 used). Cast FRAME_FONT assignments.
13505 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13506 (ns_string_to_lispmod): Change arg to const char.
13507 (ns_term_init): Use NSMenuItem class.
13508 (EmacsApp -openFile:): Move to different section of file.
13509 (EmacsApp -application:openFiles:): Don't return a value, call
13510 -replyToOpenOrPrint:.
13511 (EmacsView -keyDown:): Fix up cast.
13512 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13513 (EmacsView -menuDown:): Cast tag in call to
13514 find_and_call_menu_selection().
13515 (ns_list_fonts): Remove, unused.
13516 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13517 (ns_fontname_to_xlfd): Make static.
13518 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13519 Remove prototypes (now in keyboard.h).
13520 (next_menubar_widget_id): Remove, unused.
13521 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13522 Remove prototypes (now in keyboard.h).
13523 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13524
135252008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13526
13527 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13528 (floatfns.o): Depend on syssignal.h.
13529 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13530
13531 * systty.h: Fix previous change that removed BSD_TERMIOS.
13532 Add comments to #ifdefs.
13533
135342008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13535
13536 * w32fns.c (w32-load-color-file): Remove.
13537 (x-open-connection): Use renamed Fx_load_color_file.
13538 * xfaces.c (x-load-color-file): Add.
13539 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13540 Emacs.clr.
13541 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13542
135432008-07-31 Michael Albinus <michael.albinus@gmx.de>
13544
13545 * dbusbind.c (Fdbus_call_method_asynchronously)
13546 (Fdbus_method_error_internal): New defuns.
13547 (xd_read_message): Handle also reply messages.
13548 (Vdbus_registered_functions_table): Extend docstring.
13549
135502008-07-31 Juanma Barranquero <lekktu@gmail.com>
13551
13552 * keyboard.c (gobble_input): Fix previous change.
13553
135542008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13555
13556 * bitmaps/README:
13557 * xfns.c:
13558 * termcap.c:
13559 * term.c:
13560 * syswait.h:
13561 * systty.h:
13562 * systime.h:
13563 * syssignal.h:
13564 * sysdep.c:
13565 * process.h:
13566 * process.c:
13567 * print.c:
13568 * ndir.h:
13569 * lread.c:
13570 * keyboard.c:
13571 * getpagesize.h:
13572 * floatfns.c:
13573 * fileio.c:
13574 * emacs.c:
13575 * doc.c:
13576 * dispnew.c:
13577 * dired.c:
13578 * data.c:
13579 * callproc.c:
13580 * buffer.c:
13581 * README:
13582 * Makefile.in:
13583 * s/template.h:
13584 * s/msdos.h:
13585 * m/vax.h: Remove VMS support.
13586 * s/vms.h:
13587 * vlimit.h:
13588 * uaf.h:
13589 * temacs.opt:
13590 * param.h:
13591 * ioctl.h: Remove file.
13592
135932008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13594
13595 * s/ms-w32.h (MULTI_KBOARD): Remove.
13596 * xterm.c:
13597 * xselect.c:
13598 * xfns.c:
13599 * window.c:
13600 * w32term.c:
13601 * w32fns.c:
13602 * terminal.c:
13603 * termhooks.h:
13604 * term.c:
13605 * sysdep.c:
13606 * keyboard.h:
13607 * keyboard.c:
13608 * frame.h:
13609 * frame.c:
13610 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13611 * config.in: Regenerate.
13612
136132008-07-30 Jason Rumney <jasonr@gnu.org>
13614
13615 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13616
13617 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13618 (w32font_open_internal): Get unicode version of textmetrics.
13619 Don't enable or disable glyph indices here.
13620 (w32font_open): Disable use of glyph indices.
13621
13622 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13623
136242008-07-30 Chong Yidong <cyd@stupidchicken.com>
13625
13626 * minibuf.c (Vread_buffer_function): Doc fix.
13627
136282008-07-30 John Paul Wallington <jpw@pobox.com>
13629
13630 * minibuf.c (read_buffer_completion_ignore_case): New var.
13631 (Fread_buffer): Use it.
13632
136332008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13634
13635 * systty.h (sensemode): Remove empty #if. Remove reference to
13636 BSD_TERMIOS, unused.
13637
13638 * sysdep.c: Remove reference to DGUX.
13639 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13640
13641 * config.in: Regenerate.
13642
136432008-07-30 Jason Rumney <jasonr@gnu.org>
13644
13645 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13646
136472008-07-29 Jason Rumney <jasonr@gnu.org>
13648
13649 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13650 is populated.
13651 (uniscribe_encode_char): Always use uniscribe.
13652 Avoid using context if cache is populated.
13653
136542008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13655
13656 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13657 open menu.
13658
13659 * gtkutil.c (menu_nav_ended): Remove.
13660 (create_menus): Remove signal connect for menu_nav_ended.
13661
136622008-07-28 Chong Yidong <cyd@stupidchicken.com>
13663
13664 * xdisp.c (redisplay_window): Check return value of
13665 compute_window_start_on_continuation_line before forcing a window
13666 start.
13667
136682008-07-28 Jason Rumney <jasonr@gnu.org>
13669
13670 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13671
13672 * w32term.c (w32_enable_unicode_output, cleartype_active):
13673 Remove obsolete display options.
13674 (x_draw_glyph_string_background): Don't use old cleartype_active
13675 workaround.
13676 (w32_initialize): Remove cleartype_active initialization.
13677 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13678
136792008-07-28 Andreas Schwab <schwab@suse.de>
13680
13681 * lisp.h (init_weak_hash_tables, syms_of_font)
13682 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13683 (remove_hash_entry): Don't declare.
13684 * eval.c (maybe_call_debugger): Make static and move before use.
13685 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13686 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13687 * xterm.h (x_set_frame_alpha): Declare.
13688
136892008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13690
13691 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13692 (create_menus): Connect selection-done to menu_nav_ended.
13693
136942008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13695
13696 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13697 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13698 parameter with read of 'alpha' one.
13699 (Qns_frame_parameter): Remove.
5582fbc7 13700 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13701 (next-selection-coding-system, Vselection_coding_system)
13702 (Vnext_selection_coding_system): Drop.
13703
137042008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13705
13706 * nsfns.m (do-applescript, do_applescript): Rename to
13707 ns-do-applescript, ns_do_applescript, and move within file.
13708
137092008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13710
13711 Remove support for Mac Carbon.
13712 * mactoolbox.c:
13713 * macterm.h:
13714 * macterm.c:
13715 * macselect.c:
13716 * macmenu.c:
13717 * macgui.h:
13718 * macfns.c:
13719 * mac.c: Remove file.
13720 * s/darwin.h:
13721 * m/intel386.h:
13722 * xfaces.c:
13723 * xdisp.c:
13724 * window.c:
13725 * tparam.c:
13726 * termhooks.h:
13727 * termcap.c:
13728 * term.c:
13729 * syssignal.h:
13730 * sysselect.h:
13731 * sysdep.c:
13732 * process.c:
13733 * lread.c:
13734 * lisp.h:
13735 * keyboard.c:
13736 * image.c:
13737 * fringe.c:
13738 * frame.h:
13739 * frame.c:
13740 * fontset.c:
13741 * font.h:
13742 * font.c:
13743 * fns.c:
13744 * fileio.c:
13745 * emacs.c:
13746 * dispnew.c:
13747 * dispextern.h:
13748 * config.in:
13749 * atimer.c:
2ae37cf0 13750 * Makefile.in: Remove code for Carbon.
aac0c6e3 13751
f0131492 137522008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13753
13754 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13755
137562008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13757
13758 * macterm.h (kCGBitmapByteOrder32Host): New define for
13759 non-universal SDKs.
13760
13761 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13762 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13763
13764 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13765 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13766
137672008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13768
13769 * w32inevt.c: Include dispextern.h.
13770
137712008-07-26 Andreas Schwab <schwab@suse.de>
13772
13773 * print.c (print_object): Fix off-by-one in last change.
13774
137752008-07-25 Juanma Barranquero <lekktu@gmail.com>
13776
13777 * term.c (syms_of_term): Don't initialize default_orig_pair,
13778 default_set_foreground and default_set_background on Windows.
13779
137802008-07-25 Jason Rumney <jasonr@gnu.org>
13781
13782 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13783 ScriptItemize. Clean up return value checking. Remove unused
13784 variables.
13785 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13786 shaping engine.
13787
13788 * w32font.c (w32font_has_char): Handle the case where we can't
13789 determine the script for a character.
13790
137912008-07-25 Chong Yidong <cyd@stupidchicken.com>
13792
13793 * term.c (syms_of_term): Initialize default_orig_pair,
13794 default_set_foreground, and default_set_background.
13795
13796 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13797 clash (bug#86).
13798 (getloadavg): Callers changed.
13799
13800 * image.c (svg_load_image): Fix last change.
13801 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13802 image size is valid. Use g_object_unref instead of deprecated
13803 rsvg_handle_free to free rsvg handle.
13804 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13805
138062008-07-25 Jason Rumney <jasonr@gnu.org>
13807
13808 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13809 surrogates before looking up glyph index.
13810 (w32font_text_extents): Encode as surrogates if falling back to
13811 functions that need UTF-16 wide chars.
13812
13813 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13814 BMP as surrogates before looking up glyph index.
13815
138162008-07-25 Chong Yidong <cyd@stupidchicken.com>
13817
13818 * image.c (svg_load_image): Check for failure in return value of
13819 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13820
138212008-07-25 Jason Rumney <jasonr@gnu.org>
13822
13823 * w32font.c (Fx_select_font): Reverse sense of second arg.
13824
138252008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13826
13827 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13828 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13829
13830 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13831 (PURESIZE): Use it.
13832
138332008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13834
13835 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13836 * m/alpha.h (TEXT_END):
13837 * m/ibmrs6000.h (TEXT_END):
13838 * m/macppc.h (TEXT_END):
13839 * s/darwin.h (TEXT_END):
13840 * s/msdos.h (TEXT_END): Remove, unused.
13841 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13842 * s/cygwin.h: Remove comment.
13843
13844 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13845 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13846 * m/intel386.h (DOT_GLOBAL_START):
13847 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13848 (USG): Remove, file not used on USG platforms.
13849
13850 * Makefile.in (HAVE_X11): Remove empty #else.
13851
138522008-07-24 Andreas Schwab <schwab@suse.de>
13853
13854 * fileio.c (Finsert_file_contents): Properly adjust undo list
13855 after format conversion.
13856
138572008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13858
13859 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13860 (menu_nav_ended): Remove.
13861 (create_menus): Remove signal connect for menu_nav_ended.
13862 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13863 create_menus.
13864 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13865
138662008-07-23 Jason Rumney <jasonr@gnu.org>
13867
13868 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13869 with opened font.
13870 (w32font_open): Set font type to gdi.
13871
13872 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13873
138742008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13875
13876 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13877 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13878 defines it.
13879 * unexec.c (ADDR_CORRECT): Define unconditionally.
13880
13881 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13882
13883 * unexec.c: Remove code depending on !COFF and USG, the file is
13884 not used for such systems.
13885
13886 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13887 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13888 (LD_SWITCH_SYSTEM_1): Remove, update users.
13889
13890 * s/darwin.h (DATA_END):
13891 * m/intel386.h (DATA_END):
13892 * m/ibmrs6000.h (DATA_END):
13893 * m/alpha.h (DATA_END): Remove, unused.
13894
13895 * config.in: Regenerate.
13896 * s/ms-w32.h (subprocesses): Define unconditionally.
13897 * s/template.h (subprocesses): Update comment.
13898 * s/vms.h (subprocesses):
13899 * s/usg5-4.h (subprocesses):
13900 * s/hpux10-20.h (subprocesses):
13901 * s/gnu-linux.h (subprocesses):
13902 * s/cygwin.h (subprocesses):
13903 * s/bsd-common.h (subprocesses):
13904 * s/aix4-2.h (subprocesses):
13905 * s/darwin.h (subprocesses): Do not define, defined by default now.
13906
13907 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13908 Remove all references.
13909 (temacs): Add GNUstep specific ld flags.
13910
13911 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13912 similarly to what X does.
13913
139142008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13915
13916 * nsfns.m (x-list-fonts): Remove.
13917 (syms_of_nsfns): Drop the x-list-fonts declaration.
13918 * nsterm.m: Get rid of remaining "//" comments.
13919
139202008-07-22 Chong Yidong <cyd@stupidchicken.com>
13921
13922 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13923
13924 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13925 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13926 (Fns_own_selection_internal, Fx_disown_selection_internal)
13927 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13928
13929 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13930 ... */' style of docstrings. Doc fixes.
13931
139322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13933
13934 * terminfo.c (UP, BC, PC): Undo previous change.
13935
13936 * nsfns.m: Rename ns prefixed functions/variables to the
13937 corresponding x versions. Update references.
13938
139392008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13940
13941 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13942
139432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13944
13945 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13946 Remove forwarding functions.
13947 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13948 non-static.
13949 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13950 non-static.
13951 (ns_frame_parm_handlers): Use the new names.
13952 (syms_of_nsfns): Move to the end of file.
13953
13954 * nsterm.m (syms_of_nsterm): Move to the end of file.
13955
13956 * dispnew.c (init_display): Remove code for X10.
13957
139582008-07-22 Jason Rumney <jasonr@gnu.org>
13959
13960 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13961 bare drive.
13962
139632008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13964
13965 * nsterm.m (syms_of_nsterm): Remove debugging println.
13966
139672008-07-22 David Reitter <david.reitter@gmail.com>
13968
13969 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13970 Carbon implementation of the same functionality: execute arbitrary
13971 AppleScript code.
13972
139732008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13974
13975 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13976 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13977 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13978 (Fx_display_mm_height, Fx_display_mm_width)
13979 (Fx_display_backing_store, Fx_display_visual_class)
13980 (Fx_display_save_under, Fx_open_connection)
13981 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13982 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13983 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13984 (Fx_display_pixel_width, Fx_display_pixel_height)
13985 (Fx_display_usable_bounds, Fx_display_planes)
13986 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13987 ... */' style of docstrings.
13988
139892008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13990
13991 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13992 on this platform.
13993 (mips):
13994 * m/iris4d.h (mips): Do not define.
13995 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13996
13997 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13998
13999 * image.c:
14000 * nsfns.m:
14001 * nsselect.m:
14002 * nsterm.h:
14003 * nsterm.m: Rename ns prefixed functions/variables to the
14004 corresponding x versions. Update references.
14005
14006 * m/ibms390x.h (NO_REMAP): Do not undefine.
14007
14008 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14009
140102008-07-21 Chong Yidong <cyd@stupidchicken.com>
14011
14012 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14013 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14014 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14015 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14016 (Fns_display_mm_height, Fns_display_mm_width)
14017 (Fns_display_backing_store, Fns_display_visual_class)
14018 (Fns_display_save_under, Fns_open_connection)
14019 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14020 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14021 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14022 (Fns_display_pixel_width, Fns_display_pixel_height)
14023 (Fns_display_usable_bounds, Fx_display_planes)
14024 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14025
140262008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14027
14028 * print.c (print_object): Check print_depth before searching for
14029 circularities.
14030
140312008-07-21 Michael Albinus <michael.albinus@gmx.de>
14032
14033 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14034 only sprintf.
14035
140362008-07-21 Kenichi Handa <handa@m17n.org>
14037
14038 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14039
140402008-07-20 Andreas Schwab <schwab@suse.de>
14041
14042 * syntax.c (find_start_pos, find_start_value)
14043 (find_start_value_byte, find_start_begv, find_defun_start)
14044 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14045
140462008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14047
14048 * s/sol2-3.h: Insert contents of s/sol2.h.
14049 (LD_SWITCH_SYSTEM): Remove redundant definition.
14050 * s/sol2.h: Remove, unused.
14051
140522008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14053
14054 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14055
140562008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14057
14058 * Makefile.in (ns_appdir): Fix typo in find command.
14059
140602008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14061
14062 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14063
14064 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14065 added not supported anymore.
14066
14067 * s/usg5-4-2.h (LIBS_SYSTEM):
14068 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14069
14070 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14071 * s/lynxos.h (GETPGRP_NO_ARG):
14072 * s/hpux10-20.h (NO_SIOCTL_H):
14073 * s/gnu.h (GETPGRP_NO_ARG):
14074 * s/gnu-linux.h (NO_SIOCTL_H):
14075 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14076 * s/cygwin.h (GETPGRP_NO_ARG):
14077 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14078 (C_DEBUG_SWITCH): Remove duplicate definition.
14079
14080 * m/ibms390.h: Remove boilerplate comments.
14081
14082 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14083
14084 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14085 (wait_reading_process_output): Remove code for SunOS, platform not
14086 supported anymore. Use SOLARIS2 instead of sun.
14087
140882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14089
14090 * font.c (font_open_by_name): Under NS, default lface height to zero.
14091 (font_open_for_lface): Under NS, set size based on frame fontsize.
14092 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14093 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14094
140952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14096
14097 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14098 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14099 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14100 YES/NO.
14101 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14102 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14103 * Makefile.in (clean): Clear out build destination dir.
14104
141052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14106
14107 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14108 xterm, xselect.
14109 * lisp.h: Remove declaration of hash_remove.
14110 * nsgui.h: Remove redefinitions of hash_remove.
14111 * fns.c (hash_remove): Rename to hash_remove_from_table.
14112
141132008-07-19 Seiji Zenitani <zenitani@mac.com>
14114
14115 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14116 strdup() the family UTF8String before modifying it.
14117
141182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14119
14120 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14121 NS_FACE_BACKGROUND with 0 instead of nil.
14122 * nsfont.m (nsfont_draw): Same.
14123
141242008-07-19 Chong Yidong <cyd@stupidchicken.com>
14125
14126 * nsfns.m (ns_set_background_color): Fix crash.
14127
141282008-07-18 Chong Yidong <cyd@stupidchicken.com>
14129
14130 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14131
141322008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14133
14134 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14135
141362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14137
14138 * gtkutil.c: Include <config.h> instead of "config.h".
14139
14140 * lisp.h (Foverlay_buffer): Add EXFUN.
14141
14142 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14143 child process to complete child_setup. Undo 2005-09-21 change.
14144
14145 * s/darwin.h: Mention setsid after vfork.
14146
141472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14148
14149 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14150 Depend on macgui.h.
14151
14152 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14153 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14154
14155 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14156 and f19.
14157 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14158
14159 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14160 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14161 Remove enumerators.
14162
14163 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14164 Check if FACE_FROM_ID returns NULL.
14165
141662008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14167
14168 * w32inevt.c (change_frame_size): Remove extern declaration.
14169 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14170 change_frame_size.
14171
141722008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14173
14174 * getloadavg.c: Revert last change (2008-07-15).
14175
141762008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14177
14178 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14179 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14180 from configure.
14181
141822008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14183
14184 * s/sol2.h:
14185 * s/sol2-4.h: Reorganize conditionals.
14186
14187 * ecrt0.c: Remove code depending on m68000, not used anymore.
14188
14189 * fns.c (hash_remove): Make static.
14190 * lisp.h (hash_remove): Don't prototype.
14191
14192 * m/ibmrs6000.h:
14193 * m/ibms390x.h:
14194 * m/macppc.h: Remove boilerplate comments.
14195
14196 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14197 Solaris, which does not need them.
14198
14199 * m/vax.h: Remove comments about unsupported systems.
14200
14201 * s/darwin.h: Reorganize ifdefs.
14202
142032008-07-17 Andreas Schwab <schwab@suse.de>
14204
14205 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14206
142072008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14208
14209 Use SDATA. Follow coding convention of placing operators at
14210 beginning of next line rather than end of previous line, and placing
14211 spaces around infix operators.
14212
14213 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14214 in case it was defined already.
14215 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14216 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14217 ns_default.
14218 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14219 Lisp_Objects.
14220 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14221 (ns_defined_color, ns_color_to_lisp): Declare.
14222 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14223 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14224 it's accepted even with USE_LISP_UNION_TYPE.
14225 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14226 (update_frame_tool_bar): Remove apparently obsolete tests for
14227 non-integerness of f->tool_bar_lines.
14228 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14229 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14230 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14231 (nsfont_open): Don't confuse NULL for Qnil.
14232 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14233 * menu.h (find_and_call_menu_selection):
14234 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14235 (find_and_return_menu_selection): Always return something.
14236 * frame.h: Include dispextern.h for Display_Info.
14237 (display_x_get_resource): Declare.
14238
142392008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14240
14241 * syntax.c: Remove stdio.h include accidentally introduced in
14242 Emacs.app commit.
14243 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14244 NS_IMPL_COCOA.
14245 * keyboard.c (handle_async_input, input_available_signal): Remove
14246 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14247
142482008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14249
14250 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14251 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14252 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14253 Use SDATA.
14254
14255 * keymap.c: Remove all NS-specific code.
14256 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14257 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14258 where_is_preferred_modifier, return a different value depending on how
14259 preferred is the binding.
14260 (where_is_internal): Adjust accordingly.
14261 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14262 Adjust to new preferred_sequence_p.
14263 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14264 * keyboard.c (parse_solitary_modifier): Not static any more.
14265 * keyboard.h (parse_solitary_modifier): Declare.
14266
142672008-07-16 Andreas Schwab <schwab@suse.de>
14268
14269 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14270 of easymenu.
14271
142722008-07-16 Chong Yidong <cyd@stupidchicken.com>
14273
14274 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14275 that we don't move off the line.
14276
142772008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14278
14279 * keyboard.c (Qsuper): Remove.
14280 (parse_menu_item): Don't call where_is_internal specially for NS.
14281
142822008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14283
14284 * s/gnu-linux.h: Remove boilerplate comments.
14285
14286 * m/alpha.h (__ELF__): Consolidate conditions.
14287
14288 * m/m68k.h (linux): Use GNU_LINUX instead.
14289 Remove boilerplate comments.
14290
14291 * m/intel386.h: Undo refactoring from previous change.
14292 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14293 too, remove dead code.
14294 (linux): Use GNU_LINUX instead.
14295
142962008-07-16 Jason Rumney <jasonr@gnu.org>
14297
14298 * w32gui.h: Repeat 26 June changes lost by last change.
14299
143002008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14301
14302 * systty.h: Remove code for Aix on 386, unsupported platform.
14303
14304 * s/ms-w32.h: Remove boilerplate comments.
14305 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14306
14307 * s/gnu-linux.h (TERM): Remove support.
14308 (HAVE_SYSVIPC): Remove, unused.
14309 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14310 for this system.
14311
14312 * process.c: Remove support for IRIS, unused.
14313 Remove support for TERM, not relevant anymore.
14314
14315 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14316 used with the definition.
14317
14318 * s/aix4-2.h (static): Do not undef.
14319
14320 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14321 only used on Aix.
14322 (HAVE_SYSVIPC): Remove, unused.
14323
14324 * m/hp800.h (CANNOT_DUMP): Do not undef.
14325
14326 * m/alpha.h: Fix comment.
14327
14328 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14329 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14330 used by this configuration.
14331 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14332 * unexec.c: Remove code depending on HPUX and
14333 USG_SHARED_LIBRARIES, not used with this file. Remove code
14334 depending on IRIS, unused. Remove if 0-ed code.
14335
14336 * s/template.h: Remove comments about static.
14337
14338 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14339 Remove if 0-ed code.
14340 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14341 were the same as the default.
14342 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14343 Remove boilerplate comments.
14344 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14345 (HAVE_SYSVIPC): Remove, unused.
14346 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14347
14348 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14349 Remove boilerplate comments.
14350 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14351 Remove boilerplate comments.
14352 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14353 Remove boilerplate comments.
14354 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14355
14356 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14357 USG systems which do not use DATA_SEG_BITS.
14358 Refactor code. Remove boilerplate comments.
14359
14360 * m/ibms390.h:
14361 * m/m68k.h:
14362 * s/bsd-common.h:
14363 * s/cygwin.h:
14364 * s/darwin.h:
14365 * s/freebsd.h:
14366 * s/gnu.h:
14367 * s/msdos.h: Remove boilerplate comments.
14368
14369 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14370 do not use this file.
aac0c6e3
MR
14371 (IRIS_4D): Remove, unused.
14372
14373 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14374 do not use this file.
aac0c6e3
MR
14375 (SIGN_EXTEND_CHAR):
14376 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14377 * unexmips.c: Remove file, unused.
14378
14379 * editfns.c (Fuser_full_name): Replace the only use of
14380 USER_FULL_NAME with its value.
14381 * config.in: Regenerate.
14382
143832008-07-16 David Reitter <david.reitter@gmail.com>
14384
14385 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14386 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14387
143882008-07-16 Glenn Morris <rgm@gnu.org>
14389
14390 * emacs.c (system-type): Doc fix.
14391
143922008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14393
14394 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14395 If the cache doesn't work, let's fix it, rather than work around it.
14396
143972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14398
14399 * Makefile.in: Correct additions for nsfont.o in last commit.
14400 * nsfont.m: New file (forgot last commit).
14401
144022008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14403
14404 * callproc.c (set_initial_environment): Initialize
14405 Vprocess_environment under CANNOT_DUMP (fixes crash when
14406 batch-compiling for bootstrap).
14407
144082008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14409 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14410
c4cc8b9a
JB
14411 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14412 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14413
144142008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14415
14416 Changes and additions for NeXTstep windowing system (Cocoa and
14417 GNUstep) support.
14418
14419 * Makefile.in:
14420 * config.in: Support defines and build commands for NS port.
14421 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14422 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14423 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14424 windowing.
14425 (struct face): Add synth_ital field.
14426 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14427 (init_display): Initialize Vinitial_window_system to "ns" when so
14428 compiled.
14429 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14430 (display_arg): Use under NS.
14431 (main): Under NS, allocate autorelease pool and handle command line
14432 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14433 (standard_args): Add NS-specific args.
14434 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14435 * font.c (DEFAULT_ENCODING): New variable.
14436 (font_find_for_lface): Use it.
14437 (syms_of_font): Load syms_of_nsfont under NS.
14438 * font.h: Declare nsfont_driver when compiled under NS.
14439 * fontset.c: When compiling under NS, include nsterm.h.
14440 (fontset_from_font): Autoconstruct fontset under NS.
14441 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14442 symbol, document and use it.
14443 (do_switch_frame): When for_deletion under Cocoa, add
14444 Fraise_frame(Qnil).
14445 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14446 (x_get_arg): Allow "yes" and "no" as boolean values.
14447 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14448 Qright under Cocoa.
14449 (focus-follows-mouse): Default to 0 under NS.
14450 * frame.h (enum output_method): Add output_ns.
14451 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14452 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14453 (FRAME_WINDOW_P): NS-specific definition.
14454 * fringe.c (max_used_fringe_bitmap): Make public.
14455 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14456 (getloadavg): Use NeXT code under descendant OS's.
14457 * image.c (includes and header section, x_create_bitmap_from_data)
14458 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14459 (image_background_transparent, x_clear_image_1)
14460 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14461 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14462 (x_to_xcolors, x_from_xcolors, x_disable_image)
14463 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14464 other GUIs, including XPM support using code originally written for
14465 Carbon GUI.
14466 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14467 using NS API.
14468 (image_ascent): Use font metrics macros instead of direct struct field
14469 access.
14470 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14471 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14472 Also, handle NS as GTK for menu bar purposes.
14473 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14474 toolkit where they differ.
14475 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14476 use cachelist, still needed under NS.
14477 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14478 (struct widget_value): Define it here for menu.c.
14479 * keymap.c (includes): Include modifier internals.
14480 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14481 NS.
14482 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14483 support for preferring sequences using certain modifiers, specified by
14484 the FIRSTONLY argument.
14485 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14486 under NS GNUstep implementation.
14487 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14488 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14489 * menu.c: Include nsterm.h under NS.
14490 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14491 (free_menubar_widget_tree_value, update_submenu_strings)
14492 (find_and_call_menu_selection): Treat NS as X and NT.
14493 (find_and_return_menu_selection): New function, used for popup menus.
14494 * nsgui.h:
14495 * nsterm.h:
14496 * nsfns.m:
14497 * nsimage.m:
14498 * nsmenu.m:
14499 * nsselect.m:
14500 * nsterm.m: New files.
14501 * process.c (wait_reading_process_output): Under NS, call ns_select()
14502 instead of plain select().
14503 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14504 beginning of buffer.
14505 * sysselect.h (init_process): Rename when compiling under Cocoa to
14506 avoid name conflict.
14507 * termhooks.h (display_info): Add ns_display_info to union.
14508 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14509 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14510 COCOA environment.
14511 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14512 unexec() signature. (Note, this will dump, but the resulting file
14513 crashes; unexosx is used instead; keeping around for reference and
14514 possible aid in getting dump working under GNUstep.)
14515 * w32gui.h (button_type, widget_value): Remove definitions (now in
14516 keyboard.h).
14517 * window.c: Include nsterm.h when compiling under NS.
14518 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14519 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14520 other GUI windowing systems.
14521 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14522 GTK.
14523 (x_consider_frame_title): Under NS, set icon type and frame
14524 modified-state indicator; use ns_set_name_as_filename() when using
14525 formatted title.
14526 (update_window_cursor): Make public when compiling under NS.
14527 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14528 (hourglass_atimer, Vhourglass_delay
14529 * xfaces.c (header section, init_frame_faces, clear_font_table)
14530 (defined_color, unload_color, x_face_list_fonts)
14531 (prepare_face_for_display): Add NS support parallel to other GUIs.
14532 Emulate GCs like other non-X GUIs.
14533 (split_font_name): Don't lowercase font name under NS.
14534 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14535 under NS.
14536 * s/darwin.h: Add support for compilation under NS.
14537
145382008-07-15 Jason Rumney <jasonr@gnu.org>
14539
14540 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14541 (w32_show_hourglass): Rename from show_hourglass.
14542 (w32_hide_hourglass): Rename from hide_hourglass.
14543 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14544 (Vhourglass_delay): Declare extern.
14545 (hourglass_started): Remove.
14546
14547 * xdisp.c (Vhourglass_delay): Remove static.
14548 (hourglass_started, start_hourglass, cancel_hourglass):
14549 Don't include these versions on WINDOWSNT.
14550
145512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14552
14553 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14554 variables (formerly in xfns.c).
14555 (show_hourglass, hide_hourglass): New prototypes (same).
14556 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14557 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14558 in xfns.c).
14559 (syms_of_xdisp): Declare/initialize display-hourglass,
14560 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14561 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14562 formerly in xfns.c.
14563 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14564 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14565 (start_hourglass, cancel_hourglass): Remove.
14566 (show_hourglass, hide_hourglass): Remove prototypes and static
14567 modifiers.
14568 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14569 hourglass_atimer, hourglass_shown_p declaration/initialization.
14570 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14571 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14572 (start_hourglass, cancel_hourglass): Remove.
14573 (show_hourglass, hide_hourglass): Remove prototypes and static
14574 modifiers.
14575 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14576 hourglass_atimer, hourglass_shown_p declaration/initialization.
14577 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14578 (DEFAULT_HOURGLASS_DELAY): Remove.
14579 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14580 hourglass_shown_p declaration/initialization.
14581
145822008-07-14 Jason Rumney <jasonr@gnu.org>
14583
14584 * w32fns.c (w32_get_arg): Remove wrapper function.
14585 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14586 directly.
14587 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14588
145892008-07-14 Kenichi Handa <handa@m17n.org>
14590
14591 * xfont.c (xfont_open): Add workaround for X's bug.
14592
145932008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14594
14595 * fontset.c: Include <stdio.h> unconditionally.
14596
145972008-07-13 Michael Albinus <michael.albinus@gmx.de>
14598
14599 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14600 for filtering.
14601
146022008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14603
14604 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14605
14606 * m/macppc.h:
14607 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14608
c4cc8b9a 14609 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14610 (SPECIAL_EMACS_INT):
14611 * m/ia64.h (SPECIAL_EMACS_INT):
14612 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14613 * s/gnu.h (NLIST_STRUCT):
14614 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14615 * s/gnu-linux.h (LINUX):
14616 * s/msdos.h (HAVE_FACES):
14617 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14618
14619 * systty.h:
14620 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14621 anymore.
14622
146232008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14624
14625 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14626 always defined as int.
14627
14628 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14629 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14630 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14631 * s/freebsd.h (HAVE_WAIT_HEADER):
14632 * s/bsd-common.h (HAVE_UNION_WAIT):
14633 * s/aix4-2.h (HAVE_WAIT_HEADER):
14634 * m/mips.h (HAVE_UNION_WAIT):
14635 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14636 (COFF, static): Do not define, they are undefined later in the file.
14637
14638 * process.c (update_status): Don't use a union.
14639 (status_convert):
14640 (sigchld_handler): Use int instead of WAITTYPE.
14641
146422008-07-12 Chong Yidong <cyd@stupidchicken.com>
14643
14644 * indent.c (Fvertical_motion): Restore hscroll before moving to
14645 goal column.
14646
146472008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14648
14649 * lisp.h: Remove left over code.
14650
146512008-07-11 Andreas Schwab <schwab@suse.de>
14652
14653 * lisp.h: Fix logic in last change.
14654
14655 * menu.h: New file.
14656 * menu.c: Include it.
14657 * xmenu.c: Likewise.
14658 * Makefile.in: Update dependencies.
14659
146602008-07-11 Kenichi Handa <handa@m17n.org>
14661
14662 * fontset.c (fontset_from_font): Cancel the previous change.
14663
146642008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14665
14666 * lisp.h:
14667 * w32heap.c:
14668 * emacs.c:
14669 * alloc.c: Replace all references of NO_UNION_TYPE with
14670 USE_LISP_UNION_TYPE.
14671
14672 * m/xtensa.h (NO_UNION_TYPE):
14673 * m/vax.h (NO_UNION_TYPE):
14674 * m/template.h (NO_UNION_TYPE):
14675 * m/sparc.h (NO_UNION_TYPE):
14676 * m/mips.h (NO_UNION_TYPE):
14677 * m/macppc.h (NO_UNION_TYPE):
14678 * m/m68k.h (NO_UNION_TYPE):
14679 * m/iris4d.h (NO_UNION_TYPE):
14680 * m/intel386.h (NO_UNION_TYPE):
14681 * m/ibms390x.h (NO_UNION_TYPE):
14682 * m/ibms390.h (NO_UNION_TYPE):
14683 * m/ibmrs6000.h (NO_UNION_TYPE):
14684 * m/ia64.h (NO_UNION_TYPE):
14685 * m/hp800.h (NO_UNION_TYPE):
14686 * m/arm.h (NO_UNION_TYPE):
14687 * m/amdx86-64.h (NO_UNION_TYPE):
14688 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14689 defining it the same.
14690
146912008-07-10 Chong Yidong <cyd@stupidchicken.com>
14692
14693 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14694
146952008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14696
14697 * fileio.c:
50426a04 14698 * sysdep.c:
aac0c6e3
MR
14699 * systty.h:
14700 * m/ibmrs6000.h:
14701 * m/iris4d.h:
14702 * s/aix4-2.h:
14703 * s/freebsd.h:
14704 * s/gnu-linux.h:
14705 * s/hpux10-20.h:
14706 * s/hpux11.h:
14707 * s/netbsd.h:
14708 * s/sol2-3.h:
14709 * s/sol2-4.h:
14710 * s/sol2.h:
14711 * s/usg5-4.h:
14712 * s/vms.h: Remove references to unused variables.
14713
147142008-07-10 Andreas Schwab <schwab@suse.de>
14715
14716 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14717 pattern before matching the generic family.
14718
147192008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14720
14721 * unexec.c:
14722 * s/vms.h:
14723 * s/usg5-4-2.h:
14724 * s/sol2-5.h:
14725 * s/freebsd.h:
14726 * s/darwin.h: Remove dead code.
14727
14728 * m/template.h:
14729 * m/sparc.h:
14730 * m/mips.h:
14731 * m/m68k.h:
14732 * m/iris4d.h:
14733 * m/intel386.h:
14734 * m/ibms390x.h:
14735 * m/ibms390.h:
14736 * m/ia64.h:
14737 * m/hp800.h:
14738 * m/arm.h:
14739 * m/amdx86-64.h: Remove dead code and references to unused
14740 and compiler defined symbols.
14741
14742 * unexmips.c:
14743 * unexelf.c: Remove references to desupported systems.
14744
14745 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14746
14747 * m/powermac.h: Remove boilerplate comments.
14748 (NO_REMAP): Remove unused definition.
14749
14750 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14751 define them.
14752
147532008-07-10 Kenichi Handa <handa@m17n.org>
14754
14755 * xfont.c (xfont_open): Log the reason of failure.
14756
147572008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14758
14759 * fontset.c (fontset_get_font_group):
14760 * font.c (font_check_otf): Specify argument types.
14761
147622008-07-09 Kenichi Handa <handa@m17n.org>
14763
14764 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14765 non-ASCII char is found.
14766
14767 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14768 (reorder_font_vector): Change the arg preferred_family to font.
14769 Prefer the spec matching with font.
14770 (fontset_get_font_group): New function.
14771 (fontset_find_font): Change the format of an element of a realized
14772 fontset. Use fontset_get_font_group.
14773 (fontset_font): Try the current fontset, the default fontset, the
14774 fallbacks of the current fontset, and the fallbacks of the default
14775 fontset in this order.
14776 (face_for_char): Delete the shortcut to use the current font.
14777 (fontset_from_font): Don't set fonts for Latin in the fontset.
14778
14779 * font.h (font_make_object, font_match_p): Adjust prototypes.
14780
14781 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14782
14783 * font.c (font_make_object): New arg entity and pixelsize.
14784 (font_check_otf_features, font_check_otf): New functions.
14785 (font_match_p): Check :lang, :script, and :otf properties.
14786
14787 * xfont.c (xfont_open): Adjust it for the change of
14788 font_make_object.
14789 (xfont_text_extents): Fix initial setting of metrics.
14790
14791 * ftfont.c (struct ftfont_info): New member index, delete member
14792 fc_charset_idx. Make the member order compatible with struct
14793 xftfont_info.
14794 (fc_charset_table): Change charset names to registry names.
14795 (ftfont_pattern_entity): Delete the args registry and
14796 fc_charset_idx. Change the value of :font-entity property
14797 to (FONTNAME . INDEX). Always set :registry property to
14798 `iso10646-1'.
14799 (struct ftfont_cache_data): New struct.
14800 (ftfont_lookup_cache): New arg for_face.
14801 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14802 (ftfont_driver): Set the member otf_capability.
14803 (ftfont_get_charset): Adjust it for the change of
14804 fc_charset_table.
14805 (OTF_TAG_SYM): New macro.
14806 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14807 for the change of fc_charset_table.
14808 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14809 ftfont_pattern_entity. Add FC_INDEX to objset.
14810 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14811 and ftfont_pattern_entity.
14812 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14813 font_make_object, struct ftfont_info.
14814 (ftfont_has_char): Use ftfont_get_fc_charset.
14815 (ftfont_otf_features, ftfont_otf_capability): New functions.
14816 (ftfont_shape): Use ftfont_get_otf.
14817 (ftfont_text_extents): Fix initial setting of metrics.
14818
14819 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14820 member order compatible with struct ftfont_info.
14821 (xftfont_open): Add FC_CHARSET to the pattern. Set
14822 xftfont_info->ft_size. Don't unlock the face. Check BDF
14823 properties if appropriate.
14824 (xftfont_close): Unlock the face.
14825 (xftfont_anchor_point, xftfont_shape): Deleted.
14826 (syms_of_xftfont): Don't set members anchor_point and shape of
14827 xftfont_driver.
14828
14829 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14830 font_make_object.
14831
14832 * w32font.c (w32font_open): Adjust it for the change of
14833 font_make_object.
14834 (w32font_open_internal): Don't set properties of font_object here.
14835
148362008-07-08 Chong Yidong <cyd@stupidchicken.com>
14837
14838 * macfns.c (x_create_tip_frame):
14839 * w32fns.c (x_create_tip_frame):
14840 * xfns.c (x_create_tip_frame): Pass parameter argument to
14841 face-set-after-frame-default.
14842
14843 * xfaces.c (Finternal_merge_in_global_face): Save merged
14844 attributes for the default face back into the face vector.
14845
148462008-07-08 Andreas Schwab <schwab@suse.de>
14847
14848 * fontset.h: Declare fontset_from_font. Don't declare
14849 new_fontset_from_font and fontset_from_font_name.
14850 * xterm.c: Include "fontset.h".
14851 * Makefile.in (xterm.o): Update dependencies.
14852
148532008-07-08 Glenn Morris <rgm@gnu.org>
14854
14855 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14856 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14857
148582008-07-07 Chong Yidong <cyd@stupidchicken.com>
14859
14860 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14861 (x_set_frame_parameters): Don't bind it.
14862
148632008-07-07 Juanma Barranquero <lekktu@gmail.com>
14864
14865 * w32fns.c (map_w32_filename): Declare extern.
14866
148672008-07-07 Jason Rumney <jasonr@gnu.org>
14868
14869 * w32term.c (WS_EX_LAYERED): Define if not already.
14870
148712008-07-06 Chong Yidong <cyd@stupidchicken.com>
14872
14873 * xfaces.c (set_font_frame_param): Don't try to set the font
14874 parameter if it is still unspecified in the lface.
14875
148762008-07-05 Chong Yidong <cyd@stupidchicken.com>
14877
14878 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14879 face if it didn't already exist.
14880
14881 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14882
148832008-07-05 Andreas Schwab <schwab@suse.de>
14884
14885 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14886
148872008-07-05 Chong Yidong <cyd@stupidchicken.com>
14888
14889 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14890 word-wrapping.
14891 (IT_DISPLAYING_WHITESPACE): New macro.
14892 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14893 when word-wrapping. Simplify word-wrapping logic. Use correct
14894 pixel positions when saving copies of the iterator.
14895 (display_line): Use proper wrap point if the last character on a
14896 line was preceded by whitespace.
14897
148982008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14899
14900 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14901
149022008-07-04 Kenichi Handa <handa@m17n.org>
14903
14904 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14905
14906 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14907
149082008-07-02 Jason Rumney <jasonr@gnu.org>
14909
14910 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14911 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14912
14913 * xdisp.c (next_element_from_display_vector): Move assignment out
14914 of if statement.
14915
149162008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14917
14918 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14919
14920 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14921 (syms_of_fileio): Initialize and export them.
14922 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14923
14924 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14925 (Fsystem_move_file_to_trash): New function.
14926 (syms_of_w32fns): Export it to lisp.
14927
149282008-07-01 Jason Rumney <jasonr@gnu.org>
14929
14930 * w32font.c (w32font_text_extents): Don't count overhang as part
14931 of width.
14932
149332008-06-30 Miles Bader <miles@gnu.org>
14934
14935 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14936 Add `avoid_cursor_p' field.
14937
14938 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14939 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14940 (append_glyph, append_composite_glyph, produce_image_glyph)
14941 (append_stretch_glyph): Initialize avoid_cursor_p.
14942 (get_it_property): Rename from `get_line_height_property'.
14943 (x_produce_glyphs): Use get_it_property.
14944 (handle_line_prefix, push_display_prop): New functions.
14945 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14946 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14947 New variables.
14948 (syms_of_xdisp): Initialize them.
14949
149502008-06-30 Kenichi Handa <handa@m17n.org>
14951
14952 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14953 XftDefaultSubstitute (they are called in XftFontMatch).
14954 (xftfont_open): Fix args to ftfont_font_format.
14955
14956 * ftfont.c (fc_charset_table): New member lang.
14957 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14958 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14959 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14960 (ftfont_open): Fix args to ftfont_font_format.
14961 (ftfont_font_format): New arg filename.
14962
149632008-06-30 Chong Yidong <cyd@stupidchicken.com>
14964
14965 * xfaces.c (Finternal_merge_in_global_face): If default face was
14966 modified, realize it again. Update the font face attribute.
14967
149682008-06-29 Jason Rumney <jasonr@gnu.org>
14969
14970 * w32term.c (x_set_frame_alpha): Fix logic.
14971
149722008-06-29 Kenichi Handa <handa@m17n.org>
14973
14974 * fontset.c (Finternal_char_font): Return font-object instead of
14975 font-name.
14976
14977 * composite.c (get_composition_id): Fix the width calculation for TAB.
14978
149792008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14980
14981 * indent.c (Fvertical_motion): Properly handle float column arg.
14982
149832008-06-28 Jason Rumney <jasonr@gnu.org>
14984
14985 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14986 (pfnSetLayeredWindowAttributes): New function pointer.
14987 (w32_initialize): Initialize it when supported.
14988 (x_set_frame_alpha): New function.
14989
14990 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14991 (w32_frame_parm_handlers): Set alpha handler.
14992
14993 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14994
149952008-06-27 Jason Rumney <jasonr@gnu.org>
14996
14997 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14998 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14999 (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 to w32font.c.
15007 (Qw32_charset_unicode): Remove.
15008 (syms_of_w32fns): Update for above changes.
15009
15010 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15011 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15012 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15013 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15014 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15015 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15016 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15017 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15018 (syms_of_w32font): Update for above changes.
15019
150202008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15021
15022 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15023 removed #if.
15024 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15025
150262008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15027 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15028
15029 * makefile.w32-in (LOCAL_FLAGS):
15030 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15031
15032 * sysdep.c (_spawnlp, _getpid):
15033 Declare with explicit _cdecl instead of _CRTAPI1.
15034
15035 * editfns.c (Fget_internal_run_time):
15036 Check for WINDOWSNT with #ifdef, not #if.
15037
150382008-06-26 Jason Rumney <jasonr@gnu.org>
15039
15040 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15041
15042 * w32term.c (x_draw_glyph_string_foreground)
15043 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15044 Use FONT_HANDLE macro.
15045 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15046
15047 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15048 (uniscribe_encode_char): Use FONT_HANDLE macro.
15049
15050 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15051 (w32font_text_extents): Use precast w32_font.
15052 (w32font_close): Free cached metrics.
15053 (w32font_open_internal): Allocate space for name on stack.
15054
150552008-06-26 Chong Yidong <cyd@stupidchicken.com>
15056
15057 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15058
150592008-06-26 Jason Rumney <jasonr@gnu.org>
15060
15061 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15062 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15063
150642008-06-26 Juanma Barranquero <lekktu@gmail.com>
15065
15066 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15067
150682008-06-26 Jason Rumney <jasonr@gnu.org>
15069
15070 * w32bdf.c, w32bdf.h: Remove obsolete files.
15071
15072 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15073
15074 * w32gui.h: Don't include w32bdf.h.
15075 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15076 Remove obsolete font support.
15077
15078 * w32font.h (struct w32font_info): Remove compat_w32_font.
15079 Add hfont member.
15080 (FONT_COMPAT): Remove obsolete macro.
15081
15082 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15083 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15084 (w32font_open_internal): Remove compat code. Set new hfont member.
15085 (Fx_select_font): Use new hfont member.
15086
15087 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15088 (uniscribe_encode_char): Use new hfont member.
15089
15090 * w32term.c (x_draw_glyph_string_foreground)
15091 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15092 (x_draw_glyph_string): Use metrics in w32font_info.
15093
150942008-06-26 Kenichi Handa <handa@m17n.org>
15095
15096 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15097
150982008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15099
15100 * unexnext.c:
15101 * m/ews4800.h:
15102 * m/hp9000s300.h:
15103 * m/ibm370aix.h:
15104 * m/mips-siemens.h:
15105 * m/ncr386.h:
15106 * m/next.h:
15107 * m/pmax.h:
15108 * m/powerpcle.h:
15109 * m/tandem-s2.h:
15110 * s/386bsd.h:
15111 * s/bsd386.h:
15112 * s/bsd4-1.h:
15113 * s/bsd4-2.h:
15114 * s/bsdos2-1.h:
15115 * s/bsdos2.h:
15116 * s/bsdos3.h:
15117 * s/bsdos4.h:
15118 * s/nextstep.h:
15119 * s/ultrix4-3.h:
15120 * s/usg5-0.h:
15121 * s/usg5-2-2.h:
15122 * s/usg5-2.h:
15123 * s/usg5-4-3.h:
15124 * s/ux4800.h:
15125 * s/uxpds.h:
15126 * s/uxpv.h: Remove support for obsolete systems.
15127 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15128 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15129 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15130 Remove, insert contents in s/aix4-2.h.
15131 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15132 * s/bsd4-3.h: Rename to ...
15133 * s/bsd-common.h: ... this.
15134 * data.c:
15135 * doc.c:
15136 * ecrt0.c:
15137 * emacs.c:
15138 * fileio.c:
15139 * floatfns.c:
15140 * keyboard.c:
15141 * mem-limits.h:
15142 * print.c:
15143 * process.c:
15144 * sysdep.c:
15145 * syssignal.h:
15146 * systty.h:
15147 * syswait.h:
15148 * term.c:
15149 * unexec.c:
15150 * unexelf.c:
15151 * unexhp9k800.c:
15152 * m/hp800.h:
15153 * m/ibmrs6000.h:
15154 * m/mips.h:
15155 * m/vax.h:
15156 * s/darwin.h:
15157 * s/freebsd.h:
15158 * s/gnu.h:
15159 * s/ms-w32.h:
15160 * s/msdos.h:
15161 * s/netbsd.h:
15162 * s/template.h: Remove references to obsolete variables.
15163
15164 * Makefile.in: Add dependencies for all unexec files.
15165 (admindir): Remove unused variable.
15166 (UNEXEC_SRC): Remove references.
15167
151682008-06-25 Chong Yidong <cyd@stupidchicken.com>
15169
15170 * xfns.c (x_default_font_parameter): If Xft is available, first
15171 try Monospace-12 for the default font.
15172
151732008-06-25 Jason Rumney <jasonr@gnu.org>
15174
15175 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15176
151772008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15178
15179 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15180
15181 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15182
151832008-06-25 Juanma Barranquero <lekktu@gmail.com>
15184
15185 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15186 <scroll-conservatively>: Fix typo in docstring.
15187
15188 * xselect.c (Fx_send_client_event): Doc fix.
15189
151902008-06-25 Kenichi Handa <handa@m17n.org>
15191
15192 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15193
15194 * font.c (font_parse_fcname): Remove unused variables.
15195 (font_sort_entites): Delete the arg SPEC. Caller changed.
15196 Fix for the case of ! best_only.
15197 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15198
15199 * lisp.h (Fstring_to_unibyte): EXFUN it.
15200
15201 * character.h (str_to_unibyte): Extern it.
15202
15203 * character.c (str_to_unibyte): New function.
15204
15205 * fns.c (Fstring_to_unibyte): New function.
15206 (syms_of_fns): Defsubr it.
15207
152082008-06-24 Kenichi Handa <handa@m17n.org>
15209
15210 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15211 DPI too.
15212 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15213
152142008-06-24 Andreas Schwab <schwab@suse.de>
15215
15216 * Makefile.in (${lispsource}loaddefs.el): Rename from
15217 ../lisp/loaddefs.el.
15218 (bootstrap-clean): Do what distclean does but don't remove
15219 Makefile.
15220 (distclean): Depend on bootstrap-clean and remove Makefile.
15221
152222008-06-24 Chong Yidong <cyd@stupidchicken.com>
15223
15224 * buffer.h (struct buffer): New member word_wrap.
15225
15226 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15227 word-wrap.
15228 (init_buffer_once): Initialize them.
15229
15230 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15231 line_wrap enum possessing three possible values.
15232
15233 * termopts.h: Replace truncate_partial_width_windows with
15234 Vtruncate_partial_width_windows.
15235
15236 * dispnew.c (direct_output_for_insert): Avoid direct output when
15237 inserting a space with word wrap on.
15238
15239 * indent.c (compute_motion): Obey integer values of
15240 truncate-partial-width-windows.
15241
15242 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15243 replacing truncate_partial_width_windows.
15244 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15245 truncate only if the window width is below that integer.
15246 (start_display, resize_mini_window, produce_stretch_glyph)
15247 (display_string, move_it_in_display_line_to): Use line_wrap.
15248 (back_to_previous_visible_line_start, reseat_1): Reset
15249 string_from_display_prop_p.
15250 (display_line): Extend default face to end of line when wrapping.
15251
152522008-06-24 Kim F. Storm <storm@cua.dk>
15253
15254 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15255 to wrap continued lines at word boundaries.
15256
152572008-06-24 Jason Rumney <jasonr@gnu.org>
15258
15259 * font.c (Ffont_face_attributes): Multiply pixel size before point
15260 conversion to avoid multiplying rounding error.
15261
152622008-06-23 Jason Rumney <jasonr@gnu.org>
15263
15264 * w32term.c (x_draw_glyph_string_background)
15265 (x_draw_glyph_string): Remove old bdf font code.
15266
15267 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15268
152692008-06-22 Kenichi Handa <handa@m17n.org>
15270
15271 * font.c (font_find_for_lface): Try the adstyle specified in
15272 the property of LFACE_FONT of LFACE (if any).
15273
152742008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15275 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15276
15277 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15278
152792008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15280
15281 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15282 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15283 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15284 (witness-emacs): Remove.
15285 (lisp, shortlisp): Move loaddefs.el earlier.
15286 (mostlyclean): Forget about witness-emacs.
15287
152882008-06-22 Glenn Morris <rgm@gnu.org>
15289
15290 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15291 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15292
152932008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15294
15295 * Makefile.in (PRECOMP): Remove.
15296 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15297 (witness-emacs): Run `compile-first'.
15298 (.el.elc): Use the new compile-onefile target.
15299
153002008-06-21 Kenichi Handa <handa@m17n.org>
15301
15302 * xftfont.c (xftfont_open): Handle QCembolden only when
15303 FC_EMBOLDEN is defined.
15304
153052008-06-21 Andreas Schwab <schwab@suse.de>
15306
15307 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15308 (.el.elc): Likewise.
15309
153102008-06-21 Miles Bader <miles@gnu.org>
15311
15312 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15313 build dir, not the lisp source dir.
15314
153152008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15316
15317 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15318 (bootstrapclean): Remove.
15319 (.el.elc): New rule.
15320 (PRECOMP): New var.
15321 (../lisp/subdirs.el): Remove.
15322 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15323 (witness-emacs): New target.
15324 (mostlyclean): Remove witness-emacs as well.
15325 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15326 Add witness-emacs dependency.
15327
153282008-06-20 Chong Yidong <cyd@stupidchicken.com>
15329
15330 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15331 defined by the font.
15332
153332008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15334
15335 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15336 (bootstrap-clean): New target that keeps TAGS around.
15337 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15338 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15339
153402008-06-20 Jason Rumney <jasonr@gnu.org>
15341
15342 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15343 Remove obsolete font code.
15344
15345 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15346 to determine language support.
15347
153482008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15349
15350 * sysdep.c (cfsetspeed): New fun extracted from the code.
15351 (cfmakeraw): Move before first use.
15352
153532008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15354
15355 * sysdep.c (cfmakeraw): Provide fallback implementation.
15356 (serial_configure): Provide fallback implementation of cfsetspeed.
15357
153582008-06-20 Kenichi Handa <handa@m17n.org>
15359
15360 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15361 the pattern.
15362
15363 * fontset.c (fontset_from_font): Copy font_spec before changing
15364 the elements.
15365
15366 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15367
153682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15369
15370 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15371 for explicit `font' parameters.
15372
15373 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15374
153752008-06-19 Kenichi Handa <handa@m17n.org>
15376
15377 * frame.c: Include <ctype.h>.
15378 (x_set_font_backend): Allow spacing characters in the X resource
15379 for FontBackend.
15380
153812008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15382
15383 * w32fns.c, xfns.c (Qfont_param): New var.
15384 (syms_of_w32fns): Initialize it.
15385 (x_default_font_parameter): Record explicit `font' into
15386 `font-parameter'.
15387
153882008-06-18 Kenichi Handa <handa@m17n.org>
15389
15390 * font.c (font_parse_xlfd): Fix previous change.
15391 (font_parse_fcname): Don't use :fc-unknown-spec.
15392 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15393 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15394 (font_add_log): Prepend the driver name to the resulting fonts.
15395
15396 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15397 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15398 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15399
15400 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15401 (QCembolden): New variables.
15402 (syms_of_xftfont): DEFSYM them.
15403 (xftfont_open): Call XftFontMatch. Don't trust the result of
15404 XftTextExtents8 if the pixel_size is less than 5.
15405
154062008-06-18 Andreas Schwab <schwab@suse.de>
15407
15408 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15409 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15410
154112008-06-18 Jason Rumney <jasonr@gnu.org>
15412
15413 * w32font.c (w32font_list, w32font_match): Add logging.
15414
15415 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15416
154172008-06-17 Chong Yidong <cyd@stupidchicken.com>
15418
15419 * font.c (font_parse_fcname): Store divider characters for
15420 unknown-spec list. For known key symbols, intern using correct
15421 symbol name.
15422
154232008-06-17 Kenichi Handa <handa@m17n.org>
15424
15425 * xfaces.c (realize_default_face): If the frame is not on window
15426 system, set the fontset of face to nil.
15427
154282008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15429
15430 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15431
154322008-06-16 Juanma Barranquero <lekktu@gmail.com>
15433
15434 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15435 (build_font_name_from_vector): Delete externs.
15436
15437 * xfaces.c (struct font_name): Don't declare.
15438
154392008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15440
15441 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15442
154432008-06-16 Chong Yidong <cyd@stupidchicken.com>
15444
15445 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15446
154472008-06-16 Juanma Barranquero <lekktu@gmail.com>
15448
15449 * font.c (Ffont_spec): Fix usage in docstring.
15450 (Ffont_face_attributes): Doc fix.
15451
154522008-06-16 Andreas Schwab <schwab@suse.de>
15453
15454 * font.c (Ffont_face_attributes): Fix definition.
15455
154562008-06-16 Jason Rumney <jasonr@gnu.org>
15457
15458 * font.h (font_style_symbolic_from_value): Remove.
15459
15460 * font.c (font_style_symbolic_from_value): Remove.
15461 (font_style_symbolic): Revert to pre 2008-06-13 version.
15462
15463 * w32font.c (w32_to_fc_weight): New function.
15464 (w32font_full_name, logfont_to_fcname): Use it.
15465
154662008-06-16 Kenichi Handa <handa@m17n.org>
15467
15468 * font.c (font_check_object): Delete it.
15469 (font_clear_cache): Check if a font-object is alive.
15470 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15471 font-object to nil.
15472 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15473 (font_at): Don't call font_check_object.
15474 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15475
154762008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15477
15478 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15479
154802008-06-16 Chong Yidong <cyd@stupidchicken.com>
15481
15482 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15483
154842008-06-15 Chong Yidong <cyd@stupidchicken.com>
15485
15486 * font.c (font_parse_fcname): Only one decimal point.
15487 (font_unparse_fcname): Handle data in family and foundry indices
15488 as symbols, not strings.
15489 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15490
15491 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15492
15493 * font.h (font_unparse_gtkname): Add prototype.
15494
154952008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15496
15497 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15498
154992008-06-15 Andreas Schwab <schwab@suse.de>
15500
15501 * font.c (font_update_drivers): Fix crash when no drivers match.
15502
155032008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15504
15505 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15506 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15507
155082008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15509
15510 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15511
155122008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15513
15514 * process.c (Fserial_process_configure, Fprocess_send_eof):
15515 Use EQ to compare Lisp_Objects.
15516
155172008-06-13 Jason Rumney <jasonr@gnu.org>
15518
15519 * w32fns.c (Fw32_select_font): Remove old font API function.
15520
15521 * w32font.c (logfont_to_fcname): New function.
15522 (Fx_select_font): New font dialog function compatible with
15523 GTK/fontconfig version.
15524
15525 * font.c (font_style_symbolic_from_value): New function.
15526 (font_style_symbolic): Use it.
15527
15528 * font.h (font_style_symbolic_from_value): Declare new function.
15529
155302008-06-13 Juanma Barranquero <lekktu@gmail.com>
15531
15532 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15533 <font-width-table>: Fix typos in docstrings.
15534
155352008-06-13 Daniel Engeler <engeler@gmail.com>
15536
15537 These changes add serial port access.
15538 * process.c: Add HAVE_SERIAL.
15539 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15540 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15541 (list_processes_1, select_wrapper, Fstop_process)
15542 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15543 (status_notify): Modify to handle serial processes.
15544 [HAVE_SERIAL] (Fserial_process_configure)
15545 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15546 New functions.
15547 * process.h (struct Lisp_Process): Add `type'.
15548 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15549 New functions.
15550 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15551 serial ports.
b71ac3dd 15552 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15553 * w32.h: Add FILE_SERIAL.
15554 (struct _child_process): Add ovl_read, ovl_write.
15555
155562008-06-13 Kenichi Handa <handa@m17n.org>
15557
15558 * dispextern.h (enum lface_attribute_index): New member
15559 LFACE_FOUNDRY_INDEX.
15560
15561 * font.c (font_score): Delete arg alternate_families. Check only
15562 weight, slant, width, and size. Ignore the difference of alias
15563 style symbols.
15564 (font_sort_entites): Adjust for the above change. Reflect the
15565 order of font-driver to scores.
15566 (font_list_entities): Don't check alternate_familes here.
15567 (font_clear_prop): Handle foundry.
15568 (font_update_lface): Don't parse "foundry-family" form here.
15569 Handle FONT_FOUNDRY_INDEX.
15570 (font_find_for_lface): Likewise. Handle alternate families here.
15571 If registry is nil, try iso8859-1 and ascii-0.
15572 (font_open_for_lface): Pay attention to size in ENTITY.
15573 (font_open_by_name): Simplify by calling font_load_for_lface.
15574 (free_font_driver_list): Delete it.
15575 (font_update_drivers): Preserve the order of backends.
15576 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15577 of font_score and font_sort_entites.
15578 (font_update_sort_order): Likewise.
15579
15580 * xfaces.c (LFACE_FOUNDRY): New macro.
15581 (check_lface_attrs): Check foundry.
15582 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15583 (merge_face_vectors): Check foundry.
15584 (merge_face_ref): Likewise.
15585 (Finternal_set_lisp_face_attribute): Likewise.
15586 (x_update_menu_appearance): Likewise.
15587 (Finternal_get_lisp_face_attribute): Likewise.
15588 (lface_hash): Likewise.
15589 (lface_same_font_attributes_p): Likewise.
15590 (x_supports_face_attributes_p): Likewise.
15591 (tty_supports_face_attributes_p): Likewise.
15592 (Finternal_set_alternative_font_family_alist): Intern strings.
15593 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15594 (realize_default_face): Set LFACE_FOUNDRY (lface).
15595
15596 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15597 font-driver at first.
15598
15599 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15600
156012008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15602
15603 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15604
156052008-06-12 Jim Meyering <meyering@redhat.com>
15606
15607 Make unexec_free handle NULL the same way free does.
15608 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15609
156102008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15611
15612 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15613 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15614 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15615 (WEAK_ALIAS): Simplify.
15616 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15617 when searching a unibyte buffer.
15618
156192008-06-12 Chong Yidong <cyd@stupidchicken.com>
15620
15621 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15622
156232008-06-12 Juanma Barranquero <lekktu@gmail.com>
15624
15625 * w32font.c: Include ctype.h.
15626
156272008-06-11 Jason Rumney <jasonr@gnu.org>
15628
15629 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15630 misreported as space.
15631 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15632 as aliases for registry iso10646-1.
15633
156342008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15635
15636 * buffer.c (clone_per_buffer_values): Skip `name'.
15637
156382008-06-11 Chong Yidong <cyd@stupidchicken.com>
15639
15640 * font.c (font_parse_fcname): Fix last change; accept decimal
15641 points in font size.
15642
156432008-06-10 Jason Rumney <jasonr@gnu.org>
15644
15645 * w32uniscribe.c (add_opentype_font_name_to_list):
15646 Skip non unicode fonts.
15647
156482008-06-10 Chong Yidong <cyd@stupidchicken.com>
15649
15650 * xfns.c (Fx_font_dialog): New function.
15651
15652 * gtkutil.c (xg_dialog_response_cb): Rename from
15653 xg_file_response_callback.
15654 (pop_down_dialog): Rename from pop_down_file_dialog.
15655 (xg_get_file_name): Callers changed.
15656 (xg_get_font_name): New function.
15657
15658 * gtkutil.h (xg_get_font_name): Insert prototype.
15659
156602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15661
15662 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15663 x_underline_minimum_display_offset.
15664 (syms_of_xdisp): Declare it here rather than in xterm.c.
15665 * dispextern.h (underline_minimum_offset): Declare it.
15666 * w32term.c (x_draw_glyph_string): Use it.
15667 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15668 (syms_of_xterm): Don't declare it any more.
15669 (x_draw_glyph_string): Adjust to the new name.
15670
8719abec 156712008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15672
15673 * xterm.c (x_underline_minimum_display_offset): New var.
15674 (x_draw_glyph_string): Use it.
15675 (syms_of_xterm): Declare it.
15676
156772008-06-10 Chong Yidong <cyd@stupidchicken.com>
15678
15679 * font.c (font_parse_fcname): Accept GTK-style font names too.
15680
156812008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15682
15683 * dired.c (file_name_completion): Don't return t if the match is exact
15684 but with different capitalization.
15685 * minibuf.c (Ftry_completion): Simplify.
15686
15687 * window.c (Vwindow_point_insertion_type): New var.
15688 (set_window_buffer): Use it.
15689 (syms_of_window): Init and export it to Lisp.
15690
156912008-06-10 Kenichi Handa <handa@m17n.org>
15692
15693 * font.h (font_intern_prop): Prototype adjusted.
15694
15695 * font.c (font_intern_prop): New arg force_symbol.
15696 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15697 Adjust for the change of font_intern_prop.
15698
15699 * ftfont.c (ftfont_pattern_entity):
15700 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15701 (w32_registry):
15702 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15703 the change of font_intern_prop.
15704
157052008-06-09 Juanma Barranquero <lekktu@gmail.com>
15706
15707 * w32menu.c (digest_single_submenu): Declare extern.
15708
157092008-06-09 Jason Rumney <jasonr@gnu.org>
15710
15711 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15712
15713 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15714 (parse_single_submenu): Remove.
15715 (digest_single_submenu): Remove.
15716 (syms_of_w32menu): Don't initialise variables that have moved
15717 to menu.c.
15718 (set_frame_menubar): Sync with version in xmenu.c.
15719 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15720
15721 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15722 Make static again.
15723
157242008-06-09 Jason Rumney <jasonr@gnu.org>
15725
15726 Changes to w32 files related to the move of common menu code
15727 to menu.c on 2008-06-08 by Chong Yidong.
15728
15729 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15730 defs to w32gui.h.
15731 (single_keymap_panes, push_menu_item, push_menu_pane):
15732 Make globally visible.
15733
15734 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15735 (local_free, malloc_widget_value, free_widget_value)
15736 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15737 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15738 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15739 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15740 (menu_items, menu_items_allocated, menu_items_used)
15741 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15742 (init_menu_items, finish_menu_items, discard_menu_items)
15743 (grow_menu_items, push_submenu_start, push_submenu_end)
15744 (push_left_right_boundary, push_menu_pane, push_menu_item)
15745 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15746 (free_menubar_widget_tree_value, parse_single_submenu)
15747 (update_submenu_strings): Remove functions.
15748 (xmalloc_widget_value): Remove and declare extern.
15749
15750 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15751 (OBJ1): Build it.
15752
15753 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15754 (local_heap, local_alloc, local_free, malloc_widget_value)
15755 (free_widget_value): Define here.
15756
157572008-06-09 Kenichi Handa <handa@m17n.org>
15758
15759 * font.h (Qascii_0): Extern it.
15760
15761 * font.c (Qascii_0): New variable.
15762 (syms_of_font): DEFSYM it.
15763 (font_open_by_name): If the registry "iso8859-1" fails, try also
15764 "ascii-0".
15765
15766 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15767
157682008-06-08 Kenichi Handa <handa@m17n.org>
15769
15770 * .gdbinit (xfont): New command.
15771
157722008-06-08 Andreas Schwab <schwab@suse.de>
15773
15774 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15775 * Makefile.in (menu.o): Update dependencies.
15776
15777 * Makefile.in (obj): Always add menu.o.
15778 * emacs.c (main): Always call syms_of_menu.
15779 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15780
157812008-06-08 Chong Yidong <cyd@stupidchicken.com>
15782
15783 * Makefile.in: Compile menu.c.
15784
15785 * lisp.h: Declare syms_of_menu.
15786
15787 * emacs.c (main): Call syms_of_menu.
15788
15789 * keyboard.h: Relocate platform-independent menu definitions from
15790 xmenu.c.
15791
15792 * menu.c: New file. Relocate platform-independent menu
15793 definitions from xmenu.c. Suggested by Adrian Robert.
15794
15795 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15796 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15797 (menu_items_used, menu_items_n_panes)
15798 (menu_items_submenu_depth): Move to keyboard.h.
15799 (init_menu_items, finish_menu_items, unuse_menu_items)
15800 (discard_menu_items, restore_menu_items, save_menu_items)
15801 (grow_menu_items, push_submenu_start, push_submenu_end)
15802 (push_left_right_boundary, push_menu_pane, push_menu_item)
15803 (keymap_panes, single_keymap_panes, single_menu_item)
15804 (list_of_panes, list_of_items, find_and_call_menu_selection)
15805 (xmalloc_widget_value, free_menubar_widget_value_tree)
15806 (parse_single_submenu, digest_single_submenu)
15807 (update_submenu_strings): Move to menu.c.
15808
158092008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15810
15811 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15812
158132008-06-06 Miles Bader <miles@gnu.org>
15814
15815 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15816 face, not frame default.
15817
158182008-06-05 Martin Rudalics <rudalics@gmx.at>
15819
15820 * window.c (pop_up_windows, pop_up_frames)
15821 (display_buffer_reuse_frames, Vpop_up_frame_function)
15822 (Vdisplay_buffer_function, Veven_window_heights)
15823 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15824 (Vspecial_display_function, Vsame_window_buffer_names)
15825 (Vsame_window_regexps, split_height_threshold)
15826 (Vsplit_window_preferred_function): Move those vars to window.el.
15827 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15828 (Fdisplay_buffer): Move those functions to window.el.
15829 (syms_of_window): Remove corresponding declarations.
15830 (display_buffer): New function.
15831 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15832 * dispnew.c (Flast_nonminibuf_frame): New function.
15833 * buffer.c (Fpop_to_buffer): Move to window.el.
15834
158352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15836
15837 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15838
158392008-06-05 Kenichi Handa <handa@m17n.org>
15840
15841 * coding.c (detect_coding): Fix previous change.
15842 (detect_coding_system): Likewise.
15843
158442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15845
15846 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15847
15848 * keymap.c (Vminibuffer_local_filename_must_match_map):
15849 Rename from Vminibuffer_local_must_match_filename_map.
15850 (syms_of_keymap):
15851 * minibuf.c (Fcompleting_read): Adjust accordingly.
15852 * commands.h: Rename declaration as well.
15853
158542008-06-05 Kenichi Handa <handa@m17n.org>
15855
15856 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15857 family name.
15858 (Ffont_put): Likewise.
15859
15860 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15861 current font-spec.
15862
15863 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15864 is unspecified.
15865
15866 * xfaces.c (realize_x_face): If the font-related face attributes
15867 are the same as those of default face, realize a new fontset from
15868 default->fontset.
15869 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15870
158712008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15872
15873 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15874 (move_it_in_display_line): New wrapper.
15875
15876 * window.c (window_scroll_pixel_based_preserve_x)
15877 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15878 (window_scroll_pixel_based, window_scroll_line_based):
15879 Use them to preserve column positions.
15880 (syms_of_window): Initialize them.
15881
15882 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15883 (HPOS . VPOS) pair.
15884
15885 * dispextern.h (move_it_in_display_line): Declare.
15886
158872008-06-05 Juanma Barranquero <lekktu@gmail.com>
15888
15889 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15890 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15891 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15892
158932008-06-04 Juanma Barranquero <lekktu@gmail.com>
15894
15895 * window.c (Fset_window_parameter): Doc fix.
15896 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15897
158982008-06-04 Joakim Verona <joakim@verona.se>
15899
15900 * window.h (struct window): Add new member window_parameters.
15901
15902 * window.c (Fwindow_parameters, Fwindow_parameter)
15903 (Fset_window_parameter): New defuns.
15904 (syms_of_window): Defsubr the new defuns.
15905 (make_window): Initialize window_parameters to nil.
15906
159072008-06-04 John Paul Wallington <jpw@pobox.com>
15908
15909 * eval.c (Fdefmacro): Doc fix.
15910
159112008-06-04 Kenichi Handa <handa@m17n.org>
15912
15913 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15914 Be sure to call setup_coding_system when we find a proper coding system.
15915 (detect_coding_system): Fix handling of coding->head_ascii.
15916
159172008-06-03 Andreas Schwab <schwab@suse.de>
15918
15919 * font.c (font_prop_validate_spacing): Fix last change.
15920
159212008-06-03 Kenichi Handa <handa@m17n.org>
15922
15923 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15924 (font_parse_fcname): Fix handling of unknown key.
15925
15926 * xfont.c (xfont_list): Try an alias.
15927
15928 * charset.c (char_charset): Return NULL if the arg charset_list is
15929 specified and C doesn't belong to any of them.
15930
159312008-06-02 Chip Coldwell <coldwell@redhat.com>
15932
15933 * font.c (font_pixel_size): Don't take cdr of an integer.
15934
159352008-06-02 Jim Meyering <meyering@redhat.com>
15936
15937 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15938 * alloc.c (xfree): Return right away for a NULL arg.
15939 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15940 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15941 * mac.c (create_apple_event_from_event_ref): Likewise.
15942 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15943 Likewise.
15944 * doprnt.c (doprnt1): Likewise.
15945 * frame.c (frame): Likewise.
15946 * keyboard.c (wipe_kboard): Likewise.
15947 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15948 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15949 * term.c (tty_default_color_capabilities, maybe_fatal)
15950 (delete_tty): Likewise.
15951 * w16select.c (string): Likewise.
15952 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15953 * w32bdf.c (w32_free_bdf_font): Likewise.
15954 * w32fns.c (w32_unload_font): Likewise.
15955 * w32font.c (w32font_close): Likewise.
15956 * window.c (size_window): Likewise.
15957 * xselect.c (receive_incremental_selection): Likewise.
15958 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15959 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15960 * w32.c (stat): Likewise.
15961
15962 Remove useless if-before-free tests.
15963 * editfns.c (Fset_time_zone_rule): Likewise.
15964 * lread.c (nosuffix): Likewise.
15965 * ralloc.c (get_bloc): Likewise.
15966 * regex.c (reg_free): Likewise.
15967 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15968 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15969 * xsmfns.c (smc_save_yourself_CB): Likewise.
15970
159712008-06-02 Kenichi Handa <handa@m17n.org>
15972
15973 * font.c (font_find_for_lface): Handle float font size.
15974 (font_open_for_lface): Likewise.
15975
15976 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15977 comparing the properties.
15978
159792008-06-01 Jason Rumney <jasonr@gnu.org>
15980
15981 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15982 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15983 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15984 Don't add empty script list.
15985 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15986
159872008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15988
15989 * Makefile.in (dot, dotdot): Remove, update users.
15990 ".." has been used elsewhere in the file for a long time.
15991 (LIBXT_STATIC): Remove conditional based on unused variable.
15992
159932008-06-01 Miles Bader <miles@gnu.org>
15994
15995 * xfaces.c (Vface_remapping_alist): New variable.
15996 (syms_of_xfaces): Initialize it.
15997 (enum named_merge_point_kind): New type.
15998 (struct named_merge_point): Add `named_merge_point_kind' field.
15999 (push_named_merge_point): Make cycle detection respect different
16000 named-merge-point kinds.
16001 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16002 Remove face-name alias resolution.
16003 (lface_from_face_name): New definition using
16004 `lface_from_face_name_no_resolve'.
16005 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16006 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16007 (get_lface_attributes): New definition that layers face-remapping on
16008 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16009 (lookup_basic_face): New function.
16010 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16011 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16012 `get_lface_attributes'.
16013 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16014 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16015 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16016
16017 * xdisp.c (init_iterator): Pass base_face_id through
16018 `lookup_basic_face' when we actually use it as a face-id.
16019 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16020 DEFAULT_FACE_ID.
16021
16022 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16023 lookup the initial face-id.
16024
16025 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16026
160272008-06-01 Juanma Barranquero <lekktu@gmail.com>
16028
16029 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16030 (Fremove_text_properties): Fix typos in docstrings.
16031
160322008-05-31 Kenichi Handa <handa@m17n.org>
16033
16034 * font.c (font_list_entities): Fix the car part of data to be
16035 stored in the cache.
16036
16037 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16038
160392008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16040
16041 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16042 Add a `test' argument so another predicate than `equal' can be used.
16043 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16044 (map_char_table): Remove unused vars `c' and `i'.
16045 * lisp.h (Foptimize_char_table): Adjust declaration.
16046 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16047
160482008-05-30 Kenichi Handa <handa@m17n.org>
16049
16050 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16051 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16052 defined.
16053
160542008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16055
16056 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16057 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16058 frame-local settings for the same variable.
16059
160602008-05-30 Kenichi Handa <handa@m17n.org>
16061
16062 * fontset.c (Ffont_info): Move to font.c.
16063 (syms_of_fontset): Delete defsubr of Sfont_info.
16064
16065 * font.c (font_style_to_value, font_score): Delete casting of the
16066 args to xstcasecmp.
16067 (register_font_driver): Increment num_font_drivers only when
16068 registering the driver globally.
16069 (Ffont_info): Move from fontset.c. Handle a font object too.
16070 (syms_of_font): Defsubr Sfont_info.
16071
160722008-05-29 Kenichi Handa <handa@m17n.org>
16073
16074 * coding.h (enum define_coding_utf8_arg_index): New enum.
16075 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16076 coding_attr_utf_bom.
16077 (enum utf_bom_type): Rename from utf_16_bom_type.
16078 (struct utf_16_spec): Adjust for the above change.
16079 (struct coding_system): Add utf_8_bom in `spec' union.
16080
16081 * coding.c (CODING_UTF_8_BOM): New macro.
16082 (enum coding_category): Delete coding_category_utf_8, add
16083 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16084 coding_category_utf_8_sig.
16085 (CATEGORY_MASK_UTF_8): Delete it.
16086 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16087 (CATEGORY_MASK_UTF_8_SIG): New macros.
16088 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16089 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16090 CATEGORY_MASK_UTF_8_SIG.
16091 (CATEGORY_MASK_UTF_8): New macro.
16092 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16093 (detect_coding_utf_8): Check BOM.
16094 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16095 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16096 (encode_coding_utf_16): Likewise.
16097 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16098 (detect_coding, detect_coding_system): Handle utf-8-auto.
16099 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16100 (syms_of_coding): Fix setting up of Vcoding_category_table.
16101
161022008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16103
16104 * process.c (Faccept_process_output): If `millisec' is non-nil,
16105 `seconds' default to 0.
16106 (wait_reading_process_output): Also return non-nil if we read output
16107 from a non-running process.
16108
161092008-05-29 Jason Rumney <jasonr@gnu.org>
16110
16111 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16112 `raster' specified.
16113 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16114 in the uniscribe backend, but disallow any font that has no
16115 unicode subrange support.
16116
161172008-05-29 Juanma Barranquero <lekktu@gmail.com>
16118
16119 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16120 Fix typos in docstrings.
16121
161222008-05-29 Kenichi Handa <handa@m17n.org>
16123
16124 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16125 (Fx_family_fonts): Set frame correctly.
16126
161272008-05-28 Jason Rumney <jasonr@gnu.org>
16128
16129 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16130
161312008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16132
16133 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16134 calling build_annotations.
16135
161362008-05-28 Juanma Barranquero <lekktu@gmail.com>
16137
16138 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16139 (Fencode_coding_string):
16140 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16141 <latin-extra-code-table>: Fix typos in docstrings.
16142 (syms_of_coding) <coding-system-alist>: Doc fix.
16143 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16144
161452008-05-28 Kenichi Handa <handa@m17n.org>
16146
16147 * fontset.c (Ffont_info): Don't call font_close_object.
16148
16149 * font.c (font_parse_family_registry): Use Ffont_put to validate
16150 foundry and family.
16151 (font_delete_unmatched): Don't check spacing.
16152 (font_list_entities): Add spacing to the spec to list fonts.
16153
16154 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16155 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16156
16157 * coding.c (encode_coding_raw_text): Fix previous change.
16158 (encode_coding_object): When the dst_object is a buffer and is
16159 different from src_object, move gap to PT.
16160
161612008-05-27 Chong Yidong <cyd@stupidchicken.com>
16162
16163 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16164
161652008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16166
16167 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16168 all branches. Compute it differently.
16169
16170 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16171
161722008-05-27 Juanma Barranquero <lekktu@gmail.com>
16173
16174 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16175 into "else if () ... else ...".
16176
161772008-05-27 Jason Rumney <jasonr@gnu.org>
16178
16179 * w32font.c (w32font_open_internal): Determine if glyph indices
16180 are likely to work here.
16181
161822008-05-27 Chong Yidong <cyd@stupidchicken.com>
16183
16184 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16185 draw overlap glyphs with appropriate highlighting.
16186
161872008-05-27 Kenichi Handa <handa@m17n.org>
16188
16189 * xfont.c (xfont_open): Fix calculation of font->average_width.
16190
161912008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16192
16193 * casefiddle.c (casify_object): Try to guess better whether the
16194 argument is a byte or a char.
16195
161962008-05-26 Andreas Schwab <schwab@suse.de>
16197
16198 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16199 Always send multiples of format size.
16200
16201 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16202
162032008-05-26 Jason Rumney <jasonr@gnu.org>
16204
16205 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16206 (compute_metrics): Don't set failure if we just cleared the cache.
16207 (w32_weight_table): Remove unused variable.
16208 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16209 backwards compatibility.
16210
162112008-05-25 Kenichi Handa <handa@m17n.org>
16212
16213 * w32term.c (x_draw_glyph_string):
16214 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16215
16216 * xfaces.c: Delete unused function prototypes.
16217 (xstrlwr, font_frame): Delete them.
16218 (clear_face_cache): Delete unused variable.
16219
16220 * xftfont.c (xftfont_open): Delete unused variable.
16221 If underline_thickness is not 1, adjust underline_position.
16222
16223 * ftxfont.c (ftxfont_open): Delete unused variable.
16224
16225 * fontset.c (face_for_char): Optimize for the case of no charset
16226 property.
16227
16228 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16229 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16230 (otf_open, font_otf_capability, generate_otf_features)
16231 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16232 Comment out by surrounding "#if 0" and "#endif" for the moment.
16233 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16234 (syms_of_font): Codes for accessing above commented out.
16235
162362008-05-24 Eli Zaretskii <eliz@gnu.org>
16237
16238 * w32proc.c: Include dispextern.h.
16239
16240 * w32.c: Include dispextern.h.
16241
162422008-05-23 Juanma Barranquero <lekktu@gmail.com>
16243
16244 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16245 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16246 Fix typos in docstrings.
16247
162482008-05-23 Jason Rumney <jasonr@gnu.org>
16249
16250 * xsmfns.c: Remove includes that are already included by config.h.
16251
162522008-05-23 Kenichi Handa <handa@m17n.org>
16253
16254 * charset.c (Qemacs, charset_emacs): New variables.
16255 (char_charset): Fix for non-Unicode characters.
16256 (syms_of_charset): Define charset_emacs.
16257
16258 * w32term.c (x_draw_glyph_string): Be sure to update
16259 s->underline_thickness and s->underline_position. Be sure to draw
16260 underline within the current line area.
16261
16262 * xterm.c (x_draw_glyph_string): Be sure to update
16263 s->underline_thickness and s->underline_position. Be sure to draw
16264 underline within the current line area.
16265
16266 * fontset.c: Delete unused variables and add casting for char *
16267 throughout the file.
16268 (fontset_font): Try the fallback fonts of the current fontset
16269 before consulting the default fontset.
16270
16271 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16272
16273 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16274
162752008-05-22 Jason Rumney <jasonr@gnu.org>
16276
16277 * font.c: Don't include strings.h.
16278
16279 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16280
16281 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16282 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16283 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16284 to call xstrcasecmp.
16285
16286 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16287
16288 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16289
16290 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16291
16292 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16293
162942008-05-22 Kenichi Handa <handa@m17n.org>
16295
16296 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16297
16298 * font.c (font_prop_validate_style): Adjust for the format
16299 change of font_style_table.
16300
16301 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16302 two args.
16303
16304 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16305 two args.
16306
163072008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16308
16309 * minibuf.c (keys_of_minibuf): Delete.
16310 * lisp.h (keys_of_minibuf): Delete.
16311 * emacs.c (main): Don't call keys_of_minibuf.
16312
163132008-05-22 Kenichi Handa <handa@m17n.org>
16314
16315 * ftfont.c (ftfont_resolve_generic_family): Rename from
16316 ftfont_list_generic_family. Return a single family for each
16317 generic family.
16318 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16319 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16320 Call font_add_log.
16321 (ftfont_match): Call font_add_log.
16322
16323 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16324 (FONT_DEBUG): Define it.
16325 (font_add_log): Extern it.
16326 (font_assert): Rename from xassert.
16327
16328 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16329 (xfont_list_family): Call font_add_log.
16330 (xfont_match): Likewise.
16331 (memq_no_quit): Delete.
16332
16333 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16334 call of Ffont_xlfd_name.
16335
16336 * xfaces.c (struct table_entry, slant_table, weight_table)
16337 (swidth_table): Move to font.c.
16338
16339 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16340 xassert are changed to font_assert. Delete many unused variables.
16341 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16342 New variables.
16343 (struct table_entry): Move from xfaces.c and modified.
16344 (weight_table, slant_table, width_table): Move from xfaces.c and
16345 contents adjusted for the change of struct table_entry.
16346 (font_style_to_value, font_style_symbolic): Adjust for the
16347 format change of font_style_table.
16348 (font_parse_family_registry): Don't overwrite existing foundry and
16349 family of font_spec.
16350 (font_score): Fix calculation of diff for sizes.
16351 (font_sort_entites): Call font_add_log.
16352 (font_delete_unmatched): Return a newly created list.
16353 (font_list_entities): Fix previous change. Call font_add_log.
16354 (font_matching_entity, font_open_entity, font_close_entity):
16355 Call font_add_log.
16356 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16357 (Finternal_set_font_style_table): Delete.
16358 (BUILD_STYLE_TABLE): New macro.
16359 (build_style_table): New function.
16360 (Vfont_log, font_log_env_checked): New variables.
16361 (font_add_log): New function.
16362 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16363 Declare Lisp variables "font-weight-table", "font-slant-table",
16364 "font-width-table", and "font-log". Initialize font_style_table.
16365
163662008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16367
16368 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16369
163702008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16371 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16372
16373 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16374 (Vframe_alpha_lower_limit): New variable.
16375 (x_set_alpha): New function.
16376
16377 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16378
16379 * xfns.c (x-create-frame, Qalpha):
16380 Initialize the frame parameter `alpha'.
16381 * xterm.c (OPAQUE, OPACITY): New.
16382 (x_set_frame_alpha): New function.
16383 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16384
16385 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16386 * w32fns.c (w32_frame_parm_handlers): Likewise.
16387
163882008-05-20 Jason Rumney <jasonr@gnu.org>
16389
16390 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16391 truetype fonts to opentype list.
16392
163932008-05-20 Juanma Barranquero <lekktu@gmail.com>
16394
16395 * fontset.c (Ffontset_info): Doc fix.
16396 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16397 <ignore-relative-composition>: Fix typos in docstrings.
16398
16399 * font.c (syms-of-font) <font-encoding-alist>:
16400 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16401 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16402 (Ffont_otf_alternates): Doc fixes.
16403
164042008-05-20 Kenichi Handa <handa@m17n.org>
16405
16406 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16407 font.h through out the file.
16408 (FONT_DRIVERS): Rename from FONTOBJ.
16409 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16410 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16411
16412 * emacs.c (main): Call syms_of_font unconditionally.
16413
16414 * font.h (find_font_encoding): Extern it.
16415
16416 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16417 fontset.c.
194d44e7 16418 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16419 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16420 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16421 only when HAVE_WINDOW_SYSTEM is defined.
16422 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16423 when HAVE_WINDOW_SYSTEM is defined.
16424
16425 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16426 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16427
16428 * xfaces.c: Include font.h unconditionally.
16429 (merge_face_ref, merge_face_vectors)
16430 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16431
164322008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16433
16434 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16435 indirect_variable.
16436 * eval.c (lisp_indirect_variable): New fun.
16437 (Fuser_variable_p): Use it.
16438
164392008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16440
16441 * lisp.h (indirect_variable):
16442 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16443 Use Lisp_Symbol pointers rather than Lisp_Object.
16444 Adjust callers.
16445 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16446 To this end, change calling-convention.
16447
16448 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16449 if some non-hidden buffers are selected by string&pred.
16450
164512008-05-19 Chong Yidong <cyd@stupidchicken.com>
16452
16453 * process.c (wait_reading_process_output): Always check status
16454 when in batch mode.
16455
164562008-05-19 Kenichi Handa <handa@m17n.org>
16457
16458 * font.c (font_list_entities): Fix handling of cache.
16459 (font_matching_entity): Likewise.
16460
16461 * ftfont.c (cs_iso8859_1): Delete.
16462 (ft_face_cache): New variable.
16463 (struct ftfont_info): New member fc_charset_idx.
16464 (ftfont_build_basic_charsets): Delete.
16465 (fc_charset_table): New variable.
16466 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16467 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16468 Callers changed.
16469 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16470 (ftfont_spec_pattern): New argument fc_charset_idx.
16471 Check registry more rigidly. Change callers.
16472 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16473 change of :font-entity property of the font.
16474
16475 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16476 property of the font.
16477
164782008-05-18 Juanma Barranquero <lekktu@gmail.com>
16479
16480 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16481 (Funencodable_char_position, Fcheck_coding_systems_region)
16482 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16483 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16484 (Ffind_operation_coding_system, Fset_coding_system_priority)
16485 (Fcoding_system_eol_type): Doc fixes.
16486
164872008-05-17 Glenn Morris <rgm@gnu.org>
16488
16489 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16490
164912008-05-16 Eli Zaretskii <eliz@gnu.org>
16492
16493 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16494 and st_gid.
16495
16496 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16497 HAVE_WINDOW_SYSTEM is not defined.
16498
16499 * xfaces.c (merge_face_ref, merge_face_vectors)
16500 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16501 HAVE_WINDOW_SYSTEM is defined.
16502 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16503
165042008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16505
16506 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16507
165082008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16509
16510 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16511
165122008-05-15 Kenichi Handa <handa@m17n.org>
16513
16514 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16515 preference.
16516
165172008-05-15 Glenn Morris <rgm@gnu.org>
16518
16519 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16520
165212008-05-15 Chong Yidong <cyd@stupidchicken.com>
16522
16523 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16524 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16525
16526 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16527
165282008-05-15 Kenichi Handa <handa@m17n.org>
16529
16530 * ftfont.c (ftfont_list): Downcase family name to check generic
16531 families.
16532
16533 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16534 font-spec for QCfont value.
16535
16536 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16537 buffer. Check the return value of it.
16538
165392008-05-14 Jason Rumney <jasonr@gnu.org>
16540
16541 * w32term.c (w32_get_glyph_overhangs): Remove.
16542 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16543
165442008-05-14 Kenichi Handa <handa@m17n.org>
16545
16546 * font.c (font_prop_validate): Make nil a valid value.
16547 (font_clear_cache): Check if the cached vector of entities is nil
16548 or not.
16549
165502008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16551
16552 * emacs.c (main_thread): Conditionalize on
16553 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16554 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16555
16556 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16557 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16558 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16559
165602008-05-14 Kenichi Handa <handa@m17n.org>
16561
16562 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16563 has no corresponding coding system.
16564
165652008-05-14 Jason Rumney <jasonr@gnu.org>
16566
16567 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16568
16569 * w32font.h (w32font_open_internal): Update declaration.
16570
16571 * w32font.c (w32font_open_internal): Change last argument from
16572 w32font_info struct to font object. Fill in font object from
16573 font_entity. Get Outline metrics if possible. Use them to
16574 calculate underline position and thickness. Use xlfd name as name
16575 property. Don't set codepage.
16576 (w32font_open): Pass font_object to w32font_open_internal. Don't
16577 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16578 (w32font_draw): Use s->font.
16579 (clear_cached_metrics): Don't clear non-existent blocks.
16580
16581 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16582 font was not found.
16583 (x_draw_glyph_string): Use underline position and thickness from font.
16584
16585 * w32uniscribe.c (uniscribe_open): Pass font_object to
16586 w32font_open_internal.
16587
165882008-05-14 Kenichi Handa <handa@m17n.org>
16589
16590 These changes are to delete all legacy font-handling codes, and
16591 make Emacs use only font-backends.
16592
16593 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16594 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16595
16596 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16597
16598 * charset.h (Vcharset_non_preferred_head)
16599 (Vcurrent_iso639_language): Extern them.
16600
16601 * charset.c (Vcharset_non_preferred_head): New variable.
16602 (Vcurrent_iso639_language): New variable.
16603 (syms_of_charset): Declare it as a Lisp variable.
16604 (char_charset): Don't check non preferred charsets. As a last
16605 resort, return charset_unicode.
16606 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16607
16608 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16609 conditionals. Don't check enable_font_backend. Delete all codes
16610 used only when USE_FONT_BACKEND is not defined.
16611
16612 * dispextern.h (struct glyph_string): Change type of `font' to
16613 `struct font *'.
16614 (struct glyph_string): New member underline_position and
16615 underline_thickness.
16616 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16617 (struct face): Change type of `font' to `struct font *'. Remove
16618 members `font_name', `font_info_id'.
16619 (per_char_metric, encode_char): Delete externs.
16620 (calc_pixel_width_or_height): Adjust the prototype.
16621
16622 * emacs.c (enable_font_backend): Delete extern.
16623 (main): Don't set enable_font_backend. Don't check the command
16624 line argument "-disable-font-backend".
16625
16626 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16627 (enum font_property_index): New members FONT_DPI_INDEX,
16628 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16629 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16630 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16631 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16632 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16633 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16634 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16635 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16636 (struct font_spec, struct font_entity): New structs.
16637 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16638 (struct font): Many members from old "struct font_info" moved to
16639 here. Members font and entity deleted.
16640 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16641 the new font-related objects.
16642 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16643 (CHECK_FONT_GET_OBJECT): Likewise.
16644 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16645 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16646 (struct font_driver): New members case_sensitive anc check. Type
16647 of the member list and open changed.
16648 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16649 (font_symbolic_width, font_find_object, font_get_spec)
16650 (font_set_lface_from_name): Delete extern.
16651 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16652
16653 * font.c: Include <strings.h>.
16654 (enable_font_backend): Delete it.
16655 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16656 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16657 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16658 (null_string): Delete it.
16659 (null_vector): Make it static.
16660 (font_family_alist): Delete it.
16661 (Qnormal): Extern it.
16662 (QCextra, QClanguage): Delete it.
16663 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16664 (font_make_spec, font_make_entity, font_make_object)
16665 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16666 the string. Callers changed.
16667 (font_pixel_size): Adjusted for the format change of font-related
16668 objects.
16669 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16670 (font_style_to_value, font_style_symbolic): New function.
16671 (build_font_family_alist): Delete it.
16672 (font_registry_charsets): Use Fassoc_string instead of
16673 assq_no_quit.
16674 (font_prop_validate_symbol): Don't return null_string.
16675 (font_prop_validate_style): Adjusted for the change of
16676 style-related values in a font vector.
16677 (font_property_table): Delete entries for QClanguage and
16678 QCantialias, add entries for QCavgwidth.
16679 (get_font_prop_index): Delete the 2nd argument FROM.
16680 (font_prop_validate): Arguments changed.
16681 (font_put_extra): Adjusted for the change of font-related objects.
16682 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16683 (font_parse_fcname, font_unparse_fcname)
16684 (font_prepare_composition): Likewise.
16685 (font_parse_family_registry): Renamed from font_merge_old_spec.
16686 (otf_open): Delete the 1st arg entity.
16687 (font_otf_capability): Adjusted for the above change.
16688 (font_score): New arg alternate_families. Adjusted for the change
16689 of font-related objects.
16690 (font_sort_entites): New arg best_only.
16691 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16692 Delete them.
16693 (font_match_p): Check alternate families.
16694 (font_find_object): Delete it.
16695 (font_check_object): New function.
16696 (font_clear_cache): Adjusted for the change of font-related objects.
16697 (font_delete_unmatched): New arg.
16698 (font_list_entities): Call font_driver->list with a spec that
16699 doesn't specify style-related properties.
16700 (font_matching_entity): Arguments changed. Caller changed.
16701 (font_open_entity): Adjusted for the change of font-related objects.
16702 (font_close_object, font_has_char, font_encode_char)
16703 (font_get_name, font_get_spec): Likewise.
16704 (font_spec_from_name, font_clear_prop, font_update_lface):
16705 New functions.
16706 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16707 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16708 (font_at): Adjusted for the change of font-related objects.
16709 (font_range): New function.
16710 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16711 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16712 (Fcopy_font_spec, Fmerge_font_spec): New function.
16713 (Ffont_family_list): Renamed from list-families.
16714 (Finternal_set_font_style_table): Arguments changed.
16715 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16716 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16717 change of font-related objects.
16718 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16719
16720 * fontset.h (struct font_info): Delete it. Most members go to
16721 struct font.
16722 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16723 (enum FONT_SPEC_INDEX): Delete it.
16724 (font_info, list_fonts_func, load_font_func, query_font_func)
16725 (set_frame_fontset_func, find_ccl_program_func)
16726 (get_font_repertory_func, new_fontset_from_font_name): Delete
16727 externs.
16728 (fontset_from_font_name): Extern it.
16729 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16730 (FONT_INFO_FROM_FACE): Deleted.
16731 (face_for_font): Adjust prototype.
16732
16733 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16734 conditionals. Don't check enable_font_backend. Delete all codes
16735 used only when USE_FONT_BACKEND is not defined.
16736 (get_font_info_func, list_font_func, load_font_func)
16737 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16738 (get_font_repertory_func): Delete them.
16739 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16740 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16741 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16742 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16743 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16744 (fontset_compare_rfontdef): New function.
16745 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16746 rfont-defs by qsort. Adjusted for the change of font-group vector.
16747 (load_font_get_repertory): Deleted.
16748 (fontset_find_font): Use new macros to ref/set elements of
16749 font-def and rfont-def.
16750 (fontset_font): Fix the timing of remembering that no font for C.
16751 (free_face_fontset): Do nothing if the face has no fontset.
16752 (face_suitable_for_char_p): Use new macros to ref/set elements of
16753 rfont-def.
16754 (face_for_char): Likewise. Call face_for_char with font_object.
16755 (fs_load_font): Delete. Delete #pragma surrounding it.
16756 (fs_query_fontset): Use strcasecmp instead of strcmp.
16757 (generate_ascii_font_name): Adjusted for the format change of
16758 font-spec.
16759 (Fset_fontset_font): Likewise. Use new macros to set elements of
16760 font-def.
16761 (Fnew_fontset): Use font_unparse_xlfd to generate
16762 FONTSET_ASCII (fontset).
16763 (new_fontset_from_font_name): Deleted.
16764 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16765 a fontset is already created for the font. FIx updating of
16766 Vfontset_alias_alist.
16767 (fontset_ascii_font): Deleted.
16768 (Ffont_info): Adjusted for the format change of font-spec.
16769 (Finternal_char_font): Likewise.
16770 (Ffontset_info): Likewise.
16771 (syms_of_fontset): Don't check load_font_func.
16772
16773 * fns.c (internal_equal): Handle PREV_FONT.
16774
16775 * frame.h: Delete USE_FONT_BACKEND conditional.
16776
16777 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16778 conditionals. Don't check enable_font_backend. Delete all codes
16779 used only when USE_FONT_BACKEND is not defined.
16780 (x_set_font): Call x_new_font, not x_new_fontset2.
16781 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16782 already set for the frame.
16783
16784 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16785 a font-entity by font_make_entity. Use font_intern_prop instead
16786 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16787 font property. If a font is scalable, set avgwidth property to 0.
16788 Set font-entity property by font_put_extra.
16789 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16790 (ffont_driver): Adjusted for the change of struct font_driver.
16791 (ftfont_spec_pattern): New function.
16792 (ftfont_list): Return a list, not vector.
16793 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16794 (ftfont_list_family): Don't downcase names.
16795 (ftfont_free_entity): Deleted.
16796 (ftfont_open): Return a font-object. Adjusted for the change of
16797 struct font. Get underline_thickness and underline_position from
16798 font property. Don't update dpyinfo->smallest_font_height and
16799 dpyinfo->smallest_char_width.
16800 (ftfont_close): Don't free `struct font'.
16801 (ftfont_has_char): Adjusted for the format change of font-entity.
16802 (ftfont_encode_char, ftfont_text_extents): Likewise.
16803
16804 * ftxfont.c (ftxfont_list): Return a list, not vector.
16805 (ftxfont_open): Return a font-object. Adjusted for the change of
16806 struct font. Get underline_thickness and underline_position from
16807 font property. Don't update dpyinfo->smallest_font_height and
16808 dpyinfo->smallest_char_width.
16809 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16810 (ftxfont_draw): Adjusted for the change of struct font.
16811
16812 * image.c (image_ascent): Don't include "charset.h". Include
16813 "character.h" and "font.h".
16814
16815 * lisp.h (enum pvec_type): New member PREV_FONT.
16816 (Fassoc_string): EXFUN it.
16817
16818 * print.c: Include font.h.
16819 (print_object): Handle font-related objects.
16820
16821 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16822 conditionals. Don't check enable_font_backend. Delete all codes
16823 used only when USE_FONT_BACKEND is not defined.
16824 (handle_auto_composed_prop): Do nothing if it->f is not on a
16825 window system. Check how many following characters can be
16826 displayed by the same font.
16827 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16828 'struct font *'.
16829 (get_char_face_and_encoding): Assign the whole encoding task to
16830 the `encode-char' method of a font driver.
16831 (fill_composite_glyph_string): Adjusted for the change of `struct
16832 face' and `struct glyph_string'.
16833 (fill_glyph_string): Likewise.
16834 (get_per_char_metric): Arguments changed.
16835 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16836 and `struct glyph_string'.
16837 (produce_stretch_glyph, calc_line_height_property)
16838 (x_produce_glyphs): Likewise.
16839
16840 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16841 conditionals. Don't check enable_font_backend. Delete all codes
16842 used only when USE_FONT_BACKEND is not defined. Use
16843 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16844 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16845 (Qp): Extern them.
16846 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16847 Deleted.
16848 (struct font_name): Deleted.
16849 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16850 (compare_fonts_by_sort_order): New function.
16851 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16852 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16853 Deleted.
16854 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16855 compare_fonts_by_sort_order.
16856 (Fx_font_family_list): Call Ffont_family_list.
16857 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16858 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16859 (face_symbolic_slant, face_symbolic_swidth)
16860 (split_font_name_into_vector, build_font_name_from_vector)
16861 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16862 (font_rescale_ratio, split_font_name, build_font_name)
16863 (free_font_names, sort_fonts, x_face_list_fonts)
16864 (face_font_available_p, sorted_font_list, cmp_font_names)
16865 (font_list_1, concat_font_list, font_list, remove_duplicates):
16866 Deleted.
16867 (Fx_list_fonts): Use Ffont_list.
16868 (LFACE_AVGWIDTH): Deleted.
16869 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16870 by FONTP.
16871 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16872 (set_lface_from_font_name): Delete it.
16873 (set_lface_from_font): Renamed from
16874 set_lface_from_font_and_fontset. Caller changed. Don't set
16875 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16876 for face.
16877 (merge_face_vectors): Copy font-spec if necessary.
16878 Clear properties of the font-spec if necessary.
16879 (merge_face_ref): Clear properties of the font-spec if necessary.
16880 (Finternal_set_lisp_face_attribute): Likewise.
16881 (set_font_frame_param): Use font_load_for_lface to load a
16882 font-object, and call Fmodify_frame_parameters with it.
16883 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16884 font name by Ffont_xlfd_name.
16885 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16886 QCslant, and QCwidth.
16887 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16888 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16889 Compare fonts by EQ.
16890 (lookup_non_ascii_face): Deleted.
16891 (face_for_font): The 2nd argument changed.
16892 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16893 Check atomic font properties by case insensitive.
16894 (realize_non_ascii_face): Set face->overstrike correctly.
16895 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16896 (dump_realized_face): Get font name from
16897 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16898
16899 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16900 conditionals. Don't check enable_font_backend. Delete all codes
16901 used only when USE_FONT_BACKEND is not defined.
16902 (xic_create_xfontset): Original code deleted and renamed from
16903 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16904 (x_make_gc): Don't set GCFont in GCs.
16905 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16906 opened by "fixed".
16907 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16908 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16909 get_font_repertory_func.
16910
16911 * xfont.c: Include <stdlib.h> and "ccl.h".
16912 (struct xfont_info): New structure.
16913 (xfont_query_font): Deleted.
16914 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16915 moved from xterm.c.
16916 (xfont_driver): Adjusted for the change of struct font_driver.
16917 (compare_font_names): New function.
16918 (xfont_list_pattern): Sort font names case insensitively. Make
16919 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16920 (xfont_list): Return a list, not vector.
16921 (xfont_match): If the font doesn't have QCname property, generate
16922 a name from the other font properties.
16923 (xfont_open): Return a font-object. Adjusted for the change of
16924 struct font. Get underline_thickness and underline_position from
16925 font property. Don't update dpyinfo->smallest_font_height and
16926 dpyinfo->smallest_char_width.
16927 (xfont_close): Don't free struct font.
16928 (xfont_prepare_face): Adjusted for the change of struct font.
16929 (xfont_done_face): Deleted.
16930 (xfont_has_char): Adjusted for the change of struct font.
16931 (xfont_encode_char, xfont_draw): Likewise.
16932 (xfont_check): New function.
16933
16934 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16935 callback function.
16936 (xftfont_match): Adjusted for the format change of font-entity.
16937 (xftfont_open): Adjusted for the format change of font-entity and
16938 font-object. Adjusted for the change of struct font. Return a
16939 font-object. Don't update dpyinfo->smallest_font_height and
16940 dpyinfo->smallest_char_width.
16941 (xftfont_close): Block input while calling XftFontClose.
16942 (xftfont_prepare_face): Don't block input while calling
16943 xftfont_get_colors. Adjusted for the change of struct font.
16944 (xftfont_shape): Return value of error case fixed.
16945
16946 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16947
16948 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16949 conditionals.
16950 (FONT_WIDTH): Return (f)->max_width.
16951 (struct x_display_info): Delete member `font'.
16952 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16953 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16954 (struct x_output): Change type of `font' to `struct font *'.
16955
16956 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16957 conditionals. Don't check enable_font_backend. Delete all codes
16958 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16959 (x_per_char_metric, x_encode_char): Deleted.
16960 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16961 (x_compute_glyph_string_overhangs): Adjusted for the change of
16962 `struct face'.
16963 (x_draw_glyph_string_foreground)
16964 (x_draw_composite_glyph_string_foreground): Likewise.
16965 (x_draw_glyph_string): Likewise. Use font->underline_position and
16966 font->underline_thickness.
16967 (x_new_font): Renamed from x_new_fontset2.
16968 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16969 (x_check_font): Call `check' method of a font driver.
16970 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16971 (x_query_font, x_get_font_repertory): Deleted.
16972 (x_find_ccl_program): Renamed and moved to xfont.c.
16973 (x_redisplay_interface): Adjusted for the change of `struct
16974 redisplay_interface'.
16975
16976 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16977 conditionals. Don't check enable_font_backend. Delete all codes
16978 used only when USE_FONT_BACKEND is not defined. Surround non-used
16979 code by "#ifdef OLD_FONT" and "endif".
16980 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16981
16982 * w32font.h (struct w32font_info): New member.
16983 (FONT_COMPAT): New macro.
16984 (w32font_open_internal): Prototype adjusted.
16985
16986 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16987 OLD_FONT" and "endif".
16988
16989 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16990 conditionals. Don't check enable_font_backend. Delete all codes
16991 used only when USE_FONT_BACKEND is not defined.
16992 (w32font_open): Return a font-object. Make a font-object by
16993 font_make_object. Adjusted for the change of struct w32font_info.
16994 (w32font_close): Don't free struct font. Adjusted for the change
16995 of struct w32font_info.
16996 (w32font_encode_char, w32font_text_extents, w32font_draw):
16997 Adjusted for the change of struct w32font_info.
16998 (w32font_draw): Likewise.
16999 (w32font_list_internal): Return a list, not vector.
17000 (w32font_open_internal): Change the 4th arg to font-object.
17001 Adjusted for the change of struct w32font_info and font-object format.
17002 (add_font_name_to_list): Don't downcase names.
17003 (w32_enumfont_pattern_entity): Make a font-entity by
17004 font_make_entity. Adjusted for the format change of font-entity.
17005 Use FONT_SET_STYLE to set a style-related font property. If a
17006 font is scalable, set avgwidth property to 0. Set font-entity
17007 property by font_put_extra.
17008 (font_matches_spec): Adjusted for the format change of font-entity.
17009 (w32_weight_table, w32_decode_weight): New variables.
17010 (w32_encode_weight): New function.
17011 (fill_in_logfont): Adjusted for the format change of font-spec.
17012 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17013 weight value.
17014 (w32font_driver): Adjusted for the change of struct font_driver.
17015
17016 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17017 conditionals. Don't check enable_font_backend. Surround non-used
17018 code by "#ifdef OLD_FONT" and "endif".
17019 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17020 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17021
17022 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17023 conditionals. Don't check enable_font_backend. Delete all codes
17024 used only when USE_FONT_BACKEND is not defined. Surround non-used
17025 code by "#ifdef OLD_FONT" and "endif".
17026
17027 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17028 (uniscribe_open): Return value changed to font-object.
17029 Adjusted for the format change of font-object.
17030 (uniscribe_otf_capability): Adjusted for the change of struct font.
17031 (add_opentype_font_name_to_list): Don't downcase names.
17032 (uniscribe_font_driver): Adjusted for the change of struct
17033 font_driver.
17034
170352008-05-13 Chong Yidong <cyd@stupidchicken.com>
17036
17037 * dispnew.c (update_frame_1): Check if tty output is still valid
17038 before flushing it.
17039
170402008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17041
17042 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17043 to Gtk+ menus.
17044
170452008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17046
17047 * dired.c (file_name_completion): Tweak the code so as to always do it
17048 in a single pass. Tighten the scope of some variables.
17049
17050 * dired.c (Qdefault_directory): New var.
17051 (file_name_completion): Use it instead of Fexpand_file_name.
17052 (syms_of_dired): Initialize it.
17053
170542008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17055
17056 * fileio.c (double_dollars): Remove dead code.
17057
170582008-05-10 Eli Zaretskii <eliz@gnu.org>
17059
17060 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17061 Mention w32-get-true-file-attributes in doc string.
17062
17063 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17064
170652008-05-09 Glenn Morris <rgm@gnu.org>
17066
17067 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17068 2008-04-23.
17069
170702008-05-09 Eli Zaretskii <eliz@gnu.org>
17071
17072 Support for reporting owner and group of each file on MS-Windows:
17073 * dired.c (stat_uname, stat_gname): New functions, with special
17074 implementation for w32.
17075 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17076
17077 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17078 (dflt_group_name): New static variable.
17079 (dflt_group): Rename from the_group.
17080 (init_user_info): Init dflt_group fields. Get user's group name
17081 from LookupAccountSid.
17082 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17083 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17084 New initialization states.
17085 (globals_of_w32): Initialize them to zero. Initialize the default
17086 group name to "None".
17087 (GetFileSecurity_Name): New global var, the name of the function
17088 to call for GetFileSecurity.
17089 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17090 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17091 (get_file_security, get_security_descriptor_owner)
17092 (get_security_descriptor_group, is_valid_sid)
17093 (get_file_security_desc, get_rid, get_name_and_id)
17094 (get_file_owner_and_group): New functions.
17095 (stat): Use get_file_security_desc and get_file_owner_and_group to
17096 report the owner and primary group of each file. Don't ignore the
17097 high 32 bits of file's size, now that st_size is 64-bit wide.
17098 Fix test when to get true file attributes.
17099 (init_user_info): Use get_rid instead of equivalent inline code.
17100 (fstat): Don't ignore the high 32 bits of file's size.
17101
171022008-05-09 Chong Yidong <cyd@stupidchicken.com>
17103
17104 * image.c (png_load): Use correct bit-depth for setting background
17105 color.
17106
171072008-05-08 Eli Zaretskii <eliz@gnu.org>
17108
17109 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17110 epa-hook.elc.
17111
171122008-05-08 Juanma Barranquero <lekktu@gmail.com>
17113
17114 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17115
171162008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17117
17118 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17119 because the original parameters are in pure storage now.
17120 (mac_window): Remove unused params. Update callers.
17121
171222008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17123
17124 * lread.c (substitute_object_recurse): Use lower-level primitives.
17125 Don't signal errors when traversing sub-char-tables.
17126 Don't loop over all the possible characters when traversing char-tables.
17127
17128 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17129 just like we do in print.c.
17130
171312008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17132
17133 * minibuf.c (Ftry_completion): Remove code left over from when we used
17134 scmp instead of Fcompare_strings.
17135
171362008-05-04 Juanma Barranquero <lekktu@gmail.com>
17137
17138 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17139
171402008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17141
17142 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17143 Create bitmap context in native byte order.
17144
17145 * macterm.c (XDrawLine)
17146 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17147 context in native byte order.
17148
171492008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17150
17151 * config.in: Regenerate.
17152
17153 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17154 New definitions for Image I/O support.
17155 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17156 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17157 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17158 (mac_data_provider_release_data, image_load_image_io)
17159 [USE_MAC_IMAGE_IO]: New functions.
17160 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17161 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17162 (init_image_func_pointer) [MAC_OSX]: Remove function.
17163 (image_load_quartz2d) [MAC_OSX]: Check availability of
17164 CGImageCreateWithPNGDataProvider at compile time.
17165 Use lowercase `false' for boolean constant.
17166 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17167 Use image_load_image_io.
17168 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17169 Don't check MyCGImageCreateWithPNGDataProvider.
17170 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17171 Don't call init_image_func_pointer.
17172
17173 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17174
17175 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17176 Make variable non-static.
17177 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17178 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17179
17180 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17181 (RED_FROM_ULONG): Mask off higher bits.
17182 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17183
17184 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17185 Include AvailabilityMacros.h.
17186 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17187 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17188
171892008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17190
17191 * chartab.c (Fset_char_table_range): If range is t, really set all
17192 chars to that value.
17193
171942008-05-03 Eli Zaretskii <eliz@gnu.org>
17195
17196 * dired.c (Ffile_attributes): Don't allow the device number become
17197 negative.
17198
171992008-05-02 Daiki Ueno <ueno@unixuser.org>
17200
17201 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17202
172032008-05-02 Juri Linkov <juri@jurta.org>
17204
17205 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17206 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17207 DEFAULT argument as a list of default values in docstrings.
17208
172092008-05-01 Chong Yidong <cyd@stupidchicken.com>
17210
17211 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17212
172132008-05-01 Martin Rudalics <rudalics@gmx.at>
17214
17215 * dispnew.c (change_frame_size_1): Preserve small windows when
17216 shrinking frames by calling set_window_height|width with third
17217 arg 2.
17218
17219 * window.h (struct window): Replace field too_small_ok by field
17220 resize_proportionally.
17221
17222 * window.c (make_window): Initialize resize_proportionally.
17223 (enlarge_window): Temporarily set resize_proportionally to make
17224 sure that shrink_windows does scale the window proportionally.
17225 (shrink_windows): When window has resize_proportionally set try
17226 to shrink it proportionally by stealing from other windows.
17227 (struct saved_window, Fset_window_configuration)
17228 (compare_window_configurations): Handle resize_proportionally.
17229 (WINDOW_TOTAL_SIZE): New macro.
17230 (window_min_size, shrink_windows, size_window): Use it.
17231 (check_min_window_sizes): Remove. Invalid values of
17232 window-min-height|width are handled by window_min_size_2 now.
17233 (size_window, Fsplit_window, enlarge_window)
17234 (adjust_window_trailing_edge, grow_mini_window): Don't call
17235 check_min_window_sizes.
17236 (window_min_size_2, window_min_size_1, window_min_size):
17237 New argument safe_p for retrieving "safe" minimum sizes.
17238 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17239 (adjust_window_trailing_edge, grow_mini_window):
17240 Adjust arguments of window_min_size... functions.
17241 (shrink_windows): Argument min_size removed. New argument
17242 safe_p allows shrinking windows to their safe minimum sizes.
17243 Calculate minimum size and decide whether a window shall be
17244 deleted for each window individually.
17245 (size_window): When nodelete_p equals 2, tell shrink_windows to
17246 delete windows only if their new minimum size is no more safe.
17247 (shrink_window_lowest_first): Call window_min_size_1 to make
17248 sure to preserve modeline of bottom-most window when resizing
17249 the minibuffer.
17250 (Fset_window_configuration, Fcurrent_window_configuration)
17251 (compare_window_configurations): Do not handle
17252 window-min-height|width any more.
17253 (syms_of_window): Clarify window-min-height|width doc-strings.
17254
172552008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17256
17257 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17258 some more. Copy some of the code from Ftry_completions.
17259 Remove special case code that dates back to initial revision when the
17260 slash was only added when necessary and that can't trigger nowadays.
17261
172622008-04-27 Kenichi Handa <handa@m17n.org>
17263
17264 * font.c (font_prop_validate): Signal `error' instead of `font'.
17265
172662008-04-29 Jason Rumney <jasonr@gnu.org>
17267
17268 * w32fns.c (Fw32_battery_status): New defun.
17269 (syms_of_w32fns): Defsubr it.
17270
172712008-04-28 Andreas Schwab <schwab@suse.de>
17272
17273 * dired.c (file_name_completion): Fix another mixing of encoded
17274 and decoded names.
17275
172762008-04-28 Juanma Barranquero <lekktu@gmail.com>
17277
17278 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17279
172802008-04-27 Juanma Barranquero <lekktu@gmail.com>
17281
17282 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17283
172842008-04-27 Andreas Schwab <schwab@suse.de>
17285
17286 * dired.c (file_name_completion): Fix inappropriate mixing of
17287 encoded and decoded names.
17288
17289 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17290
17291 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17292
172932008-04-26 Eli Zaretskii <eliz@gnu.org>
17294
17295 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17296 2008-03-31, it's not needed anymore with `struct stat' definition
17297 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17298 for the same reasons.
17299
173002008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17301
17302 * m/sparc.h: Additional redefinitions for GNU/Linux.
17303
173042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17305
17306 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17307 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17308 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17309 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17310 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17311 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17312 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17313 Likewise.
17314
17315 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17316 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17317 (mac_ax_number_of_characters): Add externs.
17318 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17319 [USE_MAC_TSM]: Likewise.
17320 (mac_handle_text_input_event) [MAC_OSX]:
17321 Handle kEventTextInputOffsetToPos for no active input area case.
17322 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17323 (mac_handle_document_access_event)
17324 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17325 (install_application_handler) [MAC_OSX]: Register handlers for
17326 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17327 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17328 Register mac_handle_document_access_event.
17329
17330 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17331 Make functions non-static.
17332
173332008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17334
17335 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17336 (read_file_name_completion_ignore_case, insert_default_directory)
17337 (Qdefault_directory): Move to minibuffer.el.
17338 (Fread_file_name): Call the new `read-file-name' instead.
17339
173402008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17341
17342 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17343 Make function non-static.
17344 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17345 Remove function.
17346 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17347 Move to mactoolbox.c.
17348 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17349
17350 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17351 (mac_rect_make): New macro.
17352
17353 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17354 instead of float.
17355 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17356 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17357 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17358 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17359 CGRectMake.
17360 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17361 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17362 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17363 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17364 instead of WindowRef in argument type.
17365 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17366 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17367 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17368 instead of DISPLAY. All uses changed.
17369 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17370 (x_calc_absolute_position): Simplify so as not to use
17371 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17372
17373 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17374 instead of WindowRef in argument type.
17375 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17376 [TARGET_API_MAC_CARBON]: Remove externs.
17377 (create_apple_event, mac_event_parameters_to_lisp)
17378 [TARGET_API_MAC_CARBON]: Add externs.
17379
17380 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17381 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17382 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17383 is clicked.
17384 (x_activate_menubar): Remove extern for saved_menu_event_location.
17385 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17386 Move from mac.c.
17387
173882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17389
17390 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17391 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17392
173932008-04-23 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17396 attributes only for local files.
17397
17398 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17399 default to Qlocal.
17400
174012008-04-22 Juri Linkov <juri@jurta.org>
17402
17403 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17404 read-buffer-to-switch instead of using the letter "B".
17405
174062008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17407
17408 * fileio.c (Qdefault_directory): New variable.
17409 (Fread_file_name): Use it to pass `dir' to the completion functions.
17410
174112008-04-20 Chong Yidong <cyd@stupidchicken.com>
17412
17413 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17414
174152008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17416
17417 * keyboard.c (Vpre_help_message): Remove.
17418 (show_help_echo): Remove default C code.
17419
17420 * dired.c (directory_files_internal, file_name_completion):
17421 Only call ENCODE_FILE if the string is indeed decoded.
17422
174232008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17424
17425 * Makefile.in (TOOLKIT_DEFINES): Remove.
17426 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17427
174282008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17429
17430 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17431 (mactoolbox.o): New target.
17432
17433 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17434 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17435
17436 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17437 Use mac_set_frame_window_background instead of XSetWindowBackground.
17438 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17439 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17440 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17441 instead of SetWindowTitleWithCFString.
17442 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17443 Move function to mactoolbox.c.
17444 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17445 Use mac_set_window_modified instead of SetWindowModified.
17446 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17447 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17448 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17449 FrontNonFloatingWindow. Use mac_activate_window instead of
17450 ActivateWindow. Use mac_active_non_floating_window instead of
17451 ActiveNonFloatingWindow.
17452 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17453 Use mac_show_hourglass and mac_hide_hourglass.
17454 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17455 instead of GetGlobalMouse.
17456 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17457 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17458 Use mac_bring_window_to_front instead of BringToFront.
17459 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17460 mactoolbox.c.
17461 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17462 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17463 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17464 mactoolbox.c.
17465
17466 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17467 (XtPointer): Move typedef from macmenu.c.
17468 (enum button_type): Move enum from macmenu.c.
17469 (widget_value): Move typedef from macmenu.c.
17470 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17471 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17472 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17473 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17474 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17475 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17476 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17477 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17478 (Selection): Move typedef from macselect.c.
17479 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17480 macterm.c.
17481 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17482 (mac_is_window_collapsed, mac_bring_window_to_front)
17483 (mac_send_window_behind, mac_hide_window, mac_show_window)
17484 (mac_collapse_window, mac_front_non_floating_window)
17485 (mac_active_non_floating_window, mac_activate_window)
17486 (mac_move_window_structure, mac_move_window, mac_size_window)
17487 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17488
17489 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17490 (enum mac_menu_kind): Move enum to mactoolbox.c.
17491 (min_menu_id): Move variable to mactoolbox.c.
17492 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17493 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17494 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17495 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17496 [TARGET_API_MAC_CARBON]: Likewise.
17497 (XtPointer): Move typedef to macgui.h.
17498 (enum button_type): Move enum to macgui.h.
17499 (widget_value): Move typedef to macgui.h.
17500 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17501 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17502 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17503 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17504 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17505 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17506 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17507 (popup_activated_flag): Make variable non-static.
17508 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17509 (add_menu_item, fill_menu, dispose_menus):
17510 Move functions to mactoolbox.c.
17511 (restore_show_help_function, menu_target_item_handler)
17512 (install_menu_target_item_handler, mac_handle_dialog_event)
17513 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17514 [TARGET_API_MAC_CARBON]: Likewise.
17515 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17516 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17517 (find_and_call_menu_selection, name_is_separator): Make function
17518 non-static.
17519 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17520 to mactoolbox.c.
17521 (set_frame_menubar): Don't call install_menu_quit_handler.
17522 (menu_item_selection): New variable.
17523 (mac_menu_show): Use create_and_show_popup_menu.
17524 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17525 selection but set variable menu_item_selection. All uses changed.
17526 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17527 Call install_menu_quit_handler. Move to mactoolbox.c.
17528
17529 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17530 (Selection): Move typedef to macgui.h.
17531 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17532 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17533 Make variables non-static.
17534 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17535 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17536 Make functions non-static.
17537 (Vmac_service_selection) [MAC_OSX]: Likewise.
17538 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17539 (mac_valid_selection_target_p, mac_clear_selection)
17540 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17541 (mac_put_selection_value, mac_selection_has_target_p)
17542 (mac_get_selection_value, mac_get_selection_target_list)
17543 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17544 Move functions to mactoolbox.c.
17545 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17546 Likewise.
17547 (copy_scrap_flavor_data, mac_handle_service_event)
17548 (install_service_handler) [MAC_OSX]: Likewise.
17549 (syms_of_macselect) <Vmac_dnd_known_types>:
17550 Use mac_dnd_default_known_types.
17551
17552 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17553 Move to mactoolbox.c.
17554 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17555 (Fx_selection_owner_p): Add EXFUN.
17556 (install_window_handler, remove_window_handler, XSetWindowBackground):
17557 Remove externs.
17558 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17559 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17560 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17561 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17562 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17563 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17564 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17565 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17566 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17567 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17568 (mac_valid_selection_target_p, mac_clear_selection)
17569 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17570 (mac_put_selection_value, mac_selection_has_target_p)
17571 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17572 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17573 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17574 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17575 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17576 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17577 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17578 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17579 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17580
17581 * mactoolbox.c: New file.
17582
175832008-04-18 Jason Rumney <jasonr@gnu.org>
17584
17585 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17586
175872008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17588
17589 * character.c (Fmultibyte_char_to_unibyte):
17590 Return latin1 chars unchanged.
17591
17592 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17593 relocated if it points to `name'.
17594
175952008-04-17 Kenichi Handa <handa@m17n.org>
17596
17597 * data.c (Faset): Allow setting a multibyte character in an
17598 ASCII-only unibyte string.
17599
17600 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17601
176022008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17603
17604 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17605 done in config.h.
17606
176072008-04-16 Juanma Barranquero <lekktu@gmail.com>
17608
17609 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17610 (Fchar_direction): Add usage in the docstring.
17611
176122008-04-15 Chong Yidong <cyd@stupidchicken.com>
17613
17614 * keyboard.c (read_key_sequence): Remove always-true checks.
17615
176162008-04-14 Jason Rumney <jasonr@gnu.org>
17617
17618 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17619 compatibility struct, for better underline positioning.
17620
176212008-04-13 David Hansen <david.hansen@gmx.net>
17622
17623 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17624 string.
17625
176262008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17627
17628 * m/hp800.h (XUINT, XSET): Remove.
17629
176302008-04-12 Juanma Barranquero <lekktu@gmail.com>
17631
17632 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17633 previous change.
17634
176352008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17636
17637 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17638 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17639
176402008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17641
17642 * keymap.h (map_keymap_canonical): Declare.
17643 * xmenu.c (single_keymap_panes): Use it.
17644
176452008-04-11 Glenn Morris <rgm@gnu.org>
17646
17647 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17648 set the target's value to that of the alias.
17649
176502008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17651
17652 * term.c (set_tty_color_mode): Left over typo.
17653
176542008-04-10 Michael Albinus <michael.albinus@gmx.de>
17655
17656 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17657 only after check for file name handler functions. Signal, when
17658 native functionality is not supported.
17659 (syms_of_fileio): Declare it unconditionally.
17660
176612008-04-10 Jason Rumney <jasonr@gnu.org>
17662
17663 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17664 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17665
17666 * w32.c (logon_network_drive): Also logon to remote drives that
17667 are mapped to drive letters.
17668
176692008-04-10 Glenn Morris <rgm@gnu.org>
17670
17671 * xdisp.c (truncate-partial-width-windows): Doc fix.
17672
176732008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17674
17675 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17676 Move functions to minibuffer.el.
17677 (syms_of_fileio): Don't declare them.
17678
176792008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17680
17681 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17682 (syms_of_minibuf): Remove its initialization.
17683
17684 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17685
176862008-04-09 Juanma Barranquero <lekktu@gmail.com>
17687
17688 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17689
176902008-04-09 Jason Rumney <jasonr@gnu.org>
17691
17692 * makefile.w32-in (distclean): Delete makefile too.
17693 (maintainer-clean): New target.
17694
17695 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17696
17697 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17698 for new font backend and composite cases.
17699
177002008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17701
17702 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17703 Most of the code moved to run_timers.
17704 (do_pending_atimers): Call run_timers.
17705 (run_timers): New function.
17706
17707 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17708 run atimers.
17709
17710 * process.c (wait_reading_process_output): The same as above.
17711
177122008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17713
17714 * minibuf.c (last_exact_completion): Remove variable.
17715 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17716 (complete_and_exit_1, complete_and_exit_2)
17717 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17718 (Fdisplay_completion_list, display_completion_list_1)
17719 (Fminibuffer_completion_help, Fself_insert_and_exit)
17720 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17721 minibuffer.el.
17722 (syms_of_minibuf): Remove corresponding initializations.
17723
17724 * keyboard.c (Qdeactivate_mark): New var.
17725 (command_loop_1): Use it to call `deactivate-mark'.
17726 (syms_of_keyboard): Initialize it.
17727
17728 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17729 to another frame.
17730 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17731 Don't call set_tty_color_mode.
17732 (store_frame_param): Reset previous_frame rather than call
17733 set_tty_color_mode.
17734 * term.c (set_tty_color_mode): Rewrite.
17735 * dispextern.h (set_tty_color_mode): New type.
17736 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17737
177382008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17739
17740 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17741 for generic chars, which do not exist any more in emacs-unicode.
17742
177432008-04-08 Michael Albinus <michael.albinus@gmx.de>
17744
17745 * coding.c (detect_coding_emacs_mule)
17746 (Ffind_operation_coding_system): Fix typo.
17747
177482008-04-08 Jason Rumney <jasonr@gnu.org>
17749
17750 * w32uniscribe.c (SNAME): Extract only symbol name.
17751
17752 * w32font.h (struct w32_metric_cache): New struct.
17753 (w32font_info): Use it.
17754 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17755 (CACHE_BLOCKSIZE): New constants.
17756
17757 * w32font.c (Qja, Qko, Qzh): New symbols.
17758 (syms_of_w32font): Initialise them.
17759 (font_matches_spec): Use them to filter by language.
17760 (recompute_cached_metrics): Remove function.
17761 (compute_metrics, clear_cached_metrics): New functions.
17762 (w32font_encode_char): Use them to manage metric cache.
17763 (w32font_text_extents): Cache metrics for all glyphs on demand.
17764 Delay converting glyph indices to WORD until needed.
17765 (w32font_open_internal): Initialize metric cache to empty.
17766 (registry_to_w32_charset): Charset should always be a symbol.
17767 (fill_in_logfont, list_all_matching_fonts): Family should
17768 always be a symbol.
17769
177702008-04-06 Jason Rumney <jasonr@gnu.org>
17771
17772 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17773 Give up if glyph indices not supported. Use uniscribe obtained
17774 ABC widths for individual metrics. Map glyph clusters back to
17775 characters using fClusterStart flag. Return number of glyphs
17776 produced, not chars processed.
17777 (uniscribe_shape): Map char at FROM to current glyph.
17778
177792008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17780
17781 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17782 Use SetMenuItemHierarchicalMenu.
17783
177842008-04-05 Jason Rumney <jasonr@gnu.org>
17785
17786 * image.c (pbm_load): Allow color values up to 65535.
17787 Throw an error if max_color_idx is outside the supported range.
17788 Report an error when image size is invalid.
17789 Read two bytes at a time when raw images have max_color_idx above 255.
17790
aac0c6e3
MR
177912008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17792
17793 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17794 append "CCL: Quitted" when the CCL program is quitted.
17795 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17796
17797 * ccl.h (struct ccl_program): New member quit_silently.
17798
177992008-04-05 Chong Yidong <cyd@stupidchicken.com>
17800
17801 * search.c (compile_pattern_1): Treat non-nil and non-string of
17802 search-spaces-regexp as nil.
17803
17804 * minibuf.c (Fassoc_string): Tweak docstring.
17805
178062008-04-05 Eli Zaretskii <eliz@gnu.org>
17807
17808 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17809 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17810 2008-03-14 to force inode be positive.
17811
17812 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17813 _S_* ones, since we now use our own sys/stat.h.
17814 (stat, fstat): Don't mangle the inode number.
17815 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17816
178172008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17818
17819 * frame.h (struct frame): Give one more bit to `visible' since we use
17820 values larger than 1 to indicate obscured frames on ttys.
17821
17822 * keymap.c (Qkeymap_canonicalize): New var.
17823 (Fmap_keymap_internal): New fun.
17824 (describe_map): Use keymap-canonicalize.
17825
17826 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17827 (Fundo_boundary): Set them.
17828 (syms_of_undo): Initialize them.
17829 (record_point): Use them instead of last_point_position*.
17830 (last_undo_buffer): Change type.
17831
178322008-04-04 Jason Rumney <jasonr@gnu.org>
17833
17834 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17835 (recompute_cached_metrics): Don't set ascent and descent per char.
17836
17837 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17838 (uniscribe_check_otf): Add GC protection before consing.
17839 Rearrange loop for counting features.
17840
178412008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17842
17843 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17844 buffer with byte-size of source buffer.
17845
178462008-04-03 Chong Yidong <cyd@stupidchicken.com>
17847
17848 * callint.c (Fcall_interactively): Handle temporary region even
17849 when shift-select-mode is off.
17850
178512008-04-03 Jason Rumney <jasonr@gnu.org>
17852
17853 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17854
178552008-04-03 Kenichi Handa <handa@m17n.org>
17856
17857 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17858 (CATEGORY_MASK_UTF_16): Likewise.
17859 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17860 binary file.
17861 (detect_coding): Add null-byte detection for a binary file.
17862 (detect_coding_system): Likewise.
17863
178642008-04-03 Jason Rumney <jasonr@gnu.org>
17865
17866 * w32uniscribe.c: New file.
17867
17868 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17869
17870 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17871
17872 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17873 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17874 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17875 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17876 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17877 (Qphonetic): New symbols.
17878 (syms_of_w32font): Initialize them.
17879 (font_supported_scripts): Use them.
17880 (w32font_list_family): List all charsets.
17881 (w32font_text_extents, recompute_cached_metrics): Fix metric
17882 calculations.
17883 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17884 Give opentype fonts their own format.
17885 (font_matches_spec): New arguments backend and logfont.
17886 Handle :otf spec for uniscribe backend.
17887 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17888 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17889
17890 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17891 font backend.
17892 (globals_of_w32fns): Initialize uniscribe font backend.
17893
17894 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17895 dependencies.
17896 (w32uniscribe.$(O)): New file to build.
17897 (FONT_OBJ): Include w32uniscribe.$(O).
17898 (LIBS): Add uniscribe libraries.
17899
17900 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17901
179022008-04-02 Chong Yidong <cyd@stupidchicken.com>
17903
17904 * callint.c (Vshift_select_mode): New var.
17905 (Finteractive): Document new ^ spec.
17906 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17907 is present.
17908
17909 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17910 (command_loop_1): Avoid running the direct display versions of
17911 forward-char and backward-char if shift-selection may occur.
17912 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17913 shift-translation takes place.
17914
17915 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17916 avoid clobbering by define-minor-mode.
17917
17918 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17919 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17920
17921 * syntax.c (Fforward_word): Add ^ interactive spec.
17922
17923 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17924 (Fscroll_right): Add ^ interactive spec.
17925
179262008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17927
17928 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17929
17930 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17931
17932 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17933
179342008-03-31 Juri Linkov <juri@jurta.org>
17935
17936 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17937
179382008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17939
17940 * gtkutil.c (xg_set_geometry): Fix indentation.
17941 (xg_resize_outer_widget): Remove.
17942 (x_wm_size_hint_off): Fix indentation.
17943 (xg_frame_set_char_size): Call flush_and_sync after
17944 gtk_window_resize.
17945 (x_wm_set_size_hint): Pass NULL as geometry window to
17946 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17947 Add menu bar and tool bar height to base height.
17948 (xg_update_frame_menubar, free_frame_menubar)
17949 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17950 (update_frame_tool_bar, free_frame_tool_bar):
17951 Change xg_resize_outer_widget to xg_frame_set_char_size.
17952
179532008-03-30 Michael Albinus <michael.albinus@gmx.de>
17954
17955 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17956 (Fdbus_call_method): New parameter TIMEOUT.
17957 (dbus-send-signal): Optimize UNGCPRO call.
17958
179592008-03-29 Juri Linkov <juri@jurta.org>
17960
17961 * window.c (Fdisplay_buffer): Move call to
17962 Vsplit_window_preferred_function out of conditions that check
17963 if window is eligible for vertical splitting.
17964 When Vsplit_window_preferred_function is non-nil, call it and use
17965 its non-nil return value as window. Otherwise, continue doing
17966 vertical splitting using Fsplit_window with arg horflag=nil.
17967 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17968 default value from `split-window' to nil.
17969
179702008-03-29 Juri Linkov <juri@jurta.org>
17971
17972 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17973 for interactive code letters 'b' and 'B'.
17974
179752008-03-29 Eli Zaretskii <eliz@gnu.org>
17976
17977 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17978 multibyte string.
17979
179802008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17981
17982 * keyboard.c (pending_funcalls): New var.
17983 (timer_check): Run it.
17984 (syms_of_keyboard): Initialize it.
17985 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17986 (Vdelete_terminal_functions): New vars.
17987 (syms_of_terminal): Initialize them.
17988 (Fdelete_terminal): Run delete-terminal-functions.
17989 * xdisp.c (safe_eval): Rewrite.
17990 (safe_call2): New fun.
17991 * frame.c (Qdelete_frame_functions): New var.
17992 (syms_of_frame): Initialize it.
17993 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17994 * lisp.h (safe_call2, pending_funcalls): Declare.
17995
179962008-03-28 Andreas Schwab <schwab@suse.de>
17997
17998 * indent.c (Fmove_to_column): Move declaration before statements.
17999
180002008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18001
18002 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18003 (struct frame): Use bit fields for boolean vars.
18004
18005 * process.c (server_accept_connection): Simplify naming.
18006 (emacs_get_tty_pgrp): Use SDATA.
18007
18008 * coding.c (decode_coding_object): Fix last change.
18009
180102008-03-27 Jason Rumney <jasonr@gnu.org>
18011
18012 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18013
180142008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18015
18016 * charset.c (Fdefine_charset_internal): Change the way of
18017 registering charsets in Vcharset_order_list.
18018 (syms_of_charset): Make the charset `eight-bit' supplementary.
18019
180202008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18021
18022 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18023 operations, to avoid having the difference between pointers
18024 overflow.
18025
180262008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18027
18028 * indent.c (check_display_width): New fun.
18029 (scan_for_column): Use it.
18030
18031 * data.c (syms_of_data): Mark most-positive-fixnum and
18032 most-negative-fixnum as constants.
18033
18034 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18035
18036 * indent.c (scan_for_column): Extract from current_column_1.
18037 Merge with the same code from Fmove_to_column.
18038 (current_column_1, Fmove_to_column): Use it.
18039
180402008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18041
18042 * keymap.c (map_keymap_internal): New fun.
18043 (map_keymap): Use it.
18044 (Fmap_keymap_internal): New fun.
18045 (Fmap_keymap): Remove left-out test from before make_save_value.
18046
18047 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18048
18049 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18050 Use XCAR/XCDR.
18051
18052 * process.h (struct Lisp_Process): Remove filter_multibyte.
18053 * process.c (QCfilter_multibyte): Remove.
18054 (setup_process_coding_systems): Don't use filter_multibyte.
18055 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18056 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18057 (Fset_process_filter_multibyte): Change the coding-system to
18058 approximate the previous behavior.
18059 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18060 coding-system.
18061
18062 * coding.c (decode_coding_object): When not decoding into a buffer,
18063 obey the coding system's preference of (uni|multi)byte.
18064
180652008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18066
18067 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18068 every char is changed and has a different byte-length.
18069 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18070 Fix int -> EMACS_INT.
18071
180722008-03-23 David Hansen <david.hansen@gmx.net>
18073
18074 * dbusbind.c (xd_read_message): Remove extra copying of message
18075 strings. Check for NULL `interface' or `member'.
18076
180772008-03-22 Eli Zaretskii <eliz@gnu.org>
18078
18079 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18080 cFileName a file name that includes `?' characters, use the 8+3
18081 alias in cAlternateFileName instead.
18082
180832008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18084
18085 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18086
180872008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18088
18089 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18090 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18091 work on current_buffer only instead (that was already the case
18092 for some of the code anyway).
18093 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18094 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18095 (SET_PT, SET_PT_BOTH): Adjust.
18096 * intervals.h (set_point, temp_set_point, set_point_both)
18097 (temp_set_point_both): Remove redundant declarations.
18098
180992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18100
18101 * fileio.c (Finsert_file_contents):
18102 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18103 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18104 when buffer != current_buffer anyway.
18105
181062008-03-20 Andreas Schwab <schwab@suse.de>
18107
18108 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18109 as default.
18110
181112008-03-19 Jason Rumney <jasonr@gnu.org>
18112
18113 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18114 (syms_of_w32fns): Initialize them.
18115 (HOURGLASS_ID): New constant.
18116 (x_window_to_frame): Don't check hourglass_window.
18117 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18118 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18119 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18120 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18121 Only change the cursor if hourglass is not active.
18122 (Fx_create_frame): Initialize frame's current_cursor.
18123 (hourglass_atimer): Remove.
18124 (hourglass_started): New function.
18125 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18126 (show_hourglass): Adapt to w32, changing argument to frame.
18127
18128 * w32term.h (struct w32_output): Remove hourglass_window.
18129 Add current_cursor.
18130
18131 * eval.c (call_debugger, Fsignal):
18132 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18133 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18134 (Fexecute_extended_command, cancel_hourglass_unwind):
18135 * minibuf.c (read_minibuf):
18136 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18137
181382008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18139
18140 * window.c (run_funs): New fun.
18141 (run_window_configuration_change_hook): Use it to run the buffer-local
18142 and the global part of the hook.
18143
18144 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18145 (unwind_format_mode_line): Restore selected window.
18146 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18147
181482008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18149
18150 * editfns.c (Fchar_equal): Check they are valid characters.
18151
18152 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18153
181542008-03-17 Andreas Schwab <schwab@suse.de>
18155
18156 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18157 against a charset.
18158
18159 * lisp.h (Fbuffer_list): Declare.
18160
181612008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18162
aac0c6e3
MR
18163 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18164 handlebox_widget is != 0.
18165
181662008-03-16 Juri Linkov <juri@jurta.org>
18167
18168 * callint.c (Fcall_interactively): For interactive code letters
18169 'b' and 'B' put the buffer list into the list of default "future"
18170 values of the minibuffer.
18171
181722008-03-16 Andreas Schwab <schwab@suse.de>
18173
18174 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18175 modifiers.
18176
18177 * regex.c (re_match_2_internal): Correct matching of a charset
18178 against latin-1 characters.
18179
181802008-03-16 Kenichi Handa <handa@m17n.org>
18181
18182 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18183 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18184 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18185 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18186 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18187 CHAR_STRING_ADVANCE.
18188 (produce_chars): Fix for the case that the source and the
18189 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18190 instead of CHAR_STRING_ADVANCE.
18191 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18192 STRING_CHAR_ADVANCE.
18193
181942008-03-15 Andreas Schwab <schwab@suse.de>
18195
18196 * regex.c (re_match_2_internal): Correct matching of eight bit
18197 characters in unibyte strings.
18198
181992008-03-15 Martin Rudalics <rudalics@gmx.at>
18200
18201 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18202 at end of range when it coincides with the end of the buffer.
18203
182042008-03-14 Eli Zaretskii <eliz@gnu.org>
18205
18206 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18207
18208 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18209
182102008-03-14 Jason Rumney <jasonr@gnu.org>
18211
18212 * editfns.c (initial_tz): New variable.
18213 (syms_of_editfns): Initialize it.
18214 (Fset_time_zone_rule): Set it when first called.
18215 Use it when TZSTRING is nil.
18216
18217 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18218 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18219 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18220 (globals_of_w32fns): Initialize them.
18221 (compute_tip_xy): Use them to position tooltips.
18222
182232008-03-14 Glenn Morris <rgm@gnu.org>
18224
18225 * emacs.c (main): Revert previous change.
18226 (standard_args): Revert -internal-script back to -scriptload,
18227 and remove the long-option form.
18228
182292008-03-13 Glenn Morris <rgm@gnu.org>
18230
18231 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18232 Remove option -enable-font-backend.
18233
182342008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18235
18236 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18237
182382008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18239
18240 * xterm.c (x_connection_closed): For GTK: If this is the last
18241 terminal just exit without closing the display.
18242
182432008-03-11 Jason Rumney <jasonr@gnu.org>
18244
18245 * w32font.c (w32font_full_name): Use floor to round.
18246
f0131492 182472008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18248
18249 * sound.c (alsa_configure): Declare vol at beginning of block.
18250
18251 * fontset.c (Ffontset_info): Remove extra semicolon.
18252
182532008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18254
18255 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18256 size of resulting string.
18257
182582008-03-10 Jason Rumney <jasonr@gnu.org>
18259
18260 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18261
182622008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18263
18264 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18265 Don't pretend as if characters with display property haven't been
18266 consumed for string-replacing-string case.
18267
182682008-03-08 Kim F. Storm <storm@cua.dk>
18269
18270 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18271 (get_next_display_element, next_element_from_string)
18272 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18273
182742008-03-08 Andreas Schwab <schwab@suse.de>
18275
18276 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18277
182782008-03-06 Jason Rumney <jasonr@gnu.org>
18279
18280 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18281 when charset not specified. Only translate ANSI to unicode when
18282 font_type is truetype.
18283 (w32font_coverage_ok): New function.
18284 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18285
182862008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18287
18288 * lread.c (Fread_char): Resolve modifiers.
18289 (Fread_char_exclusive): Likewise.
18290
18291 * character.c (char_resolve_modifier_mask): New function.
18292 (char_string): Use char_resolve_modifier_mask.
18293 (Fchar_resolve_modifiers): New function.
18294 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18295 function.
18296
182972008-03-04 Jason Rumney <jasonr@gnu.org>
18298
18299 * makefile.w32-in: Always include w32font.c in the build.
18300 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18301
183022008-03-04 Andreas Schwab <schwab@suse.de>
18303
18304 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18305 (versionclean): Likewise.
18306
183072008-03-04 Juanma Barranquero <lekktu@gmail.com>
18308
18309 * .cvsignore: Add oo.
18310
183112008-03-03 Andreas Schwab <schwab@suse.de>
18312
18313 * coding.c (decode_coding_object): Inhibit gap shrinking while
18314 decoding in place.
18315
183162008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18317
18318 * w32term.c: Remove unused include "gnu.h".
18319 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18320
18321 * gnu.h: Rename to ...
18322 * emacs-icon.h: ... this.
18323 * xterm.c: Use emacs-icon.h instead of gnu.h.
18324 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18325
183262008-03-03 Juanma Barranquero <lekktu@gmail.com>
18327
18328 * w32font.c: Include math.h.
18329
183302008-03-03 Jason Rumney <jasonr@gnu.org>
18331
18332 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18333 Compute options separately.
18334 (w32font_open_internal): Set glyph_idx before caching metrics.
18335
18336 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18337 Define if system headers don't.
18338 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18339 (w32font_encode_char): Don't declare here.
18340
18341 * w32font.c (Quniscribe, QCformat): New symbols.
18342 (syms_of_w32font): Define them.
18343 (w32font_has_char): Indicate uncertainty.
18344 (w32font_encode_char): Encode as glyph point. Make static.
18345 (recompute_cached_metrics): New function.
18346 (w32font_open_internal): Use it. Set font to use glyph points
18347 initially. Set format based on type of font.
18348 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18349 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18350 on it. Set format based on information available here.
18351 (add_font_entity_to_list): Identify backend based on opentype_only.
18352
183532008-03-02 Andreas Schwab <schwab@suse.de>
18354
18355 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18356
18357 * coding.c (decode_coding_big5, produce_chars):
18358 Fix typos in last change.
18359
183602008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18361
18362 * gnu.h: New icon.
18363
183642008-03-02 Kenichi Handa <handa@m17n.org>
18365
18366 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18367 `dos', don't decode '\r' if that is the last in the source.
18368 (decode_coding_utf_16, decode_coding_emacs_mule)
18369 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18370 (decode_coding_raw_text, decode_coding_charset): Likewise.
18371 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18372
183732008-03-01 Jason Rumney <jasonr@gnu.org>
18374
18375 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18376
183772008-03-01 Kim F. Storm <storm@cua.dk>
18378
18379 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18380
183812008-03-01 Jason Rumney <jasonr@gnu.org>
18382
18383 * w32font.c (w32font_full_name): New function.
18384 (w32font_open_internal): Use it.
18385
183862008-03-01 Kim F. Storm <storm@cua.dk>
18387
18388 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18389
183902008-03-01 Jason Rumney <jasonr@gnu.org>
18391
18392 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18393
183942008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18395
18396 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18397 xg_frame_resized when the event is for the edit widget.
18398
18399 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18400
18401 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18402 set_char_size.
18403 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18404 operations on widgets here. Just set frame size if needed.
18405 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18406 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18407 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18408 the whole frame.
18409 (xg_create_tool_bar): Move attachment of the tool bar to
18410 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18411 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18412
184132008-03-01 Jason Rumney <jasonr@gnu.org>
18414
18415 * w32fns.c (w32_msg_pump): Disable debug code.
18416
184172008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18418
18419 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18420
184212008-02-29 Chong Yidong <cyd@stupidchicken.com>
18422
18423 * xdisp.c (next_overlay_string): Don't set
18424 overlay_strings_at_end_processed_p if we're currently reading from
18425 a display string.
18426
184272008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18428
18429 * xdisp.c (get_overlay_strings_1): Fix typo.
18430
184312008-02-29 Chong Yidong <cyd@stupidchicken.com>
18432
18433 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18434
184352008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18436
18437 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18438
18439 * xdisp.c (display_mode_element): Cancel the previous change.
18440 (decode_mode_spec): Likewise.
18441 (handle_auto_composed_prop): Don't make composition if it->string
18442 is a string.
18443
184442008-02-27 Kim F. Storm <storm@cua.dk>
18445
18446 * lisp.h (GLYPH): Change type from int to struct with separate char
18447 and face_id members.
18448 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18449 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18450 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18451 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18452 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18453 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18454 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18455 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18456 handle new Lisp glyph code encoding, either an integer or a cons.
18457
18458 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18459 (GLYPH_ALIAS): Delete.
18460 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18461 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18462 (GLYPH_FROM_CHAR): Replace macro by ...
18463 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18464
18465 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18466 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18467 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18468 (GLYPH_INVALID_P): New macro.
18469 (spec_glyph_lookup_face): Update prototype.
18470
18471 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18472 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18473 new glyph code encoding.
18474 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18475 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18476
18477 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18478 Adapt to new glyph type and new glyph code encoding.
18479
18480 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18481
18482 * indent.c (current_column, current_column_1, Fmove_to_column)
18483 (compute_motion): Adapt to new glyph code encoding.
18484
18485 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18486
184872008-02-27 Chong Yidong <cyd@stupidchicken.com>
18488
18489 * process.c (wait_reading_process_output): Check for window
18490 changes caused by timers.
18491 Suggested by Johan Bockgård.
18492
184932008-02-27 Glenn Morris <rgm@gnu.org>
18494
18495 * emacs.c (USAGE1): Add `--disable-font-backend'.
18496
184972008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18498
18499 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18500 is made to the buffer.
18501
185022008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18503
18504 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18505 (face_at_string_position):
18506 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18507 (face_at_string_position):
18508 * xdisp.c (display_string, next_overlay_change):
18509 * buffer.h (overlays_at):
18510 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18511 Update callers.
18512
185132008-02-26 Chong Yidong <cyd@stupidchicken.com>
18514
18515 * editfns.c (Fformat): Doc fix.
18516
185172008-02-26 Juanma Barranquero <lekktu@gmail.com>
18518
18519 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18520 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18521 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18522
185232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18524
18525 * buffer.c (Fbuffer_swap_text): New function.
18526 (syms_of_buffer): Defsubr it.
18527
185282008-02-25 Chong Yidong <cyd@stupidchicken.com>
18529
18530 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18531
185322008-02-25 Jason Rumney <jasonr@gnu.org>
18533
18534 * w32font.c (w32font_draw): Draw one character at a time when padding.
18535
185362008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18537
18538 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18539 Handle a nil arg. Use run_window_configuration_change_hook.
18540 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18541 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18542 Use run_window_configuration_change_hook.
18543
185442008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18545
18546 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18547 1-pixel width.
18548
185492008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18550
18551 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18552 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18553 if the glyph in the font is zero pixel with.
18554
18555 * dispextern.h (struct glyph_string): New member padding_p.
18556
18557 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18558
18559 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18560
18561 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18562
18563 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18564
18565 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18566
185672008-02-25 Jason Rumney <jasonr@gnu.org>
18568
18569 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18570
185712008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18572
18573 Allow fine-grained image-cache flushing.
18574 * dispextern.h (struct image): Add `dependencies' field.
18575 (clear_image_caches): Change arg to Lisp_Object.
18576 * image.c (make_image): Initialize `dependencies' field.
18577 (clear_image_cache): Change arg to allow fine-grained flushing.
18578 Perform the flush even if image-cache-eviction-delay is nil.
18579 (clear_image_caches): Change arg to Lisp_Object.
18580 (Fclear_image_cache): Expand meaning of the argument.
18581 (mark_image): Mark `dependencies' field.
18582 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18583 (lface_hash): Use XHASH rather than XFASTINT.
18584 (face_at_buffer_position): Fix int -> EMACS_INT position.
18585 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18586 (select_frame_for_redisplay): Remove code duplication.
18587 (redisplay_internal): Adapt arg to call to clear_image_caches.
18588
185892008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18590
18591 * s/vms4-0.h:
18592 * s/vms4-2.h:
18593 * s/vms4-4.h:
18594 * s/vms5-5.h: Remove, unused.
18595
18596 * s/irix5-2.h:
18597 * s/irix6-0.h:
18598 * s/riscos5.h:
18599 * s/mach-bsd4-3.h:
18600 * m/mips4.h: Remove files for obsolete systems.
18601
18602 * Makefile.in:
18603 * filelock.c:
18604 * unexmips.c:
18605 * m/hp9000s300.h:
18606 * m/iris4d.h:
18607 * s/aix3-1.h:
18608 * s/hpux.h:
18609 * s/msdos.h:
18610 * s/usg5-0.h:
18611 * s/usg5-2-2.h:
18612 * s/usg5-2.h:
18613 * s/usg5-3.h: Remove references to obsolete variables.
18614
18615 * s/irix5-0.h: Remove, move all the contents ...
18616 * s/irix6-5.h: ... here. Simplify.
18617 * config.in: Regenerate.
18618
186192008-02-24 Jason Rumney <jasonr@gnu.org>
18620
18621 * w32term.c (x_draw_glyph_string_background): Clear the background
18622 manually when cleartype is in use.
18623 (x_draw_glyph_string_foreground): Draw text transparently when
18624 cleartype is in use.
18625
18626 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18627 a font into it unless we have to.
18628
186292008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18630
18631 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18632 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18633
aac0c6e3
MR
186342008-02-18 Jason Rumney <jasonr@gnu.org>
18635
18636 * w32fns.c (Fw32_shell_execute): Encode parameters.
18637
186382008-02-09 Eli Zaretskii <eliz@gnu.org>
18639
18640 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18641
186422008-02-05 Juanma Barranquero <lekktu@gmail.com>
18643
18644 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18645
186462008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18647
18648 * xterm.c (x_set_offset): Don't change the gravity if
18649 CHANGE_GRAVITY is -1.
18650
186512008-02-23 Chong Yidong <cyd@stupidchicken.com>
18652
18653 * fileio.c (auto_save_error_occurred): New var.
18654 (auto_save_error): Set it.
18655 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18656 error occurred.
18657
186582008-02-23 Eli Zaretskii <eliz@gnu.org>
18659
18660 * w32.c (globals_of_w32): Add initializations for
18661 g_b_init_get_sid_sub_authority and
18662 g_b_init_get_sid_sub_authority_count.
18663
186642008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18665
18666 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18667 (font_parse_xlfd): Use them for sanity check.
18668 (Finternal_set_font_style_table): Make sure the table is bijective.
18669
18670 Consolidate the image_cache to the terminal struct.
18671 * termhooks.h (P_): Remove redundant def.
18672 (struct terminal): New field `image_cache'.
18673 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18674 of FRAME_X_IMAGE_CACHE.
18675 * xterm.h (struct x_display_info): Remove image_cache field.
18676 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18677 * w32term.h (struct w32_display_info): Remove image_cache field.
18678 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18679 * macterm.h (struct mac_display_info): Remove image_cache field.
18680 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18681 * xterm.c (x_term_init):
18682 * w32term.c (w32_term_init):
18683 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18684 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18685 Remove declarations.
18686 (clear_image_caches, mark_image_cache): New declarations.
18687 * xfaces.c (clear_face_cache):
18688 * xdisp.c (redisplay_internal): Use clear_image_caches.
18689 * image.c (clear_image_cache): Don't check that a frame is on
18690 a window-system before checking if it shares the same cache.
18691 (clear_image_caches): New function.
18692 (Fclear_image_cache): Use it.
18693 (mark_image): Move from allo.c.
18694 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18695 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18696 (mark_object): Don't call mark_image_cache for frames.
18697 (mark_terminals): Call mark_image_cache.
18698
18699 * lisp.h (Fdelete_terminal): Declare.
18700
18701 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18702 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18703 wrong_type_argument.
18704
187052008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18706
18707 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18708 malayalam.el, and tamil.el. Add sinhala.el.
18709
187102008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18711
18712 * xterm.c (x_connection_closed): Consolidate identical tests.
18713 (x_delete_terminal): Don't crash if called via x_connection_closed.
18714
187152008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18716
18717 * xdisp.c (decode_mode_spec): New arg string.
18718 (display_mode_element): Adjust for the above change.
18719
187202008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18721
18722 * callint.c (Fcall_interactively): Use AREF.
18723
187242008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18725
18726 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18727
187282008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18729
18730 * xfns.c (Fx_show_tip): Set string to " " if empty.
18731
187322008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18733
18734 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18735 with Qt.
18736
187372008-02-17 Kenichi Handa <handa@m17n.org>
18738
18739 * ftfont.c (ftfont_shape): Return Lispy number.
18740
18741 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18742 for GCs.
18743 (Finternal_set_font_selection_order): Call font_update_sort_order
18744 only when enable_font_backend is set.
18745 (realize_x_face): Set face->font_info to that of default face only
18746 when enable_font_backend is set.
18747
18748 * xdisp.c (handle_composition_prop): Set it->c to the fist
18749 character of the composed region.
18750 (fill_composite_glyph_string): Set base_face->font_info to
18751 s->font_info. Get a face for ascii from base_face->ascii_face.
18752 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18753 with a face already decided.
18754 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18755 non-negative.
18756 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18757 call font_prepare_composition unconditionally.
18758
18759 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18760
18761 * xterm.h (struct x_display_info): New member font.
18762
18763 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18764 (x_set_mouse_face_gc, x_new_font): Likewise.
18765 (x_term_init): Setup display_info->font.
18766 (x_delete_terminal): Free display_info->font.
18767
18768 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18769
18770 * ftxfont.c (ftxfont_default_fid): Delete it.
18771 (ftxfont_open): Set xfont->fid to 0.
18772 (ftxfont_end_for_frame): Clear data specific to the frame and the
18773 font-driver.
18774
18775 * xftfont.c (xftfont_default_fid): Delete it.
18776 (xftfont_open): Set xfont->fid to 0.
18777
18778 * fontset.c (FONTSET_OBJLIST): New macro.
18779 (fontset_find_font): Update font-object list of the fontset.
18780 (free_realized_fontset): New function.
18781 (free_face_fontset): Call free_realized_fontset.
18782 (Ffont_info): Call font_close_object only when enable_font_backend
18783 is set.
18784
18785 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18786 [HAVE_NTGUI]: Include w32term.h.
18787 [MAC_OS]: Include macterm.ch.
18788 (font_otf_ValueRecord): Use make_number.
18789 (font_finish_cache): Fix handling of reference count.
18790 (font_clear_cache): Update num_fonts.
18791 (font_open_entity): Update smallest_char_width and
18792 smallest_font_height of the frame.
18793 (font_close_object): Update num_fonts.
18794 (Fclear_font_cache): Fix finding the target cache data.
18795
187962008-02-16 Glenn Morris <rgm@gnu.org>
18797
18798 * fontset.c (Finternal_char_font): Fix compilation warning.
18799
188002008-02-16 Eli Zaretskii <eliz@gnu.org>
18801
18802 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18803 instead of char arrays. Enlarge the size of array passed to
18804 get_token_information.
18805
18806 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18807 warnings.
18808
188092008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18810
18811 * .gdbinit: Don't set `args', it breaks gdb --args.
18812
188132008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18814
18815 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18816 within a narrowed buffer.
18817
188182008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18819
18820 * coding.c (decode_coding_object, encode_coding_object):
18821 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18822
188232008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18824
18825 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18826 hardcoding 1.
18827 (detect_coding_system):
18828 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18829 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18830 * insdel.c (insert_from_gap):
18831 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18832 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18833 (string_to_multibyte):
18834 * character.c (chars_in_text, multibyte_chars_in_text):
18835 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18836
18837 * character.h (FETCH_STRING_CHAR_ADVANCE)
18838 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18839 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18840 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18841
18842 * casefiddle.c (casify_region): Only call after-change and composition
18843 functions on the part of the region that was changed.
18844
18845 * keyboard.c (read_avail_input):
18846 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18847
188482008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18849
18850 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18851 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18852
188532008-02-11 Juanma Barranquero <lekktu@gmail.com>
18854
18855 * w32menu.c (push_submenu_start, push_submenu_end)
18856 (push_left_right_boundary, push_menu_pane, push_menu_item):
18857 * keyboard.c (read_key_sequence): Don't pass args with side effects
18858 to AREF, it fails when compiling with -DENABLE_CHECKING.
18859
188602008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18861
18862 * Makefile.in (${lispsource}international/charprop.el):
18863 Delete this target.
18864
18865 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18866 emacs-unicode-2.
18867
188682008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18869
18870 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18871
188722008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18873
18874 * frame.c (Qnoelisp): New symbol.
18875 (syms_of_frame): Initialize it.
18876 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18877 harmless Elisp code, from a strong `force' from x_connection_closed.
18878 * frame.h (Qnoelisp): Declare.
18879 * xterm.c (x_connection_closed): Pass `noelisp'.
18880
18881 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18882 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18883 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18884 rather than `int' for the type of `type'.
18885
188862008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18887
18888 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18889
18890 * Makefile.in (GNUC): Remove support for gcc-1.x.
18891
188922008-02-10 Richard Stallman <rms@gnu.org>
18893
18894 * lisp.h (ASET): Use AREF, not ASLOT.
18895
188962008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18897
18898 * lisp.h (ASET): Check bounds.
18899
189002008-02-10 Glenn Morris <rgm@gnu.org>
18901
18902 * buffer.c (mode-name): Doc fix.
18903
189042008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18905
18906 * Makefile.in:
18907 * emacs.c:
18908 * gmalloc.c:
18909 * keyboard.c:
18910 * lisp.h:
18911 * m/ibm370aix.h:
18912 * process.c:
18913 * regex.c:
18914 * s/hpux.h:
18915 * sysdep.c:
18916 * sysselect.h:
18917 * systty.h:
18918 * unexec.c:
18919 * w32term.c:
18920 * xsmfns.c:
18921 * xterm.c: Remove code that deals with obsolete variables.
18922
18923 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18924
18925 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18926 nothing else needs it anymore.
18927
189282008-02-09 Eli Zaretskii <eliz@gnu.org>
18929
18930 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18931 instead of unibyte_char_to_multibyte.
18932
189332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18934
18935 * s/gnu-linux.h: Remove commented out code.
18936
18937 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18938
18939 * Makefile.in: Update what RMS says about using autoconf.
18940 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18941 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18942 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18943 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18944
189452008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18946
18947 * keymap.c (Fkey_description): Move side effect outside of macro call.
18948
18949 * xfaces.c (Finternal_make_lisp_face):
18950 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18951
18952 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18953 (syms_of_fontset): Use ASET.
18954
18955 * fns.c (concat): Move side effect outside of macro call.
18956 (hash_clear): Use ASET.
18957
189582008-02-08 Richard Stallman <rms@gnu.org>
18959
18960 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18961 If FORCE, and frame has a surrogate minibuffer for another frame,
18962 delete the other frame first.
18963
189642008-02-07 Timo Savola <timo.savola@iki.fi>
18965
18966 * xterm.c (x_detect_focus_change): Handle embed client message.
18967 (handle_one_xevent): Ditto.
18968 (handle_one_xevent): If embedded and we get a button press/release,
18969 request focus.
18970 (xembed_set_info, xembed_send_message): New functions.
18971 (x_make_frame_visible): Call xembed_set_info if embedded.
18972 (x_make_frame_invisible): Call xembed_set_info if embedded.
18973 (x_term_init): Initialize Xatom_XEMBED.
18974 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18975 (x_iconify_frame): Ditto.
18976
18977 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18978 (enum xembed_info, enum xembed_message, enum xembed_focus)
18979 (enum xembed_modifier, enum xembed_accelerator): New.
18980 (xembed_set_info, xembed_send_message): Declare.
18981 (FRAME_X_EMBEDDED_P): New.
18982
18983 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18984 gtk_plug_new.
18985
18986 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18987 window ID of a frame.
18988 (x_window): Reparent frame if embedded.
18989 (Fx_create_frame): Don't set border width if embedded.
18990
18991 * emacs.c (USAGE3): Add --parent-id.
18992 (standard_args): Ditto.
18993
189942008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18995
18996 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18997
189982008-02-07 Jim Meyering <meyering@redhat.com>
18999
19000 Use "do...while (0)", not "if (1)...else" in macro definitions.
19001 The latter provokes a warning from gcc about the empty else, when
19002 followed by ";". Also, without that trailing semicolon, it would
19003 silently swallow up any following statement.
19004 * syntax.h (SETUP_SYNTAX_TABLE)
19005 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19006 * buffer.h (DECODE_POSITION): Likewise.
19007 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19008 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19009 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19010 (FETCH_CHAR_ADVANCE): Likewise.
19011 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19012
190132008-02-07 Jim Meyering <meyering@redhat.com>
19014
19015 * lread.c [lint]: Don't include <sys/inode.h>.
19016
190172008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19018
19019 * xselect.c (x_handle_dnd_message):
19020 * xmenu.c (digest_single_submenu, xmenu_show):
19021 * xdisp.c (with_echo_area_buffer_unwind_data)
19022 (format_mode_line_unwind_data, unwind_format_mode_line)
19023 (display_menu_bar):
19024 * eval.c (Ffetch_bytecode):
19025 * doc.c (store_function_docstring):
19026 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19027 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19028 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19029
190302008-02-07 Kenichi Handa <handa@m17n.org>
19031
19032 * ftxfont.c (ftxfont_open): Don't set
19033 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19034
19035 * ftfont.c (ftfont_open): Fix previous change.
19036
190372008-02-06 Jason Rumney <jasonr@gnu.org>
19038
19039 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19040 Use cached metrics for ASCII characters.
19041 (w32font_open_internal): Don't set font's owning_frame.
19042 Cache metrics for ASCII characters.
19043
19044 * w32font.h (struct w32font_info): Add ascii_metrics.
19045 Remove owning_frame.
19046
190472008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19048
19049 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19050 to negative value.
19051
19052 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19053
19054 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19055
19056 * charset.c (syms_of_charset): Set QCtest and Qeq.
19057
190582008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19059
19060 * process.c (Fstart_process):
19061 * callproc.c (Fcall_process): Handle the case where
19062 Funhandled_file_name_directory returns nil.
19063
19064 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19065 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19066 * font.c (check_gstring): Use them and AREF to access the vector before
19067 we know it's really a gstring.
19068 (Ffont_shape_text): Fix typo.
46e722a9 19069 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19070
19071 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19072 Declare.
19073
19074 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19075
190762008-02-05 Jason Rumney <jasonr@gnu.org>
19077
19078 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19079 Set smallest_font_height and smallest_char_width in display info.
19080
190812008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19082
19083 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19084
190852008-02-05 Miles Bader <miles@gnu.org>
19086
19087 * xfaces.c (get_lface_attributes, merge_named_face)
19088 (lookup_named_face, lookup_derived_face, realize_named_face):
19089 Revert 2008-02-01 change by cyd@stupidchicken.com.
19090
190912008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19092
19093 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19094 fallback fonts.
19095 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19096
190972008-02-04 Jason Rumney <jasonr@gnu.org>
19098
19099 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19100 set full_name.
19101 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19102
191032008-02-03 Jason Rumney <jasonr@gnu.org>
19104
19105 * makefile.w32-in (OBJ1): Include font.o here.
19106 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19107
191082008-02-02 Jason Rumney <jasonr@gnu.org>
19109
19110 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19111
191122008-02-01 Jason Rumney <jasonr@gnu.org>
19113
19114 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19115
19116 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19117
191182008-02-01 Andreas Schwab <schwab@suse.de>
19119
19120 * Makefile.in (shortlisp, lisp): Update for rename of
19121 ../lisp/language/myanmar.el.
19122
191232008-02-01 Chong Yidong <cyd@stupidchicken.com>
19124
19125 * xfaces.c (get_lface_attributes): Delete function.
19126 (merge_named_face, lookup_named_face, lookup_derived_face)
19127 (realize_named_face): Call lface_from_face_name directly, and use
19128 the fact that merge_face_vectors does not alter its FROM argument.
19129
191302008-02-01 Jason Rumney <jasonr@gnu.org>
19131
19132 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19133 input in the default locale. Handle non-Unicode multibyte input.
19134
191352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19136
19137 * fontset.c (reorder_font_vector): Exclude nil elements from the
19138 font group. Don't try multiple fonts.
19139 (fontset_font): Adjust for the above change.
19140 (Finternal_char_font): Return nil if the found font doesn't
19141 contain the character ch.
19142
19143 * Makefile.in (lisp, shortlisp): Add cham.el.
19144
191452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19146
19147 * font.h (FONTP): Make it return 1 also for a font-object.
19148
19149 * .gdbinit (xfontset): New function.
19150
19151 * font.c (font_find_for_lface): Check if the character C is
19152 supported or not only for the first font.
19153
19154 * fontset.c (reorder_font_vector): Fix typo.
19155 (fontset_find_font): Don't add a font-spec specifying a script.
19156 Use 0 (not Qt) for the indication of empty font-group. Change the
19157 format of RFONT-DEF. Return Qt if no font in the font-group
19158 support the character.
19159 (fontset_font): Adjust for the above change. If no font was
19160 found the character, remember that.
19161 (face_for_char): Adjust for the change of RFONT-DEF.
19162 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19163 no font for the target.
19164 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19165
191662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19167
19168 * font.c (font_load_for_face): Handle the case that the font in
19169 face->lface is a string.
19170
191712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19172
19173 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19174
191752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19176
19177 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19178 Fix previous change. If the frame is not on a window system,
19179 signal an error.
19180
191812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19182
19183 * coding.c (decode_coding_object, encode_coding_object): Adjust
19184 marker positions after conversion.
19185
19186 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19187
191882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19189
19190 * font.c (font_find_for_lface): Fix the handling of the return
19191 value of font_has_char.
19192 (Ffont_shape_text): Fix previous change.
19193
19194 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19195 (fontset_ref_and_range): Delete it.
19196 (fontset_find_font): Call char_table_ref_and_range instead of
19197 FONTSET_REF_AND_RANGE.
19198 (make_fontset): Don't setup font groups of Latin here.
19199 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19200 (new_fontset_from_font): Make the specified font the default for
19201 all Latin characters.
19202
192032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19204
19205 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19206 is on a window system before accessing the fontset of the frame.
19207
192082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19209
19210 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19211
19212 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19213 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19214
19215 * font.c (Ffont_shape_text): If the font driver doesn't have a
19216 shaper function, make zero-width glyphs to have at least one-pixel
19217 width. Fix setting of `to' field of glyphs.
19218
192192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19220
19221 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19222 glyphs.
19223
19224 * font.h (struct font_driver): Improve docstring of member `shape'.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * composite.c (syms_of_composite): Fix docstring of
19229 auto-composition-function.
19230
19231 * font.h (LGLYPH_SIZE): New macro.
19232
19233 * font.c (Ffont_fill_gstring): Stop filling when a character not
19234 supported by the font is found.
19235 (Ffont_shape_text): When a shape callback function returns nil,
19236 try at most two more times with larger gstring.
19237 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19238
19239 * xdisp.c (handle_auto_composed_prop): Change the argument to
19240 auto-composition-function.
19241
19242 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19243 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19244 Lispy glyph and store it in the lgstring.
19245
19246 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19247
19248 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19249
192502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19251
19252 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19253
19254 * fontset.c (Vfont_encoding_charset_alist): New variable.
19255 (syms_of_fontset): DEFVAR it.
19256 (reorder_font_vector, fontset_find_font): Optimize for the case of
19257 no need of reordering.
19258 (face_for_char): Map the charset property by
19259 Vfont_encoding_charset_alist.
19260
192612008-02-01 Jason Rumney <jasonr@gnu.org>
19262
19263 * w32font.c (logfonts_match): Don't check adstyle here.
19264 (font_matches_spec): Check here against physical font instead.
19265 (add_font_entity_to_list): Avoid some substitutions.
19266
19267 * font.c (font_parse_fcname): Default weight and slant to normal.
19268 (font_score): Prefer normal fonts if weight or slant unspecified.
19269 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19270 match freetype scores.
19271
192722008-02-01 Jason Rumney <jasonr@gnu.org>
19273
19274 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19275 font, as it may have been deleted.
19276 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19277 most common hyphenless variation.
19278 (logfonts_match): Check generic family.
19279 (font_matches_spec): Don't check generic family here.
19280 (fill_in_logfont): Set generic family based on adstyle.
19281
19282 * w32font.h (w32font_get_cache): Update declaration.
19283
192842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19285
19286 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19287
19288 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19289 If none of the new drivers are available, call font_update_drivers
19290 with the old drivers.
19291
19292 * w32font.c (w32font_get_cache): Adjust the argument type.
19293
19294 * xfont.c (xfont_get_cache): Adjust the argument type.
19295
19296 * font.h (struct font_driver): Change argument type of get_cache.
19297
19298 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19299
19300 * font.c (Ffont_get): Fix arguments to Fassoc.
19301 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19302 (font_clear_cache): New function.
19303 (font_list_entities, font_matching_entity): Use font_get_cache.
19304 (font_update_drivers): Call font_clear_cache when finishing a driver.
19305
19306 * fontset.c (fontset_find_font): Fix previous change.
19307
193082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19309
19310 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19311 dpyinfo->font_table.
19312 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19313 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19314
19315 * font.c (font_at): Handle the case that the arg C is negative.
19316 Handle the unibyte case.
19317 (Ffont_at): Call font_at with the arg C -1.
19318
19319 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19320 the position here, and call font_at with the arg C -1.
19321 Don't check the range of the existing composition at the point.
19322
193232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19324
19325 * fontset.c (fontset_add): New args charset_id and family.
19326 Change caller.
19327 (load_font_get_repertory, fontset_find_font): Assume that
19328 font_spec is always a font-spec object.
19329 (Fset_fontset_font): Always store a font-spec object in a fontset.
19330
19331 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19332 instead of get_property_and_range.
19333
193342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19335
19336 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19337 (xftfont_open): Don't keep locking face.
19338 (xftfont_close): Don't unlock face.
19339 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19340
19341 * fontset.c (fontset_find_font): Don't prefer a font of
19342 supplementary charset.
19343
193442008-02-01 Kenichi Handa <handa@m17n.org>
19345
19346 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19347 script, langsys_tag to langsys, new member script.
19348 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19349 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19350 listing to the script specified in that property. Fix arg to
19351 OTF_check_features.
19352
193532008-02-01 Jason Rumney <jasonr@gnu.org>
19354
19355 * w32font.h: New file.
19356
19357 * w32font.c: Include it.
19358 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19359 (w32font_open): Set owning_frame.
19360 (w32font_text_extents): Use owning_frame.
19361 (struct font_callback_data): Add opentype_only field.
19362 (add_font_entity_to_list): Use it to filter fonts.
19363 Don't check against full name.
19364 (w32font_list_internal): New function.
19365 (w32font_list): Use it.
19366 (w32font_match_internal): New function.
19367 (w32font_match): Use it.
19368 (w32font_open_internal): New function.
19369 (w32font_open): Use it.
19370 (w32font_get_cache, w32font_close, w32font_has_char)
19371 (w32font_encode_char, w32font_text_extents, w32font_draw):
19372 Make non-static.
19373
19374 * makefile.w32-in (w32font.o): Depend on w32font.h.
19375
193762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19377
19378 * charset.c (Fdefine_charset_internal): Record a supplementary
19379 charset at the tail of Vcharset_order_list.
19380
19381 * font.c (Ffont_shape_text): Fix the return value.
19382
19383 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19384
19385 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19386
193872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19388
19389 * ftfont.c (struct OpenTypeSpec): New struct.
19390 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19391 (ftfont_get_open_type_spec): New function.
19392 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19393
19394 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19395
193962008-02-01 Jason Rumney <jasonr@gnu.org>
19397
19398 * w32font.c (add_font_entity_to_list): Compare only the beginning
19399 of full name.
19400
194012008-02-01 Kenichi Handa <handa@m17n.org>
19402
19403 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19404 Never return HANDLED_RECOMPUTE_PROPS.
19405
194062008-02-01 Kenichi Handa <handa@m17n.org>
19407
19408 * font.c (font_gstring_produce): Delete it.
19409
19410 * composite.h (COMPOSITION_METHOD):
19411 Handle COMPOSITION_WITH_GLYPH_STRING.
19412
194132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19414
19415 * xfont.c (Qx): Delete.
19416 (syms_of_xfont): Don't initialize Qx.
19417
19418 * composite.h (enum composition_method):
19419 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19420
194212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19422
19423 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19424 (choose_face_font): Accept new form of font-spec.
19425
19426 * frame.h (font_driver_list): Declare it unconditionally.
19427 (struct frame): Define members font_driver_list and font_data_list
19428 unconditionally.
19429
19430 * fontset.c: Include "font.h" unconditionally.
19431 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19432 (Fset_fontset_font): Accept a font-spec object.
19433
19434 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19435 PIXEL_SIZE part a wild card.
19436
19437 * dispextern.h (struct glyph_string): Define members clip and
19438 num_clips unconditionally.
19439 (struct face): Define members font_info and extra unconditionally.
19440
19441 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19442 ftfont_info only when HAVE_LIBOTF is defined.
19443
194442008-02-01 Andreas Schwab <schwab@suse.de>
19445
19446 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19447 and end.
19448
194492008-02-01 Jason Rumney <jasonr@gnu.org>
19450
19451 * w32font.c (w32font_driver): Add new fields.
19452
194532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19454
19455 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19456 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19457 (LIBES): Add @M17N_FLT_CFLAGS@.
19458
19459 * composite.c (compose_text): Don't treat the new style
19460 composition specially.
19461
19462 * emacs.c (main): Call syms_of_font unconditionally.
19463
19464 * font.h (FONT_ENTITY_NOT_LOADABLE)
19465 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19466 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19467 (struct font_driver): New member shape.
19468 (font_registry_charsets): Extern it.
19469 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19470 (font_otf_capability, font_drive_otf): Delete their externs.
19471
19472 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19473 (font_charset_alist, font_registry_charsets): Move from xfont.c
19474 and rename.
19475 (font_prop_validate_otf): New function.
19476 (font_property_table): Register it for QCotf.
19477 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19478 (font_drive_otf): Delete.
19479 (font_prepare_composition): New arg F. Adjust for the change of
19480 lispy gstring.
19481 (font_find_for_lface): New arg C.
19482 (font_load_for_face): Adjust for the change of font_find_for_lface.
19483 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19484 lispy gstring.
19485 (Ffont_shape_text): New function.
19486 (Fopen_font): If the font size is not given, use 12-pixel.
19487 (Ffont_at): New arg STRING.
40b1a3a9 19488 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19489 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19490 conditionally.
19491
19492 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19493 fonts of the same font-spec. Change the format of RFONT-DEF.
19494 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19495 Adjust for the change of RFONT-DEF.
19496 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19497
19498 * ftfont.h: New file.
19499
19500 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19501 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19502 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19503 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19504 font_otf_capability and font_drive_otf, set ftfont_shape.
19505 (ftfont_list): Adjust for the change of :otf property value.
19506 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19507 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19508 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19509 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19510 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19511 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19512
19513 * w32term.c (x_draw_composite_glyph_string_foreground):
19514 Adjust for the change of lispy gstring.
19515
19516 * xdisp.c (handle_composition_prop): Adjust for the change of
19517 lispy gstring. Call a function for auto-composition with the
19518 third arg it->window.
19519 (fill_composite_glyph_string): Adjust for the change of lispy string.
19520 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19521
19522 * xfaces.c (set_font_frame_param): Adjust for the change of
19523 font_find_for_lface.
19524
19525 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19526 (xfont_registry_charsets): Likewise. Change caller.
19527 (syms_of_xfont): Don't handle x_font_charset_alist.
19528
19529 * xftfont.c: Include "ftfont.h".
19530 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19531 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19532 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19533 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19534 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19535 Set xftfont_driver.shape to xftfont_shape.
19536
19537 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19538 the change of lispy gstring.
19539
195402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19541
19542 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19543
195442008-02-01 Jason Rumney <jasonr@gnu.org>
19545
19546 * w32font.c (w32font_draw): Fill background manually.
19547
195482008-02-01 Jason Rumney <jasonr@gnu.org>
19549
19550 * font.c (Qfontp): Remove unused symbol.
19551 (QCantialias): New symbol.
19552 (syms_of_font): Define it.
19553 (font_property_table): Set a validator for QCantialias.
19554
19555 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19556 Define if not already.
19557 (QCfamily): Share with xfaces.c.
19558 (Qstandard, Qsubpixel, Qnatural): New symbols.
19559 (syms_of_w32font): Define them. Don't define QCfamily here.
19560 (w32_antialias_type, lispy_antialias_type): New functions.
19561 (w32_enumfont_pattern_entity): New arg requested_font.
19562 Set antialias parameter if non-default was requested.
19563 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19564
195652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19566
19567 * lread.c (read1): Undo the previous change.
19568
195692008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19570
19571 * frame.c (Fdelete_frame): Call font_update_drivers only when
19572 USE_FONT_BACKEND is defined.
19573
195742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19575
19576 * font.h (struct font_bitmap): New member bits_per_pixel.
19577 (struct font_driver): New members start_for_frame and end_for_frame.
19578 (struct font_data_list): New struct.
19579 (font_put_frame_data, font_get_frame_data): Extern them.
19580
19581 * frame.h (struct frame): New member font_data_list.
19582
19583 * font.c (font_update_drivers): Call driver->start_for_frame and
19584 driver->end_for_frame at proper timings.
19585 (font_put_frame_data, font_get_frame_data): New functions.
19586 (Ffont_spec): Add usage in the docstring.
19587
19588 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19589 (Fdelete_frame): Call font_update_drivers.
19590
19591 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19592 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19593 (xftfont_get_xft_draw): New function.
19594 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19595 (xftfont_end_for_frame): New function.
19596 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19597
19598 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19599 Change argument. Cache GCs in the per-frame data.
19600 (struct ftxfont_frame_data): New struct.
19601 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19602 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19603 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19604 (ftxfont_end_for_frame): New function.
19605 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19606
19607 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19608
196092008-02-01 Kenichi Handa <handa@m17n.org>
19610
19611 * xselect.c (Vselection_coding_system)
19612 (Vnext_selection_coding_system): Delete them.
19613 (syms_of_xselect): Don't declare selection-coding-system and
19614 next-selection-coding-system. They are declared in select.el.
19615
196162008-02-01 Jason Rumney <jasonr@gnu.org>
19617
19618 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19619
19620 * w32fns.c: Include imm.h.
19621 (get_composition_string_fn, get_ime_context_fn): New optional
19622 system functions.
19623 (globals_of_w32fns): Load them from imm32.dll.
19624 (ignore_ime_char): New flag.
19625 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19626 WM_IME_ENDCOMPOSITION messages.
19627
19628 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19629 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19630
196312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19632
19633 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19634 (READCHAR_REPORT_MULTIBYTE): New macro.
19635 (readchar): New 2nd arg MULTIBYTE.
19636 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19637 Make symbol's name multibyte according to the multibyteness of the
19638 source.
19639
196402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19641
19642 * xfaces.c (face_for_overlay_string): Call lookup_face with
19643 correct arguments (fix of synching with the trunk).
19644
196452008-02-01 Kenichi Handa <handa@m17n.org>
19646
19647 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19648 (font_prop_validate_non_neg, font_prop_validate_spacing):
19649 Delete argument prop_index.
19650 (font_property_table): Change arguments to validater. Change Callers.
19651 (font_lispy_object): Delete.
19652 (font_at): Use font_find_object instead fo font_lispy_object.
19653
196542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19655
19656 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19657 and file names.
19658
196592008-02-01 Jason Rumney <jasonr@gnu.org>
19660
19661 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19662 (font_matches_spec): Remove debug output.
19663 (add_font_entity_to_list): Avoid using substituted fonts.
19664
196652008-02-01 Jason Rumney <jasonr@gnu.org>
19666
19667 * doc.c (Fsnarf_documentation):
19668 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19669
196702008-02-01 Miles Bader <miles@gnu.org>
19671
19672 * dispextern.h (struct glyph_row): Only define "clip" field if
19673 HAVE_WINDOW_SYSTEM is defined.
19674
196752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19676
19677 Fix up multi-tty merge.
19678
19679 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19680 and indentation.
19681
19682 * xfaces.c (free_realized_face, clear_face_gcs):
19683 Include font_done_for_face in the input_blocked section, just in case.
19684
19685 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19686 (get_char_face_and_encoding): Undo last change and remove the *other*
19687 duplicate definition (i.e. keep the one that's better scoped and that
19688 includes code for the font-backend).
19689
19690 * terminal.c (create_terminal): Default keyboard_coding to
19691 `no-conversion' and terminal_coding to `undecided'.
19692
19693 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19694
19695 * fontset.c (free_realized_fontsets): Check that the table entry does
19696 contain a fontset before trying to compare it to `base'.
19697
19698 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19699 syms_of_charset, and syms_of_coding earlier because init_window_once
19700 now needs Vcoding_system_hash_table to be setup.
19701
19702 * coding.h (default_buffer_file_coding): Remove.
19703
19704 * coding.c (default_buffer_file_coding): Remove.
19705 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19706 than ->symbol, and use the terminal-local coding system.
19707 (syms_of_coding): Don't setup the coding-systems that are not
19708 terminal-local.
19709 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19710
19711 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19712 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19713
19714 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19715 in chartab.c and were re-added here by mistake.
19716 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19717
19718 * doc.c (Fsnarf_documentation):
19719 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19720 src to etc.
19721
19722 * ChangeLog.10: Add mistakenly removed entry.
19723
197242008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19725
19726 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19727
197282008-02-01 Miles Bader <miles@gnu.org>
19729
19730 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19731 Add extra args to FACE_FOR_CHAR.
19732
197332008-02-01 Kenichi Handa <handa@m17n.org>
19734
19735 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19736 in sequence.
19737
19738 * chartab.c (map_sub_char_table, map_char_table): If the range
19739 contains just one character, call the function with that character
19740 even if the depth is not 3.
19741
197422008-02-01 Jason Rumney <jasonr@gnu.org>
19743
19744 * w32font.c (w32font_text_extents): Calculate metrics for the
19745 whole string.
19746
197472008-02-01 Jason Rumney <jasonr@gnu.org>
19748
19749 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19750
197512008-02-01 Jason Rumney <jasonr@gnu.org>
19752
19753 * w32term.c (x_set_glyph_string_clipping): Use
19754 get_glyph_string_clip_rects.
19755 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19756 Adjust for the change of struct glyph_string.
19757
19758 * w32font.c (w32font_draw): Do clipping here.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * xftfont.c (xftfont_draw): Adjust for the change of struct
19763 glyph_string.
19764
19765 * xterm.c (x_set_glyph_string_clipping): Use
19766 get_glyph_string_clip_rects.
19767 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19768 Adjust for the change of struct glyph_string.
19769
19770 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19771 the resulting clip(s}.
19772 (expose_overlaps): Add arg r. Change callers. Set it to
19773 row->clip temporarily.
19774 (expose_window): Redraw rows overlapping the exposed area.
19775
19776 * dispextern.h (struct glyph_row): New member clip.
19777 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19778 clip_height, new member clip, and num_clips.
19779
197802008-02-01 Kenichi Handa <handa@m17n.org>
19781
19782 * data.c (Fchar_or_string_p): Fix docstring.
19783
197842008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19787 create a temporary XftDraw object.
19788
197892008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * font.c (Ffontp): Fix docstring.
19792
19793 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19794 strong evidence of ISO-2022.
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19799 SYNTAX_ENTRY_FOLLOW_PARENT.
19800
198012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19802
19803 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19804 its type.
19805 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19806 Update to the new type of weak_hash_tables and next_weak.
19807
19808 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19809 a plain C pointer to Lisp_Hash_Table.
19810
19811 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19812 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19813 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19814 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19815 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19816 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19817 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19818 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19819 (GC_EQ): Remove since they've been identical to their non-GC_
19820 alter-egos ever since the markbit was eradicated.
19821
19822 * alloc.c:
19823 * buffer.c:
19824 * buffer.h:
19825 * data.c:
19826 * fileio.c:
19827 * filelock.c:
19828 * fns.c:
19829 * frame.h:
19830 * lisp.h:
19831 * macterm.c:
19832 * print.c:
19833 * process.c:
19834 * w32fns.c:
19835 * w32menu.c:
19836 * w32term.c:
19837 * xfns.c:
19838 * xmenu.c:
19839 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19840
198412008-02-01 Kenichi Handa <handa@m17n.org>
19842
19843 * chartab.c (map_sub_char_table): Make it work for the top-level
19844 char-table. Fix handling of parent char-table.
19845 (map_char_table): Adjust for the above change.
19846
198472008-02-01 Jason Rumney <jasonr@gnu.org>
19848
19849 * w32font.c (Qgdi): Rename from Qw32.
19850
198512008-02-01 Jason Rumney <jasonr@gnu.org>
19852
19853 * w32bdf.c (get_quoted_string): Make function static.
19854
198552008-02-01 Kenichi Handa <handa@m17n.org>
19856
19857 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19858 bigger ascent and descent than those of the font, use them as
19859 font's ascent and descent.
19860
198612008-02-01 Kenichi Handa <handa@m17n.org>
19862
19863 * Makefile.in (${lispsource}international/charprop.el): Move this
19864 target within "#ifdef HAVE_UNIDATA" and "#endif".
19865
198662008-02-01 Kenichi Handa <handa@m17n.org>
19867
19868 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19869 (shortlisp): Add ../lisp/language/tai-viet.el.
19870
198712008-02-01 Ulrich Mueller <ulm@gentoo.org>
19872
19873 * Makefile.in (${lispsource}international/charprop.el): Depend on
19874 temacs${EXEEXT}.
19875
198762008-02-01 Jason Rumney <jasonr@gnu.org>
19877
19878 * w32font.c (w32font_close): Delete the GDI font object.
19879
19880 * w32menu.c: Include character.h.
19881
19882 * w32proc.c: Likewise.
19883
19884 * w32select.c: Likewise.
19885
19886 * makefile.w32-in (w32proc.o): Depend on character.h.
19887
198882008-02-01 Jason Rumney <jasonr@gnu.org>
19889
19890 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19891
19892 * w32menu.c (syms_of_w32menu): Likewise.
19893
19894 * w32proc.c (syms_of_ntproc): Likewise.
19895
19896 * w32select.c (syms_of_w32select): Likewise.
19897
19898 * w32term.c (syms_of_w32term): Likewise.
19899
199002008-02-01 Jason Rumney <jasonr@gnu.org>
19901
19902 * w32font.c (w32font_draw): Delete brush after using it.
19903
199042008-02-01 Jason Rumney <jasonr@gnu.org>
19905
19906 * w32font.c (w32font_open): Don't set font_idx.
19907 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19908 to font settings.
19909 (w32font_draw): Fill background explicitly.
19910
199112008-02-01 Jason Rumney <jasonr@gnu.org>
19912
19913 * w32term.c (w32_initialize): Don't call w32font_initialize.
19914
19915 * w32font.c (w32font_info): Remove subranges.
19916 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19917 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19918 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19919 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19920 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19921 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19922 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19923 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19924 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19925 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19926 New symbols.
19927 (font_callback_data): New struct.
19928 (w32font_list, w32font_match): Use it.
19929 (w32font_open): Don't populate subranges.
19930 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19931 (w32font_encode_char): Always return unicode code-point as-is.
19932 (w32font_text_extents): Supply a transformation matrix to
19933 GetGlyphOutline. Never look up by glyph index. Avoid looping
19934 twice. Use unicode version of GetTexExtentPoint32 instead of
19935 glyph index version.
19936 (set_fonts_frame): Remove.
19937 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19938 set frame parameter. Use backward compatible fake foundries.
19939 Save generic family in extra slot under QCfamily. Make width slot
19940 constant. Save QCspacing value. Save list of scripts instead of
19941 binary subranges.
19942 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19943 (add_font_entity_to_list): Use font_callback_data struct. Filter
19944 unwanted fonts.
19945 (add_one_font_entity_to_list): Use font_callback_data struct.
19946 (w32_registry): Default to iso10646_1.
19947 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19948 string font registries. Don't fill in font name if it is a generic
19949 family name, fill family instead. Use spacing, family and script
19950 extra info to fill pitch, family and charset fields.
19951 (list_all_matching_fonts): Use font_callback_data struct.
19952 (unicode_range_for_char): Remove.
19953 (font_supported_scripts): New function.
19954 (w32font_initialize): Remove.
19955 (syms_of_w32font): Update which symbols are defined.
19956
199572008-02-01 Jason Rumney <jasonr@gnu.org>
19958
19959 * font.c (font_pixel_size): Reverse assq_no_quit args.
19960
19961 * w32term.h (FONT_WIDTH): Report max width, not average.
19962 (FONT_MAX_WIDTH): Remove.
19963 (FONT_AVG_WIDTH): New macro.
19964
19965 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19966 redefinition of FONT_WIDTH.
19967
19968 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19969 (w32_cache_char_metrics): Use FONT_WIDTH.
19970
19971 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19972
199732008-02-01 Jason Rumney <jasonr@gnu.org>
19974
19975 * w32font.c (w32font_open): Make lfHeight negative.
19976
19977 * w32fns.c (x_default_font_parameter): Use new style font name.
19978 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19979
199802008-02-01 Jason Rumney <jasonr@gnu.org>
19981
19982 * w32font.c (QCsubranges): New symbol.
19983 (w32font_open, w32font_has_char): Get subranges from subproperty
19984 of extra.
19985 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19986 (syms_of_w32font): Define :subranges symbol.
19987
19988 * font.c (font_put_extra): Expose externally.
19989
19990 * font.h (font_put_extra): Move declaration from font.c.
19991
19992 * font.c (Ffont_get): Use font driver to determine otf capability.
19993 (adjust_anchor): Check if driver defines anchor_point before using.
19994
19995 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19996 (w32font_draw): Use options.
19997 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19998 Fix detection of truetype fonts.
19999 (registry_to_w32_charset): Handle charsets other than iso8859-1
20000 expressed as lisp symbols.
20001 (w32_registry): Express charset as lisp symbol.
20002 (fill_in_logfont): Reverse pixel and point height logic.
20003 Don't set width here. Set quality to default.
20004
20005 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20006 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20007
20008 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20009 Remove redundant loop and allocation.
20010
20011 * makefile.w32-in (font.o, w32font.o): New objects.
20012 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20013 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20014
20015 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20016 STORE_XCHARB a valid l-value.
20017
20018 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20019 calculations for non-Truetype fonts.
20020 (x_draw_glyph_string): Sync with xterm.c.
20021 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20022 Remove redundant code.
20023 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20024
20025 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20026 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20027
20028 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20029 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20030
20031 * w32font.c: New file for w32 font backend.
20032
200332008-02-01 Kenichi Handa <handa@m17n.org>
20034
20035 * term.c: Don't include "buffer.h" twice.
20036
200372008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * character.c (Funibyte_string): New function.
20040 (syms_of_character): Defsubr it.
20041
200422008-02-01 Jason Rumney <jasonr@gnu.org>
20043
20044 * w32term.c [USE_FONT_BACKEND]:
20045 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20046 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20047 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20048 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20049 (x_free_frame_resources): Sync with xterm.c.
20050
200512008-02-01 Andreas Schwab <schwab@suse.de>
20052
20053 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20054 char-table size.
20055
200562008-02-01 Kenichi Handa <handa@m17n.org>
20057
20058 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20059
200602008-02-01 Kenichi Handa <handa@m17n.org>
20061
20062 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20063 font_otf_gpos, add font_drive_otf.
20064
20065 * fontset.c (fontset_find_font): Pay attention to font size
20066 specified for a font.
20067 (reorder_font_vector): Check contents of font_def.
20068
20069 * font.c (struct otf_list): Delete it.
20070 (otf_list): Make it a lisp variable.
20071 (otf_open): Use lispy otf_list.
20072 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20073 (check_otf_features): New function.
20074 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20075 New functions.
20076 (font_drive_otf): New function merging font_otf_gsub and
20077 font_otf_gpos.
20078 (font_open_for_lface): New arg spec. Change argument order.
20079 (font_load_for_face): Adjust for the change of font_open_for_lface.
20080 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20081 Ffont_otf_gpos.
20082 (syms_of_font): Staticpro otf_list. Delete defsubr of
20083 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20084
20085 * xfaces.c (set_font_frame_param): Adjust for the change of
20086 font_open_for_lface.
20087
20088 * font.h (font_open_for_lface): Adjust prototype.
20089 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20090 member otf_drive.
20091 (font_otf_gsub, font_otf_gpos): Delete externs.
20092 (font_drive_otf): Extern it.
20093
200942008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * font.c (font_at): If the window W is not on a window system,
20097 return Qnil.
20098
20099 * coding.c (produce_chars, encode_coding): Don't call
20100 insert_from_gap if no characters to produce.
20101
201022008-02-01 Kenichi Handa <handa@m17n.org>
20103
20104 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20105 Fclear_face_cache.
20106
20107 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20108
201092008-02-01 Miles Bader <miles@gnu.org>
20110
20111 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20112 Parse "--disable-font-backend" option.
20113 (standard_args): Add "--disable-font-backend" option.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * fontset.c (fontset_find_font): New function.
20118 (fontset_font): Use fontset_find_font.
20119 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20120 Register the specified font for all Latin characters.
20121 (new_fontset_from_font): Register the specified font for all Latin
20122 characters.
20123 (dump_fontset): For a realized fontset, include the base fontset
20124 name in the returned vector.
20125
201262008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * character.h (CHAR_STRING): Cast C to unsigned on calling
20129 char_string.
20130
20131 * character.c (char_string): Type of arg C changed to unsigned.
20132 Signal an error if C is an invalid character code.
20133
20134 * editfns.c (general_insert_function, Fchar_to_string):
20135 Use CHARACTERP, not INTEGERP.
20136
201372008-02-01 Kenichi Handa <handa@m17n.org>
20138
20139 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20140 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20141
20142 * regex.c (analyse_first): Fix for multibyte characters in "case
20143 charset:" and "case categoryspec:".
20144
201452008-02-01 Andreas Schwab <schwab@suse.de>
20146
20147 * Makefile.in (LIBES): Move standard libraries to the end.
20148
201492008-02-01 Kenichi Handa <handa@m17n.org>
20150
20151 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20152 nonzero, don't shrink the buffer nextb.
20153
20154 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20155
20156 * coding.c (coding_alloc_by_making_gap): New arg offset.
20157 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20158 offset.
20159 (decode_coding_iso_2022): Update coding->safe_charsets.
20160 (decode_coding_gap): Temporarily set
20161 current_buffer->text->inhibit_shrinking to 1.
20162
201632008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20166 indexing into elements of s->cmp and s->char2b.
20167
201682008-02-01 Juanma Barranquero <lekktu@gmail.com>
20169
20170 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20171
201722008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20175 target_multibyte instead of multibyte.
20176 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20177 (bcmp_translate): Change the argument name from multibyte to
20178 target_multibyte.
20179
201802008-02-01 Kenichi Handa <handa@m17n.org>
20181
20182 These changes are to compile a regexp into a pattern that can be
20183 used both for multibyte and unibyte targets.
20184
20185 * Makefile.in (search.o): Depend on charset.h.
20186
20187 * character.c (multibyte_char_to_unibyte_safe): New function.
20188
20189 * search.c: Include "charset.h".
20190 (compile_pattern_1): Delete argument multibyte. Don't set
20191 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20192 (compile_pattern): Don't compare cp->buf.target_multibyte.
20193 Compare cp->buf.charset_unibyte.
20194 (compile_pattern): Set cp->buf.target_multibyte.
20195
20196 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20197
20198 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20199
20200 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20201 multibyte. Change callers.
20202 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20203 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20204 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20205 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20206 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20207 (regex_compile): Make the compiled pattern usable both for
20208 multibyte and unibyte targets.
20209 (analyse_first): Make the fastmap usable both for multibyte and
20210 unibyte targets.
20211 (TRANSLATE_VIA_MULTIBYTE): Delete.
20212 (re_match_2_internal): Pay attention to the case that the
20213 multibyteness of bufp and target may be different.
20214
202152008-02-01 Kenichi Handa <handa@m17n.org>
20216
20217 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20218 empty box occupy at least one column width.
20219
202202008-02-01 Miles Bader <miles@gnu.org>
20221
20222 * Makefile.in: Remove redundant HAVE_XFT clause.
20223
202242008-02-01 Kenichi Handa <handa@m17n.org>
20225
20226 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20227
202282008-02-01 Kenichi Handa <handa@m17n.org>
20229
20230 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20231 being nil.
20232
202332008-02-01 Kenichi Handa <handa@m17n.org>
20234
20235 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20236
202372008-02-01 Kenichi Handa <handa@m17n.org>
20238
20239 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20240
202412008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * search.c (simple_search): Fix previous change.
20244
202452008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * xftfont.c (ftfont_font_format): Extern declaration.
20248
20249 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20250
20251 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20252 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20253
20254 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20255 (ftfont_font_format): Fix previous change.
20256
20257 * font.h (Ffont_xlfd_name): EXFUN it.
20258
20259 * font.c (font_parse_xlfd): Fix the array size of `f'.
20260 (register_font_driver): Use EQ to compare driver->type.
20261
20262 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20263 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20264 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20265
202662008-02-01 Kenichi Handa <handa@m17n.org>
20267
20268 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20269 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20270
202712008-02-01 Kenichi Handa <handa@m17n.org>
20272
20273 * xfont.c (xfont_open): Set font->format.
20274
20275 * xftfont.c (xftfont_open): Set font->format.
20276
20277 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20278 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20279 (ftfont_open): Set font->format.
20280 (ftfont_font_format): New function.
20281
20282 * font.h (struct font): New member format.
20283
20284 * font.c (Qopentype): New variable.
20285 (syms_of_font): Defsym it.
20286 (Fquery_font): Change the format of the last element of the return
20287 value.
20288
202892008-02-01 Kenichi Handa <handa@m17n.org>
20290
20291 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20292 last resort.
20293
202942008-02-01 Kenichi Handa <handa@m17n.org>
20295
20296 * coding.c (detect_coding_charset): Fix detection of multi-byte
20297 charset.
20298
202992008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20300
20301 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20302
203032008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * xdisp.c (get_next_display_element): Set it->face_id for the
20306 first component of a composition.
20307 (x_produce_glyphs): Check if the font is changed or not for composition.
20308
203092008-02-01 Kenichi Handa <handa@m17n.org>
20310
20311 * fontset.c (Qlatin): New variable.
20312 (syms_of_fontset): Define it as a lisp symbol.
20313 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20314
203152008-02-01 Kenichi Handa <handa@m17n.org>
20316
20317 * font.c (font_unparse_fcname): Pay attention to the case that
20318 some of font property is a null string.
20319
203202008-02-01 Kenichi Handa <handa@m17n.org>
20321
20322 * term.c: Include "composite.h".
20323 (encode_terminal_code): Output all components of composition.
20324 Check the size of encode_terminal_src.
20325 (produce_glyphs): For composition, call produce_composite_glyph.
20326 (append_composite_glyph, produce_composite_glyph): New functions.
20327
20328 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20329 is not found, get font_info from the current ascii face.
20330
203312008-02-01 Kenichi Handa <handa@m17n.org>
20332
20333 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20334 buffer-file-name to Qnil before calling insert_from_buffer.
20335
20336 * font.c (font_unparse_fcname): Pay attention to the case that
20337 foundry is a null string.
20338
203392008-02-01 Kenichi Handa <handa@m17n.org>
20340
20341 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20342
20343 * font.c (Qunicode_sip): New variable.
20344 (syms_of_font): Declare it as a Lisp symbol.
20345
20346 * font.h (Qunicode_sip): Extern it.
20347
203482008-02-01 Kenichi Handa <handa@m17n.org>
20349
20350 * composite.c (get_composition_id): Pay attention to TAB component.
20351
20352 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20353 TAB. Adjust for the change of s->char2b which always points to
20354 the first element of allocated memory.
20355
20356 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20357
20358 * xdisp.c (handle_composition_prop): Set it->c to the first
20359 non-TAB component.
20360 (fill_composite_glyph_string): Change argument.
20361 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20362 (x_produce_glyphs): Fix handling of left/right padding.
20363
203642008-02-01 Kenichi Handa <handa@m17n.org>
20365
20366 * coding.c (detect_coding_system): Fix for handling off
20367 inhibit_iso_escape_detection. Fix for the case that no coding
20368 system is defined for a specific coding category.
20369
203702008-02-01 Kenichi Handa <handa@m17n.org>
20371
20372 * font.c (font_matching_entity): Delete unused local var.
20373
20374 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20375 opening a font.
20376
20377 * fileio.c (Finsert_file_contents): On recovering a file, assume
20378 Unix-like eol.
20379 (choose_write_coding_system): On auto-saving a file, force
20380 Unix-like eol.
20381
20382 * coding.c (setup_coding_system): Fix setting of
20383 coding->common_flags based on eol_type.
20384 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20385 inherit from it.
20386
203872008-02-01 Kenichi Handa <handa@m17n.org>
20388
20389 * alloc.c (NSTATICS): Increas to 0x600.
20390
203912008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20394 (ftfont_list): Don't check :name property.
20395 (ftfont_match): New function.
20396 (ftfont_pattern_entity): If the pattern doesn't contain
20397 FC_SPACING, don't assume FC_MONO.
20398
20399 * font.h (struct font_driver): New member `match'.
20400 (font_update_drivers): Adjust prototype.
20401
20402 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20403 property of FONT.
20404 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20405 them unconditionally.
20406 (font_matching_entity): New function.
20407 (font_open_by_name): Try font_matching_entity if exact match is
20408 not found.
20409 (font_update_drivers): Delete the arg FONT. Return a list of
20410 actually used backends. Don't free faces, font caches here.
20411 Don't store data in frame parameters. Don't call x_set_font.
20412 (Ffont_spec): Store :name property as is.
20413 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20414 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20415 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20416 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20417 Call font->driver->otf_gsub instead of font_otf_gsub.
20418
20419 * frame.c (x_set_font_backend): Do more works that were done in
20420 font_update_drivers before.
20421
20422 * xfont.c (xfont_match): New function.
20423 (xfont_driver): Set xfont_driver.match to xfont_match.
20424 (xfont_draw): Set font in GC if necessary.
20425
20426 * ftxfont.c (ftxfont_match): New function.
20427 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20428
20429 * xftfont.c (xftfont_match): New function.
20430 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20431
204322008-02-01 Kenichi Handa <handa@m17n.org>
20433
20434 * font.h (struct font): New member scalable.
20435 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20436 (font_otf_gsub): Adjust prototype.
20437
20438 * font.c (font_otf_capability): Fix handling of the default langsys.
20439 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20440 Check the contents of SPEC.
20441 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20442 (check_gstring): New function.
20443 (REPLACEMENT_CHARACTER): New macro.
20444 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20445 glyph codes of GSTRING.
20446 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20447 (font_prepare_composition): Set cmp->glyph_len.
20448 (font_open_entity): Set font->scalable.
20449 (Ffont_get): Handle :otf property.
20450 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20451 functions.
20452 (Fquery_font): Use font->font.full_name.
20453 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20454 Sfont_otf_alternates.
20455
20456 * ftfont.c (ftfont_open): Set font->font.full_name and
20457 font->font.name properly. Fix calculation of font->font.height
20458 and font->min_width.
20459
20460 * ftxfont.c (ftxfont_create_gcs): New function.
20461 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20462 (ftxfont_draw_backgrond): Fix filling region.
20463 (ftxfont_default_fid): New function.
20464 (ftxfont_open): Set xfont->fid to the return value of
20465 ftxfont_default_fid.
20466 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20467 (ftxfont_done_face): Free only GCs that are created by
20468 ftxfont_create_gcs.
20469 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20470
20471 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20472 Clip to src->width, etc (not src->clip_XXX).
20473
20474 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20475 FontBackend frame parameter.
20476
204772008-02-01 Kenichi Handa <handa@m17n.org>
20478
20479 * font.h (struct font_driver_list): New member `on'.
20480 (Fclear_font_cache): EXFUN it.
20481 (font_update_drivers): Extern it.
20482
20483 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20484 (font_list_entities): Check driver_list->on.
40b1a3a9 20485 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20486 (font_update_drivers): New function.
20487 (Fclear_font_cache): Check driver_list->on.
20488
20489 * frame.h (Qfont_backend): Extern it.
20490 (x_set_font_backend): Extern it.
20491
20492 * frame.c (Qfont_backend): New variable.
20493 (frame_parms): New element for font-backend.
20494 (x_set_font_backend): New function.
20495
20496 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20497 FontBackend frame parameter.
20498 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20499 x_set_font_backend.
20500
20501 * xfont.c (xfont_list): Don't try listing by :name property if the
20502 name is not for XLFD.
20503
205042008-02-01 Kenichi Handa <handa@m17n.org>
20505
20506 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20507 (LGLYPH_SET_TO): New macros.
20508 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20509 element of G is vector or not.
20510 (font_at): Extern it.
20511
20512 * font.c: Include window.h.
20513 (font_lispy_object): New function.
20514 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20515 end of valid glyph.
20516 (font_close_object): Fix getting (struct font *).
20517 (font_at): New function.
20518 (Ffont_get): If FONT is a font-object, get entity from it.
20519 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20520 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20521 range check.
20522 (Ffont_at): New function.
20523 (syms_of_font): Defsubr Sfont_at.
20524
20525 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20526 before the entry for Qcomposition.
20527 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20528 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20529 the font in gstring.
20530 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20531 LGLYPH_FORM (g) to detect the end of valid glyph.
20532 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20533 we are composing with gstring.
20534
20535 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20536 Check if adjustment is vector or not.
20537
20538 * Makefile.in (font.o): Make it depends on window.h.
20539
205402008-02-01 Kenichi Handa <handa@m17n.org>
20541
20542 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20543 adjustment is vector or not.
20544
205452008-02-01 Miles Bader <miles@gnu.org>
20546
20547 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20548
205492008-02-01 Kenichi Handa <handa@m17n.org>
20550
20551 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20552 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20553 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20554
20555 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20556 (DEVICE_DELTA): Fix typo.
20557 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20558 LGLYPH format.
20559
20560 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20561 the change of LGLYPH format.
20562
205632008-02-01 Kenichi Handa <handa@m17n.org>
20564
20565 * ftfont.c (ftfont_list): Fix typo.
20566 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20567
205682008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20569
20570 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20571
20572 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20573 xftface_info is non-NULL.
20574
205752008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20576
20577 * ftfont.c (ftfont_list): Move misplaced #endif.
20578
205792008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * ftfont.c (ftfont_list): Pay attention to the case that
20582 FC_CAPABILITY is not defined.
20583
205842008-02-01 Kenichi Handa <handa@m17n.org>
20585
20586 * xftfont.c (xftfont_open): Set charset related members to -1.
20587
20588 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20589 QCname.
20590 (ftfont_open): Set charset related members to -1.
20591
20592 * fontset.c (Votf_script_alist): New variable.
20593 (syms_of_fontset): Initialize it.
20594 (fontset_font): Delete unused variable.
20595
20596 * fontset.h (Votf_script_alist): Extern it.
20597
20598 * font.c (font_find_for_lface): Optimize code.
20599
20600 * font.h (font_close_object, font_merge_old_spec): Extern them.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20605 (syms_of_font): Initialize them.
20606 (font_pixel_size): Allow float value in dpi.
20607 (font_prop_validate_type): Delete.
20608 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20609 Change caller.
20610 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20611 (font_prop_validate_extra): Delete.
20612 (font_prop_validate_spacing): New function.
20613 (font_property_table): Add elements for all known properties.
20614 (get_font_prop_index): Rename from check_font_prop_name. New
20615 argument FROM. Change caller.
20616 (font_prop_validate): Validate all known properties.
20617 (font_put_extra): Delete argument force. Change caller.
20618 (font_expand_wildcards): Make it static. Fix the way of shrinking
20619 the possible range.
20620 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20621 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20622 Change caller.
20623 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20624 (font_parse_fcname): Delete argument merge. Fix parsing of point
20625 size. Don't validate properties values here. Change caller.
20626 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20627 (font_open_by_name): Delete unused variable.
20628 (Ffont_spec): Likewise. Validate property values.
20629 (Ffont_match_p): New function.
20630
20631 * font.h (QCscalable): Extern it.
20632 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20633
20634 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20635
20636 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20637 (xfont_list_pattern): New function.
20638 (xfont_list): Use xfont_list_pattern.
20639
206402008-02-01 Kenichi Handa <handa@m17n.org>
20641
20642 * font.h (Flist_fonts): EXFUN it.
20643
206442008-02-01 Jason Rumney <jasonr@gnu.org>
20645
20646 * w32term.c (w32_initialize): Add back smoothing_type and
20647 smoothing_enabled definitions.
20648
206492008-02-01 Kenichi Handa <handa@m17n.org>
20650
20651 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20652 s->face->font on determining underline position.
20653
206542008-02-01 Kenichi Handa <handa@m17n.org>
20655
20656 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20657 (font_has_char): Accept font-object too.
20658 (font_find_for_lface): Try at first with a size specified in face.
20659
206602008-02-01 Kenichi Handa <handa@m17n.org>
20661
20662 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20663 font_open_by_name.
20664
206652008-02-01 Kenichi Handa <handa@m17n.org>
20666
20667 * font.h (QCspacing, QCdpi): Extern them.
20668 (enum font_spacing): New enum.
20669 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20670
20671 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20672 (QCspacing, QCdpi): New variables.
20673 (syms_of_font): Initialize them.
20674 (font_pixel_size): New function.
20675 (font_put_extra): New function.
20676 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20677 in FONT_EXTRA.
20678 (font_parse_fcname): Handle enumerated values (e.g. bold).
20679 Fix handling font size. Add QCname property that contains only
20680 unknown properties.
20681 (font_score): Change argument. Change caller. Pay attention to
20682 FONT_PIXEL_SIZE_QUANTUM.
20683 (font_sort_entites, font_list_entities, font_find_for_lface)
20684 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20685 (Ffont_spec): Add QCname property that contains only unknown properties.
20686
20687 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20688 include weight in listing pattern, instead check weight of each
20689 listed font. Don't include scalable in pattern. Pay attention to
20690 FONT_PIXEL_SIZE_QUANTUM.
20691
206922008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * font.c (font_parse_fcname): Fix parsing of point-size.
20695 (font_unparse_fcname): Produce symbolic names for style properties.
20696 (font_list_entities): Handle float size correctly.
20697 (font_open_by_name): Prefer `normal' property values if the name
20698 doesn't specify them.
20699
20700 * fontset.c (Finternal_char_font): Use font_get_name, not
20701 Ffont_xlfd_name.
20702
20703 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20704 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20705 pattern. Don't force scalable.
20706
20707 * xftfont.c (xftfont_open): For generating a name, start from
20708 96-byte buffer.
20709
207102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20711
20712 * frame.h (x_new_fontset2): Fix prototype.
20713
207142008-02-01 Kenichi Handa <handa@m17n.org>
20715
20716 * font.h (struct font_driver): Delete member parse_name.
20717 (font_match_p, font_get_spec, font_parse_fcname)
20718 (font_unparse_fcname): Extern them.
20719 (font_get_name): Adjust prototype.
20720
20721 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20722 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20723 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20724 unnecessary checks for weight, slant, and swidth.
20725 (font_parse_fcname): New function.
20726 (font_unparse_fcname): New function.
20727 (font_parse_name): New function.
20728 (font_match_p): New function.
20729 (font_get_name): Change return value to Lisp string.
20730 (font_get_spec): New function.
20731 (Qunspecified, Qignore_defface): Don't extern them.
20732 (font_find_for_lface): Assume that LFACE is fully specified.
20733 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20734 object, use it for FACE.
20735 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20736 driver->parse_name.
20737 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20738
20739 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20740 prototype.
20741
20742 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20743 argument F. Don't call Fnew_fontset. Instead, directly call
20744 make_fontset.
20745
20746 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20747
20748 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20749 of x_new_fontset2.
20750
20751 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20752 (Qsans__serif): New variables.
20753 (ftfont_generic_family_list): New variable.
20754 (syms_of_ftfont): Initialize the above variables.
20755 (ftfont_pattern_entity): Delete argument NAME.
20756 (ftfont_list_generic_family): New function.
20757 (ftfont_parse_name): Delete this function.
20758 (ftfont_list): Try generic family only when FcFontList found no font.
20759 (ftfont_list_family): Fix args to FcObjectSetBuild.
20760
20761 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20762 object in attrs[LFACE_FONT_INDEX].
20763 (set_lface_from_font_name): Cancel all changes for font-backend.
20764 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20765 function.
20766 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20767 font object in QCfont attribute.
20768 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20769 (realize_default_face) [USE_FONT_BACKEND]: Call
20770 set_lface_from_font_and_fontset.
20771
20772 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20773 "fixed", and signal error here if no suitable font was found.
20774
20775 * xfont.c (xfont_parse_name): Delete this function.
20776
20777 * xftfont.c (xftfont_open): Change coding style of error
20778 handling. Generate fontconfig's fontname pattern.
20779
20780 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20781 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20782
20783 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20784 Both args FONTSET and FONT_OBJECT must be existing ones.
20785
207862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20787
20788 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20789
207902008-02-01 Kenichi Handa <handa@m17n.org>
20791
20792 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20793
20794 * font.h (struct font): Fix typo.
20795
20796 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20797 XLFD_XXX_INDEX.
20798 (enum xlfd_field_mask): New enum.
20799 (intern_font_field): Changed argument. Change caller. If digits
20800 are followed by non-digits, return a symbol.
20801 (font_expand_wildcards): New function.
20802 (font_parse_xlfd): Fix wildcard handling.
20803 (Ffont_spec): If :name is specified, reflect the info in the other
20804 properties.
20805
20806 * ftfont.c (ftfont_pattern_entity): Fix typo.
20807 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20808 locale.
20809
208102008-02-01 Kenichi Handa <handa@m17n.org>
20811
20812 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20813
20814 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20815 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20816 registry doesn't specify encoding part.
20817 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20818 (font_open_by_name): At first try parsing the name.
20819 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20820 as Lisp symbols.
20821
20822 * fontset.c (reorder_font_vector): Pay attention to the case that
20823 the 3rd element of font_def is nil.
20824 (fontset_font): For the default fontset, append one more fontset
20825 elements for a script-based font specification. Don't add script
20826 attribute on finding a font.
20827 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20828 font name.
20829 (fontset_ascii_font): If a font can't be opened, return nil.
20830
20831 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20832 (ftfont_pattern_entity): New function.
20833 (ftfont_get_cache): Assume that freetype_font_cache is already
20834 initialized.
20835 (ftfont_list): Handle the case that a file is specified in font
20836 name. Use ftfont_pattern_entity to generate entities.
20837 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20838 (syms_of_ftfont): Initialize freetype_font_cache.
20839
20840 * xftfont.c (xftfont_open): Make the font name fontconfig's
20841 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20842 (xftfont_close): Free font->font.name if not NULL.
20843
20844 * xfont.c (xfont_list): If script is specified for a font, return
20845 null_vector.
20846 (xfont_list_family): Declare argument type.
20847
20848 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20849 name, set LFACE_FONT (lface) to nil.
20850
20851 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20852 return Qnil.
20853
208542008-02-01 Kenichi Handa <handa@m17n.org>
20855
20856 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20857 (standard_args): Add "-enable-font-backend".
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20862 (struct xftdraw_list, xftdraw_list): Delete them.
20863 (register_xftdraw, check_xftdraw): Delete them.
20864 (xftfont_prepare_face): Don't call register_xftdraw.
20865 (xftfont_done_face): Don't call check_xftdraw.
20866 (xftfont_draw): Get background color only when with_background is
20867 nonzero.
20868
20869 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20870
208712008-02-01 Kenichi Handa <handa@m17n.org>
20872
20873 These changes are for the new font handling codes.
20874
20875 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20876 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20877 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20878 (FONTSRC, FONTOBJ): New variables.
20879 (obj): Add $(FONTOBJ).
20880 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20881 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20882 @LIBOTF_LIBS@.
20883 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20884 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20885
20886 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20887
20888 * character.h (Vscript_representative_chars): Extern it.
20889
20890 * character.c (Vscript_representative_chars): New variable.
20891 (syms_of_character): Declare it as a Lisp variable.
20892
20893 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20894 enable_font_backend is nonzero, accept the composition method
20895 COMPOSITION_WITH_GLYPH_STRING.
20896
20897 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20898 enumeration COMPOSITION_WITH_GLYPH_STRING.
20899
20900 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20901 members clip_x, clip_y, clip_width, and clip_height.
20902 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20903
20904 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20905 --enable-font-backend. Call syms_of_font.
20906
20907 * fns.c (assoc_no_quit): New function.
20908
20909 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20910 (face_for_font, new_fontset_from_font)
20911 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20912
20913 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20914 (fontset_font, fontset_ascii, face_for_char)
20915 (make_fontset_for_ascii_face, Ffont_info)
20916 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20917 is nonzero, use font-backend mechanism.
20918 (find_font_encoding): Make it non-static.
20919 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20920 New functions.
20921
20922 * frame.h (struct frame): New members resx and resy.
20923 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20924 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20925
20926 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20927 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20928
20929 * lisp.h (assoc_no_quit): Extern it.
20930
20931 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20932 Through out the file, use FONT_INFO_FROM_FACE instead of
20933 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20934 rif->per_char_metric.
20935 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20936 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20937 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20938 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20939 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20940 nonzero, use font-backend mechanism.
20941 (get_per_char_metric): New function.
20942
20943 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20944 (set_lface_from_font_name)
20945 (set_font_frame_param, free_realized_face)
20946 (prepare_face_for_display, clear_face_gcs)
20947 (Finternal_set_font_selection_order, realize_x_face)
20948 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20949 font-backend mechanism.
20950 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20951 (load_face_font) [USE_FONT_BACKEND]: Abort.
20952 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20953 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20954
20955 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20956 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20957 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20958 nonzero, register all available font drivers. Call
20959 x_default_font_parameter for deciding a font.
20960 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20961
20962 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20963 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20964 (x_set_glyph_string_clipping_exactly)
20965 (x_compute_glyph_string_overhangs)
20966 (x_draw_glyph_string_foreground)
20967 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20968 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20969 enable_font_backend is nonzero, use font-backend mechanism.
20970 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20971
209722008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20975 system_eol_type.
20976 (syms_of_coding): Initialize system_eol_type.
20977
20978 * process.c (Fset_process_coding_system): Inherit system's eol
20979 format if necessary.
20980
209812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20982
20983 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20984
209852008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * coding.c (decode_eol): Pay attention to buffer relocation in
20988 del_range_2.
20989 (decode_coding): Call decode_eol before restoring undo_list.
20990
209912008-02-01 Kenichi Handa <handa@m17n.org>
20992
20993 * charset.c (Fdefine_charset_internal): Fix setting of
20994 emacs_mule_bytes.
20995
209962008-02-01 Kenichi Handa <handa@m17n.org>
20997
20998 * keyboard.c (read_char): Check if C is a character or not before
20999 looking up Vkeyboard_translate_table.
21000
210012008-02-01 Kenichi Handa <handa@m17n.org>
21002
21003 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21004 condition to terminate the loop.
21005
210062008-02-01 Kenichi Handa <handa@m17n.org>
21007
21008 * coding.c (produce_composition): Compare charbuf[i] instead of
21009 args[i] against 0.
21010 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21011
210122008-02-01 Kenichi Handa <handa@m17n.org>
21013
21014 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21015 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21016 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21017 detect_coding.
21018 (emacs_mule_char): Handle old style (Emacs 20) component character
21019 of a composition.
21020 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21021 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21022 composition rule.
21023 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21024
210252008-02-01 Kenichi Handa <handa@m17n.org>
21026
21027 * coding.c (encode_coding_ccl): Allocate destination dynamically
21028 when necessary.
21029
210302008-02-01 Kenichi Handa <handa@m17n.org>
21031
21032 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21033 the loop. When quitted, show a proper error message.
21034
210352008-02-01 Kenichi Handa <handa@m17n.org>
21036
21037 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21038 src->clip_head and src->clip_tail temporarily instead of src->hl.
21039
21040 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21041 character sequence.
21042 (Fccl_execute_on_string): Use ASET, not XSET.
21043
210442008-02-01 Kenichi Handa <handa@m17n.org>
21045
21046 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21047
210482008-02-01 Kenichi Handa <handa@m17n.org>
21049
21050 * coding.c (decode_coding): Fix the condition of terminating the
21051 decoding loop.
21052
210532008-02-01 Kenichi Handa <handa@m17n.org>
21054
21055 * data.c (Faset): On setting a character bigger than 255 in a
21056 unibyte string, signal an error instead of make the string multibyte.
21057
210582008-02-01 Kenichi Handa <handa@m17n.org>
21059
21060 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21061 made by a mapping table.
21062
210632008-02-01 Kenichi Handa <handa@m17n.org>
21064
21065 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21066 not.
21067 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21068 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21069
21070 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21071 s->face is NULL or not.
21072
210732008-02-01 Kenichi Handa <handa@m17n.org>
21074
21075 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21076 (x_draw_glyph_string): Fix drawing of right_overhang and
21077 left_overhang around/on cursor.
21078
21079 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21080
210812008-02-01 Kenichi Handa <handa@m17n.org>
21082
21083 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21084
210852008-02-01 Kenichi Handa <handa@m17n.org>
21086
21087 * coding.c (Fdefine_coding_system_internal)
21088 (Fdefine_coding_system_alias): Avoid a duplicated element in
21089 Vcoding_system_alist.
21090
210912008-02-01 Kenichi Handa <handa@m17n.org>
21092
21093 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21094
21095 * coding.c (Qcoding_system_define_form): New variable.
21096 (syms_of_coding): Intern and staticpro it.
21097 (Fcoding_system_p): Check Qcoding_system_define_form.
21098 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21099
21100 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21101 Fcoding_system_p.
21102 (CHECK_CODING_SYSTEM): If ID is not available, call
21103 Fcheck_coding_system.
21104 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21105 Try also Fcheck_coding_system.
21106
211072008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 * coding.c (code_conversion_restore): GCPRO arg.
21110
211112008-02-01 Kenichi Handa <handa@m17n.org>
21112
21113 * character.c (lisp_string_width): Check multibyteness of STRING.
21114
211152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21116
21117 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21118 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21119 (decode_mac_font_name): Use decode_coding_c_string instead of
21120 decode_coding.
21121 (x_load_font): Initialize fontp->fontset to -1. Set
21122 fontp->encoding_type.
21123
211242008-02-01 Kenichi Handa <handa@m17n.org>
21125
21126 * search.c (search_buffer): Give up BM search on case-fold-search
21127 if one of a target character has a case-equivalence of different
3b59c351 21128 byte length even if that target character is an ASCII.
aac0c6e3
MR
21129 (simple_search): Fix calculation of byte length of matched text.
21130 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21131
211322008-02-01 Kenichi Handa <handa@m17n.org>
21133
21134 * coding.c (decode_coding): Fix handling of invalid bytes.
21135
211362008-02-01 Kenichi Handa <handa@m17n.org>
21137
21138 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21139 Unicode characters.
21140
211412008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * coding.c (encode_coding_object): If a pre-write-conversion
21144 function makes a new buffer, kill it.
21145
211462008-02-01 Kenichi Handa <handa@m17n.org>
21147
21148 * coding.c (QCascii_compatible_p): New variable.
21149 (syms_of_coding): Initialize it.
21150 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21151 calling string_char.
21152 (record_conversion_result): Add `default:' case.
21153 (coding_charset_list): Delete unused variable `coding_type'.
21154 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21155 property in the plist of the coding system.
21156 (Fcoding_system_put): Check QCascii_compatible_p.
21157
211582008-02-01 Miles Bader <miles@gnu.org>
21159
21160 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21161 removed calculation of frame `f', as it's now used.
21162
211632008-02-01 Kenichi Handa <handa@m17n.org>
21164
21165 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21166 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21167 (UNIDATA): New variable.
21168 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21169 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21170 $(RUN_TEMACS) unconditionally.
21171
211722008-02-01 Kenichi Handa <handa@m17n.org>
21173
21174 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21175 (admindir): New variable.
21176 ($(lispsource)international/charprop.el): New target.
21177
211782008-02-01 Miles Bader <miles@gnu.org>
21179
21180 * character.c (chars-in-region): Remove obsolete function.
21181 (syms_of_character): Remove its initialization.
21182
211832008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21184
21185 * w32select.c (validate_coding_system)
21186 (setup_windows_coding_system): New functions.
21187 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21188 setup_windows_coding_system.
21189 (setup_config, Fw32_get_clipboard_data): Use
21190 validate_coding_system.
21191 (Fx_selection_exists): Move call to setup_config to a place
21192 where signals are allowed.
21193
21194 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21195 (Fcheck_coding_system): Add declarations.
21196
211972008-02-01 Kenichi Handa <handa@m17n.org>
21198
21199 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21200
212012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21202
21203 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21204 string as the second argument for x_new_fontset.
21205
212062008-02-01 Kenichi Handa <handa@m17n.org>
21207
21208 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21209 (encode_coding_object): Use safe_call instead of call2.
21210
212112008-02-01 Kenichi Handa <handa@m17n.org>
21212
21213 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21214
21215 * Makefile.in (lisp): Include charprop.el.
21216
212172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21218
21219 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21220 Not sure if it's unnecessary.
21221
212222008-02-01 Steven Tamm <steventamm@mac.com>
21223
21224 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21225 some possibly unnecessary fontset checking code that crashed
21226 when creating a new frame.
21227
212282008-02-01 Kenichi Handa <handa@m17n.org>
21229
21230 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21231 lookup_face.
21232
21233 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21234
21235 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21236
212372008-02-01 Kenichi Handa <handa@m17n.org>
21238
21239 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21240 (coding_charset_list): New function.
21241
21242 * coding.h (coding_charset_list): Extern it.
21243
212442008-02-01 Kenichi Handa <handa@m17n.org>
21245
21246 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21247 concatenation of family and registry.
21248
212492008-02-01 Kenichi Handa <handa@m17n.org>
21250
21251 * character.h (BYTE8_STRING): Fix typo.
21252
21253 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21254 string to multibyte (sync to HEAD).
21255
21256 * casefiddle.c (casify_region): Handle changes in byte-length
21257 using replace_range_2 (sync to HEAD).
21258
212592008-02-01 Andreas Schwab <schwab@suse.de>
21260
21261 * chartab.c (map_char_table): GCPRO table and arg.
21262
212632008-02-01 Kenichi Handa <handa@m17n.org>
21264
21265 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21266 already at limit.
21267
212682008-02-01 Kenichi Handa <handa@m17n.org>
21269
21270 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21271 instead of fast_c_string_match_ignore_case.
21272 (find_font_encoding): Change argument to Lisp_Object. Use
21273 fast_string_match_ignore_case instead of
21274 fast_c_string_match_ignore_case. Change caller.
21275
212762008-02-01 Kenichi Handa <handa@m17n.org>
21277
21278 * xdisp.c (get_next_display_element): In unibyte case, decide to
21279 display in octal form by checking a character by
21280 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21281
21282 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21283
21284 * character.c (unibyte_has_multibyte_table): New variable.
21285
21286 * character.h (unibyte_has_multibyte_table): Extern it.
21287 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21288
212892008-02-01 Kenichi Handa <handa@m17n.org>
21290
21291 * coding.c (encode_coding_iso_2022): Fix handling of charset
21292 annotation.
21293
212942008-02-01 Kenichi Handa <handa@m17n.org>
21295
21296 * coding.c (setup_coding_system): If coding_system is nil, use
21297 Qundecided.
21298 (Fterminal_coding_system): Return nil if terminal coding system is
21299 `undecided'.
21300 (syms_of_coding): Define coding-system `undecided' here. Setup
21301 terminal_coding as `undecided'.
21302
213032008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * xdisp.c (message_dolog, set_message_1): Call
21306 unibyte_char_to_multibyte with arg type int.
21307
21308 * lread.c (read1): Fix reading of a char-table.
21309
21310 * print.c (print_object): Include sub char-table in circularities
21311 detection.
21312
213132008-02-01 Kenichi Handa <handa@m17n.org>
21314
21315 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21316 Append the found sequences in car of ARGS instead of prepending.
21317
213182008-02-01 Kenichi Handa <handa@m17n.org>
21319
21320 * fileio.c (report_file_error): Make a unibyte string from
21321 strerror (errorno).
21322 (Fsubstitute_in_file_name): Fix the arg to
21323 unibyte_char_to_multibyte. It is evaluated twice.
21324
213252008-02-01 Kenichi Handa <handa@m17n.org>
21326
21327 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21328
213292008-02-01 Kenichi Handa <handa@m17n.org>
21330
21331 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21332 BOM is not found.
21333 (detect_coding, detect_coding_system): Optimization for ISO-2022
21334 when no 8-bit data is found.
21335
213362008-02-01 Jason Rumney <jasonr@gnu.org>
21337
21338 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21339
213402008-02-01 Kenichi Handa <handa@m17n.org>
21341
21342 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21343 CHARS.
21344
213452008-02-01 Steven Tamm <steventamm@mac.com>
21346
21347 * macterm.c (mac_encode_char): Add charset argument and update
21348 to use encoding_type.
21349 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21350 switch to pure fontset.
21351 (decode_mac_font_name): Temporarily remove decoding.
21352 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21353 (x_load_font): Temporarily remove encoding.
21354
213552008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * xfaces.c (Fface_font): If frame is not on a window system,
21358 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21359 refer to face->font.
21360 (split_font_name_into_vector, build_font_name_from_vector)
21361 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21362 when HAVE_WINDOW_SYSTEM is defined.
21363
213642008-02-01 Kenichi Handa <handa@m17n.org>
21365
21366 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21367 (x_produce_glyphs): Fix setting of members of cmp in case
21368 cmp->glyph_len is zero.
21369
21370 * fontset.c (Fset_fontset_font): Fix docstring.
21371 (Ffontset_info): Make it backward compatible. New arg ALL.
21372
213732008-02-01 Kim F. Storm <storm@cua.dk>
21374
21375 * process.c (read_process_output): Grow decoding_buf when needed;
21376 this could cause a crash in allocate_string and compact_small_strings.
21377
213782008-02-01 Kenichi Handa <handa@m17n.org>
21379
21380 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21381
213822008-02-01 Kenichi Handa <handa@m17n.org>
21383
21384 * coding.c (setup_coding_system): Set coding->common_flags
21385 correctly for raw-text.
21386 (consume_chars): On encoding unibyte text by raw-text, don't check
21387 multibyte form.
21388 (encode_coding): On encoding by raw-text, never use translation tables.
21389
21390 * fileio.c (e_write): Short cut for the case of no encoding.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * coding.c (detect_coding, detect_coding_system): Delete unused
21395 variables.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21400 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21401
214022008-02-01 Kenichi Handa <handa@m17n.org>
21403
21404 * coding.c (Ffind_coding_systems_region_internal): Include
21405 raw-text and no-conversion in the result.
21406
214072008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21410 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21411 FONT_DEF.
21412 (font_def_arg, add_arg, from_arg, to_arg): New args.
21413 (set_fontset_font): Change argument.
21414 (Fset_fontset_font): Fix for the case that TARGET is a script
21415 name and charset name.
21416 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21417
214182008-02-01 Kenichi Handa <handa@m17n.org>
21419
21420 * fontset.c (fontset_font): Rename from fontset_face. Change return
21421 value.
21422 (face_suitable_for_char_p, face_for_char): Adjust for the change
21423 of fontset_font.
21424 (make_fontset_for_ascii_face): Fix setting of the fontset element
21425 for ASCII.
21426 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21427 to get a font name.
21428 (Ffontset_info): Adjust for the change of fontset_font.
21429
21430 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21431
21432 * character.h (LEADING_CODE_LATIN_1_MIN)
21433 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21434
214352008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * editfns.c (check_translation): New function.
21438 (Ftranslate_region_internal): Handle M:N mapping.
21439
214402008-02-01 Kenichi Handa <handa@m17n.org>
21441
21442 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21443
214442008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21447 goto invalid_code.
21448 (decode_coding_iso_2022): Fix handling of invalid designation.
21449
21450 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21451 after calling code_conversion_save.
21452
214532008-02-01 Kenichi Handa <handa@m17n.org>
21454
21455 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21456
21457 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21458
21459 * fontset.c: Include "intervals.h".
21460 (fontset_face): Fix comparing of Lisp_Objects.
21461 (free_face_fontset, new_fontset_from_font_name): Fix
21462 Lisp_Object/int mixup.
21463
21464 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21465
21466 * coding.c: Add many prototypes for static functions.
21467 (get_translation_table): Allow max_lookup to be NULL.
21468 (decode_coding, Ffind_coding_systems_region_internal)
21469 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21470 get_translation_table with max_lookup NULL.
21471
214722008-02-01 Kenichi Handa <handa@m17n.org>
21473
21474 * coding.c (get_translation_table): Declare it as Lisp_Object.
21475 (LOOKUP_TRANSLATION_TABLE): New macro.
21476 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21477 instead of CHAR_TABLE_REF.
21478
214792008-02-01 Kenichi Handa <handa@m17n.org>
21480
21481 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21482 annotation data format.
21483 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21484 Change arguments FROM and TO to single argument NCHARS. Change caller.
21485 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21486 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21487 (decode_coding_ccl, decode_coding_charset): Pay attention to
21488 coding->charbuf_used.
21489 (get_translation): New function.
21490 (produce_chars): New arguments translation_table and last_block.
21491 Translate characters here. Return number of carryover chars.
21492 Change caller.
21493 (produce_composition): New argument pos. Change caller.
21494 Adjust for the change of annotation data format.
21495 (produce_charset, produce_annotation): Likewise.
21496 (decode_coding, encode_coding): Don't call translate_chars.
21497 (consume_chars): New arg translation_table. Change caller.
21498 (translate_chars): Delete.
21499 (syms_of_coding): Make translation-table's number of extra slots 2.
21500
215012008-02-01 Kenichi Handa <handa@m17n.org>
21502
21503 * search.c (simple_search): Fix setting this_pos_byte in backward
21504 search.
21505
21506 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21507 byte sequence.
21508 (detect_coding_ccl): Fix setting of the variable valids.
21509
215102008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21513
21514 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21515
21516 * editfns.c (Ftranslate_region_internal): Rename from
21517 Ftranslate_region. Accept a char-table in TABLE.
21518 (syms_of_editfns): Defsubr Stranslate_region_internal.
21519
21520 * xfaces.c (set_lface_from_font_name): If a font is specified for
21521 a frame, generate a fontset from the font.
21522 (build_scalable_font_name): If the scalable font is requested for
21523 a specific size, don't change that size.
21524 (try_font_list): Try a scalable font also in the case that a
21525 pattern string is specified.
21526
215272008-02-01 Kenichi Handa <handa@m17n.org>
21528
21529 * xfaces.c (Fface_font): New optional arg CHARACTER.
21530
215312008-02-01 Kenichi Handa <handa@m17n.org>
21532
21533 * charset.h (CHARSET_OFFSET): New macro.
21534
215352008-02-01 Kenichi Handa <handa@m17n.org>
21536
21537 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21538
21539 * fontset.c (fontset_face): Handle the case that repertory is a
21540 char-table.
21541 (find_font_encoding): Return nil for unknown encoding.
21542 (Fset_fontset_font): Ignore a font of unknown encoding.
21543
215442008-02-01 Kenichi Handa <handa@m17n.org>
21545
21546 * keymap.c (describe_vector): Handle default value of a char table.
21547
21548 * fontset.c (fontset_face): Handle fallback fonts correctly.
21549 (Ffontset_info): Return infomation about fallback fonts.
21550
215512008-02-01 Kenichi Handa <handa@m17n.org>
21552
21553 * fontset.c (FONTSET_DEFAULT): New macro.
21554 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21555 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21556 the case that it is nil.
21557 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21558 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21559
21560 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21561 subset or superset.
21562
215632008-02-01 Kenichi Handa <handa@m17n.org>
21564
21565 * emacs.c (main): Call init_charset after syms_of_XXX.
21566
21567 * charset.c (Vcharset_map_directory): Delete.
21568 (Vcharset_map_path): New variable.
21569 (load_charset_map_from_file): Use Vcharset_map_path instead.
21570 (init_charset): Initialize Vcharset_map_path.
21571 (syms_of_charset): Delete declaration of "charset-map-directory",
21572 add declaration of "charset-map-path".
21573
215742008-02-01 Kenichi Handa <handa@m17n.org>
21575
21576 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21577 ASCII only string.
21578
21579 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21580
21581 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21582 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21583
215842008-02-01 Kenichi Handa <handa@m17n.org>
21585
21586 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21587
21588 * coding.c (QCmnemonic, QCdefalut_char)
21589 (QCdecode_translation_table, QCencode_translation_table)
21590 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21591 (get_translation_table): Return a list of translation tables if
21592 necessary.
21593 (decode_coding): Call get_translation_table with ENCODEP 0.
21594 (char_encodable_p): If translation_table is non-nil, always call
21595 translate_char.
21596 (Fdefine_coding_system_internal): Accept list of translation
21597 tables as :encode-translation-table and :decode-translation-table.
21598 (Fcoding_system_put): New function.
21599 (syms_of_coding): Declare new symbols. Defsubr
21600 Scoding_system_put.
21601 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21602 typically JISX0212.
21603
21604 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21605 when the charset is superset type.
21606
21607 * character.c (translate_char): Accept list of translation tables.
21608
216092008-02-01 Kenichi Handa <handa@m17n.org>
21610
21611 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21612 (CODING_ATTR_TRANS_TBL): New macro.
21613
21614 * coding.c (get_translation_table): New function.
21615 (translate_chars): Fix the bug of skipping annotation data.
21616 (decode_coding, encode_coding): Utilize get_translation_table.
21617 (char_encodable_p, Funencodable_char_position): Translate char if
21618 necessary.
21619 (Ffind_coding_systems_region_internal)
21620 (Fcheck_coding_systems_region): Setup translation table for encode
21621 in a coding system attribute vector in advance.
21622 (Fdefine_coding_system_internal): Allow a symbol as translation
21623 table. For shift-jis type coding system, allow 4th charset.
21624
216252008-02-01 Kenichi Handa <handa@m17n.org>
21626
21627 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21628
21629 * xdisp.c (get_next_display_element): Pass -1 as POS to
21630 FACE_FOR_CHAR if displaying a C-string.
21631
216322008-02-01 Kenichi Handa <handa@m17n.org>
21633
21634 * composite.c (get_composition_id): Handle xoff and yoff in a
21635 composition rule.
21636
21637 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21638 (struct composition): New member lbearing and rbearing.
21639
21640 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21641 (x_get_glyph_overhangs): Handle a composition glyph.
21642 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21643
21644 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21645 composition glyph.
21646
216472008-02-01 Kenichi Handa <handa@m17n.org>
21648
21649 * print.c: Include charset.h.
21650 (Vprint_charset_text_property): New variable.
21651 (Qdefault): Extern it.
21652 (PRINT_STRING_NON_CHARSET_FOUND)
21653 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21654 (print_check_string_result): New variable.
21655 (print_check_string_charset_prop): New function.
21656 (print_prune_charset_plist): New variable.
21657 (print_prune_string_charset): New function.
21658 (print_object): Call print_prune_string_charset if
21659 Vprint_charset_text_property is not t.
21660 (print_interval): Print nothing if interval->plist is nil.
21661 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21662 variable. Init and staticpro print_prune_charset_plist.
21663
216642008-02-01 Kenichi Handa <handa@m17n.org>
21665
21666 * fontset.c (new_fontset_from_font_name): Use the specified font
21667 for all characters in the new fontset.
21668
21669 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21670 OBJECT args.
21671
21672 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21673 OBJECT args for composition too.
21674
21675 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21676 OBJECT args.
21677
216782008-02-01 Kenichi Handa <handa@m17n.org>
21679
21680 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21681
21682 * fontset.c (reorder_font_vector): Adjust for the change of
21683 FONT_DEF format.
21684 (fontset_face): New arg id. Change caller.
21685 (face_for_char): New args pos and object.
21686 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21687 (fs_query_fontset): Check NAME by Fassoc too.
21688 (Fset_fontset_font): Allow non-XLFD font name.
21689 (Ffontset_info): Adjust for the change of FONT_DEF format.
21690
21691 * fontset.h (face_for_char): Adjust prototype.
21692
21693 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21694 (append_space, extend_face_to_end_of_line)
21695 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21696 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21697
21698 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21699 POS and OBJECT args.
21700
21701 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21702 POS and OBJECT args.
21703
217042008-02-01 Jason Rumney <jasonr@gnu.org>
21705
21706 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21707 of GlobalAlloc'ed memory.
21708
217092008-02-01 Kenichi Handa <handa@m17n.org>
21710
21711 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21712
21713 * charset.h (charset_table_used): Delete extern.
21714
21715 * charset.c (charset_table_used): Make it static.
21716 (map_charset_chars): Fix args to c_function with.
21717
21718 * chartab.c (map_sub_char_table_for_charset): Fix args to
21719 c_function with.
21720
21721 * coding.h (enum coding_result_code): Delete
21722 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21723
21724 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21725 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21726 (Vlast_code_conversion_error): New variables.
21727 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21728 (ONE_MORE_BYTE): Record error if any instead of signaling an
21729 error. If non-ASCII multibyte char is found, return the negative
21730 value of the code. All callers changed to check it.
21731 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21732 (record_conversion_result): New function. Change all codes setting
21733 coding->result to call this function.
21734 (detect_coding_utf_8, decode_coding_utf_8)
21735 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21736 Don't use the local variable incomplete.
21737 (emacs_mule_char): Change the second arg to `const'.
21738 (decode_coding): Fix of flushing out unprocessed data.
21739 (make_conversion_work_buffer): Fix making of a work buffer.
21740 (decode_coding_object): Return coding->dst_object.
21741
21742 * fontset.c (set_fontset_font): Fix args.
21743
21744 * lisp.h (CHARACTERBITS): Define as 22.
21745
21746 * process.c (send_process): Be sure to set coding->src_multibyte.
21747
21748 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21749
217502008-02-01 Kenichi Handa <handa@m17n.org>
21751
21752 * xdisp.c (handle_auto_composed_prop): Give limit to
21753 Fnext_single_char_property_change.
21754
217552008-02-01 Kenichi Handa <handa@m17n.org>
21756
21757 * composite.c (syms_of_composite): Don't make the composition hash
21758 table weak.
21759
21760 * fontset.c (Fset_fontset_font): Fix docstring.
21761
21762 * lisp.h (detect_coding_system): Adjust prototype.
21763
21764 * fileio.c (kill_workbuf_unwind): Delete this function.
21765 (Finsert_file_contents): Adjust the call of detect_coding_system.
21766 Get conversion_buffer by code_conversion_save. Use the macro
21767 CODING_MAY_REQUIRE_DECODING. After decoding, update
21768 coding_system.
21769
21770 * coding.h (make_conversion_work_buffer): Delete extern.
21771 (code_conversion_save): Extern it.
21772
21773 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21774 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21775 (decode_coding_utf_8): Don't do eol converion.
21776 (detect_coding_utf_16): Check coding->src_chars, not
21777 coding->src_bytes. Add heuristics for those that have no signature.
21778 (decode_coding_emacs_mule, decode_coding_iso_2022)
21779 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21780 Don't do eol converion.
21781 (adjust_coding_eol_type): Return a new coding system.
21782 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21783 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21784 each change.
21785 (decode_coding): Pay attention to undo_list. Do eol conversion for
21786 all types of coding-systems (if necessary).
21787 (Vcode_conversion_work_buf_list): Delete it.
21788 (Vcode_conversion_reused_workbuf): Rename from
21789 Vcode_conversion_reused_work_buf.
21790 (Vcode_conversion_workbuf_name): New variable.
21791 (reused_workbuf_in_use): New variable.
21792 (make_conversion_work_buffer): Delete the arg DEPTH.
21793 (code_conversion_restore): Change argument to cons.
21794 (code_conversion_save): Delete the argument BUFFER. Change callers.
21795 (detect_coding_system): New argument src_chars. Change callers.
21796 Fix for utf-16 detection.
21797 (init_coding_once): Don't use ISO_carriage_return.
21798 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21799 reused_workbuf_in_use.
21800
218012008-02-01 Kenichi Handa <handa@m17n.org>
21802
21803 * keymap.c (store_in_keymap): Pay attention to the case that idx
21804 is a cons specifying a character range.
21805
218062008-02-01 Kenichi Handa <handa@m17n.org>
21807
21808 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21809 HANDLED_RECOMPUTE_PROPS.
21810
21811 * coding.c (Fdefine_coding_system_internal): Fix checking of
21812 ascii compatibility.
21813
218142008-02-01 Kenichi Handa <handa@m17n.org>
21815
21816 * charset.c (find_charsets_in_text): Delete unused locale variable.
21817 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21818
21819 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21820 Resync charset_list to Vemacs_mule_charset_list.
21821
21822 * keymap.c (store_in_keymap): Pay attention to the case that idx
21823 is a cons specifying a character range.
21824
218252008-02-01 Kenichi Handa <handa@m17n.org>
21826
21827 * composite.c (update_compositions): Bind inhibit-read-only, etc
21828 to t before calling remove-list-of-text-properties.
21829
21830 * print.c (print_object): Always print ASCII chars as is.
21831
218322008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21835
21836 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21837 is a char table.
21838
218392008-02-01 Kenichi Handa <handa@m17n.org>
21840
21841 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21842
218432008-02-01 Kenichi Handa <handa@m17n.org>
21844
21845 * xfaces.c (set_lface_from_font_name): Fix for the case that
21846 FONTNAME is not fontset name.
21847
218482008-02-01 Kenichi Handa <handa@m17n.org>
21849
21850 * fns.c (base64_encode_1): Fix previous change.
21851
218522008-02-01 Kenichi Handa <handa@m17n.org>
21853
21854 * fontset.c (set_fontset_font): New function.
21855 (Fset_fontset_font): If a font is specified for a charset, use
21856 map_charset_chars to store the font spec in a fontset.
21857
218582008-02-01 Kenichi Handa <handa@m17n.org>
21859
21860 * fontset.c (fontset_face): Create a fallback fontset on demand.
21861 (make_fontset): Don't create a fallback fontset here.
21862 (free_face_fontset): Free a fallback fontset (if any) too.
21863 (n_auto_fontsets): Delete this variable.
21864 (auto_fontset_alist): New variable.
21865 (new_fontset_from_font_name): Check auto_fontset_alist.
21866 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21867 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21868 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21869 Defsubr Sfontset_list_all.
21870
218712008-02-01 Kenichi Handa <handa@m17n.org>
21872
21873 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21874
218752008-02-01 Kenichi Handa <handa@m17n.org>
21876
21877 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21878
218792008-02-01 Kenichi Handa <handa@m17n.org>
21880
21881 * editfns.c (Fgoto_char): Fix docstring.
21882
218832008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * insdel.c (insert_from_gap): Adjust intervals correctly.
21886
218872008-02-01 Jason Rumney <jasonr@gnu.org>
21888
21889 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21890 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21891 (w32_initialize): Try to load it.
21892 (x_get_font_repertory): Use it if available.
21893 (w32_encode_char): Add shortcut for unicode output.
21894
21895 * w32fns.c (w32_load_system_font): Default charset to -1.
21896 (x_to_w32_charset): Match all fonts for unicode.
21897 (w32_to_x_charset): New parameter matching. Don't return partial
21898 or wildcard charsets.
21899 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21900 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21901 (w32_to_x_font): Match charset to real charset.
21902 (enum_font_cb2): Always list unicode versions.
21903
21904 * makefile.w32-in (temacs): Increase EMHEAP.
21905
219062008-02-01 Jason Rumney <jasonr@gnu.org>
21907
21908 * w32term.c (w32_encode_char): New charset parameter.
21909 font_info.encoding becomes encoding_type.
21910 (x_get_font_repertory): New function. Warning: stub only!
21911 (x_new_font): Return quickly if font already set.
21912 (x_new_fontset): fontsetname parameter is Lisp_Object.
21913 Use new fs_query_fontset. Try new_fontset_from_font_name.
21914 Use fontset_name for return value.
21915
21916 * w32term.h: Declare x_get_font_repertory.
21917
21918 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21919 place of find_charset_in_text. Use encode_coding_object in place
21920 of encode_coding.
21921 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21922 decode_coding.
21923
21924 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21925 of x_new_fontset.
21926 (w32_load_system_font): Initialize charset as unicode.
21927 font_info.encoding becomes encoding_type.
21928 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21929 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21930 (syms_of_w32fns): Set get_font_repertory_func.
21931
21932 * w32console.c: Include character.h. Use terminal_encode_buffer
21933 from term.c.
21934 (write_glyphs): Use new version of encode_terminal_code. Use
21935 encode_coding_object in place of encode_coding.
21936
21937 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21938 encoding becomes encoding_type.
21939
21940 * term.c (terminal_encode_buffer): Make externally visible.
21941
21942 * makefile.w32-in: Add character.h dependancies.
21943 (character.o, chartab.o): New targets.
21944
219452008-02-01 Kenichi Handa <handa@m17n.org>
21946
21947 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21948 CODING_ID_EOL_TYPE.
21949
219502008-02-01 Andreas Schwab <schwab@suse.de>
21951
21952 * coding.c (produce_chars): Revert last change.
21953
219542008-02-01 Kenichi Handa <handa@m17n.org>
21955
21956 * charset.h (charset_unicode): Extern it.
21957
21958 * charset.c (string_xstring_p): Check by (C >= 0x100).
21959 (find_charsets_in_text): Change format of the arc CHARSETS. New
21960 arg MULTIBYTE.
21961 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21962 change of find_charsets_in_text.
21963 (Fsplit_char): Fix doc. Never return unknown.
21964
21965 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21966
21967 * coding.c (Fdefine_coding_system_alias): Update
21968 Vcoding_system_list.
21969
21970 * fontset.c (load_font_get_repertory): Pay attention to the case
21971 that ENCODING of a font is specified by a char-table.
21972
21973 * xterm.c (x_get_font_repertory): Handle the case that the
21974 encoding of font is other than Unicode.
21975
219762008-02-01 Kenichi Handa <handa@m17n.org>
21977
21978 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21979 if a character is encodable by the terminal coding system. If
21980 not, produces proper number of `?'s. Update
21981 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21982 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21983
219842008-02-01 Kenichi Handa <handa@m17n.org>
21985
21986 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21987 variables.
21988 (encode_terminal_code): Change argument. Encode multiple
21989 characters at once. Store the result of encoding in
21990 terminal_encode_buffer.
21991 (write_glyphs, insert_glyphs): Adjust for the change of
21992 encode_terminal_code.
21993 (term_init): Initialize terminal_encode_buffer and
21994 terminal_encode_buf_size.
21995
21996 * coding.c (consume_chars): If coding->src_object is nil, don't
21997 check annotation.
21998
219992008-02-01 Kenichi Handa <handa@m17n.org>
22000
22001 * character.c (char_string): Use ASCII_CHAR_P instead of
22002 SINGLE_BYTE_CHAR_P.
22003
220042008-02-01 Kenichi Handa <handa@m17n.org>
22005
22006 * xdisp.c (handle_auto_composed_prop): Check if the last
22007 characters of auto-composed region is newly composed with the
22008 following characters.
22009 (handle_composition_prop): Fix checking of point being inside
22010 composition.
22011
220122008-02-01 Kenichi Handa <handa@m17n.org>
22013
22014 * fns.c (concat): Don't change multibyteness of the result by
22015 concatenating an 8-bit character.
22016
22017 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22018 multibyteness of the result when newelt is an 8-bit character.
22019
220202008-02-01 Dave Love <fx@gnu.org>
22021
22022 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22023 EMACS_INT.
22024
22025 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22026
22027 * xfaces.c (face_numeric_value): Declare dim size_t.
22028 (Finternal_lisp_face_equal_p): Remove unused f.
22029
22030 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22031 (MATRIX_ROW): Remove unused vars.
22032 (draw_glyphs, x_insert_glyphs, fast_find_position)
22033 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22034 byte/char counts.
22035
22036 * regex.c (regex_compile): Remove unused var.
22037
22038 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22039
22040 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22041 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22042
22043 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22044
22045 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22046
22047 * fileio.c (Fwrite_region): Remove unused var.
22048
22049 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22050 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22051
22052 * composite.c (Fremove_list_of_text_properties): Declare.
22053
22054 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22055 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22056 (coding_inherit_eol_type): Remove unused attrs.
22057 (detect_coding): Cast arg of detect_eol.
22058
22059 * charset.c (syms_of_charset): Remove unused var p.
22060 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22061 byte/char counts.
22062
22063 * casetab.c (set_case_table): Remove unused var.
22064
22065 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22066 unused vars.
22067
220682008-02-01 Dave Love <fx@gnu.org>
22069
22070 * xterm.c (x_bitmap_mask): Declare.
22071
220722008-02-01 Dave Love <fx@gnu.org>
22073
22074 * xterm.c (x_term_init): Fix type error.
22075
22076 * lisp.h: Add Funibyte_char_to_multibyte.
22077
22078 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22079 (Fset_coding_system_priority): Doc fix.
22080
22081 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22082
22083 * indent.c (check_composition): Make start and end EMACS_INT.
22084
22085 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22086
22087 * xdisp.c (handle_composition_prop, check_point_in_composition):
22088 Make buffer positions EMACS_INT.
22089
22090 * composite.c (find_composition, run_composition_function)
22091 (update_compositions, Ffind_composition_internal): Make buffer
22092 positions EMACS_INT.
22093
22094 * composite.h (find_composition, update_compositions): Make
22095 position args EMACS_INT.
22096
22097 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22098
22099 * intervals.c (get_property_and_range):
22100 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22101
22102 * unexalpha.c: Don't include varargs.h.
22103
221042008-02-01 Dave Love <fx@gnu.org>
22105
22106 * coding.h (ENCODE_UTF_8): New.
22107
22108 * Makefile.in (gtkutil.o): Depend on coding.h.
22109
22110 * coding.c (Fset_coding_system_priority): Doc fix.
22111
221122008-02-01 Kenichi Handa <handa@m17n.org>
22113
22114 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22115 the case of auto saving.
22116
221172008-02-01 Andreas Schwab <schwab@suse.de>
22118
22119 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22120 `range' from GC.
22121
221222008-02-01 Kenichi Handa <handa@m17n.org>
22123
22124 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22125
221262008-02-01 Kenichi Handa <handa@m17n.org>
22127
22128 * fileio.c (choose_write_coding_system): Return a decided coding system.
22129 (Fwrite_region): Set Vlast_coding_system_used to the return value
22130 of choose_write_coding_system.
22131
221322008-02-01 Kenichi Handa <handa@m17n.org>
22133
22134 * charset.c (Fset_charset_priority): Pay attention to duplicated
22135 arguments.
22136
22137 * coding.c (QCcategory): New variable.
22138 (syms_of_coding): Defsym it. Set all elements of
22139 Vcoding_category_table and their symbol values.
22140 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22141 coding-category-XXX, and coding-category-list.
22142 (Fdefine_coding_system_internal): Add category in the plist.
22143
221442008-02-01 Kenichi Handa <handa@m17n.org>
22145
22146 * callproc.c (Fcall_process): Handle carryover correctly.
22147
22148 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22149 (raw_text_coding_system): Check NILP (coding_system).
22150 (coding_inherit_eol_type): Check NILP (coding_system) and
22151 NILP (parent).
22152 (consume_chars): Fix for the case of raw-text.
22153
22154 * process.c (read_process_output): Handle carryover correctly.
22155
221562008-02-01 Dave Love <fx@gnu.org>
22157
22158 * regex.c (re_search_2): Fix last change.
22159
221602008-02-01 Kenichi Handa <handa@m17n.org>
22161
22162 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22163 target_multibyte. Even in a unibyte case, return a converted
22164 multibyte char.
22165 (GET_CHAR_AFTER): New macro.
22166 (PATFETCH): Translate via multibyte char.
22167 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22168 (SETUP_MULTIBYTE_RANGE): New macro.
22169 (regex_compile): Setup compiled code so that its multibyteness
22170 matches that of a target. Fix the handling of "[X-YZ]" using
22171 SETUP_MULTIBYTE_RANGE.
22172 (analyse_first) <charset>: For filling fastmap for all multibyte
22173 characters, don't check by BASE_LEADING_CODE_P.
22174 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22175 the same as RE_MULTIBYTE_P (bufp) now.
22176 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22177 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22178 (TRANSLATE_VIA_MULTIBYTE): New macro.
22179 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22180 It is the same as RE_MULTIBYTE_P (bufp) now.
22181 <exactn>: Translate via multibyte.
22182 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22183 translate it.
22184 <charset, charset_not>: Fetch a character by
22185 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22186 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22187 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22188 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22189 by GET_CHAR_AFTER.
22190 (bcmp_translate): Likewise.
22191
22192 * search.c (compile_pattern): Check the member target_multibyte,
22193 not the member multibyte of buf.
22194
22195 * lread.c (read1): While reading a string, set force_singlebyte
22196 and force_multibyte correctly.
22197
22198 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22199 up of unibyte_to_multibyte_table.
22200
222012008-02-01 Kenichi Handa <handa@m17n.org>
22202
22203 * coding.c (setup_coding_system): If coding has
22204 post-read-conversion or pre-write-conversion, set
22205 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22206 respectively.
22207 (decode_coding_gap): Run post-read-conversion if any.
22208
22209 * fileio.c (Finsert_file_contents): Even if we read into a
22210 unibyte buffer, check if we must decode the result or not.
22211
222122008-02-01 Kenichi Handa <handa@m17n.org>
22213
22214 * coding.c (make_conversion_work_buffer): Change the work buffer
22215 name to the same one as that of Emacs 21.
22216
222172008-02-01 Kenichi Handa <handa@m17n.org>
22218
22219 * coding.h (make_conversion_work_buffer): Adjust prototype.
22220 (code_conversion_restore): Don't extern it.
22221
22222 * coding.c (detected_mask): Delete unused variable.
22223 (decode_coding_iso_2022): Pay attention to the byte sequence of
22224 CTEXT extended segment, and retain those bytes as is.
22225 (decode_coding_ccl): Delete unused variable `valids'.
22226 (setup_coding_system): Delete unused variable `category'.
22227 (consume_chars): Delete unused variable `category'. Make it work
22228 for non-multibyte case.
22229 (make_conversion_work_buffer): Change argument.
22230 (saved_coding): Delete unused variable.
22231 (code_conversion_restore): Don't check saved_coding->destination.
22232 (code_conversion_save): New function.
22233 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22234 instead of record_unwind_protect.
22235 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22236 (detect_coding_system): Delete unused variable `mask'.
22237 (Fdefine_coding_system_internal): Delete unused variable id.
22238
22239 * fileio.c (kill_workbuf_unwind): New function.
22240 (Finsert_file_contents): On replacing, call
22241 make_conversion_work_buffer with correct args, and call
22242 record_unwind_protect with the first arg kill_workbuf_unwind.
22243
22244 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22245
222462008-02-01 Kenichi Handa <handa@m17n.org>
22247
22248 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22249 (fontset_add): Fix for the case that TO is less than TO1.
22250 (Ffontset_info): Don't use fallback fontset on checking the
22251 default fontset.
22252 (dump_fontset): New function for debugging.
22253
22254 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22255 coding_type is Qcharset.
22256
222572008-02-01 Kenichi Handa <handa@m17n.org>
22258
22259 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22260 (map_char_table): Don't inherit the value from the parent on
22261 initializing VAL. Adjust for the above change.
22262
222632008-02-01 Kenichi Handa <handa@m17n.org>
22264
22265 * coding.c (Qsignature, Qendian): Delete these variables.
22266 (syms_of_coding): Don't initialize them.
22267 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22268 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22269 detect_info->found.
22270 (decode_coding_utf_16): Don't detect BOM here.
22271 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22272 is NOT utf_16_without_bom.
22273 (setup_coding_system): For a coding system of type utf-16, check
22274 if the attribute :endian is Qbig or not (not nil or not), and set
22275 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22276 (detect_coding): If coding type is utf-16 and BOM detection is
22277 required, detect it.
22278 (Fdefine_coding_system_internal): For a coding system of type
22279 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22280
222812008-02-01 Kenichi Handa <handa@m17n.org>
22282
22283 * coding.c (coding_set_source): Fix for the case that the current
22284 buffer is different from coding->src_object.
22285 (decode_coding_object): Don't use the conversion work buffer if
22286 DST_OBJECT is a buffer.
22287
222882008-02-01 Dave Love <fx@gnu.org>
22289
22290 * lread.c (read_emacs_mule_char) [len==2]: Index
22291 emacs_mule_charset correctly.
22292
222932008-02-01 Dave Love <fx@gnu.org>
22294
22295 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22296 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22297 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22298 treated specially.)
22299 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22300 (detected_mask): Remove Big5 bits.
22301
223022008-02-01 Kenichi Handa <handa@m17n.org>
22303
22304 The following changes are to make the font rescaling facility
22305 compatible with Emacs 21.
22306
22307 * xfaces.c (Vface_font_rescale_alist): Rename from
22308 Vface_resizing_fonts.
22309 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22310 (font_rescale_ratio): Rename from font_resizing_ratio.
22311 (split_font_name): Set font->rescale_ratio.
22312 (better_font_p): Pay attention to font->rescale_ratio.
22313 (build_scalable_font_name): Likewise. Change RESX, and RESY
22314 fields.
22315 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22316
223172008-02-01 Kenichi Handa <handa@m17n.org>
22318
22319 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22320 (Qutf_16_le): Remove these variables.
22321 (syms_of_coding): Don't DEFSYM them.
22322 (decode_coding_utf_16): Fix handling of BOM.
22323 (encode_coding_utf_16): Fix handling of BOM.
22324
223252008-02-01 Kenichi Handa <handa@m17n.org>
22326
22327 * fileio.c (Finsert_file_contents): On replacing, before decoding
22328 the file into the work buffer, set point of the work buffer to the end.
22329
223302008-02-01 Dave Love <fx@gnu.org>
22331
22332 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22333
223342008-02-01 Dave Love <fx@gnu.org>
22335
22336 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22337 and fix C types.
22338
223392008-02-01 Kenichi Handa <handa@m17n.org>
22340
22341 * xdisp.c (SKIP_GLYPHS): New macro.
22342 (set_cursor_from_row): Pay attention to string display properties.
22343
22344 * category.c (copy_category_entry): Fix for the case that RANGE
22345 is an integer.
22346
22347 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22348
22349 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22350
223512008-02-01 Kenichi Handa <handa@m17n.org>
22352
22353 * charset.c (Fcharset_id_internal): New function.
22354 (syms_of_charset): Defsubr it.
22355
22356 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22357 with the last arg charset_list acquired from coding.
22358 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22359 the attribute coding_attr_ccl_valids.
22360
22361 * coding.h (enum define_coding_ccl_arg_index): Set the first
22362 member coding_arg_ccl_decoder to coding_arg_max.
22363
22364 * ccl.h (ccl_driver): Adjust prototype.
22365
22366 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22367 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22368 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22369 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22370 last arg Qnil.
22371
223722008-02-01 Kenichi Handa <handa@m17n.org>
22373
22374 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22375 call encode_char.
22376
22377 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22378
223792008-02-01 Dave Love <fx@gnu.org>
22380
22381 * composite.c (syms_of_composite): Make composition_hash_table weak.
22382
223832008-02-01 Kenichi Handa <handa@m17n.org>
22384
22385 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22386 (font_name_registry): Don't extern them.
22387 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22388
22389 * fontset.h (Qfontset): Don't extern it.
22390 (new_fontset_from_font_name): Extern it.
22391
22392 * fontset.c: Give 8 extra slots to fontset objects.
22393 (Qfontset_info): New variable.
22394 (syms_of_fontset): Defsym it.
22395 (FONTSET_FALLBACK): New macro.
22396 (fontset_face): Try also the default fontset.
22397 (make_fontset): Realize a fallback fontset from the default fontset.
22398 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22399 using split_font_name_into_vector and build_font_name_from_vector.
22400 (Fset_fontset_font): Access the elements of font_spec by enum
22401 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22402 name by using split_font_name_into_vector.
22403 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22404 generate a proper font name from the fontset name. Update
22405 Vfontset_alias_alist.
22406 (n_auto_fontsets): New variable.
22407 (new_fontset_from_font_name): New function.
22408 (Ffont_info): Store the information about fonts generated from the
22409 default fontset in the first extra slot of the returned char-table.
22410
22411 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22412 (font_name_registry): Delete function.
22413 (split_font_name_into_vector): New function.
22414 (build_font_name_from_vector): New function.
22415 (font_list): The argument REGISTRY is now a list of registry names.
22416 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22417 specifies an explicit font name, return the name as is. Make a
22418 list of registy names.
22419
22420 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22421 of x_new_fontset.
22422 (Fx_create_frame): Don't call x_new_fontset here. Just use
22423 x_list_fonts to check the existence of fonts.
22424
22425 * xterm.h (x_new_fontset): Adjust prototype.
22426
22427 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22428 string. Use new_fontset_from_font_name to create a fontset from a
22429 font name.
22430
224312008-02-01 Kenichi Handa <handa@m17n.org>
22432
22433 * syntax.c (Vfind_word_boundary_function_table): New name for
22434 Vnext_word_boundary_function_table.
22435 (find-word-boundary-function-table): New name for
22436 next-word-boundary-function-table.
22437
224382008-02-01 Dave Love <fx@gnu.org>
22439
22440 * Makefile.in: Fix some dependencies.
22441
22442 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22443 set it to nil before returning.
22444
22445 * composite.c (update_compositions): Fix type error.
22446
22447 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22448
224492008-02-01 Kenichi Handa <handa@m17n.org>
22450
22451 * xterm.c (x_new_font): Optimize for the case that the font is
22452 already set for the frame.
22453
224542008-02-01 Kenichi Handa <handa@m17n.org>
22455
22456 * chartab.c (char_table_ascii): Check if the char table contents
22457 is sub-char-table or not.
22458 (char_table_set, char_table_set_range): Fix argument to
22459 char_table_ascii.
22460
22461 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22462 (detect_coding_utf_8, detect_coding_utf_16)
22463 (detect_coding_emacs_mule, detect_coding_iso_2022)
22464 (detect_coding_sjis, detect_coding_big5)
22465 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22466 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22467 sequence is valid in this coding system. Change callers.
22468 (MAX_ANNOTATION_LENGTH): New macro.
22469 (ADD_ANNOTATION_DATA): New macro.
22470 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22471 ADD_ANNOTATION_DATA. Change the format of annotation data.
22472 (ADD_CHARSET_DATA): New macro.
22473 (emacs_mule_char): New argument ID. Change callers.
22474 (decode_coding_emacs_mule, decode_coding_iso_2022)
22475 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22476 Produce charset annotation data in coding->charbuf.
22477 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22478 to charset annotation data in coding->charbuf.
22479 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22480 coding->common_flags if the coding system is iso-2022 based and
22481 uses designation.
22482 (produce_composition): Adjust for the new annotation data format.
22483 (produce_charset): New function.
22484 (produce_annotation): Handle charset annotation.
22485 (handle_composition_annotation, handle_charset_annotation): New
22486 functions.
22487 (consume_chars): Handle charset annotation. Utilize the above two
22488 functions.
22489 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22490 buffer, get the deleted text as a string and set
22491 coding->src_object to that string.
22492 (detect_coding, detect_coding_system): Use the new struct
22493 coding_detection_info.
22494
22495 * coding.h (struct coding_detection_info): New structure.
22496 (struct coding_system): Adjust prototype of the member `detector'.
22497 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22498
224992008-02-01 Kenichi Handa <handa@m17n.org>
22500
22501 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22502
225032008-02-01 Dave Love <fx@gnu.org>
22504
22505 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22506 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22507 to new local and nullify apropos_accumulate before returning.
22508 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22509
225102008-02-01 Kenichi Handa <handa@m17n.org>
22511
22512 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22513 correctly.
e3eea1fc 22514
aac0c6e3
MR
225152008-02-01 Dave Love <fx@gnu.org>
22516
22517 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22518
225192008-02-01 Kenichi Handa <handa@m17n.org>
22520
22521 The following changes are to make character composition happen
22522 automatically on displaying.
22523
22524 * Makefile.in (lisp, shortlisp): Add composite.elc.
22525
22526 * composite.h (Qauto_composed, Vauto_composition_function)
22527 (Qauto_composition_function): Extern them.
22528
22529 * composite.c (Vcomposition_function_table)
22530 (Qcomposition_function_table): Delete variables.
22531 (Qauto_composed, Vauto_composition_function)
22532 (Qauto_composition_function): New variables.
22533 (run_composition_function): Don't call
22534 compose-chars-after-function.
22535 (update_compositions): Clear `auto-composed' text property.
22536 (compose_chars_in_text): Delete this function.
22537 (syms_of_composite): Staticpro Qauto_composed and
22538 Qauto_composition_function. Declare Vauto_composition_function as
22539 a Lisp variable.
22540
22541 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22542
22543 * xdisp.c (it_props): Add an entry for Qauto_composed.
22544 (handle_auto_composed_prop): New function.
22545
22546 * xselect.c (selection_data_to_lisp_data): Don't call
22547 compose_chars_in_text.
22548
225492008-02-01 Dave Love <fx@gnu.org>
22550
22551 * keyboard.c (read_char): Modify checking around use of
22552 Vkeyboard_translate_table.
22553
22554 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22555 and fix C types.
22556
225572008-02-01 Kenichi Handa <handa@m17n.org>
22558
22559 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22560 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22561 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22562 the case that the last byte is '\r' correctly.
22563 (decode_coding): Flush out the unprocessed data correctly.
22564 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22565
225662008-02-01 Dave Love <fx@gnu.org>
22567
22568 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22569 Add XK_ISO... case.
22570 (xaw_scroll_callback): Revert last change.
22571
225722008-02-01 Kenichi Handa <handa@m17n.org>
22573
22574 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22575
225762008-02-01 Kenichi Handa <handa@m17n.org>
22577
22578 * xfaces.c (Vface_resizing_fonts): New variable.
22579 (struct font_name): New member `resizing_ratio'.
22580 (font_resizing_ratio): New function.
22581 (split_font_name): Set font->resizing_ratio.
22582 (better_font_p): Pay attention to font->resizing_ratio.
22583 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22584 RESX, and RESY fields.
22585 (try_alternative_families): Try scalable fonts if
22586 Vscalable_fonts_allowed is not Qt.
22587 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22588
225892008-02-01 Dave Love <fx@gnu.org>
22590
22591 * xterm.c (xaw_scroll_callback): Cast correctly.
22592
225932008-02-01 Dave Love <fx@gnu.org>
22594
22595 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22596 (lispy_kana_keys): Comment out.
22597 (make_lispy_event) [XK_kana_A]: Comment out.
22598
22599 * xterm.c (xaw_scroll_callback): Cast call_data.
22600 (XTread_socket): Deal with ASCII keysyms.
22601 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22602
226032008-02-01 Dave Love <fx@gnu.org>
22604
22605 * xterm.c (Vx_keysym_table): New.
22606 (syms_of_xterm): Initialize it.
22607 (XTread_socket): Use it.
22608 From head: Eliminate incorrect optimization that tried to avoid
22609 decoding the output of X*LookupString.
22610 (x_get_font_repertory): Delete charset declaration.
22611
226122008-02-01 Kenichi Handa <handa@m17n.org>
22613
22614 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22615 return 0.
22616 (Fdefine_coding_system_internal): Setup
22617 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22618
226192008-02-01 Dave Love <fx@gnu.org>
22620
22621 * coding.c (Fcheck_coding_system): Doc fix.
22622
22623 * editfns.c (Finsert_byte): Return a proper value.
22624
226252008-02-01 Kenichi Handa <handa@m17n.org>
22626
22627 * coding.c (decode_coding): Fix args to translate_chars. Pay
22628 attention to Vstandard_translation_table_for_decode.
22629 (encode_coding): Fix args to translate_chars. Pay attention to
22630 Vstandard_translation_table_for_encode.
22631
22632 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22633 SINGLE_BYTE_CHAR_P.
22634
22635 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22636 not by SINGLE_BYTE_CHAR_P.
22637
22638 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22639 SINGLE_BYTE_CHAR_P.
22640
22641 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22642 SINGLE_BYTE_CHAR_P.
22643
22644 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22645 by SINGLE_BYTE_CHAR_P.
22646
22647 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22648 SINGLE_BYTE_CHAR_P.
22649
226502008-02-01 Dave Love <fx@gnu.org>
22651
22652 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22653
226542008-02-01 Dave Love <fx@gnu.org>
22655
22656 * fns.c (Flanginfo): Fix typo.
22657
22658 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22659
226602008-02-01 Kenichi Handa <handa@m17n.org>
22661
22662 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22663 (detect_coding_emacs_mule, detect_coding_iso_2022)
22664 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22665 incomplete byte sequence. Don't update *mask when correctly detected.
22666 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22667 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22668 (detect_coding, detect_coding_system): Adjust for the changes above.
22669
226702008-02-01 Kenichi Handa <handa@m17n.org>
22671
22672 * character.c (char_string): Rename from
22673 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22674 (string_char): Rename from string_char.
22675
22676 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22677 if C is greater than MAX_3_BYTE_CHAR.
22678 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22679 string_char instead of string_char_with_unification.
22680
226812008-02-01 Dave Love <fx@gnu.org>
22682
22683 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22684
226852008-02-01 Kenichi Handa <handa@m17n.org>
22686
22687 * keymap.c (push_key_description): Pay attention to force_multibyte.
22688
22689 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22690
226912008-02-01 Dave Love <fx@gnu.org>
22692
22693 * charset.c (define_charset_internal): Rename `supprementary'.
22694
22695 * Makefile.in (lisp, shortlisp): Remove latin-N.
22696
226972008-02-01 Dave Love <fx@gnu.org>
22698
22699 * xfns.c (x_window, x_window): Use use_xim.
22700
22701 * xterm.c (use_xim): Initialize.
22702 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22703 (x_term_init): Maybe set use_xim.
22704
22705 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22706
227072008-02-01 Kenichi Handa <handa@m17n.org>
22708
22709 * search.c (search_buffer): Fix case-fold-search of multibyte
22710 characters.
22711 (boyer_moore): Rename the last argument to char_high_bits.
22712
227132008-02-01 Kenichi Handa <handa@m17n.org>
22714
22715 * xdisp.c (display_string): Fix for the case of zero width glyph.
22716
22717 * xfns.c (x_set_font): Change the error message of the case that
22718 x_new_fontset returns Qt.
22719
22720 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22721 (Finternal_set_lisp_face_attribute): Use signal_error for the
22722 error of invalid fontset.
22723
22724 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22725 fontset, return Qt.
22726
227272008-02-01 Dave Love <fx@gnu.org>
22728
22729 * unexelf.c (unexec): Make .got handling not SGI-specific.
22730
22731 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22732
22733 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22734
22735 * keyboard.c (read_key_sequence): Fix type error.
22736
22737 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22738 type error.
22739
22740 * fontset.c (fontset_add): Return Lisp_Object.
22741
227422008-02-01 Dave Love <fx@gnu.org>
22743
22744 * charset.h (charset_ordered_list_tick): Declare extern.
22745
227462008-02-01 Kenichi Handa <handa@m17n.org>
22747
22748 The following changes (and some of 2008-02-01 changes of mine) are
22749 for handling syntax, category, and case conversion for unibyte
22750 characters by converting them to multibyte on the fly. With these
22751 changes, we don't have to setup syntax and case tables for unibyte
22752 characters in each language environment.
22753
22754 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22755 multibyte if necessary.
22756
22757 * bytecode.c (Fbyte_code): Likewise.
22758
22759 * character.h (LEADING_CODE_LATIN_1_MIN)
22760 (LEADING_CODE_LATIN_1_MAX): New macros.
22761 (unibyte_to_multibyte_table): Extern it.
22762 (unibyte_char_to_multibyte): New macro.
22763 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22764 (CHAR_LEADING_CODE): New macro.
22765 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22766
22767 * character.c (unibyte_to_multibyte_table): New variable.
22768 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22769 (multibyte_char_to_unibyte): If C is an eight-bit character,
22770 convert it to the corresponding byte value.
22771
22772 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22773 not 1, signals an error. Update the elements of
22774 unibyte_to_multibyte_table.
22775 (init_charset_once): Initialize unibyte_to_multibyte_table.
22776 (syms_of_charset): Define the charset `iso-8859-1'.
22777
22778 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22779 as is without converting it to unibyte. In a unibyte buffer,
22780 convert C to multibyte before checking the syntax.
22781
22782 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22783
22784 * minibuf.c (Fminibuffer_complete_word): Use the macro
22785 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22786
22787 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22788
22789 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22790 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22791 that is zero, convert an eight-bit char to multibyte.
22792 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22793 non-emacs case.
22794 (PATFETCH): Convert an eight-bit char to multibyte.
22795 (HANDLE_UNIBYTE_RANGE): New macro.
22796 (regex_compile): Setup the compiled pattern for multibyte chars
22797 even if the given regex string is unibyte. Use PATFETCH_RAW
22798 instead of PATFETCH in many places. To handle `charset'
22799 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22800 only for ASCII chars.
22801 (analyse_first) <exactn>: Simplify because the compiled pattern
22802 is multibyte.
22803 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22804 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22805 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22806 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22807 multibyte always 1.
22808 (re_search_2): In emacs, set the locale variable multibyte to 1,
22809 otherwise to 0. New local variable target_multibyte. Check it
22810 to decide the multibyteness of STR1 and STR2. If
22811 target_multibyte is zero, convert unibyte chars to multibyte
22812 before translating and checking fastmap.
22813 (TARGET_CHAR_AND_LENGTH): New macro.
22814 (re_match_2_internal): In emacs, set the locale variable multibyte
22815 to 1, otherwise to 0. New local variable target_multibyte. Check
22816 it to decide the multibyteness of STR1 and STR2. Use
22817 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22818 <charset, charset_not>: If multibyte is nonzero, check fastmap
22819 only for ASCII chars. Call bcmp_translate with
22820 target_multibyte, not with multibyte.
22821 <begline>: Declare the local variable C as `unsigned'.
22822 (bcmp_translate): Change the last arg name to target_multibyte.
22823
22824 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22825 the regexp pattern and the matching target. Set cp->buf.multibyte
22826 to the multibyteness of the regexp pattern. Set
22827 cp->but.target_multibyte to the multibyteness of the matching target.
22828 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22829 FETCH_STRING_CHAR_ADVANCE.
22830 (Freplace_match): Convert unibyte chars to multibyte.
22831
22832 * syntax.c (char_quoted, back_comment, scan_words)
22833 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22834 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22835 unibyte chars to multibyte.
22836 (skip_chars): Delete the arg syntaxp, and move the code for
22837 handling syntaxes to skip_syntaxes. Change callers.
22838 Fix the case that the multibyteness of STRING and the current
22839 buffer doesn't match.
22840 (skip_syntaxes): New function.
22841 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22842 SINGLE_BYTE_CHAR_P.
22843
228442008-02-01 Kenichi Handa <handa@m17n.org>
22845
22846 * xfaces.c (QCfontset): New variable.
22847 (LFACE_FONTSET): New macro.
22848 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22849 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22850 (Finternal_set_lisp_face_attribute)
22851 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22852 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22853 check also LFACE_FONTSET_INDEX.
22854 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22855 attrs[LFACE_FONT_INDEX].
22856 (syms_of_xfaces): Intern and staticpro QCfontset.
22857
22858 * dispextern.h (enum lface_attribute_index): New member
22859 LFACE_FONTSET_INDEX.
22860
22861 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22862
228632008-02-01 Kenichi Handa <handa@m17n.org>
22864
22865 * coding.c (coding_set_destination): Fix coding->destination for
22866 the case converting a region.
22867 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22868 (encode_coding_object): Fix coding->dst_pos and
22869 coding->dst_pos_byte for the case converting a region.
22870
22871 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22872
22873 * character.h (BYTE8_STRING): New macro.
22874
22875 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22876
228772008-02-01 Kenichi Handa <handa@m17n.org>
22878
22879 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22880 characters by octal form.
22881
22882 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22883
22884 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22885 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22886 _fetch_multibyte_char_len.
22887 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22888
22889 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22890
22891 * casefiddle.c (casify_object): Simplify. Handle the case that
22892 the case conversion change the byte length.
22893 (casify_region): Likewise.
22894
22895 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22896
22897 * character.c (_fetch_multibyte_char_len): Delete this variable.
22898 (syms_of_character): Setup Vprintable_chars.
22899
22900 * editfns.c (Fchar_equal): Fix for the unibyte case.
22901 (Finsert_byte): New function.
22902 (syms_of_editfns): Defsubr it.
22903
22904 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22905 of direct code 0x3ffff.
22906
22907 * search.c (Freplace_match): Fix for the unibyte case.
22908
229092008-02-01 Kenichi Handa <handa@m17n.org>
22910
22911 * lread.c (safe_to_load_p): Fix the logic.
22912
22913 * syntax.c (scan_words): Don't treat characters belonging to
22914 different scripts as constituting a word.
22915
22916 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22917
22918 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22919
22920 * emacs.c (main): In the case of --unibyte, instead of aborting on
22921 finding non-empty buffer, make it unibyte.
22922
229232008-02-01 Kenichi Handa <handa@m17n.org>
22924
22925 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22926 to create a fontset.
22927
229282008-02-01 Dave Love <fx@gnu.org>
22929
22930 * character.c (Funibyte_char_to_multibyte): Doc fix.
22931
22932 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22933
229342008-02-01 Kenichi Handa <handa@m17n.org>
22935
22936 * fontset.c (fontset_add): Make the type `int'.
22937 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22938
22939 * character.c (unibyte_char_to_multibyte)
22940 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22941 charset_unibyte, not charset_primary.
22942
22943 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22944
22945 * charset.c (charset_unibyte): Rename from charset_primary.
22946 (Funibyte_charset): Rename from Fprimary_charset.
22947 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22948 (syms_of_charset): Adjust for the above changes.
22949
22950 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22951 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22952 it->multibyte_p is zero.
22953
22954 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22955 Delete extern.
22956
229572008-02-01 Kenichi Handa <handa@m17n.org>
22958
22959 * coding.c (Fdefine_coding_system_internal): Fix category setting
22960 for a coding system of type iso-2022.
22961
229622008-02-01 Kenichi Handa <handa@m17n.org>
22963
22964 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22965
229662008-02-01 Kenichi Handa <handa@m17n.org>
22967
22968 * syntax.c (Vnext_word_boundary_function_table): New variable.
22969 (next-word-boundary-function-table): Declare it as a Lisp variable
22970 in syms_of_syntax.
22971 (scan_words): Call functions in Vnext_word_boundary_function_table
22972 if any.
22973
22974 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22975
22976 * fontset.c (fs_load_font): If fontp->charset is not negative,
22977 return fontp without setting its members.
22978
229792008-02-01 Dave Love <fx@gnu.org>
22980
22981 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22982
22983 * m/sparc.h (HAVE_ALLOCA): Delete.
22984
22985 * s/irix6-5.h: Don't include strings.h.
22986 (bcopy, bzero, bcmp): Don't undef.
22987
22988 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22989
22990 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22991 (TIOCSIGSEND): Don't test IRIX6.
22992 (bcopy, bzero, bcmp): Define conditionally.
22993
229942008-02-01 Kenichi Handa <handa@m17n.org>
22995
22996 * buffer.c (Qas, Qmake, Qto): New variables.
22997 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22998 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22999
23000 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23001 we are inserting a process output into a multibyte buffer.
23002
23003 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23004 multibyte_char_to_unibyte.
23005
23006 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23007 by the primary charset, make it eight-bit char.
23008 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23009
23010 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23011 (charset_8_bit__control, charset_8_bit_graphic)
23012 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23013 (define_charset_internal): New function.
23014 (syms_of_charset): Call define_charset_internal for pre-defined
23015 charsets.
23016
23017 * charset.h (charset_8_bit): Extern it.
23018
23019 * coding.c (make_conversion_work_buffer): Adjust for the change
23020 of Fset_buffer_multibyte.
23021 (encode_coding_raw_text): Increment p0 in the loop.
23022
23023 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23024
23025 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23026 for the change of Fset_buffer_multibyte.
23027
23028 * fns.c (Fstring_to_multibyte): New function.
23029 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23030
230312008-02-01 Dave Love <fx@gnu.org>
23032
23033 * xfns.c (x_put_x_image): Declare args.
23034
23035 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23036 (try_font_list): Declare an arg.
23037
23038 * xdisp.c (message2_nolog, set_message): Declare an arg.
23039
23040 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23041
23042 * syntax.c (scan_sexps_forward): Declare an arg.
23043
23044 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23045 Declare an arg.
23046
23047 * lisp.h (Fnew_fontset): Declare.
23048
23049 * keymap.c (push_key_description): Call CHARACTERP correctly.
23050
23051 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23052 (face_for_char): Delete unused vars.
23053 (Fset_fontset_font): Doc fix. Delete unused vars.
23054
23055 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23056
23057 * composite.c (update_compositions): Declare arg.
23058
23059 * cm.c (calccost, cmgoto): Declare args.
23060
23061 * charset.c: Remove `emacs' conditional. Doc fixes.
23062 (map_char_table_for_charset): Declare.
23063
23064 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23065
23066 * ccl.c: Remove `emacs' conditional.
23067
230682008-02-01 Kenichi Handa <handa@m17n.org>
23069
23070 The following changes are to allow specifying multiple font
23071 patterns for a character range (specified by script or charset).
23072
23073 * Makefile.in (abbrev.o): Depend on syntax.h.
23074 (xfaces.o): Depend on charset.h.
23075
23076 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23077 SINGLE_BYTE_CHAR_P.
23078
23079 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23080
23081 * character.h (Vchar_script_table): Extern it.
23082
23083 * character.c (Vscript_alist): Delete.
23084 (Vchar_script_table, Qchar_script_table): New variable.
23085 (syms_of_character): Declare Vchar_script_table as a lisp variable
23086 and initialize it.
23087
23088 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23089 have property char-table-extra-slots, make no extra slot.
23090
23091 * dispextern.h (struct face): Delete member `charset'.
23092 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23093 SINGLE_BYTE_CHAR_P.
23094 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23095 Add prototypes.
23096 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23097 (generate_ascii_font_name): Rename from generate_ascii_font.
23098
23099 * fontset.h (get_font_repertory_func): New prototype.
23100 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23101 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23102
23103 * fontset.c (Qprepend, Qappend): New variables.
23104 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23105 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23106 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23107 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23108 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23109 (load_font_get_repertory): New functions.
23110 (fontset_set): Delete.
23111 (fontset_face): New arg FACE. Return face ID, not face.
23112 Complete re-write to handle new fontset structure. Change caller.
23113 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23114 (face_for_char): Don't call lookup_face.
23115 (make_fontset_for_ascii_face): New arg FACE.
23116 (fs_load_font): New arg CHARSET_ID. Don't check
23117 Vfont_encoding_alist here.
23118 (find_font_encoding): New function.
23119 (list_fontsets): Use STRINGP, not ! NILP.
23120 (accumulate_script_ranges): New function.
23121 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23122 re-written to handle new fontset structure.
23123 (Ffontset_font): Return a copy of element.
23124 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23125 docstring of font-encoding-alist.
23126
23127 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23128 (Fset_fotset_font): Fix arguments to 5.
23129
23130 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23131
23132 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23133 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23134 (highlight_trailing_whitespace): Adjust for the change of
23135 lookup_named_face.
23136
23137 * xfaces.c: Include charset.h.
23138 (load_face_font): Delete argument C. Change caller.
23139 (generate_ascii_font_name): Rename from generate_ascii_font.
23140 (font_name_registry): New function.
23141 (cache_face): Store ascii faces before non-ascii faces in buckets.
23142 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23143 Lookup only ascii faces.
23144 (lookup_non_ascii_face): New function.
23145 (lookup_named_face): Delete argument C. Change caller.
23146 (lookup_derived_face): Delete argument C. Change caller.
23147 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23148 a string, just call font_list with it.
23149 (choose_face_font): Delete arguments FACE and C. New arg
23150 FONT_SPEC. Change caller.
23151 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23152 Change caller.
23153 (realize_non_ascii_face): New function.
23154 (realize_x_face): Call load_face_font here.
23155 (realize_tty_face): Delete argument C. Change caller.
23156 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23157 get a face ID.
23158 (dump_realized_face): Don't print charset of FACE.
23159
23160 * xfns.c (x_set_font): Always call x_new_fontset and
23161 store_frame_parameter.
23162 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23163 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23164
23165 * xterm.h (x_get_font_repertory): Extern it.
23166
23167 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23168 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23169 it->multibyte_p is zero.
23170 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23171 (x_new_fontset): If FONTSETNAME doesn't match any existing
23172 fontsets, create a new one.
23173 (x_get_font_repertory): New function.
23174
231752008-02-01 Kenichi Handa <handa@m17n.org>
23176
23177 * coding.c (Ffind_coding_systems_region_internal): Detect an
23178 ASCII only string correctly.
23179
23180 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23181 version is 0.
23182
231832008-02-01 Kenichi Handa <handa@m17n.org>
23184
23185 * lread.c: Include "coding.h".
23186 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23187 (load_each_byte, unread_char): New variables.
23188 (readchar_backlog): Delete.
23189 (readchar): Return a character unless load_each_byte is nonzero.
23190 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23191 cons. If unread_char is not -1, simply return it.
23192 (unreadchar): Handle the case that readcharfun is
23193 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23194 (read_multibyte): Delete.
23195 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23196 (read_emacs_mule_char): New functions.
23197 (Fload): Even if the file doesn't have the extension ".elc", if
23198 safe_to_load_p returns a positive version number, assume that the
23199 file contains bytecompiled code. If the version is less than 22,
23200 load the file while decoding multibyte sequences by emacs-mule.
23201 (readevalloop): Don't use readchar_backlog.
23202 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23203 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23204 (read_escape): Delete the arg BYTEREP.
23205 (read1): Set load_each_byte to 1 temporarily while handling
23206 #@NUMBER. Don't call read_multibyte.
23207 (read_vector): Call Fread with a cons. If readcharfun is
23208 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23209 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23210 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23211 and Qload_force_doc_strings.
23212
232132008-02-01 Kenichi Handa <handa@m17n.org>
23214
23215 * xdisp.c (face_before_or_after_it_pos): Call
23216 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23217
232182008-02-01 Kenichi Handa <handa@m17n.org>
23219
23220 * character.h (TRAILING_CODE_P): New macro.
23221 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23222 (string_char_with_unification): Fix prototype.
23223 (Vscript_alist): Extern it.
23224
23225 * character.c (Vscript_alist): New variable.
23226 (string_char_with_unification, str_as_unibyte)
23227 (string_escape_byte8): Add `const' to local variables.
23228 (syms_of_character): Declare script-alist as a Lisp variable.
23229
23230 * charset.h (Vcharset_ordered_list): Extern it.
23231 (charset_ordered_list_tick): Extern it.
23232 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23233 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23234 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23235 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23236 (Funify_charset): Adjust for the change of Funify_charset.
23237
23238 * charset.c (charset_ordered_list_tick): New variable.
23239 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23240 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23241 deunify instead of unify a charset.
aac0c6e3
MR
23242 (string_xstring_p): Add `const' to local variables.
23243 (find_charsets_in_text): Add `const' to arguments and local variables.
23244 (encode_char): Adjust for the change of Funify_charset. Fix
23245 detecting of invalid code.
23246 (Fset_charset_priority): Increment charset_ordered_list_tick.
23247 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23248 and TO_CODE.
23249
23250 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23251 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23252 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23253 (decode_coding_ccl, consume_chars)
23254 (Ffind_coding_systems_region_internal)
23255 (Fcheck_coding_systems_region): Add `const' to local variables.
23256
23257 * print.c (print_object): Use octal form for printing the
23258 contents of a bool vector.
23259
232602008-02-01 Dave Love <fx@gnu.org>
23261
23262 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23263 <version == 20>: Refuse to load.
23264
232652008-02-01 Dave Love <fx@gnu.org>
23266
23267 * fns.c: Move coding.h.
23268 (Qcodeset, Qdays, Qmonths): New.
23269 (concat): Use CHARACTERP instead of INTEGERP.
23270 (Flocale_codeset): Delete.
23271 (Flanginfo): New function.
23272 (syms_of_fns): Change accordingly.
23273
23274 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23275
232762008-02-01 Dave Love <fx@gnu.org>
23277
23278 * casetab.c (init_casetab_once, init_casetab_once): Fix
23279 CHAR_TABLE_SET call.
23280
23281 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23282
23283 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23284
23285 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23286 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23287 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23288
23289 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23290
23291 * coding.c (ENCODE_DESIGNATION, decode_eol)
23292 (make_conversion_work_buffer, code_conversion_restore)
23293 (Fdefine_coding_system_internal): Convert Lisp types.
23294 (code_conversion_restore): Use EQ, not ==.
23295 (Fencode_coding_string): Fix code_convert_string call.
23296
23297 * coding.h (code_convert_region): Fix prototype.
23298
23299 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23300
23301 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23302 (Ffontset_info): Convert Lisp types.
23303
23304 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23305
23306 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23307
23308 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23309
23310 * chartab.c: Include "...h", not <...h> in some cases.
23311
23312 * callproc.c (Fcall_process): Remove unused variables.
23313
233142008-02-01 Dave Love <fx@gnu.org>
23315
23316 * coding.c (Fset_coding_system_priority): Allow null arg list.
23317
233182008-02-01 Dave Love <fx@gnu.org>
23319
23320 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23321 (Fself_insert_and_exit): Use CHARACTERP.
23322
23323 * callproc.c (Fcall_process): Remove unused vars.
23324
23325 * xterm.c (XTread_socket): Add extra dead keysyms.
23326
23327 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23328
23329 * dispextern.h: Remove prototypes for redraw_frame,
23330 redraw_garbaged_frames.
23331
23332 * cmds.c (Fself_insert_command): Use CHARACTERP.
23333
23334 * chartab.c (make_sub_char_table): Remove unused var.
23335 (Fset_char_table_default, Fmap_char_table): Doc fix.
23336
23337 * keymap.c (access_keymap): Remove generic char code.
23338 (push_key_description): Use CHARACTERP.
23339
233402008-02-01 Dave Love <fx@gnu.org>
23341
23342 * charset.c: Doc fixes.
23343 (Funify_charset): Extra checking.
23344
233452008-02-01 Dave Love <fx@gnu.org>
23346
23347 * lread.c: Remove some unused variables.
23348 (safe_to_load_p): If safe, return the magic number version byte.
23349 (Fload): Maybe use load-with-code-conversion.
23350
233512008-02-01 Kenichi Handa <handa@m17n.org>
23352
23353 * category.c (Fmodify_category_entry): Don't modify the contents
23354 of category_set for characters out of the range. Avoid
23355 unnecessary modification.
23356
23357 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23358 Vchar_unify_table. The default value of the table is now nil.
23359
23360 * character.c (syms_of_character): Setup Vchar_width_table for
23361 eight-bit-control and raw-byte chars.
23362
23363 * charset.h (enum define_charset_arg_index): Delete
23364 charset_arg_parents and add charset_arg_subset and
23365 charset_arg_superset.
23366 (enum charset_attr_index): Delete charset_parents and add
23367 charset_subset and charset_superset.
23368 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23369 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23370 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23371 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23372 (CHARSET_SUPERSET): New macros.
23373 (charset_work): Extern it.
23374 (ENCODE_CHAR): Use charset_work.
23375 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23376 (map_charset_chars): Extern it.
23377
23378 * charset.c (load_charset_map): Set the default value of encoder
23379 and deunifier char-tables to nil.
23380 (map_charset_chars): Change argument. Change callers. Use
23381 map_char_table_for_charset instead of map_char_table.
23382 (Fmap_charset_chars): New optional args from_code and to_code.
23383 (Fdefine_charset_internal): Adjust for the change of
23384 `define-charset' (:parents -> :subset or :superset).
23385 (charset_work): New variable.
23386 (encode_char, syms_of_charset): Adjust for the change of
23387 Fdefine_charset_internal.
23388 (Ffind_charset_string): Setup the vector `charsets' correctly.
23389
23390 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23391 the previous change.
23392 (char_table_ref_and_range): Adjust for the above change.
23393 (map_sub_char_table_for_charset): New function.
23394 (map_char_table_for_charset): New function.
23395
23396 * keymap.c (describe_vector): Handle a char-table directly here.
23397 (describe_char_table): Delete.
23398
23399 * lisp.h (map_charset_chars): Delete.
23400
234012008-02-01 Dave Love <fx@gnu.org>
23402
23403 * fns.c (count_combining): Comment out (unused).
23404 (Flocale_codeset): New.
23405 (syms_of_fns): Defsubr it.
23406
23407 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23408 (size_t): Remove.
23409
234102008-02-01 Dave Love <fx@gnu.org>
23411
23412 * Makefile.in (chartab.o): Depend on charset.h.
23413
234142008-02-01 Kenichi Handa <handa@m17n.org>
23415
23416 * character.c (syms_of_character): Set the default value of
23417 Vprintable_chars to Qnil.
23418
234192008-02-01 Dave Love <fx@gnu.org>
23420
23421 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23422
234232008-02-01 Kenichi Handa <handa@m17n.org>
23424
23425 * charset.c (load_charset_map): Handle the case that from < to
23426 correctly.
23427
23428 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23429 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23430 Pay attention to raw-8-bit chars.
23431
234322008-02-01 Kenichi Handa <handa@m17n.org>
23433
23434 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23435 It is not bytecompiled now.
23436
23437 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23438 (charset_jisx0208): New variables.
23439 (Fdefine_charset_internal): Setup them if appropriate.
23440 (init_charset_once): Initialize them to -1.
23441
23442 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23443 (charset_jisx0208): Extern them.
23444
23445 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23446 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23447 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23448 (setup_iso_safe_charsets): Fix arguments to Fassq.
23449 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23450 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23451 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23452 (encode_coding_iso_2022): Change the 1st arg to
23453 ENCODE_ISO_CHARACTER to a variable.
23454
234552008-02-01 Kenichi Handa <handa@m17n.org>
23456
23457 * charset.h (enum define_charset_arg_index): New enums
23458 charset_arg_min_code and charset_arg_max_code.
23459 (struct charset): New member char_index_offset.
23460
23461 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23462 Take charset->char_index_offset into account.
23463 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23464 args[charset_arg_max_code]. Setup charset.char_index_offset.
23465 (syms_of_charset): Fix args to Fdefine_charset_internal.
23466
234672008-02-01 Dave Love <fx@gnu.org>
23468
23469 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23470
234712008-02-01 Dave Love <fx@gnu.org>
23472
23473 * coding.c: Doc fixes.
23474 (Fcoding_system_aliases): Fix return value.
23475 (Qmac): Remove (duplicated) definition.
23476
234772008-02-01 Dave Love <fx@gnu.org>
23478
362654a6
JB
23479 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23480 New functions.
aac0c6e3
MR
23481
23482 * character.c (Fstring): Doc fix.
23483
23484 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23485
362654a6 23486 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23487 (font-encoding-alist): Doc fix.
23488
234892008-02-01 Dave Love <fx@gnu.org>
23490
23491 * term.c (costs_set): Declare static, non-initialized for pcc.
23492 (encode_terminal_code): Remove unused var.
23493
23494 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23495 for K&R.
23496
23497 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23498
23499 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23500 (suffixes): Move out of make_subsidiaries for K&R.
23501
23502 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23503
23504 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23505
235062008-02-01 Dave Love <fx@gnu.org>
23507
23508 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23509
23510 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23511
235122008-02-01 Yong Lu <lyongu@asia-infonet.com>
23513
23514 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23515
23516 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23517
235182008-02-01 Kenichi Handa <handa@m17n.org>
23519
23520 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23521 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23522
235232008-02-01 Kenichi Handa <handa@m17n.org>
23524
23525 * coding.c (decode_coding_charset): Adjust for the change of
23526 Fdefine_coding_system_internal.
23527 (Fdefine_coding_system_internal): For a coding system of
23528 `charset' type, store a list of charset IDs in
23529 `charset_attr_charset_valids' element of coding attributes.
23530
235312008-02-01 Kenichi Handa <handa@m17n.org>
23532
23533 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23534 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23535 caller. Handle 2-byte and 3-byte charsets correctly.
23536 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23537 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23538 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23539 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23540 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23541 sequence.
23542 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23543 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23544 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23545 and alt&rule composition.
23546 (decode_coding_iso_2022): Handle composition correctly.
23547 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23548
23549 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23550 re-defining a charset. If the charset has :emacs-mule-id, setup
23551 emacs_mule_bytes.
23552 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23553
235542008-02-01 Kenichi Handa <handa@m17n.org>
23555
23556 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23557 (encode_coding_big5, encode_coding_charset): If coding requires safe
23558 encoding, produce a character specified by
23559 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23560
235612008-02-01 Dave Love <fx@gnu.org>
23562
23563 * xterm.c (XSetIMValues): Declare.
23564
23565 * process.c: Conditionally include sys/wait.h, pty.h.
23566
23567 * print.c (print_object): Fix print format for 64-bit systems.
23568
23569 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23570
23571 * buffer.c (emacs_strerror): Declare.
23572
23573 * fontset.c (Fclear_face_cache): Declare.
23574 (accumulate_font_info): Comment-out (unused).
23575 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23576 variables.
23577
23578 * character.h (string_escape_byte8): Declare.
23579
23580 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23581 unused vars.
23582 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23583 (Fmap_charset_chars): Doc fix.
23584
23585 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23586 (Fset_coding_system_priority, Fset_coding_system_priority)
23587 (Fdefine_coding_system_internal): Doc fix.
23588
235892008-02-01 Dave Love <fx@gnu.org>
23590
23591 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23592
235932008-02-01 Kenichi Handa <handa@m17n.org>
23594
23595 * character.c (string_escape_byte8): Make multibyte string with
23596 correct size.
23597
23598 * charset.c (Fmake_char): Delete unnecessary code.
23599
236002008-02-01 Kenichi Handa <handa@m17n.org>
23601
23602 * xfns.c (x_encode_text): Allocate coding.destination here, and
23603 call encode_coding_object with dst_object Qnil.
23604
23605 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23606 multibyte form correctly.
23607
23608 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23609 against Vfont_encoding_alist.
23610
23611 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23612 handling of charset list.
23613 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23614 (decode_coding_object): Move point to coding->dst_pos before
23615 calling post-read-conversion function.
23616 (encode_coding_object): Give correct arguments to
23617 pre-write-conversion. Ignore the return value of
23618 pre-write-conversion function. Pay attention to the case that
23619 pre-write-conversion changes the current buffer. If dst_object is
23620 Qt, even if coding->src_bytes is zero, allocate at least one byte
23621 to coding->destination.
23622
23623 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23624
23625 * charset.c (Fmake_char): Make it more backward compatible.
23626 (Fmap_charset_chars): Fix docstring.
23627
236282008-02-01 Dave Love <fx@gnu.org>
23629
23630 * coding.c: Doc fixes.
23631 (Fdefine_coding_system_alias): Use names, not symbols, in
23632 coding-system-alist.
23633
236342008-02-01 Kenichi Handa <handa@m17n.org>
23635
23636 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23637 of calling free_realized_face.
23638
236392008-02-01 Yong Lu <lyongu@asia-infonet.com>
23640
23641 * charset.c (read_hex): Don't treat SPC as a comment starter.
23642 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23643 (Fdecode_char): Fix typo.
23644
236452008-02-01 Kenichi Handa <handa@m17n.org>
23646
23647 * charset.h (struct charset): New member `code_space_mask'.
23648
23649 * coding.c (coding_set_source): Delete the local variable beg_byte.
23650 (encode_coding_charset, Fdefine_coding_system_internal):
23651 Delete the local variable charset.
23652 (Fdefine_coding_system_internal): Setup
23653 attrs[coding_attr_charset_valids] correctly.
23654
23655 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23656 member to check if CODE is valid or not.
23657 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23658 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23659 is within the range of charset->min_code and carset->max_code.
23660
236612008-02-01 Dave Love <fx@gnu.org>
23662
23663 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23664
23665 * dispextern.h (generate_ascii_font): Fix return type.
23666
23667 * xfaces.c (generate_ascii_font): Fix arg declaration.
23668
23669 * coding.c (coding_inherit_eol_type)
23670 (Fset_terminal_coding_system_internal)
23671 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23672
236732008-02-01 Kenichi Handa <handa@m17n.org>
23674
23675 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23676 multiple charsets correctly.
23677
236782008-02-01 Kenichi Handa <handa@m17n.org>
23679
23680 * search.c (boyer_moore): Fix handling of multibyte character
23681 translation.
23682
23683 * xdisp.c (display_mode_element): When the variable `elt' is
23684 changed, update `this' and `lisp_string'.
23685
236862008-02-01 Kenichi Handa <handa@m17n.org>
23687
23688 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23689
23690 * callproc.c (Fcall_process): Be sure to give the current buffer
23691 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23692
23693 * charset.c (struct charset_map_entries): New struct.
23694 (load_charset_map): Rename from parse_charset_map. New args
23695 entries and n_entries. Change caller.
23696 (load_charset_map_from_file): Rename from load_charset_map.
23697 Change caller. New arg control_flag. Call load_charset_map at
23698 the tail.
23699 (load_charset_map_from_vector): New function.
23700 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23701 (encode_char): If the charset is compact, change a character index
23702 to a code point.
23703
23704 * coding.c (coding_alloc_by_making_gap): Check the case that the
23705 source and destination are the same correctly.
23706 (decode_coding_raw_text): Set coding->consumed_char and
23707 coding->consumed to 0.
23708 (produce_chars): If coding->chars_at_source is nonzero, update
23709 coding->consumed_char and coding->consumed before calling
23710 alloc_destination.
23711 (Fdefine_coding_system_alias): Register ALIAS in
23712 Vcoding_system_alist.
23713 (syms_of_coding): Define `no-conversion' coding system at the tail.
23714
23715 * fileio.c (Finsert_file_contents): Set coding_system instead of
23716 val. If the current buffer is multibyte, always call
23717 decode_coding_gap.
23718
23719 * xfaces.c (try_font_list): Give higher priority to fontset's
23720 family than face's family.
23721
237222008-02-01 Kenichi Handa <handa@m17n.org>
23723
23724 * callproc.c (Fcall_process): Be sure to give the current buffer
23725 to decode_coding_c_string.
23726
23727 * xfaces.c (try_font_list): Give a family specified in a fontset
23728 higher priority than a family specified in a face.
23729
237302008-02-01 Kenichi Handa <handa@m17n.org>
23731
23732 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23733 Fix arguments to insert_from_buffer.
23734
23735 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23736
237372008-02-01 Kenichi Handa <handa@m17n.org>
23738
23739 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23740 (decode_coding_gap): Set coding->dst_multibyte correctly.
23741
237422008-02-01 Kenichi Handa <handa@m17n.org>
23743
23744 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23745 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23746 (encode_coding_utf_16): Substitute coding->default_char for
23747 non-Unicode characters.
23748 (decode_coding): Don't call record_insert here.
23749 (setup_coding_system): Initialize `surrogate' of
23750 coding->spec.utf_16 to 0.
23751 (EMIT_ONE_BYTE): Fix for multibyte case.
23752
23753 * insdel.c (insert_from_gap): Call record_insert.
23754
237552008-02-01 Kenichi Handa <handa@m17n.org>
23756
23757 * casefiddle.c (casify_region): Fix multibyte case.
23758
23759 * character.c (c_string_width): Add return type `int'.
23760 (char_string_with_unification): Delete arg ADVANCED.
23761
23762 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23763 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23764 (CHAR_STRING_ADVANCE): Make it do-while statement.
23765
23766 * chartab.c (sub_char_table_set_range): Optimize for the case
23767 DEPTH == 3. Add workaround code for a GCC optimization bug.
23768
23769 * charset.c (parse_charset_map): Remove an unused variable.
23770
23771 * coding.c: Delete unused variables.
23772
23773 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23774 earlier. If inserted is zero and the coding system doesn't
23775 require flushing, don't call decode_coding_gap.
23776
23777 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23778
237792008-02-01 Kenichi Handa <handa@m17n.org>
23780
23781 The following changes are for using Unicode as an internal
23782 character model, and use UTF-8 format for buffer/string
23783 representation.
23784
23785 * .gdbinit (xchartable): Adjust for the change of char table structure.
23786 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23787
23788 * Makefile.in (obj): Add character.o and chartab.o.
23789 (lisp, shortlisp): Remove utf-8.elc.
23790 (*.o): For many files, change dependency on charset.h to
23791 character.h, and add dependency on character.h.
23792 (character.o, chartab.o): New targets.
23793
23794 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23795 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23796 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23797 of "charset.h".
23798
23799 * dired.c, filelock.c: Include "character.h".
23800
23801 * alloc.c: Include "character.h" instead of "charset.h".
23802 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23803 (syms_of_alloc): Remove defsubr for Smake_char_table.
23804
23805 * buffer.c: Include "character.h" instead of "charset.h", don't
23806 include "coding.h".
23807 (Fset_buffer_multibyte): Adjust for UTF-8.
23808
23809 * buffer.h: EXFUN Fbuffer_live_p.
23810
23811 * callproc.c: Include "character.h" instead of "charset.h".
23812 (Fcall_process): Big change for the new code-conversion APIs.
23813
23814 * casetab.c: Include "character.h" instead of "charset.h".
23815 (set_canon, set_identity, shuffle): Adjust for the new
23816 map_char_table spec.
23817 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23818 accessing the char table structure.
23819
23820 * chartab.c: New file that implements char table.
23821
23822 * category.c: Include "character.h".
23823 (copy_category_entry): New function.
23824 (copy_category_table): Call map_char_table and copy_category_entry.
23825 (Fmake_category_table): Initialize all top-level slots.
23826 (char_category_set): New function.
23827 (modify_lower_category_set): Delete.
23828 (Fmodify_category_entry): Call char_table_ref_and_range.
23829
23830 * category.h (CATEGORY_SET): Just call char_category_set.
23831
23832 * ccl.c: Include "character.h".
23833 (Qccl, Qcclp): New variables.
23834 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23835 it's less than 256.
23836 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23837 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23838 and DST type.
23839 (ccl_driver): Change types of argument, adjust code accordingly.
23840 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23841 ccl_driver.
23842 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23843
23844 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23845 New members src_multibyte, dst_multibyte, consumed, and produced.
23846 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23847 (CODING_SPEC_CCL_PROGRAM): New macro.
23848 (ccl_driver): Update prototype.
23849 (Qccl, Qcclp, Fccl_program_p): Extern them.
23850 (CHECK_CCL_PROGRAM): New macro.
23851
23852 * character.c, character.h, chartab.c: New files.
23853
23854 * charset.c: Mostly re-written. Move character and multibyte sequence
23855 handling codes to character.c.
23856
23857 * charset.h: Mostly re-written. Move character and multibyte sequence
23858 handling codes to character.h.
23859
23860 * coding.c, coding.h: Mostly re-written.
23861
23862 * composite.c: Include "character.h" instead of "charset.h".
23863 (CHAR_WIDTH): Move to character.h.
23864 (HASH_KEY, HASH_VALUE): Delete.
23865
23866 * composite.h (enum composition_method): Change order of enumeration
23867 symbols.
23868
23869 * data.c: Include "character.h" instead of "charset.h".
23870 (Faref): Call CHAR_TABLE_REF for a char table.
23871 (Faset): Call CHAR_TABLE_SET for a char table.
23872
23873 * dispextern.h (free_realized_face, check_face_attribytes)
23874 (generate_ascii_font): Extern them.
23875 (free_realized_multibyte_face): Delete extern.
23876
23877 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23878 table structure.
23879
23880 * editfns.c: Include "character.h" instead of "charset.h".
23881 (Fchar_to_string): Always call CHAR_STRING.
23882
23883 * emacs.c (main): Call init_charset_once, init_charset,
23884 syms_of_chartab, and syms_of_character.
23885
23886 * fileio.c: Include "character.h" instead of "charset.h".
23887 (Finsert_file_contents): Big change for the new code-conversion API.
23888 (choose_write_coding_system, Fwrite_region): Likewise.
23889 (build_annotations_2): Delete.
23890 (e_write): Big change for the new code-conversion API.
23891
23892 * fns.c: Include "character.h" instead of "charset.h".
23893 (copy_sub_char_table): Move to chartab.c.
23894 (Fcopy_sequence): Call copy_char_table for a char table.
23895 (concat): Delete codes calling count_multibyte.
23896 (string_char_to_byte, string_byte_to_char): Adjust for the new
23897 multibyte form.
23898 (internal_equal): Adjust for the change of char table structure.
23899 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23900 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23901 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23902 (char_table_translate, optimize_sub_char_table)
23903 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23904 chartab.c.
23905 (char_table_ref_and_index): Delete.
23906 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23907 (Fmd5): Call preferred_coding_system instead of accessing
23908 Vcoding_category_list. Adjust for the new code-conversion API.
23909 (syms_of_fns): Move defsubr for char table related functions to
23910 chartab.c.
23911
23912 * fontset.c: Mostly re-written.
23913
23914 * fontset.h (struct font_info): Change type of the member encoding_type.
23915 (enum FONT_SPEC_INDEX): New enum.
23916 (fontset_font_pattern, fs_load_font): Update prototype.
23917 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23918
23919 * indent.c: Include "character.h" instead of "charset.h".
23920 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23921
23922 * insdel.c: Include "character.h" instead of "charset.h".
23923 (copy_text): Don't refer to Vnonascii_translation_table.
23924 (insert_from_gap): New function.
23925
23926 * keyboard.c: Include "character.h" instead of "charset.h".
23927 (command_loop_1): Never call direct_output_forward_char before
23928 a non-ASCII character.
23929 (read_char): If Vkeyboard_translate_table is a char table, always
23930 translate a character.
23931
23932 * keymap.c: Include "character.h".
23933 (store_in_keymap): Handle the case that IDX is a cons.
23934 (Fdefine_key): Handle the case that KEY is a cons and the car part
23935 is also a cons (range).
23936 (push_key_description): Adjust for the new character code.
23937 (describe_vector): Call describe_char_table for a char table.
23938 (describe_char_table): New function.
23939
23940 * keymap.h (describe_char_table): Extern it.
23941
23942 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23943 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23944 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23945 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23946 Delete.
23947 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23948 structure.
23949 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23950 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23951 (CHARTAB_SIZE_BITS_3): New macros.
23952 (chartab_size): Extern it.
23953 (struct Lisp_Char_Table): Re-design.
23954 (struct Lisp_Sub_Char_Table): New structure.
23955 (HASH_KEY, HASH_VALUE): Move from fns.c.
23956 (CHARACTERBITS): Define as 22.
23957 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23958 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23959 (GC_SUB_CHAR_TABLE_P): New macro.
23960 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23961 (code_convert_string_norecord): Deleted extern.
23962 (init_character_once, syms_of_character, init_charset)
23963 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23964
23965 * lread.c: Include "character.h".
23966 (read_multibyte): New arg NBYTES.
23967 (read_escape): Change the meaning of returned *BYTEREP.
23968 (to_multibyte): Delete.
23969 (read1): Adjust the handling of char table and string.
23970
23971 * print.c: Include "character.h" instead of "charset.h".
23972 (print_string): Convert 8-bit raw bytes to octal form by
23973 string_escape_byte8.
23974 (print_object): Adjust for the new multibyte form. Print 8-bit
23975 raw bytes always in octal form. Handle sub char table correctly.
23976
23977 * process.c: Include "character.h" instead of "charset.h".
23978 (read_process_output, send_process): Adjust for the new
23979 code-conversion API.
23980
23981 * puresize.h (BASE_PURESIZE): Increase.
23982
23983 * regex.c: Include "character.h" instead of "charset.h".
23984 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23985 (regex_compile): Accept a range whose starting and ending
23986 character have different leading bytes.
23987 (analyse_first): Adjust for the above change.
23988
23989 * search.c: Include "character.h" instead of "charset.h".
23990 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23991 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23992
23993 * syntax.c: Include "character.h" instead of "charset.h".
23994 (syntax_parent_lookup): Delete.
23995 (Fmodify_syntax_entry): Accept a cons as CHAR.
23996 (skip_chars): Adjust for the new multibyte form.
23997 (init_syntax_once): Call char_table_set_range instead of directly
23998 accessing the structure of a char table.
23999
24000 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24001 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24002 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24003 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24004
24005 * term.c: Include "buffer.h" and "character.h".
24006 (encode_terminal_code, write_glyphs): Adjust for the new
24007 code-conversion API.
24008 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24009
24010 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24011
24012 * xdisp.c: Include "character.h".
24013 (get_next_display_element): Adjust for the new multibyte form.
24014 (disp_char_vector): Adjust for the new char table structure.
24015 (decode_mode_spec_coding): Adjust for the new structure of
24016 coding system.
24017 (decode_mode_spec): Adjust for the new code-conversion API.
24018
24019 * xfaces.c: Include "character.h" instead of "charset.h".
24020 (load_face_font): Adjust for the change of choose_face_font and
24021 FS_LOAD_FONT.
24022 (generate_ascii_font): New function.
24023 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24024 (set_font_frame_param): Adjust for the change of choose_face_font.
24025 (free_realized_face): Make it public.
24026 (free_realized_faces_for_fontset): Rename from
24027 free_realized_multibyte_face. Free also faces realized for ASCII.
24028 (choose_face_font): Change arguments. Adjust for the change of
24029 fontset_font_pattern and FS_LOAD_FONT.
24030
24031 * xfns.c: Include "character.h".
24032 (x_encode_text): Adjust for the new code-conversion API.
24033
24034 * xselect.c: Don't include "charset.h".
24035 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24036
24037 * xterm.c: Include "character.h".
24038 (x_encode_char): New argument CHARSET. Change caller.
24039 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24040 Call ENCODE_CHAR instead of SPLIT_CHAR.
24041 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24042 CHAR_WIDTH instead of CHARSET_WIDTH.
24043 (XTread_socket): Adjust for the new code-conversion API.
24044 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24045 (x_load_font): Adjust for the change of struct font.
24046
240472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24048
24049 * xfaces.c (face_at_buffer_position): Remove unused vars.
24050
240512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24052
24053 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24054 Fix overflow checking.
24055
240562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24057
24058 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24059 Cancel previous change.
24060
240612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24062
24063 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24064 ccl->eight_bit_control. Fix check for buffer overflow.
24065 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24066 (ccl_driver): Initialize extra_bytes to 0.
24067
240682008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24069
24070 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24071 return it ORed with ctrl_modifier.
24072
240732008-01-29 Miles Bader <miles@gnu.org>
24074
24075 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24076
240772008-01-28 Jason Rumney <jasonr@gnu.org>
24078
24079 * w32.c (stat): Don't double check for networked drive.
24080
240812008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24082
24083 * window.c (run_window_configuration_change_hook): New function.
24084 Code extracted from set_window_buffer. Set the selected frame.
24085 (set_window_buffer): Use it.
24086 * window.h (run_window_configuration_change_hook): Declare.
24087 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24088
24089 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24090
240912008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24092
24093 * Makefile.in: Remove references to unused macros.
24094
240952008-01-26 Eli Zaretskii <eliz@gnu.org>
24096
24097 * w32.c (g_b_init_get_sid_sub_authority)
24098 (g_b_init_get_sid_sub_authority_count): New static variables.
24099 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24100 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24101 (init_user_info): Use them to retrieve uid and gid.
24102 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24103 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24104 st_uid and st_gid of the file.
24105
241062008-01-26 Jason Rumney <jasonr@gnu.org>
24107
24108 * w32.c (logon_network_drive): New function.
24109 (stat): Use it.
24110
241112008-01-26 Chong Yidong <cyd@stupidchicken.com>
24112
24113 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24114 invisible text covered with an ellipsis.
24115
241162008-01-25 Richard Stallman <rms@gnu.org>
24117
24118 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24119 jump back to beginning. Move some other initializations after that.
24120 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24121 New variables.
24122 (syms_of_xdisp): Init them.
24123
24124 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24125
24126 * buffer.c (reset_buffer_local_variables):
24127 Implement `permanent-local-hook'.
24128 (Qpermanent_local_hook): New variable.
24129 (syms_of_buffer): Init and staticpro it.
24130
241312008-01-25 Michael Albinus <michael.albinus@gmx.de>
24132
24133 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24134
241352008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24136
24137 * fns.c (Fclrhash): Return TABLE.
24138
241392008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24140
24141 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24142 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24143 is set even without positional changes.
24144 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24145
24146 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24147
241482008-01-23 Jason Rumney <jasonr@gnu.org>
24149
24150 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24151
24152 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24153 the unicode range available in MULE by locale-coding-system.
24154 Improve dbcs lead byte detection. Set event timestamp and modifiers
24155 earlier.
24156
241572008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24158
24159 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24160 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24161 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24162 when used on child processes.
24163
241642008-01-21 Michael Albinus <michael.albinus@gmx.de>
24165
24166 * dbusbind.c (Fdbus_method_return_internal): Rename from
24167 Fdbus_method_return.
24168 (Fdbus_unregister_object): Move to dbus.el.
24169 (Fdbus_call_method, Fdbus_method_return_internal)
24170 (Fdbus_send_signal): Improve debug messages.
24171
241722008-01-20 Martin Rudalics <rudalics@gmx.at>
24173
24174 * undo.c (undo_inhibit_record_point): New variable.
24175 (syms_of_undo): Initialize it.
24176 (record_point): Don't record point when undo_inhibit_record_point
24177 is set.
24178
241792008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24180
24181 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24182
24183 * xdisp.c (Qauto_hscroll_mode): New var.
24184 (syms_of_xdisp): Initialize it.
24185 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24186 window's buffer.
24187 (hscroll_windows): Don't check automatic_hscrolling_p here.
24188
24189 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24190 vscroll if we're setting window-buffer to the value it already has.
24191
241922008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24193
24194 * m/intel386.h: Remove references to XENIX.
24195
241962008-01-17 Andreas Schwab <schwab@suse.de>
24197
24198 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24199 instead of HAVE_X86_64_LIB64_DIR.
24200 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24201
242022008-01-17 Glenn Morris <rgm@gnu.org>
24203
24204 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24205 to HAVE_X86_64_LIB64_DIR.
24206
242072008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24208
24209 * s/irix3-3.h:
24210 * s/irix4-0.h:
24211 * s/386-ix.h:
24212 * s/domain.h:
24213 * s/hpux9-x11r4.h:
24214 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24215
24216 * sysdep.c: Remove code containing references to symbols defined
24217 by unsupported systems.
24218
242192008-01-16 Glenn Morris <rgm@gnu.org>
24220
24221 * coding.c (select-safe-coding-system-function): Doc fix.
24222
242232008-01-15 Glenn Morris <rgm@gnu.org>
24224
24225 * config.in: Revert 2008-01-13 change: this is a generated file.
24226
242272008-01-13 Tom Tromey <tromey@redhat.com>
24228
24229 * lisp.h: Fix typo.
24230
242312008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24232
24233 * m/sequent-ptx.h:
24234 * m/sequent.h:
24235 * s/ptx.h:
24236 * s/ptx4-2.h:
24237 * s/ptx4.h: Remove files for systems no longer supported.
24238
24239 * callproc.c (Fcall_process): Fix previous change.
24240
242412008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24242
24243 * unexsunos4.c: Remove file, system not supported anymore.
24244
24245 * m/mips.h:
24246 * m/intel386.h:
24247 * callproc.c:
24248 * config.in:
24249 * ecrt0.c:
24250 * emacs.c:
24251 * fileio.c:
24252 * frame.c:
24253 * getpagesize.h:
24254 * keyboard.c:
24255 * lread.c:
24256 * process.c:
24257 * puresize.h:
24258 * sysdep.c:
24259 * systty.h:
24260 * syswait.h:
24261 * unexec.c:
24262 * xdisp.c:
24263 * alloc.c: Remove code containing references to symbols defined by
24264 unsupported systems.
24265
242662008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24267
24268 * coding.c (detect_coding_mask): Fix previous change.
24269
242702008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24271
24272 * coding.c (detect_coding_iso2022): New arg
24273 latin_extra_code_state. Allow Latin extra codes only
24274 when *latin_extra_code_state is nonzero.
24275 (detect_coding_mask): If there is a NULL byte, detect the encoding
24276 as UTF-16 or binary. If Latin extra codes exist, detect the
24277 encoding as ISO-2022 only when there's no other proper encoding is
24278 found.
24279
242802008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24281
24282 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24283 #ifdef MAC_OS.
24284
242852008-01-08 Richard Stallman <rms@gnu.org>
24286
24287 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24288
242892008-01-06 Nick Roberts <nickrob@snap.net.nz>
24290
24291 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24292 menu bar in parentheses.
24293
242942008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24295
24296 * m/7300.h:
24297 * m/acorn.h:
24298 * m/alliant-2800.h:
24299 * m/alliant.h:
24300 * m/alliant1.h:
24301 * m/alliant4.h:
24302 * m/altos.h:
24303 * m/amdahl.h:
24304 * m/apollo.h:
24305 * m/att3b.h:
24306 * m/aviion-intel.h:
24307 * m/aviion.h:
24308 * m/celerity.h:
24309 * m/clipper.h:
24310 * m/cnvrgnt.h:
24311 * m/convex.h:
24312 * m/cydra5.h:
24313 * m/delta88k.h:
24314 * m/dpx2.h:
24315 * m/dual.h:
24316 * m/elxsi.h:
24317 * m/f301.h:
24318 * m/gould-np1.h:
24319 * m/gould.h:
24320 * m/i860.h:
24321 * m/ibmps2-aix.h:
24322 * m/ibmrt-aix.h:
24323 * m/ibmrt.h:
24324 * m/irist.h:
24325 * m/is386.h:
24326 * m/isi-ov.h:
24327 * m/mega68.h:
24328 * m/mg1.h:
24329 * m/news-r6.h:
24330 * m/news-risc.h:
24331 * m/news.h:
24332 * m/nh3000.h:
24333 * m/nh4000.h:
24334 * m/ns16000.h:
24335 * m/ns32000.h:
24336 * m/nu.h:
24337 * m/orion.h:
24338 * m/orion105.h:
24339 * m/paragon.h:
24340 * m/pfa50.h:
24341 * m/plexus.h:
24342 * m/pyramid.h:
24343 * m/pyrmips.h:
24344 * m/sh3el.h:
24345 * m/sps7.h:
24346 * m/sr2k.h:
24347 * m/stride.h:
24348 * m/sun1.h:
24349 * m/sun2.h:
24350 * m/sun3-68881.h:
24351 * m/sun3-fpa.h:
24352 * m/sun3-soft.h:
24353 * m/sun3.h:
24354 * m/sun386.h:
24355 * m/symmetry.h:
24356 * m/tad68k.h:
24357 * m/tahoe.h:
24358 * m/targon31.h:
24359 * m/tek4300.h:
24360 * m/tekxd88.h:
24361 * m/tower32.h:
24362 * m/tower32v3.h:
24363 * m/ustation.h:
24364 * m/wicat.h:
24365 * m/xps100.h:
24366 * s/cxux.h:
24367 * s/cxux7.h:
24368 * s/dgux.h:
24369 * s/dgux4.h:
24370 * s/dgux5-4-3.h:
24371 * s/dgux5-4r2.h:
24372 * s/esix.h:
24373 * s/esix5r4.h:
24374 * s/hiuxmpp.h:
24375 * s/hiuxwe2.h:
24376 * s/iris3-5.h:
24377 * s/iris3-6.h:
24378 * s/isc2-2.h:
24379 * s/isc3-0.h:
24380 * s/isc4-0.h:
24381 * s/isc4-1.h:
24382 * s/newsos5.h:
24383 * s/newsos6.h:
24384 * s/osf1.h:
24385 * s/osf5-0.h:
24386 * s/riscix1-1.h:
24387 * s/riscix12.h:
24388 * s/sco4.h:
24389 * s/sco5.h:
24390 * s/sunos4-0.h:
24391 * s/sunos4-1.h:
24392 * s/sunos413.h:
24393 * s/sunos4shr.h:
24394 * s/umax.h:
24395 * s/unipl5-2.h:
24396 * s/xenix.h:
24397 * cxux-crt0.s:
24398 * unexapollo.c:
24399 * unexconvex.c:
24400 * unexenix.c:
24401 * unexsni.c: Remove files for systems no longer supported.
24402
24403 * m/intel386.h: Remove references to unsupported systems.
24404
24405 * w32.c (get_emacs_configuration): Remove reference to i860.
24406
24407 * sysdep.c: Remove dead code.
24408
244092008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24410
24411 * s/rtu.h:
24412 * m/masscomp.h: Remove files. Platform is obsolete.
24413
244142008-01-04 Michael Albinus <michael.albinus@gmx.de>
24415
24416 * dbusbind.c (Fdbus_method_return): New function.
24417 (xd_read_message): Add the serial number to the event.
24418 (Fdbus_register_method): Activate the function.
24419
244202008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24421
24422 * keyboard.c (read_key_sequence): Fix typo.
24423
244242008-01-03 Michael Albinus <michael.albinus@gmx.de>
24425
24426 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24427 (xd_signature, xd_append_arg): Handle element type detection for
24428 empty arrays.
24429 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24430 SDATA () calls; this must be solved more general.
24431 (Fdbus_register_signal): Use SBYTES instead of strlen.
24432
244332008-01-03 Magnus Henoch <magnus@zemdatav>
24434
24435 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24436 unsigned int for byte values (necessary for big-endian platform).
24437 (Fdbus_call_method): Handle the case of no returned arguments.
24438
244392007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24440
24441 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24442
244432007-12-31 Magnus Henoch <mange@freemail.hu>
24444
24445 * dbusbind.c (xd_signature): Signature of variant is just "v".
24446
244472007-12-30 Michael Albinus <michael.albinus@gmx.de>
24448
24449 * dbusbind.c: Fix several errors and compiler warnings.
24450 Reported by Tom Tromey <tromey@redhat.com>.
24451 (XD_ERROR, XD_DEBUG_MESSAGE)
24452 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24453 (xd_append_arg): Part for basic D-Bus types rewritten.
24454 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24455 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24456 appropriate.
24457 (xd_read_message): Return Qnil. Don't signal an error; it is not
24458 useful during event reading.
24459 (Fdbus_register_signal): Signal an error if the check for
24460 FUNCTIONP fails.
24461 (Fdbus_register_method): New function. The implementation is not
24462 complete, the call of the function signals an error therefore.
24463 (Fdbus_unregister_object): New function, renamed from
24464 Fdbus_unregister_signal. The initial check signals an error, if
24465 the object is not well formed.
24466
244672007-12-30 Richard Stallman <rms@gnu.org>
24468
24469 * textprop.c (get_char_property_and_overlay):
24470 Signal error if POSITION is out of range in a buffer.
24471
244722007-12-29 Martin Rudalics <rudalics@gmx.at>
24473
24474 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24475 because the original parameters are in pure storage now.
24476
244772007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24478
24479 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24480
244812007-12-22 Eli Zaretskii <eliz@gnu.org>
24482
24483 * callint.c (syms_of_callint) <command-history>: Add reference to
24484 history-length in the doc string.
24485
244862007-12-17 Jason Rumney <jasonr@gnu.org>
24487
24488 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24489 before passing as wParam.
24490
244912007-12-22 Michael Albinus <michael.albinus@gmx.de>
24492
24493 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24494 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24495 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24496 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24497 as number.
24498 (Fdbus_call_method): Fix docstring.
24499
245002007-12-21 Michael Albinus <michael.albinus@gmx.de>
24501
24502 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24503 New macros.
24504 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24505 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24506 Simplify.
24507 (xd_signature): New function.
24508 (xd_append_arg): Compute also signatures. Major rewrite.
24509 (xd_retrieve_arg): Make debug messages friendly.
24510 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24511 Check for signatures of arguments.
24512
245132007-12-19 Michael Albinus <michael.albinus@gmx.de>
24514
24515 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24516 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24517 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24518 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24519 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24520 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24521 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24522 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24523 (xd_retrieve_value): Remove. Functionality included in ...
24524 (xd_append_arg): New function.
24525 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24526
245272007-12-16 Michael Albinus <michael.albinus@gmx.de>
24528
24529 * dbusbind.c (top): Include <stdio.h>.
24530 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24531 dbus_message_new_method_call and dbus_message_new_signal.
24532 (Fdbus_register_signal): Rename unique_name to uname.
24533 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24534 non-existing unique name. Fix typos in matching rule. Return an
24535 object which is useful in Fdbus_unregister_signal.
24536 (Fdbus_unregister_signal): Reimplementation, in order to remove
24537 only the corresponding entry.
24538 (Vdbus_registered_functions_table): Change the order of entries.
24539 Apply these changes in xd_read_message and Fdbus_register_signal.
24540
245412007-12-16 Andreas Schwab <schwab@suse.de>
24542
24543 * fileio.c (Finsert_file_contents): Fix overflow check to not
24544 depend on undefined integer overflow.
24545
245462007-12-14 Jason Rumney <jasonr@gnu.org>
24547
24548 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24549 for characters above 127.
24550
245512007-12-13 Jason Rumney <jasonr@gnu.org>
24552
24553 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24554 before dereferencing array.
24555 (lookup_vk_code): Remove zero comparison.
24556
245572007-12-14 Michael Albinus <michael.albinus@gmx.de>
24558
24559 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24560 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24561 Use `unsigned int' instead of `uint'.
24562 (xd_read_message, Fdbus_register_signal): Split expressions into
24563 multiple lines before operators "&&" and "||", according to the
24564 GNU Coding Standards.
24565
245662007-12-14 Eli Zaretskii <eliz@gnu.org>
24567
24568 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24569
245702007-12-12 Juri Linkov <juri@jurta.org>
24571
24572 * buffer.c (Frename_buffer): In interactive spec replace
24573 `read-buffer' with `read-string' that uses `buffer-name-history'
24574 as history, and the current buffer's name as default.
24575
245762007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24577
24578 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24579 manipulating the backtrace manually.
24580 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24581 (struct backtrace, backtrace_list): Remove.
24582 (command_loop_1): Remove dead var `no_direct'.
24583
24584 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24585 preserve non-built-in buffer-local variables.
24586 (Fkill_all_local_variables): Don't re-create&re-set permanent
24587 buffer-local variables.
24588
245892007-12-09 Juri Linkov <juri@jurta.org>
24590
24591 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24592 Lisp code that uses `read-buffer' with current buffer as default.
24593
245942007-12-08 Michael Albinus <michael.albinus@gmx.de>
24595
24596 * dbusbind.c (xd_read_message): Generate an event for every
24597 registered handler. There might be several handlers registered
24598 for the same signal.
24599 (Fdbus_register_signal): Don't overwrite a registration for the
24600 same signal. Add a new registration if handlers are different.
24601 (Vdbus_registered_functions_table): Rework doc string.
24602
246032007-12-07 Michael Albinus <michael.albinus@gmx.de>
24604
24605 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24606 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24607 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24608 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24609 Unify argument lists.
24610 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24611 arguments and hash table keys. Use unique name for service.
24612 (Fdbus_unregister_signal): Remove checks.
24613 (Vdbus_registered_functions_table): Fix doc string.
24614
246152007-12-05 Magnus Henoch <mange@freemail.hu>
24616
24617 * process.c (make_process): Initialize pty_flag to 0.
24618
246192007-12-05 Jason Rumney <jasonr@gnu.org>
24620
24621 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24622 specified XBMs.
24623
246242007-12-05 Richard Stallman <rms@gnu.org>
24625
24626 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24627
246282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24629
24630 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24631 New variable.
24632 (mac_try_close_socket) [MAC_OSX]: New function.
24633 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24634 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24635
24636 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24637 Use mac_try_close_socket.
24638
246392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24640
24641 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24642 reloc_base.
24643 (copy_dysymtab): Compute relocation base here.
24644 (rebase_reloc_address) [__ppc64__]: New function.
24645 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24646 changed.
24647
246482007-12-05 Jason Rumney <jasonr@gnu.org>
24649
24650 * w32proc.c (sys_spawnve): Quote args with wildcards.
24651
246522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24653
24654 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24655 __objc_* sections.
24656 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24657
246582007-12-05 Michael Albinus <michael.albinus@gmx.de>
24659
24660 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24661 Move check for Vdbus_registered_functions_table to
24662 xd_read_queued_messages.
24663 (xd_read_queued_messages): Protect xd_read_message calls by
24664 internal_condition_case_1.
24665
246662007-12-04 Michael Albinus <michael.albinus@gmx.de>
24667
24668 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24669 Qdbus_system_bus and Qdbus_session_bus, respectively.
24670 (Vdbus_intern_symbols): Remove.
24671 (Vdbus_registered_functions_table): New hash table.
24672 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24673 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24674 Rewrite in order to manage registered functions by hash table
24675 Vdbus_registered_functions_table.
24676
246772007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24678
24679 * xterm.c: Update URL to Window Manager Specification in comment.
24680
246812007-12-02 Michael Albinus <michael.albinus@gmx.de>
24682
24683 * config.in (HAVE_DBUS): Add.
24684
24685 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24686 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24687 (obj): Add $(DBUS_OBJ).
24688 (LIBES): Add $(DBUS_LIBS).
24689 (dbusbind.o): New target.
24690
24691 * dbusbind.c: New file.
24692
24693 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24694
24695 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24696 (Qdbus_event): New Lisp symbol.
24697 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24698 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24699 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24700
24701 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24702
247032007-12-01 Richard Stallman <rms@gnu.org>
24704
24705 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24706
247072007-11-30 Jason Rumney <jasonr@gnu.org>
24708
24709 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24710 (w32con_reset_terminal_modes): Clear screen buffer.
24711 (w32_face_attributes): Don't use color indexes that are out of range.
24712 Only reverse the default colors.
24713
24714 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24715 WINDOWSNT.
24716
24717 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24718
247192007-11-29 Jason Rumney <jasonr@gnu.org>
24720
24721 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24722 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24723 if the terminal colors are initialized.
24724 (unspecified_fg, unspecified_bg): Remove unused declarations.
24725
247262007-11-29 Andreas Schwab <schwab@suse.de>
24727
24728 * keyboard.c (apply_modifiers): Fix typo.
24729
247302007-11-29 Richard Stallman <rms@gnu.org>
24731
24732 * keymap.c (Fcurrent_local_map): Doc fix.
24733
247342007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24735
24736 * s/gnu-kfreebsd.h: New file.
24737
247382007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24739
24740 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24741 Don't cast redundantly.
24742
24743 * keyboard.c (KEY_TO_CHAR): New macro.
24744 (parse_modifiers, apply_modifiers): Accept integer arguments.
24745 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24746 for chars and symbol keys.
24747 After doing such remapping, apply function-key-map again.
24748
247492007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24750
24751 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24752 compiled anymore.
24753
247542007-11-26 Andreas Schwab <schwab@suse.de>
24755
24756 * process.c (list_processes_1): Fix indentation level of the
24757 command column.
24758
247592007-11-23 Andreas Schwab <schwab@suse.de>
24760
24761 * editfns.c (Fformat): Handle %c specially since it requires the
24762 argument to be of type int.
24763
247642007-11-23 Markus Triska <markus.triska@gmx.at>
24765
24766 * emacs.c (main): Call init_editfns before init_process, since
24767 init_process sets Vprocess_connection_type depending on OS release.
24768
247692007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24770
24771 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24772 (find_symbol_value): Use do_symval_forwarding.
24773
24774 * data.c (set_internal): Set the value in the `cons-cell' (for
24775 Buffer_Local_values) not only for frame-local variables.
24776
247772007-11-22 Andreas Schwab <schwab@suse.de>
24778
24779 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24780 values to sprintf.
24781 * keymap.c (Fsingle_key_description): Likewise.
24782 * print.c (print_object): Likewise.
24783
247842007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24785
24786 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24787 file for image is nil.
24788
247892007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24790
24791 * term.c: Include stdarg.h.
24792 (fatal): Implement using varargs.
24793 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24794
247952007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24796
24797 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24798 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24799 Update call to buffer_slot_type_mismatch.
24800 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24801 (buffer_slot_type_mismatch): Update.
24802 * buffer.c (buffer_local_types): Remove.
24803 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24804 (defvar_per_buffer): Set the type in the buffer_objfwd.
24805
248062007-11-21 Jason Rumney <jasonr@gnu.org>
24807
24808 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24809 CreateFileMapping returns NULL on failure.
24810
248112007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24812
24813 * search.c (Fset_match_data): Remove the `evaporate' feature.
24814 (unwind_set_match_data): Don't use the `evaporate' feature.
24815
248162007-11-21 Jason Rumney <jasonr@gnu.org>
24817
24818 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24819
24820 * w32console.c (w32con_write_glyphs): Remove unused variables.
24821
248222007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24823
24824 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24825
24826 * s/darwin.h (MULTI_KBOARD): Remove.
24827
24828 * macfns.c (x_create_tip_frame, Fx_create_frame)
24829 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24830
248312007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24832
24833 * buffer.c (Fbuffer_local_value): Remove redundant test.
24834 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24835 than in `current-buffer' to match the comment.
24836 Do the swap using swap_in_global_binding.
24837
24838 * data.c (store_symval_forwarding, set_internal):
24839 * eval.c (specbind): Remove dead code.
24840
24841 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24842 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24843 Since we do not want to see internal Lisp_*fwd objects here.
24844
248452007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24846
24847 * sysdep.c (init_system_name): Use getaddrinfo if available.
24848
24849 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24850 (x_scroll_bar_note_movement): start, end, with, height in struct
24851 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24852
248532007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24854
24855 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24856
248572007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24858
24859 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24860 This undoes Richard's change of 14-Oct-2002.
24861
24862 * alloc.c (allocate_other_vector):
24863 * lisp.h (allocate_other_vector): Remove.
24864
24865 * window.c (struct save_window_data): Move non-lisp data to the end
24866 and make it `int' rather than Lisp_Object.
24867 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24868 Done wrap/unwrap integer values.
24869 (Fset_window_configuration, compare_window_configurations):
24870 Update use of fields to their new types.
24871
24872 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24873 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24874 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24875 (SET_SCROLL_BAR_X_WINDOW): Remove.
24876 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24877 Access the new x_window field directly.
24878 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24879 Don't wrap/unwrap integers into Lisp_Objects.
24880 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24881 (x_scroll_bar_report_motion):
24882 Don't wrap/unwrap integers into Lisp_Objects.
24883 (x_term_init): Use SDATA.
24884 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24885 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24886 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24887 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24888 * xfns.c (x_set_background_color):
24889 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24890 Access the new x_window field directly.
24891
24892 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24893 (allocate_pseudovector): Make non-static.
24894
24895 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24896 (allocate_pseudovector): Declare.
24897 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24898
248992007-11-15 Andreas Schwab <schwab@suse.de>
24900
24901 * editfns.c (Fformat): Correctly format EMACS_INT values.
24902 Also take precision into account when formatting an integer.
24903
24904 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24905
249062007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24907
24908 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24909 (syms_of_keyboard): Defsubr it.
24910
24911 * data.c (swap_in_global_binding): Fix longstanding bug where
24912 store_symval_forwarding was not called with the right second argument,
24913 thus causing objfwd-ing from being dropped.
24914
249152007-11-14 Juanma Barranquero <lekktu@gmail.com>
24916
24917 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24918 (Fx_display_pixel_height, Fx_display_planes)
24919 (Fx_display_color_cells, Fx_server_max_request_size)
24920 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24921 (Fx_display_visual_class, Fx_display_save_under):
24922 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24923 (Fx_display_pixel_height, Fx_display_planes)
24924 (Fx_display_color_cells, Fx_server_max_request_size)
24925 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24926 (Fx_display_mm_height, Fx_display_mm_width)
24927 (Fx_display_backing_store, Fx_display_visual_class)
24928 (Fw32_select_font, Fx_display_save_under):
24929 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24930 (Fx_display_pixel_height, Fx_display_planes)
24931 (Fx_display_color_cells, Fx_server_max_request_size)
24932 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24933 (Fx_display_save_under): Fix typos in docstrings.
24934
249352007-11-14 Juanma Barranquero <lekktu@gmail.com>
24936
24937 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24938 corresponding to deleted entries; they are an implementation detail.
24939 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24940 Remove variables.
24941 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24942 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24943 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24944 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24945 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24946 (Fw32_define_rgb_color, Fw32_load_color_file)
24947 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24948 Fix typos in docstrings.
24949 (Fx_server_version): Reflow docstring.
24950 (Fw32_shell_execute): Doc fixes.
24951
249522007-11-13 Juanma Barranquero <lekktu@gmail.com>
24953
24954 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24955 if w32_parse_hot_key returned nil.
24956
249572007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24958
24959 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24960
249612007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24962
aac0c6e3
MR
24963 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24964
24965 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24966
24967 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24968 Remove W32_SCROLL_BAR_CLICK_EVENT.
24969
24970 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24971 Add MULTIMEDIA_KEY_EVENT.
24972
24973 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24974 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24975 (make_lispy_event) [WINDOWSNT]: Use it to translate
24976 MULTIMEDIA_KEY_EVENT.
24977
24978 * w32term.h (WM_APPCOMMAND): Define if not already.
24979 (GET_APPCOMMAND_LPARAM): Likewise.
24980
24981 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24982 WM_APPCOMMAND.
24983
24984 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24985 (syms_of_w32fns): Export and initialize it.
24986 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24987
249882007-11-09 Chong Yidong <cyd@stupidchicken.com>
24989
24990 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24991 twice.
24992
24993 * xdisp.c (handle_face_prop): Fix last change.
24994
249952007-11-09 Richard Stallman <rms@gnu.org>
24996
24997 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24998 not just for after-strings and before-strings.
24999 Call face_for_overlay_string and pass the overlay to it.
25000 (handle_display_prop): Determine whether property came from an overlay.
25001 Pass OVERLAY arg to handle_single_display_spec.
25002 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25003 (load_overlay_strings): Fill in it->string_overlays.
25004 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25005
25006 * xfaces.c (face_for_overlay_string): Function renamed from
25007 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25008
25009 * dispextern.h (struct it): New elt string_overlays.
25010 New elt from_overlay, also in stack.
25011 Rearrange a few elements.
25012 (face_for_overlay_string): Decl renamed from
25013 face_at_buffer_position_no_overlays, and add argument.
25014
250152007-11-09 Richard Stallman <rms@gnu.org>
25016
25017 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25018 to get the base face for an overlay string.
25019
25020 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25021
25022 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25023
25024 * xdisp.c (handle_stop): Move some code out of loop.
25025
250262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25027
25028 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25029 Fix conversion from Lisp object to ATSUFontID.
25030
250312007-11-09 Jason Rumney <jasonr@gnu.org>
25032
25033 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25034
250352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25036
25037 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25038 Don't assume regions are aligned to page boundary.
25039 (print_load_command_name): Add LC_UUID if defined.
25040
250412007-11-09 Richard Stallman <rms@gnu.org>
25042
25043 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25044
250452007-11-07 Jason Rumney <jasonr@gnu.org>
25046
25047 * s/windows95.h: Remove.
25048
250492007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25050
25051 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25052 abort with a message on unhandled store_type values.
25053
250542007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25055
25056 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25057 Remove HAVE_X11R5 and HAVE_X11R4.
25058
250592007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25060
25061 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25062
250632007-11-01 Johan Bockgård <bojohan@gnu.org>
25064
25065 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25066 Don't set s->stippled_p here, since it has already been set by
25067 x_set_glyph_string_gc from x_draw_glyph_string.
25068
250692007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25070
25071 * sunfns.c: Remove file.
25072
25073 * m/sun386.h:
25074 * m/sun2.h:
25075 * m/sparc.h: Remove Sun windows code.
25076
250772007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25078
25079 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25080 (init_keyboard): Set current_kboard's window-system to nil.
25081 (tty_read_avail_input): Typo.
25082 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25083
250842007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25085
25086 * s/usg5-4.h:
25087 * s/usg5-3.h:
25088 * s/ptx.h:
25089 * m/is386.h:
25090 * m/ibmps2-aix.h:
25091 * Makefile.in: Remove all mentions of X10.
25092
25093 * dispnew.c (syms_of_display): Don't mention version 10.
25094
250952007-10-28 Juanma Barranquero <lekktu@gmail.com>
25096
25097 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25098 ($(BLD)/abbrev.$(O)): Remove.
25099
251002007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25101
25102 Rewrite abbrev.c in Elisp.
25103 * image.c (Qcount): Don't declare as extern.
25104 (syms_of_image): Initialize and staticpro `Qcount'.
25105 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25106 * emacs.c (main): Don't call syms_of_abbrev.
25107 * Makefile.in (obj): Remove abbrev.o.
25108 (abbrev.o): Remove.
25109 * abbrev.c: Remove.
25110
251112007-10-26 Martin Rudalics <rudalics@gmx.at>
25112
25113 * window.c (window_min_size_2): Don't count header-line.
25114
251152007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25116
25117 * frame.h (struct frame): Move all bit fields after the first bit
25118 field to take advantage of the available space. Group all the
25119 chars together to reduce wasted space due to padding.
25120
251212007-10-26 Juanma Barranquero <lekktu@gmail.com>
25122
25123 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25124
25125 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25126 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25127 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25128 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25129 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25130 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25131 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25132 (last_marked, mark_object_loop_halt): Make static.
25133
25134 * frame.c (syms_of_frame) <delete-frame-functions>:
25135 Fix typo in docstring.
25136
251372007-10-25 Juanma Barranquero <lekktu@gmail.com>
25138
25139 * w32.c (init_environment): Fix tiny memory leak.
25140 (w32_get_resource): Remove unused variable `ok'.
25141
251422007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25143
25144 Make `window-system' into a keyboard-local variable (rather than
25145 frame-local as done originally by multi-tty).
25146
25147 * keyboard.h (struct kboard): Add Vwindow_system.
25148 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25149 (mark_kboards): Mark Vwindow_system.
25150
25151 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25152 (init_display): Don't set the obsolete `window-system' frame-param.
25153
25154 * xterm.c (x_term_init):
25155 * w32term.c (w32_create_terminal):
25156 * term.c (init_tty): Set Vwindow_system.
25157 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25158 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25159
25160 * xfns.c (Fx_create_frame, x_create_tip_frame):
25161 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25162 * macfns.c (Fx_create_frame):
25163 Don't set the obsolete `window-system' frame-param.
25164
25165 * frame.h (Qwindow_system): Remove.
25166 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25167 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25168
251692007-10-24 Richard Stallman <rms@gnu.org>
25170
25171 * frame.c (x_figure_window_size): For fullscreen case,
25172 set USPosition | PPosition without clobbering rest of window_prompting.
25173
25174 * keyboard.c (Fcurrent_idle_time): Doc fix.
25175
25176 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25177
251782007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25179
25180 * process.c (unwind_request_sigio): Only define if __ultrix__.
25181
25182 * callproc.c (child_setup): Remove spurious *.
25183
25184 * lisp.h (Fget_text_property): Declare.
25185 (have_menus_p): Declare it here rather than in sys-dep header files.
25186 * macterm.h (have_menus_p):
25187 * msdos.h (have_menus_p):
25188 * xterm.h (have_menus_p): Remove.
25189
25190 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25191 (Fmake_variable_frame_local): Just check the variable's const-ness
25192 rather than checking nil or t.
25193
251942007-10-22 Jason Rumney <jasonr@gnu.org>
25195
25196 * w32fns.c: Include math.h.
25197 (w32_abort): Declaration moved to nt/config.nt.
25198
25199 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25200 (abort): Redefinition moved to nt/config.nt.
25201
25202 * m/windowsnt.h: Remove.
25203
252042007-10-22 Juanma Barranquero <lekktu@gmail.com>
25205
25206 * emacs.c (Fdump_emacs): Fix typo in message.
25207 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25208 <installation-directory>: Reflow docstring.
25209
252102007-10-22 Juri Linkov <juri@jurta.org>
25211
25212 * minibuf.c: Allow minibuffer default to be a list of default values.
25213 With empty input use the first element of this list as returned default.
25214 (string_to_object)
25215 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25216 (read_minibuf): If defalt is cons, set histstring to its car.
25217 (Fread_string): If default_value is cons, set val to its car.
25218 (Fread_buffer): If def is cons, use its car.
25219 (Fcompleting_read): If defalt is cons, set val to its car.
25220
252212007-10-21 Michael Albinus <michael.albinus@gmx.de>
25222
25223 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25224
252252007-10-20 Juanma Barranquero <lekktu@gmail.com>
25226
25227 * doc.c (Fdocumentation): Check for advice in all cases.
25228
252292007-10-19 Chong Yidong <cyd@stupidchicken.com>
25230
25231 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25232
252332007-10-19 Richard Stallman <rms@gnu.org>
25234
25235 * doc.c (Fdocumentation): Check for and handle an advised function.
25236
252372007-10-19 Juanma Barranquero <lekktu@gmail.com>
25238
25239 * process.c (Fset_process_filter): Doc fix.
25240
252412007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25242
25243 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25244 which caused key-translation-map to applied repeatedly (thus breaking
25245 double-mode).
25246
252472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25248
25249 * xselect.c (x_own_selection, x_handle_selection_clear)
25250 (x_clear_frame_selections):
25251 * w32menu.c (list_of_panes, list_of_items):
25252 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25253 * textprop.c (validate_plist, interval_has_all_properties)
25254 (interval_has_some_properties, interval_has_some_properties_list)
25255 (add_properties, text_property_list):
25256 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25257 * minibuf.c (Fassoc_string):
25258 * macselect.c (x_own_selection, x_clear_frame_selections)
25259 (Fx_disown_selection_internal):
25260 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25261 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25262
252632007-10-17 Chong Yidong <cyd@stupidchicken.com>
25264
25265 * process.c: Link to libs for calling res_init() if available.
25266 (Fmake_network_process): Call res_init() before getaddrinfo or
25267 gethostbyname, if possible.
25268
252692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25270
25271 * lread.c (read1): Set pvectype for char_tables.
25272
25273 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25274 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25275 Add type checks.
25276 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25277
25278 * alloc.c (free_misc): Use XMISCTYPE.
25279 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25280
252812007-10-17 Glenn Morris <rgm@gnu.org>
25282
25283 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25284 (syms_of_minibuf): Add Qcompletion_ignore_case.
25285 * dired.c (Qcompletion_ignore_case): Change to external.
25286 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25287 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25288 (Fread_file_name): Use it rather than intern'ing.
25289
25290 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25291 (Fread_coding_system): Ignore case of user input.
25292
252932007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25294
25295 * xdisp.c (handle_display_prop): Ignore display specs after
25296 replacing one when string text is being replaced.
25297 (handle_single_display_spec): Pretend as if characters with display
25298 property haven't been consumed only when buffer text is being replaced.
25299
253002007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25301
25302 * xfns.c (Fx_create_frame, Fx_display_list):
25303 * window.c (window_fixed_size_p, enlarge_window)
25304 (shrink_window_lowest_first):
25305 * macterm.c (init_font_name_table):
25306 * macfns.c (Fx_create_frame, Fx_display_list):
25307 * lread.c (close_load_descs):
25308 * keyboard.c (read_char_x_menu_prompt):
25309 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25310 * coding.c (code_convert_region_unwind): Test the type of an object
25311 rather than just !NILP before extracting data from it.
25312
25313 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25314
25315 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25316 (XMISCANY): New macro.
25317 (XMISCTYPE): Use it.
25318 (struct Lisp_Misc_Any): New type.
25319 (union Lisp_Misc): Use it.
25320 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25321 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25322 (find_symbol_value, set_internal, default_value, Fset_default)
25323 (Fmake_variable_buffer_local, Fmake_local_variable)
25324 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25325 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25326 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25327 * alloc.c (allocate_buffer): Set the size and tag.
25328 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25329 Use XMISCANY.
25330 (die): Follow the GNU convention for error messages.
25331 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25332 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25333 tag any more.
25334 (set_buffer_internal_1):
25335 * frame.c (store_frame_param):
25336 * eval.c (specbind):
25337 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25338
25339 * doc.c (Fsnarf_documentation): Simplify.
25340
253412007-10-14 Juanma Barranquero <lekktu@gmail.com>
25342
25343 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25344 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25345
253462007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25347
25348 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25349
253502007-10-14 Juanma Barranquero <lekktu@gmail.com>
25351
25352 * eval.c (do_autoload): Don't save autoloads.
25353
25354 * data.c (Ffset): Save autoload of the function being set.
25355
253562007-10-07 John Paul Wallington <jpw@pobox.com>
25357
25358 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25359 parameter before setting up faces.
25360
253612007-10-13 Eli Zaretskii <eliz@gnu.org>
25362
25363 * ccl.c (Fregister_code_conversion_map):
25364 * keyboard.c (append_tool_bar_item): Reformat last change.
25365
25366 * lisp.h (eabs): Rename from `abs'. All callers changed.
25367
253682007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25369
25370 * buffer.c (add_overlay_mod_hooklist):
25371 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25372 * fontset.c (make_fontset):
25373 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25374 (append_tool_bar_item):
25375 * macmenu.c (grow_menu_items):
25376 * w32menu.c (grow_menu_items):
25377 * xmenu.c (grow_menu_items): Use larger_vector.
25378
253792007-10-13 Eli Zaretskii <eliz@gnu.org>
25380
25381 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25382 selected frame'' on MSDOS).
25383
253842007-10-12 Martin Rudalics <rudalics@gmx.at>
25385
25386 * frame.c (Qexplicit_name): New variable.
25387 (x_report_frame_params): Report it in parameter alist.
25388 (syms_of_frame): Intern and staticpro it.
25389
253902007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25391
25392 * macfns.c (x_create_tip_frame): Set terminal for frame.
25393
253942007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25395
25396 * frame.c (Qenvironment): Remove.
25397 (syms_of_frame) <Qenvironment>: Don't initialize.
25398 (Fdelete_frame): Don't treat the `environment' param specially.
25399 * frame.h (Qenvironment): Don't declare.
25400 * callproc.c (set_initial_environment): Don't set unused frame param.
25401
25402 * frame.c (Fframe_with_environment): Remove.
25403 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25404
25405 * lisp.h (Fframe_with_environment): Don't declare.
25406
254072007-10-10 Juanma Barranquero <lekktu@gmail.com>
25408
25409 * indent.c (indent_tabs_mode, last_known_column)
25410 (last_known_column_modified): Make static.
25411 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25412
254132007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25414
25415 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25416
254172007-10-09 Jason Rumney <jasonr@gnu.org>
25418
25419 * w32term.c (x_set_window_size): Disable code that attempts to tell
25420 Lisp code about a size change before it actually happens.
25421
254222007-10-09 Richard Stallman <rms@gnu.org>
25423
25424 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25425 return HANDLED_RETURN.
25426
254272007-10-08 Martin Rudalics <rudalics@gmx.at>
25428
25429 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25430 when there's an unread command event.
25431
25432 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25433 window autoselection act appropriately when leaving selected frame.
25434 (syms_of_frame): Initialize focus_follows_mouse.
25435 * frame.h (focus_follows_mouse): Extern it.
25436 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25437 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25438 * msdos.c (dos_rawgetc): Likewise.
25439 * w32term.c (w32_read_socket): Likewise.
25440 * xterm.c (handle_one_xevent): Likewise.
25441 * xdisp.c (syms_of_xdisp): In doc-string of
25442 mouse-autoselect-window mention focus-follows-mouse.
25443
254442007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25445
25446 * macterm.c (mac_load_query_font): Fix missing return value.
25447 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25448 Add BLOCK_INPUT.
25449
254502007-10-08 Richard Stallman <rms@gnu.org>
25451
25452 * xdisp.c (get_window_cursor_type): Implement documented behavior
25453 for cursor-in-non-selected-windows = t.
25454
254552007-10-08 Jason Rumney <jasonr@gnu.org>
25456
25457 * w32.c (w32_get_resource): Always close registry keys.
25458
254592007-10-08 Jason Rumney <jasonr@gnu.org>
25460
25461 * makefile.w32-in (LIBS): Add COMCTL32.
25462
25463 * w32fns.c (globals_of_w32fns): Init common controls.
25464
254652007-10-08 Richard Stallman <rms@gnu.org>
25466
25467 * image.c (our_memory_buffer): Rename from omfib_buffer.
25468
254692007-10-08 Richard Stallman <rms@gnu.org>
25470
25471 * buffer.c (Foverlays_at): Doc fix.
25472
254732007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25474
25475 * fns.c (Fplist_put): Preserve uneven tail data.
25476
254772007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25478
25479 * termhooks.h (enum event_kind): Remove trailing comma.
25480
25481 * frame.h (enum): Remove trailing comma.
25482
254832007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25484
25485 * w32proc.c (delete_child): Don't terminate threads of zombies.
25486
254872007-10-08 Martin Rudalics <rudalics@gmx.at>
25488
25489 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25490
25491 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25492 last-repeatable-command.
25493 (init_kboard): Initialize Vlast_repeatable_command.
25494 (command_loop_1): Set it to real_this_command unless that was
25495 bound to an input event.
25496 (mark_kboards): Mark it.
25497
254982007-10-08 Richard Stallman <rms@gnu.org>
25499
25500 * eval.c (condition-case): Doc fix.
25501
255022007-10-08 Masatake YAMATO <jet@gyve.org>
25503
25504 * xfaces.c (tty_supports_face_attributes_p): Fix code
25505 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25506 was copied and not edited.
25507
255082007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25509
25510 Add new `input-decode-map' keymap and use it for terminal
25511 escape sequences.
25512 * keyboard.h (struct kboard): Add Vinput_decode_map.
25513 Remove Vlocal_key_translation_map.
25514 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25515 (init_kboard): Init input-decode-map.
25516 Replace local-key-translation-map back with key-translation-map.
25517 (syms_of_keyboard): Declare input-decode-map.
25518 Remove local-key-translation-map. Update docstrings.
25519 (mark_kboards): Mark Vinput_decode_map.
25520 Don't mark Vlocal_key_translation_map.
25521 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25522 Replace local-key-translation-map back with key-translation-map.
25523 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25524 Bind in input-decode-map rather than function-key-map.
25525
25526 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25527 This was made redundant by the previous introduction of XSETPVECTYPE.
25528
255292007-10-09 Richard Stallman <rms@gnu.org>
25530
25531 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25532
255332007-09-29 Richard Stallman <rms@gnu.org>
25534
25535 * eval.c (internal_condition_case_2, internal_condition_case_1)
25536 (internal_condition_case): Reenable abort if x_catching_errors ()
25537 to see if that really happens and why.
25538
255392007-10-06 Andreas Schwab <schwab@suse.de>
25540
25541 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25542
255432007-10-04 Juanma Barranquero <lekktu@gmail.com>
25544
25545 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25546
255472007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25548
25549 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25550
255512007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25552
25553 * window.h (struct window):
25554 * window.c (struct save_window_data, struct saved_window):
25555 * termhooks.h (struct terminal):
25556 * process.h (struct Lisp_Process):
25557 * frame.h (struct frame):
25558 * buffer.h (struct buffer):
25559 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25560 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25561 The size field of (pseudo)vectors is now unsigned.
25562 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25563
25564 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25565 Turn `count' into an integer.
25566
25567 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25568 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25569 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25570 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25571 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25572
25573 * alloc.c (allocate_pseudovector): New fun.
25574 (ALLOCATE_PSEUDOVECTOR): New macro.
25575 (allocate_window, allocate_terminal, allocate_frame)
25576 (allocate_process): Use it.
25577 (mark_vectorlike): New function.
25578 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25579 (mark_terminals): Use it.
25580 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25581 (Fmake_byte_code): Use XSETPVECTYPE.
25582
25583 * frame.c (Fframe_parameters): Minor simplification.
25584
25585 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25586
25587 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25588
25589 * buffer.c (Fget_buffer_create, init_buffer_once):
25590 * lread.c (defsubr):
25591 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25592
25593 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25594 defined differently in the m/*.h files.
25595 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25596 (XSETPVECTYPE): New macro.
25597 (XSETPSEUDOVECTOR): Use it.
25598
25599 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25600 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25601
25602 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25603 * lread.c (defvar_per_buffer):
25604 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25605
25606 * window.c (candidate_window_p): Only consider as visible frames that
25607 are on the same terminal.
25608
25609 * m/ibms390x.h (MARKBIT): Remove unused macro.
25610
256112007-10-01 Juanma Barranquero <lekktu@gmail.com>
25612
25613 * lread.c (Fload): Fix typo in docstring.
25614
256152007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25616
25617 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25618 of a non-zero value can't yield zero.
25619
256202007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25621
25622 * term.c (term_clear_mouse_face, term_mouse_highlight)
25623 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25624
25625 * print.c (safe_debug_print): Use XHASH.
25626
25627 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25628 Lisp elements such as tags.
25629 (XHASH): New macro.
25630 (EQ): Use it.
25631 (SREF, SSET, STRING_COPYIN): Use SDATA.
25632 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25633
25634 * alloc.c (mark_terminal): Remove left-over declaration.
25635 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25636 (allocate_vectorlike): Remove type argument. Adjust callers.
25637 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25638 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25639
25640 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25641 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25642 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25643 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25644 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25645 Use them.
25646
25647 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25648 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25649 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25650
256512007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25652
25653 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25654 loaded by default.
25655
256562007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25657
25658 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25659 on this tty.
25660 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25661
25662 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25663 Update all users.
25664 (handle_one_term_event): Use Gpm_DrawPointer.
25665 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25666 Signal errors instead of returning nil. Always return nil.
25667 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25668 Make it a noop if gpm-mouse was not activated.
25669 (syms_of_term): Update names.
25670
256712007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25672
25673 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25674 (init_sys_modes): Check that gpm_tty is the current tty.
25675
25676 * alloc.c (allocate_terminal): Set the vector size to only count the
25677 lisp fields. Initialize those to nil.
25678 (mark_object): Don't treat terminals specially.
25679 (mark_terminal): Remove.
25680 (mark_terminals): Use mark_object instead.
25681
25682 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25683 the GC to the beginning.
25684
25685 * indent.h:
25686 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25687
25688 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25689
256902007-09-25 Jason Rumney <jasonr@gnu.org>
25691
25692 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25693
25694 * w32console.c (create_w32cons_output): Remove.
25695
25696 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25697
25698 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25699 (reset_sys_modes): Use reset_terminal_modes_hook.
25700
257012007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25702
25703 * eval.c (do_autoload): Don't output any message.
25704
257052007-09-24 Juri Linkov <juri@jurta.org>
25706
25707 * emacs.c (standard_args): Change priority of "--no-splash"
25708 from 40 to 3. Add "--no-desktop" with the same priority.
25709
257102007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25711
25712 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25713 and optimize the case where they are all 1.
25714
257152007-09-23 Johannes Weiner <hannes@saeurebad.de>
25716
25717 * lisp.h (abs): Define if not defined.
25718 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25719 Don't define `abs', since it's defined in lisp.h.
25720
257212007-09-22 Eli Zaretskii <eliz@gnu.org>
25722
25723 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25724 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25725 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25726 (init_tty): Use DEV_TTY instead of "/dev/tty".
25727 [WINDOWSNT]: No need to protect from NAME arg being null.
25728
257292007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25730
25731 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25732 up the tty state.
25733
257342007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25735
25736 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25737 (gpm_tty): Change its type.
25738 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25739 (gpm_tty): Change its type and initialize it.
25740 (Fterm_open_connection): Check the frame is indeed a tty.
25741 Use the new gpm_tty.
25742 (Fterm_close_connection): Use the new gpm_tty.
25743 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25744 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25745
257462007-09-21 Juanma Barranquero <lekktu@gmail.com>
25747
25748 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25749 underline_color, to draw strike-through.
25750
257512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25752
25753 * lisp.h (allocate_terminal): Declare.
25754
25755 * window.c (candidate_window_p): Consider frames that are being placed
25756 by the user as somewhere between visible and iconified.
25757 (window_loop): Prefer windows on the current frame.
25758 (Fselect_window): Move the use of select-frame to the beginning so we
25759 can just delegate all the work (it'll call us back anyway).
25760
25761 * frame.c (Qdisplay_environment_variable):
25762 * frame.h (Qdisplay_environment_variable): Delete.
25763
25764 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25765 of the first arg, since that value may be a union.
25766
25767 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25768 parameter rather than Qdisplay_environment_variable. If all else
25769 fails, look for DISPLAY in initial-environment.
25770
257712007-09-21 Glenn Morris <rgm@gnu.org>
25772
25773 * Makefile.in (emacstool): Remove target.
25774 (lisp, shortlisp): Remove termdev.elc.
25775
257762007-09-21 Markus Triska <markus.triska@gmx.at>
25777
25778 * xterm.c (x_delete_display): Compile session management conditionally.
25779
257802007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25781
25782 * callproc.c (getenv_internal_1): New function.
25783 (getenv_internal): Use it.
25784 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25785
25786 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25787 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25788 (Fset_terminal_parameter): Work with dead terminals as well.
25789 (Fmodify_terminal_parameters): Remove.
25790
25791 * terminal.c (get_terminal): Handle terminals.
25792 Make sure the terminal returned is live.
25793 (create_terminal): Use allocate_terminal.
25794 (mark_terminals): Move to alloc.c.
25795 (delete_terminal): Use terminal->name as liveness status.
25796 NULL out fields after freeing their contents.
25797 Don't deallocate the object.
25798 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25799 rather than an int.
25800 (Fterminal_live_p): Accept non-integer arguments.
25801 (Fterminal_list): Return terminal objects rather than an ints.
25802
25803 * alloc.c (enum mem_type): New member for `terminal' objects.
25804 (allocate_terminal): New function.
25805 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25806 Handle terminals.
25807 (mark_terminal): New fun.
25808 (mark_terminals): Move from terminal.c.
25809
25810 * term.c (get_tty_terminal): Don't treat output_initial specially.
25811 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25812 (delete_tty): Use terminal->name as liveness status.
25813
25814 * termhooks.h (struct terminal): Make it into a pseudovector.
25815 Remove `deleted' replaced by checking `name's nullness.
25816
25817 * print.c (print_object): Handle terminals.
25818
25819 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25820 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25821
25822 * frame.c (make_terminal_frame):
25823 * keyboard.c (tty_read_avail_input):
25824 * w32term.c (x_delete_terminal):
25825 * xfns.c (Fx_create_frame, x_create_tip_frame):
25826 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25827
258282007-09-20 Glenn Morris <rgm@gnu.org>
25829
25830 * process.c (Fmake_network_process): Doc fix.
25831
258322007-09-19 Jason Rumney <jasonr@gnu.org>
25833
25834 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25835
258362007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25837
25838 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25839 Fix a C warning regarding variable constness.
25840
25841 * xterm.c (handle_one_xevent): Fix a C warning.
25842
258432007-09-18 Jason Rumney <jasonr@gnu.org>
25844
25845 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25846
258472007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25848
25849 * gtkutil.c (gdpy_def): New variable.
25850 (xg_initialize): Initialize gdpy_def.
25851 (xg_display_close): If no other display exists, set gdpy_def to a
25852 new connection.
25853
258542007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25855
25856 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25857 when we have no file name for the icon.
25858 (xg_tool_bar_expose_callback): Remove.
25859 (xg_create_tool_bar): Don't connect expose signal to
25860 xg_tool_bar_expose_callback.
25861 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25862
258632007-09-16 Andreas Schwab <schwab@suse.de>
25864
25865 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25866 values instead of zapping them.
25867
258682007-09-14 Glenn Morris <rgm@gnu.org>
25869
25870 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25871 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25872 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25873 scope and rename to omfib_buffer for clarity.
25874 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25875
258762007-09-14 Kenichi Handa <handa@m17n.org>
25877
25878 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25879
258802007-09-13 Jason Rumney <jasonr@gnu.org>
25881
25882 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25883
25884 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25885
25886 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25887 (mac_term_init): Call here instead, passing rif.
25888
258892007-09-13 Glenn Morris <rgm@gnu.org>
25890
25891 * s/hpux.h: No longer define `static' as nothing.
25892
258932007-09-13 Johan Bockgård <bojohan@gnu.org>
25894
25895 * callint.c (Fcall_interactively): Remove unused var `fun'.
25896
258972007-09-12 Romain Francoise <romain@orebokech.com>
25898
25899 * window.c (prefer_window_split_horizontally, display_buffer):
25900 Revert 2007-09-08 change.
25901
259022007-09-12 Glenn Morris <rgm@gnu.org>
25903
25904 * alloca.c: Remove file.
25905 * Makefile.in (alloca): Do not undef.
25906 (allocaobj, alloca.o): Remove.
25907 (otherobj): Remove allocaobj.
25908 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25909 * regex.c (C_ALLOCA): Remove all references and code that was only
25910 used when this was defined.
25911 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25912 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25913 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25914
25915 * Makefile.in (SOURCES, unlock, relock): Delete.
25916
25917 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25918 (menu_grab_callback): All uses changed.
25919
25920 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25921 (x_reply_selection_request): All uses changed.
25922
259232007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25924
25925 * lread.c (load_warn_old_style_backquotes): Change message to look
25926 better when it appears in the middle of byte-compiler messages.
25927
259282007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25929
25930 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25931
25932 * xterm.c (x_create_terminal): Add comment.
25933
25934 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25935
259362007-09-10 Richard Stallman <rms@gnu.org>
25937
25938 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25939
259402007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25941
25942 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25943 (DEFUN): Document `intspec', use it instead of `prompt'.
25944
25945 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25946
25947 * data.c (Finteractive_form): If the interactive specification starts
25948 with a `(', use it as a Lisp form.
25949
25950 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25951 name and file modes.
25952
25953 * callint.c (Fcall_interactively): Comment fixes.
25954
259552007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25956
25957 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25958 and compiled functions.
25959
259602007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25961
25962 * window.c (prefer_window_split_horizontally): New variable.
25963 (display_buffer): Consider splitting window horizontally depending
25964 on prefer_window_split_horizontally.
25965
259662007-09-08 Eli Zaretskii <eliz@gnu.org>
25967
25968 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25969
259702007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25971
25972 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25973
25974 * frame.c (x_set_frame_parameters): Check number is positive before
25975 using XFASTINT.
25976
25977 * window.c (freeze_window_start): Don't presume selected_window holds
25978 a window object.
25979 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25980
259812007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25982
25983 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25984
259852007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25986
25987 * window.c (Vsplit_window_preferred_function): New var.
25988 (Fdisplay_buffer): Use it.
25989 (syms_of_window): Export, and initialize it.
25990
259912007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25992
25993 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25994
259952007-09-06 Glenn Morris <rgm@gnu.org>
25996
25997 * gtkutil.c (menu_grab_callback) <cnt>:
25998 * xselect.c (x_reply_selection_request) <cnt>: Move static
25999 variable to file scope.
26000
260012007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26002
26003 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26004 consistent values of selected_frame and selected_window.
26005
260062007-09-04 Jason Rumney <jasonr@gnu.org>
26007
26008 * w32console.c (initialize_w32_display): Zero unused hooks.
26009
260102007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26011
26012 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26013 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26014
260152007-09-04 Jason Rumney <jasonr@gnu.org>
26016
26017 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26018 in w32console.c. Set up input. Remove XXX comments that have been
26019 confirmed as correct.
26020
26021 * s/ms-w32.h (MULTI_KBOARD): Define.
26022
26023 * w32console.c (one_and_only_w32cons): Remove.
26024 (initialize_w32_display): Take terminal argument.
26025
26026 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26027 initialize_w32_display.
26028 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26029
26030 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26031
26032 * keyboard.c (discard_mouse_events): Discard it.
26033 (make_lispy_event): Translate it to a lisp event.
26034 (lispy_wheel_names): Add wheel-left and right events.
26035 (syms_of_keyboard): Enlarge wheel_syms.
26036
26037 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26038 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26039
26040 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26041
26042 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26043 from WM_MOUSEHWHEEL.
26044 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26045
26046 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26047 terminal.
26048
26049 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26050 keyboard for the terminal.
26051
260522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26053
26054 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26055 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26056 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26057 and resume-tty-function to resume-tty-hook.
26058 (Fsuspend_tty, Fresume_tty): Use new names.
26059
260602007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26061
26062 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26063 if it starts with "n:".
26064
260652007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26066
26067 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26068
260692007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26070
26071 * frame.h:
26072 * frame.c (Qterm_environment_variable): Remove.
26073 (syms_of_frame): Don't init and staticpro it.
26074
26075 * callproc.c (getenv_internal): Remove special case for $TERM.
26076
26077 * callproc.c (Vinitial_environment): New variable.
26078 (set_initial_environment): Initialize it.
26079 (syms_of_callproc): Declare it.
26080 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26081 TERM under which a process runs is never related to the TERM in which
26082 Emacs is running.
26083
260842007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26085
26086 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26087 * s/darwin.h: ... do it here.
26088
260892007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26090
26091 * lisp.h (set_initial_environment): Rename from set_global_environment.
26092
26093 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26094 removed by mistake on the multi-tty branch.
26095
26096 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26097 (Fmodify_frame_parameters): Return a value.
26098
26099 * image.c (png_load): Comment-out var only used in commented-out code.
26100
26101 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26102 before passing it to mark_object.
26103
26104 * xfaces.c (internal_resolve_face_name): Return a value.
26105 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26106
26107 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26108 (x_icon): Comment-out var only used in commented-out code.
26109
261102007-08-29 Romain Francoise <romain@orebokech.com>
26111
26112 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26113 QUIT hasn't been provided.
26114
261152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26116
26117 * callproc.c (child_setup, getenv_internal): Use the
26118 display-environment-variable and term-environment-variable frame params.
26119 (set_initial_environment): Initialise Vprocess_environment.
26120
26121 * config.in: Disable multi-keyboard support on a mac.
26122
26123 * frame.c (Qterm_environment_variable)
26124 (Qdisplay_environment_variable): New variables.
26125 (syms_of_frame): Intern and staticpro them.
26126 (Fmake_terminal_frame): Disable output method test.
26127
26128 * frame.h: Declare them here.
26129
26130 * macfns.c (x_set_mouse_color): Get rif from the frame.
26131 (x_set_tool_bar_lines): Don't use updating_frame.
26132 (mac_window): Add 2 new parameters for consistency with other systems.
26133 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26134 frame parameters following what is done in X11 and w32. Don't use
26135 FRAME_MAC_DISPLAY_INFO.
26136 (Fx_open_connection, start_hourglass): Remove window-system check.
26137 (x_create_tip_frame): Get the keyboard from the terminal.
26138
26139 * macmenu.c: Reorder includes.
26140 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26141
26142 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26143 terminal parameter.
26144 (x_clear_frame): Add a frame parameter.
26145 (note_mouse_movement): Get rif from the frame.
26146 (mac_term_init): Initialize the terminal.
26147 (mac_initialize): Make static and move terminal initialization ...
26148 (mac_create_terminal): ... to this new function.
26149
26150 * macterm.h (struct mac_display_info): Add terminal.
26151 (mac_initialize): Delete declaration.
26152
26153 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26154
26155 * sysdep.c: Comment out text after #endif.
26156
26157 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26158 is defined. Better initialize ttys in windows. Use terminal
26159 specific mouse_position_hook.
26160
26161 * termhooks.h (union display_info): Add mac_display_info.
26162
26163 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26164 Set the default minibuffer frame, window_system and the rest of the
26165 frame parameters following what is done in X11.
26166
26167 * w32term.c (w32_initialize): Make static.
26168
26169 * xselect.c (x_handle_selection_clear): Only access
26170 terminal->kboard when MULTI_KBOARD is defined.
26171
26172 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26173 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26174
261752007-08-29 Jason Rumney <jasonr@gnu.org>
26176
26177 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26178 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26179
26180 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26181 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26182
26183 * keyboard.c (restore_kboard_configuration): Only define when
26184 MULTI_KBOARD defined.
26185
26186 * makefile.w32-in: Update dependancies from Makefile.in.
26187 (OBJ1): Add terminal.$(O)
26188
26189 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26190 Don't define function body.
26191 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26192
26193 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26194
26195 * w32.c (request_sigio, unrequest_sigio): Remove.
26196
26197 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26198 (w32con_clear_frame, w32con_clear_end_of_line)
26199 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26200 (w32con_delete_glyphs, w32con_set_terminal_window)
26201 (scroll_line, w32_sys_ring_bell): Add frame arg.
26202 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26203 Add terminal arg.
26204 (PICK_FRAME): Remove.
26205 (w32con_write_glyphs): Use frame specific terminal coding.
26206 (one_and_only_w32cons): New global variable.
26207 (initialize_w32_display): Use it for storing hooks.
26208 (create_w32cons_output): New function.
26209
26210 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26211 arg a frame.
26212
26213 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26214 Set window_system.
26215 (x_set_tool_bar_lines): Don't use updating_frame.
26216 (Fx_create_frame): Set terminal and ref count.
26217 (Fx_open_connection): Remove window-system check.
26218
26219 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26220
26221 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26222 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26223 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26224 Add frame arg.
26225 (x_delete_terminal, w32_create_terminal): New functions.
26226 (w32_term_init): Create a terminal.
26227 (w32_initialize): Move terminal specific initialization to
26228 w32_create_terminal.
26229
26230 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26231 (w32_clear_rect, w32_clear_area): Use background from frame.
26232 (w32_display_info): Add terminal.
26233 (w32_sys_ring_bell, x_delete_display): Declare here.
26234
26235 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26236
26237 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26238
262392007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26240
26241 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26242 Fix get_named_tty calls for the controlling tty.
26243
262442007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26245
194d44e7 26246 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26247
262482007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26249
26250 * term.c (tty_insert_glyphs): Add missing first parameter.
26251
262522007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26253
26254 * buffer.c (Fbuffer_list, Fbury_buffer):
26255 Take frame->buried_buffer_list into account.
26256
26257 * cm.c (current_tty): New variable, for cmputc().
26258 (cmputc): Use it.
26259 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26260 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26261 (cmgoto): Add tty parameter. Pass it on to calccost().
26262 Use emacs_tputs() instead of tputs().
26263
26264 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26265 tputs().
26266 (current_tty): New variable, for cmputc().
26267 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26268
26269 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26270 (internal_condition_case, internal_condition_case_1)
26271 (internal_condition_case_2): Don't abort when x_catching_errors.
26272
26273 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26274 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26275 prevent crashes caused by bogus longjmps in read_char.
26276
26277 * keymap.h (Fset_keymap_parent): Add EXFUN.
26278
26279 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26280 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26281 Remove redundant definition.
26282
26283 * macfns.c (x_set_mouse_color, x_make_gc):
26284 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26285
26286 * w32term.c (x_free_frame_resources):
26287 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26288 (w32_initialize): Use the accessor macros for terminal characteristics.
26289
26290 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26291 Use the accessor macros for terminal characteristics.
26292 * msdos.c (internal_terminal_init): Use the accessor macros for
26293 terminal characteristics.
26294 (ScreenVisualBell, internal_terminal_init):
26295 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26296
26297 * termopts.h (no_redraw_on_reenter): Declare.
26298
26299 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26300 (mark_terminals, mark_ttys): Declare.
26301 (Fgarbage_collect): Call them.
26302 (mark_object): Mark buried_buffer_list.
26303
26304 * prefix-args.c: Include stdlib.h for exit.
26305
26306 * syssignal.h: Add comment.
26307
26308 * indent.c: Include stdio.h.
26309
26310 * window.h (Vinitial_window_system): Declare.
26311 (Vwindow_system): Delete declaration.
26312
26313 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26314
26315 * image.c (lookup_image): Don't initialize `c' until the xasserts
26316 have been run.
26317
26318 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26319 FRAME_FOREGROUND_PIXEL.
26320
26321 * print.c (print_preprocess): Don't lose print_depth levels while
26322 iterating.
26323
26324 * widget.c (update_from_various_frame_slots):
26325 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26326
26327 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26328 frames.
26329 (window_internal_height): Remove bogus make_number call.
26330 (init_window_once): Call make_terminal_frame with two zero parameters.
26331
26332 * fileio.c (Fread_file_name): Update comment.
26333
26334 * callint.c (Fcall_interactively):
26335 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26336 Make sure it is correctly unwound.
26337
26338 * xsmfns.c (x_session_close): New function.
26339
26340 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26341 Delete declarations.
26342
26343 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26344 (x_output): Remove background_pixel and foreground_pixel fields.
26345 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26346 (x_delete_device, x_session_close): Declare.
26347
26348 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26349 (read_filtered_event): Call `read_char' with a local
26350 `wrong_kboard_jmpbuf'.
26351
26352 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26353 Don't call single_kboard_state. Use FRAME_RIF.
26354
26355 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26356 systems.
26357
26358 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26359 (Fframe_with_environment, Fset_input_meta_mode)
26360 (Fset_quit_char): EXFUN.
26361 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26362 (init_sys_modes, reset_sys_modes): Update prototypes.
26363 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26364
26365 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26366 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26367 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26368 Delete declarations.
26369 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26370 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26371 New declarations.
26372
26373 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26374 already does that during init_display(). Call syms_of_keymap
26375 before syms_of_keyboard. Call `syms_of_terminal'.
26376 Call set_initial_environment, not set_process_environment.
26377 (shut_down_emacs): Call reset_all_sys_modes() instead of
26378 reset_sys_modes().
26379
26380 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26381 (internal_resolve_face_name, resolve_face_name_error): New functions.
26382 (resolve_face_name): Protect against loops and errors thrown by Fget.
26383 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26384 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26385
26386 * scroll.c: Replace CURTTY() with local variables throughout the
26387 file (where applicable).
26388 (calculate_scrolling, calculate_direct_scrolling)
26389 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26390 characteristics.
26391
26392 * keymap.c (Vfunction_key_map): Remove.
26393 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26394 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26395 (Vkey_translation_map): Remove.
26396 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26397 (Fdescribe_buffer_bindings)
26398 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26399 Update for terminal-local key-translation-map.
26400
26401 * Makefile.in (callproc.o): Update dependencies.
26402 (lisp, shortlisp): Add termdev.elc.
26403 (obj): Add terminal.o.
26404 (terminal.o): Add dependencies.
26405 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26406 (data.o, fns.o): Add termhooks.h dependency.
26407 (SOME_MACHINE_LISP): Add dnd.elc.
26408 (minibuf.o): Fix typo.
26409 Update dependencies.
26410
26411 * data.c (do_symval_forwarding, store_symval_forwarding)
26412 (find_symbol_value): Use the selected frame's keyboard, not
26413 current_kboard.
26414
26415 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26416 Vwindow_system.
26417
26418 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26419 Fmenu_bar_open.
26420 (syms_of_xmenu): Update defsubr.
26421 (mouse_position_for_popup, Fx_popup_menu)
26422 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26423 (set_frame_menubar, free_frame_menubar)
b97439ce 26424 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26425 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26426 an X frame.
26427
26428 * xselect.c (x_own_selection): Abort if not an X frame.
26429 (some_frame_on_display): Check if it is an X frame.
26430 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26431
26432 * coding.c: Include frame.h and termhooks.h.
26433 (terminal_coding, keyboard_coding): Delete.
26434 (Fset_terminal_coding_system_internal)
26435 (Fset_keyboard_coding_system_internal)
26436 (Fkeyboard_coding_system)
26437 (Fterminal_coding_system): Add a terminal parameter.
26438 Get terminal_coding from the terminal.
26439 (init_coding_once): Don't call setup_coding_system here.
26440
26441 * dispextern.h (set_scroll_region, turn_off_insert)
26442 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26443 (tty_clear_end_of_line, tty_setup_colors)
26444 (delete_tty, updating_frame)
26445 (produce_special_glyphs, produce_glyphs, write_glyphs)
26446 (insert_glyphs): Remove.
26447 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26448 (tty_turn_off_highlight, get_tty_size): Add declaration.
26449 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26450
26451 * frame.h (enum output_method): Add output_initial.
26452 (struct x_output): Delete.
26453 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26454 Access foreground_pixel and background_pixel directly from the frame.
26455 (tty_display): Delete.
26456 (struct frame): Add buried_buffer_list, foreground_pixel,
26457 background_pixel and terminal. Delete kboard.
26458 (union output_data): Add tty.
26459 (FRAME_KBOARD): Get the kboard from the terminal.
26460 (FRAME_INITIAL_P): New macro.
26461 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26462 (Qterm_environment_variable, Qdisplay_environment_variable)
26463 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26464 New declarations.
26465
26466 * termchar.h (tty_output, tty_display_info): New structures.
26467 (tty_list): Declare.
26468 (FRAME_TTY, CURTTY): New macros.
26469 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26470 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26471 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26472 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26473
26474 * callproc.c: Include frame.h and termhooks.h, for terminal
26475 parameters.
26476 (add_env): New function.
26477 (child_setup): Use it.
26478 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26479 (getenv_internal): Fix get_terminal_param call.
26480 (Fgetenv_internal, egetenv): Update doc.
26481 (syms_of_callproc): Initialize Vprocess_environment to nil.
26482 Register and initialize them. Remove obsolete defvars. Update doc
26483 strings.
26484 (child_setup): Handle Vlocal_environment_variables.
26485 (getenv_internal): Add terminal parameter.
26486 Handle Vlocal_environment_variables.
26487 (Fgetenv_internal): Add terminal parameter.
26488 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26489 environment in a frame (not terminal) parameter. Update doc strings.
26490 (set_initial_environment): Rename from set_global_environment.
26491 Store Emacs environment in initial frame parameter.
26492
26493 * xdisp.c (redisplay_internal): Update references to
26494 `previous_terminal_frame'.
26495 (display_mode_line, Fformat_mode_line): Replace calls to
26496 `push_frame_kboard' with `push_kboard'.
26497 (get_glyph_string_clip_rects): Add extra parentheses and
26498 braces to prevent compiler warnings.
26499 (calc_pixel_width_or_height): Add xassert to check that the
26500 frame is alive. Don't call `lookup_image' on a termcap frame.
26501 (message2_nolog, message3_nolog, redisplay_internal)
26502 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26503 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26504 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26505 (Fx_display_pixel_width, Fx_display_pixel_height)
26506 (Fx_display_planes, Fx_display_color_cells)
26507 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26508 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26509 (Fx_display_backing_store, Fx_display_visual_class)
26510 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26511 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26512
26513 * xfns.c (x_set_foreground_color x_set_background_color)
26514 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26515 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26516 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26517 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26518 terminal that is being deleted.
26519 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26520 frame parameter, and make sure it overrides any user-supplied setting.
26521 (Fx_close_connection, Fx_synchronize): Unify argument names with
26522 the rest of the DEFUNs.
26523
26524 * dispnew.c (Fsend_string_to_terminal): Update call to
26525 `get_tty_terminal'.
26526 (Fredraw_frame, Fsend_string_to_terminal)
26527 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26528 FRAME_TERMCAP_P and FRAME_TTY.
26529 (window_change_signal): Don't believe width/height values that are
26530 impossibly small.
26531 (Vinitial_window_system): Rename from Vwindow_system.
26532 (termscript, Wcm, rif): Delete.
26533
26534 * termhooks.h (struct terminal): New struct containing the
26535 previously global text display hooks and new members NAME,
26536 DELETED and PARAM_ALIST.
26537 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26538 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26539 (FRAME_RIF): New macros.
26540 (get_terminal_param, get_device): New declarations.
26541 (termscript): Delete declaration.
26542
26543 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26544 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26545 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26546 FRAME_FOREGROUND_PIXEL.
26547 (x_fully_uncatch_errors): Disable definition.
26548 (x_scroll_bar_expose): Fix reference to foreground pixel.
26549 (XTread_socket): Disable loop on all X displays.
26550 (x_delete_terminal): Don't set terminal->deleted and let
26551 delete_terminal delete the frames on the terminal.
26552 (x_delete_display): Doc update to reflect changes in
26553 delete_terminal.
26554 (x_display_info) <terminal>: Move member earlier in the struct.
26555 (deleting_tty): Remove old variable.
26556 (Fsuspend_tty): Call clear_tty_hooks.
26557 (Fresume_tty, init_tty): Call set_tty_hooks.
26558 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26559 errors on X frames.
26560 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26561 (handle_one_xevent): Initialize `f' to NULL.
26562 (x_delete_terminal, x_create_terminal): New functions.
26563 (XTset_terminal_modes, XTreset_terminal_modes)
26564 (XTread_socket, x_connection_closed, x_term_init)
26565 (x_term_init, x_delete_display): Add terminal parameter.
26566 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26567 X connections.
26568
26569 * frame.c: Include termchar.h.
26570 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26571 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26572 (Qdisplay_environment_variable): New vars.
26573 (Fframep): Deal with output_initial.
26574 (Fframe-live-p): Doc fix.
26575 (Fwindow-system): New function.
26576 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26577 (make_terminal_frame): Don't create frames on a terminal that is
26578 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26579 (store_frame_param): Check for found_for_frame before calling XFRAME.
26580 (Fmake_terminal_frame): Handle NULL tty names correctly.
26581 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26582 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26583 frames to refer to a deleted frame in their 'environment parameter.
26584 (Fframe_with_environment): New function.
26585 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26586 (get_future_frame_param): New function.
26587 (Fmake_terminal_frame): Use it.
26588 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26589
26590 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26591 * sysdep.c (reset_sys_modes): Update for renames.
26592
26593 * keyboard.c (tty_read_avail_input): New function.
26594 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26595 (syms_of_keyboard): Defsubr them.
26596 (Fset_input_meta_mode, Fset_quit_char): New functions.
26597 (Fset_input_mode): Split to above functions.
26598 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26599 parameter. Use it in call to `read_char'.
26600 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26601 Set wrong_kboard_jmpbuf correctly in recursive calls.
26602 Use current_kboard to access Vkeyboard_translate_table.
26603 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26604 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26605 Update longjmp invocations. Remember the original current_kboard,
26606 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26607 changes it. Comment out unnecessary calls to
26608 `record_single_kboard_state' and `any_kboard_state'.
26609 Update recursive calls.
26610 (wrong_kboard_jmpbuf): Remove global variable.
26611 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26612 Handle deleted interrupted_kboards correctly; that is a legal
26613 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26614 and read_char calls. Abort if interrupted_kboard died in read_char.
26615 (any_kboard_state, single_kboard_state)
26616 (push_frame_kboard): Remove function.
26617 (pop_kboard): Switch out of single_kboard mode if the kboard has
26618 been deleted. Remove unused variable. Help debugging by not
26619 changing current_kboard unnecessarily. Set current_kboard to the
26620 kboard of the selected frame when the stored kboard object has
26621 been deleted before pop_kboard.
26622 (temporarily_switch_to_single_kboard): Change first parameter to a
26623 frame pointer. Throw an error when caller wants to change kboards
26624 while in single_kboard mode. Don't push_kboard if we weren't in
26625 single kboard state. Don't pop_kboard if we popped into any
26626 kboard state.
26627 (restore_kboard_configuration): Abort if pop_kboard changed the
26628 kboard in single_kboard mode. Call pop_kboard only after setting
26629 up single_kboard mode.
26630 (Frecursive_edit): Switch to single_kboard mode only in nested
26631 command loops.
26632 (cmd_error, command_loop, command_loop_1, timer_check):
26633 Comment out unnecessary call to `any_kboard_state' and
26634 `record_single_kboard_state'.
26635 (delete_kboard): Exit single_kboard mode if we have just deleted
26636 that kboard. Use FRAME_KBOARD.
26637 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26638 `fatal_error_signal'.
26639 (record_single_kboard_state): Don't push_kboard if we weren't in
26640 single kboard state. Don't pop_kboard if we popped into any
26641 kboard state.
26642 (push_frame_kboard): Rename to push_kboard.
26643 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26644 (read_avail_input): Read input from all terminals.
26645 (mark_kboards): Also mark Vkeyboard_translate_table.
26646 (kbd_buffer_store_event_hold): Simplify condition.
26647 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26648 (Vkeyboard_translate_table): Move to struct kboard.
26649 (init_kboard): Initialize Vkeyboard_translate_table.
26650 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26651 Vkeyboard_translate_table. Update doc strings. Update docs of
26652 local-function-key-map and function-key-map.
26653
26654 * terminal.c: New file.
26655
26656 * term.c: Include errno.h.
26657 (Vring_bell_function, device_list, initial_device)
26658 (next_device_id, ring_bell, update_begin, update_end)
26659 (set_terminal_window, cursor_to, raw_cursor_to)
26660 (clear_to_end, clear_frame, clear_end_of_line)
26661 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26662 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26663 (syms_of_term): Move their initialization to terminal.c.
26664 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26665 (Ftty_display_color_cells)
26666 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26667 (clear_tty_hooks, set_tty_hooks)
26668 (init_tty, maybe_fatal): New functions.
26669 (Ftty_type): Return nil if terminal is not on a tty instead of
26670 throwing an error. Doc update.
26671 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26672 Doc update. Initialize new subrs and variables.
26673 (delete_tty): Use terminal->deleted.
26674 (tty_set_terminal_modes): Rename from set_terminal_modes.
26675 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26676 (set_scroll_region): Rename to `tty_set_scroll_region'.
26677 (turn_on_insert): Rename to `tty_turn_on_insert'.
26678 (turn_off_insert): Rename to `tty_turn_off_insert'.
26679 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26680 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26681 (toggle_highligh): Rename to `tty_toggle_highlight'.
26682 (background_highlight): Rename to `tty_background_highlight'.
26683 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26684 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26685 (tty_set_scroll_region, tty_background_highlight)
26686 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26687 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26688 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26689 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26690 Add static modifier.
26691 (tty_reset_terminal_modes, tty_set_terminal_window)
26692 (tty_set_scroll_region, tty_background_highlight)
26693 (tty_highlight_if_desired, tty_cursor_to)
26694 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26695 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26696 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26697 renames.
26698
266992007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26700
26701 * keyboard.c: Qrtl is new.
26702 (parse_tool_bar_item): Handle :rtl keyword.
26703 (syms_of_keyboard): Intern :rtl keyword.
26704
26705 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26706
26707 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26708 so no Lisp code is executed.
26709 (file_for_image, find_rtl_image): New functions.
26710 (xg_get_image_for_pixmap): Use file_for_image.
26711 (update_frame_tool_bar): If direction is RTL, use RTL image if
26712 defined. Use Gtk stock images if defined.
26713
267142007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26715
26716 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26717 for nonexistent or zero-width glyph in composition glyph.
26718
267192007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26720
26721 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26722
26723 * xdisp.c (Finvisible_p): New function.
26724 (syms_of_xdisp): defsubr it.
26725
267262007-08-24 Juanma Barranquero <lekktu@gmail.com>
26727
26728 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26729 Doc fixes.
26730
267312007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26732
26733 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26734
267352007-08-24 Martin Rudalics <rudalics@gmx.at>
26736
26737 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26738 whether decoding has modified buffer contents.
26739
267402007-08-24 Jason Rumney <jasonr@gnu.org>
26741
26742 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26743 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26744 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26745 (init_svg_functions) [HAVE_NTGUI]: New function.
26746 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26747 (svg_load_image): Use them.
26748 (svg_load_image) [HAVE_NTGUI]: Implement background.
26749
267502007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26751
26752 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26753 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26754 (LIBX): Remove @RSVG_LIBS@.
26755 (LIBES): Add $(RSVG_LIBS).
26756
26757 * image.c (svg_load_image): Blend with specified background if exists.
26758 Use IMAGE_BACKGROUND. Add Mac OS Support.
26759
26760 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26761 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26762 Remove macros.
26763 [MAC_OSX] (socket_callback): Do nothing.
26764 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26765 ReceiveNextEvent.
26766 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26767 socket_callback.
26768 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26769
267702007-08-22 Glenn Morris <rgm@gnu.org>
26771
26772 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26773
267742007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26775
26776 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26777
26778 * image.c: Add support for SVG images. Some additional comments
26779 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26780 (svg_image_p): New function to test for SVG image.
26781 (svg_load): New function to load SVG image.
26782 (svg_load_image): New function, helper for svg_load.
26783 (Qsvg): New Lisp_object.
26784 (svg_keyword_index): New enum.
26785 (svg_format): New static `image_keyword' struct.
26786 (svg_type): New static `image_type' struct.
26787 (librsvg/rsvg.h): Include it.
26788
267892007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26790
26791 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26792
267932007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26794
26795 * lread.c (Qold_style_backquotes): New var.
26796 (syms_of_lread): Init and staticpro it.
26797 (load_warn_old_style_backquotes): New fun.
26798 (Fload): Use them to warn about old style backquotes.
26799 (end_of_file_error, Fload): Remove unused vars.
26800
26801 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26802
26803 * lread.c (Vold_style_backquotes): New var.
26804 (syms_of_lread): Init and export it to Elisp.
26805 (read1): Set it when we find an old-style (back)quote.
26806
268072007-08-22 Jason Rumney <jasonr@gnu.org>
26808
26809 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26810
268112007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26812
26813 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26814
268152007-08-19 Richard Stallman <rms@gnu.org>
26816
26817 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26818
268192007-08-19 Andreas Schwab <schwab@suse.de>
26820
26821 * alloc.c (pure): Round PURESIZE up.
26822
268232007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26824
26825 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26826 active frame.
26827
268282007-08-16 Richard Stallman <rms@gnu.org>
26829
26830 * eval.c (Fcommandp): Add parens to clarify.
26831
26832 * minibuf.c (Fall_completions): Use enum for type of table.
26833
26834 * emacs.c (USAGE2): Improve text.
26835
268362007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26837
26838 * term.c (tty_default_color_capabilities): Declare static
26839 variables in file scope, to avoid HPUX compiler problem.
26840
268412007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26842
26843 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26844 to gtk_toolbar_insert.
26845
268462007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26847
26848 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26849
26850 * insdel.c (reset_var_on_error): New fun.
26851 (signal_before_change, signal_after_change):
26852 Use it to reset (after|before)-change-functions to nil in case of error.
26853 Bind inhibit-modification-hooks to t.
26854 Don't bind (after|before)-change-functions to nil while they run.
26855
268562007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26857
26858 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26859 filling pixmap with stippled background.
26860
268612007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26862
26863 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26864 Don't use invisible frame as parent window for repositioning.
26865
268662007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26867
26868 * print.c (new_backquote_output): Rename from old_backquote_output.
26869 (print): Inverse its logic (according to its name) so as to match the
26870 behavior of new_backquote_flag in lread.c.
26871
268722007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26873
26874 * gmalloc.c (posix_memalign): New function.
26875
26876 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26877 ActivateControl/DeactivateControl here.
26878 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26879 frame-notice-user-settings is non-nil.
26880 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26881 for kEventParamFMFontStyle.
26882 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26883 mac_pass_command_to_system and mac_pass_control_to_system here.
26884 (XTread_socket): Call ActivateControl/DeactivateControl here.
26885 (XTread_socket) [TARGET_API_MAC_CARBON]:
26886 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26887 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26888 for window repositioning.
26889
268902007-08-08 Glenn Morris <rgm@gnu.org>
26891
26892 * Replace `iff' in doc-strings and comments.
26893
268942007-08-07 Chong Yidong <cyd@stupidchicken.com>
26895
26896 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26897
268982007-08-07 Martin Rudalics <rudalics@gmx.at>
26899
26900 * fileio.c (Finsert_file_contents): Run format-decode and
26901 after_insert_file_functions on entire buffer when REPLACE is
26902 non-nil and inhibit modification_hooks and point_motion_hooks.
26903 For consistency, run after_insert_file_functions iff something
26904 got inserted. Move signal_after_change and update_compositions
26905 after code running after_insert_file_functions. Make sure that
26906 undo_list doesn't record intermediate steps of the decoding process.
26907
269082007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26909
26910 * emacs.c (main)
26911 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26912 Call malloc_enable_thread on interactive startup.
26913
26914 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26915 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26916 [USE_PTHREAD]: Conditionalize with it.
26917 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26918 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26919 New functions.
26920
269212007-08-06 Chong Yidong <cyd@stupidchicken.com>
26922
26923 * xdisp.c (redisplay_window): When restoring original buffer
26924 position, make sure it is still valid.
26925
26926 * image.c (png_load): Ignore png-supplied background color.
26927
269282007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26929
26930 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26931 Use kCFAbsoluteTimeIntervalSince1970.
26932
26933 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26934 New variable.
26935 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26936 event loop should be quit.
26937 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26938 Quit dialog event loop if quit_dialog_event_loop is set.
26939
26940 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26941 (Selection): New typedef. Use instead of ScrapRef.
26942 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26943 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26944 (mac_clear_selection): Rename from clear_scrap.
26945 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26946 scrap_has_target_type. All uses changed.
26947 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26948 (mac_selection_has_target_p): New functions.
26949 (mac_put_selection_value): Rename from put_scrap_string.
26950 (mac_get_selection_value): Rename from get_scrap_string.
26951 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26952 (put_scrap_private_timestamp, scrap_has_target_type)
26953 (get_scrap_private_timestamp): Remove functions.
26954 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26955 (x_own_selection, x_get_local_selection):
26956 Use mac_valid_selection_value_p.
26957 (x_own_selection): Don't use put_scrap_private_timestamp.
26958 Record OWNERSHIP-INFO into Vselection_alist instead.
26959 (x_get_local_selection): Don't check type if request is local.
26960 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26961 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26962
269632007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26964
26965 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26966 add comment explaining why.
26967
269682007-08-03 Richard Stallman <rms@gnu.org>
26969
26970 * fileio.c (Fvisited_file_modtime): Use make_time.
26971
269722007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26973
26974 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26975 build.
26976
269772007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26978
26979 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26980
269812007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26982
26983 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26984
269852007-07-30 Richard Stallman <rms@gnu.org>
26986
26987 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26988
269892007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26990
26991 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26992
269932007-07-28 Nick Roberts <nickrob@snap.net.nz>
26994
26995 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26996 remote default-directory.
26997
26998 * buffer.c (mode-line-format): Update doc string.
26999
270002007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27001
27002 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27003 scroll bar gap.
27004 (x_scroll_bar_create): Set bar->fringe_extended_p.
27005 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27006 on frame edge. Check fringe background extension. Don't clear
27007 extended fringe background area.
27008
27009 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27010 (w32_fill_area): Enclose multiple statements with do ... while (0).
27011
27012 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27013 Extend fringe background to scroll bar gap.
27014 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27015 Set bar->fringe_extended_p.
27016 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27017 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27018 background extension. Don't clear extended fringe background area.
27019
27020 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27021 New member fringe_extended_p.
27022
270232007-07-25 Glenn Morris <rgm@gnu.org>
27024
27025 * Relicense all FSF files to GPLv3 or later.
27026
27027 * COPYING: Switch to GPLv3.
27028
270292007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27030
27031 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27032
27033 * data.c (Finteractive_form): Check for the presence of an
27034 `interactive-form' symbol property more thoroughly.
27035
27036 * data.c (Finteractive_form): Use an `interactive-form' property if
27037 present, analogous to the function-documentation property.
27038
270392007-07-24 Jason Rumney <jasonr@gnu.org>
27040
27041 * w32fns.c (x_real_positions): Get real position from OS instead of
27042 calculating it.
27043
270442007-07-23 Jason Rumney <jasonr@gnu.org>
27045
27046 * filelock.c (current_lock_owner): Allow for @ sign in username.
27047
270482007-07-22 Nick Roberts <nickrob@snap.net.nz>
27049
27050 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27051 remote default-directory.
27052
27053 * buffer.c (mode-line-format): Describe above case in doc string.
27054
270552007-07-20 Eli Zaretskii <eliz@gnu.org>
27056
27057 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27058 Define if not defined.
27059
270602007-07-18 Jason Rumney <jasonr@gnu.org>
27061
27062 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27063
270642007-07-18 Richard Stallman <rms@gnu.org>
27065
27066 * data.c (Fsetq_default): Doc fix.
27067
27068 * eval.c (Fsetq): Doc fix.
27069
270702007-07-18 Juanma Barranquero <lekktu@gmail.com>
27071
27072 * coding.c (Ffind_operation_coding_system):
27073 * eval.c (For, Fand): Doc fixes.
27074 Reported by Johan Bockgård.
27075
270762007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27077
27078 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27079
27080 * xterm.h: Declare x_ewmh_activate_frame.
27081
27082 * xterm.c (x_ewmh_activate_frame): New function.
27083 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27084
270852007-07-17 Martin Rudalics <rudalics@gmx.at>
27086
27087 * window.c (Fdisplay_buffer): If largest or LRU window is the
27088 only window, split it even if it is not eligible for splitting.
27089 This restores the original behavior broken by the 2007-07-15
27090 change.
27091
270922007-07-17 Glenn Morris <rgm@gnu.org>
27093
27094 * abbrev.c (abbrev_check_chars): New function.
27095 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27096 Call abbrev_check_chars to check abbrev characters are word
27097 constituents. Doc fix.
27098
270992007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27100
27101 * process.c (Fstart_process, Fmake_network_process)
27102 (read_process_output): Fix up last changes.
27103
271042007-07-16 Eli Zaretskii <eliz@gnu.org>
27105
27106 * makefile.w32-in (clean): Don't delete *~.
27107
271082007-07-16 Andreas Schwab <schwab@suse.de>
27109
27110 * window.c (Fdisplay_buffer): Use NILP.
27111 (Fset_window_scroll_bars): Likewise.
27112
271132007-07-15 Martin Rudalics <rudalics@gmx.at>
27114
27115 * window.c (window_min_size_2): New function.
27116 (window_min_size_1, size_window, Fdisplay_buffer)
27117 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27118 windows without mode- or header-lines when window-min-height is
27119 too small.
27120 (size_window): Reset nodelete_p after testing it, following an
27121 earlier note by Kim F. Storm.
27122 (display_buffer): Do not set split_height_threshold to twice the
27123 value of window_min_height to avoid changing the value of a
27124 customizable variable. Rather explicitly check whether the
27125 height of the window that shall be splitted is at least as large
27126 as split_height_threshold.
27127 (Fwindow_full_width_p): New defun.
27128 (syms_of_window): Defsubr it.
27129
27130 * window.h: Add EXFUN for Fwindow_full_width_p.
27131
271322007-07-14 Jason Rumney <jasonr@gnu.org>
27133
27134 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27135
271362007-07-14 Richard Stallman <rms@gnu.org>
27137
27138 * eval.c (maybe_call_debugger): New function.
27139 (find_handler_clause): Use maybe_call_debugger.
27140 Call it when the handler says `debug'.
27141 Eliminate DEBUGGER_VALUE_PTR.
27142 (Fsignal): Eliminate debugger_value.
27143 (Qdebug): New variable.
27144 (syms_of_eval): Initialize it.
27145
271462007-07-14 Juanma Barranquero <lekktu@gmail.com>
27147
27148 * eval.c (Fprogn):
27149 * keyboard.c (Ftrack_mouse):
27150 * print.c (Fwith_output_to_temp_buffer):
27151 * window.c (Fsave_window_excursion): Doc fix.
27152
271532007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27154
27155 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27156
271572007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27158
27159 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27160 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27161 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27162 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27163 Remove unused encoding_carryover.
27164 * process.c: Adjust all functions accordingly.
27165
271662007-07-12 Richard Stallman <rms@gnu.org>
27167
27168 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27169
271702007-07-11 Jason Rumney <jasonr@gnu.org>
27171
27172 * makefile.w32-in (LIBS): Include OLE32.
27173
27174 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27175 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27176
271772007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27178
27179 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27180 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27181 from a Lisp_Object into a bare pointer.
27182 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27183 Adjust the code correspondingly.
27184
27185 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27186
27187 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27188 (term_show_mouse_face): Remove unused var `j'.
27189 (handle_one_term_event): Remove unused vars `i' and `j'.
27190 Don't cast return value of ttyname since it's not necessary.
27191
271922007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27193
27194 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27195 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27196
27197 * fns.c (map_char_table): Use an array of int for `indices' rather than
27198 an array of Lisp_Objects (which are only ever integers anyway).
27199 (Fmap_char_table): Update caller.
27200 * lisp.h: Update prototype.
27201 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27202 * fontset.c (Ffontset_info):
27203 * casetab.c (set_case_table): Update callers.
27204
27205 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27206
27207 * keymap.c (struct accessible_keymaps_data)
27208 (struct where_is_internal_data): New structures.
27209 (accessible_keymaps_1, where_is_internal_1): Use them to change
27210 interface to adhere to the one used by map_keymap.
27211 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27212 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27213
27214 * keymap.h (map_keymap_function_t): More informative prototype.
27215
272162007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27217
27218 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27219 (looking_at_1): Don't change search_regs and last_thing_searched
27220 if `inhibit-changing-match-data' is non-nil.
27221 (string_match_1, search_buffer, set_search_regs): Likewise.
27222 (syms_of_search): Add Lisp level definition for
27223 `inhibit-changing-match-data' and set it to nil.
27224 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27225 start and end of the match, instead of using values in search_regs.
27226
272272007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27228
27229 * minibuf.c (Fcompleting_read): New value `confirm-only'
27230 for `require-match'.
27231
272322007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27233
27234 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27235 part of the 2007-06-27 change to syms_of_fileio.
27236
272372007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27238
27239 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27240 Check WINDOWP before using XWINDOW. Consolidate return statements.
27241
272422007-06-27 Richard Stallman <rms@gnu.org>
27243
27244 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27245
272462007-06-27 Juanma Barranquero <lekktu@gmail.com>
27247
27248 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27249
272502007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27251
27252 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27253 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27254 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27255 (_free_internal, memalign): Use them.
27256 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27257 Initialize to PTHREAD_MUTEX_INITIALIZER.
27258 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27259 (morecore_nolock): Rename from morecore. All uses changed.
27260 Use only nolock versions of internal allocation functions.
27261 (_malloc_internal_nolock, _realloc_internal_nolock)
27262 (_free_internal_nolock): New functions created from
27263 _malloc_internal, _realloc_internal, and _free_internal.
27264 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27265 Copy hook value to automatic variable before its use.
27266 (memalign): Copy hook value to automatic variable before its use.
27267
272682007-06-26 Kenichi Handa <handa@m17n.org>
27269
27270 * coding.c (Ffind_operation_coding_system): Docstring improved.
27271 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27272
272732007-06-25 David Kastrup <dak@gnu.org>
27274
27275 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27276 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27277 cater for additional parameter.
27278
27279 * keymap.h: Adjust number of parameters to `current-active-maps'.
27280
27281 * doc.c (Fsubstitute_command_keys): Adjust call of
27282 `current-active-maps'.
27283
272842007-06-25 David Kastrup <dak@gnu.org>
27285
27286 * callint.c (Fcall_interactively): Make the parsing of interactive
27287 specs somewhat more readable.
27288
272892007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27290
27291 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27292 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27293 if extended background has already been filled.
27294
272952007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27296
27297 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27298 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27299
27300 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27301 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27302 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27303 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27304 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27305 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27306 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27307 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27308 Run timers during dialog popup.
27309 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27310
273112007-06-21 Jason Rumney <jasonr@gnu.org>
27312
27313 * image.c (convert_mono_to_color_image): Swap fore and background.
27314
273152007-06-20 Jason Rumney <jasonr@gnu.org>
27316
27317 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27318 (w32_free_bdf_font): Unmap memory not handle.
27319
273202007-06-20 Sam Steingold <sds@gnu.org>
27321
27322 * gmalloc.c (__morecore): Fix the declaration to comply with the
27323 definition.
27324
273252007-06-20 Juanma Barranquero <lekktu@gmail.com>
27326
27327 * w32term.c (w32_delete_display): Remove leftover declaration.
27328 (w32_define_cursor, w32_initialize): Make static.
27329
27330 * w32.c (_wsa_errlist): Fix typo in error message.
27331 (init_environment): Ignore any environment variable from the
27332 registry having a null value.
27333
273342007-06-20 Glenn Morris <rgm@gnu.org>
27335
27336 * Makefile.in (LIBGIF): Default to -lgif.
27337
273382007-06-17 Jason Rumney <jasonr@gnu.org>
27339
27340 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27341 unicode strings.
27342
273432007-06-16 Juanma Barranquero <lekktu@gmail.com>
27344
27345 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27346 Fix typo in docstring.
27347
273482007-06-16 Eli Zaretskii <eliz@gnu.org>
27349
27350 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27351 and their keybindings.
27352
273532007-06-15 Chong Yidong <cyd@stupidchicken.com>
27354
27355 * composite.c (update_compositions): Fix last fix.
27356
273572007-06-14 Jason Rumney <jasonr@gnu.org>
27358
27359 * w32.c (get_process_times_fn): New function pointer.
27360 (globals_of_w32): Intialize it if present in kernel32.dll.
27361 (w32_get_internal_run_time): New function.
27362
27363 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27364
273652007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27366
27367 * composite.c (update_compositions): Check the validness of
27368 compositions.
27369
273702007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27371
27372 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27373 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27374
27375 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27376 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27377
27378 * macgui.h (USE_MAC_TOOLBAR): New define.
27379
27380 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27381 Return immediately unless popup is activated.
27382
27383 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27384 background to scroll bar gap.
27385 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27386 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27387 scroll bars on frame edge. Check fringe background extension.
27388 Don't clear extended fringe background area.
27389 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27390 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27391 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27392 [USE_MAC_TOOLBAR]: New macros.
27393 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27394 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27395 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27396 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27397 [USE_MAC_TOOLBAR]: New functions.
27398 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27399 manually if previous repositioning has failed.
27400 (mac_handle_keyboard_event): Use precomputed event kind.
27401 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27402 as tool bar item click. Handle mouse movement over tool bar items.
27403
27404 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27405 toolbar_win_gravity.
27406 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27407 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27408 Add externs.
27409
27410 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27411 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27412
274132007-06-14 Chong Yidong <cyd@stupidchicken.com>
27414
27415 * image.c (search_image_cache): Remove unused variable.
27416
274172007-06-13 Chong Yidong <cyd@stupidchicken.com>
27418
27419 * xfns.c, xmenu.c: Link to xaw3d if available.
27420
274212007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27422
27423 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27424 frame_foreground and frame_background.
27425
27426 * image.c (lookup_image): Save frame foreground and background colors.
27427 (search_image_cache): Check if saved and current frame colors match.
27428
274292007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27430
27431 * regex.c (regex_compile): Remove the `regnum' counter.
27432 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27433
274342007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27435
27436 * term.c: Include intervals.h to declare Fget_text_property.
27437
274382007-06-10 Jason Rumney <jasonr@gnu.org>
27439
27440 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27441
274422007-06-08 Juanma Barranquero <lekktu@gmail.com>
27443
27444 * callint.c (Fcall_interactively):
27445 * editfns.c (Fdelete_and_extract_region):
27446 * fileio.c (Fread_file_name):
27447 * fns.c (Fmapconcat):
27448 * keyboard.c (cmd_error_internal):
27449 * keymap.c (Fkey_description):
27450 * lread.c (openp):
27451 * minibuf.c (read_minibuf):
27452 * search.c (wordify):
27453 * sunfns.c (sel_read):
27454 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27455 * xfns.c (x_default_scroll_bar_color_parameter):
27456 * xmenu.c (menu_help_callback):
27457 * xselect.c (Fx_get_atom_name):
27458 * xterm.c (x_term_init): Use empty_unibyte_string.
27459
274602007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27461
27462 * alloc.c (init_strings): Initialize canonical empty strings.
27463 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27464 canonical empty string when the requested size is 0.
27465
27466 * emacs.c (empty_unibyte_string): Rename from empty_string.
27467 (empty_multibyte_string): New canonical empty string.
27468 (syms_of_emacs): Don't initialize empty_string.
27469
27470 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27471 string, if appropriate.
27472 (empty_unibyte_string, empty_multibyte_string): New externs.
27473 (empty_string): Remove extern.
27474
27475 * lread.c (syms_of_lread): Use empty_unibyte_string.
27476
274772007-06-07 Jason Rumney <jasonr@gnu.org>
27478
27479 * s/ms-w32.h: Don't define HAVE_TZNAME.
27480
27481 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27482
274832007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27484
27485 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27486
27487 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27488 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27489
27490 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27491 Don't call next handler.
27492 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27493 Remove argument. Install handler to application.
27494 (set_frame_menubar): Don't change deep_p.
27495 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27496 FRAME_OUTER_TO_INNER_DIFF_Y.
27497 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27498 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27499 [HAVE_DIALOGS]: New macros.
27500 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27501 Use them.
27502 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27503
27504 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27505 init_service_handler. All callers changed. Return OSStatus value.
27506
27507 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27508 All callers changed so as not to call SetPortWindowPort.
27509 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27510 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27511 mac_draw_string_common.
27512 (mac_draw_image_string_qd): Likewise.
27513 (mac_draw_string_common): Use them. Add INLINE.
27514 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27515 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27516 GetGlobalMouse.
27517 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27518 and FRAME_OUTER_TO_INNER_DIFF_Y.
27519 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27520 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27521 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27522 repositioning window to mac_handle_window_event.
27523 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27524 saving window location to mac_handle_window_event
27525 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27526 (install_menu_target_item_handler): Remove argument in extern.
27527 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27528 Also accept command events.
27529 (do_keystroke): New function created from XTread_socket.
27530 (init_command_handler): Remove functions.
27531 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27532 and save window location by kEventWindowShowing and kEventWindowHiding
27533 handlers here. Don't call next handler for window state change and
27534 focus events.
27535 (mac_handle_application_event, mac_handle_keyboard_event)
27536 [TARGET_API_MAC_CARBON]: New functions.
27537 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27538 kEventWindowShowing and kEventWindowHiding events. Move installation
27539 of mouse, font, text input and menu target item handlers to
27540 install_application_handler.
27541 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27542 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27543 New function.
27544 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27545 Register it.
27546 (XTread_socket) [TARGET_API_MAC_CARBON]:
27547 Consolidate SendEventToEventTarget calls.
27548 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27549 Move application activation handler to mac_handle_application_event.
27550 Move keyboard handler to mac_handle_keyboard_event.
27551 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27552 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27553 init_command_handler. Call install_application_handler.
27554
27555 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27556 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27557
275582007-06-07 Glenn Morris <rgm@gnu.org>
27559
27560 * emacs.c (main): Use `emacs-copyright' in --version output.
27561
275622007-06-06 Chong Yidong <cyd@stupidchicken.com>
27563
27564 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27565
275662007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27567
27568 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27569
27570 * macgui.h: Replace WindowPtr with WindowRef.
27571
27572 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27573 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27574 Replace ControlHandle with ControlRef.
27575 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27576
27577 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27578 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27579 Replace ControlHandle with ControlRef.
27580 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27581 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27582
27583 * macterm.h (struct scroll_bar): Rename member control_handle_low
27584 and control_handle_high to control_ref_low and control_ref_high.
27585 All uses changed.
27586 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27587 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27588 respectively. All uses changed.
27589 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27590 (install_window_handler, remove_window_handler): Replace WindowPtr
27591 with WindowRef in externs.
27592
275932007-06-05 Juanma Barranquero <lekktu@gmail.com>
27594
27595 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27596
275972007-06-03 Nick Roberts <nickrob@snap.net.nz>
27598
27599 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27600
27601 * frame.c (Fmouse_position, Fmouse_pixel_position):
27602 Condition on HAVE_GPM too.
27603
27604 * term.c (term_mouse_highlight): Remove unused variables.
27605 (Fterm_open_connection): Set gpm_zerobased to 1.
27606 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27607 Use zero based co-ordinates.
27608 (handle_one_term_event): Report a drag as mouse movement too.
27609
27610 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27611
276122007-06-03 Chong Yidong <cyd@stupidchicken.com>
27613
27614 * image.c (search_image_cache): New function. Require background
27615 color match if background color is unspecified in the image spec.
27616 (uncache_image, lookup_image): Use it.
27617
276182007-06-01 Juanma Barranquero <lekktu@gmail.com>
27619
27620 * window.c (Fshrink_window): Reflow docstring.
27621
276222007-06-02 Chong Yidong <cyd@stupidchicken.com>
27623
27624 * Version 22.1 released.
27625
276262007-06-01 Richard Stallman <rms@gnu.org>
27627
27628 * xfns.c (x_encode_text): Add GCPRO.
27629
276302007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27631
27632 * xfns.c (x_set_name_internal): Save encoded name before
27633 x_encode_text in case string data is relocated.
27634
276352007-05-31 Richard Stallman <rms@gnu.org>
27636
27637 * buffer.c (syms_of_buffer): Doc fix.
27638
276392007-05-30 Nick Roberts <nickrob@snap.net.nz>
27640
27641 * sysdep.c (init_sys_modes): Add rather than replace with
27642 O_NONBLOCK.
27643
27644 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27645 term_mouse_moveto.
27646
27647 * termhooks.h (term_mouse_moveto): New extern.
27648
27649 * term.c (mouse_face_window): Rename...
27650 (Qmouse_face_window): ...to this.
27651 (term_show_mouse_face, term_clear_mouse_face)
27652 (term_mouse_highlight): Use Qmouse_face_window.
27653 (term_mouse_moveto): New function.
27654 (term_mouse_position): Make it work.
27655 (syms_of_term): Uncomment assignment to mouse_position_hook.
27656 Staticpro Qmouse_face_window.
27657
276582007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27659
27660 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27661 around current_column call.
27662
276632007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27664
27665 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27666 * xdisp.c (next_element_from_buffer):
27667 * window.c (delete_window):
27668 * term.c (term_mouse_highlight):
27669 * msdos.c (getdefdir):
27670 * macterm.c (mac_create_bitmap_from_bitmap_data)
27671 (init_font_name_table):
27672 * fns.c (Fsxhash):
27673 * data.c (Fmake_local_variable):
27674 * ccl.c (ccl_driver): Likewise.
27675
276762007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27677
27678 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27679 Call mac_wakeup_from_rne on window size change.
27680
276812007-05-25 Chong Yidong <cyd@stupidchicken.com>
27682
27683 * image.c (uncache_image): Fix typo.
27684
276852007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27686
27687 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27688
276892007-05-22 Richard Stallman <rms@gnu.org>
27690
27691 * xterm.c (x_connection_closed): Remove NO_RETURN.
27692
276932007-05-22 Martin Rudalics <rudalics@gmx.at>
27694
27695 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27696
276972007-05-21 Chong Yidong <cyd@stupidchicken.com>
27698
27699 * image.c (uncache_image): New function.
27700 (Fimage_refresh): New function.
27701
277022007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27703
27704 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27705
277062007-05-20 Nick Roberts <nickrob@snap.net.nz>
27707
27708 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27709 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27710
277112007-05-20 Nick Roberts <nickrob@snap.net.nz>
27712
27713 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27714 conditional on [HAVE_GPM_H].
27715
277162007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27717
27718 * syntax.c (skip_chars): Update syntax-table only after we checked that
27719 the new location is valid.
27720
277212007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27722
27723 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27724 mac_get_window_bounds.
27725
277262007-05-20 Nick Roberts <nickrob@snap.net.nz>
27727
27728 * Makefile.in (LIBGPM): Allow it to be set from configure.
27729 If set then link Emacs with it.
27730
27731 * config.in: Regenerate.
27732
27733 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27734 New externs.
27735
27736 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27737 Include gpm.h.
27738 (handle_one_term_event, term_gpm): New externs.
27739
27740 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27741 and allow it to be interrupted by SIGIO.
27742
27743 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27744 (wait_reading_process_output): Wait on gpm_fd too.
27745 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27746 (add_gpm_wait_descriptor_called_flag): New variable.
27747 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27748
27749 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27750 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27751 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27752 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27753 (make_lispy_event): Add case GPM_CLICK_EVENT.
27754 (read_avail_input): Handle mouse input.
27755
27756 * term.c (write_glyphs_with_face): New function.
27757 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27758 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27759 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27760 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27761 (last_mouse_x, last_mouse_y): New variables.
27762 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27763 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27764 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27765 (Fterm_close_connection): New functions.
27766 (term_init): Initialise mouse_face_window.
27767
277682007-05-19 Chong Yidong <cyd@stupidchicken.com>
27769
27770 * xdisp.c (redisplay_window): If first window line is a
27771 continuation line, recompute the new window start instead of
27772 recentering.
27773
277742007-05-18 Glenn Morris <rgm@gnu.org>
27775
27776 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27777 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27778
277792007-05-17 Glenn Morris <rgm@gnu.org>
27780
27781 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27782
277832007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27784
27785 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27786 dead key repeat and up events.
27787
277882007-05-14 Chong Yidong <cyd@stupidchicken.com>
27789
27790 * image.c (pbm_load): Check image size for monochrome pbm.
27791
277922007-05-13 Chong Yidong <cyd@stupidchicken.com>
27793
27794 * xterm.c (XTread_socket): Revert last change.
27795
277962007-05-12 Chong Yidong <cyd@stupidchicken.com>
27797
27798 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27799
27800 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27801
278022007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27803
27804 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27805 mixup (YAILOM).
27806
278072007-05-07 Andreas Schwab <schwab@suse.de>
27808
27809 * keymap.c (Flookup_key): Fix typo in last change.
27810
278112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27812
27813 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27814 mapping for unibyte strings.
27815
278162007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27817
27818 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27819 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27820
278212007-04-29 Richard Stallman <rms@gnu.org>
27822
27823 * insdel.c (replace_range): For undo, record insertion first.
27824
278252007-04-29 Andreas Schwab <schwab@suse.de>
27826
27827 * lisp.h (VECSIZE): Use OFFSETOF.
27828
278292007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27830
27831 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27832 disabled lines.
27833
278342007-04-28 Richard Stallman <rms@gnu.org>
27835
27836 * lread.c (read_escape): In a string, \s is always space.
27837
278382007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27839
27840 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27841
27842 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27843 submenu for menu bar items.
27844
27845See ChangeLog.10 for earlier changes.
27846
27847;; Local Variables:
27848;; coding: utf-8
27849;; add-log-time-zone-rule: t
aac0c6e3
MR
27850;; End:
27851
e3eb1dae 27852 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27853
27854 This file is part of GNU Emacs.
27855
27856 GNU Emacs is free software: you can redistribute it and/or modify
27857 it under the terms of the GNU General Public License as published by
27858 the Free Software Foundation, either version 3 of the License, or
27859 (at your option) any later version.
27860
27861 GNU Emacs is distributed in the hope that it will be useful,
27862 but WITHOUT ANY WARRANTY; without even the implied warranty of
27863 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27864 GNU General Public License for more details.
27865
27866 You should have received a copy of the GNU General Public License
27867 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27868
27869;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40