Rework tags targets in Windows makefiles to protect against old/stupid makes.
[bpt/emacs.git] / src / ChangeLog
1 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
2
3 * makefile.w32-in (tags): Rename target to full-tags.
4
5 2010-10-02 Eli Zaretskii <eliz@gnu.org>
6
7 * emacs.c (main): Remove !WINDOWSNT conditional.
8 (Fkill_emacs): Don't mention exemption on MS-Windows.
9
10 2010-10-02 Glenn Morris <rgm@gnu.org>
11
12 * character.c (Fchar_bytes): Remove obsolete function.
13 (syms_of_character): Remove Schar_bytes.
14
15 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
16 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
17 in batch-mode.
18 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
19 (kill-emacs-hook): Doc fix.
20
21 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
22
23 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
24 (parse_region): Reworked to take regions instead of strings, and
25 renamed to reflect that these are the libxml functions.
26
27 2010-10-01 Eli Zaretskii <eliz@gnu.org>
28
29 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
30 screen dimensions in tty->Wcm.
31
32 * xdisp.c (set_cursor_from_row): When the row is truncated and
33 point is outside the range of displayed characters, position the
34 cursor inside the scroll margin. (Bug#6349)
35
36 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
37
38 Do not include stdlib.h and string.h, config.h does it.
39 * xfont.c:
40 * w32term.c:
41 * w32reg.c:
42 * w32inevt.c:
43 * w32heap.c:
44 * w32console.c:
45 * w16select.c:
46 * unexsol.c:
47 * term.c:
48 * sound.c:
49 * scroll.c (m):
50 * gtkutil.c:
51 * font.c:
52 * filelock.c:
53 * fileio.c:
54 * dosfns.c:
55 * dbusbind.c:
56 * bidi.c:
57 * callproc.c:
58 * process.c:
59 * msdos.c:
60 * charset.c: Do not include stdlib.h and string.h, config.h does it.
61
62 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
63
64 * process.c: Move #include <pty.h> earlier.
65 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
66 (pty_name): Move definition later.
67
68 * nsselect.m (syms_of_nsselect):
69 * nsmenu.m (syms_of_nsmenu):
70 * nsfns.m (syms_of_nsfns):
71 * msdos.c (syms_of_msdos):
72
73 * image.c (syms_of_image):
74 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
75
76 * point.h: Remove, unused.
77
78 2010-10-01 Eli Zaretskii <eliz@gnu.org>
79
80 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
81 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
82 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
83
84 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
85
86 * xml.c (parse_string): Use const.
87
88 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
89
90 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
91 only override Vprint_level if it isn't already bound, and increase
92 the level to 8 to produce more useful backtraces for bug reports.
93
94 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
95
96 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
97
98 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
99
100 * w32console.c (vga_stdcolor_name): Remove unused function;
101 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
102
103 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
104
105 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
106 (Fgnutls_boot): Start the handshake.
107 (emacs_gnutls_read): Perform the handshake from the reader loop.
108 (Fgnutls_boot): Remove some debugging messages.
109 Change indentation throughout to use the Emacs style.
110 (emacs_gnutls_handshake): Cast the fds to something that's
111 possibly the expected length.
112 (emacs_gnutls_write): Return -1 if we try to write before handshake.
113
114 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
115
116 * process.c (make_process): Set the gnutls_p field to zero by
117 default.
118 (read_process_output): Always call the gnutls_read function if the
119 stream is a gnutls stream.
120 (send_process): Ditto for writes.
121
122 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
123 or write anything until the state is GNUTLS_STAGE_READY.
124 (Fgnutls_boot): Mark the stream as being a gnutls stream.
125
126 2010-09-29 Eli Zaretskii <eliz@gnu.org>
127
128 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
129 NEUTRAL_DIR.
130 (handle_invisible_prop, iterate_out_of_display_property)
131 (next_element_from_buffer): If bidi_it.first_elt is set, call
132 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
133 (Bug#7128)
134
135 * print.c (print_object): Fix format string and argument types for
136 printing a Lisp_Misc_Marker.
137
138 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
139 (load_overlay_strings, get_overlay_strings_1)
140 (get_overlay_strings, forward_to_next_line_start)
141 (back_to_previous_visible_line_start, reseat, reseat_to_string)
142 (get_next_display_element, next_element_from_string)
143 (next_element_from_c_string, next_element_from_buffer)
144 (move_it_vertically_backward, move_it_by_lines, add_to_log)
145 (message_dolog, message_log_check_duplicate, message2_nolog)
146 (message3, message3_nolog, vmessage, set_message, set_message_1)
147 (hscroll_window_tree, text_outside_line_unchanged_p)
148 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
149 (find_last_unchanged_at_beg_row)
150 (find_first_unchanged_at_end_row, row_containing_pos)
151 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
152 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
153 EMACS_INT for buffer and string positions.
154
155 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
156 (row_containing_pos): Adjust prototype.
157
158 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
159 (message2_nolog, set_message): Adjust prototypes.
160
161 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
162
163 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
164 (Fgnutls_boot): Use SDATA.
165 (Fgnutls_handshake): Remove unused var `max_log_level'.
166
167 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
168
169 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
170 (Bug#7113)
171
172 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
173
174 * xgselect.c (xg_select): Clear file descriptors not set from
175 rfds and wfds.
176
177 * process.c (wait_reading_process_output): Add missing FD_CLR
178 for write_mask (must mirror connect_wait_mask).
179
180 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
181
182 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
183 prefix.
184 (Fgnutls_boot): Use changed process members. Use log level with a
185 function parameter to set it. Bring back Emacs-level debugging
186 messages at log level 1 and 2.
187
188 * process.c (make_process): Initialize gnutls_log_level.
189
190 * process.h: Add gnutls_log_level and rename x509_cred and
191 anon_cred to have the gnutls_ prefix for consistency.
192
193 * gnutls.h (GNUTLS_LOG): Add convenience macro.
194
195 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
196
197 * w32.c (g_b_init_get_sid_identifier_authority)
198 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
199 Remove, not used.
200 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
201 (init_winsock): Remove useless assignment.
202 (open_process_token, get_token_information, lookup_account_sid)
203 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
204 (get_security_descriptor_owner, get_security_descriptor_group)
205 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
206 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
207 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
208 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
209 (unc_volume_file_attributes, convert_from_time_t)
210 (create_toolhelp32_snapshot, process32_first, process32_next)
211 (open_thread_token, impersonate_self, revert_to_self)
212 (get_process_memory_info, get_process_working_set_size)
213 (global_memory_status, global_memory_status_ex, socket_to_fd)
214 (shutdown_handler): Make static.
215
216 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
217
218 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
219 (xd_pending_messages): Functions removed.
220 (xd_read_queued_messages): Add parameters fd, *data, for_read in
221 order to be compatible with add_read_fd. Determine bus from data,
222 and call xd_read_message just for this bus.
223 (xd_add_watch): Use xd_read_queued_messages as callback function.
224 Add data.
225
226 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
227
228 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
229
230 * gnutls.c (gnutls_log_function): Added more debugging.
231 (emacs_gnutls_read): Don't infloop while reading.
232
233 2010-09-27 Kenichi Handa <handa@m17n.org>
234
235 These changes are to remove restriction on the number of glyphs in
236 one composition.
237
238 * dispextern.h (struct glyph): Change the member "slice" to union.
239 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
240 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
241
242 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
243 instead of glyph->slice.
244 (marginal_area_string): Likewise.
245
246 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
247 glyph->u.cmp.
248 (append_composite_glyph): Likewise.
249
250 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
251 glyph->u.cmp.
252 (fill_gstring_glyph_string, x_get_glyph_overhangs)
253 (append_composite_glyph): Likewise.
254 (fill_image_glyph_string): Use glyph->slice.img instead of
255 glyph->slice.
256 (append_glyph, produce_image_glyph, append_stretch_glyph)
257 (note_mouse_highlight): Likewise.
258
259 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
260
261 * process.c (add_keyboard_wait_descriptor)
262 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
263 (wait_reading_process_output): Don't pass write_mask to select
264 if SELECT_CANT_DO_WRITE_MASK is defined.
265 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
266
267 * process.h (add_read_fd, delete_read_fd, add_write_fd)
268 (delete_write_fd): Declare.
269
270 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
271 (write_mask): New variable.
272 (max_input_desc): Renamed from max_keyboard_desc.
273 (fd_callback_info): New variable.
274 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
275 New functions.
276 (Fmake_network_process): FD_SET write_mask.
277 (deactivate_process): FD_CLR write_mask.
278 (wait_reading_process_output): Connecting renamed to Writeok.
279 check_connect removed. check_write is new. Remove references to gpm.
280 Use Writeok/check_write unconditionally (i.e. no #ifdef
281 NON_BLOCKING_CONNECT) instead of Connecting.
282 Loop over file descriptors and call callbacks in fd_callback_info
283 if file descriptor is ready for I/O.
284 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
285 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
286 (keyboard_bit_set): Use max_input_desc.
287 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
288 Remove #ifdef subprocesses. Use max_input_desc.
289 (init_process): Initialize write_mask and fd_callback_info.
290
291 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
292
293 * dbusbind.c: Include process.h.
294 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
295 (xd_read_message_1): New functions.
296 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
297 Handle watch for both read and write.
298 (Fdbus_init_bus): Also register xd_toggle_watch.
299 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
300 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
301 to dbus_connection_flush.
302 (xd_read_message): Move most of the code to xd_read_message_1.
303 Call xd_read_message_1 until status is COMPLETE.
304
305 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
306
307 * term.c: Do not include sys/ioctl.h, not needed.
308 (init_tty): Reorder code to reduce the number of #ifdefs.
309 No code changes.
310
311 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
312
313 * process.h: Set up GnuTLS support.
314
315 * process.c (make_process, Fstart_process)
316 (read_process_output, send_process): Set up GnuTLS support for
317 process input/output file descriptors.
318
319 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
320
321 * gnutls.c: The source code for GnuTLS support in Emacs.
322
323 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
324
325 * config.in: Set up GnuTLS support.
326
327 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
328 (obj, LIBES): Set up GnuTLS support.
329
330 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
331
332 * w32.c (get_emacs_configuration_options): Fix previous change.
333
334 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
335
336 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
337 alive before using it (Bug#6977).
338
339 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
340
341 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
342
343 * dispextern.h: EMACS_INT/int fixup.
344
345 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
346 fixup.
347
348 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
349
350 2010-09-25 Eli Zaretskii <eliz@gnu.org>
351
352 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
353 (Fselect_window, window_scroll_pixel_based)
354 (window_scroll_line_based, Frecenter, Fset_window_configuration):
355 Use EMACS_INT for buffer positions.
356
357 * textprop.c (validate_interval_range, interval_of)
358 (property_change_between_p, Fadd_text_properties)
359 (set_text_properties_1, Fremove_text_properties)
360 (Fremove_list_of_text_properties, Ftext_property_any)
361 (Ftext_property_not_all, copy_text_properties)
362 (text_property_list, extend_property_ranges)
363 (verify_interval_modification): Use EMACS_INT for buffer
364 positions.
365
366 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
367 for buffer positions.
368
369 * process.c (read_process_output, send_process)
370 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
371 and string positions and size.
372
373 * print.c (print_object, print_string, strout): Use EMACS_INT for
374 string indices.
375
376 * minibuf.c (string_to_object): Use EMACS_INT for string position
377 and size.
378
379 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
380
381 * lread.c <read_from_string_index, read_from_string_index_byte>
382 <read_from_string_limit, readchar_count>: Define EMACS_INT.
383 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
384 buffer positions and string length.
385
386 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
387 EMACS_INT.
388 (echo_truncate, adjust_point_for_property, read_char)
389 (gen_help_event, make_lispy_event, modify_event_symbol)
390 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
391 for buffer positions and string length.
392
393 * keyboard.h (gen_help_event): Adjust prototype.
394
395 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
396
397 * commands.h <last_point_position>: Declare EMACS_INT.
398
399 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
400 (truncate_echo_area): Accept EMACS_INT argument.
401
402 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
403
404 * lisp.h (truncate_echo_area): Adjust prototype.
405
406 * composite.c (composition_adjust_point): Return EMACS_INT.
407
408 * composite.h (composition_adjust_point): Adjust prototype.
409
410 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
411
412 * process.c (Fmake_network_process): When arg :host is 'local,
413 use address 127.0.0.1, not name "localhost". (Bug#6781)
414
415 2010-09-24 Eli Zaretskii <eliz@gnu.org>
416
417 * indent.c (Fcurrent_indentation, indented_beyond_p)
418 (compute_motion): Use EMACS_INT for buffer position variables.
419
420 * lisp.h (indented_beyond_p): Adjust prototype.
421
422 * buffer.c (overlay_strings): Return EMACS_INT.
423
424 * buffer.h (overlay_strings): Adjust prototype.
425
426 * region-cache.c (pp_cache): Adjust format to arguments.
427
428 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
429 (call_debugger): Use EMACS_INT for specpdl_size related variables.
430 (verror): Use EMACS_INT for size of allocated buffer.
431
432 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
433 positions.
434
435 * xdisp.c (redisplay_internal, try_window_id)
436 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
437 EMACS_INT for buffer positions.
438
439 * dispextern.h (set_cursor_from_row): Adjust prototype.
440
441 * dispnew.c (increment_matrix_positions)
442 (increment_row_positions, copy_glyph_row_contents)
443 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
444 positions.
445
446 * dispextern.h (mode_line_string, marginal_area_string)
447 (increment_matrix_positions, increment_row_positions): Adjust
448 prototypes.
449
450 * data.c (Faref, Faset): Use EMACS_INT for string length and
451 positions.
452
453 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
454 characters to insert.
455
456 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
457 position and size.
458
459 * syntax.c (scan_words, update_syntax_table)
460 (prev_char_comend_first, back_comment, skip_chars)
461 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
462 EMACS_INT for buffer and string positions.
463
464 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
465
466 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
467 positions.
468
469 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
470
471 * scroll.c (calculate_scrolling, line_ins_del)
472 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
473 conversion.
474
475 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
476 (region_cache_backward, region_cache_forward)
477 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
478 conversion.
479
480 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
481
482 * eval.c (verror): Fix EMACS_INT/int conversion.
483
484 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
485 (print_preprocess, print_check_string_charset_prop)
486 (print_object): Fix EMACS_INT/int conversion.
487
488 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
489
490 2010-09-24 Eli Zaretskii <eliz@gnu.org>
491
492 * callproc.c (Fcall_process): Use EMACS_INT for count of
493 characters read from the subprocess.
494
495 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
496 positions.
497 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
498 positions.
499
500 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
501 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
502 length.
503 (advance_to_char_boundary, Fset_buffer_multibyte)
504 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
505 (overlay_touches_p, record_overlay_string, overlay_strings)
506 (recenter_overlay_lists, fix_start_end_in_overlays)
507 (modify_overlay, Fmove_overlay, report_overlay_modification)
508 (evaporate_overlays): Use EMACS_INT for buffer positions.
509
510 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
511 prototypes.
512
513 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
514 positions.
515
516 * fns.c (Fcompare_strings, Fstring_lessp, concat)
517 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
518 (Fsubstring_no_properties, substring_both, Ffillarray)
519 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
520 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
521 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
522 (Fmd5): Use EMACS_INT for buffer and string positions and length
523 variables and arguments.
524
525 * lisp.h (substring_both): Adjust prototype.
526
527 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
528
529 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
530 * w32fns.c (clipboard_sequence_fn): Don't declare.
531 (globals_of_w32fns): Don't initialize it.
532
533 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
534
535 * syntax.c (back_comment): Detect the case where a 1-char comment
536 starter is also the 2nd char of a 2-char comment ender.
537
538 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
539
540 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
541
542 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
543
544 * eval.c (verror): EMACS_INT/int cleanup.
545
546 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
547 unwind_protect more than 2GB worth of functions.
548
549 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
550
551 * lisp.h: Have oblookup take EMACS_INT to allow interning big
552 string and avoid compiler warnings.
553 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
554 all users.
555
556 * lread.c (oblookup): EMACS_INT/int cleanup.
557
558 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
559
560 2010-09-23 Eli Zaretskii <eliz@gnu.org>
561
562 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
563
564 * lisp.h (clip_to_bounds): Adjust prototype.
565
566 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
567
568 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
569
570 * lisp.h: doprnt.c EMACS_INT/int cleanup.
571
572 * doprnt.c (doprnt): EMACS_INT/int cleanup.
573
574 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
575 cleanup.
576
577 * lisp.h: Change the definition of all marker.c functions that
578 take and return buffer stuff to be EMACS_INT instead of int.
579
580 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
581 (buf_charpos_to_bytepos, bytepos_to_charpos)
582 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
583 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
584 for all buffer positions.
585
586 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
587
588 * intervals.c (traverse_intervals, rotate_right, rotate_left)
589 (split_interval_right, find_interval, next_interval)
590 (delete_node, delete_interval, interval_deletion_adjustment)
591 (adjust_intervals_for_deletion, merge_interval_right)
592 (merge_interval_left, graft_intervals_into_buffer)
593 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
594
595 * intervals.h (traverse_intervals): Update prototype.
596
597 2010-09-23 Eli Zaretskii <eliz@gnu.org>
598
599 * indent.c (compute_motion): Use EMACS_INT for arguments to
600 region_cache_forward.
601
602 * region-cache.c (struct boundary, struct region_cache): Use
603 EMACS_INT for positions.
604 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
605 (delete_cache_boundaries, set_cache_region)
606 (invalidate_region_cache, know_region_cache)
607 (region_cache_forward, region_cache_backward, pp_cache): Use
608 EMACS_INT for buffer positions.
609
610 * region-cache.h (know_region_cache, invalidate_region_cache)
611 (region_cache_forward, region_cache_backward): Adjust prototypes.
612
613 * search.c (string_match_1, fast_c_string_match_ignore_case)
614 (looking_at_1, scan_buffer, scan_newline)
615 (find_next_newline_no_quit, find_before_next_newline)
616 (search_command, trivial_regexp_p, search_buffer, simple_search)
617 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
618 and string positions and length.
619
620 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
621 (find_before_next_newline): Adjust prototypes.
622
623 * editfns.c (transpose_markers, update_buffer_properties)
624 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
625 (get_pos_property, Fconstrain_to_field)
626 (Fline_beginning_position, Fline_end_position, Fprevious_char)
627 (Fchar_after, Fchar_before, Finsert_char)
628 (Finsert_buffer_substring, Fcompare_buffer_substrings)
629 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
630 EMACS_INT for buffer and string position variables.
631 (Finsert_char): Protect against too large insertions.
632
633 * lisp.h (clip_to_bounds): Adjust prototype.
634
635 * intervals.c (traverse_intervals, rotate_right, rotate_left)
636 (balance_an_interval, split_interval_right, split_interval_left)
637 (find_interval, next_interval, update_interval)
638 (adjust_intervals_for_insertion, delete_node, delete_interval)
639 (interval_deletion_adjustment, adjust_intervals_for_deletion)
640 (offset_intervals, merge_interval_right, merge_interval_left)
641 (graft_intervals_into_buffer, adjust_for_invis_intang)
642 (move_if_not_intangible, get_local_map, copy_intervals)
643 (copy_intervals_to_string, compare_string_intervals)
644 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
645 and for interval tree size.
646
647 * intervals.h (traverse_intervals, split_interval_right)
648 (split_interval_left, find_interval, offset_intervals)
649 (graft_intervals_into_buffer, copy_intervals)
650 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
651 (update_interval): Adjust prototypes.
652
653 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
654 Use EMACS_INT for buffer position variables and arguments.
655
656 * composite.c (get_composition_id, find_composition)
657 (run_composition_function, compose_text)
658 (composition_gstring_width, autocmp_chars)
659 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
660 for buffer positions and string length variables and arguments.
661
662 * composite.h (get_composition_id, find_composition, compose_text)
663 (composition_gstring_width): Adjust prototypes.
664
665 * editfns.c (Fformat): Use EMACS_INT for string size variables.
666
667 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
668 EMACS_INT for string positions.
669
670 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
671 position arguments.
672
673 * intervals.h (get_property_and_range): Adjust prototype.
674
675 * character.c (parse_str_as_multibyte, str_as_multibyte)
676 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
677 (string_count_byte8, string_escape_byte8, c_string_width)
678 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
679 EMACS_INT for string length variables and arguments.
680
681 * character.h (parse_str_as_multibyte, str_as_multibyte)
682 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
683 (c_string_width, strwidth, lisp_string_width): Adjust
684 prototypes.
685
686 * font.c (font_intern_prop): Use EMACS_INT for string length
687 variables.
688
689 * font.c (font_intern_prop): Use EMACS_INT for string length
690 variables.
691
692 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
693 variables.
694
695 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
696 (Fmake_string): Protect against too large strings.
697 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
698 (live_misc_p): Use ptrdiff_t instead of int for pointer
699 differences.
700 (string_bytes, check_sblock, check_string_free_list)
701 (allocate_string_data, compact_small_strings, Fmake_string)
702 (Fmake_bool_vector, make_string, make_unibyte_string)
703 (make_multibyte_string, make_string_from_bytes)
704 (make_specified_string_string, Fmake_list, Fmake_vector): Use
705 EMACS_INT for string length variables and arguments.
706 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
707 (Fpurecopy): Use EMACS_INT for string size.
708 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
709 for vector size.
710
711 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
712 (make_string_from_bytes, make_specified_string_string)
713 (make_pure_string, string_bytes, check_point_in_composition):
714 Adjust prototypes.
715
716 2010-09-22 Eli Zaretskii <eliz@gnu.org>
717
718 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
719 (check_translation): Use EMACS_INT for buffer positions and
720 length.
721
722 * undo.c (record_marker_adjustment, record_delete)
723 (record_change, record_point, record_insert)
724 (record_property_change, Fprimitive_undo): Use EMACS_INT for
725 buffer positions.
726
727 * lisp.h (record_marker_adjustment, record_delete)
728 (record_change, record_point, record_insert)
729 (record_property_change, Fprimitive_undo): Adjust prototypes.
730
731 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
732 Eli Zaretskii <eliz@gnu.org>
733
734 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
735
736 2010-09-22 Eli Zaretskii <eliz@gnu.org>
737
738 * minibuf.c (Fminibuffer_contents)
739 (Fminibuffer_contents_no_properties)
740 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
741 positions.
742
743 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
744 mark.
745
746 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
747 (allocate_string_data): Accept EMACS_INT for string length.
748
749 * editfns.c (Ffield_string, Ffield_string_no_properties)
750 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
751 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
752 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
753 (Ffield_end): Use EMACS_INT for buffer positions.
754
755 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
756 point with mark.
757
758 * lisp.h (allocate_string_data, make_uninit_string)
759 (make_uninit_multibyte_string, make_buffer_string)
760 (make_buffer_string_both): Adjust prototypes.
761
762 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
763
764 * xml.c: Switch to GNU indentation.
765 (make_dom): Change parse tree format to match xml.el.
766 (Fxml_parse_html_string_internal): Rename from html-parse-string.
767 (Fxml_parse_string_internal): Rename from xml-parse-string.
768
769 2010-09-22 Kenichi Handa <handa@m17n.org>
770
771 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
772 only if we are not at a composition.
773 (set_iterator_to_next): Give it->end_charpos to
774 composition_compute_stop_pos.
775 (set_iterator_to_next, next_element_from_buffer): Likewise.
776
777 * dispnew.c (buffer_posn_from_coords): Fix position when the
778 current display element is a grapheme cluster in bidi-reordered
779 region.
780
781 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
782
783 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
784 the regions may overlap.
785
786 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
787
788 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
789
790 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
791
792 * emacs.c: Do not include sys/ioctl.h, not needed.
793
794 * doprnt.c: Do not include stdlib.h, config.h does it.
795 Move #include before macro definition.
796
797 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
798
799 * Makefile.in (temacs): Link using $(CC) not $(LD).
800 (LD_FIRSTFLAG): Define using autoconf.
801 (LD): Remove.
802
803 Remove HAVE_TERMIOS definitions.
804 * s/usg5-4-common.h (HAVE_TERMIOS):
805 * s/template.h (HAVE_TERMIOS):
806 * s/gnu-linux.h (HAVE_TERMIOS):
807 * s/darwin.h (HAVE_TERMIOS):
808 * s/cygwin.h (HAVE_TERMIOS):
809 * s/bsd-common.h (HAVE_TERMIOS):
810 * s/aix4-2.h (HAVE_TERMIOS):
811 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
812 defined on all non-MS platforms.
813 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
814
815 * xterm.c (xt_action_hook): Use const.
816
817 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
818
819 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
820 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
821 (gethostname) [!HAVE_SOCKETS]: Remove.
822 (SOCK_REPLACE_HANDLE): Remove macro.
823 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
824 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
825 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
826 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
827
828 2010-09-18 Eli Zaretskii <eliz@gnu.org>
829
830 * deps.mk (xml.o): Add dependencies.
831
832 * xdisp.c (Fcurrent_bidi_paragraph_direction):
833 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
834
835 * bidi.c (bidi_paragraph_init): Accept an additional argument
836 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
837 search back until a paragraph with a strong directional character
838 is found, and use that to determine paragraph's base direction.
839
840 * dispextern.h (bidi_paragraph_init): Update prototype.
841
842 2010-09-17 Eli Zaretskii <eliz@gnu.org>
843
844 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
845 of w32api >= 3.15. (Bug#6989)
846
847 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
848
849 * process.c (wait_reading_process_output): Don't message about
850 accept-process-output unless the time limit really is zero.
851
852 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
853
854 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
855 int/Lisp_Object mixup).
856
857 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
858
859 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
860 not HELP.
861
862 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
863
864 * frame.c (Ftool_bar_pixel_width): New function to expose tool
865 bar's pixel width to Lisp (Bug#7048).
866
867 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
868
869 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
870
871 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
872
873 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
874 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
875
876 2010-09-17 Kenichi Handa <handa@m17n.org>
877
878 * ftfont.c (ftfont_check_otf): Fix previous change.
879
880 2010-09-14 Kenichi Handa <handa@m17n.org>
881
882 * ftfont.c (ftfont_check_otf): Fix the case of checking just
883 existence of GSUB or GPOS.
884
885 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
886
887 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
888
889 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
890
891 * xml.c (parse_buffer): Renamed to parse_string(), since that's
892 what it does.
893 (parse_string): Return nil when the document can't be parsed.
894
895 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
896
897 * xterm.c (get_current_vm_state): New function.
898 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
899 want_fullscreen so set_wm_state calls are few (Bug#7013).
900 (x_handle_net_wm_state): Move code to get_current_vm_state and
901 call that function.
902
903 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
904
905 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
906
907 2010-09-14 Kenichi Handa <handa@m17n.org>
908
909 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
910 we may use designation or locking-shift.
911
912 2010-09-14 Kenichi Handa <handa@m17n.org>
913
914 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
915 sequence when the source is multibyte.
916
917 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
918
919 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
920 Don't make first argument optional. Doc fix.
921
922 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
923
924 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
925 parameters for the doc string.
926
927 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
928
929 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
930
931 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
934 (syms_of_fns): Don't defsubr Sy_or_n_p.
935 * lisp.h: Don't declare Fy_or_n_p.
936 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
937
938 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
939
940 * xml.c (Fxml_parse_buffer): New function to parse XML files.
941
942 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
943
944 * xml.c: New file.
945 (Fhtml_parse_buffer): New function to interface to the libxml2
946 html parsing function.
947
948 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
949
950 * biditype.h: Regenerate.
951
952 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
953
954 * nsimage.m (ns_load_image): Check argument types.
955
956 * image.c: Remove all uses of gcpro.
957 (xpm_load): Check all lisp types.
958 (pbm_load): Likewise.
959 (png_load): Likewise.
960 (jpeg_load): Likewise.
961 (tiff_load): Likewise.
962 (gif_load): Likewise.
963 (imagemagick_load_image): Likewise.
964 (imagemagick_load): Likewise.
965 (svg_load): Likewise.
966 (gs_load): Likewise.
967
968 2010-09-04 Eli Zaretskii <eliz@gnu.org>
969
970 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
971 try to reorder grapheme clusters, since LGSTRING should always
972 hold them in the logical order.
973 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
974 return glyph codes in the logical order.
975
976 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
977
978 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
979 (imagemagick_load_image): Fix type mismatch.
980 (Fimagemagick_types): Likewise. Doc fix.
981
982 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
983
984 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
985
986 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
987
988 * xselect.c: Remove declaration of cut-buffer objects and functions.
989 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
990 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
991 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
992 (Fx_rotate_cut_buffers_internal): Remove.
993 (syms_of_xselect): Remove defsubr of above.
994 Remove intern of QCUT_BUFFERn.
995
996 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
997
998 * cmds.c (Vblink_paren_function): Remove.
999 (internal_self_insert): Make it insert N chars at a time.
1000 Don't call blink-paren-function.
1001 (Fself_insert_command): Adjust accordingly.
1002 (syms_of_cmds): Don't declare blink-paren-function.
1003
1004 2010-08-31 Kenichi Handa <handa@m17n.org>
1005
1006 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1007 characters.
1008
1009 * term.c (encode_terminal_code): Fix the previous change.
1010 (produce_glyphs): Don't set it->char_to_display here.
1011 Don't handle unibyte-display-via-language-environment here.
1012 (produce_special_glyphs): Set temp_it.char_to_display before
1013 calling produce_glyphs.
1014
1015 * xdisp.c (get_next_display_element): Set it->char_to_display
1016 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1017 characters.
1018 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1019 calling PRODUCE_GLYPHS.
1020 (append_space_for_newline): Save and store it->char_to_display.
1021 Set it->char_to_display before calling PRODUCE_GLYPHS.
1022 (extend_face_to_end_of_line): Set it->char_to_display before
1023 calling PRODUCE_GLYPHS.
1024 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1025 character to its byte value.
1026 (get_char_glyph_code): New function.
1027 (produce_stretch_glyph): Set it2.char_to_display too before
1028 calling x_produce_glyphs.
1029 (x_produce_glyphs): Simplify by using the same code for ASCII and
1030 non-ASCII characters. Don't set it->char_to_display here.
1031 Don't handle unibyte-display-via-language-environment here. For a
1032 character of no glyph, use font->space_width instead of FONT_WIDTH.
1033
1034 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1035
1036 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1037
1038 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
1039
1040 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1041
1042 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1043
1044 * marker.c (Fcopy_marker): Make the first arg optional.
1045
1046 2010-08-30 Kenichi Handa <handa@m17n.org>
1047
1048 * composite.c (composition_update_it): Fix computing of
1049 cmp_it->width.
1050
1051 2010-08-29 Kenichi Handa <handa@m17n.org>
1052
1053 * term.c (encode_terminal_code): Encode byte chars to the
1054 corresponding bytes.
1055
1056 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1057
1058 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1059
1060 2010-08-26 Kenichi Handa <handa@m17n.org>
1061
1062 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1063 on calling composition_compute_stop_pos.
1064
1065 2010-08-25 Kenichi Handa <handa@m17n.org>
1066
1067 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1068 :otf.
1069
1070 * composite.c (composition_compute_stop_pos): Don't break
1071 composition at PT.
1072 (composition_reseat_it): Likewise. Fix calculation of character
1073 position starting a composition.
1074 (Fcomposition_get_gstring): Don't limit the number of components
1075 for automatic composition.
1076
1077 2010-08-25 Kenichi Handa <handa@m17n.org>
1078
1079 * composite.c (composition_compute_stop_pos): In forward search,
1080 pay attention to the possibility that some character after ENDPOS
1081 will be composed with charactrs before ENDPOS.
1082
1083 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
1084
1085 * keyboard.c (command_loop_1): Don't clobber primary selection
1086 during handle-switch-frame (Bug#6872).
1087
1088 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
1089
1090 * dbusbind.c: Accept UNIX domain sockets as bus address.
1091 (Fdbus_close_bus): New function.
1092 (Vdbus_registered_buses): New variable.
1093 (xd_initialize): Implement string as bus address.
1094 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1095 (Fdbus_get_unique_name, Fdbus_call_method)
1096 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1097 (Fdbus_method_error_internal, Fdbus_send_signal)
1098 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1099 check. This is done in xd_initialize_bus. Adapt doc string, if
1100 necessary.
1101 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1102 Vdbus_registered_buses.
1103 (Vdbus_registered_objects_table): Create hash.
1104
1105 2010-08-22 Juri Linkov <juri@jurta.org>
1106
1107 * keyboard.c (Fexecute_extended_command): Move reading a command name
1108 with `completing-read' to a new Elisp function `read-extended-command'.
1109 Call it to read a command to `function' (bug#5364, bug#5214).
1110
1111 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1112
1113 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1114
1115 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
1116
1117 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1118 instead of SAFE_ALLOCA.
1119
1120 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1121
1122 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1123 (Bug#6214).
1124
1125 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1126
1127 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1128
1129 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1130
1131 * doc.c (Fsnarf_documentation): Initialize skip_file before
1132 build-files test.
1133
1134 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
1135
1136 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1137 New definitions.
1138 (HAVE_TERMIO): Remove.
1139
1140 2010-08-22 Eli Zaretskii <eliz@gnu.org>
1141
1142 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1143
1144 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1145 for w32.
1146
1147 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1148 it's done in nt/config.nt.
1149
1150 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1151
1152 * unexcoff.c (report_error, make_hdr, write_segment)
1153 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1154 Convert argument lists and prototypes to ANSI C.
1155 (make_hdr, write_segment): Remove unused variables.
1156 (unexec): Remove commented-out line. Initialize `new' to shut up
1157 compiler warnings.
1158
1159 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1160
1161 Simplify termio code.
1162 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1163 HAVE_TERMIO code is obsolete.
1164 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1165 * systty.h: Do not define HAVE_TCATTR.
1166 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1167 Do not define EMACS_HAVE_TTY_PGRP. Only define
1168 EMACS_GET_TTY_PGRP for !DOS_NT.
1169 * sysdep.c: Include sysselect.h unconditionally. Do not include
1170 sys/ioctl.h and termios.h, systty.h does it. Use
1171 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1172 (init_baud_rate): Remove HAVE_TERMIO code.
1173 (child_setup_tty): Remove HAVE_TERMIO code.
1174 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1175 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1176 (new_ltchars, new_tchars): Remove, unused.
1177 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1178 code. Remove special casing for __mips__, it was a no-op. Remove
1179 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1180 (init_sys_modes): Remove HPUX special case.
1181 * process.c: Include stdlib.h unconditionally. Do not include
1182 fcntl.h, systty.h does it. Remove conditional code for
1183 HAVE_SERIAL, it is always true.
1184 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1185 always true when SIGNALS_VIA_CHARACTERS is true.
1186 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1187 !WINDOWSNT means HAVE_TERMIOS.
1188 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1189 conditional, which is true for all HAVE_TERMIOS systems.
1190 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1191 instead of HAVE_TERMIOS.
1192 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1193 EMACS_HAVE_TTY_PGRP.
1194 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1195 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1196 anyway.
1197
1198 2010-08-21 Eli Zaretskii <eliz@gnu.org>
1199
1200 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1201 mirroring pixel positions.
1202
1203 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1204
1205 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1206 write only.
1207 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1208 malloc_sbrk_used, nothing uses them.
1209
1210 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1211 defined, unconditionally defined in lisp.h.
1212
1213 * term.c: Do not include <termios.h>, systty.h does it.
1214
1215 * s/unixware.h (HAVE_TCATTR):
1216 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1217 systty.h defines it when HAVE_TERMIOS is defined.
1218
1219 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1220
1221 * dispnew.c (buffer_posn_from_coords): Fix last change for text
1222 terminals: add one-character offset for R2L lines.
1223
1224 * emacs.c <emacs_version>: Add a comment regarding
1225 msdos/mainmake.v2's dependency on the syntax of this declaration.
1226
1227 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1228
1229 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1230 position for R2L lines by mirroring the pixel position wrt the
1231 text are box. Improve commentary.
1232
1233 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1234
1235 * image.c (imagemagick_clear_image): Remove debugging output.
1236
1237 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1240 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1241 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1242 self-insert-face.
1243 (syms_of_cmds): Initialize the new vars.
1244
1245 2010-08-19 Jason Rumney <jasonr@gnu.org>
1246
1247 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1248
1249 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1250
1251 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1252
1253 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1254
1255 2010-08-18 Eli Zaretskii <eliz@gnu.org>
1256
1257 * xterm.c (x_draw_bar_cursor):
1258 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1259 R2L, draw the bar cursor on its right rather than on its left.
1260
1261 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1262
1263 * eval.c (Fdefmacro): Only obey one declaration.
1264
1265 * casefiddle.c (casify_region): Setup gl_state.
1266
1267 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1268
1269 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1270
1271 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1272
1273 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
1274
1275 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
1276
1277 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1278 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1279 QPRIMARY => NXPrimaryPboard.
1280 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1281 NXPrimaryPboard => QPRIMARY.
1282 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1283 NXSecondaryPboard = SecondarySelection.
1284 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1285
1286 2010-08-18 Joakim Verona <joakim@verona.se>
1287
1288 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1289 defined:
1290 (imagemagick_image_p): New function to test for ImageMagic image.
1291 (imagemagick_load): New function to load ImageMagick image.
1292 (imagemagick_load_image): New function, helper for imagemagick_load.
1293 (imagemagick-types): New function.
1294 (Qimagemagick): New Lisp_object.
1295 (imagemagick-render-type): New variable, decides which renderer to use.
1296
1297 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1298
1299 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1300 is a string.
1301
1302 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1303
1304 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1305 x_set_tool_bar_position handler.
1306
1307 2010-08-17 Eli Zaretskii <eliz@gnu.org>
1308
1309 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1310 x_set_tool_bar_position handler, needed to support changes from
1311 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1312
1313 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1314
1315 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1316 declaration (Bug#6863).
1317 (syms_of_nsselect): Don't intern QPRIMARY.
1318
1319 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1320
1321 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1322
1323 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
1324
1325 * keyboard.c (command_loop_1): Avoid setting selection twice,
1326 since it's done in deactivate-mark as well.
1327 (Vselect_active_regions): Change default to t. Replace `lazy'
1328 with non-default value `only', meaning only set PRIMARY for
1329 temporarily active regions.
1330
1331 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1332 select-active-regions.
1333
1334 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1335
1336 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1337 isn't a string.
1338
1339 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1340
1341 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1342
1343 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1344
1345 * keyboard.c (parse_tool_bar_item): malloc buf.
1346 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1347 new_lbl (Bug#6855).
1348
1349 2010-08-14 Eli Zaretskii <eliz@gnu.org>
1350
1351 * xterm.c (x_draw_stretch_glyph_string):
1352 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1353 the cursor on the right edge of the stretch glyph.
1354
1355 * xdisp.c (window_box_right_offset, window_box_right):
1356 Fix commentary.
1357
1358 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1359 direction when point is inside a run of whitespace characters.
1360
1361 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1362
1363 2010-08-14 Jason Rumney <jasonr@gnu.org>
1364
1365 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1366
1367 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
1368
1369 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1370
1371 2010-08-13 Jason Rumney <jasonr@gnu.org>
1372
1373 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1374 (MessageBoxW_Proc): New function typedef.
1375 (unicode-message-box): New function pointer.
1376 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1377
1378 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1379
1380 * frame.h (Qtool_bar_position): Declare.
1381
1382 * xfns.c (Fx_create_frame): Call x_default_parameter for
1383 Qtool_bar_position.
1384
1385 2010-08-13 Eli Zaretskii <eliz@gnu.org>
1386
1387 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1388 (report_error, report_error_1): Ditto.
1389 (write_segment): Remove "#if 0" unused code.
1390 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1391 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1392 (start_of_text): Remove unused function (was used only if NO_REMAP
1393 was NOT defined).
1394
1395 * msdos.c (IT_set_face): Fix format string to match argument
1396 types.
1397 (IT_write_glyphs, IT_note_mode_line_highlight)
1398 (IT_set_frame_parameters): Remove unused variables.
1399 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1400 (IT_set_terminal_modes): Disambiguate expression in if clause.
1401 (Fmsdos_remember_default_colors): Return Qnil.
1402 (IT_set_frame_parameters): Add parens to disambiguate boolean
1403 expression for logging the cursor type to termscript.
1404 (keyboard_layout_list, keypad_translate_map)
1405 (grey_key_translate_map): Add braces in inner initializers.
1406 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1407 (dos_rawgetc): Remove unused label.
1408 (XMenuActivate): Add braces to remove ambiguous `else'.
1409 (dos_ttraw): Always return a value.
1410 (spawnve): Declare.
1411 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1412
1413 * dosfns.h (x_set_title): Declare.
1414
1415 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1416 Remove unused variables.
1417
1418 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1419 variables.
1420 (init_dosfns): Declare get_lim_data.
1421 (system_process_attributes): Declare Fget_internal_run_time.
1422
1423 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1424 list to be consistent with menu.h.
1425
1426 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1427 warnings due to mixing of "char *" and "const char *".
1428
1429 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1430
1431 Introduce a new comment style "c" flag.
1432 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1433 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1434 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1435 (syntax_prefix_flag_p): New function.
1436 (Fstring_to_syntax): Understand new "c" flag.
1437 (Finternal_describe_syntax_value): Recognize new flag; use the
1438 SYNTAX_FLAGS_* macros.
1439 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1440 comment style to accomodate the new styles.
1441 (back_comment, forw_comment, Fforward_comment, scan_lists)
1442 (scan_sexps_forward): Update code to obey the new comment style flag.
1443
1444 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1445
1446 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1447
1448 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1449
1450 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1451 first.
1452 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
1453
1454 * gtkutil.h (xg_check_special_colors): Declare.
1455
1456 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1457 (xg_create_frame_widgets): Connect theme name changes to
1458 style_changed_cb.
1459
1460 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1461 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1462 (x_term_init): Use char[] display_opt and name_opt instead of
1463 string literal. file is const char*.
1464
1465 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1466 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1467 props. Free them at the end.
1468
1469 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1470
1471 * xrdb.c (get_system_app): Make path const and use char *p for
1472 non-const char.
1473
1474 * xmenu.c (Fx_popup_dialog): error_name is const char*.
1475 (xmenu_show): error parameter is const char **. pane_string is const
1476 char *.
1477 (button_names): Is const char *.
1478 (xdialog_show): error_name and pane_string is const.
1479
1480 * process.h (synch_process_death): Is const char*.
1481
1482 * w32menu.c (w32_menu_show):
1483 * nsmenu.m (ns_menu_show): error parameter is const char **.
1484
1485 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1486 is const char **.
1487
1488 * menu.c (Fx_popup_menu): error_name is const.
1489
1490 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1491 with unsigned char and XtPointer with void *.
1492
1493 * gtkutil.h: Replace widget_value with struct _widget_value.
1494 (enum button_type, struct _widget_value): Remove and use the one from
1495 keyboard.h.
1496
1497 * gtkutil.c (get_utf8_string): Always return an allocated string.
1498 Parameter is const.
1499 (create_dialog, xg_create_one_menuitem, create_menus)
1500 (xg_item_label_same_p, xg_update_menu_item): Free result from
1501 get_utf8_string.
1502 (xg_separator_p, xg_item_label_same_p): label is const.
1503
1504 * font.h (font_open_by_name): Make name const.
1505
1506 * font.c (font_open_by_name): Make name const.
1507
1508 * floatfns.c (matherr): Use a const char* variable for x->name.
1509
1510 * emacs.c (main): Pass char[] to putenv instead of literal.
1511
1512 * callproc.c (synch_process_death): Make const.
1513 (Fcall_process): Make signame const.
1514
1515 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1516 (addDisplayItemWithImage): Use const char*.
1517
1518 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1519 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1520
1521 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1522
1523 * keyboard.h (_widget_value): name, value and key are const char*.
1524
1525 * unexmacosx.c (unexec_error): Use const char *.
1526
1527 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1528
1529 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1530 (font_parse_name, font_open_by_name):
1531 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1532 (font_parse_name, font_open_by_name): Remove const.
1533
1534 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1535
1536 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1537 definition.
1538
1539 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1540 * m/amdx86-64.h: Likewise.
1541 * m/arm.h: Likewise.
1542 * m/hp800.h: Likewise.
1543 * m/ia64.h: Likewise.
1544 * m/ibmrs6000.h: Likewise.
1545 * m/ibms390.h: Likewise.
1546 * m/intel386.h: Likewise.
1547 * m/iris4d.h: Likewise.
1548 * m/m68k.h: Likewise.
1549 * m/macppc.h: Likewise.
1550 * m/mips.h: Likewise.
1551 * m/sh3.h: Likewise.
1552 * m/sparc.h: Likewise.
1553 * m/template.h: Likewise.
1554 * m/vax.h: Likewise.
1555 * m/xtensa.h: Likewise.
1556 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1557 WORDS_BIG_ENDIAN.
1558 * lisp.h: Likewise.
1559 * md5.c: Likewise.
1560 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1561
1562 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1563
1564 Use const char* instead of char*.
1565 Reduce the number of warnings with -Wwrite-strings.
1566 * xrdb.c (get_environ_db, get_system_name):
1567 * unexelf.c (find_section):
1568 * term.c (string_cost, string_cost_one_line, per_line_cost)
1569 (get_named_tty, init_tty):
1570 * sysdep.c (sys_subshell):
1571 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1572 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1573 * search.c (Freplace_match):
1574 * process.c (Fmake_network_process, send_process, init_process):
1575 * lread.c (Fload, init_lread):
1576 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1577 * keyboard.c (parse_tool_bar_item, struct event_head):
1578 * gtkutil.h (xg_get_font_name):
1579 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1580 (make_widget_for_menu_item, make_menu_item, create_menus)
1581 (xg_make_tool_item):
1582 * font.c (parse_matrix, font_parse_name):
1583 * floatfns.c (rounding_driver, float_error_fn_name):
1584 * filelock.c (get_boot_time_1, lock_file_1):
1585 * fileio.c (barf_or_query_if_file_exists, check_writable):
1586 * editfns.c (get_system_name, get_operating_system_release)
1587 (Fencode_time, Fset_time_zone_rule):
1588 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1589 * buffer.c (defvar_per_buffer): Use const.
1590
1591 2010-08-08 Kenichi Handa <handa@m17n.org>
1592
1593 * charset.c: Include <stdlib.h>.
1594 (struct charset_sort_data): New struct.
1595 (charset_compare): New function.
1596 (Fsort_charsets): New function.
1597 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1598
1599 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1600 number in CTEXT extended segment.
1601
1602 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1603
1604 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1605 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1606
1607 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1608
1609 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1610 (Fhash_table_size): Fix typos in docstrings.
1611 (Fmake_hash_table): Doc fix.
1612
1613 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1614
1615 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1616 Doc fix (bug#5625).
1617
1618 2010-08-08 Ken Brown <kbrown@cornell.edu>
1619
1620 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1621 the MSDOS definition.
1622
1623 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1624
1625 Use const char* instead of char*.
1626 * xterm.c (x_create_toolkit_scroll_bar):
1627 * xfont.c (xfont_list_pattern):
1628 * xfns.c (x_default_scroll_bar_color_parameter)
1629 (xic_create_fontsetname, x_default_font_parameter)
1630 (x_screen_planes):
1631 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1632 (store_mode_line_string, decode_mode_spec, display_string):
1633 * menu.c (digest_single_submenu):
1634 * keymap.h (initial_define_key, initial_define_lispy_key):
1635 * keymap.c (initial_define_key, initial_define_lispy_key):
1636 * image.c (image_error, image_keyword):
1637 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1638 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1639 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1640 (ftfont_list, ftfont_match):
1641 * frame.c (frame_parm_table):
1642 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1643 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1644 (font_add_log, font_deferred_log):
1645 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1646 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1647 (font_add_log, font_deferred_log):
1648 * emacs.c (argmatch):
1649 * dispextern.h (struct it):
1650 * coding.c (ENCODE_DESIGNATION):
1651 * charset.c (define_charset_internal): Use const.
1652
1653 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1654
1655 * xrdb.c: Remove include guard.
1656 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1657 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1658 realloc->xrealloc instead of using #defines.
1659
1660 2010-08-08 Eli Zaretskii <eliz@gnu.org>
1661
1662 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
1663 * editfns.c (Fline_beginning_position, Fline_end_position):
1664 State in the doc strings that start and end of line are in the
1665 logical order.
1666
1667 * xdisp.c (display_line): Move the handling of overlay arrow after
1668 the call to find_row_edges. (Bug#6699)
1669
1670 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1671
1672 * keyboard.c (command_loop_1):
1673 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1674
1675 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1676
1677 * insdel.c (prepare_to_modify_buffer): Save active region text to
1678 Vsaved_region_selection.
1679
1680 * xselect.c (QPRIMARY): Move to keyboard.c.
1681
1682 * keyboard.c (Vselect_active_regions): Move from simple.el.
1683 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1684 (command_loop_1): Set window selection prior to deactivating the mark.
1685
1686 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
1687
1688 * alloc.c (lisp_malloc):
1689 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1690 * charset.h (emacs_mule_charset):
1691 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1692 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1693 (bitch_at_user):
1694 * lisp.h (Fcheck_coding_system, Fget_text_property)
1695 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1696 Remove duplicate declarations.
1697
1698 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1699
1700 * process.c: Simplify include logic.
1701
1702 * keyboard.h (quit_char): Add declaration.
1703 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
1704 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1705 Add declarations.
1706 * sysdep.c:
1707 * w32.c: Remove the above declarations.
1708
1709 Remove extern declarations in .c files, .h files have them.
1710 * xterm.c:
1711 * xdisp.c:
1712 * msdos.c:
1713 * image.c:
1714 * gtkutil.c:
1715 * fileio.c:
1716 * eval.c: Remove declarations.
1717
1718 * frame.c (frame_params): Make const.
1719
1720 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1721
1722 * emacs.c (emacs_copyright, emacs_version): Make static.
1723 (Vinitial_window_system, Vauto_save_list_file_name)
1724 (Vinhibit_redisplay): Remove declarations.
1725 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1726 for AIX.
1727
1728 Use const for some arrays and functions.
1729 * xterm.h (xg_set_icon_from_xpm_data):
1730 * xfns.c (xg_set_icon_from_xpm_data):
1731 * term.c (fkeys):
1732 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1733 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1734 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1735 (frame.c frame_parms):
1736 * emacs-icon.h (gnu_xpm_bits):
1737 * callint.c (callint_argfuns): Use const.
1738
1739 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * sysdep.c: Move include term.h last of includes (Bug#6812).
1742
1743 2010-08-06 Eli Zaretskii <eliz@gnu.org>
1744
1745 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1746
1747 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1748
1749 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1750
1751 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1752
1753 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1754
1755 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1756
1757 * xterm.h (x_get_focus_frame): Declare.
1758
1759 * keyboard.h (poll_for_input_1): Unconditionally declare.
1760
1761 * nsterm.h (x_set_menu_bar_lines): Declare.
1762
1763 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1764
1765 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1766
1767 * window.c: Include menu.h.
1768
1769 * unexmacosx.c (print_region_list, print_regions)
1770 (build_region_list, find_emacs_zone_regions)
1771 (unexec_regions_merge, read_load_commands, dump_it)
1772 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1773
1774 * term.c: Check HAVE_SYS_IOCTL_H.
1775
1776 * sysdep.c: Check HAVE_TERM_H.
1777
1778 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
1779
1780 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1781 (ns_ring_bell, ns_defined_color, hide_hourglass)
1782 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1783 Convert to ANSI C prototypes.
1784 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1785 before code.
1786
1787 * nsterm.h : Include sysselect.h.
1788 (x_sync, x_get_focus_frame, x_set_mouse_position)
1789 (x_set_mouse_pixel_position, x_make_frame_visible)
1790 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1791 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1792 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1793 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
1794 Declare.
1795
1796 * nsmenu.m (popup_activated, name_is_separator)
1797 (syms_of_nsmenu): Convert to ANSI C prototypes.
1798 (runMenuAt): Prototypes and move declarations before code.
1799
1800 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1801
1802 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1803 prototypes.
1804
1805 * nsfns.m (have_menus_p, ns_display_info_for_name)
1806 (x_set_cursor_type, ns_appkit_version_str)
1807 (ns_appkit_version_int, ns_do_applescript)
1808 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1809 (syms_of_nsfns): Convert to ANSI C prototypes.
1810
1811 * menu.h (x_set_menu_bar_line): Declare.
1812 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1813
1814 * lisp.h (fmod_float): Declare.
1815
1816 * image.c (xpm_scan, xpm_make_color_table_v)
1817 (xpm_put_color_table_v, xpm_get_color_table_v)
1818 (xpm_make_color_table_h, xpm_put_color_table_h)
1819 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1820 (xpm_load): Convert to ANSI C prototypes.
1821
1822 * emacs.c: Include nsterm.h if HAVE_NS.
1823
1824 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1825
1826 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1827
1828 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1829 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1830 (socket_options): Use const char* for name.
1831
1832 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1833
1834 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1835
1836 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1837 Don't declare xmalloc_widget_value and digest_single_submenu.
1838
1839 * w32font.c (Qlatin): Remove declaration.
1840
1841 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1842
1843 * dired.c (compile_pattern): Restore declaration.
1844
1845 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1846
1847 Remove extern declarations in .c files, .h files have them.
1848 * data.c:
1849 * dired.c:
1850 * editfns.c:
1851 * filelock.c:
1852 * fns.c:
1853 * font.c:
1854 * fontset.c:
1855 * frame.c:
1856 * fringe.c:
1857 * ftfont.c:
1858 * gtkutil.c:
1859 * indent.c:
1860 * keyboard.c:
1861 * keymap.c:
1862 * lread.c:
1863 * menu.c:
1864 * print.c:
1865 * search.c:
1866 * sound.c:
1867 * window.c:
1868 * xdisp.c:
1869 * xfaces.c:
1870 * xfns.c:
1871 * xfont.c:
1872 * xftfont.c:
1873 * xmenu.c:
1874 * xterm.c: Remove declarations.
1875
1876 Cleanup syssignal.h.
1877 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1878 (main_thread): Move down to remove #ifdef.
1879 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1880 Remove conditional definition following unconditional ones.
1881
1882 * lisp.h: Remove HAVE_SHM code, unused.
1883 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1884 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1885 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1886 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1887 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1888 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1889 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1890 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1891 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1892 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1893 (Qwindow_scroll_functions, Vafter_load_alist)
1894 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1895 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1896 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1897 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1898 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1899 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1900 (initial_argv, last_nonmenu_event, load_in_progress)
1901 (noninteractive_need_newline, scroll_margin): Add declarations.
1902
1903 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1904 declarations, menu.h has them.
1905 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1906 (Vinput_method_function, Qinput_method_function)
1907 (Qevent_symbol_element_mask, last_event_timestamp):
1908 * dispextern.h (Voverflow_newline_into_fringe):
1909 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1910 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1911 (syms_of_w32font, syms_of_nsfont):
1912 * fontset.h (find_font_encoding, Qlatin):
1913 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1914 (Vtool_bar_mode, set_frame_menubar):
1915 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1916 * xterm.h (Qx_gtk_map_stock):
1917 * keymap.h (meta_prefix_char): Add declarations.
1918
1919 * term.c: Remove dead code.
1920
1921 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1922 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1923 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1924 which is what was there before BSD_PGRPS was removed.
1925
1926 2010-08-05 Eli Zaretskii <eliz@gnu.org>
1927
1928 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1929
1930 * unexcoff.c: Renamed from unexec.c.
1931
1932 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1933
1934 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1935
1936 2010-08-03 Johan Bockgård <bojohan@gnu.org>
1937
1938 * data.c (Flocal_variable_p): Handle variable aliases correctly.
1939 (Bug#6744)
1940
1941 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1942
1943 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1944 to TRUE if depth of screen is < 16.
1945
1946 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1947 USE_GTK_TOOLTIP.
1948 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1949 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
1950 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
1951 USE_GTK_TOOLTIP.
1952 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1953
1954 * xterm.h (USE_GTK_TOOLTIP): New define.
1955 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1956
1957 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1958 to Control-D (Bug#6771).
1959
1960 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
1961
1962 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1963 Wording by Drew Adams <drew.adams@oracle.com>.
1964
1965 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1966
1967 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1968 ttip_lbl.
1969
1970 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1971 calling gtk_widget_queue_draw.
1972 (x_free_frame_resources): Call xg_free_frame_widgets.
1973
1974 * xfns.c (x_gtk_use_system_tooltips): New variable.
1975 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1976 new gtkutil tooltip functions to show the tooltip.
1977 (Fx_hide_tip): Call xg_hide_tooltip.
1978 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1979
1980 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1981 (xg_show_tooltip, xg_hide_tooltip): Declare.
1982
1983 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
1984 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1985 New functions.
1986 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1987 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1988 Remove code that is commented out.
1989
1990 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1991
1992 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1993
1994 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
1995
1996 * xselect.c (x_own_selection): Use list4.
1997
1998 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1999
2000 * buffer.c (Qwindow): Do not define, already defined in data.c.
2001 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2002
2003 2010-07-29 Chad Brown <yandros@mit.edu>
2004
2005 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2006 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2007 * config.in: Undef HAVE_DIRENT_H.
2008 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
2009 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
2010
2011 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2012
2013 Rename s/usg5-4.h -> s/usg5-4-common.h.
2014 * s/usg5-4.h: Rename file to ...
2015 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2016 * s/unixware.h:
2017 * s/sol2-6.h:
2018 * s/irix6-5.h: Update includes accordingly.
2019
2020 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2021
2022 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2023
2024 * xterm.h (struct x_output): Add toolbar_top_height,
2025 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2026 Remove toolbar_height.
2027 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
2028 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2029 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2030 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2031
2032 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2033
2034 * xfns.c (x_set_tool_bar_position): New function.
2035 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2036 (x_frame_parm_handlers): Add x_set_tool_bar_position.
2037 (syms_of_xfns): If USE_GTK, provide move-toolbar.
2038
2039 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2040 and FRAME_TOOLBAR_LEFT_WIDTH.
2041
2042 * gtkutil.h (xg_change_toolbar_position): Declare.
2043
2044 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2045 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2046 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2047 (xg_create_frame_widgets): Create a hobox for placing widgets
2048 vertically. Use gtk_box_pack_start.
2049 (xg_height_or_width_changed): Renamed from xg_height_changed.
2050 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2051 (xg_update_frame_menubar, free_frame_menubar): Change to
2052 xg_height_or_width_changed.
2053 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2054 size correctly. Remove hardcoded 4, instead use handlebox size -
2055 toolbar size.
2056 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
2057 size correctly. Use handlebox size + toolbar size as additional size.
2058 (xg_pack_tool_bar): POS is a new parameter.
2059 Set orientation of tool bar based on pos.
2060 Only make handlebox_widget if NULL.
2061 Check if tool bar goes to vbox or hbox depending on pos.
2062 (xg_update_tool_bar_sizes): New function.
2063 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
2064 height, call xg_update_tool_bar_sizes instead.
2065 (free_frame_tool_bar): Remove from hbox or vbox depending on
2066 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2067 (xg_change_toolbar_position): New function.
2068
2069 * frame.h (struct frame): Add tool_bar_position.
2070 (Qbottom): Declare.
2071
2072 * frame.c (Qtool_bar_position): New variable.
2073 (make_frame): Set tool_bar_position to Qtop.
2074 (frame_parms): Add tool-bar-position.
2075 (x_report_frame_params): Store tool_bar_position.
2076 (x_set_fringe_width): Reset wm size hint after fringe changes.
2077
2078 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2079
2080 Make lisp_time_argument declaration work on all systems.
2081 * lisp.h (lisp_time_argument): Move declaration ...
2082 * systime.h (lisp_time_argument): ... here
2083 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2084
2085 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2086
2087 * vm-limit.c (POINTER): Add typedef for it.
2088 (start_of_data): Change return type from POINTER to char *.
2089
2090 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2091 HAVE_WINDOW_SYSTEM.
2092
2093 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2094
2095 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2096 Remove reference to __osf__, unused.
2097
2098 * mem-limits.h: Remove duplicated includes.
2099 (NULL): Remove definition, unused.
2100 (POINTER): Remove definition.
2101 (start_of_data): Use char* in prototype, as the function
2102 definition does.
2103
2104 Remove extern declarations from .c files, and them to .h files.
2105 * keyboard.h (Qhelp_echo, waiting_for_input)
2106 (input_available_clear_time, ignore_mouse_drag_p)
2107 (Vdouble_click_time, real_this_command, Vthis_original_command):
2108 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2109 (Voverriding_local_map_menu_flag):
2110 * lisp.h (Qinteractive_form, use_file_dialog)
2111 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2112 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2113 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2114 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2115 (Qfunction, debug_on_next_call, Qfield)
2116 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2117 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2118 (Qfile_directory_p, Qinsert_file_contents)
2119 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2120 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2121 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2122 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2123 (Qminibuffer_prompt)
2124 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2125 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2126 (gray_bitmap_bits, xic_create_fontsetname):
2127 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2128
2129 * xsmfns.c (Vuser_login_name):
2130 * xrdb.c (Vdouble_click_time):
2131 * xfaces.c (xic_create_fontsetname):
2132 * w32select.c (waiting_for_input):
2133 * print.c (minibuffer_auto_raise):
2134 * msdos.c (Qhelp_echo):
2135 * macros.c (real_this_command):
2136 * keymap.c (Voverriding_local_map):
2137 * xterm.c (poll_for_input_1, gray_bitmap_width)
2138 (gray_bitmap_height, gray_bitmap_bits;
2139 * xmenu.c ( Voverriding_local_map)
2140 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2141 (use_file_dialog, Xt_app_con):
2142 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2143 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2144 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2145 (Qtool_bar_lines, ignore_mouse_drag_p):
2146 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2147 (Qrear_nonsticky, nconc2):
2148 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2149 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2150 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2151 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2152 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2153 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2154 (gc_in_progress):
2155 * doc.c (Voverriding_local_map, Qremap):
2156 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2157 (Vcompletion_regexp_list):
2158 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2159 (Qcompletion_ignore_case):
2160 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2161 (Vhistory_length, Vthis_original_command, real_this_command)
2162 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2163 * image.c (Qrisky_local_variable):
2164 * fontset.c (QCname):
2165 * fns.c (minibuffer_auto_raise, QCname):
2166 * dispnew.c (char_ins_del_cost):
2167 * composite.c (font_fill_lglyph_metrics):
2168 * cmds.c (Qface, Vtranslation_table_for_input):
2169 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2170 * ccl.c (charset_unicode):
2171 * callproc.c (Vtemporary_file_directory):
2172 * buffer.c (emacs_strerror): Remove extern declarations.
2173
2174 * data.c (Qwindow): Make non-static, used from other files too.
2175 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2176
2177 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2178 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2179 * s/usg5-4.h (COFF):
2180 * s/template.h:
2181 * s/msdos.h (COFF, NO_REMAP):
2182 * s/ms-w32.h (NO_REMAP):
2183 * s/hpux10-20.h (NO_REMAP):
2184 * m/sparc.h (SEGMENT_MASK):
2185 * m/m68k.h (NO_REMAP):
2186 * m/intel386.h (SEGMENT_MASK):
2187 * m/arm.h (NO_REMAP):
2188 * m/alpha.h (COFF):
2189 * m/template.h: Remove references to unused defines.
2190
2191 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2192
2193 * xsettings.c (Ftool_bar_get_system_style): Also check for
2194 Qtext_image_horiz.
2195
2196 * xdisp.c (Qtext_image_horiz): Define.
2197 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
2198 to documentation of tool-bar-style.
2199
2200 * lisp.h (Qtext_image_horiz): Declare.
2201
2202 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2203 style text_image_horiz.
2204
2205 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2206
2207 * emacs.c (Fkill_emacs): Remove return statement.
2208
2209 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2210 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2211 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2212 local extern declarations.
2213
2214 * xmenu.c: Do not included lwlib.h, not needed.
2215
2216 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2217
2218 * process.c: Move definitions earlier to minimize #ifdefs.
2219
2220 * xterm.h (x_get_customization_string, x_load_resources)
2221 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2222 (x_check_errors, x_property_data_to_lisp, defined_color)
2223 (xic_set_xfontset, x_defined_color): Use const.
2224
2225 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2226 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2227
2228 * xselect.c (selection_data_to_lisp_data)
2229 (x_property_data_to_lisp):
2230 * xrdb.c (x_get_string_resource, file_p)
2231 (x_get_customization_string, magic_file_p, search_magic_path)
2232 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2233 (x_get_string_resource): Use const.
2234
2235 * xfns.c: Include xlwmenu.h when USE_LUCID.
2236 (x_defined_color, xic_set_xfontset): Use const.
2237 (Fx_hide_tip): Remove local extern declaration.
2238
2239 * xfaces.c (Qmouse_face): Remove declaration.
2240 (face_color_gray_p, tty_defined_color, defined_color)
2241 (face_color_gray_p, face_color_supported_p): Add const.
2242
2243 * xdisp.c (do_mouse_tracking): Remove declaration.
2244 (add_to_log): Use const.
2245
2246 * minibuf.c (Qmouse_face): Remove declaration.
2247
2248 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2249
2250 * keyboard.h (do_mouse_tracking): Add declaration.
2251
2252 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2253 (QCdata, QCtype, Qcenter): Remove declarations.
2254
2255 * frame.c (x_get_resource_string, x_get_string_resource)
2256 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2257 (x_default_parameter): Use const.
2258
2259 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2260 (QCheight, QCsize, QCname): Remove declarations.
2261
2262 * emacs.c (main): Remove local extern declaration.
2263
2264 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2265 declarations.
2266
2267 * dispnew.c: Remove duplicate #include <unistd.h>.
2268 (update_window, update_frame_1, init_display): Remove local extern
2269 declarations.
2270
2271 * dispextern.h (add_to_log): Remove declaration.
2272 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2273 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2274
2275 * dired.c (scmp): Add const.
2276 (directory_files_internal): Remove local extern declaration.
2277
2278 * data.c (Finteractive_form): Use const.
2279
2280 * composite.c (syms_of_composite): Remove local extern declarations.
2281
2282 * charset.c (add_to_log): Remove declaration.
2283
2284 * character.c (strwidth, parse_str_to_multibyte): Add const.
2285
2286 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2287
2288 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2289
2290 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
2291 (Lisp_Subr): Make doc and intspec constant.
2292 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2293 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2294 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2295 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2296 (display_arg): Add declarations.
2297
2298 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
2299
2300 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2301
2302 * window.c (Fwindow_height): Doc fix (bug#6518).
2303
2304 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
2305
2306 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2307
2308 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2309
2310 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2311 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2312 functions.
2313
2314 * frame.h (Qtty_color_mode): Add declaration.
2315
2316 * lisp.h (Ftop_level, Fexit_recursive_edit)
2317 (Fabort_recursive_edit): Mark as NO_RETURN.
2318
2319 2010-07-26 Kenichi Handa <handa@m17n.org>
2320
2321 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
2322 number of glyphs gets smaller than the original length. (Bug#6621)
2323
2324 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
2325
2326 * lread.c (unreadpure, mapatoms_1): Make static.
2327
2328 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2329
2330 * terminfo.c (tparam): Fix prototype of tparm.
2331
2332 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2333
2334 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2335 find start of text segment.
2336 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2337 is defined.
2338
2339 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2340
2341 2010-07-25 Ken Brown <kbrown@cornell.edu>
2342
2343 * vm-limit.c (check_memory_limits): Fix previous change;
2344 accidentally reverted an earlier change.
2345
2346 2010-07-25 Ken Brown <kbrown@cornell.edu>
2347
2348 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2349 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2350
2351 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2352
2353 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2354 * dired.c (opendir, readdir): Fix prototypes.
2355 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2356 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2357 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2358 (telldir): Remove declaration.
2359 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2360 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2361 * syssignal.h (strsignal): Fix prototype.
2362 * term.c (tparam): Fix prototype.
2363 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2364 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2365 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2366 and __morecore.
2367 * w32gui.h (XParseGeometry): Fix prototype.
2368 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2369 * w32term.c (my_set_focus): Declare inside #if 0.
2370 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2371 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2372 (drain_message_queue, get_next_msg, post_msg, parse_button)
2373 (ClipboardSequence_Proc): Fix prototypes.
2374 (wait_for_sync): Remove declaration.
2375
2376 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
2377
2378 * w32fns.c (w32_to_x_color): Remove, unused.
2379
2380 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2381
2382 * lisp.h: Remove leftover P_.
2383
2384 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2385
2386 * ecrt0.c, unexalpha.c: Remove files, unused.
2387
2388 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2389
2390 * cmds.c (internal_self_insert): Make static.
2391 * lisp.h (internal_self_insert): Remove declaration.
2392
2393 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
2394
2395 * alloc.c (free_float):
2396 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2397 * frame.c (delete_frame_handler):
2398 * ralloc.c (reorder_bloc):
2399 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2400 Remove unused static functions.
2401
2402 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2403 it is called only from NS code.
2404
2405 * w32term.c (my_set_focus): #ifdef away; it is called only from
2406 "#ifdef 0" code.
2407
2408 * w32fns.c (x_edge_detection):
2409 * xfaces.c (may_use_scalable_font_p):
2410 Remove obsolete static declarations.
2411
2412 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
2413
2414 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2415 (emacs_blocked_realloc, uninterrupt_malloc):
2416 * fringe.c (w32_reset_fringes):
2417 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2418 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2419 * sound.c (be2hs, do_play_sound):
2420 * vm-limit.c (get_lim_data, ret_lim_data):
2421 * w32term.c (x_free_frame_resources):
2422 * xfaces.c (x_create_gc, x_free_gc):
2423 Convert definitions to standard C.
2424
2425 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2426
2427 * eval.c (Feval, Ffuncall): Use the new names.
2428
2429 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2430 (DEFUN): Add braces around the union initialisation and use ## to
2431 specify the right union alternative and avoid a cast.
2432
2433 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
2434
2435 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2436
2437 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
2438
2439 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2440
2441 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2442
2443 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2444 is related to the menu bar (Bug#6499).
2445 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
2446
2447 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2448
2449 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2450
2451 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2452
2453 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2454 i.e. don't put back ButtonRelease (Bug#6608).
2455
2456 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2457 instead of Window. Call xg_event_is_for_menubar when
2458 USE_GTK (Bug#6499).
2459
2460 * gtkutil.h (xg_event_is_for_menubar): Declare.
2461
2462 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2463
2464 2010-07-16 Eli Zaretskii <eliz@gnu.org>
2465
2466 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2467 when it's the same as the old foreground. (Bug#6609)
2468
2469 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2470
2471 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2472 widget is non-null (Bug#6645).
2473
2474 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2475
2476 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2477 Convert old-style definition.
2478
2479 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2480 timestamp argument.
2481
2482 2010-07-15 Eli Zaretskii <eliz@gnu.org>
2483
2484 * fringe.c (update_window_fringes): Restore mistakenly reverted
2485 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2486
2487 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2488
2489 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2490 (SET_SAVED_KEY_EVENT): Remove (not used).
2491 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2492 remove size parameter.
2493 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2494 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2495 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2496 ButtonRelease.
2497 (x_set_window_size_1): scroll_bar_actual_width is always
2498 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
2499
2500 * xdisp.c (pending_menu_activation): Remove extern declaration.
2501 (prepare_menu_bars): Remove setting of pending_menu_activation.
2502
2503 * xmenu.c (pending_menu_activation): Remove.
2504 (x_activate_menubar): Set popup_activated_flag for Xt also.
2505 Remove setting of pending_menu_activation.
2506 (set_frame_menubar): Remove check of pending_menu_activation.
2507 Declare menubar_size before code. Correct spelling in comment.
2508
2509 2010-07-14 Kenichi Handa <handa@m17n.org>
2510
2511 * font.c (font_open_entity): Cancel previous change.
2512 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2513
2514 2010-07-13 Eli Zaretskii <eliz@gnu.org>
2515
2516 Remove subprocesses #ifdefs.
2517 * process.c <inhibit_sentinels>: Move to the common part.
2518 (Fwaiting_for_user_input_p): Move to the common part; return nil
2519 if async subprocesses aren't supported.
2520 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2521 MS-DOS. Remove "#ifdef subprocesses".
2522 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2523 (gettimeofday): Remove "#ifdef subprocesses".
2524 (wait_without_blocking): Remove function.
2525 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2526 Remove "#ifdef subprocesses".
2527 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2528 compiled on MS-DOS.
2529 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2530 wait_for_termination on MS-DOS.
2531 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2532 initialization of inhibit_sentinels.
2533 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2534 subprocesses" conditional.
2535 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2536 wait_for_termination, since `buffer' cannot be an integer when
2537 async subprocesses are not supported
2538 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2539 for ifdefing away the call to Fprocess_status.
2540
2541 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2542 away the entire body of the function.
2543
2544 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2545
2546 Remove subprocesses #ifdefs from term.c.
2547 * process.c (add_keyboard_wait_descriptor)
2548 (delete_keyboard_wait_descriptor): Move to common section, do
2549 nothing when subprocesses is not defined.
2550 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2551 Remove subprocesses #ifdefs.
2552
2553 Convert maybe_fatal to standard C.
2554 * lisp.h (verror): Declare.
2555 * eval.c (verror): New function containing the code from ...
2556 (error): ... this. Call verror.
2557 * term.c (vfatal): New function containing the code from ...
2558 (fatal): ... this. Call vfatal.
2559 (maybe_fatal): Convert to standard C, use variable number of
2560 arguments. Declare as non-return.
2561 (init_tty): Fix maybe_fatal call.
2562
2563 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2564
2565 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2566 (_scroll_bar_note_movement): Convert definitions to standard C.
2567 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2568 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2569
2570 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2571
2572 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2573 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2574 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2575 (xaw_jump_callback, xaw_scroll_callback)
2576 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2577 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2578 definitions to standard C.
2579 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2580 (popup_activate_callback, popup_deactivate_callback)
2581 (menu_highlight_callback, menubar_selection_callback)
2582 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2583 (free_frame_menubar, popup_selection_callback, as)
2584 (create_and_show_popup_menu, dialog_selection_callback)
2585 (create_and_show_dialog):
2586 * xfns.c (hack_wm_protocols, x_window):
2587 * xfaces.c (x_update_menu_appearance):
2588 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2589 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2590 (set_frame_size, update_wm_hints, setup_frame_gcs)
2591 (update_various_frame_slots, update_from_various_frame_slots)
2592 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2593 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2594 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2595
2596 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2597
2598 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
2599
2600 2010-07-12 Eli Zaretskii <eliz@gnu.org>
2601
2602 * process.c (setup_process_coding_systems): Move to the part
2603 shared by non-subprocesses systems, and make its body empty when
2604 subprocesses is not defined.
2605 (close_process_descs): Move to the part shared by non-subprocesses
2606 systems.
2607 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2608 ANSI C.
2609
2610 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2611
2612 * editfns.c (transpose_markers): Convert old-style definition.
2613 * emacs.c (abort, shut_down_emacs, fixup_locale)
2614 (synchronize_system_time_locale)
2615 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2616 * floatfns.c (extract_float, matherr, init_floatfns)
2617 (syms_of_floatfns): Likewise.
2618 * fns.c (make_hash_table): Likewise.
2619 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2620 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2621 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2622 (ftfont_variation_glyphs): Likewise.
2623 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2624 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2625 * lread.c (read_filtered_event): Likewise.
2626 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2627 * process.c (wait_reading_process_output): Likewise.
2628 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2629 * search.c (search_buffer, boyer_moore): Likewise.
2630 * syntax.c (scan_sexps_forward): Likewise.
2631 * xdisp.c (try_scrolling): Likewise.
2632 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2633 (face_at_string_position): Likewise.
2634 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2635 * xselect.c (x_get_window_property, receive_incremental_selection)
2636 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2637 Likewise.
2638 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2639
2640 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2641
2642 * callproc.c (child_setup): Remove subprocesses conditional.
2643 Remove code dealing with SET_EMACS_PRIORITY, unused.
2644
2645 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2646 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2647
2648 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2649 (__do_global_dtors, __main): Use void in definition.
2650 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2651 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2652 the only users from ...
2653 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2654 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2655 (HAVE_VOLATILE): Remove, unused.
2656
2657 Convert more function definitions to standard C.
2658 * xdisp.c (window_box_edges, handle_single_display_spec)
2659 (display_string): Convert definition to standard C.
2660 * scroll.c (do_direct_scrolling, scrolling_1):
2661 * dispnew.c (allocate_matrices_for_frame_redisplay)
2662 (mirrored_line_dance):
2663 * coding.c (code_convert_string):
2664 * charset.c (map_charset_chars):
2665 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2666 (Fregister_ccl_program, Fregister_code_conversion_map):
2667 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2668 (head_table): Make static and const.
2669
2670 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2671
2672 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2673 (PROFILING_LDFLAGS): Set from substitution.
2674 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2675 CFLAGS last.
2676
2677 2010-07-12 Kenichi Handa <handa@m17n.org>
2678
2679 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2680 (shortlisp): Likewise.
2681
2682 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2683
2684 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2685 of FONT_ENTITY_INDEX.
2686 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2687 property, get the property value dynamically.
2688 (Ffont_put): Accept font-entity and font-object too.
2689 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2690 return value changed.
2691 (syms_of_font): Adjusted for the above change.
2692
2693 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2694
2695 * blockinput.h: Remove obsolete comment.
2696
2697 * lisp.h: Include <stddef.h>.
2698 (OFFSETOF): Don't define.
2699 (VECSIZE): Use offsetof instead of OFFSETOF.
2700 (PSEUDOVECSIZE): Likewise.
2701 * process.c (conv_sockaddr_to_lisp): Likewise.
2702 * alloc.c: Don't include <stddef.h>.
2703 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2704
2705 * process.c: Remove obsolete comment.
2706
2707 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
2708
2709 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2710
2711 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2712
2713 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2714 index, rindex.
2715 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2716 * editfns.c (Fuser_full_name, Fformat): Likewise.
2717 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2718 * fileio.c (Ffile_symlink_p): Likewise.
2719 * filelock.c (current_lock_owner): Likewise.
2720 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2721 * fontset.c (fontset_pattern_regexp): Likewise.
2722 * lread.c (read1): Likewise.
2723 * sysdep.c (init_system_name): Likewise.
2724 * xfns.c (select_visual): Likewise.
2725 * s/hpux10-20.h (index, rindex): Don't define.
2726 * s/ms-w32.h (index): Likewise.
2727 * s/usg5-4.h: Likewise.
2728
2729 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2730
2731 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2732 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2733 (egetenv): Likewise.
2734 * doprnt.c (doprnt): Likewise.
2735 * editfns.c (set_time_zone_rule, format2): Likewise.
2736 * emacs.c (decode_env_path): Likewise.
2737 * eval.c (signal_error, error): Likewise.
2738 * insdel.c (replace_range_2): Likewise.
2739 * keyboard.c (cmd_error_internal): Likewise.
2740 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2741 * print.c (write_string, write_string_1, print_error_message):
2742 Likewise.
2743 * vm-limit.c (warn_function, memory_warnings): Likewise.
2744 * xdisp.c (message1, message1_nolog, message_with_string)
2745 (vmessage, message, message_nolog): Likewise.
2746 * emacs.c: Remove duplicate declaration.
2747 * keyboard.h: Likewise.
2748 * lisp.h: Update prototypes.
2749
2750 * eval.c: Fix indentation problem.
2751
2752 * keyboard.c: Include "process.h"
2753
2754 * eval.c: Remove obsolete noinline declaration.
2755 * fns.c: Likewise.
2756
2757 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
2758
2759 * doprnt.c (doprnt): Take a va_list argument instead of count and
2760 pointer.
2761 * eval.c (error): Change to a standard-C variadic function.
2762 * xdisp.c (vmessage): Renamed from message, made static, and
2763 changed to take a va_list argument.
2764 (message): New variadic wrapper.
2765 (message_nolog): Now a variadic function, calling vmessage.
2766 * lisp.h: Include stdarg.h for va_list.
2767 (doprnt, error, message, message_nolog): Decls updated.
2768
2769 2010-07-11 Eli Zaretskii <eliz@gnu.org>
2770
2771 * process.c (syms_of_process) <delete-exited-processes>: Define
2772 even if !subprocesses.
2773 (delete_exited_processes): Ditto.
2774
2775 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2776 (delete_exited_processes): Don't define.
2777
2778 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2779
2780 * frame.c (make_frame): Initialize menu_bar_lines and
2781 tool_bar_lines members.
2782 (make_initial_frame, make_terminal_frame): Initialize
2783 menu_bar_lines using value of menu-bar-mode.
2784
2785 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2786
2787 2010-07-10 Eli Zaretskii <eliz@gnu.org>
2788
2789 * process.c: Reshuffle #include's. Condition some of the global
2790 and static variables on `subprocesses'.
2791 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2792 Leave only one implementation.
2793 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2794 (kill_buffer_processes, Flist_system_processes)
2795 (Fprocess_attributes, init_process, syms_of_process): Unify the
2796 implementations for with subprocesses and without them.
2797
2798 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2799
2800 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2801 correct size for Motif.
2802 (free_frame_menubar): Call x_set_window_size to update frame size.
2803
2804 * xfns.c (x_window): Set borderWidth to 0 for pane and
2805 EmacsFrame. Frame size calculation is wrong otherwise.
2806
2807 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
2808
2809 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2810 allows to suppress errors when polling in Emacs' main loop.
2811 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2812 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2813 (Fdbus_method_error_internal, Fdbus_send_signal)
2814 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2815 (Fdbus_register_method): Use it. (Bug#6579)
2816
2817 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2818
2819 * alloc.c: Convert DEFUNs to standard C.
2820 * buffer.c:
2821 * bytecode.c:
2822 * callint.c:
2823 * callproc.c:
2824 * casefiddle.c:
2825 * casetab.c:
2826 * category.c:
2827 * character.c:
2828 * charset.c:
2829 * chartab.c:
2830 * cmds.c:
2831 * coding.c:
2832 * composite.c:
2833 * data.c:
2834 * dbusbind.c:
2835 * dired.c:
2836 * dispnew.c:
2837 * doc.c:
2838 * dosfns.c:
2839 * editfns.c:
2840 * emacs.c:
2841 * eval.c:
2842 * fileio.c:
2843 * filelock.c:
2844 * floatfns.c:
2845 * fns.c:
2846 * font.c:
2847 * fontset.c:
2848 * frame.c:
2849 * fringe.c:
2850 * image.c:
2851 * indent.c:
2852 * insdel.c:
2853 * keyboard.c:
2854 * keymap.c:
2855 * lread.c:
2856 * macros.c:
2857 * marker.c:
2858 * menu.c:
2859 * minibuf.c:
2860 * msdos.c:
2861 * nsfns.m:
2862 * nsmenu.m:
2863 * nsselect.m:
2864 * print.c:
2865 * process.c:
2866 * search.c:
2867 * sound.c:
2868 * syntax.c:
2869 * term.c:
2870 * terminal.c:
2871 * textprop.c:
2872 * undo.c:
2873 * w16select.c:
2874 * w32console.c:
2875 * w32fns.c:
2876 * w32font.c:
2877 * w32menu.c:
2878 * w32proc.c:
2879 * w32select.c:
2880 * window.c:
2881 * xdisp.c:
2882 * xfaces.c:
2883 * xfns.c:
2884 * xmenu.c:
2885 * xselect.c:
2886 * xsettings.c:
2887 * xsmfns.c: Likewise.
2888
2889 2010-07-08 Eli Zaretskii <eliz@gnu.org>
2890
2891 * process.c (kbd_is_on_hold, hold_keyboard_input)
2892 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2893
2894 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2895
2896 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2897 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2898 unless USE_LUCID.
2899
2900 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2901
2902 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2903 declaration.
2904
2905 Clean up include guards.
2906 * tparam.c: Remove include guards for config.h, string.h and code
2907 that assumes #ifndef emacs.
2908 * termcap.c:
2909 * unexalpha.c:
2910 * sysdep.c:
2911 * filemode.c:
2912 * filelock.c:
2913 * bidi.c: Likewise.
2914
2915 Remove prefix-args.c
2916 * prefix-args.c: Remove file.
2917 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2918 * Makefile.in (temacs${EXEEXT}): Remove references to
2919 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2920 (mostlyclean): Remove reference to prefix-args.
2921 (prefix-args): Remove.
2922
2923 Simplify cstart_of_data, start_of_code and related code.
2924 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2925 (start_of_data): Merge into start_of_data function.
2926 * sysdep.c (start_of_text): Remove. Move simplified versions of
2927 it in the only users: unexaix.c and unexec.c.
2928 (read_input_waiting): Remove local declaration of quit_char.
2929 (start, etext): Remove declarations.
2930 (start_of_data): Merge with the version in mem-limits.h and move
2931 to vm-limits.c.
2932 * vm-limit.c (start_of_data): Merged and simplified version of the
2933 code formerly in mem-limits.h and sysdep.c.
2934 * unexec.c (start): New declaration, moved from sysdep.c.
2935 (start_of_text): Simplified version of the code formerly in sysdep.c.
2936 * unexaix.c (start_of_text): Simplified version of the code
2937 formerly in sysdep.c.
2938 * m/alpha.h (HAVE_TEXT_START): Remove.
2939 (TEXT_START): Move ...
2940 * unexalpha.c (TEXT_START): ... here.
2941 * s/hpux10-20.h (TEXT_START): Remove.
2942 * s/darwin.h (TEXT_START):
2943 * m/mips.h (TEXT_START):
2944 * m/macppc.h (HAVE_TEXT_START):
2945 * m/m68k.h (TEXT_START):
2946 * m/iris4d.h (TEXT_START):
2947 * m/intel386.h (TEXT_START):
2948 * m/ibmrs6000.h (TEXT_START):
2949 * m/ia64.h (HAVE_TEXT_START):
2950 * s/msdos.h (TEXT_START): Likewise.
2951
2952 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2953
2954 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2955 (overrun_check_free, xstrdup, allocate_string)
2956 (allocate_string_data, compact_small_strings, Fmake_string)
2957 (make_unibyte_string, make_multibyte_string)
2958 (make_string_from_bytes, make_specified_string, make_float)
2959 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2960 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2961 memcpy, memmove, memset, memcmp.
2962 * atimer.c (start_atimer, set_alarm): Likewise.
2963 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2964 (mmap_realloc, init_buffer_once): Likewise.
2965 * callint.c (Fcall_interactively): Likewise.
2966 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2967 (getenv_internal_1): Likewise.
2968 * casefiddle.c (casify_object): Likewise.
2969 * ccl.c (ccl_driver): Likewise.
2970 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2971 * charset.c (load_charset_map_from_file)
2972 (load_charset_map_from_file, load_charset_map_from_vector)
2973 (Fdefine_charset_internal): Likewise.
2974 * cm.c (Wcm_clear): Likewise.
2975 * coding.c (decode_eol, decode_coding_object)
2976 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2977 * data.c (Faset): Likewise.
2978 * dired.c (directory_files_internal, file_name_completion_stat):
2979 Likewise.
2980 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2981 (clear_glyph_row, copy_row_except_pointers)
2982 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2983 (save_current_matrix, restore_current_matrix)
2984 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2985 (mirror_line_dance, scrolling_window): Likewise.
2986 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2987 Likewise.
2988 * doprnt.c (doprnt): Likewise.
2989 * editfns.c (Fuser_full_name, make_buffer_string_both)
2990 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2991 * emacs.c (sort_args): Likewise.
2992 * eval.c (Fapply, Ffuncall): Likewise.
2993 * fileio.c (Ffile_name_directory, make_temp_name)
2994 (Fexpand_file_name, search_embedded_absfilename)
2995 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2996 (auto_save_error): Likewise.
2997 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2998 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2999 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3000 (Fmake_hash_table): Likewise.
3001 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3002 * ftfont.c (ftfont_text_extents): Likewise.
3003 * getloadavg.c (getloadavg): Likewise.
3004 * image.c (define_image_type, make_image, make_image_cache)
3005 (x_create_x_image_and_pixmap, xbm_image_p)
3006 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3007 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3008 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3009 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3010 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3011 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3012 Likewise.
3013 * indent.c (scan_for_column, compute_motion): Likewise.
3014 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3015 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3016 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3017 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3018 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3019 (store_user_signal_events, menu_bar_items, tool_bar_items)
3020 (process_tool_bar_item, append_tool_bar_item)
3021 (read_char_minibuf_menu_prompt, read_key_sequence)
3022 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3023 Likewise.
3024 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3025 Likewise.
3026 * lisp.h (STRING_COPYIN): Likewise.
3027 * lread.c (Fload, read1, oblookup): Likewise.
3028 * msdos.c (Frecent_doskeys): Likewise.
3029 * nsfns.m (Fx_create_frame): Likewise.
3030 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3031 Likewise.
3032 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3033 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3034 Likewise.
3035 * nsmenu.m (ns_update_menubar): Likewise.
3036 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3037 * print.c (print_unwind, printchar, strout, print_string)
3038 (print_error_message): Likewise.
3039 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3040 (Fmake_network_process, Fnetwork_interface_list)
3041 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3042 (init_process): Likewise.
3043 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3044 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3045 Likewise.
3046 * scroll.c (do_scrolling, do_direct_scrolling)
3047 (scrolling_max_lines_saved): Likewise.
3048 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3049 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3050 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3051 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3052 (emacs_set_tty): Likewise.
3053 * term.c (encode_terminal_code, calculate_costs)
3054 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3055 Likewise.
3056 * termcap.c (tgetst1, gobble_line): Likewise.
3057 * termhooks.h (EVENT_INIT): Likewise.
3058 * tparam.c (tparam1): Likewise.
3059 * unexalpha.c (unexec): Likewise.
3060 * unexec.c (write_segment): Likewise.
3061 * unexmacosx.c (unexec_write_zero): Likewise.
3062 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3063 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3064 * w32font.c (w32font_list_family, w32font_text_extents)
3065 (w32font_list_internal, w32font_match_internal)
3066 (w32font_open_internal, compute_metrics, Fx_select_font):
3067 Likewise.
3068 * w32menu.c (set_frame_menubar, add_menu_item)
3069 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3070 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3071 * w32uniscribe.c (uniscribe_list_family): Likewise.
3072 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3073 * window.c (make_window, replace_window, set_window_buffer)
3074 (Fsplit_window): Likewise.
3075 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3076 (add_to_log, message3, x_consider_frame_title)
3077 (append_space_for_newline, extend_face_to_end_of_line)
3078 (decode_mode_spec_coding, init_glyph_string): Likewise.
3079 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3080 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3081 (face_attr_equal_p, make_realized_face, make_face_cache)
3082 (free_realized_faces, lookup_named_face, smaller_face)
3083 (face_with_height, lookup_derived_face)
3084 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3085 (Finternal_set_font_selection_order, realize_default_face)
3086 (compute_char_face, face_at_buffer_position)
3087 (face_for_overlay_string, face_at_string_position, merge_faces):
3088 Likewise.
3089 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3090 (Fx_window_property, x_create_tip_frame)
3091 (Fx_backspace_delete_keys_p): Likewise.
3092 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3093 (xfont_text_extents): Likewise.
3094 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3095 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3096 * xselect.c (x_queue_event, x_get_window_property)
3097 (receive_incremental_selection): Likewise.
3098 * xsmfns.c (x_session_check_input): Likewise.
3099 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3100 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3101 Likewise.
3102 * character.h (BCOPY_SHORT): Removed.
3103 * config.in: Regenerate.
3104 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3105 * emacs.c (main) [PROFILING]: Don't declare
3106 dump_opcode_frequencies.
3107 * lisp.h (safe_bcopy): Remove declaration.
3108 (memset) [!HAVE_MEMSET]: Declare.
3109 (memcpy) [!HAVE_MEMCPY]: Likewise.
3110 (memmove) [!HAVE_MEMMOVE]: Likewise.
3111 (memcmp) [!HAVE_MEMCMP]: Likewise.
3112 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3113 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3114 Don't define.
3115 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3116 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3117 (BCOPY_DOWNWARD_SAFE): Don't define.
3118 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3119 (memcpy) [!HAVE_MEMCPY]: Define.
3120 (memmove) [!HAVE_MEMMOVE]: Define.
3121 (memcmp) [!HAVE_MEMCMP]: Define.
3122
3123 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3124
3125 * process.c (kbd_is_on_hold): New variable.
3126 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3127 New functions.
3128 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3129 select on empty input mask.
3130 (init_process): Initialize kbd_is_on_hold to 0.
3131
3132 * process.h (hold_keyboard_input, unhold_keyboard_input)
3133 (kbd_on_hold_p): Declare.
3134
3135 * keyboard.c (input_available_signal): Declare.
3136 (kbd_buffer_nr_stored): New function.
3137 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3138 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3139 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3140 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3141 (tty_read_avail_input): If input is on hold, return.
3142 Don't read more that free slots in kbd_buffer (Bug#6571).
3143
3144 2010-07-07 Eli Zaretskii <eliz@gnu.org>
3145
3146 * msdos.h:
3147 * msdos.c:
3148 * dosfns.c:
3149 * w16select.c: Convert function definitions to ANSI C.
3150
3151 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3152 Remove unused prototypes.
3153
3154 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3155
3156 * coding.c, sysdep.c: Convert some more functions to standard C.
3157
3158 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3159
3160 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3161 (encode_coding_object): Use SPECPDL_INDEX.
3162 (syms_of_coding): Use DOS_NT.
3163
3164 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3165
3166 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3167
3168 Make the function member of Lisp_Subr use standard C prototypes.
3169 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3170 (DECL_ALIGN): Add a cast for the function.
3171 * eval.c (Feval, Ffuncall): Use the proper type for each type
3172 function call.
3173
3174 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
3175
3176 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3177 fringe face id, so face-remapping-alist works (Bug#6091).
3178
3179 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
3180
3181 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3182 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3183 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3184
3185 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3186
3187 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3188 * lisp.h: Declare x_get_keysym_name.
3189 * keyboard.c (modify_event_symbol): Don't declare
3190 x_get_keysym_name here.
3191
3192 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3193
3194 * ecrt0.c: Revert conversion to standard C.
3195
3196 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3197
3198 * vm-limit.c (memory_warnings):
3199 * keyboard.c (modify_event_symbol):
3200 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3201 (round2, emacs_rint):
3202 * process.c (send_process, old_sigpipe): Convert function
3203 definitions and declarations to standard C.
3204
3205 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
3206
3207 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3208 * xdisp.c: Convert function definitions to standard C.
3209
3210 * cm.c (cmputc): Arg C is now int, not char.
3211 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3212
3213 2010-07-05 James Cloos <cloos@jhcloos.com>
3214
3215 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3216
3217 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3218 _NET_WM_ICON_NAME atoms.
3219
3220 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3221 and _NET_WM_ICON_NAME properties, too, matching what is
3222 done in the Gtk+ case.
3223
3224 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3225
3226 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3227
3228 * xsmfns.c (SSDATA): New macro.
3229 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3230 passed to strlen/strcpy/strcat.
3231 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
3232 7:th arg to XChangeProperty to (unsigned char *).
3233
3234 * xsettings.c (something_changedCB, parse_settings)
3235 (apply_xft_settings): Reformat prototype.
3236 (something_changedCB, init_gconf): Remove unused variable i.
3237 (read_settings): Remove unused variable long_len.
3238
3239 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3240 (xg_get_image_for_pixmap, create_dialog)
3241 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3242 (menuitem_highlight_callback, make_menu_item)
3243 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3244 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3245 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3246 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3247 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3248 (xg_tool_bar_item_expose_callback): Reformat prototype.
3249 (xg_update_menubar): GList *group => GSList *group.
3250 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3251 before use.
3252 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3253 to GTK_IMAGE (wimage).
3254
3255 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3256
3257 * atimer.c: Use "" instead of <> for local includes for
3258 consistency with the rest of the code.
3259
3260 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3261 * xrdb.c (get_system_name):
3262 * window.c (shrink_windows):
3263 * syntax.c (forw_comment):
3264 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3265 (ins_del_costs):
3266 * mem-limits.h (start_of_data):
3267 * lread.c (readevalloop):
3268 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3269 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3270 * frame.c (x_get_focus_frame):
3271 * floatfns.c (fmod_float):
3272 * fileio.c (choose_write_coding_system):
3273 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3274 (malloc_initialize_hook, sort_args, synchronize_locale):
3275 * doprnt.c (doprnt):
3276 * dired.c (compile_pattern):
3277 * data.c (fmod_float):
3278 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3279 (map_char_table_for_charset):
3280 * charset.c (define_charset_internal):
3281 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3282 to standard C.
3283
3284 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
3285 Stefan Monnier <monnier@iro.umontreal.ca>
3286
3287 * lread.c (read1): Fix up last change to not mess up `c'.
3288
3289 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3290
3291 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3292
3293 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3294
3295 Fix prototypes.
3296
3297 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
3298 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
3299 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3300 arg, as required by internal_condition_case_1.
3301 * print.c (strout): Use const char* for arg PTR.
3302 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3303 (analyse_first): Fix "const const".
3304 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
3305 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
3306 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
3307
3308 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3309
3310 * alloc.c: Convert function definitions to standard C.
3311 * atimer.c:
3312 * bidi.c:
3313 * bytecode.c:
3314 * callint.c:
3315 * callproc.c:
3316 * casefiddle.c:
3317 * casetab.c:
3318 * category.c:
3319 * ccl.c:
3320 * character.c:
3321 * charset.c:
3322 * chartab.c:
3323 * cmds.c:
3324 * coding.c:
3325 * composite.c:
3326 * data.c:
3327 * dbusbind.c:
3328 * dired.c:
3329 * dispnew.c:
3330 * doc.c:
3331 * doprnt.c:
3332 * ecrt0.c:
3333 * editfns.c:
3334 * fileio.c:
3335 * filelock.c:
3336 * filemode.c:
3337 * fns.c:
3338 * font.c:
3339 * fontset.c:
3340 * frame.c:
3341 * fringe.c:
3342 * ftfont.c:
3343 * ftxfont.c:
3344 * gtkutil.c:
3345 * indent.c:
3346 * insdel.c:
3347 * intervals.c:
3348 * keymap.c:
3349 * lread.c:
3350 * macros.c:
3351 * marker.c:
3352 * md5.c:
3353 * menu.c:
3354 * minibuf.c:
3355 * prefix-args.c:
3356 * print.c:
3357 * ralloc.c:
3358 * regex.c:
3359 * region-cache.c:
3360 * scroll.c:
3361 * search.c:
3362 * sound.c:
3363 * strftime.c:
3364 * syntax.c:
3365 * sysdep.c:
3366 * termcap.c:
3367 * terminal.c:
3368 * terminfo.c:
3369 * textprop.c:
3370 * tparam.c:
3371 * undo.c:
3372 * unexelf.c:
3373 * window.c:
3374 * xfaces.c:
3375 * xfns.c:
3376 * xfont.c:
3377 * xftfont.c:
3378 * xgselect.c:
3379 * xmenu.c:
3380 * xrdb.c:
3381 * xselect.c:
3382 * xsettings.c:
3383 * xsmfns.c:
3384 * xterm.c: Likewise.
3385
3386 2010-07-03 Eli Zaretskii <eliz@gnu.org>
3387
3388 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3389 frames other than the initial one. Fix reversal of colors when
3390 `reverse' is specified in the frame parameters. Call
3391 update_face_from_frame_parameter instead of
3392 internal-set-lisp-face-attribute. Initialize screen colors from
3393 initial_screen_colors[] when f->default_face_done_p is zero,
3394 instead of depending on being called with default-frame-alist as
3395 the alist argument.
3396
3397 * xfaces.c (update_face_from_frame_parameter): Move out of
3398 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3399 with HAVE_WINDOW_SYSTEM.
3400
3401 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3402 to menu-bar-mode, if not set in the frame parameters or in
3403 default-frame-alist.
3404
3405 * w32console.c (sys_tputs): Adjust argument list to prototype in
3406 term.c.
3407
3408 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
3409
3410 * lisp.h (memory_warnings): Fix prototype.
3411
3412 * cm.h (evalcost): Fix prototype.
3413
3414 * cm.c (evalcost): Fix arg type.
3415
3416 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3417
3418 * term.c (term_clear_mouse_face, Fidentity):
3419 * syssignal.h (signal_handler_t):
3420 * lisp.h (memory_warnings):
3421 * coding.h (preferred_coding_system):
3422 * cm.h (evalcost):
3423 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3424
3425 2010-07-02 Eli Zaretskii <eliz@gnu.org>
3426
3427 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3428 from prototypes.
3429
3430 * msdos.h (load_pixmap): Don't define away.
3431
3432 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3433
3434 * lisp.h:
3435 * atimer.h: Remove define for P_.
3436
3437 * alloc.c: Remove __P and P_ from .c and .m files.
3438 * atimer.c:
3439 * buffer.c:
3440 * callint.c:
3441 * category.c:
3442 * charset.c:
3443 * chartab.c:
3444 * cm.c:
3445 * coding.c:
3446 * composite.c:
3447 * data.c:
3448 * dired.c:
3449 * dispnew.c:
3450 * doc.c:
3451 * editfns.c:
3452 * emacs.c:
3453 * eval.c:
3454 * fileio.c:
3455 * filelock.c:
3456 * fns.c:
3457 * font.c:
3458 * fontset.c:
3459 * frame.c:
3460 * ftfont.c:
3461 * ftxfont.c:
3462 * gmalloc.c:
3463 * gtkutil.c:
3464 * image.c:
3465 * indent.c:
3466 * intervals.c:
3467 * keyboard.c:
3468 * keymap.c:
3469 * lread.c:
3470 * marker.c:
3471 * menu.c:
3472 * minibuf.c:
3473 * print.c:
3474 * process.c:
3475 * scroll.c:
3476 * search.c:
3477 * sound.c:
3478 * strftime.c:
3479 * syntax.c:
3480 * sysdep.c:
3481 * term.c:
3482 * terminal.c:
3483 * textprop.c:
3484 * unexalpha.c:
3485 * w32console.c:
3486 * w32fns.c:
3487 * w32font.c:
3488 * w32menu.c:
3489 * w32term.c:
3490 * w32uniscribe.c:
3491 * window.c:
3492 * xdisp.c:
3493 * xfaces.c:
3494 * xfns.c:
3495 * xfont.c:
3496 * xftfont.c:
3497 * xmenu.c:
3498 * xselect.c:
3499 * xterm.c: Likewise.
3500
3501 Remove P_ and __P macros.
3502 * atimer.h: Remove P_ and __P macros.
3503 * buffer.h:
3504 * category.h:
3505 * ccl.h:
3506 * character.h:
3507 * charset.h:
3508 * cm.h:
3509 * coding.h:
3510 * composite.h:
3511 * dispextern.h:
3512 * disptab.h:
3513 * dosfns.h:
3514 * font.h:
3515 * fontset.h:
3516 * frame.h:
3517 * gtkutil.h:
3518 * indent.h:
3519 * intervals.h:
3520 * keyboard.h:
3521 * keymap.h:
3522 * lisp.h:
3523 * macros.h:
3524 * md5.h:
3525 * menu.h:
3526 * msdos.h:
3527 * nsterm.h:
3528 * puresize.h:
3529 * region-cache.h:
3530 * syntax.h:
3531 * syssignal.h:
3532 * systime.h:
3533 * termhooks.h:
3534 * w32font.h:
3535 * w32term.h:
3536 * widget.h:
3537 * window.h:
3538 * xgselect.h:
3539 * xsettings.h:
3540 * xterm.h: Likewise.
3541
3542 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3543
3544 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3545
3546 Cleanup old code.
3547 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3548 * syssignal.h: Remove code for Lynx, not supported anymore.
3549 * vm-limit.c: Remove unused code the depends on emacs not being
3550 defined and NO_LIM_DATA being defined.
3551 * mem-limits.h: Remove dead code.
3552
3553 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3554
3555 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3556
3557 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3558 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3559
3560 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3561 parameters, they are already absolute.
3562
3563 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3564 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
3565
3566 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3567
3568 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3569 Update FRAME_TOOLBAR_HEIGHT.
3570
3571 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3572 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
3573
3574 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
3575
3576 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3577 check default-frame-alist.
3578
3579 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3580
3581 * process.c (create_process): Avoid using invalid file descriptors.
3582
3583 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3584
3585 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3586
3587 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3588 Improve documentation. Return font regardless of use_system_font.
3589 (syms_of_xsettings): Improve documentation for font-use-system-font.
3590
3591 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3592
3593 * xfaces.c (realize_face): Garbage the frame if a face is removed
3594 (Bug#6593).
3595
3596 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3597
3598 * keyboard.c: Remove duplicate <setjmp.h>.
3599 (read_key_sequence): Remove volatile qualifiers.
3600
3601 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3602
3603 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3604 (struct glyph_row): New members left_fringe_offset and
3605 right_fringe_offset.
3606
3607 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3608 specially.
3609 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3610 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3611
3612 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
3613 Take account of bitmap offset.
3614 (draw_window_fringes): Take account of window vscroll.
3615 (update_window_fringes): Likewise. Extend top-aligned top indicator
3616 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3617 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3618 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3619
3620 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3621
3622 * w32fns.c (Qtooltip): Declare.
3623 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3624
3625 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3626
3627 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3628 grab on just Press (Bug#6499).
3629
3630 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
3631
3632 * frame.c (Qtooltip): New var.
3633 (delete_frame): Use it. Fix faulty if statement. Don't update
3634 mode line for tooltip frames. Suggested by Martin Rudalics.
3635
3636 * xfns.c (x_create_tip_frame):
3637 * w32fns.c (x_create_tip_frame): Use it.
3638
3639 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
3640
3641 * xftfont.c (xftfont_open): Check font width one by one also when
3642 spacing is dual.
3643
3644 * ftfont.c (ftfont_open): Ditto.
3645
3646 2010-06-30 Glenn Morris <rgm@gnu.org>
3647
3648 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3649
3650 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3651
3652 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3653 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3654 * s/darwin.h (SYSTEM_MALLOC):
3655 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3656
3657 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3658
3659 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3660 (ns_get_screen): Don't assign integer to f.
3661 (Fx_display_color_cells): Declarations before statements.
3662
3663 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3664
3665 * xfns.c (x_default_font_parameter): Remove got_from_system
3666 (Bug#6526).
3667
3668 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3669 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3670 defines based on what configure finds.
3671
3672 * xterm.c (XTflash): Use gtk_widget_get_window.
3673 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3674 gtk_adjustment_get_page_size.
3675 (handle_one_xevent): Use gtk_widget_get_mapped.
3676 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3677 messages.
3678
3679 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3680
3681 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3682 HAVE_GTK_FILE_SELECTION_NEW.
3683
3684 * gtkutil.c (xg_display_open, xg_display_close): Remove
3685 HAVE_GTK_MULTIDISPLAY, it is always defined.
3686 (xg_display_open): Return type is void.
3687 (gtk_widget_set_has_window)
3688 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3689 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3690 (gtk_adjustment_set_page_increment)
3691 (gtk_adjustment_get_step_increment): #define these if not found
3692 by configure.
3693 (remove_submenu): New define based on Gtk+ version.
3694 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3695 gtk_widget_get_window.
3696 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3697 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3698 (create_dialog): Use gtk_dialog_get_action_area and
3699 gtk_dialog_get_content_area.
3700 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3701 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3702 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3703 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3704 g_object_ref and g_object_unref.
3705 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3706 gtk_widget_get_sensitive.
3707 (xg_update_submenu): Use remove_submenu.
3708 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3709 properties instead to get old x and y position.
3710 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3711 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
3712 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
3713 (xg_get_tool_bar_widgets): New function.
3714 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3715 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3716 (toolbar_set_orientation): New #define based on if configure
3717 finds gtk_orientable_set_orientation.
3718 (xg_create_tool_bar): Call toolbar_set_orientation.
3719 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3720 instead of gtk_box_pack_start_defaults.
3721
3722 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
3723
3724 * cmds.c (Fdelete_backward_char): Move into Lisp.
3725
3726 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3727
3728 * s/freebsd.h (BSD4_2): Remove redundant definition.
3729 bsd-common.h defines it already.
3730
3731 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
3732
3733 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3734 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3735 tool-bar-mode, which are now set using these X resources at
3736 startup, to determine the defaults (Bug#2249).
3737
3738 * w32fns.c (Fx_create_frame):
3739 * nsfns.m (Fx_create_frame): Likewise.
3740
3741 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3742
3743 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
3744
3745 * gtkutil.c (xg_update_scrollbar_pos):
3746 Avoid C99 mid-block variable declaration.
3747
3748 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3749
3750 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3751
3752 * gtkutil.h (xg_show_scroll_bar): Remove.
3753
3754 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3755 if height is less than scroll bar min size.
3756 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3757
3758 * xfns.c (x_default_font_parameter): Try to open font from system
3759 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3760
3761 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
3762
3763 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3764
3765 2010-06-20 Eli Zaretskii <eliz@gnu.org>
3766
3767 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3768 most-positive-fixnum, be extra accurate when scrolling window
3769 start, to avoid missing the cursor line.
3770
3771 2010-06-19 Eli Zaretskii <eliz@gnu.org>
3772
3773 * xdisp.c (try_scrolling): Compute the limit for searching point
3774 in forward scroll from scroll_max, instead of an arbitrary limit
3775 of 10 screen lines. See
3776 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3777 and
3778 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3779 for details.
3780
3781 2010-06-16 Glenn Morris <rgm@gnu.org>
3782
3783 * editfns.c (Fbyte_to_string): Pacify compiler.
3784
3785 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3786
3787 * lread.c (read1): Phase out old-style backquotes a bit more.
3788
3789 2010-06-12 Eli Zaretskii <eliz@gnu.org>
3790
3791 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3792 bidimirror.h.
3793
3794 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3795
3796 * bidi.c (bidi_initialize): Remove explicit initialization of
3797 bidi_type_table; include biditype.h instead. Don't support
3798 entries whose second codepoint is zero. Initialize bidi_mirror_table.
3799 (bidi_mirror_char): Use bidi_mirror_table.
3800
3801 * biditype.h: New file.
3802
3803 * bidimirror.h: New file.
3804
3805 * window.c (syms_of_window): Doc fix (bug#6409).
3806
3807 2010-06-12 Romain Francoise <romain@orebokech.com>
3808
3809 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3810 ediff-hook.
3811
3812 2010-06-10 Glenn Morris <rgm@gnu.org>
3813
3814 * editfns.c (Fbyte_to_string): Pacify compiler.
3815
3816 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3817
3818 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3819
3820 * alloc.c (Fmake_byte_code): Don't access undefined argument
3821 (Bug#6517).
3822
3823 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
3824
3825 * xdisp.c (next_element_from_image): Ensure that after-strings are
3826 read the next time we hit handle_stop (Bug#1336).
3827
3828 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3829
3830 * lread.c (read1): Signal error if #s is not followed by paren.
3831
3832 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
3833
3834 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3835
3836 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3837
3838 2010-06-15 Glenn Morris <rgm@gnu.org>
3839
3840 * editfns.c (Fbyte_to_string): Pacify compiler.
3841
3842 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3843
3844 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3845 Check `object's type before accessing its guts.
3846
3847 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3848
3849 * s/usg5-4.h: Fix previous change.
3850 Suggested by Lawrence Mitchell <wence@gmx.li>
3851
3852 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3853
3854 * minibuf.c (Fall_completions): Add more checks.
3855
3856 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
3857
3858 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3859
3860 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3861
3862 * lread.c (X_OK): Remove, unused.
3863
3864 * dispnew.c: Remove obsolete comment.
3865
3866 Remove INCLUDED_FCNTL.
3867 * xterm.c (INCLUDED_FCNTL):
3868 * callproc.c (INCLUDED_FCNTL):
3869 * alloc.c (INCLUDED_FCNTL):
3870 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3871 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3872
3873 2010-06-07 Martin Rudalics <rudalics@gmx.at>
3874
3875 * window.c (Fselect_window): Move `record_buffer' up to the
3876 beginning of this function, so the buffer gets recorded
3877 even if the selected window does not change.
3878 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3879
3880 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
3881
3882 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3883 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3884
3885 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3886
3887 Remove BSTRING related code, all platforms define it.
3888 * s/usg5-4.h (BSTRING): Remove definition.
3889 * s/template.h (BSTRING):
3890 * s/msdos.h (BSTRING):
3891 * s/ms-w32.h (BSTRING):
3892 * s/hpux10-20.h (BSTRING):
3893 * s/gnu-linux.h (BSTRING):
3894 * s/darwin.h (BSTRING):
3895 * s/cygwin.h (BSTRING):
3896 * s/bsd-common.h (BSTRING):
3897 * s/aix4-2.h (BSTRING): Likewise.
3898 * sysdep.c: Remove code depending on BSTRING not being defined.
3899
3900 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
3901
3902 Remove obsolete macro BASE_LEADING_CODE_P.
3903 * character.h (BASE_LEADING_CODE_P): Remove.
3904 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3905 * buffer.c (Fset_buffer_multibyte):
3906 * indent.c (scan_for_column, compute_motion):
3907 * insdel.c (count_combining_before, count_combining_after):
3908 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3909
3910 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
3911
3912 Turn `directory-sep-char' into a noop.
3913
3914 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3915 (DIRECTORY_SEP): Define unconditionally.
3916
3917 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3918
3919 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3920 call dostounix_filename directly.
3921
3922 * fileio.c (CORRECT_DIR_SEPS): Remove.
3923 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3924 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3925 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3926 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3927
3928 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3929 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3930
3931 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3932
3933 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3934 (Bug#6346)
3935
3936 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3937
3938 * ccl.c (Fccl_program_p): Fix typo in docstring.
3939
3940 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3941
3942 Move UNEXEC definition to autoconf.
3943 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3944 * s/sol2-10.h (UNEXEC):
3945 * s/irix6-5.h (UNEXEC):
3946 * s/hpux10-20.h (UNEXEC):
3947 * s/gnu-linux.h (UNEXEC):
3948 * s/darwin.h (UNEXEC):
3949 * s/cygwin.h (UNEXEC):
3950 * s/bsd-common.h (UNEXEC):
3951 * s/aix4-2.h (UNEXEC):
3952 * m/alpha.h (UNEXEC): Likewise.
3953 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3954
3955 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3956
3957 Remove obsolete pre-unicode2 macros.
3958 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3959 * composite.c (composition_reseat_it):
3960 * data.c (Faset):
3961 * fns.c (Ffillarray):
3962 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3963 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3964
3965 2010-06-03 Juri Linkov <juri@jurta.org>
3966
3967 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3968 (Fswitch_to_buffer): Remove unused variable `err'.
3969
3970 2010-06-03 Glenn Morris <rgm@gnu.org>
3971
3972 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3973
3974 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3975 now that AH_BOTTOM does it.
3976
3977 * m/hp800.h (HAVE_ALLOCA):
3978 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3979
3980 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3981 Remove NOT_C_CODE tests, it is always true now.
3982
3983 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3984
3985 Fix config.h includes.
3986 * xsettings.c:
3987 * xgselect.c:
3988 * nsterm.m:
3989 * nsselect.m:
3990 * nsimage.m:
3991 * nsfont.m:
3992 * nsfns.m:
3993 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3994 other files do.
3995
3996 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3997
3998 * s/sol2-6.h: Remove obsolete comments.
3999
4000 Remove unnecessary alloca.h includes.
4001 * keymap.c: Do not include alloca.h, config.h does that.
4002 * sysdep.c: Likewise. Do not define fwrite, not used.
4003
4004 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4005
4006 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4007 the HAVE_TERMIO where it belongs (bug#6149).
4008
4009 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4010
4011 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4012 of bug#6305).
4013
4014 2010-05-30 Eli Zaretskii <eliz@gnu.org>
4015
4016 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4017 state is always cached (bug#6306).
4018
4019 2010-05-29 Eli Zaretskii <eliz@gnu.org>
4020
4021 Fix cursor motion in bidi-reordered continued lines.
4022 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4023 only after finding point's row. Fix the logic. Rewrite the loop
4024 over continuation lines in bidi-reordered buffers. Return
4025 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4026 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4027
4028 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
4029
4030 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4031
4032 2010-05-28 Kenichi Handa <handa@m17n.org>
4033
4034 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4035 Don't sheck SPEC if it is nil.
4036 (font_list_entities): Call font_delete_unmatched if
4037 Vface_ignored_fonts is non-nil. (Bug#6287)
4038
4039 2010-05-28 Glenn Morris <rgm@gnu.org>
4040
4041 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4042
4043 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4044
4045 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4046 whether to trash.
4047 (internal_delete_file, Frename_file): Callers changed.
4048 (delete_by_moving_to_trash): Doc fix.
4049 (Fdelete_directory_internal): Don't move to trash.
4050
4051 * callproc.c (delete_temp_file):
4052 * buffer.c (Fkill_buffer): Callers changed.
4053
4054 * lisp.h: Update prototype.
4055
4056 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4057
4058 * xdisp.c (redisplay_window): After redisplay, check if point is
4059 still valid before setting it (Bug#6177).
4060
4061 2010-05-27 Glenn Morris <rgm@gnu.org>
4062
4063 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4064 Convert comments to Makefile format.
4065
4066 * Makefile.in (bootstrap-clean): No more Makefile.c.
4067
4068 2010-05-26 Glenn Morris <rgm@gnu.org>
4069
4070 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4071 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4072
4073 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4074 Remove.
4075 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4076
4077 2010-05-26 Kenichi Handa <handa@m17n.org>
4078
4079 * composite.c (composition_compute_stop_pos): Fix condition for
4080 backward scanning.
4081
4082 2010-05-25 Glenn Morris <rgm@gnu.org>
4083
4084 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4085 Move before TEMACS_LDFLAGS.
4086 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4087 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4088
4089 * Makefile.in (NOT_C_CODE): No longer define.
4090 (config.h): No longer include.
4091
4092 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4093 variables it may reference.
4094
4095 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4096 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4097
4098 2010-05-25 Kenichi Handa <handa@m17n.org>
4099
4100 * dispextern.h (struct composition_it): New members rule_idx and
4101 charpos.
4102
4103 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4104 that the character positions of IT point the last character of the
4105 current grapheme cluster.
4106 (next_element_from_composition): Don't change character positions
4107 of IT.
4108 (append_composite_glyph): Set glyph->charpos to
4109 it->cmp_it.charpos.
4110
4111 * composite.c (autocmp_chars): Change the first argument to RULE,
4112 and try composition with RULE only.
4113 (composition_compute_stop_pos): Record the index number of the
4114 composition rule in CMP_IT->rule_idx.
4115 (composition_reseat_it): Call autocmp_chars repeatedly until the
4116 correct rule of the composition is found.
4117 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4118 is at the last character of the current grapheme cluster when
4119 CMP_IT->reversed_p is nonzero.
4120
4121 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4122
4123 * editfns.c (Fbyte_to_string): New function.
4124
4125 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4126
4127 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4128 Suggested by Masatake YAMATO <yamato@redhat.com>.
4129
4130 2010-05-23 Eli Zaretskii <eliz@gnu.org>
4131
4132 * dispextern.h (init_iterator): Sync prototype with changed definition.
4133
4134 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4135
4136 * s/netbsd.h: If terminfo is found, use it in preference to
4137 termcap. (Bug#6190) [Backport from trunk]
4138
4139 2010-05-19 Eli Zaretskii <eliz@gnu.org>
4140
4141 Redesign and reimplement bidi-aware edge positions of glyph rows.
4142
4143 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4144 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4145 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4146 and maxpos members instead of start.pos and end.pos, respectively.
4147
4148 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4149 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4150 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
4151 (try_window_reusing_current_matrix, try_window_id):
4152 Use ROW->minpos rather than ROW->start.pos.
4153 (init_from_display_pos, init_iterator): Use EMACS_INT for
4154 character and byte positions.
4155 (find_row_edges): Rename from find_row_end. Accept additional
4156 arguments for minimum and maximum buffer positions seen by
4157 display_line for this row. Don't use iterator to find the
4158 position following the maximum one; instead, increment the
4159 position found by display_line directly. Fix logic; eol_pos
4160 should be tested before the rest. Handle the case of characters
4161 delivered from display vector (bug#6036). Fix tests related to
4162 it->method. Handle the truncated_on_right_p rows.
4163 (RECORD_MAX_MIN_POS): New macro.
4164 (display_line): Use it to record the minimum and maximum buffer
4165 positions for glyphs in the row being assembled. Record the
4166 position of the newline that terminates the line. If word wrap is
4167 in effect, restore minimum and maximum positions seen up to the
4168 wrap point, when iterator returns to it.
4169 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4170 row and cursor not already at point. Restore original pre-bidi
4171 code for unidirectional buffers.
4172
4173 * dispnew.c (increment_row_positions, check_matrix_invariants):
4174 Increment and check row->start.pos and row->end.pos, in addition
4175 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4176
4177 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4178 Display truncated_on_left_p and truncated_on_right_p flags.
4179 Formatting fixes.
4180 (pmtxrows): Display the ordinal number of each row. Don't display
4181 rows beyond the last one.
4182
4183 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4184 it is not copied by bidi_copy_it.
4185
4186 2010-05-22 Eli Zaretskii <eliz@gnu.org>
4187
4188 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4189 (Bug#6237)
4190
4191 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
4192
4193 * image.c (Fimage_flush): Rename from image-refresh.
4194
4195 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
4196
4197 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4198 just one window.
4199
4200 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4201 (clear_image_cache): If the number of cached images is unusually
4202 large, decrease the cache eviction delay (Bug#6230).
4203
4204 2010-05-21 Glenn Morris <rgm@gnu.org>
4205
4206 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4207 Move these rules to ns.mk.
4208 * ns.mk: New file.
4209
4210 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4211
4212 * Makefile.in (CANNOT_DUMP): New, set by configure.
4213 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4214
4215 2010-05-20 Juri Linkov <juri@jurta.org>
4216
4217 * fileio.c (Fdelete_file): Change interative spec to use
4218 `read-file-name' like in `find-file-read-args' where the default
4219 value is `default-directory' instead of `buffer-file-name'.
4220 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4221
4222 2010-05-20 Kevin Ryde <user42@zip.com.au>
4223
4224 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4225 (Voverriding_terminal_local_map, Vsystem_key_alist)
4226 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4227
4228 2010-05-20 Glenn Morris <rgm@gnu.org>
4229
4230 * Makefile.in (DEPDIR): New constant.
4231 (DEPFLAGS): Set with configure, not cpp.
4232 (MKDEPDIR): New, set by configure.
4233 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4234 (clean): Use $DEPDIR.
4235 (deps_frag): Include from configure.
4236 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4237 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4238
4239 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4240 reallocation of the cache. (Bug#6210)
4241
4242 2010-05-19 Glenn Morris <rgm@gnu.org>
4243
4244 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4245
4246 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4247 (GNULIB_VAR): Remove.
4248 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4249
4250 * m/ibms390x.h (LINKER):
4251 * m/macppc.h (LINKER) [GNU_LINUX]:
4252 * s/aix4-2.h (ORDINARY_LINK):
4253 * s/cygwin.h (LINKER):
4254 * s/darwin.h (ORDINARY_LINK):
4255 * s/gnu.h (ORDINARY_LINK):
4256 * s/netbsd.h (LINKER):
4257 * s/usg5-4.h (ORDINARY_LINK):
4258 Move to configure.
4259
4260 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4261
4262 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
4263
4264 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4265 prevent stack overflow if number of arguments is too large
4266 (Bug#6214).
4267
4268 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
4269
4270 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4271
4272 2010-05-18 Glenn Morris <rgm@gnu.org>
4273
4274 * s/gnu-linux.h: Combine two conditionals.
4275
4276 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
4277 $(POST_ALLOC_OBJ).
4278
4279 * Makefile.in (RALLOC_OBJ): New, set by configure.
4280 (rallocobj): Replace with the previous variable.
4281 (otherobj): Use $RALLOC_OBJ.
4282
4283 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4284 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4285
4286 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4287 (gmallocobj, vmlimitobj): Replace with previous two variables.
4288 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4289
4290 2010-05-17 Glenn Morris <rgm@gnu.org>
4291
4292 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4293 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4294
4295 2010-05-16 Glenn Morris <rgm@gnu.org>
4296
4297 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4298
4299 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4300
4301 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4302 trailing "/".
4303
4304 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4305 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4306
4307 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4308 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4309 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4310 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4311 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4312
4313 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4314 Remove ${STARTFLAGS}, nothing ever sets it.
4315
4316 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4317
4318 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4319
4320 2010-05-16 Glenn Morris <rgm@gnu.org>
4321
4322 * Makefile.in (LIBX_BASE): Always define.
4323
4324 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4325
4326 * Makefile.in (LIBXT): Always define.
4327
4328 2010-05-15 Glenn Morris <rgm@gnu.org>
4329
4330 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
4331
4332 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4333 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4334
4335 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
4336
4337 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
4338 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4339
4340 * emacs.c (main): Initialize initial-environment and
4341 process-environment before generating from env, not after.
4342
4343 Handle --version reasonably in CANNOT_DUMP configuration.
4344 * emacs.c (emacs_version, emacs_copyright): New string variables.
4345 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4346 (syms_of_emacs): Defvar them, and initialize them from the C
4347 string variables.
4348 (main): If initialization hasn't been done, print initial version
4349 info from the C strings, instead of starting an interactive session.
4350
4351 2010-05-15 Eli Zaretskii <eliz@gnu.org>
4352
4353 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4354 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
4355 (bidi_paragraph_init): Remove redundant assertion that we are at
4356 the beginning of a line after call to bidi_find_paragraph_start.
4357
4358 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4359 (syms_of_xdisp): Defsubr it.
4360
4361 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4362
4363 * Makefile.in: Fix MSDOS-related comments.
4364
4365 2010-05-15 Glenn Morris <rgm@gnu.org>
4366
4367 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4368 (really-lwlib, really-oldXMenu): Always define.
4369 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4370
4371 * Makefile.in: Simplify cpp conditional.
4372
4373 * Makefile.in (${ns_appdir}): Simplify using umask.
4374
4375 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4376
4377 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4378
4379 * eval.c (specbind): Remove left-over duplicate test.
4380 Disallow let-binding frame-local vars. Add comment.
4381
4382 2010-05-14 Eli Zaretskii <eliz@gnu.org>
4383
4384 Make the cache of bidi iterator states dynamically allocated.
4385 * bidi.c (bidi_cache_shrink): New function.
4386 (bidi_init_it): Call it.
4387 (bidi_cache_iterator_state): Enlarge the cache if needed.
4388
4389 * bidi.c (bidi_move_to_visually_next): Rename from
4390 bidi_get_next_char_visually. All callers changed.
4391
4392 2010-05-14 Kenichi Handa <handa@m17n.org>
4393
4394 * dispextern.h (struct composition_it): New member reversed_p.
4395
4396 * composite.c (composition_compute_stop_pos): Search backward if
4397 ENDPOS < CHARPOS.
4398 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4399 Set CMP_IT->reversed_p.
4400 (composition_update_it): Pay attention to CMP_IT->reversed_p.
4401
4402 * xdisp.c (set_iterator_to_next):
4403 Call composition_compute_stop_pos with negative ENDPOS if we are
4404 scanning backward. Call composition_compute_stop_pos if scan
4405 direction is changed.
4406 (next_element_from_buffer): Call composition_compute_stop_pos with
4407 negative ENDPOS if we are scanning backward.
4408 (next_element_from_composition): Pay attention to
4409 IT->cmp_it.reversed_p.
4410
4411 2010-05-14 Kenichi Handa <handa@m17n.org>
4412
4413 * font.c (font_range): Return the range for the font found at first.
4414
4415 2010-05-14 Glenn Morris <rgm@gnu.org>
4416
4417 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4418
4419 * Makefile.in (mktime, X11, register): Move undefs to configure.
4420
4421 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4422 (MSDOS_X_OBJ): New variable.
4423 (MSDOS_SUPPORT_REAL): New constant.
4424 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4425 (obj): Use MSDOS_X_OBJ.
4426 (lisp): Use MSDOS_SUPPORT as a variable.
4427
4428 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4429 (GPM_MOUSE_SUPPORT): Now it's a constant.
4430 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4431 not cpp.
4432
4433 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
4434 (ns_appresdir): Remove, unused.
4435
4436 * Makefile.in (SHELL): Move outside cpp section.
4437
4438 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4439
4440 2010-05-13 Glenn Morris <rgm@gnu.org>
4441
4442 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4443 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4444
4445 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4446 HAVE_WINDOW_SYSTEM must be too.
4447
4448 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4449 (lisp): Remove WINNT_SUPPORT.
4450
4451 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4452 Let configure set these variables (to empty) in this case as well.
4453
4454 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4455 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4456
4457 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4458 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4459 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4460 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4461 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
4462 the values output by configure.
4463 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4464
4465 2010-05-12 Glenn Morris <rgm@gnu.org>
4466
4467 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4468 (LINKER_WAS_SPECIFIED): Remove.
4469
4470 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4471 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4472 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4473 * s/cygwin.h (LIB_GCC):
4474 * s/freebsd.h (LIB_GCC):
4475 * s/gnu-linux.h (LIB_GCC):
4476 * s/msdos.h (LIB_GCC):
4477 * s/netbsd.h (LIB_GCC):
4478 Move to configure.
4479
4480 2010-05-11 Karel Klic <kklic@redhat.com>
4481
4482 * ftfont.c: Fix incorrect parentheses of #if condition for
4483 definining M17N_FLT_USE_NEW_FEATURE.
4484
4485 2010-05-11 Glenn Morris <rgm@gnu.org>
4486
4487 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4488 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4489
4490 2010-05-10 Eli Zaretskii <eliz@gnu.org>
4491
4492 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4493 unibyte buffers. See
4494 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4495
4496 2010-05-10 Glenn Morris <rgm@gnu.org>
4497
4498 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4499 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4500 (LIBES): Use LIBS_SYSTEM as a variable.
4501 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4502 * s/aix4-2.h (LIBS_SYSTEM):
4503 * s/freebsd.h (LIBS_SYSTEM):
4504 * s/hpux10-20.h (LIBS_SYSTEM):
4505 * s/sol2-6.h (LIBS_SYSTEM):
4506 * s/unixware.h (LIBS_SYSTEM):
4507 Move to configure.
4508
4509 * s/aix4-2.h (MAIL_USE_LOCKF):
4510 * s/bsd-common.h (MAIL_USE_FLOCK):
4511 * s/darwin.h (MAIL_USE_FLOCK):
4512 * s/gnu-linux.h (MAIL_USE_FLOCK):
4513 * s/irix6-5.h (MAIL_USE_FLOCK):
4514 * s/template.h (MAIL_USE_FLOCK):
4515 Move to configure.
4516
4517 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
4518
4519 * Version 23.2 released.
4520
4521 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
4522
4523 * composite.c (autocmp_chars): Save point as marker before calling
4524 auto-composition-function (Bug#5984).
4525
4526 * lisp.h (restore_point_unwind): Add prototype.
4527
4528 * fileio.c (restore_point_unwind): Remove static attribute.
4529
4530 2010-05-08 Kenichi Handa <handa@m17n.org>
4531
4532 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4533 new feature of libotf and m17n-flt.
4534 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4535 Call OTF_check_features even if no specific feature is given.
4536 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4537 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4538 that OUT is NULL. Use OTF_drive_gsub_with_log and
4539 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4540 OTF_drive_gpos.
4541 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
4542 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4543 Setup mflt_enable_new_feature and mflt_try_otf.
4544
4545 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4546
4547 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4548
4549 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4550 box and toolbar (Bug #6139).
4551 (xg_create_tool_bar): Remove comment (Bug #6139).
4552 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4553 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4554
4555 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
4556
4557 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4558 Update dependencies.
4559
4560 2010-05-08 Eli Zaretskii <eliz@gnu.org>
4561
4562 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4563 R2L lines.
4564
4565 2010-05-08 Glenn Morris <rgm@gnu.org>
4566
4567 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4568
4569 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4570 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4571 (termcapobj): Replace with TERMCAP_OBJ.
4572 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4573 (LIBES): Use LIBS_TERMCAP as a variable.
4574
4575 * s/freebsd.h (osreldate.h): No longer include, since this file
4576 does not use __FreeBSD_version any more.
4577
4578 * s/aix4-2.h (TERMINFO):
4579 * s/cygwin.h (TERMINFO):
4580 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4581 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4582 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4583 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4584 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4585 * s/irix6-5.h (TERMINFO):
4586 * s/netbsd.h (LIBS_TERMCAP):
4587 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4588 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4589 * s/usg5-4.h (TERMINFO):
4590 Move to configure.
4591
4592 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4593
4594 * eval.c (unbind_to): Don't unbind a local binding into the global
4595 binding when the local binding disappeared. Inversely, don't unbind
4596 a global binding into a newly created local binding.
4597 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4598 can specify the frame to use, when applicable. Adjust callers.
4599
4600 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
4601 Stefan Monnier <monnier@iro.umontreal.ca>
4602
4603 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4604
4605 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4606
4607 * w32fns.c: Include w32.h.
4608 (Fw32_shell_execute): Decode the error message before passing it
4609 to `error'. (Bug#6126)
4610
4611 * msdos.c (dos_set_window_size):
4612 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4613 instead of `XSYMBOL (foo)->value'.
4614
4615 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4616
4617 Fix the MS-DOS build, broken by autoconfiscation.
4618
4619 * Makefile.in: Don't use Make-style comments past the "start of
4620 cpp stuff" line.
4621 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4622
4623 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4624 edited directly by msdos/sed1v2.inp).
4625
4626 2010-05-07 Glenn Morris <rgm@gnu.org>
4627
4628 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4629 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4630 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4631 move out of cpp section.
4632 * s/freebsd.h (LD_SWITCH_SYSTEM):
4633 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4634 * s/netbsd.h (LD_SWITCH_SYSTEM):
4635 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4636
4637 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4638
4639 Define LIB_STANDARD and START_FILES using autoconf.
4640 * s/usg5-4.h (LIB_STANDARD):
4641 * s/netbsd.h (START_FILES):
4642 * s/irix6-5.h (LIB_STANDARD):
4643 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4644 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4645 * s/freebsd.h (START_FILES):
4646 * s/darwin.h (START_FILES):
4647 * s/cygwin.h (START_FILES):
4648 * s/aix4-2.h (LIB_STANDARD):
4649 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4650 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4651 autoconf, not cpp.
4652
4653 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4654
4655 Remove NEED_BSDTTY and NEED_UNISTD_H.
4656 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4657 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4658 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4659 <sys/ptyio.h> and <unistd.h>.
4660
4661 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4662
4663 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4664 * s/gnu.h (START_FILES): Remove empty definition.
4665
4666 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4667
4668 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4669
4670 2010-05-06 Glenn Morris <rgm@gnu.org>
4671
4672 * Makefile.in (CPP, LN_S): Remove unused variables.
4673
4674 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4675
4676 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4677
4678 2010-05-05 Lawrence Mitchell <wence@gmx.li>
4679
4680 * m/sparc.h: Fix typo in earlier change.
4681
4682 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4683
4684 Misc tweaks.
4685 * eval.c (Fdefvaralias): Remove unintended nested if.
4686 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4687
4688 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
4689
4690 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4691
4692 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4693
4694 Remove BSD_PGRPS.
4695 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4696 * s/gnu-linux.h (BSD_PGRPS): Remove.
4697 * term.c (dissociate_if_controlling_tty):
4698 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4699 (init_sys_modes, reset_sys_modes):
4700 * emacs.c (main):
4701 * callproc.c (Fcall_process, child_setup): Remove code depending
4702 on BSD_PGRPS.
4703
4704 Remove POSIX_SIGNALS.
4705 * s/usg5-4.h (POSIX_SIGNALS):
4706 * s/netbsd.h (POSIX_SIGNALS):
4707 * s/msdos.h (POSIX_SIGNALS):
4708 * s/ms-w32.h (POSIX_SIGNALS):
4709 * s/hpux11.h (POSIX_SIGNALS):
4710 * s/gnu.h (POSIX_SIGNALS):
4711 * s/gnu-linux.h (POSIX_SIGNALS):
4712 * s/freebsd.h (POSIX_SIGNALS):
4713 * s/darwin.h (POSIX_SIGNALS):
4714 * s/cygwin.h (POSIX_SIGNALS):
4715 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4716 * s/unixware.h:
4717 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4718 * process.c (create_process):
4719 * syssignal.h:
4720 * sysdep.c (wait_for_termination, init_signals):
4721 * process.c (create_process):
4722 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4723 remove all code that assumes the contrary.
4724
4725 2010-05-04 Glenn Morris <rgm@gnu.org>
4726
4727 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4728 variable.
4729 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4730 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4731 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4732 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4733 LD_SWITCH_SYSTEM_tmp.
4734 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4735 New variables, set by configure.
4736
4737 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4738 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4739 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4740 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4741 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4742
4743 * s/aix4-2.h (C_SWITCH_SYSTEM):
4744 * m/alpha.h (C_SWITCH_MACHINE):
4745 Move to configure.in.
4746 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4747 New variables, set by configure.
4748 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4749 $c_switch_machine and $c_switch_system.
4750
4751 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4752
4753 * s/hpux10-20.h (LIB_STANDARD): New definition.
4754 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4755 on it, not used anymore.
4756
4757 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
4758
4759 * eval.c (internal_condition_case_n): Rename from
4760 internal_condition_case_2.
4761 (internal_condition_case_2): New function.
4762
4763 * xdisp.c (safe_call): Use internal_condition_case_n.
4764
4765 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4766 (internal_delete_file, Frename_file): Callers changed.
4767
4768 * buffer.c (Fkill_buffer):
4769 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4770
4771 * lisp.h: Update prototypes.
4772
4773 2010-05-03 Glenn Morris <rgm@gnu.org>
4774
4775 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4776 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4777 (LIBXT): Set with configure, not cpp.
4778 (LIBX): Remove.
4779 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4780
4781 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4782
4783 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4784 The FreeBSD is not needed, the default works, Solaris version is
4785 not needed, and the remaining case is not supported by configure.
4786
4787 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4788
4789 * xsmfns.c (CHDIR_OPT): New define.
4790 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4791 restarting emacs.
4792
4793 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4794 shut_down_emacs.
4795
4796 * emacs.c (USAGE1): Mention --chdir.
4797 (main): Handle --chdir.
4798 (standard_args): Add --chdir.
4799 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4800 #5552).
4801
4802 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4803
4804 Remove LD_SWITCH_MACHINE.
4805 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4806 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4807
4808 Clean up IRIX code.
4809 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4810 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4811
4812 Clean up AIX code.
4813 * m/ibmrs6000.inp: Remove file, unused.
4814 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4815 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4816 definition ...
4817 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4818
4819 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4820 unused.
4821
4822 2010-05-01 Eli Zaretskii <eliz@gnu.org>
4823
4824 Emulate POSIX_SIGNALS on MS-Windows.
4825
4826 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4827 (SIG_SETMASK, SIG_UNBLOCK): Define.
4828
4829 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4830 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4831 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4832
4833 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4834 New stubs.
4835
4836 Miscellaneous fixes of bidi display.
4837
4838 * xdisp.c (find_row_end): New function, refactored from display_line.
4839 (display_line): Use it.
4840 (extend_face_to_end_of_line): In almost-filled rows, extend only
4841 if the row is R2L and not continued.
4842 (display_line): Fix prepending of truncation glyphs to R2L rows.
4843 Preserve overlay and string info in row->end.
4844 (insert_left_trunc_glyphs): Support addition of left truncation
4845 glyphs to R2L rows.
4846 (set_cursor_from_row): Don't place cursor on the vertical border
4847 glyph between adjacent windows. Fix a crash when a display string
4848 is continued to the next line. Don't return zero if cursor was
4849 found by `cursor' property of a display string.
4850 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4851 test for that explicitly.
4852
4853 2010-05-01 Glenn Morris <rgm@gnu.org>
4854
4855 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4856 for clarity.
4857 (OTHER_OBJ): Remove.
4858 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4859 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4860
4861 2010-05-01 Karel Klíč <kklic@redhat.com>
4862
4863 * fileio.c (Ffile_selinux_context): Context functions may return null.
4864
4865 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4866
4867 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
4868
4869 2010-04-30 Glenn Morris <rgm@gnu.org>
4870
4871 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4872 (OTHER_OBJ): Define as a separate variable, for clarity.
4873
4874 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4875
4876 * xsettings.c: include limits.h and update file comment.
4877
4878 2010-04-30 Glenn Morris <rgm@gnu.org>
4879
4880 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4881 Set with configure, not cpp.
4882 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4883
4884 * Makefile.in (mallocobj): Remove.
4885 (otherobj): Simplify using @OTHER_OBJ@.
4886
4887 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4888 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4889 Don't bother making nsgui.h dependency platform-specific.
4890
4891 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4892
4893 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4894
4895 * process.c (read_process_output, exec_sentinel): Don't burp if the
4896 sentinel/filter kills the current buffer (bug#6060).
4897
4898 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
4899 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4900 Remove unused var `args'.
4901 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4902 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4903 * doc.c (store_function_docstring): Use XSETCAR.
4904
4905 2010-04-28 Glenn Morris <rgm@gnu.org>
4906
4907 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4908 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4909
4910 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4911
4912 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4913 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4914
4915 * Makefile.in (FONT_OBJ): New, set by configure.
4916 (FONT_DRIVERS): Use $FONT_OBJ.
4917
4918 * Makefile.in (LIBXMU): Set with configure, not cpp.
4919 * s/aix4-2.h (LIBXMU):
4920 * s/hpux10-20.h (LIBXMU):
4921 Remove definition, now set in configure.
4922
4923 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4924
4925 * m/amdx86-64.h [i386]: Move this test to configure.in.
4926
4927 2010-04-27 Glenn Morris <rgm@gnu.org>
4928
4929 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4930 * s/unixware.h (NEED_LIBW): Remove definition.
4931
4932 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4933 (TOOLKIT_LIBW): New, set by configure.
4934 (@X_TOOLKIT_TYPE@): No longer define it.
4935
4936 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4937 (MOTIF_LIBW): Set with configure, not cpp.
4938 * s/aix4-2.h (LIB_MOTIF):
4939 * s/gnu-linux.h (LIB_MOTIF):
4940 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4941
4942 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4943
4944 Reduce CPP usage.
4945 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4946 (obj): Use autoconf for unexec instead of cpp.
4947 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4948 definitions and undefs. Inline definitions in the only user.
4949 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
4950
4951 2010-04-27 Glenn Morris <rgm@gnu.org>
4952
4953 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4954 since the defaults (set by the system file) are fine in most cases.
4955 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4956 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4957 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4958 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4959 Remove definitions, since they are set correctly in s/gnu-linux.h.
4960 * s/freebsd.h (START_FILES, LIB_STANDARD):
4961 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4962 * s/hpux10-20.h (START_FILES):
4963 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4964 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4965
4966 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4967 (MOTIF_LIBW): Use $LIBXP.
4968 (otherobj): Use $WIDGET_OBJ.
4969
4970 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4971
4972 * Makefile.in (LIBS_MACHINE): Remove, unused.
4973
4974 Use autoconf instead of cpp for LIB_MATH.
4975 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4976 * s/cygwin.h (LIB_MATH): Likewise.
4977 * Makefile.in (LIB_MATH): Do not define with cpp.
4978 (LIBES): Use autoconf for LIB_MATH.
4979
4980 2010-04-26 Kenichi Handa <handa@m17n.org>
4981
4982 * composite.c (Ffind_composition_internal): Fix the return value
4983 for an automatic composition.
4984
4985 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4986
4987 Remove all NO_ARG_ARRAY uses.
4988 * fns.c (concat2, concat3, nconc2):
4989 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4990 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4991 * m/xtensa.h (NO_ARG_ARRAY):
4992 * m/template.h (NO_ARG_ARRAY):
4993 * m/sparc.h (NO_ARG_ARRAY):
4994 * m/sh3.h (NO_ARG_ARRAY):
4995 * m/mips.h (NO_ARG_ARRAY):
4996 * m/macppc.h (NO_ARG_ARRAY):
4997 * m/iris4d.h (NO_ARG_ARRAY):
4998 * m/intel386.h (NO_ARG_ARRAY):
4999 * m/ibms390x.h (NO_ARG_ARRAY):
5000 * m/ibms390.h (NO_ARG_ARRAY):
5001 * m/ibmrs6000.h (NO_ARG_ARRAY):
5002 * m/ia64.h (NO_ARG_ARRAY):
5003 * m/hp800.h (NO_ARG_ARRAY):
5004 * m/arm.h (NO_ARG_ARRAY):
5005 * m/amdx86-64.h (NO_ARG_ARRAY):
5006 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5007
5008 2010-04-25 Eli Zaretskii <eliz@gnu.org>
5009
5010 * xdisp.c (display_line): Don't assume 2nd call to
5011 get_next_display_element cannot return zero. (Bug#6030)
5012 (iterate_out_of_display_property): New function, body from pop_it.
5013 (pop_it): Use it.
5014
5015 2010-04-24 Glenn Morris <rgm@gnu.org>
5016
5017 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5018 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5019 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5020 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5021
5022 2010-04-24 Eli Zaretskii <eliz@gnu.org>
5023
5024 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5025 use `get_next_display_element' and `set_iterator_to_next' to
5026 advance to the next character, when looking for the character that
5027 begins the next row.
5028
5029 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
5030 definition of "struct Lisp_Symbol".
5031
5032 2010-04-24 Glenn Morris <rgm@gnu.org>
5033
5034 * Makefile.in (CRT_DIR): New variable, set by configure.
5035 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5036 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5037
5038 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5039
5040 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5041
5042 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5043
5044 Remove redundant flags.
5045 * s/freebsd.h (C_SWITCH_SYSTEM):
5046 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5047 * s/netbsd.h (C_SWITCH_SYSTEM):
5048 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5049 of these.
5050
5051 Simplify m/intel386.h.
5052 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5053 user: ecrt0.c.
5054 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5055 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5056 the only user: s/unixware.h.
5057 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5058 from m/intel386.h.
5059 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5060 moved here from m/intel386.h.
5061
5062 * m/mips.h: Remove #if 0 code.
5063
5064 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5065
5066 Fix display of composed characters from L2R scripts in bidi buffers.
5067 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5068 After advancing IT past the composition, resync the bidi iterator
5069 with IT's position. (Bug#5977)
5070
5071 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5072
5073 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5074 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5075
5076 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5077
5078 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5079
5080 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5081
5082 Support `display' text properties and overlay strings in bidi buffers.
5083 * xdisp.c (pop_it): When the stack is popped after displaying
5084 from a string, bidi-iterate to exit from the text portion covered
5085 by the `display' property or overlay. (Bug#5988, bug#5920)
5086
5087 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5088
5089 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5090 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5091
5092 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5093 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5094
5095 Simplify STARTFILES definition.
5096 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5097 relying on Makefile.in to define it.
5098 * s/cygwin.h (START_FILES): Likewise.
5099 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5100
5101 Clean up Solaris code.
5102 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5103 (LIB_MOTIF): Remove, configure takes care of this.
5104 (NOT_USING_MOTIF): Remove, unused.
5105 * xrdb.c: Remove #if 0-ed #include.
5106 (SYSV): Remove conditional for old SysV.
5107 * sysdep.c (closedir): Remove conditional code for Solaris,
5108 Solaris has closedir.
5109
5110 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5111
5112 * xsettings.c (read_and_apply_settings): Check if current_font is
5113 NULL before strcmp (Bug#6001).
5114
5115 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5116
5117 Clean up HP-UX files.
5118 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5119 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5120 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5121 * s/hpux10-20.h: ... to the only user, here.
5122
5123 2010-04-21 Eli Zaretskii <eliz@gnu.org>
5124
5125 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5126 use buffer-local values of paragraph-start and paragraph-separate.
5127 <paragraph_start_re, paragraph_separate_re>: Rename from
5128 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5129 (Bug#5992)
5130
5131 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5132
5133 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5134 current_tool_bar_style are new.
5135 (store_config_changed_event): Rename from store_font_changed_event.
5136 (XSETTINGS_TOOL_BAR_STYLE): New define.
5137 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5138 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5139 HAVE_XFT.
5140 (something_changedCB): store_font_changed_event is now
5141 store_config_changed_event.
5142 (parse_settings): Rename from parse_xft_settings. Read
5143 non-xft xsettings outside #ifdef HAVE_XFT.
5144 (read_settings): Renamed from read_xft_settings.
5145 (apply_xft_settings): Take current settings as parameter. Do not
5146 call read_(xft)_settings.
5147 (read_and_apply_settings): New function.
5148 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5149 read_and_apply_settings if there are settings to be read.
5150 (init_xsettings): Renamed from init_xfd_settings.
5151 Call read_and_apply_settings unconditionally.
5152 (xsettings_initialize): Call init_xsettings.
5153 (Ftool_bar_get_system_style): New function.
5154 (syms_of_xsettings): Define Qmonospace_font_name and
5155 Qtool_bar_style. Initialize current_tool_bar_style to nil.
5156 defsubr Stool_bar_get_system_style. Fprovide on
5157 dynamic-setting.
5158 Move misplaced HAVE_GCONF
5159
5160 * xsettings.h (Ftool_bar_get_system_style): Declare.
5161
5162 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5163 Qtext, Qboth, Qboth_horiz are new.
5164 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5165 Vtool_bar_style, tool_bar_max_label_size.
5166
5167 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5168
5169 * keyboard.c: QClabel is new.
5170 (parse_tool_bar_item): Take out QClabel from tool bar items.
5171 Try to construct a label if ther is no QClabel.
5172 (syms_of_keyboard): Intern :label as QClabel.
5173
5174 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5175 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5176 New.
5177
5178 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5179 dynamic-setting.el.
5180
5181 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5182 (xg_make_tool_item, xg_show_toolbar_item): New function.
5183 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5184 Call xg_make_tool_item to make a tool bar item.
5185 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5186
5187 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5188 into account for toolbars.
5189
5190 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5191
5192 * data.c (make_blv): Declarations before code (Bug#5993).
5193
5194 2010-04-21 Glenn Morris <rgm@gnu.org>
5195
5196 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5197 Define using autoconf, not cpp.
5198 (LIBXSM): New variable, set by autoconf.
5199 (LIBXT): Use $LIBXSM.
5200
5201 2010-04-21 Dan Nicolaescu <local_user@dannlt>
5202
5203 Remove NOMULTIPLEJOBS, unused.
5204 * s/template.h (NOMULTIPLEJOBS):
5205 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5206
5207 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5208 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5209 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5210 detects -znocombreloc and passes it to the linker
5211 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5212
5213 2010-04-21 Glenn Morris <rgm@gnu.org>
5214
5215 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5216
5217 2010-04-21 Karel Klíč <kklic@redhat.com>
5218
5219 * Makefile.in (LIBSELINUX_LIBS): New.
5220 (LIBES): Add $LIBSELINUX_LIBS.
5221 * eval.c, lisp.h (call7): New function.
5222 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5223 (Ffile_selinux_context, Fset_file_selinux_context):
5224 New functions.
5225 (Fcopy_file): New parameter preserve-selinux-context.
5226 (Frename_file): Preserve selinux context when renaming by copy-file.
5227
5228 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
5229 Eli Zaretskii <eliz@gnu.org>
5230
5231 Don't depend on cm.c or termcap.c on Windows, use stubs.
5232 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5233 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5234 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5235 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5236 (sys_tputs, sys_tgetstr): New stubs.
5237 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5238 (tputs, tgetstr): New; define to sys_*.
5239
5240 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
5241
5242 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5243
5244 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5245
5246 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5247 Just signal a warning rather than an error when inside a let.
5248 (Fmake_variable_frame_local): Add the same test.
5249
5250 * font.c (syms_of_font): Make the style table vars read-only.
5251
5252 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5253 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5254
5255 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5256
5257 2010-04-20 Eli Zaretskii <eliz@gnu.org>
5258
5259 Fix R2L paragraph display on TTY.
5260
5261 * xdisp.c (unproduce_glyphs): New function.
5262 (display_line): Use it when produced glyphs are discarded from R2L
5263 glyph rows.
5264 (append_composite_glyph): In R2L rows, prepend the glyph rather
5265 than appending it.
5266
5267 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5268 rather than append it. Set up the resolved_level and bidi_type
5269 attributes of the appended glyph.
5270 (produce_special_glyphs): Mirror the backslash continuation
5271 character in R2L lines.
5272
5273 Implement display of R2L paragraphs in GUI sessions.
5274
5275 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5276 append_stretch_glyph.
5277 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5278 off-by-one error in computing x at end of text in the row.
5279 (append_stretch_glyph): In reversed row, prepend the glyph rather
5280 than append it. Set resolved_level and bidi_type of the glyph.
5281 (extend_face_to_end_of_line): If the row is reversed, prepend a
5282 stretch glyph whose width is such that the rightmost glyph will be
5283 drawn at the right margin of the window. Fix off-by-one error on
5284 TTY frames in testing whether a line needs face extension. Fix
5285 face extension at ZV. If this is the last glyph row, use
5286 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5287 region face.
5288 (set_cursor_from_row, display_line): Use
5289 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5290 row->continuation_lines_width.
5291 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5292 are at ZV. Fixes a crash when reseated to ZV by
5293 try_window_reusing_current_matrix.
5294 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5295 which happens with R2L glyph rows. Fixes a crash when inserting a
5296 character at end of an R2L line.
5297 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5298 treat them as having zero-width characters. Improve comments.
5299 Don't reverse pos_before and pos_after for reversed glyph rows.
5300 Set cursor.x to negative value when the cursor might be on the
5301 left fringe.
5302 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5303 left fringe, not the right one.
5304 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5305 (erase_phys_cursor): For reversed cursor_row, support cursor on
5306 the left fringe.
5307
5308 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5309 of continuation indicators on the fringes.
5310 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5311 left fringe.
5312
5313 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5314 draw cursor on the left fringe.
5315
5316 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5317 cursor on the left fringe.
5318
5319 * dispnew.c (update_text_area): Handle reversed desired rows when
5320 the cursor is on the left fringe.
5321 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5322 below, not by 0, for when the cursor is on the left fringe.
5323
5324 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5325
5326 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5327 widget is a scrollbar.
5328
5329 2010-04-20 Kenichi Handa <handa@m17n.org>
5330
5331 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5332 only when the arg CHARSET_LIST is nil.
5333
5334 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5335
5336 Make variable forwarding explicit rather the using special values.
5337 Basically, this makes the structure of buffer-local values and object
5338 forwarding explicit in the type of Lisp_Symbols rather than use
5339 special Lisp_Objects for that. This tends to lead to slightly more
5340 verbose code, but is more C-like, simpler, and makes it easier to make
5341 sure we handled all cases, among other things by letting the compiler
5342 help us check it.
5343 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5344 Removing forwarding objects.
5345 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5346 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5347 explicit rather than hiding them inside Lisp_Object "values".
5348 (XFWDTYPE): New macro.
5349 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5350 (XBUFFER_LOCAL_VALUE): Remove.
5351 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5352 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5353 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5354 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5355 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5356 Remove the Lisp_Misc_* header.
5357 (struct Lisp_Buffer_Local_Value): Redefine.
5358 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5359 (struct Lisp_Misc_Any): Add filler to get the right size.
5360 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5361 Lisp_Intfwd.
5362 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5363 (DEFVAR_KBOARD): Allocate a forwarding object.
5364 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5365 (let_shadows_global_binding_p): New function.
5366 (union Lisp_Val_Fwd): New type.
5367 (make_blv): New function.
5368 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5369 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5370 (swap_in_symval_forwarding, find_symbol_value, Fset)
5371 (let_shadows_buffer_binding_p, set_internal, default_value)
5372 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5373 (Fkill_local_variable, Fmake_variable_frame_local)
5374 (Flocal_variable_p, Flocal_variable_if_set_p)
5375 (Fvariable_binding_locus):
5376 * xdisp.c (select_frame_for_redisplay):
5377 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5378 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5379 * frame.c (store_frame_param):
5380 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5381 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5382 value structure.
5383 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5384 (clone_per_buffer_values): Only adjust markers into the current buffer.
5385 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5386 (Fbuffer_local_value, set_buffer_internal_1)
5387 (swap_out_buffer_local_variables):
5388 Adapt to the new symbol value structure.
5389 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5390 (defvar_per_buffer): Take a new arg for the fwd object.
5391 (buffer_lisp_local_variables): Return a proper alist (different fix
5392 for bug#4138).
5393 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5394 (Fgarbage_collect): Don't handle buffer_defaults specially.
5395 (mark_object): Handle new symbol value structure rather than the old
5396 special Lisp_Misc_* objects.
5397 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5398 * term.c (set_tty_color_mode):
5399 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5400 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5401 a buffer_local_flags.
5402 * print.c (print_object): Get rid of impossible forwarding objects.
5403
5404 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5405
5406 * bidi.c (bidi_get_type, bidi_get_category)
5407 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
5408 (bidi_type_of_next_char, bidi_level_of_next_char):
5409 Declare static. Use `INLINE' rather than `inline'.
5410
5411 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
5412
5413 * dired.c (Ffile_attributes): Fix typo in docstring.
5414
5415 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5416
5417 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5418 NSInteger (Bug#5811).
5419
5420 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5421
5422 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5423 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5424
5425 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5426
5427 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5428
5429 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
5430
5431 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5432 terminal frames (Bug#5837).
5433
5434 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5435
5436 * .gdbinit (xsubchartable): New command.
5437
5438 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5439
5440 * xdisp.c (display_line): Don't write beyond the last glyph row in
5441 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
5442 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5443 and
5444 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5445
5446 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5447
5448 * alloc.c (Fpurecopy): Hash-cons if requested.
5449 (syms_of_alloc): Update purify-flag docstring.
5450
5451 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5452
5453 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5454 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5455
5456 2010-04-17 Eli Zaretskii <eliz@gnu.org>
5457
5458 Fix a crash when an NSM character is inserted at BEGV.
5459
5460 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5461 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5462 NEUTRAL_B or UNKNOWN_BT.
5463
5464 2010-04-16 Eli Zaretskii <eliz@gnu.org>
5465
5466 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5467 other rows with cursor unless they are different from this row and
5468 this row is part of a continued line. (Bug#5943)
5469
5470 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5471
5472 * s/freebsd.h: Restore osreldate.h include.
5473 Suggested by Naohiro Aota.
5474
5475 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5476
5477 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5478
5479 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5480
5481 * s/cygwin.h: Avoid linking against static libgcc.
5482
5483 2010-04-15 Juri Linkov <juri@jurta.org>
5484
5485 * window.c: Add Qscroll_command.
5486 Remove Vscroll_preserve_screen_position_commands.
5487 (window_scroll_pixel_based, window_scroll_line_based): Check the
5488 `scroll-command' property on the last command instead of searching
5489 the last command in Vscroll_preserve_screen_position_commands.
5490 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5491 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5492 (scroll-preserve-screen-position): Doc fix.
5493 (Vscroll_preserve_screen_position_commands): Remove variable.
5494
5495 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5496
5497 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5498
5499 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5500
5501 Reduce cpp use in Makefile.in.
5502 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5503 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5504 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5505 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5506 (CRT0_COMPILE): Remove, inline it in the only user.
5507
5508 2010-04-14 Juri Linkov <juri@jurta.org>
5509
5510 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5511 `scroll-up-command' and `M-v' from `scroll-down' to
5512 `scroll-down-command'.
5513
5514 2010-04-14 Juri Linkov <juri@jurta.org>
5515
5516 * window.c (Vscroll_preserve_screen_position_commands): New variable
5517 with the default value as the list of Qscroll_down and Qscroll_up.
5518 (window_scroll_pixel_based, window_scroll_line_based): Search the
5519 last command in the list Vscroll_preserve_screen_position_commands
5520 instead of comparing with Qscroll_up and Qscroll_down.
5521
5522 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5523
5524 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5525 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5526 does that.
5527
5528 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5529 to zero.
5530
5531 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5532
5533 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5534
5535 Try to solve the problem of spurious EOF chars in long lines of text
5536 sent to interactive subprocesses.
5537 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5538 (system_process_attributes): Remove unused var `ttotal'.
5539 * process.c (send_process): Don't bother breaking long line with EOF
5540 chars when talking to ttys any more.
5541 (wait_reading_process_output): Output a warning when called in such
5542 a way that it could block without being interruptible.
5543
5544 Try to detect file modification within the same second.
5545 * buffer.h (struct buffer): New field modtime_size.
5546 * buffer.c (reset_buffer): Initialize it.
5547 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5548 (Fverify_visited_file_modtime): Check it.
5549 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5550 (Fset_visited_file_modtime): Set (or clear) it.
5551
5552 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5553
5554 * process.c (status_notify): Remove unused var `ro'.
5555
5556 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5557
5558 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5559 more than one visual (Bug#5938).
5560
5561 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5562
5563 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5564 Undefine.
5565
5566 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5567
5568 Remove C_SWITCH_SYSTEM_TEMACS.
5569 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5570 (malloc, realloc, free): Use emacs, not temacs for conditional
5571 definition.
5572
5573 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5574 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5575
5576 Use autoconf, not cpp for some variables.
5577 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5578 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5579 (ALL_CFLAGS): Use them as make variables.
5580 (really-lwlib, really-oldXMenu): Do not pass them.
5581
5582 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5583
5584 * xmenu.c (apply_systemfont_to_dialog): New.
5585 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5586
5587 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5588
5589 * process.c (exec_sentinel): Preserve current-buffer.
5590
5591 * process.c (read_process_output): Move the save-current-buffer to
5592 apply to both the filter and the non-filter branches.
5593
5594 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5595
5596 * s/msdos.h (UNEXEC): New definition.
5597
5598 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5599
5600 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5601 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5602
5603 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5604 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5605 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5606 TRY_WINDOW_CHECK_MARGINS.
5607
5608 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5609 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5610 width only when it is for padding.
5611
5612 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5613
5614 * xfns.c (Fx_show_tip): Call try_window in a loop until
5615 fonts_changed_p is zero (Bug#2423).
5616
5617 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5618
5619 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5620 the end of TEXT_AREA. (Bug#5856)
5621
5622 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5623
5624 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5625 HAVE_GCONF.
5626
5627 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5628
5629 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5630 prev.orig_type, for resolving type of NSM. (Bug#5858)
5631
5632 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5633
5634 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5635 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5636 in current_font.
5637 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
5638 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5639 New functions.
5640 (syms_of_xsettings): Initialize current_font.
5641 defsubr Sfont_get_system_normal_font.
5642
5643 * xsettings.h (Ffont_get_system_normal_font)
5644 (xsettings_get_system_normal_font): Declare.
5645
5646 * xfns.c (extern xlwmenu_default_font): Remove.
5647 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5648 to xlwmenu.c.
5649
5650 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5651 menu items in UTF-8.
5652
5653 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5654 (apply_systemfont_to_menu): New function.
5655 (set_frame_menubar, create_and_show_popup_menu): Call
5656 apply_systemfont_to_menu.
5657
5658 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5659
5660 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5661 FRAME_LINE_TO_PIXEL_Y.
5662
5663 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5664 pixelwidth/height.
5665
5666 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5667
5668 Simplify code for HP machines.
5669 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5670 for GNU_LINUX, not needed.
5671 (UNEXEC, NEED_BSDTTY): Move definitions...
5672 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5673
5674 * m/iris4d.h (UNEXEC): Move definition ...
5675 * s/irix6-5.h (UNEXEC): ... here.
5676
5677 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5678
5679 * xfns.c (set_machine_and_pid_properties): New function.
5680 (Fx_create_frame): Call set_machine_and_pid_properties.
5681
5682 2010-04-03 Eli Zaretskii <eliz@gnu.org>
5683
5684 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5685 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5686 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5687
5688 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5689 in this function. (Bug#5703)
5690
5691 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
5692
5693 * nsterm.h: Fix last change.
5694
5695 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5696
5697 * m/intel386.h (NO_REMAP): Move definition ...
5698 * s/msdos.h (NO_REMAP): ... here.
5699
5700 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5701
5702 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5703 used on those platforms.
5704
5705 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5706
5707 Remove extern errno declarations.
5708 * xterm.c:
5709 * xrdb.c:
5710 * w32term.c:
5711 * unexec.c:
5712 * unexaix.c:
5713 * sysdep.c:
5714 * process.c:
5715 * lread.c:
5716 * keyboard.c:
5717 * floatfns.c:
5718 * filelock.c:
5719 * fileio.c:
5720 * emacs.c (main):
5721 * ecrt0.c:
5722 * dispnew.c:
5723 * callproc.c:
5724 * buffer.c: Remove errno extern declarations.
5725 * s/netbsd.h (NEED_ERRNO): Remove.
5726
5727 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5728
5729 Remove all uses of LIBX11_SYSTEM.
5730 * Makefile.in (LIBX11_SYSTEM): Remove.
5731 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5732 instead.
5733
5734 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5735
5736 Remove support for DJGPP v1.x (bug#5813).
5737
5738 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
5739 * s/msdos.h:
5740 * unexec.c (make_hdr, copy_text_and_data):
5741 * sysdep.c (wait_for_termination, sys_subshell):
5742 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
5743 (IT_set_terminal_modes, __write, _rename, gethostname)
5744 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5745 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5746 the value of __DJGPP__.
5747 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5748 compatibility code.
5749 * lread.c:
5750 * gmalloc.c (memalign):
5751 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5752 * emacs.c (main):
5753 * dosfns.c (init_dosfns):
5754 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5755
5756 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5757
5758 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5759 string with `cursor' property comes from an `after-string'
5760 overlay. (Bug#5816)
5761
5762 2010-04-01 Glenn Morris <rgm@gnu.org>
5763
5764 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5765 Define as Makefile variables.
5766 (LIBX): Use above variables rather than directly using autoconf.
5767
5768 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5769
5770 Clean up BSD_SYSTEM use.
5771 * xterm.c:
5772 * process.c:
5773 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5774 for including <sys/ioctl.h>.
5775 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5776 code is only used for MSDOS.
5777
5778 2010-03-31 Juri Linkov <juri@jurta.org>
5779
5780 * image.c: Add `Qextension_data'.
5781 (syms_of_image): Initialize and staticpro `Qextension_data'.
5782 (Fimage_metadata): Rename from `Fimage_extension_data'.
5783 (gif_load): Put GIF extension data to the property
5784 `Qextension_data'.
5785
5786 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5787
5788 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5789 * nsterm.h: Fix prototype.
5790
5791 2010-03-31 Eli Zaretskii <eliz@gnu.org>
5792
5793 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5794 trailing whitespace in right-to-left rows.
5795
5796 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5797
5798 Get rid of the direct_output optimizations.
5799 * keyboard.c (nonundocount): Remove extern declaration.
5800 (command_loop_1): Remove brittle optimisation for cheap and
5801 common operations.
5802 * xdisp.c (redisplay_internal): Don't bother checking
5803 redisplay_performed_directly_p any more.
5804 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5805 any more.
5806 * dispnew.c (redisplay_performed_directly_p)
5807 (direct_output_for_insert, direct_output_forward_char):
5808 * dispextern.h (redisplay_performed_directly_p)
5809 (direct_output_for_insert, direct_output_forward_char): Remove.
5810 * cmds.c (nonundocount): Make it static.
5811
5812 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
5813
5814 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5815
5816 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
5817
5818 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5819 invisible (Bug#5766).
5820
5821 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
5822
5823 * xdisp.c (x_consider_frame_title, update_window_cursor):
5824 Remove HAVE_NS conditionals.
5825 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
5826
5827 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5828 filename for the title.
5829 (ns_set_doc_edited): Do nothing if the selected window is a
5830 minibuffer window.
5831
5832 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5833 ns_set_doc_edited.
5834
5835 * nsterm.m: Remove unneeded prototype.
5836
5837 2010-03-31 Glenn Morris <rgm@gnu.org>
5838
5839 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5840 in the DOC file. (Bug#5336)
5841
5842 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5843
5844 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5845
5846 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5847
5848 * window.c (keys_of_window): Remove redundant/overridden bindings.
5849
5850 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5851
5852 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5853 Restore original behavior when the iterator is not bidi_p.
5854
5855 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5856
5857 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5858
5859 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5860
5861 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5862 are outside the range of cached character positions.
5863
5864 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
5865
5866 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5867
5868 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5869
5870 Initial support for bidirectional editing.
5871
5872 * Makefile.in (obj): Include bidi.o.
5873 (bidi.o): New target.
5874
5875 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5876 ($(BLD)/bidi.$(O)): New target.
5877
5878 * bidi.c: New file.
5879
5880 * buffer.h (struct buffer): New members bidi_display_reordering
5881 and bidi_paragraph_direction.
5882
5883 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5884 and bidi_paragraph_direction.
5885 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5886 and bidi-paragraph-direction.
5887 (Fbuffer_swap_text): Swap the values of
5888 bidi_display_reordering and bidi_paragraph_direction.
5889
5890 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5891 (bidi_type_t, bidi_dir_t): New types.
5892 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5893 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5894 prev_stop, base_level_stop, and eol_pos.
5895 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5896 (IT_STACK_SIZE): Enlarge to 5.
5897 (struct glyph_row): New member reversed_p.
5898 <string_buffer_position>: Update prototype.
5899 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5900 glyph_row if bidi_it.paragraph_dir == R2L.
5901 (struct glyph): New members resolved_level and bidi_type.
5902
5903 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5904 processing or buffer's direction is right-to-left.
5905 (prepare_desired_row): Preserve the reversed_p flag.
5906 (row_equal_p): Compare the reversed_p attributes as well.
5907
5908 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5909 bidi_init_it and set it->paragraph_embedding from the current
5910 buffer's value of bidi_paragraph_direction.
5911 (reseat_1): Initialize bidi_it.first_elt.
5912 (set_iterator_to_next, next_element_from_buffer): Use the value of
5913 paragraph_embedding to determine the paragraph direction.
5914 (set_iterator_to_next): Under bidi reordering, call
5915 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5916 new_paragraph flag is set in the bidi iterator.
5917 (next_element_from_buffer): If bidi_it.first_elt is set,
5918 initialize paragraph direction and find the first character to
5919 display in the visual order. If reseated to a middle of a line,
5920 prime the bidi iterator starting at the line's beginning. Handle
5921 the situation where we overstepped stop_charpos due to
5922 non-linearity of the bidi iteration. Likewise for when we back up
5923 beyond the previous stop_charpos. When moving across stop_charpos,
5924 record it in prev_stop.
5925 (display_line): Set row->end and it->start for the next row to the
5926 next character in logical order. Always extend reversed_p rows to
5927 the end of line, even if they end at ZV. Copy the reversed_p flag
5928 to the next glyph row. Keep calling set_cursor_from_row for
5929 bidi-reordered rows even if we already have a possible candidate
5930 for cursor position. Set row_end after all the row's glyphs have
5931 been produced, by looping over the glyphs. Record the position
5932 after EOL in it->eol_pos, and use it to set end_pos of the last
5933 row produced for a continued line.
5934 <Qright_to_left, Qleft_to_right>: New variables.
5935 (syms_of_xdisp): Initialize and staticpro them.
5936 (string_buffer_position_lim): New function.
5937 (string_buffer_position): Most of code moved to
5938 string_buffer_position_lim. Last argument and return value are
5939 now EMACS_INT; all callers changed.
5940 (set_cursor_from_row): Rewritten to support bidirectional text and
5941 reversed glyph rows.
5942 (text_outside_line_unchanged_p, try_window_id): Disable
5943 optimizations if we are reordering bidirectional text and the
5944 paragraph direction can be affected by the change.
5945 (append_glyph, append_composite_glyph)
5946 (produce_image_glyph, append_stretch_glyph): Set the
5947 resolved_level and bidi_type members of each glyph.
5948 (append_glyph): If the glyph row is reversed, prepend the glyph
5949 rather than appending it.
5950 (handle_stop_backwards): New function.
5951 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5952 (reseat): call handle_stop_backwards to recompute prev_stop and
5953 base_level_stop for the new position.
5954 (handle_invisible_prop): Under bidi iteration, skip invisible text
5955 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5956 paragraph direction. Update IT->prev_stop after skipping
5957 invisible text.
5958 (move_it_in_display_line_to): New variables prev_method
5959 and prev_pos. Compare for strict equality in
5960 BUFFER_POS_REACHED_P.
5961 (try_cursor_movement): Examine all the candidate rows that occlude
5962 point, to return the best match. If rows are bidi-reordered
5963 and point moved backwards, back up to the row that is not a
5964 continuation line, and start looking for a suitable row from
5965 there.
5966
5967 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5968 rather than appending, if the glyph_row's reversed_p flag is set.
5969 Set the resolved_level and bidi_type members of each glyph.
5970
5971 * .gdbinit (pbiditype): New command.
5972 (pgx): Use it to display bidi level and type of the glyph.
5973 (pitx): Display some bidi information about the iterator.
5974 (prowlims, pmtxrows): New commands.
5975
5976 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5977
5978 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5979 * s/usg5-4.h (LIBS_DEBUG):
5980 * s/irix6-5.h (C_DEBUG_SWITCH):
5981 * s/gnu-linux.h (LIBS_DEBUG):
5982 * s/darwin.h (LIBS_DEBUG):
5983 * s/bsd-common.h (LIBS_DEBUG):
5984 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5985 * m/iris4d.h (LIBS_DEBUG):
5986 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5987
5988 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5989 (LIBS_DEBUG): Remove definition.
5990
5991 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
5992
5993 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5994 Windows.
5995
5996 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5997
5998 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5999 `connect' (Bug#5723).
6000
6001 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
6002
6003 * process.c (Fmake_network_process): Call `select' for interrupted
6004 `connect' rather than creating new socket (Bug#5173).
6005
6006 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
6007
6008 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6009
6010 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6011
6012 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6013
6014 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6015
6016 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6017 XLoadQueryFont.
6018
6019 2010-03-24 Kenichi Handa <handa@m17n.org>
6020
6021 * coding.c (decode_coding_ccl): Fix previous change for the
6022 multibyte case.
6023 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6024 case that the output buffer is fullfilled.
6025 (encode_coding): Setup ccl program here.
6026
6027 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6028
6029 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6030
6031 Simplify LIBS_MACHINE definitions.
6032 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6033 * m/iris4d.h (LIBS_MACHINE): Likewise.
6034 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6035 * s/aix4-2.h (LIBS_SYSTEM): ... here.
6036 * s/netbsd.h: Remove commented out code.
6037
6038 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6039
6040 Remove dead code dealing with POSIX_SIGNALS.
6041 * atimer.c (set_alarm): Remove dead code, all USG systems define
6042 POSIX_SIGNALS.
6043 * data.c (arith_error): Likewise.
6044 * keyboard.c (input_available_signal, handle_user_signal)
6045 (interrupt_signal): Likewise.
6046 * process.c (sigchld_handler): Likewise.
6047 (create_process): Remove if 0 code. Remove HPUX conditional when
6048 !defined (POSIX_SIGNALS), it cannot be true.
6049 * syssignal.h: Remove USG5_4 and USG conditionals when
6050 !POSIX_SIGNALS, they cannot be true.
6051
6052 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6053 NO_SOCK_SIGIO, not used anymore.
6054
6055 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6056
6057 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6058 support vax on BSDs.
6059
6060 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6061 * s/aix4-2.h (ORDINARY_LINK): ... here.
6062
6063 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6064
6065 * Makefile.in (abs_builddir): Define.
6066 (bootstrap_exe): Use it.
6067 (VPATH): Use $(srcdir) instead of @srcdir@.
6068
6069 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6070
6071 * Makefile.in (bootstrap_exe): Use an absolute name.
6072
6073 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6074
6075 Remove support for old GNU/Linux using libc version 5.
6076 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6077 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6078
6079 Consolidate redundant definitions in s/bsd-common.h.
6080 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6081 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6082 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6083 doing it in all files that include this one.
6084 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6085 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6086 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6087 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6088 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6089 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6090 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6091 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6092 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6093
6094 Consolidate redundant definitions.
6095 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6096 it's undefined in all files that include this one.
6097 (POSIX_SIGNALS): Define here instead of doing it in all files that
6098 include this one.
6099 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6100 (POSIX_SIGNALS): Do not define.
6101 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6102 (POSIX_SIGNALS): Do not define.
6103 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6104 (POSIX_SIGNALS): Do not define.
6105
6106 Remove support for old UNIX System V systems.
6107 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6108 * s/usg-5-4-2.h: Remove.
6109
6110 Remove support for Solaris on PPC and for old versions.
6111 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6112 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6113 that cancel each other.
6114 * s/sol2-3.h:
6115 * s/sol2-4.h:
6116 * s/sol2-5.h: Remove.
6117 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6118 (NO_REMAP): Remove, unused.
6119 (UNEXEC): Move definition ...
6120 * s/aix4-2.h (UNEXEC): ... here.
6121
6122 * s/openbsd.h: Remove support for non-ELF and for systems that do
6123 not support shared libraries.
6124 * s/netbsd.h:
6125 * s/freebsd.h: Likewise.
6126
6127 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6128
6129 Remove non-working support for lynxos 3.0.
6130 * s/lynxos.h: Remove file.
6131
6132 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6133 COFF_BSD_SYMBOLS, nothing defines it anymore.
6134
6135 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6136
6137 Remove obsolete uses of HAVE_SHM.
6138 * emacs.c (standard_args):
6139 (Fdump_emacs):
6140 (syms_of_emacs): Remove code depending on HAVE_SHM.
6141
6142 * alloc.c: Remove HAVE_SHM dependent definition.
6143
6144 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6145
6146 2010-03-18 Glenn Morris <rgm@gnu.org>
6147
6148 * emacs.c (USAGE4): Hard-code bug address.
6149 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6150 (bug_reporting_address): Remove.
6151 (main): Don't call bug_reporting_address.
6152
6153 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6154 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6155
6156 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
6157
6158 * xfns.c (Fx_create_frame):
6159 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6160 on left.
6161
6162 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6163
6164 * editfns.c (Fformat): Account for string precision when computing
6165 field width (Bug#5710).
6166
6167 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
6168
6169 * xfns.c (Fx_create_frame): Set default to Qright.
6170
6171 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6172 all window systems.
6173
6174 2010-03-12 Eli Zaretskii <eliz@gnu.org>
6175
6176 These changes remove termcap.c from the build on Posix platforms.
6177 * Makefile.in (termcapobj): Move termcap.o from here...
6178 (MSDOS_OBJ): ...to here.
6179 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6180 now identical to when LIBS_TERMCAP is defined.
6181
6182 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6183
6184 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6185
6186 * config.in: Regenerated. (See top-level ChangeLog.)
6187
6188 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
6189
6190 * Branch for 23.2.
6191
6192 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6193
6194 Cleanup setup of gl_state in various parts of the code.
6195 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6196 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6197 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6198 (skip_chars):
6199 * regex.c (regex_compile): Use it.
6200 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6201 it's now set in regex_compile when/if we need it.
6202
6203 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6204
6205 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6206 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6207 (QUIT): Use it to consolidate code and remove redundancy.
6208 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6209
6210 * regex.c (regex_compile): Setup gl_state as well.
6211
6212 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6213 (in_classes): Use CONSP before XCAR/XCDR.
6214
6215 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
6216
6217 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6218 definitions, so that keyboard macros are correctly handled
6219 (Bug#5481).
6220
6221 2010-03-02 Eli Zaretskii <eliz@gnu.org>
6222
6223 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6224 text that could be relocated inside the call to emacs_mule_char.
6225 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6226 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6227
6228 2010-03-02 Kenichi Handa <handa@m17n.org>
6229
6230 * character.c (parse_str_as_multibyte): Fix handling of the
6231 multibyte form of raw-bytes.
6232 (str_as_multibyte): Likewise.
6233
6234 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6235 form of raw-bytes.
6236
6237 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
6238
6239 * charset.c (load_charset_map_from_file)
6240 (load_charset_map_from_vector): Zero out allocated
6241 charset_map_entries before using them.
6242
6243 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6244
6245 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6246
6247 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
6248
6249 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6250 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
6251
6252 2010-02-26 Kenichi Handa <handa@m17n.org>
6253
6254 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6255
6256 * xdisp.c (reseat_to_string): Fix previous change.
6257
6258 2010-02-26 David Reitter <david.reitter@gmail.com>
6259
6260 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6261 Lisp_Object (Bug#4736).
6262
6263 2010-02-25 Kenichi Handa <handa@m17n.org>
6264
6265 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6266
6267 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6268
6269 * xterm.c (XTflash): Move declarations before statements.
6270
6271 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6272 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6273 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6274 (xg_create_tool_bar): Remove unused variables.
6275 (x_wm_set_size_hint): Move declarations before statements.
6276 (xg_create_frame_widgets): Remove variable grav.
6277
6278 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
6279
6280 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6281
6282 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6283
6284 * term.c (fatal): Add a final \n if needed (bug#5596).
6285
6286 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
6287
6288 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6289
6290 2010-02-18 Glenn Morris <rgm@gnu.org>
6291
6292 * callint.c (Finteractive): Doc fix.
6293
6294 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6295
6296 * coding.c (record_conversion_result):
6297 Handle CODING_RESULT_INSUFFICIENT_DST.
6298 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6299 memory allocation error.
6300
6301 2010-02-17 Kenichi Handa <handa@m17n.org>
6302
6303 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6304 Fix for the case that the output buffer is fullfilled.
6305 (decode_coding): Setup ccl program here. Keep looping when the
6306 decoder stopped because the output buffer is
6307 fullfilled (bug#5534).
6308
6309 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6310
6311 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6312
6313 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
6314 bug #5571.
6315 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
6316 overdrawn.
6317
6318 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6319
6320 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6321 doing_interact here.
6322 (ice_connection_closed): New function.
6323 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6324 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6325 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6326 returns I/O error.
6327 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6328 bug #5512.
6329
6330 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
6331
6332 * nsfont.m (nsfont_open): The system's value for the font descent
6333 is negative, so round it down to avoid clipping.
6334
6335 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * charset.c (load_charset_map_from_file)
6338 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
6339 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
6340
6341 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
6342
6343 * charset.c (load_charset_map_from_file): Allocate large
6344 charset_map_entries structure on the heap rather than the stack.
6345 (Bug#5526).
6346
6347 2010-01-31 Kenichi Handa <handa@m17n.org>
6348
6349 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
6350 size in NAME is invalid, return -1 (Bug#5396).
6351
6352 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
6353
6354 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6355 <deactivated@gmail.com> (Bug#3605).
6356
6357 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
6358
6359 * fileio.c (Frename_file): Correctly rename symlinks to
6360 directories (Bug#5496).
6361
6362 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6363
6364 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6365
6366 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6367
6368 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6369
6370 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
6371
6372 * frame.c (DEFAULT_ROWS): Change default to 35.
6373
6374 * xfns.c (x_default_font_parameter): Change default XFT font to
6375 monospace-10 (Bug#3643).
6376
6377 2010-01-29 Eli Zaretskii <eliz@gnu.org>
6378
6379 * w32inevt.c (key_event): Remove unnecessary comparison of
6380 event->uChar.AsciiChar with 128.
6381
6382 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
6383
6384 * fileio.c (Frename_file): Fix last change (Bug#5487).
6385
6386 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6387
6388 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6389
6390 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6391
6392 * xfns.c (Fx_create_frame): Remove window size matching code from
6393 2010-01-15.
6394 (x_get_current_desktop, x_get_desktop_workarea): Remove.
6395
6396 2010-01-27 Jason Rumney <jasonr@gnu.org>
6397
6398 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
6399 (key_event): Use unicode for characters 128 and higher (Bug#4567).
6400
6401 2010-01-27 Kenichi Handa <handa@m17n.org>
6402
6403 * regex.c (analyse_first): Fix setting of fastmap for unibyte
6404 pattern string (Bug#4209).
6405
6406 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
6407
6408 * fileio.c (Frename_file): Call copy-directory and
6409 delete-directory for directories, in order to handle cross-device
6410 renaming (Bug#3353).
6411
6412 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6413
6414 * xfns.c (Fx_create_frame): If frame height is too big, try
6415 sizes 24 and 10. Bug #3643.
6416
6417 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6418
6419 Try and fix bug#788, hopefully for real this time.
6420 * keymap.c (shadow_lookup): Add `remap' arg.
6421 (describe_map, describe_vector): Update calls to shadow_lookup.
6422 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6423 `remapped' so this flag is applicable to `sequence'. Be careful to
6424 perform remapping during shadow_lookup check of remapped_sequences.
6425
6426 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6427
6428 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6429 png_check_sig, which has been removed in libpng 1.4.
6430
6431 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6432
6433 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6434 lacks this header file).
6435
6436 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6437
6438 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6439 as in Emacs 22.
6440
6441 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6442
6443 * lisp.h (make_pure_string): String pointer arg now points to const.
6444
6445 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6446 args now point to const.
6447
6448 2010-01-22 Eli Zaretskii <eliz@gnu.org>
6449
6450 * lread.c (Fload): Don't treat files without .elc extension as
6451 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6452 them. (bug#5303)
6453
6454 2010-01-20 Kenichi Handa <handa@m17n.org>
6455
6456 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6457 treat the source as actual byte sequence.
6458
6459 2010-01-19 Alan Mackenzie <acm@muc.de>
6460
6461 Fix spurious before-change-functions invocation from (insert ?\n).
6462 * textprop.c (set_text_properties): Rename parameter
6463 `signal_after_change_p' to `coherent_change_p', and make the
6464 invocation of `modify_region' conditional on it.
6465
6466 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6467
6468 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6469 for debug purpose.
6470 (syms_of_xsettings): Declare xft-settings.
6471
6472 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
6473
6474 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6475
6476 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6477
6478 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6479
6480 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
6481
6482 * emacs.c (standard_args): Adjust arg priorities to reflect how
6483 they are processed in startup.el.
6484
6485 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6486
6487 * Makefile.in (lisp, shortlisp): Update.
6488
6489 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6490
6491 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6492 code, link the new kboard into all_kboard before running Lisp code,
6493 and protect the new terminal with GCPRO (Bug#5365).
6494 (x_term_init): Remove unused var `atom'.
6495 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6496
6497 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6498
6499 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6500 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6501 to find out usable size of the desktop. Don't make frames larger than
6502 this. Bug #3643.
6503
6504 2010-01-15 Kenichi Handa <handa@m17n.org>
6505
6506 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6507
6508 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
6509
6510 * nsterm.m (Qnone): Define.
6511
6512 * nsfns.m (Qnone): Move definition to nsterm.m.
6513
6514 2010-01-14 Kenichi Handa <handa@m17n.org>
6515
6516 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6517 systems.
6518
6519 2010-01-14 Kenichi Handa <handa@m17n.org>
6520
6521 Make auto-composition work on all buffers even if they are
6522 fundamental mode.
6523
6524 * composite.c (Vauto_composition_mode): New variable.
6525 (composition_compute_stop_pos): Check Vauto_composition_mode
6526 instead of Vauto_composition_function.
6527 (composition_adjust_point, Ffind_composition_internal): Likewise.
6528 (syms_of_composite): Declare Lisp variable
6529 "auto-composition-mode" here.
6530
6531 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
6532
6533 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6534 during call to vendor-specific-keysyms (Bug#5365).
6535
6536 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6537
6538 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6539 Call SIGNAL_THREAD_CHECK (Bug#5333).
6540
6541 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6542 Call SIGNAL_THREAD_CHECK.
6543
6544 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6545
6546 Try to fix bug#5314. This is probably not the final word, tho.
6547 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6548 recent-auto-save-p as a side-effect.
6549 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6550 * buffer.c (Fkill_buffer, reset_buffer):
6551 * editfns.c (Fsubst_char_in_region):
6552 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6553 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6554
6555 2010-01-13 Kenichi Handa <handa@m17n.org>
6556
6557 Display buffer name, etc. in mode line by composing correctly.
6558
6559 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6560 STRING is not nil.
6561 (display_mode_element): Adjust for the change of
6562 decode_mode_spec and display_line.
6563 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6564 (display_string): Handle the case that STRING is non-null and
6565 LISP_STRING is not nil.
6566
6567 * xterm.c (x_draw_composite_glyph_string_foreground):
6568 Pay attention to s->face->overstrike.
6569
6570 * composite.c (composition_reseat_it): Don't check PT if STRING is
6571 non nil.
6572
6573 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6574
6575 * keyboard.c (read_char): Don't apply previous change when current
6576 buffer is unchanged by command execution.
6577
6578 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6579
6580 * keyboard.c (read_char): Return after executing from special map.
6581
6582 2010-01-12 Glenn Morris <rgm@gnu.org>
6583
6584 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6585 bug-gnu-emacs rather than emacs-pretest-bug.
6586
6587 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
6588
6589 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6590 initializing the Lisp variables that depend on them.
6591
6592 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6593
6594 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6595 Clear areas that will not be updated after change of menu bar lines.
6596 Clear the menu bar window's current matrix when the window gets empty.
6597
6598 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
6599
6600 * intervals.h, textprop.c (extend_property_ranges): Return value
6601 and args changed. Discard properties that begin at or after the
6602 new end (Bug#5306).
6603
6604 * editfns.c (Fformat): Caller changed.
6605
6606 * nsterm.m (ns_set_default_prefs): Delete function.
6607 (syms_of_nsterm): Initialize ns_command_modifier,
6608 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6609 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6610
6611 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6612 position (Bug#4040).
6613
6614 2010-01-09 Eli Zaretskii <eliz@gnu.org>
6615
6616 * editfns.c (Ffloat_time): Doc fix.
6617
6618 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6619
6620 * xfns.c (Fx_create_frame): Don't create frame larger than display
6621 by default bug#3643.
6622
6623 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6624
6625 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6626 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6627 windows above internal border.
6628
6629 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6630 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6631 windows above internal border.
6632
6633 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6634 tool bar windows specially.
6635
6636 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6637
6638 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6639 specially.
6640 (XTflash): Take account of menu bar height.
6641
6642 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6643 specially.
6644
6645 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6646
6647 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
6648 also be true before we can return early (bug #5339).
6649
6650 2010-01-06 David Reitter <david.reitter@gmail.com>
6651
6652 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6653 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6654 (Bug#3233).
6655
6656 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6657
6658 * font.c (font_open_entity): Enable chache and call cached_font_ok
6659 for the driver if defined.
6660 (QCuser_spec): New symbol.
6661 (font_spec_from_name): Save name as user-spec.
6662 (font_load_for_lface): Keep user-spec instead of name.
6663 (font_open_by_name): Save name as user-spec.
6664 (syms_of_font): Initialize QCuser_spec.
6665 (font_clear_prop): Clear name if it exists in font (bug#5157).
6666
6667 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6668 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6669 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6670
6671 * font.h (struct font_driver): Add cached_font_ok.
6672
6673 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6674
6675 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6676
6677 * xterm.c (x_new_font): Move code for setting rows/cols before
6678 resizing ...
6679 (x_set_window_size): ... to here. Bug #2568.
6680
6681 * gtkutil.c (xg_clear_under_internal_border): New function.
6682 (xg_frame_resized, xg_frame_set_char_size):
6683 Call xg_clear_under_internal_border.
6684 (xg_update_scrollbar_pos): Clear under old scroll bar position.
6685
6686 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
6687
6688 * keyboard.c (read_key_sequence): Catch keyboard switch after
6689 making a new tty frame (Bug#5095).
6690
6691 2010-01-05 Kenichi Handa <handa@m17n.org>
6692
6693 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6694
6695 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6696
6697 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6698 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6699 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6700
6701 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
6702
6703 * dbusbind.c (xd_add_watch): Improve debug message.
6704 (xd_remove_watch): Improve debug message. If DATA is the session
6705 bus, unset D-Bus session environment.
6706 (Fdbus_init_bus): Pass the bus as argument to
6707 dbus_connection_set_watch_functions. (Bug#5283)
6708
6709 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
6710
6711 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6712
6713 * lread.c (syms_of_lread): Make it clearer that these are the
6714 names of loaded files (Bug#5068).
6715
6716 * eval.c (run_hook_with_args): Handle the case where the global
6717 value has the obsolete single-function form (Bug#5026).
6718
6719 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
6720
6721 * minibuf.c (Fall_completions): Minor optimization.
6722
6723 2009-12-26 Eli Zaretskii <eliz@gnu.org>
6724
6725 * .gdbinit (pgx): Fix display of composite glyphs.
6726 Display cmp.from and cmp.to as well.
6727 (pitx): Fix last change.
6728
6729 2009-12-25 Kenichi Handa <handa@m17n.org>
6730
6731 * composite.h (composition_adjust_point): Update prototype.
6732
6733 * composite.c (composition_reseat_it): Don't make a composition
6734 spanning over point.
6735 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6736 composable characters.
6737 (composition_adjust_point): New arg NEW_PT. Callers changed.
6738
6739 * keyboard.c (command_loop_1): Force redisplay if the last point
6740 was within a composition.
6741 (adjust_point_for_property): Don't adjust point for automatic
6742 composition when called after buffer modification.
6743
6744 2009-12-19 Eli Zaretskii <eliz@gnu.org>
6745
6746 * .gdbinit (pitx): Don't use enum names, use their values.
6747 Remove reference to non-existing value GET_FROM_COMPOSITION.
6748 (pgx): Don't use enum names, use their values.
6749 (pitmethod): New helper command.
6750 (pitx): Use it to display iteration method.
6751 (pgrowit): New command.
6752
6753 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6754
6755 Update dependencies in Makefile.in.
6756
6757 * Makefile.in (alloc.o): Depend on termhooks.h.
6758 (atimer.o): Depend on blockinput.h.
6759 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6760 and frame.h.
6761 (callint.o): Depend on systime.h, coding.h, and composite.h.
6762 (callproc.o): Depend on buffer.h.
6763 (casefiddle.o): Don't depend on charset.h.
6764 (casetab.o): Depend on character.h.
6765 (ccl.o): Depend on composite.h.
6766 (chartab.o): Depend on ccl.h.
6767 (cm.o): Depend on dispextern.h.
6768 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6769 (coding.o): Don't depend on $(INTERVALS_H).
6770 (composite.o): Don't depend on dispextern.h explicitly (it's in
6771 $(INTERVALS_H)). Depend on ccl.h.
6772 (data.o): Depend on systime.h, coding.h, composite.h,
6773 dispextern.h, font.h, and ccl.h.
6774 (dired.o): Depend on composite.h.
6775 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6776 composite.h (it's in $(INTERVALS_H)).
6777 (doc.o): Depend on systime.h, coding.h, and composite.h.
6778 (editfns.o): Don't depend explicitly on dispextern.h.
6779 (emacs.o): Depend on frame.h and coding.h.
6780 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6781 (fileio.o): Depend on frame.h and commands.h. Don't depend
6782 explicitly on dispextern.h.
6783 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6784 composite.h.
6785 (fns.o): Don't depend on termhooks.h.
6786 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6787 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6788 coding.h, $(INTERVALS_H), window.h, xterm.h.
6789 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6790 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6791 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6792 fontset.h, ccl.h, and ftfont.h.
6793 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6794 (gtkutil.o): Depend on dispextern.h and composite.h.
6795 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6796 termhooks.h, and ccl.h.
6797 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6798 (intervals.o): Depend on systime.h and coding.h.
6799 (keyboard.o): Depend on composite.h and coding.h.
6800 (keymap.o): Depend on coding.h and frame.h.
6801 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6802 (macros.o): Depend on systime.h, coding.h, and composite.h.
6803 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6804 and atimer.h.
6805 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6806 dispextern.h explicitly.
6807 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6808 Don't depend explicitly on dispextern.h and composite.h.
6809 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6810 (regex.o): Don't depend on charset.h.
6811 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6812 (search.o): Don't depend explicitly on composite.h.
6813 (sound.o): Depend on atimer.h and systime.h.
6814 (syntax.o): Don't depend explicitly on composite.h.
6815 (sysdep.o): Depend on coding.h and composite.h.
6816 (term.o): Depend on xterm.h and buffer.h.
6817 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6818 (textprop.o): Don't depend on dispextern.h explicitly.
6819 (undo.o): Depend on dispextern.h.
6820 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6821 dispextern.h and composite.h explicitly.
6822 (xdisp.o): Depend on ccl.h.
6823 (xfaces.o): Depend on coding.h and ccl.h.
6824 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6825 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6826 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6827 ftfont.h.
6828 (xgselect.o): New dependency.
6829 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6830 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6831 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6832 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6833 (xsmfns.o): Depend on frame.h and dispextern.h.
6834 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6835 sysselect.h.
6836
6837 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6838
6839 * font.c (Fclear_font_cache): Pass correct cache argument to
6840 font_clear_cache.
6841
6842 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6843
6844 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6845 twice.
6846
6847 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
6848
6849 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6850 calling file-remote-p. Reported by Jim Meyering.
6851
6852 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
6853
6854 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
6855 avoid compiler warnings. (Bug #5217)
6856
6857 2009-12-14 Kenichi Handa <handa@m17n.org>
6858
6859 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6860 in 8-bit encoding.
6861
6862 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
6863
6864 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6865 tooltip windows.
6866
6867 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6868
6869 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6870 Xatom_net_window_type.
6871
6872 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6873 Xatom_net_window_type.
6874
6875 * xterm.c (my_log_handler): New function.
6876 (x_term_init): Set my_log_handler as log handler during gtk_init
6877 so we can filter out buggy messages. (Bug #5120).
6878
6879 * xterm.c (xg_scroll_callback): Parameter list changed,
6880 use parameter GtkScrollType to determine scroll/line/page.
6881 Only allow dragging if a button < 4 is grabbed (bug #5177).
6882 (xg_end_scroll_callback): New function.
6883 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6884 xg_create_scroll_bar.
6885
6886 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6887 (scroll_end_callback): Remove.
6888 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6889 button-release-event. Replace value-changed event with change-value,
6890 bug #5177.
6891 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6892 bug #5177.
6893
6894 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6895 (xg_create_scroll_bar): Add GCallback end_callback.
6896
6897 * xftfont.c (QClcdfilter): New variable.
6898 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6899 (syms_of_xftfont): Initialize QClcdfilter.
6900
6901 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6902
6903 * xsettings.c (struct xsettings): Add member seen.
6904 (parse_xft_settings): Update member seen with what we have read.
6905 Return non-zero if Xft-settings have been parsed, 0 otherwise.
6906 (apply_xft_settings): Only update Xft settings with what member seen
6907 indicates as new.
6908
6909 2009-12-12 Eli Zaretskii <eliz@gnu.org>
6910
6911 * dispextern.h (struct text_pos): Use EMACS_INT.
6912 (struct glyph): Use EMACS_INT for charpos.
6913 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6914 region_beg_charpos, region_end_charpos,
6915 redisplay_end_trigger_charpos, and also for
6916 iterator_stack_entry.end_charpos and
6917 iterator_stack_entry.stop_charpos.
6918
6919 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6920
6921 * gtkutil.c (scroll_end_callback): New function (bug #5177).
6922 (xg_create_scroll_bar): Call scroll_end_callback on button release
6923 event (bug #5177).
6924 (xg_event_is_for_scrollbar): != replaced with ==.
6925
6926 2009-12-12 Kenichi Handa <handa@m17n.org>
6927
6928 * ftfont.c (struct ftfont_info): New member matrix.
6929 (ftfont_open): Setup xftfont_info->matrix.
6930 (MFLTFontFT): New member matrix.
6931 (FLOOR, CEIL, ROUND): New macros.
6932 (ftfont_get_metrics): Handle matrix transformation.
6933 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6934
6935 * xftfont.c (struct xftfont_info): New member matrix.
6936 (xftfont_open): Setup xftfont_info->matrix.
6937
6938 2009-12-10 Kenichi Handa <handa@m17n.org>
6939
6940 * xdisp.c (append_space_for_newline): Consider face-remapping.
6941
6942 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6943
6944 * xsettings.c: Include "keyboard.h".
6945
6946 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6947
6948 Fix implicit function declarations.
6949 * cmds.c: Include "frame.h".
6950 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6951 * frame.h: Move declaration of delete_frame outside of
6952 HAVE_WINDOW_SYSTEM.
6953
6954 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6955
6956 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6957
6958 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6959 GTK builds.
6960
6961 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6962
6963 * unexelf.c (unexec): Don't search for .data twice.
6964
6965 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
6966
6967 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6968 if push failed.
6969 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6970 of push_display_prop (Bug#5000).
6971
6972 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6973 value of font_list_entities (Bug#5085).
6974
6975 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
6976
6977 Fix `string-to-number' to deal consistently with integers and floats.
6978 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6979 trailing characters, not just whitespace.
6980 (read1): Pass new arg 0 to keep old behavior.
6981 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6982 trailing chars, as it is already done for integers. Doc fixes.
6983 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6984
6985 2009-12-04 Eli Zaretskii <eliz@gnu.org>
6986
6987 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6988 Delete unused enumeration value.
6989
6990 2009-12-03 Eli Zaretskii <eliz@gnu.org>
6991
6992 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6993
6994 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6995
6996 * process.c (Fmake_network_process): Fix up the tests for
6997 "connectionless socket", so they DTRT for seqpacket sockets as well.
6998
6999 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7000
7001 * process.c (Qseqpacket): New symbol.
7002 (HAVE_SEQPACKET): New macro.
7003 (Fmake_network_process): Accept new :type `seqpacket'.
7004 (init_process): Add `seqpacket' feature when applicable.
7005 (syms_of_process): Initialize Qseqpacket.
7006
7007 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7008
7009 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7010 if entity is Qnil.
7011
7012 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * print.c (print_preprocess): Preprocess the key_and_value table of
7015 hashtables, even tho they're "hidden" (bug#5082).
7016
7017 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7018
7019 * frame.c (frame_make_pointer_invisible)
7020 (frame_make_pointer_visible): Declare f before statements.
7021
7022 2009-11-28 Eli Zaretskii <eliz@gnu.org>
7023
7024 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7025 omitted dependencies on lisp.h.
7026
7027 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7028
7029 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7030 is NULL.
7031
7032 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7033
7034 * frame.c (frame_make_pointer_invisible)
7035 (frame_make_pointer_visible): Just return if there isn't any selected
7036 frame.
7037
7038 * search.c (simple_search): Remove warning by making *p const.
7039
7040 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7041
7042 * xdisp.c (power_letter): Remove duplicate const.
7043
7044 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7045
7046 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7047
7048 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
7049 defaults (bug #5025).
7050
7051 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7052
7053 * insdel.c (adjust_markers_for_delete): Move it in the
7054 right direction! (bug#4803)
7055
7056 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7057
7058 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7059
7060 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7061
7062 2009-11-24 Glenn Morris <rgm@gnu.org>
7063
7064 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7065
7066 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7067
7068 * Makefile.in: Must create deps for ecrt0.o in its rule.
7069
7070 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7071 because that is what Gtk+ font dialog understands.
7072
7073 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7074 of Fcopy_sequence.
7075 (font_open_by_name): Put name given into QCname for font-object returned.
7076
7077 * frame.c (x_set_font): Save original font name as frame parameter
7078 font-parameter.
7079
7080 * xsettings.c (set_default_xft_settings): New function.
7081 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7082 is found.
7083
7084 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7085
7086 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7087 searching backwards through multibyte buffer.
7088
7089 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7090
7091 * xterm.c: #include xgselect.h.
7092 (x_initialize): Call xgselect_initialize.
7093
7094 * xsettings.c (something_changedCB): C++ comments => C comments.
7095 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7096 does that now.
7097
7098 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7099 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7100 (scroll_bar_button_cb): Remove.
7101 (create_menus): C++ comments => C comments. Don't bind grab-notify
7102 event.
7103 (xg_create_scroll_bar): Don't bind button-press-event and
7104 button-release-event.
7105
7106 * process.c: Include xgselect.h if defined (USE_GTK) ||
7107 defined (HAVE_GCONF).
7108 (wait_reading_process_output): Call xg_select for the same condition.
7109
7110 * xgselect.c (xg_select): New function to better integrate with
7111 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7112
7113 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7114
7115 * Makefile.in (XOBJ): Add xgselect.o.
7116
7117 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7118
7119 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7120 Remove ignored second argument. All callers changed.
7121 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7122 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7123 * xdisp.c (string_char_and_length): Likewise.
7124
7125 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7126
7127 * xterm.c (x_new_font):
7128 * print.c (print_object):
7129 * cmds.c (Fself_insert_command): Move declarations before statements.
7130
7131 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7132
7133 * s/cygwin.h: Remove unneeded linker flags.
7134
7135 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7136
7137 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7138
7139 * xsettings.h: Declare xsettings_get_system_font.
7140
7141 * xsettings.c (xsettings_get_system_font): New function.
7142 (init_gconf): No use initiating gconf unless we have Xft also.
7143 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7144 HAVE_GCONF.
7145
7146 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7147 add a blank entry so it doesn't collapse into nothing.
7148
7149 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7150
7151 * lread.c (Funintern): Comment out last change.
7152
7153 2009-11-19 Richard Stallman <rms@gnu.org>
7154
7155 * lread.c (Funintern): Error if symbol is t or nil.
7156
7157 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7158
7159 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7160 representation of Lisp integers.
7161 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7162
7163 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7164
7165 * lisp.h: Remove declaration of Ffont_get_system_font.
7166 * xfns.c: Move include of "xsettings.h".
7167 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7168
7169 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7170
7171 * xsettings.c (something_changedCB, Ffont_get_system_font):
7172 Check use_system_font.
7173 (syms_of_xsettings): DEFVAR font-use-system-font.
7174
7175 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7176
7177 * xfns.c (x_default_font_parameter): Remove dead assignment.
7178
7179 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7180
7181 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7182
7183 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
7184 not have FC_LCD_*. #define them if not there.
7185
7186 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
7187
7188 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7189
7190 * xterm.c (handle_one_xevent): Call xft_settings_event for
7191 ClientMessage, PropertyNotify and DestroyNotify.
7192 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7193 Call xsettings_initialize.
7194
7195 * xftfont.c (xftfont_fix_match): New function.
7196 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7197 Call xftfont_fix_match after XftFontMatch.
7198
7199 * xfont.c (xfont_driver): Initialize all members.
7200
7201 * xfns.c (x_default_font_parameter):
7202 Try font from Ffont_get_system_font.
7203 Do not get font from x_default_parameter if we got one from
7204 Ffont_get_system_font.
7205 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
7206
7207 * w32font.c (w32font_driver): Initialize all members.
7208
7209 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7210
7211 * lisp.h: Declare syms_of_xsettings.
7212
7213 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7214 Handle CONFIG_CHANGED_EVENT.
7215
7216 * ftfont.c (ftfont_filter_properties): New function.
7217
7218 * frame.c (x_set_font): Remove unused variable lval.
7219
7220 * font.h (struct font_driver): Add filter_properties.
7221
7222 * font.c (font_put_extra): Don't return if val is nil, it means
7223 boolean option is off.
7224 (font_parse_fcname): Collect all extra properties in extra_props
7225 and call filter_properties for all drivers with extra_props and
7226 font as parameter.
7227 (font_open_entity): Do not use cache, it does not pick up new
7228 fontconfig settings like hinting.
7229 (font_load_for_lface): If spec had a name in it, store it in entity.
7230
7231 * emacs.c (main): Call syms_of_xsettings.
7232
7233 * config.in: HAVE_GCONF is new.
7234
7235 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7236 xsettings.o is new.
7237
7238 2009-11-17 Kenichi Handa <handa@m17n.org>
7239
7240 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7241 back to the default font in case that no suitable font is found.
7242
7243 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7244
7245 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7246 Suggested by Chad Brown <yandros@mit.edu>.
7247 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7248
7249 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7250
7251 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7252
7253 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7254
7255 * Makefile.in: Ignore errors from mkdir when creating deps directory.
7256
7257 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7258
7259 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7260 has a parent.
7261
7262 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
7263 dependency files in deps/. Include those files into Makefile.
7264
7265 * config.in: Generated (AUTO_DEPEND).
7266
7267 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
7268
7269 * dbusbind.c (Vdbus_registered_objects_table): Rename from
7270 Vdbus_registered_functions_table, because it contains also
7271 properties. Fix docstring.
7272 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
7273
7274 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7275
7276 * alloc.c (mark_object): Don't reprocess marked strings.
7277 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7278 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7279
7280 2009-11-13 Kenichi Handa <handa@m17n.org>
7281
7282 * category.c (word_boundary_p): Adjust for the change of the
7283 semantics of Vword_combining_categories.
7284 (Vword_combining_categories): Describe the slight change of the
7285 semantics.
7286
7287 2009-11-13 Eli Zaretskii <eliz@gnu.org>
7288
7289 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7290
7291 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7292
7293 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7294
7295 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7296
7297 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
7298
7299 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7300
7301 2009-11-11 David Reitter <david.reitter@gmail.com>
7302
7303 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7304 variables to fix 2009-11-09 change.
7305
7306 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7307
7308 * process.c (ifflag_def): Make flag_sym constant.
7309 (Fnetwork_interface_info): Use a constant pointer.
7310 (ifflag_table):
7311 * xfns.c (cursor_bits):
7312 * xdisp.c (power_letter):
7313 * termcap.c (speeds, esctab):
7314 * sysdep.c (baud_convert):
7315 * keyboard.c (lispy_accent_codes, modifier_names):
7316 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7317 (jpeg_format, tiff_format, gif_format, svg_format)
7318 (interlace_start, interlace_increment, gs_format):
7319 * gtkutil.c (separator_names):
7320 * fringe.c (swap_nibble):
7321 * fns.c (base64_value_to_char, base64_char_to_value):
7322 * fileio.c (make_temp_name_tbl):
7323 * coding.c (suffixes): Make constant.
7324
7325 * frame.c (make_initial_frame):
7326 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7327 build_string.
7328 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7329
7330 * s/freebsd.h:
7331 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7332
7333 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7334 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7335
7336 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7337 * xterm.c (syms_of_xterm):
7338 * xfaces.c (syms_of_xfaces):
7339 * xdisp.c (syms_of_xdisp):
7340 * lread.c (syms_of_lread):
7341 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7342 build_string.
7343
7344 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7345
7346 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7347
7348 * fns.c (Fplist_get): Merge the active and the commented out code.
7349
7350 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7351
7352 * keyboard.h: Declare timer_check.
7353
7354 * keyboard.c (timer_check_2): New function that does what the old
7355 timer_check did.
7356 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7357 returned, i.e. don't return -1 with timers pending.
7358
7359 * process.c: Remove extern declaration of timer_check.
7360
7361 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7362 even if timer_check returned -1.
7363
7364 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7365 xg_dialog_data.
7366 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7367 the event loop.
7368 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7369 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7370 Destroy the dialog after xg_dialog_run.
7371
7372 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7373
7374 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7375
7376 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7377
7378 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7379
7380 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
7381
7382 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7383
7384 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7385
7386 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7387 w32menu.c, and nsmenu.m.
7388 Simplify the obsolete case where position is nil.
7389 (cleanup_popup_menu): New function, moved from nsmenu.m.
7390 (struct skp): Remove slot `notreal'.
7391 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7392 adjust callers.
7393 (single_menu_item): Adjust call to parse_menu_item.
7394 (syms_of_menu): Defsubr x-popup-menu.
7395 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7396 (keymap_panes): Don't export any more.
7397 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7398 (xmenu_show): Declare.
7399 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7400 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7401 * keyboard.h (parse_menu_item): Update declaration.
7402 * xmenu.c (Fx_popup_menu): Remove.
7403 (syms_of_xmenu): Don't defsubr x-popup-menu.
7404 * w32menu.c (Fx_popup_menu): Remove.
7405 (syms_of_w32menu): Don't defsubr x-popup-menu.
7406 * nsmenu.m (cleanup_popup_menu): Remove.
7407 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7408 moved to menu.c's Fx_popup_menu.
7409 (Fx_popup_menu): Remove.
7410 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7411 menu_items (it's done in menu.c already).
7412
7413 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7414
7415 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7416 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7417
7418 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
7419
7420 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
7421 xmenu_show. Hide any tooltip before opening a menu.
7422 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7423 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7424
7425 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7426
7427 Let integers use up 2 tags to give them one extra bit and thus double
7428 their range.
7429 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7430 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7431 New macros.
7432 (enum Lisp_Type): Use them. Give explicit values.
7433 (Lisp_Type_Limit): Remove.
7434 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7435 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7436 Pay attention to USE_2_TAGS_FOR_INTS.
7437 (INTEGERP): Use LISP_INT_TAG_P.
7438 * fns.c (internal_equal): Simplify the default case.
7439 (sxhash): Use case_Lisp_Int.
7440 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7441 any more.
7442 (Ftype_of): Use case_Lisp_Int.
7443 (store_symval_forwarding): Take into account the fact that Ints can
7444 now have more than one tag.
7445 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
7446 (buffer_slot_type_mismatch):
7447 * xfaces.c (face_attr_equal_p):
7448 * print.c (print_object):
7449 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7450 Use case_Lisp_Int.
7451
7452 2009-11-06 Eli Zaretskii <eliz@gnu.org>
7453
7454 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7455
7456 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7457 warning.
7458
7459 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7460
7461 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7462
7463 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7464
7465 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7466 ButtonPressRelease and MotionNotify (bug#4870).
7467
7468 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7469
7470 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7471
7472 * xterm.c (syms_of_xterm):
7473 * xselect.c (syms_of_xselect):
7474 * xmenu.c (syms_of_xmenu):
7475 * xfns.c (syms_of_xfns):
7476 * xfaces.c (syms_of_xfaces):
7477 * xdisp.c (syms_of_xdisp):
7478 * window.c (syms_of_window):
7479 * w32fns.c (syms_of_w32fns):
7480 * undo.c (syms_of_undo):
7481 * textprop.c (syms_of_textprop):
7482 * terminal.c (syms_of_terminal):
7483 * syntax.c (syms_of_syntax):
7484 * sound.c (syms_of_sound):
7485 * search.c (syms_of_search):
7486 * print.c (syms_of_print):
7487 * minibuf.c (syms_of_minibuf):
7488 * macros.c (syms_of_macros):
7489 * keymap.c (syms_of_keymap, initial_define_key)
7490 (initial_define_lispy_key):
7491 * keyboard.c (syms_of_keyboard):
7492 * insdel.c (syms_of_insdel):
7493 * image.c (syms_of_image):
7494 * fringe.c (syms_of_fringe):
7495 * frame.c (syms_of_frame):
7496 * fontset.c (syms_of_fontset):
7497 * fns.c (syms_of_fns):
7498 * fns.c (syms_of_fns):
7499 * fileio.c (syms_of_fileio):
7500 * fileio.c (syms_of_fileio):
7501 * eval.c (syms_of_eval):
7502 * doc.c (syms_of_doc):
7503 * dispnew.c (syms_of_display):
7504 * dired.c (syms_of_dired):
7505 * dbusbind.c (syms_of_dbusbind):
7506 * data.c (syms_of_data):
7507 * composite.c (syms_of_composite):
7508 * coding.c (syms_of_coding):
7509 * cmds.c (syms_of_cmds):
7510 * charset.c (define_charset_internal, syms_of_character):
7511 * ccl.c (syms_of_ccl):
7512 * category.c (syms_of_category, init_category_once):
7513 * casetab.c (syms_of_casetab):
7514 * casefiddle.c (syms_of_casefiddle):
7515 * callint.c (syms_of_callint):
7516 * bytecode.c (syms_of_bytecode):
7517 * buffer.c (keys_of_buffer, syms_of_buffer):
7518 * alloc.c (syms_of_alloc):
7519 * process.c (syms_of_process, init_process):
7520 * lread.c (syms_of_lread, init_obarray):
7521 * font.c (build_style_table):
7522 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7523 intern_c_string, calls to make_pure_string with
7524 make_pure_c_string. Use pure_cons instead of Fcons.
7525
7526 * process.c (socket_options): Make it const.
7527 (set_socket_option, init_process): Use a const pointer.
7528
7529 * lread.c (intern_c_string): New function.
7530 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7531 (defvar_int): Uset it. Make the name const char*.
7532
7533 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7534 (defvar_int): Update prototypes.
7535 (DEFUN, EXFUN): Support for prototypes is now required.
7536 (intern_c_string): New prototype.
7537 (struct Lisp_Subr): Make symbol_name constant.
7538
7539 * font.c (struct table_entry): Remove unused member. Make NAMES
7540 constant.
7541 (weight_table, slant_table, width_table): Make constant.
7542
7543 * emacs.c (struct standard_args): Make name and longname constant.
7544
7545 * character.h (DEFSYM): Use intern_c_string.
7546
7547 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7548
7549 * alloc.c (make_pure_c_string): New function.
7550
7551 * eval.c (Fautoload): Purecopy all arguments.
7552
7553 2009-11-05 Kenichi Handa <handa@m17n.org>
7554
7555 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7556 the buffer in case of replace.
7557
7558 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7559
7560 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7561
7562 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7563
7564 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7565 when applicable (bug#4851).
7566
7567 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7568 (P_): Support for prototypes is now required.
7569
7570 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
7571
7572 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7573 (Bug#4827).
7574
7575 2009-10-30 Eli Zaretskii <eliz@gnu.org>
7576
7577 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
7578
7579 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7580
7581 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7582
7583 * lread.c (Fload): Purecopy the file name when building
7584 Vpreloaded_file_list.
7585
7586 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7587
7588 * w32fns.c (syms_of_w32fns): Change default value of
7589 w32-scroll-lock-modifier to nil. (Bug#2827)
7590
7591 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7592
7593 * minibuf.c (Fall_completions): Fix typos in docstring.
7594
7595 2009-10-26 Andreas Schwab <schwab@redhat.com>
7596
7597 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7598
7599 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7600
7601 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7602 For delta < 0, skip check that only makes sense when the mini-window
7603 is going to be enlarged. (Bug#4534)
7604
7605 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
7606
7607 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7608 string in menu maps (Bug#4471).
7609
7610 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
7611
7612 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7613 FRAME_NS_VIEW on terminal frames (Bug#4765).
7614
7615 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7616
7617 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7618 DBUS_TYPE_UINTnn separately to get proper sign extension.
7619
7620 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7621 can properly handle unsigned types.
7622 (make_uid, make_gid): Remove.
7623
7624 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7625 types again.
7626
7627 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
7628 (system_process_attributes): Likewise.
7629
7630 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7631
7632 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7633
7634 * eval.c (Fautoload): Purecopy the filename. Simplify.
7635
7636 * category.c (Fdefine_category): Purecopy docstring.
7637
7638 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7639
7640 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7641
7642 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7643
7644 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7647 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7648 (Bug#4775).
7649
7650 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7651
7652 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7653 (init_fileio_once):
7654 * lisp.h (init_fileio_once): Remove.
7655 * emacs.c (main): Don't call init_fileio_once.
7656
7657 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7658
7659 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7660
7661 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7662
7663 * doprnt.c (doprnt): Fix overflow check.
7664
7665 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7666
7667 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7668
7669 * xterm.h (x_wait_for_event): Declare it.
7670
7671 * xterm.c (pending_event_wait): New variable.
7672 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7673 see pending_event_wait.eventtype.
7674 (handle_one_xevent): Don't change gravity when parent changes.
7675 (x_new_font): Call change_frame_size with new rows/columns before we
7676 try to resize the frame.
7677 (x_wait_for_event): New function.
7678 (x_set_window_size_1): Don't change gravity unless change_gravity
7679 is set.
7680 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7681 don't change frame size, instead wait for the ConfigureNotify.
7682 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7683 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7684 (x_initialize): Initialize pending_event_wait.
7685
7686 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7687 size.
7688
7689 * widget.c (EmacsFrameSetValues): Add comment.
7690 (EmacsFrameSetCharSize): Just call x_set_window_size.
7691
7692 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7693 x_wait_for_event.
7694 (flush_and_sync): Remove again.
7695 (xg_get_font_name): Suggest monospace if no previous font is known.
7696
7697 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7698
7699 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
7700 8th bit, since that only made sense in the ASCII world (bug#4751).
7701
7702 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7703
7704 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7705 processing pending events when event is filtered for input method.
7706 (Bug#3681)
7707
7708 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
7709
7710 * fns.c: Add #endif accidentally removed in previous change.
7711
7712 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7713
7714 * fns.c: Remove code for unsupported system: MAC_OS.
7715 * image.c: Likewise. Include setjmp.h.
7716
7717 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7718
7719 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7720 pixel -1 (bug #4742).
7721
7722 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7723
7724 * process.c (create_pty): Remove conditionals for no longer
7725 supported systems: UNIPLUS and RTU.
7726
7727 * xterm.c:
7728 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7729
7730 * alloc.c: Do not define struct catchtag.
7731 * eval.c: Move struct catchtag definition ...
7732 * lisp.h: ... here.
7733
7734 * image.c: Move png.h #include earlier to avoid warnings.
7735
7736 * xterm.c:
7737 * xsmfns.c:
7738 * xselect.c:
7739 * xrdb.c:
7740 * xmenu.c:
7741 * xftfont.c:
7742 * xfont.c:
7743 * xfns.c:
7744 * xfaces.c:
7745 * xdisp.c:
7746 * window.c:
7747 * widget.c:
7748 * w32xfns.c:
7749 * w32uniscribe.c:
7750 * w32term.c:
7751 * w32select.c:
7752 * w32reg.c:
7753 * w32proc.c:
7754 * w32menu.c:
7755 * w32inevt.c:
7756 * w32heap.c:
7757 * w32font.c:
7758 * w32fns.c:
7759 * w32console.c:
7760 * w32.c:
7761 * w16select.c:
7762 * vm-limit.c:
7763 * unexsol.c:
7764 * unexec.c:
7765 * unexcw.c:
7766 * unexaix.c:
7767 * undo.c:
7768 * tparam.c:
7769 * textprop.c:
7770 * terminfo.c:
7771 * terminal.c:
7772 * termcap.c:
7773 * term.c:
7774 * syntax.c:
7775 * sound.c:
7776 * sheap.c:
7777 * search.c:
7778 * scroll.c:
7779 * region-cache.c:
7780 * regex.c:
7781 * ralloc.c:
7782 * process.c:
7783 * print.c:
7784 * nsterm.m:
7785 * nsselect.m:
7786 * nsmenu.m:
7787 * nsimage.m:
7788 * nsfont.m:
7789 * nsfns.m:
7790 * msdos.c:
7791 * minibuf.c:
7792 * menu.c:
7793 * marker.c:
7794 * macros.c:
7795 * keymap.c:
7796 * keyboard.c:
7797 * intervals.c:
7798 * insdel.c:
7799 * indent.c:
7800 * gtkutil.c:
7801 * ftxfont.c:
7802 * ftfont.c:
7803 * fringe.c:
7804 * frame.c:
7805 * fontset.c:
7806 * font.c:
7807 * fns.c:
7808 * floatfns.c:
7809 * filelock.c:
7810 * fileio.c:
7811 * emacs.c:
7812 * editfns.c:
7813 * dosfns.c:
7814 * doprnt.c:
7815 * doc.c:
7816 * dispnew.c:
7817 * dired.c:
7818 * dbusbind.c:
7819 * data.c:
7820 * composite.c:
7821 * coding.c:
7822 * cmds.c:
7823 * cm.c:
7824 * chartab.c:
7825 * charset.c:
7826 * character.c:
7827 * ccl.c:
7828 * category.c:
7829 * casetab.c:
7830 * casefiddle.c:
7831 * callproc.c:
7832 * callint.c:
7833 * bytecode.c:
7834 * buffer.c:
7835 * atimer.c: Include setjmp.h. (Bug#4643)
7836
7837 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7838
7839 Remove leftover table unibyte_to_multibyte_table.
7840 * character.c (unibyte_to_multibyte_table): Remove.
7841 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7842 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7843 * character.h (UNIBYTE_TO_CHAR): New macro.
7844 (MAKE_CHAR_MULTIBYTE): Use it.
7845 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7846 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7847 (message_dolog, set_message_1):
7848 * search.c (Freplace_match):
7849 * editfns.c (Fcompare_buffer_substrings):
7850 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7851 (concat):
7852 * insdel.c (copy_text, count_size_as_multibyte):
7853 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7854 * term.c (produce_glyphs):
7855 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7856 * regex.c (RE_CHAR_TO_MULTIBYTE):
7857 * cmds.c (internal_self_insert):
7858 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7859
7860 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7861
7862 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7863
7864 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7865
7866 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
7867
7868 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7869
7870 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7871
7872 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7873 still needed under Tiger.
7874
7875 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7876
7877 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7878 __Apple__.
7879
7880 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7881
7882 2009-10-15 Kenichi Handa <handa@m17n.org>
7883
7884 * print.c (print_object): Escape a symbol like "2E10" too.
7885
7886 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
7887
7888 Cleanups and changes for 64-bit compile under Snow Leopard.
7889 Based on suggestions by Erik Charlebois.
7890
7891 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7892
7893 * nsfont.m (ns_char_width): Replace deprecated call.
7894 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7895 cast argument.
7896 (nsfont_open): Use ns_char_width() everywhere.
7897 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
7898
7899 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7900
7901 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7902 where appropriate.
7903
7904 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7905 where appropriate.
7906 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7907 Use stringWithUTF8String.
7908 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7909
7910 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7911 Add formal protocol mention to inheritance.
7912 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7913
7914 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7915 Fix printf format.
7916 (ns_query_color): Use CGFloat where appropriate.
7917 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
7918 (EmacsScroller-mouseDown:): Use long format in printf, and cast
7919 argument.
7920
7921 * config.in (NS_HAVE_NSINTEGER): Drop.
7922
7923 * dbusbind.c (dbus-method-return-internal)
7924 (dbus-method-error-internal): Use long format in printf, and cast
7925 argument.
7926
7927 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7928 in printf, and cast argument.
7929
7930 * process.c (list_processes_1): Use long format in printf, and
7931 cast argument.
7932
7933 2009-10-11 Glenn Morris <rgm@gnu.org>
7934
7935 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7936
7937 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7938
7939 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7940 menu bar with a small width so it doesn't enlarge the frame.
7941
7942 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
7943
7944 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7945
7946 2009-10-06 Glenn Morris <rgm@gnu.org>
7947
7948 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7949 SOME_MACHINE_LISP (this enters indirectly via DOC).
7950
7951 2009-10-05 Eli Zaretskii <eliz@gnu.org>
7952
7953 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7954
7955 2009-10-04 Eli Zaretskii <eliz@gnu.org>
7956
7957 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7958 Doc fix.
7959
7960 2009-10-03 Martin Rudalics <rudalics@gmx.at>
7961
7962 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7963
7964 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
7965
7966 * lisp.h (Qdelete_directory_internal): Remove, because it is not
7967 used anymore outside fileio.c.
7968
7969 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7970
7971 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
7972
7973 * lisp.h (Qdelete_directory_internal):
7974 Declare, instead of Qdelete_directory.
7975
7976 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7977
7978 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7979
7980 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7981
7982 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
7983
7984 * fileio.c (Fdelete_directory_internal): Rename from
7985 Fdelete_directory. It is not a command anymore. It has no file
7986 name handler.
7987
7988 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7989
7990 * xdisp.c (get_next_display_element): Use an enum in last change.
7991
7992 2009-09-28 Kenichi Handa <handa@m17n.org>
7993
7994 * xdisp.c (get_next_display_element): Pay attention to
7995 unibyte_display_via_language_environment in handling
7996 Vnobreak_char_display.
7997
7998 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7999
8000 * nsterm.h (ns_app_name): New extern variable.
8001
8002 * nsterm.m (ns_app_name): New variable.
8003 (ns_term_init): Set and use it.
8004 (ns_term_shutdown): Use it.
8005
8006 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8007 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8008
8009 * nsfns.m (ns_set_name_iconic, ns_set_name)
8010 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8011 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8012
8013 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8014 Remove double-casting in client_data comparison.
8015
8016 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8017
8018 * keyboard.c (make_lispy_event): Remember last wheel direction.
8019 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8020
8021 2009-09-26 Glenn Morris <rgm@gnu.org>
8022
8023 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8024 internal.elc. Add term/pc-win.elc.
8025 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8026 term/x-win.elc.
8027 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8028 term/w32-win.elc.
8029 (NS_SUPPORT): New.
8030 (lisp): Add NS_SUPPORT.
8031 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8032
8033 2009-09-25 David Reitter <david.reitter@gmail.com>
8034
8035 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8036 on Mac OS X 10.6+ (bug#4513).
8037
8038 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8039
8040 * frame.c (xrdb_get_resource): Return nil for empty string resources;
8041 some parts of Emacs code (like font selection) don't grok them.
8042 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
8043
8044 2009-09-24 Andreas Schwab <schwab@redhat.com>
8045
8046 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8047
8048 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8049
8050 * dired.c (Fdirectory_files): Fix typo in docstring.
8051
8052 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8053
8054 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8055 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8056 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8057 under GNUstep.
8058 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8059
8060 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8061 glyph advancement.
8062
8063 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8064
8065 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
8066 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
8067
8068 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8069 deleted (bug #4492).
8070
8071 * nsfont.m (Vns_reg_to_script): New lisp variable.
8072 (syms_of_nsfont): Declare it.
8073 (ns_registry_to_script): New function.
8074 (ns_get_req_script): Call it.
8075 (ns_findfonts): Don't give up on non-unicode registry.
8076
8077 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8078
8079 2009-09-20 Tom Tromey <tromey@redhat.com>
8080
8081 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8082 batch mode (bug#4228).
8083
8084 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
8085
8086 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
8087 carefully. (Bug #4339)
8088
8089 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
8090
8091 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
8092
8093 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8094
8095 * emacs.c (inhibit_x_resources): Update doc string for NS.
8096 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
8097 legacy code for -NXHost. Fix error printf in daemon case.
8098
8099 * nsterm.h (ns_no_defaults): Remove.
8100
8101 * nsterm.m (ns_no_defaults): Remove.
8102 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8103 (ns_use_qd_smoothing): Remove legacy variable.
8104 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8105 don't update the NSWindow itself.
8106 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
8107 state detection and store user rect ourselves. (Bug #3581)
8108
8109 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8110 ns_use_qd_smoothing.
8111
8112 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8113 platform versions. Drop support for emacs-20-style face specs.
8114 (x-close-connection): Drop PSFlush() under OS X.
8115 (x-focus-frame): Activate the app first. (Bug #4180)
8116
8117 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
8118
8119 * emacs.c (inhibit_x_resources): New variable.
8120 (main) [HAVE_NS]: Don't process --quick command line option.
8121 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8122
8123 * lisp.h (inhibit_x_resources): Declare it extern.
8124
8125 * w32reg.c (x_get_string_resource):
8126 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8127
8128 2009-09-17 Eli Zaretskii <eliz@gnu.org>
8129
8130 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8131 Add lisp/term/internal.elc.
8132
8133 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8134
8135 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8136 (bug#4461).
8137
8138 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8139
8140 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8141
8142 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8143 (OBJECTS_MACHINE): Remove, unused.
8144
8145 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8146
8147 * frame.c (x_get_resource_string): Remove unused.
8148
8149 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8150
8151 * xterm.c (x_new_font): Call change_frame_size before calling
8152 x_set_window_size, in case frame size won't change.
8153
8154 * frame.c (x_set_font): Remove dead code.
8155
8156 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8157
8158 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8159
8160 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8161
8162 * lread.c (Fload): Don't output a message after loading an obsolete
8163 package any more (done in Lisp now).
8164
8165 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
8166
8167 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8168
8169 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8170
8171 * keymap.c (Fwhere_is_internal): Use nconc2.
8172
8173 2009-09-11 Alan Mackenzie <acm@muc.de>
8174
8175 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8176 batch mode.
8177
8178 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8179
8180 * xdisp.c (display_mode_element): Detect cycles.
8181
8182 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8183
8184 * keymap.c (where_is_internal): Don't erroneously return nil right after
8185 filling the cache.
8186 (where_is_internal_1): Fix up typo.
8187
8188 2009-09-11 Glenn Morris <rgm@gnu.org>
8189
8190 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8191 share a common doc-string.
8192
8193 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8194
8195 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8196 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8197
8198 * keymap.c (QCadvertised_binding): New constant.
8199 (syms_of_keymap): Initialize it.
8200 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8201 if applicable.
8202
8203 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8204
8205 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8206 (parse_menu_item): Streamline since bindings are recomputed all the
8207 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8208 more and don't support lmenu's menu-alias any more either.
8209
8210 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8211 (where_is_internal): Strip it down to only traverse the keymaps.
8212 Move the cache handling from Fwhere_is_internal to here.
8213 (Fwhere_is_internal): Move the handling of remapping and the choice of
8214 the best binding from where_is_internal to here.
8215 Unify the cached/noncached paths, so remapping is also handled
8216 correctly when the cache is used, and so the cache can be used to
8217 speed up remap-handling when applicable.
8218 Give preference to non-remapped bindings.
8219 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8220 non-remapped bindings.
8221 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8222 command remapping.
8223
8224 * xdisp.c (display_mode_element): Move list length limit from 50 to
8225 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8226
8227 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
8228
8229 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8230
8231 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8232
8233 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8234 (Bug#4334)
8235
8236 * keymap.c (where_is_internal): Filter out shadowed remappings.
8237 Assume that where_is_internal returns unshadowed bindings to simplify
8238 the code and get rid of the gotos. Use ASIZE.
8239
8240 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8241
8242 * xterm.c (x_focus_changed): If we get a focusout and pointer
8243 is invisible, make it visible.
8244
8245 * xterm.h: Remove condition for declaration of
8246 x_*_window_to_frame.
8247
8248 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8249
8250 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8251 initial terminal as well.
8252
8253 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8254
8255 * xterm.h: Rename x_non_menubar_window_to_frame to
8256 x_menubar_window_to_frame.
8257
8258 * xterm.c: Remove declarations also in xterm.h.
8259 (XTmouse_position): Do not return valid positions
8260 for clicks in the menubar and the toolbar for Gtk+.
8261
8262 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8263 if the widget for the event has the same top level as a frame,
8264 return the frame.
8265 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8266 internal windows, bug #4122.
8267 (x_non_menubar_window_to_frame): Remove.
8268
8269 2009-09-02 Glenn Morris <rgm@gnu.org>
8270
8271 * buffer.c (default-major-mode): Move most of the doc from here...
8272 (major-mode): ... to here.
8273
8274 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
8275
8276 * process.c (wait_reading_process_output): Keep the descriptor
8277 when pty is used by a non-child process, e.g., in I/O buffer of
8278 GDB this allows inferior to be restarted.
8279
8280 2009-08-29 Eli Zaretskii <eliz@gnu.org>
8281
8282 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8283 both branches into one.
8284
8285 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8286
8287 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8288 (main): Use enable-multibyte-characters rather than
8289 default-enable-multibyte-characters. Output a warning message when
8290 running a unibyte session.
8291
8292 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8293
8294 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8295 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8296 (copy_data_segment): Also copy __program_vars section.
8297 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8298 (dump_it) [LC_DYLD_INFO]: Use it.
8299
8300 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8301
8302 2009-08-28 Eli Zaretskii <eliz@gnu.org>
8303
8304 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8305 $(SRC)/buildobj.h.
8306 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8307 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8308 $(SRC)/buildobj.h.
8309 (clean): Add buildobj.h.
8310
8311 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8312
8313 * print.c (print_object): Set escapeflag to 1 when printing
8314 hashtable keys and values.
8315
8316 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8317
8318 * lread.c (read_integer): Use doubles (and potentially return a float
8319 number) as we do in string-to-number.
8320 (read1): Use strtol to read integers, signal errors on strtol's
8321 overflow and use floats if strtol's output is too large for
8322 Elisp integers.
8323
8324 2009-08-27 Eli Zaretskii <eliz@gnu.org>
8325
8326 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8327 (make-buildobj-SH): Fix last change.
8328 (SRC): Move to before where it's first used.
8329
8330 2009-08-27 Kenichi Handa <handa@m17n.org>
8331
8332 * process.c (send_process): Use encode_coding_object instead of
8333 encode_coding_string to perform eol-conversion even if the string
8334 is unibyte.
8335
8336 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8337 character.
8338
8339 * cmds.c (Fself_insert_command): Avoid unnecessay
8340 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
8341
8342 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8343
8344 * callproc.c (Fcall_process): Remove always true #if.
8345
8346 * lisp.h: Replace #if 0 code for checking with text pointing to
8347 the --enable-checking configure flag.
8348
8349 * emacs.c (main): Mention the --enable-profiling configure flag
8350 instead of using CFLAGS.
8351
8352 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
8353
8354 * Makefile.in (buildobj.h): New target.
8355 (doc.o): Depend on it.
8356 (temacs${EXEEXT}): Don't generate buildobj.lst.
8357 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8358 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8359 ($(BLD)/doc.$(O)): Depend on it.
8360 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8361 provided by Eli Zaretskii.)
8362 ($(TEMACS)): Don't generate buildobj.lst.
8363 * doc.c: Include buildobj.h.
8364 (buildobj): New static variable.
8365 (Fsnarf_documentation): Use it, instead of opening and reading
8366 buildobj.lst.
8367
8368 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
8369
8370 * dbusbind.c (Fdbus_call_method)
8371 (Fdbus_call_method_asynchronously): Use English numeric format for
8372 timeout values in doc string.
8373
8374 2009-08-25 Kenichi Handa <handa@m17n.org>
8375
8376 * alloc.c (mark_char_table): New function.
8377 (mark_object): Use mark_char_table for a char-table.
8378
8379 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8380 (CHAR_TABLE_REF): Use it.
8381
8382 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
8383
8384 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8385 before invoking the newly build emacs to check for load-path
8386 shadowing.
8387
8388 2009-08-22 Glenn Morris <rgm@gnu.org>
8389
8390 * Makefile.in (bootstrap_exe): New variable.
8391 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8392 Use ${bootstrap_exe}.
8393
8394 2009-08-22 Eli Zaretskii <eliz@gnu.org>
8395
8396 * coding.h (encode_coding_string): Don't encode unibyte strings.
8397 (Bug#4047)
8398
8399 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
8400
8401 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8402
8403 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8404 intended as hotfix only.
8405 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8406
8407 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8408
8409 * nsterm.m (ns_get_color): Update documentation properly for last
8410 change, and clean up loose ends in the code left by it. Fix
8411 longstanding bug with 16-bit hex parsing, and add support for
8412 yet another X11 format (rgb:r/g/b) for compatibility.
8413 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8414 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8415
8416 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8417
8418 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8419
8420 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
8421
8422 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8423 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8424 (xd_initialize, xd_pending_messages): Check, whether
8425 $DBUS_SESSION_BUS_ADDRESS is set.
8426
8427 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8428
8429 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8430
8431 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8432
8433 2009-08-20 Glenn Morris <rgm@gnu.org>
8434
8435 * emacs.c (system-type): Doc fix.
8436
8437 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8438
8439 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8440 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8441
8442 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
8443
8444 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8445 New functions.
8446 (xd_initialize): Revert change from 2009-08-16.
8447
8448 2009-08-18 Kenichi Handa <handa@m17n.org>
8449
8450 * fontset.c (Ffontset_font): If a nil element is found in a
8451 font-group vector, return nil.
8452
8453 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
8454
8455 * process.c (status_notify): Don't perform redisplay.
8456 (Fdelete_process, list_processes_1, process_send_signal):
8457 Expliticly perform redisplay.
8458 (wait_reading_process_output): Always check process status, but
8459 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8460
8461 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
8462
8463 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
8464 (XFLOAT_INIT): New macro for storing a float value.
8465 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8466 * fns.c (sxhash): Copy out the value of a float in order to
8467 examine its bytes.
8468 * dbusbind.c (xd_append_arg): Likewise.
8469
8470 * emacs.c (main): Don't call syms_of_data twice.
8471
8472 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
8473
8474 * dbusbind.c (xd_initialize): Add connection file descriptor to
8475 input_wait_mask, in order to let select() detect, whether a new
8476 message has been arrived.
8477 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
8478
8479 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
8480
8481 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8482 New functions.
8483
8484 * lisp.h (xd_pending_messages): Declare.
8485
8486 * keyboard.c (readable_events): Call xd_pending_messages.
8487
8488 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
8489
8490 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
8491
8492 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8493
8494 * buffer.c (set_buffer_internal_1)
8495 (swap_out_buffer_local_variables): Check for unbound local
8496 variables (Bug#4138).
8497
8498 2009-08-14 Eli Zaretskii <eliz@gnu.org>
8499
8500 * process.c (create_pty): Fix last change.
8501
8502 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
8503
8504 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8505 (xbm_load_image): Caller changed.
8506 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
8507
8508 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
8509
8510 * process.c (create_pty): New function.
8511 (Fstart_process): Use it to allow Emacs to just associate a pty
8512 with the buffer. See associated change in gdb-mi.el.
8513 (list_processes_1): Deal with no program name.
8514 (start_process_unwind): Use pid == -2 to mean no process.
8515
8516 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8517
8518 * cmds.c (nonundocount): New global variable.
8519 (keys_of_cmds): Initialize it.
8520 (Fself_insert_command): Use it to combine upto 20 sequential chars
8521 into a single undo entry, just like the Qself_insert_command code in
8522 keyboard.c does.
8523 Call frame_make_pointer_invisible, also like the Qself_insert_command
8524 code in keyboard.c does.
8525 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8526 than its own local replacement for it.
8527
8528 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
8529
8530 * fns.c (concat): Don't re-set string length to its current value.
8531
8532 * coding.h (decode_coding_string, encode_coding_string):
8533 Use SBYTES macro.
8534
8535 * doprnt.c (doprnt_lisp): Delete unused function.
8536 (doprnt): Merge with doprnt1, discarding lispstrings code.
8537 * lisp.h (doprnt_lisp): Don't declare.
8538
8539 2009-08-07 Juri Linkov <juri@jurta.org>
8540
8541 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8542
8543 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8544
8545 * print.c (syms_of_print): Undo previous change.
8546
8547 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8548
8549 * lread.c (read1, syms_of_lread): Read hashtables back from the
8550 readable format.
8551
8552 * print.c (print_preprocess, print_object): Print hashtables fully
8553 and readably.
8554 (syms_of_print): Provide 'hashtable-print-readable.
8555
8556 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8557
8558 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8559 no family set.
8560 (nsfont_open): Handle case when entity has no family.
8561
8562 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8563
8564 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8565 element, not a list, for match case.
8566
8567 2009-07-28 Kenichi Handa <handa@m17n.org>
8568
8569 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8570 rigidly.
8571
8572 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8573 font_parse_xlfd. Check font properties more rigidly.
8574
8575 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8576
8577 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8578 bsd-common.h.
8579
8580 2009-07-27 Kenichi Handa <handa@m17n.org>
8581
8582 * xfaces.c (face_with_height): Call font_clear_prop.
8583
8584 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
8585
8586 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8587
8588 * xterm.c (x_term_init): Use Qx.
8589
8590 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8591
8592 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
8593 (ns_get_color): Revert 2009-07-16 change.
8594
8595 2009-07-25 Eli Zaretskii <eliz@gnu.org>
8596
8597 * lread.c (syms_of_lread) <force_load_messages>: New variable.
8598 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
8599
8600 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
8601
8602 * coding.h (decode_coding_string, encode_coding_string):
8603 Use SCHARS macro.
8604
8605 * lread.c: Rewrite 2009-07-21 changes.
8606 (load_depth): Delete.
8607 (Qload_in_progress): New variable.
8608 (load_unwind): Don't reference load_depth or load_in_progress.
8609 (Fload): Likewise; specbind Qload_in_progress instead.
8610 (init_lread): Don't initialize load_depth.
8611 (syms_of_lread): Initialize and protect Qload_in_progress.
8612
8613 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8614
8615 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8616
8617 2009-07-23 Yavor Doganov <yavor@gnu.org>
8618
8619 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8620
8621 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8622
8623 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
8624 Bugs 3792, 3720, 2402.
8625 (ns_lookup_indexed_color): Check for bad index.
8626 (ns_index_color): Init unused slot to 0.
8627 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8628 Bug 3714, possibly 3082.
8629
8630 2009-07-22 Jason Rumney <jasonr@gnu.org>
8631
8632 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8633 Position IME window at cursor (Bug#2570).
8634 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8635 (globals_of_w32fns): Dynamically load functions required above.
8636
8637 * w32term.c (w32_draw_window_cursor): Send message to reposition
8638 any IME window.
8639
8640 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8641
8642 * fileio.c: Revert 2009-07-16 changes.
8643 (Vauto_save_include_big_deletions): New variable.
8644 (Fdo_auto_save): Disable auto-save only if
8645 auto-save-include-big-deletions is nil.
8646
8647 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8648
8649 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8650 the overflowed pixels into account (Bug#3879).
8651
8652 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
8653
8654 * lread.c (load_depth): New variable.
8655 (Fload, load_unwind, init_lread): Set it to the load recursion
8656 depth; set load_in_progress as a simple boolean based on the
8657 current load_depth. (Bug#3892)
8658
8659 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8660
8661 * nsfont.m (ns_has_attribute): Remove.
8662 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8663
8664 2009-07-18 Juri Linkov <juri@jurta.org>
8665
8666 * process.c (Fset_process_query_on_exit_flag): Mention killing
8667 a buffer in docstring.
8668
8669 2009-07-17 Kenichi Handa <handa@m17n.org>
8670
8671 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8672
8673 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8674
8675 * nsfns.m (Fns_set_alpha): Remove function.
8676 (syms_of_nsfns): Don't defsubr it.
8677
8678 * nsterm.m (ns_get_color): Remove incompatible color formats.
8679 (ns_color_to_lisp): Generate #rrggbb color format string.
8680
8681 2009-07-16 Richard Stallman <rms@gnu.org>
8682
8683 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8684 (Fset_buffer_auto_saved): Handle save_length = -2.
8685
8686 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
8687
8688 * xterm.c (Qx_gtk_map_stock): New var.
8689
8690 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8691 of calling intern each time.
8692
8693 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8694
8695 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8696 does tiling.
8697
8698 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8699
8700 2009-07-14 Kenichi Handa <handa@m17n.org>
8701
8702 * font.c (font_vconcat_entity_vectors): New function.
8703 (struct font_sort_data): New member font_driver_preference.
8704 (font_compare): Check font_driver_preference.
8705 (font_sort_entities): The format of the first argument changed.
8706 (font_delete_unmatched): Likewise.
8707 (font_list_entities): The return type changed.
8708 (font_select_entity): The format of the second argument changed.
8709 (font_find_for_lface): Adjuste for the above changes.
8710 Don't suppress the checking of C even if the repertory supports it.
8711 (Flist_fonts): Adjust for the above changes.
8712
8713 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8714 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
8715 Reject a font who has adstyle property that is different from a
8716 langname derived from registry property.
8717 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
8718
8719 2009-07-13 Eli Zaretskii <eliz@gnu.org>
8720
8721 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8722 local copy of dirfilename.
8723
8724 2009-07-13 Kenichi Handa <handa@m17n.org>
8725
8726 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8727 against max_char.
8728
8729 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8730 calling XSYMBOL (sym).
8731
8732 2009-07-11 Eli Zaretskii <eliz@gnu.org>
8733
8734 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8735 New function.
8736 (directory_files_internal) [WINDOWSNT]:
8737 Bind w32-get-true-file-attributes to either t or nil, depending whether
8738 the filesystem of the directory is fast or slow.
8739
8740 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8741 file name.
8742 (is_slow_fs): New function.
8743 (stat): Use it to determine whether to issue more system calls to
8744 get accurate file attributes, when w32-get-true-file-attributes is
8745 `local'.
8746
8747 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8748
8749 * xfns.c (Fx_select_font): Remember last font selected in
8750 x_last_font_name and use that the next time. Also try the frame
8751 parameter font-parameter as default to the font dialog.
8752
8753 2009-07-10 Kenichi Handa <handa@m17n.org>
8754
8755 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8756
8757 2009-07-09 Eli Zaretskii <eliz@gnu.org>
8758
8759 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8760
8761 * w32.c (stat): Treat UNC file names as residing on remote
8762 drives. (Bug#3542)
8763
8764 2009-07-09 Kenichi Handa <handa@m17n.org>
8765
8766 * fontset.c (fontset_find_font): Fix previous change.
8767
8768 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
8769
8770 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8771 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8772 error flag.
8773
8774 2009-07-08 Kenichi Handa <handa@m17n.org>
8775
8776 * fontset.c (fontset_find_font): Fix the logic of handling
8777 charset_matched.
8778 (font_for_char): Delete unused var.
8779 (generate_ascii_font_name): Delete it.
8780
8781 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8782
8783 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8784 (encode_coding_sjis): Fix the code range check.
8785
8786 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8789 (Fexpand_file_name): Copy string data properly (Bug#3772).
8790
8791 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8792
8793 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8794 first MapNotify.
8795
8796 2009-07-07 Kenichi Handa <handa@m17n.org>
8797
8798 * character.h (unibyte_has_multibyte_table): Delete extern.
8799 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8800
8801 * charset.c (Fset_charset_priority): Update charset_unibyte.
8802 (syms_of_charset): Initialize charset_unibyte.
8803
8804 * character.c (unibyte_has_multibyte_table): Delete it.
8805 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8806 charset_unibyte.
8807 (multibyte_char_to_unibyte_safe): Likewise.
8808 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8809
8810 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
8811 (x_produce_glyphs): Likewise.
8812
8813 * .gdbinit (xcharset): Fix the treating $arg0.
8814
8815 2009-07-04 Eli Zaretskii <eliz@gnu.org>
8816
8817 Emulation of `getloadavg' on MS-Windows.
8818 * w32.c: Include float.h.
8819 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8820 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8821 (get_native_system_info, get_system_times): New functions.
8822 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8823 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8824 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8825 g_b_init_get_system_times, and num_of_processors.
8826
8827 2009-07-03 Jason Rumney <jasonr@gnu.org>
8828
8829 * w32term.c (w32_initialize): Use standard types.
8830
8831 2009-07-03 Eli Zaretskii <eliz@gnu.org>
8832
8833 * dired.c (Ffile_attributes): Decode user and group names by the
8834 locale's encoding. (Bug#3443)
8835
8836 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8837
8838 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8839 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8840
8841 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8842
8843 * term.c (init_tty): Remove spurious #ifdef.
8844
8845 * m/mips.h: Mention this file is also used for netbsd.
8846 * m/pmax.h: Remove file.
8847
8848 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8849
8850 * xterm.h (struct x_display_info): Add invisible_cursor.
8851 (struct x_output): Add current_cursor.
8852
8853 * xterm.c (XTtoggle_invisible_pointer): New function.
8854 (x_define_frame_cursor): Don't define cursor if invisible or the
8855 same as before. Set current_cursor.
8856 (x_create_terminal): Set toggle_invisible_pointer_hook.
8857
8858 * xfns.c (make_invisible_cursor): New function.
8859 (x_set_mouse_color): Call make_invisible_cursor.
8860 Set current_cursor.
8861 (x_window): Set current_cursor.
8862
8863 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8864
8865 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8866 inserting a character.
8867 (read_avail_input): Call frame_make_pointer_visible.
8868
8869 * frame.c (Vmake_pointer_invisible): New variable.
8870 (frame_make_pointer_invisible, frame_make_pointer_visible):
8871 New functions.
8872 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8873
8874 * frame.h: Declare frame_make_pointer_invisible and
8875 frame_make_pointer_visible.
8876 (struct frame): Add pointer_invisible.
8877
8878 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8879
8880 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8881 frame isn't visible.
8882 (xg_frame_resized): If width/height is -1, get size of window
8883 from X server.
8884
8885 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8886 for MapNotify.
8887
8888 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
8889 here or call change_frame_size. Just call flush_and_sync.
8890 (flush_and_sync): Reintroduce.
8891
8892 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
8893
8894 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
8895
8896 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8897 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8898
8899 * frame.h: Declare Qsticky.
8900
8901 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8902
8903 * nsfns.m (ns_frame_parm_handlers): Ditto.
8904
8905 * frame.c: Declare Qsticky.
8906 (frame_parms): Add sticky.
8907
8908 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8909
8910 * xterm.h: Declare x_set_sticky.
8911
8912 * xterm.c (x_set_sticky): New function.
8913
8914 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8915 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8916 xg_tool_bar_proxy_help_callback.
8917
8918 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8919
8920 * frame.c: Qmaximized is new.
8921 (x_set_frame_parameters): Do not handle fullscreen specially.
8922 Only set width and height if explicitly set.
8923 (x_set_fullscreen): Handle Qmaximized.
8924 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8925 (syms_of_frame): Initialize Qmaximized.
8926
8927 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8928 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
8929
8930 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
8931 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8932 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
8933 set gravity to NorthWestGravity when USE_GTK.
8934 (set_wm_state): New function.
8935 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
8936 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8937 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
8938 or the case when no window manager is running. That means remove calls
8939 to x_real_positions and x_fullscreen_adjust.
8940
8941 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8942 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8943 flush_and_sync.
8944 (xg_height_changed): New function.
8945 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
8946 and gtk_window_set_policy. Set frame gravity after parsing the
8947 geometry string.
8948 (xg_update_frame_menubar, free_frame_menubar)
8949 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8950 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8951 Remove calls to xg_frame_set_char_size.
8952
8953 2009-07-01 Kenichi Handa <handa@m17n.org>
8954
8955 * keyboard.c (decode_keyboard_code): New function.
8956 (tty_read_avail_input): Decode the input bytes if necessary.
8957
8958 * coding.c (setup_coding_system):
8959 Initialize coding->carryover_bytes to 0.
8960 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8961 use Qno_conversion.
8962
8963 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8964
8965 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8966
8967 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
8968
8969 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
8970
8971 2009-06-30 Jason Rumney <jasonr@gnu.org>
8972
8973 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8974 is already loaded.
8975 Set user model ID if supported (bug#1849).
8976
8977 2009-06-29 Jim Meyering <meyering@redhat.com>
8978
8979 Remove useless if-before-xfree test.
8980 * nsfont.m (nsfont_close): Remove useless test.
8981 * term.c (delete_tty): Likewise.
8982 * w32.c (system_process_attributes): Likewise.
8983 * w32font.c (w32font_close): Likewise.
8984 * xfaces.c (x_free_gc): Likewise.
8985 * xselect.c (buffer): Likewise.
8986
8987 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8988
8989 * process.c (send_process): Keep decoded string in a local
8990 variable and protect it from GC. (Bug#3521)
8991
8992 2009-06-28 Eli Zaretskii <eliz@gnu.org>
8993
8994 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8995 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8996
8997 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
8998
8999 * xdisp.c (start_display, handle_face_prop)
9000 (move_it_vertically_backward, cursor_row_fully_visible_p)
9001 (redisplay_window, try_window_id, produce_image_glyph):
9002 Delete some #ifdef-ed out code chunks that are now obsolete.
9003
9004 * xterm.c (x_update_window_begin, x_new_focus_frame)
9005 (x_scroll_bar_handle_click, handle_one_xevent)
9006 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9007 (x_make_frame_visible, x_make_frame_invisible)
9008 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9009 code chunks that are now obsolete.
9010
9011 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
9012
9013 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9014 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9015 for hours, when optimzation is enabled.
9016 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9017 (xd_read_message): Make them static.
9018
9019 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9020
9021 * term.c (turn_on_face): Allow simultaneously bold and dim
9022 terminal faces (Bug#3530).
9023
9024 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
9025
9026 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9027
9028 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9029 truncation glyphs (Bug#3686).
9030
9031 2009-06-27 Glenn Morris <rgm@gnu.org>
9032
9033 * m/pmax.h: Restore file, with only netbsd portions.
9034
9035 2009-06-26 David Reitter <david.reitter@gmail.com>
9036
9037 * nsterm.m (keydown): Avoid infinite loop.
9038
9039 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9040
9041 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9042 the arg FORCE_SYMBOL.
9043
9044 2009-06-25 Kenichi Handa <handa@m17n.org>
9045
9046 * fontset.c (fontset_find_font): When a usable rfont_def is found
9047 in a fallback font-group, make it the first element of the group.
9048
9049 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
9050
9051 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9052
9053 2009-06-24 Kenichi Handa <handa@m17n.org>
9054
9055 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9056 set for C.
9057 (fontset_font): Record the availability of a font for C both in
9058 the realized fontsets of the current one and the default one.
9059
9060 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9061
9062 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9063 conditional, it is always defined on AIX.
9064
9065 2009-06-23 Miles Bader <miles@gnu.org>
9066
9067 * window.c (Vrecenter_redisplay): New variable.
9068 (syms_of_window): Initialize it.
9069 (Qtty): New extern declaration.
9070 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9071
9072 2009-06-23 Jim Meyering <meyering@redhat.com>
9073
9074 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9075 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
9076 pointer dereferences are guaranteed to be valid.
9077
9078 2009-06-23 Kenichi Handa <handa@m17n.org>
9079
9080 * emacs.c (main): Call init_font ().
9081
9082 * font.h (Vfont_log): Extern it.
9083 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9084
9085 * font.c (font_sort_entities, font_list_entities)
9086 (font_matching_entity, font_open_entity)
9087 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9088 (Vfont_log): Delete static.
9089 (font_log_env_checked): Delete this variable.
9090 (font_add_log): Don't check font_log_env_checked.
9091 (font_deferred_log): Check Vfont_log.
9092 (init_font): New function.
9093
9094 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9095
9096 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9097
9098 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9099
9100 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9101
9102 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9103 (face_for_char): Don't call font_deferred_log here.
9104 (font_for_char): Likewise.
9105
9106 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
9107
9108 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9109 rather than its background_width for drawing the overline and
9110 underline (Bug#489).
9111
9112 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9113 rather than its background_width for drawing the overline and
9114 underline (Bug#489).
9115 (xg_default_icon_file): New variable.
9116 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9117 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9118
9119 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9120 (load_overlay_strings): Remove externs.
9121 (fast_find_position): Function deleted.
9122 (mouse_face_from_buffer_pos): New function, based on
9123 fast_find_position. Correctly handle before-strings,
9124 display-strings, and after-strings (Bug#1220).
9125 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9126
9127 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
9130 (move_it_in_display_line_to, move_it_in_display_line_to)
9131 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9132
9133 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9134
9135 * Branch for 23.1.
9136
9137 2009-06-21 Jason Rumney <jasonr@gnu.org>
9138
9139 * w32term.c (keyboard_codepage): New static variable.
9140 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9141 (w32_read_socket) [WM_CHAR]: Use it to decode character
9142 input (bug#3237).
9143 (w32_initialize): Initialize it.
9144 (codepage_for_locale): New function.
9145
9146 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
9147
9148 * process.c (status_message): Pass Faset index argument as a lisp
9149 object, so as to work with USE_LISP_UNION_TYPE.
9150
9151 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9152
9153 * coding.c (Ffind_coding_systems_region_internal):
9154 Cache checked characters.
9155
9156 2009-06-18 Kenichi Handa <handa@m17n.org>
9157
9158 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
9159
9160 2009-06-18 Andreas Schwab <aschwab@redhat.com>
9161
9162 * xdisp.c (redisplay_internal): Check that the frame is still
9163 live after redisplay of its windows.
9164 (redisplay_windows): Check that the window is still live.
9165
9166 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9167
9168 * coding.c (detect_coding_utf_16): Fix previous change.
9169
9170 2009-06-16 Kenichi Handa <handa@m17n.org>
9171
9172 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9173 UTF-16 by checking the dispersion of Eth and Oth bytes.
9174
9175 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9176
9177 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9178
9179 2009-06-15 Kenichi Handa <handa@m17n.org>
9180
9181 * process.c (status_message): Fix previous change. Be sure to
9182 decode a localized string.
9183
9184 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9185
9186 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9187 add comment explaining why.
9188
9189 2009-06-14 Sidney Markowitz <sidney@sidney.com>
9190
9191 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
9192
9193 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9194
9195 * nsfont.m (ns_attribute_value): Remove.
9196 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9197 (ns_has_attribute): Shrink the normal range.
9198 (ns_findfonts): Don't worry about requested spec in determining
9199 need for synthItal.
9200 (ns_get_covering_families): Retain scriptToFamilies.
9201
9202 2009-06-14 Seiji Zenitani <zenitani@mac.com>
9203
9204 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9205
9206 2009-06-11 Kenichi Handa <handa@m17n.org>
9207
9208 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9209 overhang for the static composition case.
9210
9211 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9212
9213 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9214 overhang for the automatic composition case.
9215
9216 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9217 composition case.
9218
9219 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
9220
9221 * xdisp.c (get_next_display_element): When handling wrap-prefix
9222 and line-prefix, treat \n as a control character (bug#3502).
9223
9224 2009-06-10 Kenichi Handa <handa@m17n.org>
9225
9226 * font.c (font_parse_family_registry): Fix for one-char foundry.
9227 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9228
9229 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9230
9231 * process.c (status_message): Fix handling of multibyte signal
9232 string (Bug#3499).
9233
9234 2009-06-09 Jim Meyering <meyering@redhat.com>
9235
9236 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9237 color name is missing.
9238
9239 2009-06-09 Kenichi Handa <handa@m17n.org>
9240
9241 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9242 FROM-CODE and TO-CODE are codepoints of CHARSET.
9243
9244 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9245
9246 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9247
9248 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9249
9250 Changes to support :script/:lang/:otf in NS font driver.
9251 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9252 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9253 indicate not part of font driver interface, and change callers.
9254 (ns_get_family): Remove pointless null check.
9255 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9256 ns_spec_to_descriptor, ns_descriptor_to_entity.
9257 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9258 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9259 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9260 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9261 (ns_get_req_script, ns_accumulate_script_ranges)
9262 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9263 New functions.
9264 (nsfont_list, nsfont_match): Use ns_findfonts.
9265 (nsfont_open): Use font descriptor instead of traits.
9266 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9267 (dump_glyphstring): Rename to ns_dump_glyphstring.
9268
9269 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9270
9271 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9272
9273 * fontset.c (fontset_from_font): Remove NS-specific code.
9274
9275 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
9276
9277 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9278 nonactive windows.
9279
9280 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
9281
9282 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
9283
9284 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9285
9286 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9287
9288 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
9289
9290 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9291 account for the overflowing of newlines into the last glyph on the
9292 display line (Bug#3482).
9293
9294 2009-06-05 David Reitter <david.reitter@gmail.com>
9295
9296 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9297 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
9298 Fns_selection_exists_p, Fns_selection_owner_p.
9299
9300 2009-06-03 Jason Rumney <jasonr@gnu.org>
9301
9302 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9303 available. (Bug#3379)
9304
9305 2009-05-29 Kenichi Handa <handa@m17n.org>
9306
9307 * coding.c (get_translation_table):
9308 Check Venable_character_translation.
9309
9310 2009-05-26 David Reitter <david.reitter@gmail.com>
9311
9312 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9313 (x_make_frame_visible): Move frame to front rather than calling
9314 ns_raise_frame().
9315 (keyDown:): Do not swallow events that aren't re-sent if frame
9316 isn't key window.
9317 (drawRect:): Do not set visibility/iconified flags because
9318 drawRect may be called by NSView even if the frame is hidden.
9319
9320 * nsfns.m (Fx_create_frame): Follow other ports in
9321 determining visibility; default to t. Ensure async_visible is set.
9322
9323 2009-05-23 Eli Zaretskii <eliz@gnu.org>
9324
9325 * dired.c (Ffile_attributes): Doc fix.
9326
9327 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
9328
9329 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9330
9331 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9332
9333 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9334 and xfont_scratch_props.
9335 (syms_of_xfont): Do it here instead.
9336 (xfont_find_ccl_program): Delete, unused.
9337 (xfont_open): Delete unused var `i'.
9338
9339 2009-05-21 Kenichi Handa <handa@m17n.org>
9340
9341 * fontset.c (Qlatin): Don't make it static.
9342
9343 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9344 New functions.
9345 (xfont_scripts_cache, xfont_scratch_props): New variables.
9346 (Qlatin, Vscalable_fonts_allowed): Extern it.
9347 (xfont_list_pattern): Argument changed. Callers changed.
9348 Check Vscalable_fonts_allowed. Check the support of a script.
9349 (xfont_list): Don't reject a font spec with :script property.
9350 (xfont_has_char): Fix setting of encoding.
9351 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9352 xfont_scratch_props.
9353
9354 2009-05-19 Kenichi Handa <handa@m17n.org>
9355
9356 * font.c (font_sort_entities): Rename from font_sort_entites.
9357 Callers changed.
9358
9359 2009-05-18 Kenichi Handa <handa@m17n.org>
9360
9361 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9362
9363 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9364
9365 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9366 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9367
9368 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9369
9370 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9371 (x_delete_terminal): Dissociate resource database from display and
9372 then call XrmDestroyDatabase before closing display.
9373
9374 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9375
9376 * nsterm.m (ns_read_socket): Remove unused variable.
9377 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9378 whether selected frame is viable before raising it (based on patch
9379 by David Reitter), and improve commentary.
9380 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9381
9382 2009-05-15 Kenichi Handa <handa@m17n.org>
9383
9384 * font.c (Ffont_spec): Check arguments.
9385
9386 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
9387
9388 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9389 weight when testing attributes (Bug#3282).
9390
9391 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9392
9393 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9394 what we expect to get in the next ConfigureNotify event.
9395
9396 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9397 before Xft one (Bug#1696).
9398
9399 2009-05-07 David Reitter <david.reitter@gmail.com>
9400
9401 * nsfns.m (Fx_display_planes): Compute bitplanes using
9402 NSBitsPerPixelFromDepth (Bug#3207).
9403
9404 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
9405
9406 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9407
9408 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
9409
9410 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9411
9412 2009-05-07 David Reitter <david.reitter@gmail.com>
9413
9414 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9415 Respect mouse face background.
9416
9417 2009-05-07 David Reitter <david.reitter@gmail.com>
9418
9419 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9420 Mouse movement/highlight: bracket drawing operations
9421 in ns_update_begin and ns_update_end.
9422
9423 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9424
9425 * nsfns.m (ns_get_screen): Rewrite.
9426 Don't presume selected-frame is of type `ns'.
9427
9428 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9429 all drivers.
9430
9431 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9432
9433 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9434
9435 * keyboard.h (add_user_signal): Fix typo in extern.
9436
9437 * lisp.h (add_user_signal): Remove extern.
9438
9439 * unexelf.c (unexec): Consider a section to precede the .bss section
9440 if its addresses overlap that of .bss.
9441 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9442 instead of dumping process.
9443
9444 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9445
9446 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9447
9448 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9449
9450 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9451
9452 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9453
9454 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9455 any statements.
9456
9457 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9458
9459 * process.c (read_process_output): Make sure the current buffer is
9460 always restored.
9461
9462 * coding.c (record_conversion_result): Don't modify
9463 Vlast_code_conversion_error for successful result.
9464 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9465
9466 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9467
9468 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
9469 (load_charset_map): Remove unnecessary code.
9470
9471 2009-04-30 David Reitter <david.reitter@gmail.com>
9472
9473 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
9474 through f24.
9475
9476 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
9477
9478 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9479
9480 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9481 face_at_buffer_position.
9482 (face_before_or_after_it_pos, get_next_display_element)
9483 (note_mouse_highlight): Update face_at_buffer_position call.
9484
9485 * term.c (term_mouse_highlight):
9486 * msdos.c (IT_note_mouse_highlight):
9487 * fontset.c (Finternal_char_font):
9488 * font.c (font_at, font_range): Update face_at_buffer_position call.
9489
9490 * dispextern.h (face_at_buffer_position): Update prototype.
9491
9492 2009-04-30 Kenichi Handa <handa@m17n.org>
9493
9494 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
9495
9496 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9497
9498 * callproc.c (Fcall_process): Fix GC protection. Make sure
9499 current buffer is always restored.
9500
9501 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9502
9503 * atimer.c (init_atimer): Also clear stopped_atimers.
9504
9505 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9506
9507 * process.c (create_process): Clean up merger residues of
9508 2008-07-17 change.
9509
9510 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
9511
9512 * lread.c (Vread_circle): New variable.
9513 (read1): Disable recursive read if Vread_circle is nil.
9514
9515 2009-04-29 Kenichi Handa <handa@m17n.org>
9516
9517 * fontset.h (set_default_ascii_font): Delete extern.
9518
9519 * fontset.c (set_default_ascii_font): Delete this unused function.
9520
9521 * frame.c (x_set_font): When ARG is a font-object, check if the
9522 font-object matches with the ASCII font-spec of the frame's
9523 fontset. If not, create a new fontset for the frame. (Bug #3075)
9524
9525 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9526
9527 * fns.c (Flocale_info): Protect vector from GC during decoding.
9528
9529 * process.c (Fstart_process): Protect argv strings from GC during
9530 encoding.
9531
9532 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9533
9534 * sysdep.c: Include <ctype.h>.
9535
9536 2009-04-27 David Reitter <david.reitter@gmail.com>
9537
9538 * nsfont.m (nsfont_open): Remove unused variable shrink.
9539 Remove commented-out code.
9540
9541 2009-04-26 Johan Bockgård <bojohan@gnu.org>
9542
9543 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9544
9545 2009-04-25 Jason Rumney <jasonr@gnu.org>
9546
9547 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9548
9549 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9550
9551 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9552 Swap bytes in short integer if fringe bitmap width > 8.
9553
9554 2009-04-23 Kenichi Handa <handa@m17n.org>
9555
9556 * xfaces.c (Fx_list_fonts): If a font size is specified in
9557 PATTERN, set it in returned scalable fonts.
9558
9559 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
9560
9561 * keyboard.c (Fset_input_meta_mode): Doc fix.
9562
9563 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9564
9565 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
9566
9567 * coding.c (Fterminal_coding_system): Doc fix.
9568
9569 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9570 (Fx_display_pixel_height, Fx_display_planes)
9571 (Fx_display_color_cells, Fx_server_max_request_size)
9572 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9573 (Fx_display_mm_height, Fx_display_mm_width)
9574 (Fx_display_backing_store, Fx_display_visual_class)
9575 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9576 Doc fixes, replacing "terminal id" with "terminal object".
9577 (check_x_display_info): Handle terminal objects instead of
9578 terminal ids.
9579
9580 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9581 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
9582 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9583 Doc fixes, replacing "terminal id" with "terminal object".
9584
9585 2009-04-21 Kenichi Handa <handa@m17n.org>
9586
9587 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
9588 (font_score): Check AVGWIDTH too.
9589
9590 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9591 worst case.
9592 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9593 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
9594
9595 2009-04-19 Jason Rumney <jasonr@gnu.org>
9596
9597 The following changes fix Bug#3005 for wide glyphs on each platform,
9598 without reintroducing Bug#1258 for stretch glyphs.
9599
9600 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9601 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9602 get_phys_cursor_geometry.
9603
9604 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
9605 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9606 using get_phys_cursor_geometry.
9607
9608 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9609 correctly calculated.
9610
9611 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9612
9613 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9614 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
9615 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9616 is deprecated.
9617
9618 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9619
9620 * font.c (font_put_frame_data): Use xfree instead of free.
9621
9622 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
9623
9624 * w32font.c (Qja, Qko): Remove declarations.
9625 (syms_of_w32font): Don't DEFSYM them.
9626
9627 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
9628
9629 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9630
9631 * font.h (Qja, Qko): Extern them.
9632
9633 * ftfont.c (Qja, Qko): Remove declarations.
9634
9635 * xfont.c (Qja, Qko): Remove declarations.
9636
9637 2009-04-17 Kenichi Handa <handa@m17n.org>
9638
9639 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9640 string from a vector to handle Latin-1 characters correctly.
9641
9642 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9643 entity even if the cache hits.
9644
9645 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9646
9647 * search.c (boyer_moore): Use zero as marker value for a possible
9648 match instead of depending on overflow behavior. (Bug#2844)
9649
9650 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9651 * lisp.h: Adjust prototypes.
9652
9653 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
9654
9655 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9656 change (Bug#3003).
9657
9658 2009-04-16 Kenichi Handa <handa@m17n.org>
9659
9660 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
9661
9662 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9663 adstyle.
9664
9665 * ftfont.c (Qja, Qko): Don't make them static.
9666 (enum ftfont_cache_for): New enum.
9667 (fc_charset_table): Undo the previous change.
9668 (ftfont_get_latin1_charset): Delete it.
9669 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9670 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
9671 non-scarable font, try to get AVERAGE_WIDTH.
9672 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9673 Change ft_face_cache from a list of a hash-table. Don't check
9674 `ja' and `ko' adstyle here.
9675 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9676 FTFONT_CACHE_FOR_CHARET.
9677 (ftfont_get_charset): Undo the previous change.
9678 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
9679 (ftfont_close): Likewise.
9680 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9681
9682 * font.c (font_sort_entites): Change the meaning of the arg
9683 BEST-ONLY. Don't optimize for VEC of lenght 1.
9684 (font_select_entity): Just return the value of font_sort_entites.
9685
9686 * xfaces.c (merge_face_vectors): Reflect font properties in
9687 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9688 font_clear_prop if a face attribute doesn't change.
9689
9690 * charset.h (charset_ksc5601): Extern it.
9691
9692 * charset.c (charset_ksc5601): New variable.
9693 (Fdefine_charset_internal): Set charset_ksc5601.
9694 (init_charset_once): Initialize charset_ksc5601 to -1.
9695
9696 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9697
9698 * fileio.c (history_delete_duplicates): Remove unused declaration.
9699
9700 * callint.c (history_delete_duplicates): New declaration.
9701 (Fcall_interactively): Remove command history duplicates when
9702 history_delete_duplicates is true.
9703
9704 2009-04-14 Eli Zaretskii <eliz@gnu.org>
9705
9706 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9707
9708 2009-04-14 Kenichi Handa <handa@m17n.org>
9709
9710 * font.c (Ffont_info): Fix docstring. Fix the second element of
9711 the returned value (bug#2949).
9712
9713 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9716
9717 2009-04-14 Kenichi Handa <handa@m17n.org>
9718
9719 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9720 encoding charset is ascii_compatible.
9721
9722 * charset.c (Fdefine_charset_internal): Make charset
9723 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9724 code_offset is 0, and covers all ASCII characters.
9725
9726 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9727
9728 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9729 (ns_string_to_pasteboard_internal):
9730 * nsmenu.m (process_dialog):
9731 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9732 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9733 * lisp.h (Fx_load_color_file): Declare.
9734
9735 2009-04-13 Kenichi Handa <handa@m17n.org>
9736
9737 * font.c (font_delete_unmatched): Preserve the order of list elements.
9738 (font_select_entity): Suppress the code to optimize for the same
9739 kind of fonts.
9740 (font_load_for_lface): Get a font that supports at least ASCII
9741 characters.
9742
9743 * ftfont.c (Qja, Qko): New variables.
9744 (fc_charset_table): Delete uniquifier data for iso8859-1.
9745 (ftfont_get_latin1_charset): New function.
9746 (get_adstyle_property): New function.
9747 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9748 bitmap fonts.
9749 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9750 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9751 `ko' or `ja'.
9752 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
9753 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
9754 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9755 property.
9756 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9757 (syms_of_ftfont): DEFSYM Qja and Qko.
9758
9759 2009-04-09 Kenichi Handa <handa@m17n.org>
9760
9761 * charset.c (map_charset_chars): For a charset of `superset'
9762 method, fix calculation of code range.
9763
9764 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9765 from the list of extra properties.
9766 (font_clear_prop): Be sure to delete `:name' font property.
9767
9768 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9769
9770 * dispnew.c (redraw_overlapping_rows): Fix detection of
9771 overlapping for topmost and bottommost rows.
9772
9773 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
9774
9775 2009-04-06 Jason Rumney <jasonr@gnu.org>
9776
9777 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9778
9779 2009-04-06 Kenichi Handa <handa@m17n.org>
9780
9781 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9782
9783 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9784
9785 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9786
9787 * ftfont.c (ftfont_open): Fix checking of the return value of
9788 FT_Load_Char. Fix setting font->underline_thickness.
9789
9790 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
9791
9792 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9793 (Fterminal_parameters, Fterminal_parameter)
9794 (Fset_terminal_parameter): In doc string, refer to terminal
9795 objects rather than terminal ids.
9796
9797 2009-04-04 Eli Zaretskii <eliz@gnu.org>
9798
9799 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9800 ret_lim_data. (Bug#2867)
9801
9802 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
9803
9804 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9805 so they don't get wider than the window, matching 2006-01-23
9806 change to the partner function in xdisp.c (Bug#2800).
9807
9808 2009-04-03 Kenichi Handa <handa@m17n.org>
9809
9810 * print.c (print_object): Make each lowest sub_char_table start a
9811 new line (Bug#2866).
9812
9813 2009-04-02 Kenichi Handa <handa@m17n.org>
9814
9815 * fontset.c (fontset_font): Record no-font when a fontset
9816 explicitly tells not to try another font-specs.
9817
9818 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9819
9820 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9821
9822 2009-03-30 Kenichi Handa <handa@m17n.org>
9823
9824 * fontset.c (fontset_from_font): Specify only registry in a
9825 font-spec for all characters supported by that registry.
9826
9827 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9828 even if HAVE_M17N_FLT is not defined.
9829
9830 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9831
9832 * ftfont.c: Conditionalize prototyping and use of
9833 ftfont_variation_glyphs.
9834
9835 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9836
9837 * frame.c (delete_frame): Work around compiler bug.
9838
9839 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9840 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9841 Some more EMACS_INT.
9842 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9843
9844 * xdisp.c (dump_glyph): Fix typo.
9845
9846 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9847 (adjust_markers_gap_motion, adjust_markers_for_delete)
9848 (adjust_markers_for_insert, adjust_point)
9849 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9850 (make_gap, copy_text, count_size_as_multibyte, insert)
9851 (insert_and_inherit, insert_before_markers)
9852 (insert_before_markers_and_inherit, insert_1)
9853 (count_combining_before, count_combining_after, insert_1_both)
9854 (insert_from_string, insert_from_string_before_markers)
9855 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9856 (insert_from_buffer_1, adjust_after_replace)
9857 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9858 (replace_range_2, del_range, del_range_1, del_range_byte)
9859 (del_range_both, del_range_2, modify_region)
9860 (prepare_to_modify_buffer, signal_before_change)
9861 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9862 for buffer positions and sizes.
9863 * lisp.h: Adjust prototypes accordingly.
9864
9865 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9866 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9867 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9868
9869 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9870
9871 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9872
9873 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9874 lines and columns so we keep the same pixel height and width.
9875
9876 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9877 the property _NET_WM_STATE has changed.
9878 (x_handle_net_wm_state): New function to update frame parameter
9879 fullscreen.
9880 (x_term_init): Initialize atoms for _NET_WM_STATE.
9881
9882 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9883
9884 2009-03-27 Kevin Ryde <user42@zip.com.au>
9885
9886 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9887 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9888 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9889 (Fgpm_mouse_stop): Pass that new parameter.
9890 * termhooks.h (close_gpm): Adjust prototype.
9891
9892 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9893
9894 * lisp.h (Fx_focus_frame): Declare.
9895
9896 * callint.c (Fcall_interactively): For '^' just delegate the work to
9897 handle-shift-selection.
9898 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9899
9900 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
9901
9902 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9903
9904 * data.c (Qinteractive_form): New variable.
9905 (Finteractive_form): Use it.
9906
9907 * eval.c (Fcommandp): Use Qinteractive_form.
9908
9909 2009-03-24 Jason Rumney <jasonr@gnu.org>
9910
9911 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9912 Calculate total size precisely. Decode environment variables
9913 before substituting. (Bug#38)
9914
9915 2009-03-24 Kenichi Handa <handa@m17n.org>
9916
9917 * font.c (find_font_encoding): Return Qnil for unsupported
9918 encoding (Bug#2722).
9919
9920 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9921
9922 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9923 that gdpy is set.
9924
9925 2009-03-22 Alan Mackenzie <acm@muc.de>
9926
9927 * callint.c (Finteractive): Clarify the doc string - even
9928 promptless elements need \n separators.
9929
9930 2009-03-22 Jason Rumney <jasonr@gnu.org>
9931
9932 * w32term.c (syms_of_w32term): Doc fix for
9933 x-use-underline-position-properties.
9934
9935 2009-03-21 Eli Zaretskii <eliz@gnu.org>
9936
9937 * w32.c (getpwuid): Change argument type to unsigned.
9938 (struct w32_id): Change type of `rid' member to unsigned.
9939 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9940 argument ID to unsigned. All callers changed.
9941 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9942
9943 2009-03-20 Eli Zaretskii <eliz@gnu.org>
9944
9945 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9946 negative, produce a float value.
9947
9948 * dired.c (make_uid, make_gid): New functions.
9949 (Ffile_attributes): Use them to avoid negative UID and GID.
9950
9951 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
9952
9953 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9954 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9955 Fix typos in docstrings.
9956
9957 2009-03-19 Kenichi Handa <handa@m17n.org>
9958
9959 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
9960 changed, use font_load_for_lface to get a new font object.
9961 Call free_realized_fontset after handling ASCII font change.
9962
9963 * frame.c (x_set_font): Handle the case that ARG is a cons.
9964
9965 2009-03-19 Glenn Morris <rgm@gnu.org>
9966
9967 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9968
9969 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
9970
9971 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9972
9973 2009-03-19 Kenichi Handa <handa@m17n.org>
9974
9975 * charset.c (load_charset_map_from_file): When a mapfile can't be
9976 loaded, signal an error.
9977
9978 2009-03-18 Eli Zaretskii <eliz@gnu.org>
9979
9980 * dired.c (Ffile_attributes): Make sure UID and GID are always
9981 positive, even if the value is too large for a positive EMACS_INT.
9982 Doc fix.
9983
9984 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9985
9986 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9987
9988 * xmenu.c (xdialog_show): Move Fredisplay call ...
9989 (Fx_popup_dialog): ... here.
9990
9991 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9992
9993 * dired.c (file_name_completion): Disable the first optimization just
9994 installed, since it is not implemented correctly.
9995
9996 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9997
9998 * dired.c (file_name_completion): Check completion-ignored-extensions
9999 only if the entry can affect bestmatch.
10000 Stop the search early, as Ftry_completion already does.
10001
10002 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
10005
10006 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
10007
10008 * keyboard.c (parse_menu_item): Don't display remappings as menu
10009 equivalent bindings (Bug#788).
10010
10011 2009-03-15 Jason Rumney <jasonr@gnu.org>
10012
10013 * w32term.h (WM_EMACS_PAINT): New message.
10014 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10015 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10016 before passing to lisp thread. (Bug#950)
10017
10018 2009-03-14 David Reitter <david.reitter@gmail.com>
10019
10020 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10021 variable as it was never reset.
10022 (ns_term_init): Remove initialization of Lisp-settable defaults
10023 and ns_expand_space.
10024 (-setPanelFromDefaultValues): Remove ns_expand_space.
10025 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10026 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
10027 i.e. no additional spacing, similar to Carbon port.
10028
10029 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10030 * nsfns.m (ns-popup-prefs-panel): Remove.
10031
10032 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10033
10034 * sound.c (alsa_configure): Remove call to deprecated
10035 snd_pcm_sw_params_set_xfer_align.
10036
10037 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
10038
10039 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10040 after clicking in a detached tool bar.
10041 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10042
10043 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10044
10045 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10046 int/Lisp_Object mixup).
10047
10048 2009-03-13 Kenichi Handa <handa@m17n.org>
10049
10050 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
10051 Handle NAME nil and t correctly. Callers changed.
10052 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10053 (set_fontset_font): Change ARG to a vector. Handle range_list in
10054 ARG correctly.
10055 (Fset_fontset_font): Fix the case that TARGET is both a script
10056 name and charset name. Adjust the arg to set_fontset_font for
10057 the above change.
10058 (fontset_from_font): Fix previous change.
10059 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
10060 entry. If FONTSET is the default fontset, don't set the extra
10061 slot of the returning char-table.
10062
10063 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
10064
10065 * nsfns.m (Fx_close_connection): Doc fix.
10066 (Fns_do_applescript): Reflow docstring.
10067 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10068 (Fx_display_pixel_width, Fx_display_pixel_height)
10069 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10070 Fix typos in docstrings.
10071 (Fns_set_alpha): Fix typos in error messages.
10072
10073 2009-03-12 David Reitter <david.reitter@gmail.com>
10074
10075 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
10076 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10077 were used for such events.
10078
10079 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10080 (toggleToolbar, performDragOperation, runHelp): Use it.
10081
10082 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
10083 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10084
10085 2009-03-11 Kenichi Handa <handa@m17n.org>
10086
10087 * font.h (font_open_by_spec): Extern it.
10088
10089 * font.c (font_open_by_spec): New function.
10090 (font_open_by_name): Use font_open_by_spec.
10091
10092 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10093 fontset of the frame.
10094
10095 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10096 modify the default font of frames that use this fontset.
10097 (num_auto_fontsets): New variable.
10098 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10099 name. Be sure to set FONTSET_ASCII to the correct font name.
10100 (update_auto_fontset_alist): New function.
10101
10102 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
10103
10104 * makefile.w32-in: Update dependencies.
10105
10106 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10107
10108 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10109
10110 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10111
10112 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10113
10114 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
10115
10116 * lread.c (Feval_buffer): Doc fix.
10117
10118 2009-03-09 Kenichi Handa <handa@m17n.org>
10119
10120 * charset.c (Qfile_name_handler_alist): Extern it.
10121 (load_charset_map_from_file): Temporarily bind
10122 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10123
10124 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
10125
10126 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10127 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
10128
10129 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10130
10131 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10132 (x_set_window_size): Change back to calculated method of setting
10133 toolbar height under Cocoa. (Bug#2546)
10134 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10135 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10136
10137 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10138
10139 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10140 accelerator in parens under GNUstep.
10141
10142 2009-03-06 Kenichi Handa <handa@m17n.org>
10143
10144 These changes are to detect incorrect composition sequence without
10145 looking ahead the source. (Bug#2370)
10146
10147 * coding.h: Include "composite.h".
10148 (enum compisition_state): New enum.
10149 (struct compisition_status): New struct.
10150 (struct iso_2022_spec): New member cmp_status.
10151 (struct emacs_mule_spec): New struct.
10152 (struct coding_system): New members ctext_extended_segment_len and
10153 embedded_utf_8. Change the union member
10154 spec.emacs_mule_full_support to spec.emacs_mule.
10155
10156 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10157 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
10158 (MAX_ANNOTATION_LENGTH): Define to 5.
10159 (ADD_COMPOSITION_DATA): New arg nbytes.
10160 (emacs_mule_char): New arg cmp_status.
10161 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10162 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10163 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10164 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10165 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10166 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10167 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10168 (EMACS_MULE_COMPOSITION_END): New macro.
10169 (emacs_mule_finish_composition): New function.
10170 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10171 (decode_coding_emacs_mule): Avoid long looking ahead while
10172 handling composition.
10173 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10174 (ENCODE_COMPOSITION_RULE): New macro.
10175 (finish_composition): New function.
10176 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10177 (DECODE_COMPOSITION_START): New implementation.
10178 (DECODE_COMPOSITION_END): Likewise.
10179 (STORE_COMPOSITION_RULE): New macro.
10180 (decode_coding_iso_2022): Avoid long looking ahead while handling
10181 composition, CTEXT extended segment, and embedded UTF-8.
10182 (setup_coding_system): For a coding of type iso-2022, reset
10183 CODING_ISO_EXTSEGMENT_LEN (coding) and
10184 CODING_ISO_EMBEDDED_UTF_8 (coding).
10185 (get_translation): Delete arguments last_block, from_nchars,
10186 to_nchars. Callers changed.
10187 (produce_chars): Don't modify charbuf. Adjusted for the change of
10188 get_translation.
10189 (produce_composition): Adjust for the new annotation sequence.
10190 (handle_composition_annotation): Likewise.
10191 (consume_chars): Adjust for the change of get_translation.
10192
10193 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10194
10195 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
10196
10197 2009-03-05 Kenichi Handa <handa@m17n.org>
10198
10199 * font.c (font_select_entity): New function.
10200 (font_find_for_lface): Use font_select_entity to select a font.
10201
10202 * fontset.c (fontset_find_font): If a font found without
10203 restricting to the characters C doesn't support C, try to find a
10204 font with C restriction.
10205
10206 2009-03-04 Nikolaj Schumacher <me@nschum.de>
10207
10208 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
10209
10210 2009-03-04 Jason Rumney <jasonr@gnu.org>
10211
10212 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
10213 characters that have already been read. (Bug#2569)
10214
10215 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10216 Log an error message if check_image_size failed.
10217 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
10218 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10219
10220 2009-03-02 Eli Zaretskii <eliz@gnu.org>
10221
10222 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10223 when decoding process output.
10224
10225 2009-03-01 Richard M Stallman <rms@gnu.org>
10226
10227 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10228
10229 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10230
10231 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10232
10233 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10234 (decode_coding_emacs_mule, decode_coding_iso_2022)
10235 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10236 (decode_coding_raw_text, decode_coding_charset)
10237 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10238 Honor inhibit-eol-conversion. (Bug #2186)
10239
10240 2009-02-28 Jason Rumney <jasonr@gnu.org>
10241
10242 * coding.c (detect_coding_charset): If not checking latin extra,
10243 fail on characters between 0x80 and 0xA0. (Bug#2354)
10244
10245 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10246
10247 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
10248 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
10249
10250 2009-02-27 Glenn Morris <rgm@gnu.org>
10251
10252 * callint.c (Finteractive): Doc fix.
10253
10254 2009-02-27 Kenichi Handa <handa@m17n.org>
10255
10256 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10257
10258 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
10259
10260 * font.c (font_style_to_value): Set value for unknown symbols to
10261 100 instead of 255.
10262 (weight_table, slant_table, width_table): Treat "unspecified" as
10263 the default value.
10264
10265 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
10266
10267 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10268
10269 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
10270
10271 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10272 error as soon as a recursive load is detected.
10273
10274 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10275
10276 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10277 before caching.
10278
10279 2009-02-24 Kenichi Handa <handa@m17n.org>
10280
10281 * fontset.c (fontset_find_font): Fix the condition for checking
10282 unavailable font.
10283
10284 2009-02-24 Glenn Morris <rgm@gnu.org>
10285
10286 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10287 whitespace that confuses documentation.
10288
10289 2009-02-23 Miles Bader <miles@gnu.org>
10290
10291 * process.c (Flist_system_processes, Fprocess_attributes)
10292 (syms_of_process): Rename `system-process-attributes' to
10293 `process-attributes'.
10294
10295 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10296
10297 * coding.h (struct coding_system): Make safe_charsets a pointer to
10298 unsigned char.
10299 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10300 being 255.
10301 (SAFE_CHARSET_P): Likewise.
10302 (setup_iso_safe_charsets): Properly setup safe_charsets.
10303 (Fdefine_coding_system_internal): Likewise.
10304 (setup_coding_system): Likewise. Remove unneeded casts.
10305 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10306 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10307 unneeded casts.
10308
10309 * insdel.c (del_range_2): Don't modify gap contents when called
10310 from decode_coding_object. (Bug#1809)
10311
10312 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
10313
10314 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10315 Qfont_object.
10316 (Ftype_of): Recognize font objects.
10317
10318 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10319
10320 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10321 moved to data.c.
10322
10323 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10324
10325 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10326 async_iconified. Based on a patch by Christian Lynbech
10327 <christian.lynbech@tieto.com>.
10328 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10329
10330 2009-02-20 Glenn Morris <rgm@gnu.org>
10331
10332 * syntax.c (Fskip_chars_forward): Fix doc typo.
10333
10334 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
10335
10336 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10337
10338 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
10339
10340 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10341
10342 2009-02-19 Kenichi Handa <handa@m17n.org>
10343
10344 * coding.c (detect_coding): Preserve coding->mode.
10345 Don't overflow coding->carryover. (Bug#2370)
10346
10347 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10348
10349 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10350
10351 2009-02-18 Kenichi Handa <handa@m17n.org>
10352
10353 * font.c (font_check_otf_features): Fix handling of `nil' element.
10354 (Ffont_spec): Describe :lang and :otf in the docstring.
10355
10356 2009-02-16 Andreas Schwab <schwab@suse.de>
10357
10358 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10359 string.
10360
10361 2009-02-16 Kenichi Handa <handa@m17n.org>
10362
10363 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
10364 (Bug#1723)
10365
10366 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
10367
10368 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
10369
10370 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10371 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10372
10373 2009-02-14 Eli Zaretskii <eliz@gnu.org>
10374
10375 * msdos.c (MAX_SCREEN_BUF): New macro.
10376 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10377 Encode the entire run of glyphs sharing the same face, instead of
10378 doing that one glyph at a time (fixes a bug with displaying
10379 double-size characters).
10380
10381 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10382
10383 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10384
10385 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10386 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
10387 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
10388
10389 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
10390 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
10391
10392 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10393
10394 * keyboard.c (adjust_point_for_property): Allow stopping between two
10395 invisible areas.
10396
10397 2009-02-12 Jason Rumney <jasonr@gnu.org>
10398
10399 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10400 (add_font_entity_to_list): Call check_face_name even when family
10401 is unspecified.
10402
10403 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10404 Release DC when finished. Use NULL window to refer to desktop.
10405 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
10406
10407 * w32font.c (add_font_entity_to_list): Fix check for substituted
10408 raster fonts. (Bug#2219)
10409
10410 2009-02-12 Kenichi Handa <handa@m17n.org>
10411
10412 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10413 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10414 (autocmp_chars): Use fast_looking_at. Don't compose more
10415 characters than MAX_COMPOSITION_COMPONENTS.
10416 (find_automatic_composition): While looking forward and backward,
10417 check static composition. Fix where to stop looking forward.
10418 (composition_adjust_point): Fix checking of static composition.
10419 (Fcomposition_get_gstring): Pay attention to
10420 MAX_COMPOSITION_COMPONENTS.
10421
10422 * lisp.h (fast_looking_at): Extern it.
10423
10424 * search.c (fast_looking_at): New function.
10425
10426 * term.c (encode_terminal_code): Adjust for the change of
10427 <struct glyph>.u.cmp.to.
10428 (append_composite_glyph): Likewise.
10429
10430 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
10431 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10432 composition.
10433 (append_composite_glyph): Adjust for the change of
10434 <strcut glyph>.u.cmp.to.
10435
10436 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
10437
10438 * casetab.c (init_casetab_once):
10439 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10440 * font.c (font_update_lface):
10441 * fontset.c (Fnew_fontset):
10442 * ftfont.c (ftfont_drive_otf):
10443 * xfont.c (xfont_open):
10444 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10445
10446 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10447
10448 * fileio.c (Fwrite_region): !NILP -> CONSP.
10449
10450 2009-02-10 Andreas Schwab <schwab@suse.de>
10451
10452 * process.c (send_process): Properly relocate pointer into data
10453 when using encoded data. (Bug#2272)
10454
10455 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10456
10457 * coding.c (detect_coding_charset): Fix previous change.
10458
10459 2009-02-08 Jason Rumney <jasonr@gnu.org>
10460
10461 * w32fns.c (w32_hide_hourglass): Handle case where frame
10462 disappeared while hourglass was displayed. (Bug #2193)
10463
10464 2009-02-07 Andreas Schwab <schwab@suse.de>
10465
10466 * unexelf.c (unexec): Fix error message.
10467
10468 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10469
10470 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
10471 when modal window is active. (Bug #2152)
10472 (applicationShouldTerminate:): Remove now-unneeded while loop
10473 around NSRunAlertPanel.
10474
10475 * nsmenu.m (popupSession): New file-global variable.
10476 (pop_down_menu): End the popupSession before closing dialog.
10477 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10478 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10479 don't query NSApp for events (just sleep instead).
10480
10481 2009-02-07 Eli Zaretskii <eliz@gnu.org>
10482
10483 * coding.c (syms_of_coding) <translation-table-for-input>:
10484 Modify doc string to discourage use for character code unification.
10485
10486 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10487
10488 * atimer.c (run_timers): Update pending_atimers.
10489
10490 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
10491
10492 * image.c (svg_load_image): Fix last change.
10493
10494 * xfns.c (Fx_create_frame): Signal an error if no font is
10495 found (Bug#2147).
10496
10497 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
10498
10499 * character.c (syms_of_character) <script-representative-chars>:
10500 Fix typo in docstring.
10501
10502 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10503
10504 * nsmenu.m (pop_down_menu): New function.
10505 (ns_popup_dialog): Call it on unwind.
10506 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10507 call timer_check() (Bug#2154).
10508 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10509 handling_signal is set.
10510 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10511
10512 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
10513
10514 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10515
10516 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10517
10518 * keyboard.c (poll_for_input_1, handle_async_input):
10519 Set handling_signal under HAVE_NS.
10520
10521 2009-02-04 Glenn Morris <rgm@gnu.org>
10522
10523 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10524
10525 2009-02-04 Kenichi Handa <handa@m17n.org>
10526
10527 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10528
10529 * charset.c (Fchar_charset): New optional arg restriction.
10530
10531 * coding.h (coding_system_charset_list): Extern it.
10532
10533 * coding.c (coding_system_charset_list): New function.
10534
10535 * composite.c: Include coding.h and termhooks.h.
10536 (composition_gstring_p): Fix for the terminal case.
10537 (composition_gstring_width): Likewise.
10538 (fill_gstring_body): Likewise.
10539 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10540 the frame.
10541 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10542 is within a composition.
10543 (Fcomposition_get_gstring): Fix the terminal case.
10544
10545 * term.c (encode_terminal_code): Fix handling of composition.
10546 (produce_composite_glyph): For static composition, get pixel_width
10547 from struct composition.
10548
10549 2009-02-02 Andreas Schwab <schwab@suse.de>
10550
10551 * unexelf.c (unexec): Handle unaligned bss offset.
10552
10553 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10554
10555 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10556 XT,w32read_socket changes to ns_read_socket.
10557
10558 * keyboard.c (handle_interrupt): Don't call
10559 quit_throw_to_read_char() under NS.
10560
10561 * blockinput.h: Remove NS-specific code.
10562
10563 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10564
10565 * dispnew.c (window_change_signal): Don't try to get the size of a
10566 suspended tty frame.
10567 * term.c (Fresume_tty): Resize if the size has changed while the
10568 tty was suspended.
10569
10570 * alloc.c (mark_stack): Properly conditionalize previous change.
10571
10572 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10573
10574 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10575 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10576 Remove; this code is not used on Windows.
10577
10578 2009-01-30 Eli Zaretskii <eliz@gnu.org>
10579
10580 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10581 EOLs that also has stray ^M characters.
10582
10583 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10584
10585 * atimer.c (run_timers, alarm_signal_handler):
10586 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10587 * w32inevt.c (w32_console_read_socket):
10588 * w32term.c (w32_read_socket):
10589 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10590
10591 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
10592
10593 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10594 Initialize it as a relative filename pattern.
10595 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10596 (Fcall_process_region): Simplify temp file creation using
10597 temporary-file-directory.
10598
10599 2009-01-29 Eli Zaretskii <eliz@gnu.org>
10600
10601 * msdos.c: Rename pending_signals to msdos_pending_signals.
10602 (sig_suspender, sigprocmask): Adjust.
10603
10604 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
10605
10606 * keyboard.c (pending_signals): New var.
10607 (poll_for_input, input_available_signal, init_keyboard): Set it.
10608 (process_pending_signals): New function.
10609
10610 * lisp.h (QUIT): Check pending_signals instead of
10611 interrupt_input_pending. Use process_pending_signals.
10612
10613 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
10614
10615 * process.c (wait_reading_process_output): Use process_pending_signals.
10616
10617 * sysdep.c (emacs_write): Use process_pending_signals.
10618
10619 * xterm.c (XTread_socket): Update pending_signals.
10620
10621 * w32term.c (w32_read_socket): Update pending_signals.
10622
10623 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10624
10625 2009-01-29 Kenichi Handa <handa@m17n.org>
10626
10627 * xftfont.c (xftfont_has_char): New function.
10628 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10629
10630 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10631
10632 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10633 under GNUstep.
10634 (ns_query_color): New declaration.
10635
10636 * nsterm.m (ns_confirm_quit): New variable.
10637 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10638 (EmacsApp-applicationShouldTerminate:): Use it.
10639 (EmacsPrefsController): Let user set it.
10640 (ns_query_color): New function.
10641 (ns_defined_color): Use it.
10642 (ns_initialize): Drop.
10643 (ns_term_init): Add two lines from ns_initialize(), and set
10644 input_interrupt_mode to nil.
10645
10646 * image.c (svg_load_image): Don't right-shift background RGB when
10647 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
10648
10649 2009-01-28 Kenichi Handa <handa@m17n.org>
10650
10651 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10652 (fontset_get_font_group): Remember that no font-group is specified
10653 for C.
10654
10655 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
10656
10657 * fns.c (concat): Check for string overflow (bug#1787).
10658
10659 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10660 Quadruple undo limits (bug#1501).
10661
10662 2009-01-27 Kenichi Handa <handa@m17n.org>
10663
10664 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10665 directly use GT_Get_Char_index.
10666
10667 * xftfont.c (struct xftfont_info): New member `index'.
10668
10669 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10670 (Ffontset_font): Adjust for the change of fontset entry.
10671
10672 2009-01-26 Kenichi Handa <handa@m17n.org>
10673
10674 * fontset.c (fontset_find_font): Fix handling of non-cons return
10675 value of fontset_get_font_group.
10676 (fontset_font): Revert last change.
10677
10678 2009-01-26 Jason Rumney <jasonr@gnu.org>
10679
10680 * w32font.c (w32font_list_internal): Return quickly if registry is
10681 unknown. Simplify final return.
10682 (add_font_entity_to_list): Break complex logic down into more
10683 manageable chunks. Move unknown registry check to
10684 w32font_list_internal.
10685
10686 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10687
10688 Changes to remove Feval calls from GUI under NS.
10689
10690 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10691 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
10692 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10693
10694 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10695 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10696 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10697 instead of NON_ASCII_KEYSTROKE_EVENT.
10698 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10699 (EmacsApp-applicationShouldTerminate:): Query user.
10700 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10701 instead of Feval.
10702
10703 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10704
10705 * keyboard.c (kbd_buffer_get_event): Check for it.
10706 (keys_of_keyboard): Define lispy keys for
10707 ns-put/unput-working-text.
10708
10709 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10710 versions.
10711 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10712
10713 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
10714
10715 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
10716 setting current_buffer directly. (Bug#2044)
10717
10718 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
10719
10720 * fontset.c (fontset_font): If we know there is no font, don't do
10721 any work. (Bug#1952, bug#1990).
10722
10723 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
10724
10725 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10726
10727 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
10728 (ns_no_defaults): New declaration.
10729 (main): Use it.
10730
10731 * nsterm.h (ns_no_defaults): New declaration.
10732
10733 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
10734
10735 * nsterm.m (ns_no_defaults): New variable.
10736 (ns_initialize): Don't read defaults when ns_no_defaults.
10737 (EmacsView-readSelectionFromPasteboard:)
10738 (writeSelectionToPasteboard:types:): New stubbed-out methods for
10739 NSServicesRequests protocol. (Bug#1435)
10740 (ns_dumpglyphs_stretch): New function.
10741 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
10742 of 2008-11-15 to other terms. (Bug#615)
10743
10744 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10745
10746 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10747
10748 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10749 call for Sparc64.
10750
10751 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10752
10753 * nsfns.m:
10754 * nsgui.h:
10755 * nsmenu.m:
10756 * nsselect.m:
10757 * nsterm.h:
10758 * nsterm.m: Remove '23' comments that indicated code added during
10759 update from emacs-20 -> emacs-23.
10760
10761 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10762
10763 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
10764 ns_alternate_modifier. (Bug#1217)
10765
10766 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10767 Display all shortcuts, including those w/o super modifier.
10768
10769 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10770
10771 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
10772
10773 * fileio.c (Vwrite_region_post_annotation_function)
10774 (Vwrite_region_annotation_buffers): New vars.
10775 (build_annotations_unwind): Just reset
10776 Vwrite_region_annotation_buffers.
10777 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10778 Call write-region-post-annotation-function.
10779 (build_annotations): Add to Vwrite_region_annotation_buffers if
10780 buffer changes.
10781
10782 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10783
10784 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10785 Tiger.
10786 * nsfns.m (ns_do_applescript):
10787 Conditionalize typeUTF16ExternalRepresentation on Tiger.
10788
10789 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10790
10791 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10792
10793 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10794
10795 * nsmenu.m (NSMENUPROFILE): Change #if style.
10796
10797 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10798
10799 * nsterm.m (x_set_frame_alpha): Add prototype.
10800 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10801 handle Ctrl-tab. (Bug#1841)
10802 (ns_get_color): Use unsigned long long for scanned hex string value.
10803 (ns_term_shutdown): Abort on non SIGTERM signals.
10804 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
10805 (EmacsPrefsController-setPanelFromDefaultValues): New function.
10806 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
10807 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
10808 (ns_defined_color): Fix settings of the XColor variable fields:
10809 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
10810
10811 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
10812 DPI. (Bug#1316)
10813 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10814 values in onTiger section.
10815
10816 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
10817
10818 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10819 Check return value of font_spec_from_name.
10820 (Fx_list_fonts): Doc fix. (Bug#1951)
10821
10822 * font.c (font_spec_from_name): Return Qnil if font name could not
10823 be parsed.
10824 (font_parse_name): Treat a `?' character as part of an XLFD.
10825
10826 * fns.c (Fsubstring): Doc fix.
10827
10828 2009-01-19 Kenichi Handa <handa@m17n.org>
10829
10830 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
10831 (ftfont_list): Likewise.
10832
10833 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
10834
10835 * dbusbind.c (Fdbus_register_signal):
10836 * process.c (conv_sockaddr_to_lisp):
10837 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10838
10839 * callproc.c (Fgetenv_internal): Doc fix.
10840
10841 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
10842
10843 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10844 it is not even used.
10845
10846 2009-01-16 Glenn Morris <rgm@gnu.org>
10847
10848 * font.c (Ffont_variation_glyphs): Silence compiler.
10849
10850 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
10851
10852 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10853 Reported by David Robinow <drobinow@gmail.com>.
10854
10855 2009-01-15 Kenichi Handa <handa@m17n.org>
10856
10857 * coding.c (detect_coding_system): Fix handling of null_byte_found.
10858
10859 2009-01-14 Jason Rumney <jasonr@gnu.org>
10860
10861 * frame.c (x_set_font): Always store a font to the font parameter,
10862 never a fontset. (Bug#1562)
10863
10864 2009-01-14 Kenichi Handa <handa@m17n.org>
10865
10866 * coding.c (TWO_MORE_BYTES): New macro.
10867 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
10868
10869 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
10870
10871 * font.c (font_clear_prop): If clearing the family, clear the font
10872 width index too.
10873
10874 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
10875
10876 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
10877
10878 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10879 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10880 functions, use sizeof.
10881
10882 2009-01-12 Martin Rudalics <rudalics@gmx.at>
10883
10884 * keyboard.c (read_char): Fix case where last_nonmenu_event
10885 returned a bad value with submenus. (Bug#447)
10886
10887 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10890 family, clear the font width index too.
10891
10892 2009-01-11 Jason Rumney <jasonr@gnu.org>
10893
10894 * keyboard.c (cmd_error_internal): Exit when errors occur before
10895 frame creation and not in daemon mode. (Bug#1836)
10896
10897 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
10898
10899 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10900 of a display vector, backtrack.
10901 (try_window_reusing_current_matrix): Check glyph type before
10902 referencing charpos member.
10903
10904 2009-01-10 Eli Zaretskii <eliz@gnu.org>
10905
10906 Fix Bug #876:
10907
10908 * coding.c (inhibit_null_byte_detection): New variable.
10909 (detect_coding, detect_coding_system): Don't pay attention to null
10910 bytes if inhibit_null_byte_detection is non-zero.
10911 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
10912 <inhibit-iso-escape-detection>: Doc fix.
10913
10914 2009-01-09 Jason Rumney <jasonr@gnu.org>
10915
10916 * w32font.c (add_font_entity_to_list): Don't report unknown
10917 Windows charset as any unrecognized registry. (Bug#1548)
10918 Only report Unicode Plane 2 fonts as unicode-sip.
10919
10920 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
10921
10922 * xfaces.c (Fx_font_family_list): Delete function.
10923 Move compatibility version to faces.el.
10924
10925 * font.c (Ffont_family_list): Return a list of strings, not symbols.
10926
10927 2009-01-09 Martin Rudalics <rudalics@gmx.at>
10928
10929 * frame.c (x_set_frame_parameters): Remember requested value for
10930 fullscreen before it's reset by the parameter handler.
10931
10932 2009-01-09 Glenn Morris <rgm@gnu.org>
10933
10934 * keyboard.c (last_command_char): For clarity, rename to...
10935 (last_command_event): ... and update all users.
10936 (last_input_char): For clarity, rename to...
10937 (last_input_event): ... and update all users.
10938 (last-command-char, last-input-char): Move to subr.el as aliases.
10939 * cmds.c, commands.h: Update for last_command_char rename.
10940
10941 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
10942
10943 * font.c (font_open_for_lface): Handle unspecified height attribute.
10944
10945 2009-01-08 Jason Rumney <jasonr@gnu.org>
10946
10947 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10948 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10949 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10950 Don't declare.
10951 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
10952 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10953
10954 2009-01-07 Kenichi Handa <handa@m17n.org>
10955
10956 * fileio.c (Finsert_file_contents): In the case of replace,
10957 remember the coding system used for decoding in
10958 coding_system (Bug#1039).
10959
10960 * coding.c (decode_coding_utf_8): Check byte_after_cr before
10961 breaking the loop. (Bug#870)
10962 (decode_coding_utf_16, decode_coding_emacs_mule)
10963 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10964 (decode_coding_charset): Likewise.
10965
10966 2009-01-05 Martin Rudalics <rudalics@gmx.at>
10967
10968 * frame.c (x_set_frame_parameters): Make sure height (width) get
10969 applied when fullwidth (fullheight) is set. (Bug#1522)
10970
10971 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
10972
10973 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10974 (utc_base): Declare as ULONGLONG, not long double.
10975 (convert_time_raw): Delete.
10976 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10977 (initialize_utc_base): New function.
10978 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10979 (convert_from_time_t): Use initialize_utc_base; compute result with
10980 64-bit arithmetic.
10981 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10982
10983 2009-01-03 Eli Zaretskii <eliz@gnu.org>
10984
10985 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
10986 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10987 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10988 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10989 [!subprocesses]: Define.
10990 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10991 (Flist_system_processes, Fsystem_process_attributes)
10992 [!subprocesses]: Call list_system_processes and
10993 system_process_attributes instead of returning Qnil.
10994
10995 * dosfns.c (system_process_attributes, list_system_processes):
10996 New functions.
10997
10998 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10999
11000 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11001 Don't use the default (no-op) implementation.
11002
11003 2009-01-03 Jason Rumney <jasonr@gnu.org>
11004
11005 * keyboard.c (parse_modifiers_uncached): Wheel events are
11006 clicks (bug#687).
11007
11008 * w32term.c (x_query_colors, x_query_color): New functions.
11009
11010 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11011 (svg_load_image): Cast returned pointers from dynamically loaded
11012 functions. Eliminate W32 specific code.
11013
11014 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11015
11016 * nsfns.m (x_set_foreground_color, x_set_background_color)
11017 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11018 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11019 x_ prefix instead of ns_. Update references.
11020 (syms_of_nsfns): Add a FIXME comment.
11021
11022 * nsterm.m (x_set_cursor_type): New prototype.
11023 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11024
11025 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11026 for Solaris instead of incorrectly providing Qutime and Qcutime.
11027
11028 2009-01-02 Eli Zaretskii <eliz@gnu.org>
11029
11030 * w32.c (process_times): Compute sum of utime and stime.
11031 (system_process_attributes): Add Qtime to the alist.
11032
11033 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11034 and add them to the alist.
11035
11036 * process.c (top level) <Qtime, Qctime>: New variables.
11037 (syms_of_process): staticpro them.
11038 (Fsystem_process_attributes): Add their documentation to the doc
11039 string.
11040
11041 * process.h: Declare Qtime and Qctime.
11042
11043 2009-01-02 Jason Rumney <jasonr@gnu.org>
11044
11045 * image.c (Qgobject): New symbol.
11046 (syms_of_image): Initialize it.
11047 (init_svg_functions): Load some functions from gobject library.
11048
11049 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11050
11051 * frame.c (make_terminal_frame): Remove redundant code and useless
11052 block.
11053
11054 2009-01-01 Andreas Schwab <schwab@suse.de>
11055
11056 * process.c (conv_sockaddr_to_lisp): Add workaround for
11057 getsockname bug on BSD.
11058
11059 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
11060
11061 * xfns.c (x_create_tip_frame): Set border width of the X window.
11062
11063 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
11064
11065 2009-01-01 Jason Rumney <jasonr@gnu.org>
11066
11067 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
11068 Don't block input, as per earlier xterm.c changes.
11069
11070 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11071
11072 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11073 (ns_appkit_version_int): New function.
11074 (x-server-version): Use ns_appkit_version_int and follow 21+
11075 convention of returning 3 integers.
11076
11077 2008-12-30 Kenichi Handa <handa@m17n.org>
11078
11079 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11080 (CHAR_SURROGATE_PAIR_P): New macro.
11081
11082 * font.h (struct font_driver): New member get_variation_glyphs.
11083
11084 * font.c (font_range): Don't require a font for a variation selector.
11085 (Ffont_variation_glyphs): New function.
11086 (syms_of_font): Defsubr it.
11087
11088 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11089 ftfont_variation_glyphs.
11090 (setup_otf_gstring): New function.
11091 (ftfont_drive_otf): Use it.
11092 (ftfont_shape_by_flt): Handle variation selector.
11093 (ftfont_variation_glyphs): New function.
11094
11095 2008-12-30 Martin Rudalics <rudalics@gmx.at>
11096
11097 * frame.c (Vemacs_iconified): Remove.
11098
11099 2008-12-30 Jason Rumney <jasonr@gnu.org>
11100
11101 * frame.c (store_frame_param, x_get_arg): Enable newer code on
11102 WINDOWSNT too, as related changes have already been synced. (Bug#117)
11103
11104 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
11105
11106 * indent.c (Fvertical_motion): Don't advance iterator if we have
11107 reseated to the desired position.
11108
11109 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11110 checking for pos match.
11111
11112 2008-12-30 Kenichi Handa <handa@m17n.org>
11113
11114 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11115 just get the low 8-bit of the code.
11116
11117 * font.c (font_intern_prop): Validate str as multibyte.
11118
11119 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11120
11121 * dispextern.h (struct face): Move lface and hash from the middle
11122 of bitfields.
11123
11124 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11125
11126 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11127
11128 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11129 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11130 instead of intervals.h.
11131
11132 2008-12-26 Andreas Schwab <schwab@suse.de>
11133
11134 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11135 cons.
11136
11137 2008-12-26 Martin Rudalics <rudalics@gmx.at>
11138
11139 * textprop.c (Qminibuffer_prompt): New variable.
11140 (syms_of_textprop): Initialize it.
11141 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11142 in minibuffer-prompt face. (Bug#1662)
11143
11144 2008-12-25 Jason Rumney <jasonr@gnu.org>
11145
11146 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11147
11148 2008-12-24 Jason Rumney <jasonr@gnu.org>
11149
11150 * ralloc.c (r_alloc_reset_variable): New function.
11151
11152 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
11153 record of what points where. (Bug#716)
11154
11155 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11156
11157 * minibuf.c (read_minibuf): Follow the non-interactive case when
11158 running as a daemon, before detaching.
11159
11160 2008-12-22 Andreas Schwab <schwab@suse.de>
11161
11162 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11163 * gtkutil.c (free_widget_value): Use xfree instead of free.
11164
11165 2008-12-22 Martin Rudalics <rudalics@gmx.at>
11166
11167 * frame.c (delete_frame): New function derived from
11168 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11169 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11170 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11171 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11172 * frame.h: Extern delete_frame.
11173 * window.c (window_loop):
11174 * terminal.c (delete_terminal):
11175 * xterm.c (x_connection_closed):
11176 * xfns.c (Fx_hide_tip):
11177 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
11178
11179 2008-12-21 Jason Rumney <jasonr@gnu.org>
11180
11181 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11182 when character maps to .notdef character.
11183
11184 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11185
11186 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11187
11188 2008-12-20 Jason Rumney <jasonr@gnu.org>
11189
11190 * frame.c (Fmake_terminal_frame): Raise an error when called from
11191 a graphical frame on Windows. (Bug#1325)
11192
11193 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11194
11195 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11196
11197 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
11198
11199 * minibuf.c (Fread_buffer): Doc fix.
11200
11201 2008-12-20 Jason Rumney <jasonr@gnu.org>
11202
11203 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
11204 server name in UNC paths. (Bug#719)
11205
11206 * coding.c (decode_coding): Clear chars_at_source flag when using
11207 charbuf. (Bug#1035)
11208
11209 2008-12-19 Daniel Engeler <engeler@gmail.com>
11210
11211 * sysdep.c (serial_configure): Fix typo.
11212
11213 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11214
11215 * sysdep.c: Include alloca.h.
11216 (system_process_attributes): Add implementation for Solaris.
11217
11218 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
11219
11220 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11221
11222 Reorganize implementation of Flist_system_processes and
11223 Fsystem_process_attributes. No functional changes.
11224 * process.c: Don't #include pwd.h, grp.h and limits.h.
11225 (Flist_system_processes): Just call list_system_processes.
11226 (Fsystem_process_attributes): Just call system_process_attributes.
11227 (procfs_list_system_processes, time_from_jiffies)
11228 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11229 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11230
11231 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11232 (list_system_processes): Rename from
11233 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11234 Provide a do nothing implementation.
11235 (system_process_attributes): Rename from
11236 procfs_list_system_processes.
11237 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11238 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
11239
11240 * w32.c (list_system_processes): Rename from
11241 w32_list_system_processes.
11242 (system_process_attributes): Rename from
11243 w32_system_process_attributes.
11244
11245 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11246
11247 * process.h (w32_list_system_processes)
11248 (w32_system_process_attributes): Remove.
11249 (list_system_processes, system_process_attributes):
11250 New prototypes.
11251
11252 2008-12-19 Kenichi Handa <handa@m17n.org>
11253
11254 * xfont.c (xfont_decode_coding_xlfd): New function.
11255 (xfont_encode_coding_xlfd): New function.
11256 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11257 (xfont_list): Decode and encode XLFD by iso-8859-1.
11258 (xfont_match): Likewise.
11259 (xfont_list_family): Likewise.
11260 (xfont_open): Likewise.
11261
11262 * ftfont.c (ftfont_open): Generate a multibyte string if given
11263 names are utf-8.
11264
11265 * xftfont.c (xftfont_open): Generate a multibyte string if given
11266 names are utf-8.
11267
11268 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11269
11270 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11271 changed.
11272 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11273 clicked on a detached tool bar button.
11274
11275 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11276
11277 * emacs.c (main): Print and error and exit when no data is read
11278 from the pipe.
11279
11280 2008-12-17 Jason Rumney <jasonr@gnu.org>
11281
11282 * w32font.c (w32font_has_char): Always return -1.
11283
11284 2008-12-16 Kenichi Handa <handa@m17n.org>
11285
11286 * font.c (font_open_entity): Fix previous change.
11287
11288 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11289
11290 * process.c: Include <limits.h>.
11291
11292 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
11293
11294 * font.c (font_update_drivers): Fix mistake in reconstructing the
11295 driver list.
11296
11297 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
11298
11299 * font.c (font_clear_cache): Fix format of font cache data.
11300
11301 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
11302
11303 * xftfont.c (xftfont_open): Free Xft font pattern if
11304 XftFontOpenPattern fails.
11305
11306 * xterm.c (x_free_frame_resources): Remove extraneous call to
11307 free_frame_faces.
11308
11309 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11310
11311 * xterm.c (x_delete_display): Move xim_close_dpy call to
11312 x_delete_terminal.
11313 (x_delete_terminal): Call xim_close_dpy.
11314
11315 2008-12-13 Jason Rumney <jasonr@gnu.org>
11316
11317 * w32font.c (intern_font_name): New function.
11318 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11319 (w32font_open_internal, Fx_select_font): Decode font name.
11320 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11321
11322 * w32font.h (intern_font_name): Declare new function.
11323
11324 * w32uniscribe.c (add_opentype_font_name_to_list):
11325 Use intern_font_name.
11326
11327 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11328
11329 * frame.c (Fdelete_frame): Call free_font_driver_list.
11330
11331 * font.c (free_font_driver_list): Implement missing function.
11332
11333 * w32term.c (w32_term_init): Don't initialize the image cache
11334 here; it will be done in init_frame_faces.
11335
11336 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11337 (struct x_display_info): Remove unused member null_pixel. New
11338 member xim_callback_data.
11339
11340 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11341 (xim_initialize): Save pointer to callback function data.
11342 (xim_close_dpy): Free callback function data. Call XCloseIM,
11343 reverting 2008-11-04 change by David Smith.
11344 (x_term_init): Don't initialize the image cache here; it will be
11345 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11346 (x_delete_display): Free x_dnd_atoms member.
11347
11348 2008-12-13 Kenichi Handa <handa@m17n.org>
11349
11350 * font.c (font_rescale_ratio): Moved from xfaces.c.
11351 Argument type changed. Handle a font-spec too.
11352 (font_score): Check Vface_font_rescale_alist.
11353 (font_open_entity): Likewise. (Bug#1547)
11354
11355 * xfaces.c (font_rescale_ratio): Moved to font.c.
11356
11357 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11358
11359 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11360
11361 2008-12-12 Jason Rumney <jasonr@gnu.org>
11362
11363 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11364 Vwindow_system_version to the real w32 major version.
11365
11366 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11367
11368 * term.c (init_tty): Move setting the terminal name before the
11369 potential user: maybe_fatal.
11370
11371 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
11372
11373 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11374 all callers changed. Call free_frame_faces to free the face cache.
11375
11376 2008-12-11 Jason Rumney <jasonr@gnu.org>
11377
11378 * w32font.c (fill_in_logfont): Don't assume symbol script means
11379 SYMBOL_CHARSET. (Bug#547)
11380
11381 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
11382 size for surrogates. (Bug#1096, bug#872)
11383
11384 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11385
11386 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11387
11388 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11389
11390 * process.c (Fsystem_process_attributes, syms_of_process):
11391 Fix typo in name of Ssystem_process_attributes.
11392 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11393
11394 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11395
11396 * syntax.c (Fmodify_syntax_entry): Doc fix.
11397
11398 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
11399
11400 * font.c (Ffont_spec): Move usage to end of docstring.
11401
11402 2008-12-10 Jason Rumney <jasonr@gnu.org>
11403
11404 * w32font.c (Qcham): New symbol.
11405 (font_supported_scripts): Add cham, and comments for other new
11406 scripts in bitfield from OpenType spec.
11407 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11408 contain characters beyond the bmp.
11409
11410 2008-12-10 Kenichi Handa <handa@m17n.org>
11411
11412 * ftfont.c (fc_charset_table): Add "unicode-sip".
11413 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
11414 Qunicode_sip.
11415
11416 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
11417
11418 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11419 (Fcoding_system_put): Use QCdefault_char.
11420 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11421
11422 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
11423
11424 * xftfont.c (syms_of_xftfont): Fix typo.
11425
11426 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
11427
11428 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11429
11430 * emacs.c (main): Close daemon_pipe on exec.
11431
11432 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
11433
11434 * termchar.h (struct tty): New members termcap_term_buffer and
11435 termcap_strings_buffer.
11436
11437 * term.c (encode_terminal_code): Free any previous memory blocks
11438 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
11439 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11440 All callers changed.
11441 (init_tty): Store termcap data and string buffers in new struct
11442 tty members termcap_term_buffer and termcap_strings_buffer.
11443 (delete_tty): Free them.
11444 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
11445
11446 2008-12-07 Seiji Zenitani <zenitani@mac.com>
11447
11448 * nsfns.m (ns_set_background_color): Remove code duplication.
11449 It was a substitute for face-transparency on OS X 10.3.
11450
11451 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
11452
11453 * coding.c (make_conversion_work_buffer): Disable buffer
11454 modification hooks in the work buffer.
11455
11456 2008-12-05 Eli Zaretskii <eliz@gnu.org>
11457
11458 * process.c (procfs_system_process_attributes): If `nread' has a
11459 negative value, assign zero to it.
11460
11461 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
11462
11463 * eval.c (Vdebug_on_error): Doc fix.
11464
11465 2008-12-05 Kenichi Handa <handa@m17n.org>
11466
11467 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11468 second character is a combining character.
11469
11470 2008-12-05 Eli Zaretskii <eliz@gnu.org>
11471
11472 * process.c (procfs_system_process_attributes): Don't use cmd,
11473 cmdsize, and q without initializing them first.
11474
11475 2008-12-04 Jason Rumney <jasonr@gnu.org>
11476
11477 * w32font.c (w32font_draw): Initialize orig_clip before getting
11478 it, and delete it when finished.
11479
11480 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11481
11482 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11483 case when running as a daemon before detaching.
11484
11485 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
11486
11487 * w32.c (init_environment): Don't unload library shell32.dll.
11488
11489 2008-12-03 Kenichi Handa <handa@m17n.org>
11490
11491 * font.c (font_at): Set `multibyte' at first.
11492
11493 * coding.c (decode_coding_charset): Check type of an element of
11494 vector VALIDS.
11495 (encode_coding_emacs_mule): Be sure to set `code'.
11496
11497 * fontset.c (face_for_char): Handle invalid charset property correctly.
11498 (font_for_char): Likewise.
11499
11500 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
11501
11502 * font.c (Fopen_font): Compute pixel size correctly.
11503 (font_update_lface): Handle fonts with corrupted size specs,
11504 i.e. non-int and non-float.
11505
11506 * ftfont.c (ftfont_match): Initialize entity variable.
11507 (ftfont_resolve_generic_family): Avoid using uninitialized var.
11508 (ftfont_list_family): Initialize list var earlier.
11509
11510 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11511
11512 * xterm.c (x_draw_glyph_string): Fall back on
11513 underline_minimum_offset for underline position.
11514
11515 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11516
11517 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11518
11519 * character.c (c_string_width): Specify the type for LEN.
11520
11521 2008-12-03 Kenichi Handa <handa@m17n.org>
11522
11523 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
11524 (decode_coding_utf_8): Likewise.
11525 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
11526 (produce_chars): Initialize consumed_chars to 0.
11527
11528 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
11529
11530 * keyboard.c (make_lispy_position): Only use PT if the selected
11531 window is current.
11532
11533 2008-12-02 Andreas Schwab <schwab@suse.de>
11534
11535 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11536
11537 * doprnt.c (doprnt1): Fix size of charbuf.
11538
11539 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
11540
11541 * keyboard.c (timer_check): Revert last change.
11542
11543 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
11544
11545 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11546
11547 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
11548
11549 * makefile.w32-in: Update dependencies.
11550 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11551
11552 2008-12-01 Andreas Schwab <schwab@suse.de>
11553
11554 * font.c (register_font_driver): Use xmalloc.
11555 (font_put_frame_data): Likewise.
11556
11557 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
11558
11559 * xfaces.c (realize_x_face): Make abort condition clearer.
11560
11561 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11562
11563 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
11564
11565 * keyboard.c (timer_check): After a timer runs, ensure that the
11566 selected window's buffer is current.
11567
11568 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
11569
11570 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11571 It was accidentally restored by the Unicode merge.
11572
11573 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11574
11575 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
11576
11577 * w32proc.c: Include "coding.h".
11578 (Fw32_short_file_name): Encode filename passed to Windows API.
11579 (Fw32_long_file_name): Encode filename passed to Windows API and
11580 decode back the result. (Bug#1433)
11581
11582 2008-11-29 Kenichi Handa <handa@m17n.org>
11583
11584 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11585 not before accessing it.
11586
11587 * charset.c (Fdefine_charset_internal): After calculating
11588 min_char, max_char, and fastmap, copy the charset structure again.
11589 (encode_char): Fix the previous change.
11590
11591 2008-11-28 Seiji Zenitani <zenitani@mac.com>
11592
11593 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11594
11595 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11596
11597 * nsterm.m (x_set_frame_alpha): New function.
11598
11599 2008-11-27 Eli Zaretskii <eliz@gnu.org>
11600
11601 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11602
11603 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
11604
11605 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11606 pointer to check_face_name.
11607
11608 2008-11-27 Kenichi Handa <handa@m17n.org>
11609
11610 * category.h (SET_CATEGORY_SET): Call set_category_set.
11611 (set_category_set): Extern it.
11612
11613 * category.c (hash_get_category_set): New function.
11614 (Fmodify_category_entry): Adjusted for the change of
11615 char_table_ref_and_range. Call hash_get_category_set to get a
11616 category set to store in the table.
11617
11618 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11619 Funify_charset.
11620
11621 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
11622 (DECODE_CHAR): Check if the decoder vector is ready.
11623 (ENCODE_CHAR): Check if the encoder char-table is ready.
11624 (maybe_unify_char): Extern it.
11625
11626 * charset.c (Vchar_unified_charset_table): Delete it.
11627 (inhibit_load_charset_map): New variable.
11628 (temp_charset_work): New variable.
11629 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11630 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11631 New macros.
11632 (load_charset_map): Meaning of control_flag changed. If
11633 inhibit_load_charset_map is nonzero, setup a table in
11634 temp_charset_work.
11635 (load_charset): New argument control_flag.
11636 (map_charset_for_dump): New function.
11637 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11638 map_charset_for_dump.
11639 (Fdefine_charset_internal): If the charset method is MAP, load
11640 mapping tables by calling load_charset.
11641 (Funify_charset): Don't load a mapping table but directly set
11642 Vchar_unify_table.
11643 (maybe_unify_char): New function.
11644 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11645 Handle the case of inhibit_load_charset_map being nonzero.
11646 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11647 Handle the case of inhibit_load_charset_map being nonzero.
11648 (Fclear_charset_maps): Just free temp_charset_work.
11649 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11650 variable.
11651
11652 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11653 change of char_table_ref_and_range.
11654 (char_table_ref_and_range): Change the meaning of argument FROM
11655 and TO. Now the caller must provide initial values for *FROM
11656 and *TO.
11657
11658 * fontset.c (fontset_add): Adjusted for the change of
11659 char_table_ref_and_range.
11660 (fontset_get_font_group): Likewise.
11661 (Ffontset_info): Likewise.
11662
11663 * keymap.c (describe_vector): Adjusted for the change of
11664 char_table_ref_and_range. For char-table, put boundary between
11665 non-ASCII and 8-bit characters.
11666
11667 * print.c (print_object): For bool-vector, delete unnecessary
11668 check of ASCII_BYTE_P.
11669
11670 2008-11-26 Jason Rumney <jasonr@gnu.org>
11671
11672 * w32font.c (w32font_open_internal): Don't include external
11673 leading in font height. (Bug#879)
11674
11675 2008-11-26 Glenn Morris <rgm@gnu.org>
11676
11677 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11678 redefinition with ifdef. (Bug#1383)
11679
11680 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11681
11682 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11683
11684 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11685
11686 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11687 New EmacsView methods.
11688 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11689 Fixes bug #1048,1357,1414.
11690
11691 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11692
11693 Fix bug #1362.
11694 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11695 is not an indexed color.
11696 * nsterm.m (free_indexed_color): Add argument checking.
11697 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11698
11699 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
11700
11701 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11702 Document confirm-after-completion value for
11703 minibuffer-completion-confirm.
11704
11705 2008-11-24 Jason Rumney <jasonr@gnu.org>
11706
11707 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11708 warning.
11709
11710 2008-11-23 Jason Rumney <jasonr@gnu.org>
11711
11712 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11713 restored before returning.
11714
11715 * w32font.c (check_face_name): New function.
11716 (add_font_entity_to_list): Use it to filter out common substituted
11717 fonts. (Bug#642)
11718
11719 2008-11-22 Martin Rudalics <rudalics@gmx.at>
11720
11721 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11722 confirm-nonexistent-file-or-buffer in doc-string.
11723
11724 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11725
11726 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11727 Fix copy/paste typo. Add checks.
11728
11729 2008-11-21 Kenichi Handa <handa@m17n.org>
11730
11731 * coding.c (detect_coding_iso_2022): Reject invalid composition
11732 sequence.
11733 (DECODE_COMPOSITION_START): If the current source is the last
11734 block, and the current composition doesn't end, regard this
11735 sequence as invalid.
11736 (decode_coding_iso_2022): Handle invalid composition sequence.
11737
11738 2008-11-20 Martin Rudalics <rudalics@gmx.at>
11739
11740 * window.c (coordinates_in_window): Don't return
11741 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11742 line when the window is not the rightmost one. (Bug#1372)
11743
11744 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11745
11746 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11747
11748 2008-11-15 Eli Zaretskii <eliz@gnu.org>
11749
11750 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11751 and bright_bg if noninteractive is non-zero.
11752
11753 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11754
11755 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11756 x_draw_glyph_string_background.
11757
11758 * w32term.c (x_draw_glyph_string): Likewise.
11759
11760 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
11761
11762 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11763 the next glyph string once past the overhang width.
11764
11765 * nsterm.m (ns_draw_glyph_string): Likewise.
11766
11767 * w32term.c (x_draw_glyph_string): Likewise.
11768
11769 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11770
11771 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11772 double file close.
11773
11774 2008-11-14 Martin Rudalics <rudalics@gmx.at>
11775
11776 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11777 dedicated status of window before attempting to display another
11778 buffer in it.
11779
11780 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
11781
11782 * msdos.c (Fmsdos_long_file_names):
11783 (syms_of_msdos) <dos-unsupported-char-glyph>:
11784 * dosfns.c (Fint86): Fix typos in docstrings.
11785
11786 2008-11-14 Eli Zaretskii <eliz@gnu.org>
11787
11788 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11789
11790 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11791
11792 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11793
11794 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11795
11796 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11797
11798 * frame.h: Negative alpha means "don't touch".
11799
11800 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11801
11802 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11803
11804 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11805
11806 * hftctl.c:
11807 * chpdef.h:
11808 * acldef.h: Remove files used only for systems no longer supported.
11809
11810 * Makefile.in: Fix .o alphabetical ordering.
11811 (hftctl.o): Remove dependency, file removed.
11812 (keymap.o, print.o): Depend on charset.h.
11813
11814 2008-11-10 Kenichi Handa <handa@m17n.org>
11815
11816 * character.c (Fget_byte): Fix and make it faster for unibyte target.
11817
11818 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
11819
11820 * dired.c (file_name_completion): If completion_ignore_case is
11821 enabled, ignore case when checking completion-regexp-list.
11822
11823 2008-11-08 Eli Zaretskii <eliz@gnu.org>
11824
11825 * vm-limit.c (get_lim_data): Fix last change.
11826
11827 2008-11-08 Kenichi Handa <handa@m17n.org>
11828
11829 * character.c (Fget_byte): New function.
11830 (syms_of_character): Defsubr Fget_byte.
11831
11832 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
11833
11834 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11835 cursor position is valid after scrolling.
11836
11837 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
11838
11839 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11840
11841 2008-11-06 Glenn Morris <rgm@gnu.org>
11842
11843 * xterm.c (handle_one_xevent): Don't let popup menus cause
11844 mouse-autoselect-window related window switching. (Bug#1261)
11845
11846 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11847
11848 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11849
11850 2008-11-04 Andreas Schwab <schwab@suse.de>
11851
11852 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11853
11854 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
11855
11856 * xfns.c (Fx_wm_set_size_hint): New function.
11857
11858 2008-11-03 Martin Rudalics <rudalics@gmx.at>
11859
11860 * textprop.c (Fprevious_single_char_property_change): Return 0
11861 when there's no change in a string. (Bug#1301)
11862
11863 2008-11-02 Martin Rudalics <rudalics@gmx.at>
11864
11865 * frame.c (do_switch_frame): New argument NORECORD passed to
11866 Fselect_window.
11867 (Fselect_frame): New argument NORECORD passed to
11868 do_switch_frame.
11869 (Fset_frame_selected_window): New argument NORECORD passed to
11870 Fselect_frame.
11871 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11872 in call of do_switch_frame.
11873 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11874 Handle NORECORD argument in call of Fselect_frame.
11875 * lisp.h (do_switch_frame, Fselect_frame)
11876 (Fset_frame_selected_window): Adjust declarations.
11877 * window.c (select_frame_norecord): New function.
11878 (run_window_configuration_change_hook): Use it and call
11879 Fselect_frame with NORECORD set.
11880 (Fselect_window): Pass NORECORD to Fselect_frame.
11881 (Fset_window_configuration): Handle NORECORD argument in call of
11882 do_switch_frame.
11883 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11884 Fset_frame_selected_window.
11885 * keyboard.c (command_loop_1): Handle NORECORD in call of
11886 Fselect_frame (currently ifdefd).
11887
11888 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11889
11890 * emacs.c (USAGE2): Untabify.
11891
11892 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * composite.c (fill_gstring_header): Fix copy/paste typo.
11895
11896 2008-10-31 Martin Rudalics <rudalics@gmx.at>
11897
11898 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11899 (Fother_window): Rename argument and rewrite doc-string.
11900 (select_window_norecord): Fix return value. (Bug#1276)
11901
11902 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
11903
11904 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11905 new frames overriding foreground for tooltips. Based on similar patch
11906 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11907
11908 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
11909
11910 * emacs.c (Fdaemon_initialized): Initialize nfd.
11911
11912 2008-10-29 Martin Rudalics <rudalics@gmx.at>
11913
11914 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11915 (Fwindow_text_height): Clarify doc-strings.
11916 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11917 doc-string of window-scroll-functions.
11918
11919 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11920
11921 * category.c (syms_of_category): Fix typo in docstring.
11922
11923 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
11924
11925 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11926 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11927 Fix typos in docstrings.
11928
11929 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11930
11931 * emacs.c (daemon_pipe): Make non-static.
11932 (IS_DAEMON): Move definition ...
11933 * lisp.h (IS_DAEMON): ... here.
11934 (daemon_pipe): Declare.
11935 (is_daemon): Remove.
11936 * dispnew.c (init_display): Use IS_DAEMON.
11937
11938 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11941 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11942
11943 * emacs.c (is_daemon): Remove.
11944 (main): Don't set is_daemon.
11945 (IS_DAEMON): New macro.
11946 (Fdaemonp, Fdaemon_initialized): Use it.
11947 (Fdaemon_initialized): Write a char into the pipe to make sure the
11948 parent exits.
11949 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11950
11951 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
11952
11953 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11954 over-sized glyph, draw it with the default glyph width.
11955
11956 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11957 glyph, draw it with the default glyph width.
11958
11959 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11960 glyph, draw it with the default glyph width.
11961
11962 * xdisp.c (try_scrolling): When computing the distance from the
11963 scroll margin to PT, try moving some distance past the window
11964 bottom before giving up.
11965
11966 2008-10-27 Martin Rudalics <rudalics@gmx.at>
11967
11968 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11969 (Fset_window_buffer): Explain in doc-string that a window can be
11970 "strongly" dedicated to its buffer.
11971
11972 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11973
11974 * emacs.c (daemon_name): New variable.
11975 (main): Deal with --daemon=SERVER_NAME.
11976 (Fdaemonp): Return a name if one was passed to --daemon.
11977
11978 2008-10-26 Romain Francoise <romain@orebokech.com>
11979
11980 * emacs.c (daemon_pipe): New variable.
11981 (main): Create a pipe before forking, make the parent exit only after
11982 the child has closed its end of the pipe. Move closing the
11983 descriptors ...
11984 (Fdaemon_initialized): ... here. New function.
11985
11986 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11987
11988 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11989 the previous unoptimized table.
11990
11991 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11992 the distinction between non-nil and non-t value of `dedicated'.
11993
11994 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
11995
11996 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
11997 read_char_minibuf_menu_text is large enough to hold the menu string.
11998
11999 2008-10-25 Martin Rudalics <rudalics@gmx.at>
12000
12001 * window.c (Fget_buffer_window, Fdelete_windows_on)
12002 (Freplace_buffer_in_windows): Make buffer argument optional and
12003 rename to buffer_or_name.
12004
12005 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
12006
12007 * xdisp.c (handle_single_display_spec, handle_display_prop):
12008 Undo 2005-05-16 change.
12009 (handle_stop): Pop iterator if it's loaded with an empty string.
12010 (get_overlay_strings_1): Don't save iterator if it's loaded with
12011 an empty string (bug#1201).
12012
12013 2008-10-24 Kenichi Handa <handa@m17n.org>
12014
12015 * ftfont.c (ftfont_otf_features): Fix previous change.
12016 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12017 calling ftfont_otf_features.
12018
12019 2008-10-24 Kenichi Handa <handa@m17n.org>
12020
12021 * font.c (font_match_p): Fix for the case that a vector of
12022 characters is in script-representative-chars.
12023
12024 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
12025
12026 * dbusbind.c (xd_in_read_queued_messages): New variable.
12027 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
12028 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12029 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
12030 macro. (Bug#1186)
12031
12032 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
12033
12034 * s/sol2-10.h: New file.
12035
12036 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12037
12038 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12039 poor beast has survived 9+ years and the jump from xterm.c!).
12040
12041 2008-10-23 Martin Rudalics <rudalics@gmx.at>
12042
12043 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12044 Reword doc-string.
12045 (Fbury_buffer): In doc-string say what happens to the buffer's window.
12046
12047 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12048
12049 * character.c (syms_of_character) <script-representative-chars>:
12050 <unicode-category-table>: Doc fixes.
12051
12052 2008-10-23 Noah Friedman <friedman@splode.com>
12053
12054 * coding.c (make_conversion_work_buffer): Check that
12055 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12056 Fget_buffer_create.
12057
12058 2008-10-23 Kenichi Handa <handa@m17n.org>
12059
12060 * font.c (font_add_log): Check the values of extra properties.
12061
12062 2008-10-22 Martin Rudalics <rudalics@gmx.at>
12063
12064 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12065 Reword doc-string.
12066 (Fset_window_parameter): Use NILP.
12067 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
12068 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12069
12070 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12071
12072 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12073
12074 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12075
12076 * nsfns.m (ns_appkit_version): New function.
12077 (x-server-version): Use it.
12078 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12079 (x-server-vendor): Don't check_ns().
12080
12081 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12082
12083 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12084
12085 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12086 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12087
12088 2008-10-22 Kenichi Handa <handa@m17n.org>
12089
12090 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12091 scripts.
12092
12093 * category.c (word_boundary_p): Check scripts instead of charset.
12094 Handle nil value in word-separating-categories and
12095 word-combining-categories.
12096 (syms_of_category): Fix docstrings of word-separating-categories
12097 and word-combining-categories.
12098
12099 2008-10-21 Eli Zaretskii <eliz@gnu.org>
12100
12101 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12102 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12103
12104 2008-10-21 Martin Rudalics <rudalics@gmx.at>
12105
12106 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12107 Rename arg "buffer" to "buffer_or_name".
12108 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12109 it optional.
12110 (no_switch_window): Remove since the return value is not used.
12111 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
12112 Consider window as dedicated when Fwindow_dedicated_p returns a
12113 non-nil value.
12114 * lisp.h: Remove prototype for no_switch_window.
12115
12116 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12117
12118 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
12119 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
12120
12121 2008-10-21 Kenichi Handa <handa@m17n.org>
12122
12123 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12124 check Vlatin_extra_code_table.
12125
12126 2008-10-20 Eli Zaretskii <eliz@gnu.org>
12127
12128 * fileio.c (Fset_file_modes): Doc fix.
12129
12130 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
12131
12132 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12133 in arrays.
12134
12135 2008-10-19 Martin Rudalics <rudalics@gmx.at>
12136
12137 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12138 Mention kill-buffer in doc-string.
12139 (Fset_window_buffer): Reinsert tem check removed in last commit.
12140 (Fenlarge_window, Fshrink_window): Have argument names and
12141 doc-string follow Elisp manual more closely.
12142
12143 2008-10-18 Eli Zaretskii <eliz@gnu.org>
12144
12145 * fileio.c (Fset_file_modes): Doc fix.
12146
12147 2008-10-18 Martin Rudalics <rudalics@gmx.at>
12148
12149 * window.c (Fwindow_width, Fset_window_start)
12150 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
12151 (Fdelete_windows_on, Freplace_buffer_in_windows):
12152 Make doc-strings follow code and Elisp manual more closely.
12153 (Fwindow_dedicated_p): Make window argument optional.
12154 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12155 (Fset_window_buffer): Respect any non-nil dedicated value for
12156 window. Rename "buffer" argument to "buffer_or_name".
12157
12158 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
12159
12160 * m/sh3.h: New file, machine description for SuperH.
12161
12162 2008-10-17 Martin Rudalics <rudalics@gmx.at>
12163
12164 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12165
12166 2008-10-17 Kenichi Handa <handa@m17n.org>
12167
12168 * ftfont.c (ftfont_otf_features): Fix indexing
12169 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12170
12171 2008-10-16 Magnus Henoch <mange@freemail.hu>
12172
12173 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12174 (Fdbus_call_method_asynchronously): Ditto.
12175 This change makes C-h f display the argument list.
12176
12177 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
12178
12179 * fileio.c (Fexpand_file_name): Doc fix.
12180
12181 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12182 of :foreground and :background equivalent to unspecified (20.x
12183 compatibility).
12184
12185 2008-10-15 Eli Zaretskii <eliz@gnu.org>
12186
12187 * buffer.c (syms_of_buffer): Doc fix.
12188
12189 2008-10-14 Kenichi Handa <handa@m17n.org>
12190
12191 * font.c (font_clear_prop): When clearing font width, clear the
12192 average width field too.
12193
12194 2008-10-12 Andreas Schwab <schwab@suse.de>
12195
12196 * ftfont.c (ftfont_shape_by_flt): Make static.
12197 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12198
12199 * font.c: Don't include <m17n-flt.h>.
12200
12201 2008-10-10 Eli Zaretskii <eliz@gnu.org>
12202
12203 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12204
12205 2008-10-09 Eli Zaretskii <eliz@gnu.org>
12206
12207 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12208 away code.
12209
12210 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
12211
12212 * dispnew.c (update_text_area): Avoid looping due to large glyph
12213 overhangs (bug#1070).
12214
12215 2008-10-09 Kenichi Handa <handa@m17n.org>
12216
12217 * fontset.c (face_for_char): If face->fontset is negative, just
12218 return ascii_face.
12219
12220 * font.c (font_delete_unmatched): Fix previous change.
12221 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
12222
12223 2008-10-09 Martin Rudalics <rudalics@gmx.at>
12224
12225 * frame.c (Fraise_frame): On text-only terminals select frame in
12226 order to make it visible. (Bug#1061)
12227
12228 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
12229
12230 * fontset.c (fontset_find_font): Check frame validity.
12231
12232 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
12233
12234 * gtkutil.c (xg_display_open): Reset default display if none exists.
12235 (xg_display_close): Allow Emacs to close all displays (bug#985).
12236
12237 2008-10-06 Andreas Schwab <schwab@suse.de>
12238
12239 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
12240
12241 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
12242
12243 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
12244
12245 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
12246
12247 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12248 during initialization.
12249
12250 2008-10-04 Eli Zaretskii <eliz@gnu.org>
12251
12252 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12253 whole thing on MSDOS frames as well as on a TTY.
12254
12255 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12256 well as for TTY.
12257 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12258 well as on a TTY.
12259
12260 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12261 as well as for TTY.
12262
12263 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12264
12265 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12266 MSDOS frames as well.
12267
12268 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12269
12270 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12271 correct arguments.
12272 * menu.c (find_and_return_menu_selection): Add cast.
12273
12274 2008-10-03 Glenn Morris <rgm@gnu.org>
12275
12276 * emacs.c (USAGE1): Add --daemon.
12277
12278 2008-10-02 Eli Zaretskii <eliz@gnu.org>
12279
12280 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12281 100, so it's in percents as advertised.
12282
12283 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12284
12285 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12286 (ns_output.current_cursor, ns_output.desired_cursor)
12287 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12288 (FRAME_NEW_CURSOR_COLOR): Remove.
12289
12290 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
12291 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
12292 enumeration (HOLLOW_BOX_CURSOR, etc.).
12293
12294 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12295 (draw_window_cursor): Simplify code.
12296 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12297 Don't change cursor type. In latter, call rehighlight instead of doing
12298 updates manually.
12299 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12300 Use core Emacs cursor types.
12301
12302 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
12303
12304 2008-10-02 Martin Rudalics <rudalics@gmx.at>
12305
12306 * process.c (Faccept_process_output): Fix doc-string.
12307
12308 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12309
12310 * gmalloc.c (__sbrk): Also define for uClibc.
12311
12312 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12313 for uClibc.
12314
12315 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12316
12317 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12318 styles.
12319 (nsfont_open): Reenable the cache.
12320
12321 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12322
12323 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12324 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12325
12326 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12327
12328 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12329 a suspended terminal.
12330
12331 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
12332
12333 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12334
12335 2008-09-30 Eli Zaretskii <eliz@gnu.org>
12336
12337 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12338
12339 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
12340
12341 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12342 in a continued line coincides with a line beginning.
12343
12344 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12345
12346 * nsfont.m (nsfont_trait_distance): Fix bug.
12347 (nsfont_list): Return a list rather than a vector (syncs with Handa
12348 changes of 2008-05-14).
12349 (nsfont_open): Improve logging.
12350
12351 2008-09-29 Andreas Schwab <schwab@suse.de>
12352
12353 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12354
12355 2008-09-28 Martin Rudalics <rudalics@gmx.at>
12356
12357 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12358 name as char-resolve-modifiers.
12359 Reported by: Markus Triska <markus.triska@gmx.at>
12360
12361 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12362
12363 * dispnew.c (init_display): Return earlier when running as a daemon.
12364
12365 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12366
12367 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12368
12369 2008-09-27 Eli Zaretskii <eliz@gnu.org>
12370
12371 * composite.c (Fcomposition_get_gstring)
12372 (Fcompose_region_internal, Fcompose_string_internal)
12373 (Ffind_composition_internal): Doc fix.
12374 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12375 (syms_of_composite) <auto-composition-function>: Doc fix.
12376 (syms_of_composite) <composition-function-table>: Doc fix.
12377
12378 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
12379
12380 * search.c (wordify): New argument for lax word-ends.
12381 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12382
12383 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12384
12385 * lisp.h (is_daemon): Declare.
12386 * dispnew.c (init_display): Do not try to initialize the terminal
12387 when running as a daemon.
12388
12389 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
12390
12391 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12392 x_display_pixel_height.
12393
12394 2008-09-22 Martin Rudalics <rudalics@gmx.at>
12395
12396 * undo.c (record_point): Don't call Fundo_boundary for first
12397 change. (Bug#731)
12398
12399 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
12400
12401 * emacs.c (Fdaemonp): Doc fix.
12402
12403 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12404
12405 * emacs.c (main): Place #ifdef in the proper place.
12406
12407 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12408
12409 * emacs.c (standard_args): Add --daemon.
12410 (main): Disconnect from the terminal when --daemon is passed.
12411 (is_daemon): New variable.
12412 (Fdaemonp): New function.
12413 (syms_of_emacs): Defsubr it.
12414
12415 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
12416
12417 * xdisp.c (get_next_display_element): Handle string display
12418 correctly when checking for the end of a box run.
12419
12420 2008-09-20 Glenn Morris <rgm@gnu.org>
12421
12422 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12423 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12424 (Frename_file): Avoid copying to trash if a rename involves
12425 a delete. (Bug#964).
12426
12427 2008-09-20 Eli Zaretskii <eliz@gnu.org>
12428
12429 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12430 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12431 frames as well as termcap frames.
12432 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12433 get_named_tty.
12434
12435 2008-09-19 Eli Zaretskii <eliz@gnu.org>
12436
12437 * process.c (procfs_system_process_attributes): Fix cmdline in
12438 case /proc/PID/cmdline is empty.
12439
12440 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12441 x_display_pixel_height.
12442
12443 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
12444
12445 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12446
12447 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12448 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12449
12450 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12451
12452 * dispextern.h (struct it): Move line_wrap away from the middle of
12453 bitfields. Move voffset in struct iterator_stack_entry after the
12454 bitfields. Move tab_width near after another short.
12455
12456 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12457
12458 * frame.h (struct frame): Move alpha from the middle of bitfields.
12459
12460 * window.h (struct window): Move frozen_window_start_p after the
12461 rest of the bitfields to reduce padding.
12462
12463 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
12464
12465 * xterm.h (x_display_info): Remove `height' and `width' members.
12466
12467 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12468
12469 * w32term.h (w32_display_info): Remove `height', `width',
12470 `height_in', and `width_in' members.
12471
12472 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12473 New functions.
12474 (x_calc_absolute_position): Use them.
12475 (x_term_init): Omit removed `height' and `width' members.
12476
12477 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12478 New functions.
12479 (w32_read_socket, x_calc_absolute_position): Use them.
12480 (w32_initialize_display_info, w32_term_init): Omit removed members
12481 of w32_display_info.
12482
12483 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12484 New functions.
12485 (ns_initialize_display_info): Omit removed members of ns_display_info.
12486
12487 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12488 New functions.
12489 (x_calc_absolute_position): Use them.
12490 (x_term_init): Omit removed `height' and `width' members.
12491
12492 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12493 (compute_tip_xy):
12494 * frame.c (x_fullscreen_adjust):
12495 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12496 x_display_pixel_width.
12497
12498 2008-09-18 Kenichi Handa <handa@m17n.org>
12499
12500 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12501 (composition_compute_stop_pos): Fix handling of static composition.
12502 (Fcomposition_get_gstring): Check FROM and TO at first.
12503
12504 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12505
12506 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
12507 mixup (YAILOM).
12508
12509 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
12510
12511 * indent.c (Fvertical_motion): Use position reported by iterator
12512 instead of PT for determining screen motion (bug#943).
12513
12514 2008-09-17 Romain Francoise <romain@orebokech.com>
12515
12516 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12517
12518 2008-09-17 Kenichi Handa <handa@m17n.org>
12519
12520 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12521
12522 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12523 if necessary.
12524
12525 2008-09-16 Kenichi Handa <handa@m17n.org>
12526
12527 * coding.c (make_conversion_work_buffer): Avoid calling
12528 Fget_buffer_create if it is not necessary.
12529
12530 2008-09-15 Martin Rudalics <rudalics@gmx.at>
12531
12532 * window.c (Fselect_window): Don't update window_select_count and
12533 use_time when norecord is not nil.
12534
12535 2008-09-14 Kenichi Handa <handa@m17n.org>
12536
12537 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12538 specpdl_ptr.
12539
12540 2008-09-12 Kenichi Handa <handa@m17n.org>
12541
12542 * indent.c (scan_for_column): Don't handle automatic composition
12543 if the current buffer is not associated with a window.
12544
12545 * composite.c (composition_reseat_it): If the current buffer is
12546 not associated with a window, ignore the automatic composition.
12547 (find_automatic_composition): Likewise.
12548
12549 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12550
12551 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12552 (Fgpm_mouse_stop): Use it.
12553 * termhooks.h (close_gpm): Declare.
12554 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12555 connection if Gpm_GetEvent fails.
12556
12557 * window.c (set_window_buffer): Always preserve current-buffer.
12558
12559 2008-09-12 Glenn Morris <rgm@gnu.org>
12560
12561 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12562
12563 2008-09-11 Glenn Morris <rgm@gnu.org>
12564
12565 * charset.c (charset-map-path): Doc fix.
12566
12567 2008-09-10 Kenichi Handa <handa@m17n.org>
12568
12569 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12570
12571 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12572 compose a grapheme cluster with the preceding base glyph.
12573
12574 * composite.c (composition_compute_stop_pos): Fix previous change.
12575 Reset cmp_it->id to -1 at first.
12576
12577 2008-09-10 Glenn Morris <rgm@gnu.org>
12578
12579 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12580
12581 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
12582
12583 * keyboard.c (read_key_sequence): Reapply translation maps when
12584 switching keyboards.
12585
12586 2008-09-09 Kenichi Handa <handa@m17n.org>
12587
12588 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12589 characters.
12590
12591 * composite.c (FORWARD_CHAR): Fix calculation
12592 of (POSITION).pos_byte.
12593 (composition_compute_stop_pos): Limit the search of composition to
12594 at most 500 characters ahead. If we reach the limit or find a
12595 newline, set cmp_it->ch to -2 and return 0.
12596 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12597
12598 2008-09-08 Kenichi Handa <handa@m17n.org>
12599
12600 * indent.c (Fvertical_motion): Be sure to set
12601 it_overshoot_expected if it.cmp_it.id is non-negative.
12602
12603 2008-09-07 Andreas Schwab <schwab@suse.de>
12604
12605 * callproc.c (Fcall_process): Don't hold references to string data
12606 across garbage collection. Move initialisation of new_argv down
12607 to avoid compiler bug.
12608
12609 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12610
12611 * process.c (Fsystem_process_attributes): Doc fix.
12612
12613 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
12614
12615 * callproc.c (Fcall_process): Canonicalize current directory name.
12616
12617 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12618 iterator advances to the next line if the current line ends in a
12619 continued tab.
12620
12621 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12622
12623 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12624 member to point to cmp_from.
12625
12626 * xdisp.c: Doc fix for references to gidx data member.
12627
12628 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12629
12630 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12631
12632 2008-09-07 Kenichi Handa <handa@m17n.org>
12633
12634 * composite.c (FORWARD_CHAR): Check STOP after
12635 incrementing (POSITION).pos.
12636
12637 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12638
12639 * process.c (Fsystem_process_attributes): Doc fix.
12640
12641 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
12642
12643 * keyboard.c (Ftop_level): Doc fix.
12644
12645 2008-09-06 Eli Zaretskii <eliz@gnu.org>
12646
12647 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12648 minibuffer, don't let lower part of menu invade the echo area.
12649
12650 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12651 "char *q" to access menu text and advance through it. Revert the
12652 change that displayed ">" instead of ASCII character 0x10.
12653
12654 2008-09-05 Eli Zaretskii <eliz@gnu.org>
12655
12656 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12657 toggle boxes and radio buttons on MS-DOS as well.
12658
12659 2008-09-05 Kenichi Handa <handa@m17n.org>
12660
12661 * composite.c (autocmp_chars): Check lookback count.
12662 (composition_compute_stop_pos): Set cmp_it->lookback.
12663 (composition_reseat_it): Check lookback count.
12664 (struct position_record): New struct.
12665 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12666 (find_automatic_composition): New function.
12667 (composition_adjust_point): Use find_automatic_composition.
12668
12669 * dispextern.h (struct composition_it): New member lookback.
12670
12671 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
12672
12673 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12674 if moving by a single line.
12675
12676 2008-09-02 Andreas Schwab <schwab@suse.de>
12677
12678 * xterm.c (x_delete_display): Fix merge error.
12679
12680 * fileio.c (Fexpand_file_name): Remove unused variables.
12681
12682 2008-09-02 Eli Zaretskii <eliz@gnu.org>
12683
12684 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12685 storage on all platforms, not just on DOS_NT.
12686
12687 2008-09-02 Jason Rumney <jasonr@gnu.org>
12688
12689 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12690 Ensure mouse is not grabbed after menu is finished.
12691
12692 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
12693
12694 * xfaces.c (Finternal_set_alternative_font_family_alist)
12695 (Finternal_set_alternative_font_registry_alist): Properly copy
12696 entire alist structure.
12697
12698 2008-09-01 Kenichi Handa <handa@m17n.org>
12699
12700 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
12701 representative chars of the script is a vector.
12702 (ftfont_list): Handle the case where the representative chars of
12703 the script is a vector.
12704
12705 * character.c (syms_of_character): Docstring of
12706 script-representative-chars fixed.
12707
12708 2008-08-31 Eli Zaretskii <eliz@gnu.org>
12709
12710 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12711 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12712 the menu. Allocate larger buffer for `text', to account for
12713 possible ^C characters.
12714
12715 2008-08-31 Martin Rudalics <rudalics@gmx.at>
12716
12717 * xdisp.c (prepare_menu_bars): Don't call
12718 Vwindow_size_change_functions with arg Qt.
12719
12720 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12721
12722 * font.h (font_range):
12723 * fileio.c (report_file_error):
12724 * composite.c (composition_update_it): Yet another int/Lisp_Object
12725 mixup (YAILOM).
12726
12727 2008-08-30 Glenn Morris <rgm@gnu.org>
12728
12729 * data.c (Fmake_variable_frame_local): Doc fix.
12730
12731 * frame.c (Fmodify_frame_parameters): Doc fix.
12732
12733 2008-08-30 Eli Zaretskii <eliz@gnu.org>
12734
12735 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12736 needed by GetTokenInformation.
12737 (w32_system_process_attributes): Check return values of all system
12738 APIs.
12739
12740 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12741 only when the state changes.
12742 (IT_update_begin, IT_update_end): Add termscript trace.
12743
12744 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12745 clipboard is unavailable. Set dst to NULL if it doesn't point to
12746 malloc'ed data.
12747 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12748 passing random values to xfree.
12749
12750 * dispnew.c (init_display): Set `tty's association in frame's
12751 parameters alist to the name of the terminal device, if that is known.
12752
12753 2008-08-29 Jason Rumney <jasonr@gnu.org>
12754
12755 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12756
12757 2008-08-29 Eli Zaretskii <eliz@gnu.org>
12758
12759 * composite.c (fill_gstring_body): Avoid compiler warnings.
12760
12761 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12762 LGLYPH_SET_CODE to avoid compiler warnings.
12763
12764 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
12765
12766 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12767
12768 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12769 LGLYPH_SET_CODE.
12770
12771 2008-08-29 Kenichi Handa <handa@m17n.org>
12772
12773 * fileio.c (report_file_error): Don't downcase the first character
12774 of errstring if it is still unibyte.
12775
12776 2008-08-29 Kenichi Handa <handa@m17n.org>
12777
12778 These changes are to re-implement the automatic composition so
12779 that it doesn't use text properties.
12780
12781 * Makefile.in (ftfont.o): Depend on composite.h.
12782 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12783
12784 * character.h (Vunicode_category_table): Extern it.
12785
12786 * character.c (Vunicode_category_table): New variable.
12787 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12788
12789 * chartab.c (optimize_sub_char_table): Perform more greedy
12790 optimization.
12791
12792 * composite.h (enum composition_method):
12793 Delete COMPOSITION_WITH_GLYPH_STRING.
12794 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12795 (Vcomposition_function_table): Extern it.
12796 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12797 (composition_gstring_put_cache, composition_gstring_from_id)
12798 (composition_gstring_p, composition_gstring_width)
12799 (composition_compute_stop_pos, composition_reseat_it)
12800 (composition_update_it, composition_adjust_point): Extern them.
12801 (Fcomposition_get_gstring): EXFUN it.
12802
12803 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
12804 (Vcomposition_function_table)
12805 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
12806 (gstring_hash_table, gstring_work, gstring_work_headers):
12807 New variables.
12808 (gstring_lookup_cache, composition_gstring_put_cache)
12809 (composition_gstring_from_id, composition_gstring_p)
12810 (composition_gstring_width, fill_gstring_header)
12811 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12812 (composition_reseat_it, composition_update_it)
12813 (composition_adjust_point, Fcomposition_get_gstring): New functions.
12814 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12815 and gstring_work_headers. DEFVAR_LISP composition-function-table.
12816 Defsubr composition_get_gstring.
12817
12818 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12819 cmp_id.
12820 (struct glyph_string): Delete the member gidx. New members
12821 cmp_id, cmp_from, and cmp_to.
12822 (enum it_method): Delete GET_FROM_COMPOSITION.
12823 (struct composition_it): New struct.
12824 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12825 Delete c, len, cmp_id, cmp_len in u.comp.
12826
12827 * font.h (enum lgstring_indices): Delete it.
12828 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
12829 (enum lglyph_indices): Likewise.
12830 (font_range): Adjust extern.
12831 (font_fill_lglyph_metrics): Extern it.
12832
12833 * font.c (QCf): New variable.
12834 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12835 (font_prepare_composition): Delete this function.
12836 (font_range): Type and arguments changed.
12837 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12838 (font_fill_lglyph_metrics): New function.
12839 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
12840 (syms_of_font): DEFSYM QCf. Delete defsubr for
12841 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12842 Defsubr Sfont_shape_gstring.
12843
12844 * fontset.h (font_for_char): Extern it.
12845
12846 * fontset.c (font_for_char): New function.
12847
12848 * ftfont.c: Include composite.h.
12849 (ftfont_resolve_generic_family): Add langset "en" to pattern.
12850 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12851
12852 * indent.c: Include composite.h and dispextern.h.
12853 (check_composition): Delete this function.
12854 (scan_for_column): Handle composition by
12855 composition_compute_stop_pos, composition_reseat_it, and
12856 composition_update_it.
12857 (compute_motion): Likewise.
12858 (Fvertical_motion): Fix checking of composition.
12859
12860 * keyboard.c (adjust_point_for_property): Check composition by
12861 composition_adjust_point.
12862
12863 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
12864 struct glyph_string.
12865
12866 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12867 (append_composite_glyph): Adjust for the change of struct it and
12868 struct glyph.
12869 (produce_composite_glyph): Likewise.
12870
12871 * w32term.c (x_draw_composite_glyph_string_foreground):
12872 Adjust for the change of struct glyph_string.
12873 (x_draw_glyph_string): Likewise.
12874
12875 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12876 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12877
12878 * xdisp.c: Include font.h.
12879 (it_props): Delete the entry for Qauto_composed.
12880 (init_iterator): Initialize it->cmp_it.id to -1.
12881 (compute_stop_pos): Call composition_compute_stop_pos.
12882 (face_before_or_after_it_pos): Adjust for the change of struct it.
12883 (handle_auto_composed_prop): Delete it.
12884 (handle_composition_prop): Handle only static composition.
12885 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12886 from xassert. Initialize it->cmp_it.stop_pos.
12887 (push_it): Adjust for the change of struct it.
12888 (pop_it): Likewise.
12889 (get_next_element): Delete next_element_from_composition.
12890 (CHAR_COMPOSED_P): New macro.
12891 (get_next_display_element): For automatic composition, get a face
12892 from the font in the glyph-string.
12893 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
12894 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
12895 (next_element_from_string): Check if the character at the current
12896 position is composed by CHAR_COMPOSED_P.
12897 (next_element_from_buffer): Likewise.
12898 (next_element_from_composition): Adjust for the change of struct it.
12899 Update it->cmp_it.
12900 (dump_glyph): Adjust for the change of struct glyph.
12901 (fill_composite_glyph_string): Adjust for the change of struct
12902 it and struct glyph. Don't handle automatic composition here.
12903 (fill_gstring_glyph_string): New function.
12904 (x_get_glyph_overhangs): Handle automatic composition.
12905 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
12906 (BUILD_GSTRING_GLYPH_STRING): New macro.
12907 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12908 automatic composition.
12909 (append_composite_glyph): Adjust for the change of struct it and
12910 struct glyph.
12911 (x_produce_glyphs): Adjust for the change of struct it.
12912
12913 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12914 the change of struct glyph_string.
12915 (x_draw_glyph_string): Likewise.
12916
12917 2008-08-29 Glenn Morris <rgm@gnu.org>
12918
12919 * buffer.c (word-wrap): Doc fix.
12920 * xdisp.c (truncate-partial-width-windows): Doc fix.
12921 Increase default to 50.
12922
12923 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
12924
12925 * xdisp.c (update_tool_bar_unwind): New function.
12926 (update_tool_bar): Temporarily set selected frame before building
12927 tool-bar items.
12928
12929 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
12930
12931 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12932 snprintf, respectively.
12933 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12934
12935 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
12936
12937 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12938 LDFLAGS to GNUstep CC invocation.
12939
12940 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
12941
12942 * indent.c (Fvertical_motion): Revert last change. Handle the
12943 general case where we are moving forward, and PT spans multiple
12944 screen lines.
12945
12946 * eval.c (find_handler_clause): Temporarily increase
12947 max-lisp-eval-depth while printing the backtrace buffer, to
12948 guarantee that help-mode code can run.
12949
12950 2008-08-27 Eli Zaretskii <eliz@gnu.org>
12951
12952 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12953 colors under -rv.
12954 (IT_set_frame_parameters): Don't swap foreground and background
12955 colors if `(reverse . t)' is present in the frame properties.
12956 (internal_terminal_init): Call init_frame_faces only for the
12957 initial frame.
12958
12959 2008-08-27 Andreas Schwab <schwab@suse.de>
12960
12961 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12962
12963 2008-08-27 Andreas Schwab <schwab@suse.de>
12964
12965 * search.c (search_buffer): Set char_base to zero only at the end.
12966
12967 2008-08-27 Kenichi Handa <handa@m17n.org>
12968
12969 * fileio.c (report_file_error): Fix handling of multibyte error string.
12970
12971 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12972
12973 * xterm.c (x_term_init): Temporarily hide the partially
12974 initialized terminal while calling vendor-specific-keysyms.
12975
12976 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12977
12978 * msdos.c (internal_terminal_init): Most initializations done only
12979 once, especially initial_screen_colors[] and termscript open.
12980
12981 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12982
12983 * eval.c (Fcondition_case): Doc fix.
12984
12985 * widgetprv.h (EmacsFramePart): Change font member to the new font
12986 struct.
12987
12988 * widget.c: Include character.h and font.h for XSETFONT.
12989 (setup_frame_gcs): Compute X font id from font struct, just once.
12990
12991 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12992
12993 * term.c (get_named_tty): Fix last change.
12994
12995 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12996
12997 * indent.c (Fvertical_motion): If moving forward starting from a
12998 multi-line string, move the iterator to the last line of that string.
12999
13000 2008-08-25 Eli Zaretskii <eliz@gnu.org>
13001
13002 * frame.c (do_switch_frame): Mark previously displayed frame as
13003 obscured for FRAME_MSDOS_P frames as well.
13004
13005 2008-08-24 Eli Zaretskii <eliz@gnu.org>
13006
13007 * frame.c (make_terminal_frame): Initialize f->terminal,
13008 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13009 Set the top frame to newly created frame.
13010 (Fmake_terminal_frame): Reuse the_only_display_info.
13011
13012 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13013 estimating available memory.
13014
13015 2008-08-23 David Reitter <david.reitter@gmail.com>
13016
13017 * nsterm.m (ns_draw_window_cursor): Don't call
13018 NSDisableScreenUpdates and NSEnableScreenUpdates on
13019 non-NS_IMPL_COCOA systems.
13020
13021 2008-08-23 Andreas Schwab <schwab@suse.de>
13022
13023 * process.c (procfs_system_process_attributes): Fix use of
13024 uninitialized variables.
13025
13026 2008-08-23 Eli Zaretskii <eliz@gnu.org>
13027
13028 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13029
13030 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13031 calling tty-set-up-initial-frame-faces.
13032
13033 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13034 Allow MSDOS frames along with X frames.
13035
13036 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13037 addition to output_termcap.
13038
13039 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13040
13041 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13042 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13043 highlight.
13044
13045 * process.c [!subprocesses]: Define QCname.
13046 (syms_of_process): Intern and staticpro it.
13047
13048 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
13049 Adjust for changes in encoding/decoding routines.
13050 Use encode_coding_object and decode_coding_object instead of
13051 encode_coding and decode_coding.
13052
13053 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
13054
13055 * dosfns.c: Include frame.h before termhooks.h.
13056 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13057 variable termscript.
13058
13059 * s/msdos.h (USER_FULL_NAME): Define.
13060 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13061
13062 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13063 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13064 pw->pw_gecos.
13065
13066 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13067 SELECTED_FRAME as additional (1st) argument.
13068 (tty_read_avail_input): Handle output_msdos_raw in
13069 addition to output_termcap.
13070
13071 * msdos.c: Include frame.h before termhooks.h.
13072 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13073 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13074 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13075 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13076 (IT_set_terminal_modes, IT_reset_terminal_modes)
13077 (IT_set_frame_parameters): Use tty->termscript instead of a global
13078 variable termscript.
13079 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13080 global variable terminal_coding. Don't refer to
13081 Vnonascii_translation_table.
13082 (internal_terminal_init): Set Vwindow_system in current_kboard.
13083 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13084 Announce date and time of session start, if termscript is open.
13085 Don't zero out the_only_display_info (it is done in
13086 term.c:init_tty). Open termscript only of not already open.
13087 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
13088 here instead of dos_ttraw. Don't initialize display if this is an
13089 initial tty. Don't set FRAME_FONT.
13090 (Vwindow_system_version): Bump to 23.
13091 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13092 is available, set up mouse_position_hook.
13093 (dos_ttraw, IT_set_terminal_modes): If called with initial
13094 terminal, do nothing.
13095 (IT_set_frame_parameters): Handle the Qtty_type frame
13096 parameter by calling internal_terminal_init.
13097 (dos_set_window_size, show_mouse_face)
13098 (clear_mouse_face, IT_note_mode_line_highlight)
13099 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13100 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13101 (initialize_msdos_display): New function.
13102 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13103 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13104 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13105 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
13106 Accept additional argument: a pointer to a frame. Update all callers.
13107 (request_sigio, unrequest_sigio): Don't define, now defined on
13108 sysdep.c.
13109 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13110
13111 * term.c [MSDOS]: Include msdos.h.
13112 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13113 conditional to DOS_NT. Allow only one call to this function in a
13114 session. Don't allocate a new struct tty_display_info; instead,
13115 reuse the_only_display_info. Call get_tty_size to get screen
13116 dimensions. Call init_baud_rate to set bad_rate.
13117 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13118 (Fsuspend_tty) [MSDOS]: Don't close input and output.
13119 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
13120 (get_tty_terminal, get_named_tty, Ftty_type)
13121 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13122 output_termcap.
13123 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13124 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
13125 only when subprocesses are supported.
13126
13127 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13128 f->output_data.x.
13129 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13130 terminal devices.
13131
13132 * msdos.h: Remove definition of struct x_display_info and struct
13133 x_output.
13134 (FRAME_FONT): Use output_data.tty.
13135 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
13136 (struct x_display_info): Rename from display_info. Update all users in
13137 msdos.c.
13138 (struct x_output): Remove background_pixel and foreground_pixel.
13139 (the_only_display_info): Rename from the_only_x_display.
13140 (dos_ttraw): Update prototype.
13141
13142 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13143 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13144
13145 2008-08-23 Jason Rumney <jasonr@gnu.org>
13146
13147 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13148 (fn_TIFFSetDirectory): New library function used.
13149 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13150 (tiff_load): Use :index to select among multiple images. Set count
13151 property when multiple images exist.
13152 (gif_format): Use :index, not :image.
13153
13154 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
13155
13156 * xdisp.c (try_scrolling): Check INT_MAX instead of
13157 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13158 to obtain INT_MAX.
13159
13160 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13161
13162 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13163
13164 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13165
13166 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13167 GNUstep library location.
13168
13169 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
13170
13171 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13172 before using it.
13173
13174 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13175
13176 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13177
13178 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13179 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13180 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13181 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13182 (EmacsApp-cursor_blink_handler): Remove declaration.
13183 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13184 match 01 Feb 2008 changes in xterm.c.
13185 (ns_read_socket): Add cast to avoid warning.
13186 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13187 GNUstep.
13188
13189 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
13190
13191 * xselect.c (x_get_foreign_selection): Return nil if desired
13192 selection could not be obtained, instead of signalling an error.
13193
13194 2008-08-20 David Reitter <david.reitter@gmail.com>
13195
13196 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13197 * nsterm.m: Remove ns-specific code for cursor blinking.
13198 (ns_draw_window_cursor): Clear cursor properly rather than
13199 redrawing the area. Respect width of bar cursors.
13200 These changes enable the use of generic blink-cursor-mode and
13201 generic cursor types in NS and support smooth cursor movements (do
13202 not blink off after command).
13203 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13204 Nextstep, too.
13205
13206 2008-08-19 Kenichi Handa <handa@m17n.org>
13207
13208 * font.c (Vfont_log_deferred): New variable.
13209 (font_add_log): Check Vfont_log_deferred.
13210 (font_deferred_log): New function.
13211
13212 * font.h (font_deferred_log): Extern it.
13213
13214 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13215 for sorting.
13216 (face_for_char): Use deferred log.
13217
13218 2008-08-18 Kenichi Handa <handa@m17n.org>
13219
13220 * fontset.c (face_for_char): Add font log.
13221
13222 * font.c (font_add_log): Add the font properties :script, :lang,
13223 and :otf in the log.
13224
13225 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
13226
13227 * xdisp.c: Remove dead code.
13228 (handle_invisible_prop, next_overlay_string): Defer call to
13229 setup_for_ellipsis.
13230 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13231
13232 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
13233
13234 * xfaces.c (lookup_derived_face): Properly handle possible zero
13235 return value of get_lface_attributes.
13236 (merge_faces): Don't tell lookup_derived_face to signal an error
13237 if face is not found.
13238
13239 * dired.c (Fdirectory_files): Doc fix.
13240
13241 * process.c (make_process): Initialize kill_without_query struct
13242 member.
13243
13244 2008-08-15 Eli Zaretskii <eliz@gnu.org>
13245
13246 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13247 Alternative calculation of totphys for Visual Studio 6.
13248
13249 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13250
13251 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13252 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13253 All users changed.
13254 (stat): Only root directory passed to GetDriveType. Allow RAM
13255 disk as well as local fixed disk when w32-get-true-file-attributes
13256 is set to `local'.
13257 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13258 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13259 (w32_cached_id, w32_add_to_cache): New functions.
13260 (get_name_and_id): Look account names in the cache before calling
13261 lookup_account_sid.
13262 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13263 New initialization flags.
13264 (globals_of_w32): Initialize them to zero.
13265 (w32_system_process_attributes): Use w32_cached_id and
13266 w32_add_to_cache.
13267
13268 2008-08-14 Lawrence Mitchell <wence@gmx.li>
13269
13270 * lread.c (Fread_char, Fread_char_exclusive): If no character
13271 event is read before timeout is reached, return nil, rather than
13272 converting to a number.
13273
13274 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
13275
13276 * fns.c (use_dialog_box): Doc fix.
13277
13278 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13279 on OS X.
13280
13281 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
13282
13283 * frame.c (Qns_parse_geometry): New var.
13284 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13285
13286 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
13287
13288 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13289 space character in calculating tabs.
13290
13291 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13292
13293 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13294
13295 2008-08-10 Glenn Morris <rgm@gnu.org>
13296
13297 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13298 silence gcc "limited range of data type" warnings in some
13299 make_fixnum_or_float calls.
13300
13301 2008-08-09 Eli Zaretskii <eliz@gnu.org>
13302
13303 * w32.c (w32_system_process_attributes): If the process does not
13304 exist, return nil.
13305
13306 * w32.c: Include thelp32.h, psapi.h and coding.h.
13307 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13308 declarations.
13309 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13310 (Process32Next_Proc): New typedefs.
13311 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13312 (g_b_init_process32_next, g_b_init_open_thread_token)
13313 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13314 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13315 (g_b_init_get_process_working_set_size)
13316 (g_b_init_global_memory_status_ex): New static variables.
13317 (globals_of_w32): Initialize them.
13318 (create_toolhelp32_snapshot, process32_first, process32_next)
13319 (open_thread_token, impersonate_self, revert_to_self)
13320 (get_process_memory_info, get_process_working_set_size)
13321 (global_memory_status, global_memory_status_ex): New wrapper
13322 functions.
13323 (w32_list_system_processes, w32_system_process_attributes)
13324 (enable_privilege, restore_privilege, ltime, process_times):
13325 New functions.
13326 (convert_time_raw): New function.
13327 (convert_time): Remove conversion of FILETIME into time in 100
13328 nsec units, call convert_time_raw instead.
13329
13330 * process.h (w32_list_system_processes, w32_system_process_attributes):
13331 Add prototypes.
13332 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13333 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13334 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13335 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13336
13337 * process.c (Fsystem_process_attributes): Doc fix.
13338
13339 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
13340
13341 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13342 a continued multi-char glyph; if so, advance to the actual glyph.
13343
13344 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13345
13346 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13347
13348 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13349 (.m.o): Use it.
13350 * config.in: Regenerate.
13351
13352 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
13353
13354 * xdisp.c (redisplay_window): Revert last change.
13355 (try_window): Check bottom scroll margin too.
13356
13357 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13358
13359 * config.in: Regenerate.
13360
13361 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13362 -list-load-path-shadows'.
13363 (nsgui.h): Reduce number of things depending on it.
13364
13365 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
13366
13367 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13368 instead of window-end which does the wrong thing at eob.
13369 (try_cursor_movement): Minor optimization.
13370 (redisplay_window): If scroll margin is defined, don't assume
13371 window doesn't need scrolling.
13372
13373 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13374
13375 * config.in: Regenerate.
13376
13377 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13378 (mostlyclean): Don't delete *.d under NS.
13379
13380 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13381
13382 2008-08-06 Kenichi Handa <handa@m17n.org>
13383
13384 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13385
13386 2008-08-06 Andreas Schwab <schwab@suse.de>
13387
13388 * config.in: Regenerate.
13389
13390 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
13391
13392 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13393 forcing a window start.
13394
13395 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13396 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13397
13398 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13399
13400 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13401 argument.
13402
13403 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
13404
13405 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13406 <scroll-down-aggressively, before-change-functions>:
13407 <after-change-functions>: Reflow docstrings.
13408
13409 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13410 Ken Raeburn <raeburn@gnu.org>
13411
13412 Dock menu customization, based on a patch by Ken Raeburn, plus some
13413 other fixes.
13414 * nsmenu.m (dockMenu): New variable.
13415 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13416
13417 * nsterm.h (dockMenu): Declare.
13418
13419 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13420 (ns_term_init): Initialize dockMenu.
13421 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13422 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13423 left.
13424
13425 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13426
13427 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
13428
13429 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13430
13431 * config.in: Regenerate.
13432
13433 2008-08-04 Seiji Zenitani <zenitani@mac.com>
13434
13435 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13436
13437 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
13438
13439 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13440
13441 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13442
13443 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13444
13445 * keyboard.h: Comment an #endif.
13446
13447 * lisp.h (have_menus_p): Adjust comment.
13448
13449 * menu.c (find_and_return_menu_selection): Fix comparison with
13450 client_data.
13451
13452 * nsmenu.m (popup_activated_flag): New variable.
13453 (popup_activated): New function.
13454 (menu-or-popup-active-p): New exported lisp definition.
13455 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13456 when popup done.
13457 (ns_popup_dialog): Set popup_activated_flag.
13458
13459 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13460 version for GNUstep (handled by conditional typedef in nsterm.m).
13461 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13462 in rgb.txt).
13463
13464 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13465
13466 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13467
13468 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13469
13470 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13471 shortcircuit if popup_activated like GTK and X toolkit.
13472
13473 * m/inter386.h: Change DARWIN to DARWIN_OS.
13474
13475 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13476 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13477 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13478 comment on NO_SOCK_SIGIO.
13479
13480 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
13481
13482 * nsterm.m (windowDidResize): Remove stopModal call.
13483
13484 2008-08-03 Andreas Schwab <schwab@suse.de>
13485
13486 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13487 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13488
13489 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
13490
13491 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13492 Don't use uninitialized pointer variable when using getrlimit.
13493
13494 2008-08-02 Jason Rumney <jasonr@gnu.org>
13495
13496 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13497
13498 2008-08-02 Eli Zaretskii <eliz@gnu.org>
13499
13500 * alloc.c (NSTATICS): Bump to 0x640.
13501
13502 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13503
13504 * lisp.h: Add prototype for directory_files_internal.
13505
13506 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13507 New functions.
13508 (syms_of_process): Defsubr them. Add initializations for various
13509 Q* symbols used in procfs_system_process_attributes.
13510 (procfs_list_system_processes, procfs_system_process_attributes)
13511 [HAVE_PROCFS]: New functions.
13512 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13513 (procfs_get_total_memory): New functions.
13514
13515 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
13516
13517 * xfaces.c (Fx_load_color_file): Fix previous change;
13518 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13519
13520 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
13521
13522 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13523
13524 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13525
13526 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13527
13528 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
13529
13530 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13531
13532 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13533 define NSApplicationDelegateReplySuccess.
13534 (EmacsView -converstationIdentifier): Use long instead of
13535 NSInteger for GNUstep, since it doesn't have NSInteger.
13536
13537 * xmenu.c: Revert last change.
13538
13539 * keyboard.h: Fix last change.
13540
13541 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
13542
13543 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13544 on Windows.
13545
13546 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13547
13548 Warning clearing and clean-up in NS port.
13549 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13550 Add prototypes.
13551 * nsgui.h (FACE_DEFAULT): Remove, unused.
13552 (XGCValues): Change colors to unsigned long.
13553 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13554 nsterm.m.
13555 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13556 (ns_list_fonts): Remove, unused.
13557 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13558 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13559 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13560 (nsfont_draw): Compare face colors to 0, not nil.
13561 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13562 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13563 (-addSubmenuWithTitle:): Use NSMenuItem class.
13564 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13565 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13566 (ns_clip_to_row): Make gc arg a BOOL.
13567 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13568 ns_clip_to_row() call.
13569 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13570 used). Cast FRAME_FONT assignments.
13571 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13572 (ns_string_to_lispmod): Change arg to const char.
13573 (ns_term_init): Use NSMenuItem class.
13574 (EmacsApp -openFile:): Move to different section of file.
13575 (EmacsApp -application:openFiles:): Don't return a value, call
13576 -replyToOpenOrPrint:.
13577 (EmacsView -keyDown:): Fix up cast.
13578 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13579 (EmacsView -menuDown:): Cast tag in call to
13580 find_and_call_menu_selection().
13581 (ns_list_fonts): Remove, unused.
13582 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13583 (ns_fontname_to_xlfd): Make static.
13584 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13585 Remove prototypes (now in keyboard.h).
13586 (next_menubar_widget_id): Remove, unused.
13587 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13588 Remove prototypes (now in keyboard.h).
13589 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13590
13591 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13592
13593 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13594 (floatfns.o): Depend on syssignal.h.
13595 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13596
13597 * systty.h: Fix previous change that removed BSD_TERMIOS.
13598 Add comments to #ifdefs.
13599
13600 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13601
13602 * w32fns.c (w32-load-color-file): Remove.
13603 (x-open-connection): Use renamed Fx_load_color_file.
13604 * xfaces.c (x-load-color-file): Add.
13605 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13606 Emacs.clr.
13607 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13608
13609 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
13610
13611 * dbusbind.c (Fdbus_call_method_asynchronously)
13612 (Fdbus_method_error_internal): New defuns.
13613 (xd_read_message): Handle also reply messages.
13614 (Vdbus_registered_functions_table): Extend docstring.
13615
13616 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
13617
13618 * keyboard.c (gobble_input): Fix previous change.
13619
13620 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13621
13622 * bitmaps/README:
13623 * xfns.c:
13624 * termcap.c:
13625 * term.c:
13626 * syswait.h:
13627 * systty.h:
13628 * systime.h:
13629 * syssignal.h:
13630 * sysdep.c:
13631 * process.h:
13632 * process.c:
13633 * print.c:
13634 * ndir.h:
13635 * lread.c:
13636 * keyboard.c:
13637 * getpagesize.h:
13638 * floatfns.c:
13639 * fileio.c:
13640 * emacs.c:
13641 * doc.c:
13642 * dispnew.c:
13643 * dired.c:
13644 * data.c:
13645 * callproc.c:
13646 * buffer.c:
13647 * README:
13648 * Makefile.in:
13649 * s/template.h:
13650 * s/msdos.h:
13651 * m/vax.h: Remove VMS support.
13652 * s/vms.h:
13653 * vlimit.h:
13654 * uaf.h:
13655 * temacs.opt:
13656 * param.h:
13657 * ioctl.h: Remove file.
13658
13659 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13660
13661 * s/ms-w32.h (MULTI_KBOARD): Remove.
13662 * xterm.c:
13663 * xselect.c:
13664 * xfns.c:
13665 * window.c:
13666 * w32term.c:
13667 * w32fns.c:
13668 * terminal.c:
13669 * termhooks.h:
13670 * term.c:
13671 * sysdep.c:
13672 * keyboard.h:
13673 * keyboard.c:
13674 * frame.h:
13675 * frame.c:
13676 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13677 * config.in: Regenerate.
13678
13679 2008-07-30 Jason Rumney <jasonr@gnu.org>
13680
13681 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13682
13683 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13684 (w32font_open_internal): Get unicode version of textmetrics.
13685 Don't enable or disable glyph indices here.
13686 (w32font_open): Disable use of glyph indices.
13687
13688 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13689
13690 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
13691
13692 * minibuf.c (Vread_buffer_function): Doc fix.
13693
13694 2008-07-30 John Paul Wallington <jpw@pobox.com>
13695
13696 * minibuf.c (read_buffer_completion_ignore_case): New var.
13697 (Fread_buffer): Use it.
13698
13699 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13700
13701 * systty.h (sensemode): Remove empty #if. Remove reference to
13702 BSD_TERMIOS, unused.
13703
13704 * sysdep.c: Remove reference to DGUX.
13705 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13706
13707 * config.in: Regenerate.
13708
13709 2008-07-30 Jason Rumney <jasonr@gnu.org>
13710
13711 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13712
13713 2008-07-29 Jason Rumney <jasonr@gnu.org>
13714
13715 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13716 is populated.
13717 (uniscribe_encode_char): Always use uniscribe.
13718 Avoid using context if cache is populated.
13719
13720 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13721
13722 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13723 open menu.
13724
13725 * gtkutil.c (menu_nav_ended): Remove.
13726 (create_menus): Remove signal connect for menu_nav_ended.
13727
13728 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
13729
13730 * xdisp.c (redisplay_window): Check return value of
13731 compute_window_start_on_continuation_line before forcing a window
13732 start.
13733
13734 2008-07-28 Jason Rumney <jasonr@gnu.org>
13735
13736 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13737
13738 * w32term.c (w32_enable_unicode_output, cleartype_active):
13739 Remove obsolete display options.
13740 (x_draw_glyph_string_background): Don't use old cleartype_active
13741 workaround.
13742 (w32_initialize): Remove cleartype_active initialization.
13743 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13744
13745 2008-07-28 Andreas Schwab <schwab@suse.de>
13746
13747 * lisp.h (init_weak_hash_tables, syms_of_font)
13748 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13749 (remove_hash_entry): Don't declare.
13750 * eval.c (maybe_call_debugger): Make static and move before use.
13751 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13752 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13753 * xterm.h (x_set_frame_alpha): Declare.
13754
13755 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13756
13757 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13758 (create_menus): Connect selection-done to menu_nav_ended.
13759
13760 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13761
13762 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13763 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13764 parameter with read of 'alpha' one.
13765 (Qns_frame_parameter): Remove.
13766 * nsselect.m (selection-coding-system)
13767 (next-selection-coding-system, Vselection_coding_system)
13768 (Vnext_selection_coding_system): Drop.
13769
13770 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13771
13772 * nsfns.m (do-applescript, do_applescript): Rename to
13773 ns-do-applescript, ns_do_applescript, and move within file.
13774
13775 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13776
13777 Remove support for Mac Carbon.
13778 * mactoolbox.c:
13779 * macterm.h:
13780 * macterm.c:
13781 * macselect.c:
13782 * macmenu.c:
13783 * macgui.h:
13784 * macfns.c:
13785 * mac.c: Remove file.
13786 * s/darwin.h:
13787 * m/intel386.h:
13788 * xfaces.c:
13789 * xdisp.c:
13790 * window.c:
13791 * tparam.c:
13792 * termhooks.h:
13793 * termcap.c:
13794 * term.c:
13795 * syssignal.h:
13796 * sysselect.h:
13797 * sysdep.c:
13798 * process.c:
13799 * lread.c:
13800 * lisp.h:
13801 * keyboard.c:
13802 * image.c:
13803 * fringe.c:
13804 * frame.h:
13805 * frame.c:
13806 * fontset.c:
13807 * font.h:
13808 * font.c:
13809 * fns.c:
13810 * fileio.c:
13811 * emacs.c:
13812 * dispnew.c:
13813 * dispextern.h:
13814 * config.in:
13815 * atimer.c:
13816 * Makefile.in: Remove code for Carbon.
13817
13818 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13819
13820 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13821
13822 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13823
13824 * macterm.h (kCGBitmapByteOrder32Host): New define for
13825 non-universal SDKs.
13826
13827 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13828 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13829
13830 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13831 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13832
13833 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13834
13835 * w32inevt.c: Include dispextern.h.
13836
13837 2008-07-26 Andreas Schwab <schwab@suse.de>
13838
13839 * print.c (print_object): Fix off-by-one in last change.
13840
13841 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
13842
13843 * term.c (syms_of_term): Don't initialize default_orig_pair,
13844 default_set_foreground and default_set_background on Windows.
13845
13846 2008-07-25 Jason Rumney <jasonr@gnu.org>
13847
13848 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13849 ScriptItemize. Clean up return value checking. Remove unused
13850 variables.
13851 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13852 shaping engine.
13853
13854 * w32font.c (w32font_has_char): Handle the case where we can't
13855 determine the script for a character.
13856
13857 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13858
13859 * term.c (syms_of_term): Initialize default_orig_pair,
13860 default_set_foreground, and default_set_background.
13861
13862 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13863 clash (bug#86).
13864 (getloadavg): Callers changed.
13865
13866 * image.c (svg_load_image): Fix last change.
13867 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13868 image size is valid. Use g_object_unref instead of deprecated
13869 rsvg_handle_free to free rsvg handle.
13870 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13871
13872 2008-07-25 Jason Rumney <jasonr@gnu.org>
13873
13874 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13875 surrogates before looking up glyph index.
13876 (w32font_text_extents): Encode as surrogates if falling back to
13877 functions that need UTF-16 wide chars.
13878
13879 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13880 BMP as surrogates before looking up glyph index.
13881
13882 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13883
13884 * image.c (svg_load_image): Check for failure in return value of
13885 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13886
13887 2008-07-25 Jason Rumney <jasonr@gnu.org>
13888
13889 * w32font.c (Fx_select_font): Reverse sense of second arg.
13890
13891 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13892
13893 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13894 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13895
13896 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13897 (PURESIZE): Use it.
13898
13899 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13900
13901 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13902 * m/alpha.h (TEXT_END):
13903 * m/ibmrs6000.h (TEXT_END):
13904 * m/macppc.h (TEXT_END):
13905 * s/darwin.h (TEXT_END):
13906 * s/msdos.h (TEXT_END): Remove, unused.
13907 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13908 * s/cygwin.h: Remove comment.
13909
13910 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13911 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13912 * m/intel386.h (DOT_GLOBAL_START):
13913 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13914 (USG): Remove, file not used on USG platforms.
13915
13916 * Makefile.in (HAVE_X11): Remove empty #else.
13917
13918 2008-07-24 Andreas Schwab <schwab@suse.de>
13919
13920 * fileio.c (Finsert_file_contents): Properly adjust undo list
13921 after format conversion.
13922
13923 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13924
13925 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13926 (menu_nav_ended): Remove.
13927 (create_menus): Remove signal connect for menu_nav_ended.
13928 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13929 create_menus.
13930 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13931
13932 2008-07-23 Jason Rumney <jasonr@gnu.org>
13933
13934 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13935 with opened font.
13936 (w32font_open): Set font type to gdi.
13937
13938 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13939
13940 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13941
13942 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13943 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13944 defines it.
13945 * unexec.c (ADDR_CORRECT): Define unconditionally.
13946
13947 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13948
13949 * unexec.c: Remove code depending on !COFF and USG, the file is
13950 not used for such systems.
13951
13952 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13953 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13954 (LD_SWITCH_SYSTEM_1): Remove, update users.
13955
13956 * s/darwin.h (DATA_END):
13957 * m/intel386.h (DATA_END):
13958 * m/ibmrs6000.h (DATA_END):
13959 * m/alpha.h (DATA_END): Remove, unused.
13960
13961 * config.in: Regenerate.
13962 * s/ms-w32.h (subprocesses): Define unconditionally.
13963 * s/template.h (subprocesses): Update comment.
13964 * s/vms.h (subprocesses):
13965 * s/usg5-4.h (subprocesses):
13966 * s/hpux10-20.h (subprocesses):
13967 * s/gnu-linux.h (subprocesses):
13968 * s/cygwin.h (subprocesses):
13969 * s/bsd-common.h (subprocesses):
13970 * s/aix4-2.h (subprocesses):
13971 * s/darwin.h (subprocesses): Do not define, defined by default now.
13972
13973 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13974 Remove all references.
13975 (temacs): Add GNUstep specific ld flags.
13976
13977 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13978 similarly to what X does.
13979
13980 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13981
13982 * nsfns.m (x-list-fonts): Remove.
13983 (syms_of_nsfns): Drop the x-list-fonts declaration.
13984 * nsterm.m: Get rid of remaining "//" comments.
13985
13986 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
13987
13988 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13989
13990 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13991 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13992 (Fns_own_selection_internal, Fx_disown_selection_internal)
13993 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13994
13995 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13996 ... */' style of docstrings. Doc fixes.
13997
13998 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13999
14000 * terminfo.c (UP, BC, PC): Undo previous change.
14001
14002 * nsfns.m: Rename ns prefixed functions/variables to the
14003 corresponding x versions. Update references.
14004
14005 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14006
14007 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14008
14009 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14010
14011 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14012 Remove forwarding functions.
14013 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14014 non-static.
14015 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14016 non-static.
14017 (ns_frame_parm_handlers): Use the new names.
14018 (syms_of_nsfns): Move to the end of file.
14019
14020 * nsterm.m (syms_of_nsterm): Move to the end of file.
14021
14022 * dispnew.c (init_display): Remove code for X10.
14023
14024 2008-07-22 Jason Rumney <jasonr@gnu.org>
14025
14026 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14027 bare drive.
14028
14029 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14030
14031 * nsterm.m (syms_of_nsterm): Remove debugging println.
14032
14033 2008-07-22 David Reitter <david.reitter@gmail.com>
14034
14035 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14036 Carbon implementation of the same functionality: execute arbitrary
14037 AppleScript code.
14038
14039 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14040
14041 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14042 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14043 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14044 (Fx_display_mm_height, Fx_display_mm_width)
14045 (Fx_display_backing_store, Fx_display_visual_class)
14046 (Fx_display_save_under, Fx_open_connection)
14047 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14048 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14049 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14050 (Fx_display_pixel_width, Fx_display_pixel_height)
14051 (Fx_display_usable_bounds, Fx_display_planes)
14052 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14053 ... */' style of docstrings.
14054
14055 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14056
14057 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14058 on this platform.
14059 (mips):
14060 * m/iris4d.h (mips): Do not define.
14061 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14062
14063 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14064
14065 * image.c:
14066 * nsfns.m:
14067 * nsselect.m:
14068 * nsterm.h:
14069 * nsterm.m: Rename ns prefixed functions/variables to the
14070 corresponding x versions. Update references.
14071
14072 * m/ibms390x.h (NO_REMAP): Do not undefine.
14073
14074 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14075
14076 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
14077
14078 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14079 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14080 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14081 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14082 (Fns_display_mm_height, Fns_display_mm_width)
14083 (Fns_display_backing_store, Fns_display_visual_class)
14084 (Fns_display_save_under, Fns_open_connection)
14085 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14086 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14087 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14088 (Fns_display_pixel_width, Fns_display_pixel_height)
14089 (Fns_display_usable_bounds, Fx_display_planes)
14090 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14091
14092 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14093
14094 * print.c (print_object): Check print_depth before searching for
14095 circularities.
14096
14097 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
14098
14099 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14100 only sprintf.
14101
14102 2008-07-21 Kenichi Handa <handa@m17n.org>
14103
14104 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14105
14106 2008-07-20 Andreas Schwab <schwab@suse.de>
14107
14108 * syntax.c (find_start_pos, find_start_value)
14109 (find_start_value_byte, find_start_begv, find_defun_start)
14110 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14111
14112 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14113
14114 * s/sol2-3.h: Insert contents of s/sol2.h.
14115 (LD_SWITCH_SYSTEM): Remove redundant definition.
14116 * s/sol2.h: Remove, unused.
14117
14118 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14119
14120 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14121
14122 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14123
14124 * Makefile.in (ns_appdir): Fix typo in find command.
14125
14126 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14127
14128 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14129
14130 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14131 added not supported anymore.
14132
14133 * s/usg5-4-2.h (LIBS_SYSTEM):
14134 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14135
14136 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14137 * s/lynxos.h (GETPGRP_NO_ARG):
14138 * s/hpux10-20.h (NO_SIOCTL_H):
14139 * s/gnu.h (GETPGRP_NO_ARG):
14140 * s/gnu-linux.h (NO_SIOCTL_H):
14141 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14142 * s/cygwin.h (GETPGRP_NO_ARG):
14143 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14144 (C_DEBUG_SWITCH): Remove duplicate definition.
14145
14146 * m/ibms390.h: Remove boilerplate comments.
14147
14148 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14149
14150 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14151 (wait_reading_process_output): Remove code for SunOS, platform not
14152 supported anymore. Use SOLARIS2 instead of sun.
14153
14154 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14155
14156 * font.c (font_open_by_name): Under NS, default lface height to zero.
14157 (font_open_for_lface): Under NS, set size based on frame fontsize.
14158 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14159 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14160
14161 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14162
14163 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14164 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14165 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14166 YES/NO.
14167 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14168 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14169 * Makefile.in (clean): Clear out build destination dir.
14170
14171 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14172
14173 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14174 xterm, xselect.
14175 * lisp.h: Remove declaration of hash_remove.
14176 * nsgui.h: Remove redefinitions of hash_remove.
14177 * fns.c (hash_remove): Rename to hash_remove_from_table.
14178
14179 2008-07-19 Seiji Zenitani <zenitani@mac.com>
14180
14181 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14182 strdup() the family UTF8String before modifying it.
14183
14184 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14185
14186 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14187 NS_FACE_BACKGROUND with 0 instead of nil.
14188 * nsfont.m (nsfont_draw): Same.
14189
14190 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
14191
14192 * nsfns.m (ns_set_background_color): Fix crash.
14193
14194 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
14195
14196 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14197
14198 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14199
14200 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14201
14202 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14203
14204 * gtkutil.c: Include <config.h> instead of "config.h".
14205
14206 * lisp.h (Foverlay_buffer): Add EXFUN.
14207
14208 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14209 child process to complete child_setup. Undo 2005-09-21 change.
14210
14211 * s/darwin.h: Mention setsid after vfork.
14212
14213 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14214
14215 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14216 Depend on macgui.h.
14217
14218 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14219 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14220
14221 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14222 and f19.
14223 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14224
14225 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14226 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14227 Remove enumerators.
14228
14229 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14230 Check if FACE_FROM_ID returns NULL.
14231
14232 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14233
14234 * w32inevt.c (change_frame_size): Remove extern declaration.
14235 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14236 change_frame_size.
14237
14238 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14239
14240 * getloadavg.c: Revert last change (2008-07-15).
14241
14242 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14243
14244 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
14245 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
14246 from configure.
14247
14248 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14249
14250 * s/sol2.h:
14251 * s/sol2-4.h: Reorganize conditionals.
14252
14253 * ecrt0.c: Remove code depending on m68000, not used anymore.
14254
14255 * fns.c (hash_remove): Make static.
14256 * lisp.h (hash_remove): Don't prototype.
14257
14258 * m/ibmrs6000.h:
14259 * m/ibms390x.h:
14260 * m/macppc.h: Remove boilerplate comments.
14261
14262 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14263 Solaris, which does not need them.
14264
14265 * m/vax.h: Remove comments about unsupported systems.
14266
14267 * s/darwin.h: Reorganize ifdefs.
14268
14269 2008-07-17 Andreas Schwab <schwab@suse.de>
14270
14271 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14272
14273 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14274
14275 Use SDATA. Follow coding convention of placing operators at
14276 beginning of next line rather than end of previous line, and placing
14277 spaces around infix operators.
14278
14279 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14280 in case it was defined already.
14281 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14282 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14283 ns_default.
14284 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14285 Lisp_Objects.
14286 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14287 (ns_defined_color, ns_color_to_lisp): Declare.
14288 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14289 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14290 it's accepted even with USE_LISP_UNION_TYPE.
14291 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14292 (update_frame_tool_bar): Remove apparently obsolete tests for
14293 non-integerness of f->tool_bar_lines.
14294 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14295 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14296 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14297 (nsfont_open): Don't confuse NULL for Qnil.
14298 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14299 * menu.h (find_and_call_menu_selection):
14300 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14301 (find_and_return_menu_selection): Always return something.
14302 * frame.h: Include dispextern.h for Display_Info.
14303 (display_x_get_resource): Declare.
14304
14305 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14306
14307 * syntax.c: Remove stdio.h include accidentally introduced in
14308 Emacs.app commit.
14309 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14310 NS_IMPL_COCOA.
14311 * keyboard.c (handle_async_input, input_available_signal): Remove
14312 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14313
14314 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14315
14316 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14317 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14318 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14319 Use SDATA.
14320
14321 * keymap.c: Remove all NS-specific code.
14322 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14323 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14324 where_is_preferred_modifier, return a different value depending on how
14325 preferred is the binding.
14326 (where_is_internal): Adjust accordingly.
14327 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14328 Adjust to new preferred_sequence_p.
14329 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14330 * keyboard.c (parse_solitary_modifier): Not static any more.
14331 * keyboard.h (parse_solitary_modifier): Declare.
14332
14333 2008-07-16 Andreas Schwab <schwab@suse.de>
14334
14335 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14336 of easymenu.
14337
14338 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
14339
14340 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14341 that we don't move off the line.
14342
14343 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14344
14345 * keyboard.c (Qsuper): Remove.
14346 (parse_menu_item): Don't call where_is_internal specially for NS.
14347
14348 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14349
14350 * s/gnu-linux.h: Remove boilerplate comments.
14351
14352 * m/alpha.h (__ELF__): Consolidate conditions.
14353
14354 * m/m68k.h (linux): Use GNU_LINUX instead.
14355 Remove boilerplate comments.
14356
14357 * m/intel386.h: Undo refactoring from previous change.
14358 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14359 too, remove dead code.
14360 (linux): Use GNU_LINUX instead.
14361
14362 2008-07-16 Jason Rumney <jasonr@gnu.org>
14363
14364 * w32gui.h: Repeat 26 June changes lost by last change.
14365
14366 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14367
14368 * systty.h: Remove code for Aix on 386, unsupported platform.
14369
14370 * s/ms-w32.h: Remove boilerplate comments.
14371 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14372
14373 * s/gnu-linux.h (TERM): Remove support.
14374 (HAVE_SYSVIPC): Remove, unused.
14375 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14376 for this system.
14377
14378 * process.c: Remove support for IRIS, unused.
14379 Remove support for TERM, not relevant anymore.
14380
14381 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14382 used with the definition.
14383
14384 * s/aix4-2.h (static): Do not undef.
14385
14386 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14387 only used on Aix.
14388 (HAVE_SYSVIPC): Remove, unused.
14389
14390 * m/hp800.h (CANNOT_DUMP): Do not undef.
14391
14392 * m/alpha.h: Fix comment.
14393
14394 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14395 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14396 used by this configuration.
14397 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14398 * unexec.c: Remove code depending on HPUX and
14399 USG_SHARED_LIBRARIES, not used with this file. Remove code
14400 depending on IRIS, unused. Remove if 0-ed code.
14401
14402 * s/template.h: Remove comments about static.
14403
14404 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14405 Remove if 0-ed code.
14406 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14407 were the same as the default.
14408 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14409 Remove boilerplate comments.
14410 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14411 (HAVE_SYSVIPC): Remove, unused.
14412 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14413
14414 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14415 Remove boilerplate comments.
14416 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14417 Remove boilerplate comments.
14418 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14419 Remove boilerplate comments.
14420 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14421
14422 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14423 USG systems which do not use DATA_SEG_BITS.
14424 Refactor code. Remove boilerplate comments.
14425
14426 * m/ibms390.h:
14427 * m/m68k.h:
14428 * s/bsd-common.h:
14429 * s/cygwin.h:
14430 * s/darwin.h:
14431 * s/freebsd.h:
14432 * s/gnu.h:
14433 * s/msdos.h: Remove boilerplate comments.
14434
14435 * m/iris4d.h: Remove boilerplate comments and code for systems that
14436 do not use this file.
14437 (IRIS_4D): Remove, unused.
14438
14439 * m/mips.h: Remove boilerplate comments and code for systems that
14440 do not use this file.
14441 (SIGN_EXTEND_CHAR):
14442 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14443 * unexmips.c: Remove file, unused.
14444
14445 * editfns.c (Fuser_full_name): Replace the only use of
14446 USER_FULL_NAME with its value.
14447 * config.in: Regenerate.
14448
14449 2008-07-16 David Reitter <david.reitter@gmail.com>
14450
14451 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14452 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14453
14454 2008-07-16 Glenn Morris <rgm@gnu.org>
14455
14456 * emacs.c (system-type): Doc fix.
14457
14458 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14459
14460 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14461 If the cache doesn't work, let's fix it, rather than work around it.
14462
14463 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14464
14465 * Makefile.in: Correct additions for nsfont.o in last commit.
14466 * nsfont.m: New file (forgot last commit).
14467
14468 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14469
14470 * callproc.c (set_initial_environment): Initialize
14471 Vprocess_environment under CANNOT_DUMP (fixes crash when
14472 batch-compiling for bootstrap).
14473
14474 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14475 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14476
14477 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14478 CANNOT_DUMP case -- fix crash due to different init order.
14479
14480 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14481
14482 Changes and additions for NeXTstep windowing system (Cocoa and
14483 GNUstep) support.
14484
14485 * Makefile.in:
14486 * config.in: Support defines and build commands for NS port.
14487 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14488 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14489 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14490 windowing.
14491 (struct face): Add synth_ital field.
14492 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14493 (init_display): Initialize Vinitial_window_system to "ns" when so
14494 compiled.
14495 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14496 (display_arg): Use under NS.
14497 (main): Under NS, allocate autorelease pool and handle command line
14498 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14499 (standard_args): Add NS-specific args.
14500 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14501 * font.c (DEFAULT_ENCODING): New variable.
14502 (font_find_for_lface): Use it.
14503 (syms_of_font): Load syms_of_nsfont under NS.
14504 * font.h: Declare nsfont_driver when compiled under NS.
14505 * fontset.c: When compiling under NS, include nsterm.h.
14506 (fontset_from_font): Autoconstruct fontset under NS.
14507 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14508 symbol, document and use it.
14509 (do_switch_frame): When for_deletion under Cocoa, add
14510 Fraise_frame(Qnil).
14511 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14512 (x_get_arg): Allow "yes" and "no" as boolean values.
14513 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14514 Qright under Cocoa.
14515 (focus-follows-mouse): Default to 0 under NS.
14516 * frame.h (enum output_method): Add output_ns.
14517 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14518 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14519 (FRAME_WINDOW_P): NS-specific definition.
14520 * fringe.c (max_used_fringe_bitmap): Make public.
14521 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14522 (getloadavg): Use NeXT code under descendant OS's.
14523 * image.c (includes and header section, x_create_bitmap_from_data)
14524 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14525 (image_background_transparent, x_clear_image_1)
14526 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14527 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14528 (x_to_xcolors, x_from_xcolors, x_disable_image)
14529 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14530 other GUIs, including XPM support using code originally written for
14531 Carbon GUI.
14532 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14533 using NS API.
14534 (image_ascent): Use font metrics macros instead of direct struct field
14535 access.
14536 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14537 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14538 Also, handle NS as GTK for menu bar purposes.
14539 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14540 toolkit where they differ.
14541 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14542 use cachelist, still needed under NS.
14543 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14544 (struct widget_value): Define it here for menu.c.
14545 * keymap.c (includes): Include modifier internals.
14546 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14547 NS.
14548 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14549 support for preferring sequences using certain modifiers, specified by
14550 the FIRSTONLY argument.
14551 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14552 under NS GNUstep implementation.
14553 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14554 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14555 * menu.c: Include nsterm.h under NS.
14556 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14557 (free_menubar_widget_tree_value, update_submenu_strings)
14558 (find_and_call_menu_selection): Treat NS as X and NT.
14559 (find_and_return_menu_selection): New function, used for popup menus.
14560 * nsgui.h:
14561 * nsterm.h:
14562 * nsfns.m:
14563 * nsimage.m:
14564 * nsmenu.m:
14565 * nsselect.m:
14566 * nsterm.m: New files.
14567 * process.c (wait_reading_process_output): Under NS, call ns_select()
14568 instead of plain select().
14569 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14570 beginning of buffer.
14571 * sysselect.h (init_process): Rename when compiling under Cocoa to
14572 avoid name conflict.
14573 * termhooks.h (display_info): Add ns_display_info to union.
14574 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14575 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14576 COCOA environment.
14577 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14578 unexec() signature. (Note, this will dump, but the resulting file
14579 crashes; unexosx is used instead; keeping around for reference and
14580 possible aid in getting dump working under GNUstep.)
14581 * w32gui.h (button_type, widget_value): Remove definitions (now in
14582 keyboard.h).
14583 * window.c: Include nsterm.h when compiling under NS.
14584 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14585 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14586 other GUI windowing systems.
14587 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14588 GTK.
14589 (x_consider_frame_title): Under NS, set icon type and frame
14590 modified-state indicator; use ns_set_name_as_filename() when using
14591 formatted title.
14592 (update_window_cursor): Make public when compiling under NS.
14593 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14594 (hourglass_atimer, Vhourglass_delay
14595 * xfaces.c (header section, init_frame_faces, clear_font_table)
14596 (defined_color, unload_color, x_face_list_fonts)
14597 (prepare_face_for_display): Add NS support parallel to other GUIs.
14598 Emulate GCs like other non-X GUIs.
14599 (split_font_name): Don't lowercase font name under NS.
14600 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14601 under NS.
14602 * s/darwin.h: Add support for compilation under NS.
14603
14604 2008-07-15 Jason Rumney <jasonr@gnu.org>
14605
14606 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14607 (w32_show_hourglass): Rename from show_hourglass.
14608 (w32_hide_hourglass): Rename from hide_hourglass.
14609 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14610 (Vhourglass_delay): Declare extern.
14611 (hourglass_started): Remove.
14612
14613 * xdisp.c (Vhourglass_delay): Remove static.
14614 (hourglass_started, start_hourglass, cancel_hourglass):
14615 Don't include these versions on WINDOWSNT.
14616
14617 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14618
14619 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14620 variables (formerly in xfns.c).
14621 (show_hourglass, hide_hourglass): New prototypes (same).
14622 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14623 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14624 in xfns.c).
14625 (syms_of_xdisp): Declare/initialize display-hourglass,
14626 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14627 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14628 formerly in xfns.c.
14629 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14630 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14631 (start_hourglass, cancel_hourglass): Remove.
14632 (show_hourglass, hide_hourglass): Remove prototypes and static
14633 modifiers.
14634 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14635 hourglass_atimer, hourglass_shown_p declaration/initialization.
14636 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14637 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14638 (start_hourglass, cancel_hourglass): Remove.
14639 (show_hourglass, hide_hourglass): Remove prototypes and static
14640 modifiers.
14641 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14642 hourglass_atimer, hourglass_shown_p declaration/initialization.
14643 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14644 (DEFAULT_HOURGLASS_DELAY): Remove.
14645 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14646 hourglass_shown_p declaration/initialization.
14647
14648 2008-07-14 Jason Rumney <jasonr@gnu.org>
14649
14650 * w32fns.c (w32_get_arg): Remove wrapper function.
14651 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14652 directly.
14653 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14654
14655 2008-07-14 Kenichi Handa <handa@m17n.org>
14656
14657 * xfont.c (xfont_open): Add workaround for X's bug.
14658
14659 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14660
14661 * fontset.c: Include <stdio.h> unconditionally.
14662
14663 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
14664
14665 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14666 for filtering.
14667
14668 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14669
14670 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14671
14672 * m/macppc.h:
14673 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14674
14675 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
14676 (SPECIAL_EMACS_INT):
14677 * m/ia64.h (SPECIAL_EMACS_INT):
14678 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14679 * s/gnu.h (NLIST_STRUCT):
14680 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14681 * s/gnu-linux.h (LINUX):
14682 * s/msdos.h (HAVE_FACES):
14683 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14684
14685 * systty.h:
14686 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14687 anymore.
14688
14689 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14690
14691 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14692 always defined as int.
14693
14694 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14695 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14696 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14697 * s/freebsd.h (HAVE_WAIT_HEADER):
14698 * s/bsd-common.h (HAVE_UNION_WAIT):
14699 * s/aix4-2.h (HAVE_WAIT_HEADER):
14700 * m/mips.h (HAVE_UNION_WAIT):
14701 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14702 (COFF, static): Do not define, they are undefined later in the file.
14703
14704 * process.c (update_status): Don't use a union.
14705 (status_convert):
14706 (sigchld_handler): Use int instead of WAITTYPE.
14707
14708 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * indent.c (Fvertical_motion): Restore hscroll before moving to
14711 goal column.
14712
14713 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14714
14715 * lisp.h: Remove left over code.
14716
14717 2008-07-11 Andreas Schwab <schwab@suse.de>
14718
14719 * lisp.h: Fix logic in last change.
14720
14721 * menu.h: New file.
14722 * menu.c: Include it.
14723 * xmenu.c: Likewise.
14724 * Makefile.in: Update dependencies.
14725
14726 2008-07-11 Kenichi Handa <handa@m17n.org>
14727
14728 * fontset.c (fontset_from_font): Cancel the previous change.
14729
14730 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14731
14732 * lisp.h:
14733 * w32heap.c:
14734 * emacs.c:
14735 * alloc.c: Replace all references of NO_UNION_TYPE with
14736 USE_LISP_UNION_TYPE.
14737
14738 * m/xtensa.h (NO_UNION_TYPE):
14739 * m/vax.h (NO_UNION_TYPE):
14740 * m/template.h (NO_UNION_TYPE):
14741 * m/sparc.h (NO_UNION_TYPE):
14742 * m/mips.h (NO_UNION_TYPE):
14743 * m/macppc.h (NO_UNION_TYPE):
14744 * m/m68k.h (NO_UNION_TYPE):
14745 * m/iris4d.h (NO_UNION_TYPE):
14746 * m/intel386.h (NO_UNION_TYPE):
14747 * m/ibms390x.h (NO_UNION_TYPE):
14748 * m/ibms390.h (NO_UNION_TYPE):
14749 * m/ibmrs6000.h (NO_UNION_TYPE):
14750 * m/ia64.h (NO_UNION_TYPE):
14751 * m/hp800.h (NO_UNION_TYPE):
14752 * m/arm.h (NO_UNION_TYPE):
14753 * m/amdx86-64.h (NO_UNION_TYPE):
14754 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14755 defining it the same.
14756
14757 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
14758
14759 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14760
14761 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14762
14763 * fileio.c:
14764 * sysdep.c:
14765 * systty.h:
14766 * m/ibmrs6000.h:
14767 * m/iris4d.h:
14768 * s/aix4-2.h:
14769 * s/freebsd.h:
14770 * s/gnu-linux.h:
14771 * s/hpux10-20.h:
14772 * s/hpux11.h:
14773 * s/netbsd.h:
14774 * s/sol2-3.h:
14775 * s/sol2-4.h:
14776 * s/sol2.h:
14777 * s/usg5-4.h:
14778 * s/vms.h: Remove references to unused variables.
14779
14780 2008-07-10 Andreas Schwab <schwab@suse.de>
14781
14782 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14783 pattern before matching the generic family.
14784
14785 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14786
14787 * unexec.c:
14788 * s/vms.h:
14789 * s/usg5-4-2.h:
14790 * s/sol2-5.h:
14791 * s/freebsd.h:
14792 * s/darwin.h: Remove dead code.
14793
14794 * m/template.h:
14795 * m/sparc.h:
14796 * m/mips.h:
14797 * m/m68k.h:
14798 * m/iris4d.h:
14799 * m/intel386.h:
14800 * m/ibms390x.h:
14801 * m/ibms390.h:
14802 * m/ia64.h:
14803 * m/hp800.h:
14804 * m/arm.h:
14805 * m/amdx86-64.h: Remove dead code and references to unused
14806 and compiler defined symbols.
14807
14808 * unexmips.c:
14809 * unexelf.c: Remove references to desupported systems.
14810
14811 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14812
14813 * m/powermac.h: Remove boilerplate comments.
14814 (NO_REMAP): Remove unused definition.
14815
14816 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14817 define them.
14818
14819 2008-07-10 Kenichi Handa <handa@m17n.org>
14820
14821 * xfont.c (xfont_open): Log the reason of failure.
14822
14823 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14824
14825 * fontset.c (fontset_get_font_group):
14826 * font.c (font_check_otf): Specify argument types.
14827
14828 2008-07-09 Kenichi Handa <handa@m17n.org>
14829
14830 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14831 non-ASCII char is found.
14832
14833 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14834 (reorder_font_vector): Change the arg preferred_family to font.
14835 Prefer the spec matching with font.
14836 (fontset_get_font_group): New function.
14837 (fontset_find_font): Change the format of an element of a realized
14838 fontset. Use fontset_get_font_group.
14839 (fontset_font): Try the current fontset, the default fontset, the
14840 fallbacks of the current fontset, and the fallbacks of the default
14841 fontset in this order.
14842 (face_for_char): Delete the shortcut to use the current font.
14843 (fontset_from_font): Don't set fonts for Latin in the fontset.
14844
14845 * font.h (font_make_object, font_match_p): Adjust prototypes.
14846
14847 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14848
14849 * font.c (font_make_object): New arg entity and pixelsize.
14850 (font_check_otf_features, font_check_otf): New functions.
14851 (font_match_p): Check :lang, :script, and :otf properties.
14852
14853 * xfont.c (xfont_open): Adjust it for the change of
14854 font_make_object.
14855 (xfont_text_extents): Fix initial setting of metrics.
14856
14857 * ftfont.c (struct ftfont_info): New member index, delete member
14858 fc_charset_idx. Make the member order compatible with struct
14859 xftfont_info.
14860 (fc_charset_table): Change charset names to registry names.
14861 (ftfont_pattern_entity): Delete the args registry and
14862 fc_charset_idx. Change the value of :font-entity property
14863 to (FONTNAME . INDEX). Always set :registry property to
14864 `iso10646-1'.
14865 (struct ftfont_cache_data): New struct.
14866 (ftfont_lookup_cache): New arg for_face.
14867 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14868 (ftfont_driver): Set the member otf_capability.
14869 (ftfont_get_charset): Adjust it for the change of
14870 fc_charset_table.
14871 (OTF_TAG_SYM): New macro.
14872 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14873 for the change of fc_charset_table.
14874 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14875 ftfont_pattern_entity. Add FC_INDEX to objset.
14876 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14877 and ftfont_pattern_entity.
14878 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14879 font_make_object, struct ftfont_info.
14880 (ftfont_has_char): Use ftfont_get_fc_charset.
14881 (ftfont_otf_features, ftfont_otf_capability): New functions.
14882 (ftfont_shape): Use ftfont_get_otf.
14883 (ftfont_text_extents): Fix initial setting of metrics.
14884
14885 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14886 member order compatible with struct ftfont_info.
14887 (xftfont_open): Add FC_CHARSET to the pattern. Set
14888 xftfont_info->ft_size. Don't unlock the face. Check BDF
14889 properties if appropriate.
14890 (xftfont_close): Unlock the face.
14891 (xftfont_anchor_point, xftfont_shape): Deleted.
14892 (syms_of_xftfont): Don't set members anchor_point and shape of
14893 xftfont_driver.
14894
14895 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14896 font_make_object.
14897
14898 * w32font.c (w32font_open): Adjust it for the change of
14899 font_make_object.
14900 (w32font_open_internal): Don't set properties of font_object here.
14901
14902 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
14903
14904 * macfns.c (x_create_tip_frame):
14905 * w32fns.c (x_create_tip_frame):
14906 * xfns.c (x_create_tip_frame): Pass parameter argument to
14907 face-set-after-frame-default.
14908
14909 * xfaces.c (Finternal_merge_in_global_face): Save merged
14910 attributes for the default face back into the face vector.
14911
14912 2008-07-08 Andreas Schwab <schwab@suse.de>
14913
14914 * fontset.h: Declare fontset_from_font. Don't declare
14915 new_fontset_from_font and fontset_from_font_name.
14916 * xterm.c: Include "fontset.h".
14917 * Makefile.in (xterm.o): Update dependencies.
14918
14919 2008-07-08 Glenn Morris <rgm@gnu.org>
14920
14921 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14922 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14923
14924 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
14925
14926 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14927 (x_set_frame_parameters): Don't bind it.
14928
14929 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
14930
14931 * w32fns.c (map_w32_filename): Declare extern.
14932
14933 2008-07-07 Jason Rumney <jasonr@gnu.org>
14934
14935 * w32term.c (WS_EX_LAYERED): Define if not already.
14936
14937 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
14938
14939 * xfaces.c (set_font_frame_param): Don't try to set the font
14940 parameter if it is still unspecified in the lface.
14941
14942 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14943
14944 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14945 face if it didn't already exist.
14946
14947 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14948
14949 2008-07-05 Andreas Schwab <schwab@suse.de>
14950
14951 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14952
14953 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14954
14955 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14956 word-wrapping.
14957 (IT_DISPLAYING_WHITESPACE): New macro.
14958 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14959 when word-wrapping. Simplify word-wrapping logic. Use correct
14960 pixel positions when saving copies of the iterator.
14961 (display_line): Use proper wrap point if the last character on a
14962 line was preceded by whitespace.
14963
14964 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14965
14966 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14967
14968 2008-07-04 Kenichi Handa <handa@m17n.org>
14969
14970 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14971
14972 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14973
14974 2008-07-02 Jason Rumney <jasonr@gnu.org>
14975
14976 * xfns.c (syms_of_xfns): Only define x-select-font when both
14977 HAVE_FREETYPE and USE_GTK.
14978
14979 * xdisp.c (next_element_from_display_vector): Move assignment out
14980 of if statement.
14981
14982 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14983
14984 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14985
14986 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14987 (syms_of_fileio): Initialize and export them.
14988 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14989
14990 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14991 (Fsystem_move_file_to_trash): New function.
14992 (syms_of_w32fns): Export it to lisp.
14993
14994 2008-07-01 Jason Rumney <jasonr@gnu.org>
14995
14996 * w32font.c (w32font_text_extents): Don't count overhang as part
14997 of width.
14998
14999 2008-06-30 Miles Bader <miles@gnu.org>
15000
15001 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15002 Add `avoid_cursor_p' field.
15003
15004 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15005 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15006 (append_glyph, append_composite_glyph, produce_image_glyph)
15007 (append_stretch_glyph): Initialize avoid_cursor_p.
15008 (get_it_property): Rename from `get_line_height_property'.
15009 (x_produce_glyphs): Use get_it_property.
15010 (handle_line_prefix, push_display_prop): New functions.
15011 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15012 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15013 New variables.
15014 (syms_of_xdisp): Initialize them.
15015
15016 2008-06-30 Kenichi Handa <handa@m17n.org>
15017
15018 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15019 XftDefaultSubstitute (they are called in XftFontMatch).
15020 (xftfont_open): Fix args to ftfont_font_format.
15021
15022 * ftfont.c (fc_charset_table): New member lang.
15023 (ftfont_resolve_generic_family): New arg pattern.
15024 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
15025 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15026 (ftfont_open): Fix args to ftfont_font_format.
15027 (ftfont_font_format): New arg filename.
15028
15029 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
15030
15031 * xfaces.c (Finternal_merge_in_global_face): If default face was
15032 modified, realize it again. Update the font face attribute.
15033
15034 2008-06-29 Jason Rumney <jasonr@gnu.org>
15035
15036 * w32term.c (x_set_frame_alpha): Fix logic.
15037
15038 2008-06-29 Kenichi Handa <handa@m17n.org>
15039
15040 * fontset.c (Finternal_char_font): Return font-object instead of
15041 font-name.
15042
15043 * composite.c (get_composition_id): Fix the width calculation for TAB.
15044
15045 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15046
15047 * indent.c (Fvertical_motion): Properly handle float column arg.
15048
15049 2008-06-28 Jason Rumney <jasonr@gnu.org>
15050
15051 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15052 (pfnSetLayeredWindowAttributes): New function pointer.
15053 (w32_initialize): Initialize it when supported.
15054 (x_set_frame_alpha): New function.
15055
15056 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15057 (w32_frame_parm_handlers): Set alpha handler.
15058
15059 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15060
15061 2008-06-27 Jason Rumney <jasonr@gnu.org>
15062
15063 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15064 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15065 (w32_to_x_charset, x_to_w32_charset)
15066 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15067 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15068 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15069 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15070 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15071 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15072 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15073 (Qw32_charset_unicode): Remove.
15074 (syms_of_w32fns): Update for above changes.
15075
15076 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15077 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15078 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15079 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15080 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15081 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15082 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15083 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15084 (syms_of_w32font): Update for above changes.
15085
15086 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15087
15088 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15089 removed #if.
15090 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15091
15092 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15093 Eli Zaretskii <eliz@gnu.org>
15094
15095 * makefile.w32-in (LOCAL_FLAGS):
15096 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15097
15098 * sysdep.c (_spawnlp, _getpid):
15099 Declare with explicit _cdecl instead of _CRTAPI1.
15100
15101 * editfns.c (Fget_internal_run_time):
15102 Check for WINDOWSNT with #ifdef, not #if.
15103
15104 2008-06-26 Jason Rumney <jasonr@gnu.org>
15105
15106 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15107
15108 * w32term.c (x_draw_glyph_string_foreground)
15109 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15110 Use FONT_HANDLE macro.
15111 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15112
15113 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15114 (uniscribe_encode_char): Use FONT_HANDLE macro.
15115
15116 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15117 (w32font_text_extents): Use precast w32_font.
15118 (w32font_close): Free cached metrics.
15119 (w32font_open_internal): Allocate space for name on stack.
15120
15121 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
15122
15123 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15124
15125 2008-06-26 Jason Rumney <jasonr@gnu.org>
15126
15127 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15128 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15129
15130 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15131
15132 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15133
15134 2008-06-26 Jason Rumney <jasonr@gnu.org>
15135
15136 * w32bdf.c, w32bdf.h: Remove obsolete files.
15137
15138 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15139
15140 * w32gui.h: Don't include w32bdf.h.
15141 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15142 Remove obsolete font support.
15143
15144 * w32font.h (struct w32font_info): Remove compat_w32_font.
15145 Add hfont member.
15146 (FONT_COMPAT): Remove obsolete macro.
15147
15148 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15149 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15150 (w32font_open_internal): Remove compat code. Set new hfont member.
15151 (Fx_select_font): Use new hfont member.
15152
15153 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15154 (uniscribe_encode_char): Use new hfont member.
15155
15156 * w32term.c (x_draw_glyph_string_foreground)
15157 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15158 (x_draw_glyph_string): Use metrics in w32font_info.
15159
15160 2008-06-26 Kenichi Handa <handa@m17n.org>
15161
15162 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15163
15164 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15165
15166 * unexnext.c:
15167 * m/ews4800.h:
15168 * m/hp9000s300.h:
15169 * m/ibm370aix.h:
15170 * m/mips-siemens.h:
15171 * m/ncr386.h:
15172 * m/next.h:
15173 * m/pmax.h:
15174 * m/powerpcle.h:
15175 * m/tandem-s2.h:
15176 * s/386bsd.h:
15177 * s/bsd386.h:
15178 * s/bsd4-1.h:
15179 * s/bsd4-2.h:
15180 * s/bsdos2-1.h:
15181 * s/bsdos2.h:
15182 * s/bsdos3.h:
15183 * s/bsdos4.h:
15184 * s/nextstep.h:
15185 * s/ultrix4-3.h:
15186 * s/usg5-0.h:
15187 * s/usg5-2-2.h:
15188 * s/usg5-2.h:
15189 * s/usg5-4-3.h:
15190 * s/ux4800.h:
15191 * s/uxpds.h:
15192 * s/uxpv.h: Remove support for obsolete systems.
15193 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
15194 Remove, insert contents in s/hpux10-20.h.
15195 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15196 Remove, insert contents in s/aix4-2.h.
15197 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15198 * s/bsd4-3.h: Rename to ...
15199 * s/bsd-common.h: ... this.
15200 * data.c:
15201 * doc.c:
15202 * ecrt0.c:
15203 * emacs.c:
15204 * fileio.c:
15205 * floatfns.c:
15206 * keyboard.c:
15207 * mem-limits.h:
15208 * print.c:
15209 * process.c:
15210 * sysdep.c:
15211 * syssignal.h:
15212 * systty.h:
15213 * syswait.h:
15214 * term.c:
15215 * unexec.c:
15216 * unexelf.c:
15217 * unexhp9k800.c:
15218 * m/hp800.h:
15219 * m/ibmrs6000.h:
15220 * m/mips.h:
15221 * m/vax.h:
15222 * s/darwin.h:
15223 * s/freebsd.h:
15224 * s/gnu.h:
15225 * s/ms-w32.h:
15226 * s/msdos.h:
15227 * s/netbsd.h:
15228 * s/template.h: Remove references to obsolete variables.
15229
15230 * Makefile.in: Add dependencies for all unexec files.
15231 (admindir): Remove unused variable.
15232 (UNEXEC_SRC): Remove references.
15233
15234 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
15235
15236 * xfns.c (x_default_font_parameter): If Xft is available, first
15237 try Monospace-12 for the default font.
15238
15239 2008-06-25 Jason Rumney <jasonr@gnu.org>
15240
15241 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15242
15243 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15244
15245 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15246
15247 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15248
15249 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
15250
15251 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15252 <scroll-conservatively>: Fix typo in docstring.
15253
15254 * xselect.c (Fx_send_client_event): Doc fix.
15255
15256 2008-06-25 Kenichi Handa <handa@m17n.org>
15257
15258 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15259
15260 * font.c (font_parse_fcname): Remove unused variables.
15261 (font_sort_entites): Delete the arg SPEC. Caller changed.
15262 Fix for the case of ! best_only.
15263 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15264
15265 * lisp.h (Fstring_to_unibyte): EXFUN it.
15266
15267 * character.h (str_to_unibyte): Extern it.
15268
15269 * character.c (str_to_unibyte): New function.
15270
15271 * fns.c (Fstring_to_unibyte): New function.
15272 (syms_of_fns): Defsubr it.
15273
15274 2008-06-24 Kenichi Handa <handa@m17n.org>
15275
15276 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15277 DPI too.
15278 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15279
15280 2008-06-24 Andreas Schwab <schwab@suse.de>
15281
15282 * Makefile.in (${lispsource}loaddefs.el): Rename from
15283 ../lisp/loaddefs.el.
15284 (bootstrap-clean): Do what distclean does but don't remove
15285 Makefile.
15286 (distclean): Depend on bootstrap-clean and remove Makefile.
15287
15288 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
15289
15290 * buffer.h (struct buffer): New member word_wrap.
15291
15292 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15293 word-wrap.
15294 (init_buffer_once): Initialize them.
15295
15296 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15297 line_wrap enum possessing three possible values.
15298
15299 * termopts.h: Replace truncate_partial_width_windows with
15300 Vtruncate_partial_width_windows.
15301
15302 * dispnew.c (direct_output_for_insert): Avoid direct output when
15303 inserting a space with word wrap on.
15304
15305 * indent.c (compute_motion): Obey integer values of
15306 truncate-partial-width-windows.
15307
15308 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15309 replacing truncate_partial_width_windows.
15310 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15311 truncate only if the window width is below that integer.
15312 (start_display, resize_mini_window, produce_stretch_glyph)
15313 (display_string, move_it_in_display_line_to): Use line_wrap.
15314 (back_to_previous_visible_line_start, reseat_1): Reset
15315 string_from_display_prop_p.
15316 (display_line): Extend default face to end of line when wrapping.
15317
15318 2008-06-24 Kim F. Storm <storm@cua.dk>
15319
15320 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15321 to wrap continued lines at word boundaries.
15322
15323 2008-06-24 Jason Rumney <jasonr@gnu.org>
15324
15325 * font.c (Ffont_face_attributes): Multiply pixel size before point
15326 conversion to avoid multiplying rounding error.
15327
15328 2008-06-23 Jason Rumney <jasonr@gnu.org>
15329
15330 * w32term.c (x_draw_glyph_string_background)
15331 (x_draw_glyph_string): Remove old bdf font code.
15332
15333 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15334
15335 2008-06-22 Kenichi Handa <handa@m17n.org>
15336
15337 * font.c (font_find_for_lface): Try the adstyle specified in
15338 the property of LFACE_FONT of LFACE (if any).
15339
15340 2008-06-21 Seiji Zenitani <zenitani@mac.com>
15341 Ryo Yoshitake <ryo@shiftmode.net>
15342
15343 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15344
15345 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15346
15347 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15348 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15349 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15350 (witness-emacs): Remove.
15351 (lisp, shortlisp): Move loaddefs.el earlier.
15352 (mostlyclean): Forget about witness-emacs.
15353
15354 2008-06-22 Glenn Morris <rgm@gnu.org>
15355
15356 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15357 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15358
15359 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15360
15361 * Makefile.in (PRECOMP): Remove.
15362 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15363 (witness-emacs): Run `compile-first'.
15364 (.el.elc): Use the new compile-onefile target.
15365
15366 2008-06-21 Kenichi Handa <handa@m17n.org>
15367
15368 * xftfont.c (xftfont_open): Handle QCembolden only when
15369 FC_EMBOLDEN is defined.
15370
15371 2008-06-21 Andreas Schwab <schwab@suse.de>
15372
15373 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15374 (.el.elc): Likewise.
15375
15376 2008-06-21 Miles Bader <miles@gnu.org>
15377
15378 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15379 build dir, not the lisp source dir.
15380
15381 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15382
15383 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15384 (bootstrapclean): Remove.
15385 (.el.elc): New rule.
15386 (PRECOMP): New var.
15387 (../lisp/subdirs.el): Remove.
15388 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15389 (witness-emacs): New target.
15390 (mostlyclean): Remove witness-emacs as well.
15391 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15392 Add witness-emacs dependency.
15393
15394 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
15395
15396 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15397 defined by the font.
15398
15399 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15400
15401 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15402 (bootstrap-clean): New target that keeps TAGS around.
15403 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15404 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15405
15406 2008-06-20 Jason Rumney <jasonr@gnu.org>
15407
15408 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15409 Remove obsolete font code.
15410
15411 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15412 to determine language support.
15413
15414 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15415
15416 * sysdep.c (cfsetspeed): New fun extracted from the code.
15417 (cfmakeraw): Move before first use.
15418
15419 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15420
15421 * sysdep.c (cfmakeraw): Provide fallback implementation.
15422 (serial_configure): Provide fallback implementation of cfsetspeed.
15423
15424 2008-06-20 Kenichi Handa <handa@m17n.org>
15425
15426 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15427 the pattern.
15428
15429 * fontset.c (fontset_from_font): Copy font_spec before changing
15430 the elements.
15431
15432 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15433
15434 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15435
15436 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15437 for explicit `font' parameters.
15438
15439 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15440
15441 2008-06-19 Kenichi Handa <handa@m17n.org>
15442
15443 * frame.c: Include <ctype.h>.
15444 (x_set_font_backend): Allow spacing characters in the X resource
15445 for FontBackend.
15446
15447 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15448
15449 * w32fns.c, xfns.c (Qfont_param): New var.
15450 (syms_of_w32fns): Initialize it.
15451 (x_default_font_parameter): Record explicit `font' into
15452 `font-parameter'.
15453
15454 2008-06-18 Kenichi Handa <handa@m17n.org>
15455
15456 * font.c (font_parse_xlfd): Fix previous change.
15457 (font_parse_fcname): Don't use :fc-unknown-spec.
15458 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15459 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15460 (font_add_log): Prepend the driver name to the resulting fonts.
15461
15462 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15463 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15464 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15465
15466 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15467 (QCembolden): New variables.
15468 (syms_of_xftfont): DEFSYM them.
15469 (xftfont_open): Call XftFontMatch. Don't trust the result of
15470 XftTextExtents8 if the pixel_size is less than 5.
15471
15472 2008-06-18 Andreas Schwab <schwab@suse.de>
15473
15474 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15475 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15476
15477 2008-06-18 Jason Rumney <jasonr@gnu.org>
15478
15479 * w32font.c (w32font_list, w32font_match): Add logging.
15480
15481 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15482
15483 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
15484
15485 * font.c (font_parse_fcname): Store divider characters for
15486 unknown-spec list. For known key symbols, intern using correct
15487 symbol name.
15488
15489 2008-06-17 Kenichi Handa <handa@m17n.org>
15490
15491 * xfaces.c (realize_default_face): If the frame is not on window
15492 system, set the fontset of face to nil.
15493
15494 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15495
15496 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15497
15498 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
15499
15500 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15501 (build_font_name_from_vector): Delete externs.
15502
15503 * xfaces.c (struct font_name): Don't declare.
15504
15505 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15506
15507 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15508
15509 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
15510
15511 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15512
15513 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
15514
15515 * font.c (Ffont_spec): Fix usage in docstring.
15516 (Ffont_face_attributes): Doc fix.
15517
15518 2008-06-16 Andreas Schwab <schwab@suse.de>
15519
15520 * font.c (Ffont_face_attributes): Fix definition.
15521
15522 2008-06-16 Jason Rumney <jasonr@gnu.org>
15523
15524 * font.h (font_style_symbolic_from_value): Remove.
15525
15526 * font.c (font_style_symbolic_from_value): Remove.
15527 (font_style_symbolic): Revert to pre 2008-06-13 version.
15528
15529 * w32font.c (w32_to_fc_weight): New function.
15530 (w32font_full_name, logfont_to_fcname): Use it.
15531
15532 2008-06-16 Kenichi Handa <handa@m17n.org>
15533
15534 * font.c (font_check_object): Delete it.
15535 (font_clear_cache): Check if a font-object is alive.
15536 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15537 font-object to nil.
15538 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15539 (font_at): Don't call font_check_object.
15540 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15541
15542 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15543
15544 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15545
15546 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
15547
15548 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15549
15550 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
15551
15552 * font.c (font_parse_fcname): Only one decimal point.
15553 (font_unparse_fcname): Handle data in family and foundry indices
15554 as symbols, not strings.
15555 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15556
15557 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15558
15559 * font.h (font_unparse_gtkname): Add prototype.
15560
15561 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15562
15563 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15564
15565 2008-06-15 Andreas Schwab <schwab@suse.de>
15566
15567 * font.c (font_update_drivers): Fix crash when no drivers match.
15568
15569 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15570
15571 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15572 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15573
15574 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15575
15576 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15577
15578 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15579
15580 * process.c (Fserial_process_configure, Fprocess_send_eof):
15581 Use EQ to compare Lisp_Objects.
15582
15583 2008-06-13 Jason Rumney <jasonr@gnu.org>
15584
15585 * w32fns.c (Fw32_select_font): Remove old font API function.
15586
15587 * w32font.c (logfont_to_fcname): New function.
15588 (Fx_select_font): New font dialog function compatible with
15589 GTK/fontconfig version.
15590
15591 * font.c (font_style_symbolic_from_value): New function.
15592 (font_style_symbolic): Use it.
15593
15594 * font.h (font_style_symbolic_from_value): Declare new function.
15595
15596 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
15597
15598 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15599 <font-width-table>: Fix typos in docstrings.
15600
15601 2008-06-13 Daniel Engeler <engeler@gmail.com>
15602
15603 These changes add serial port access.
15604 * process.c: Add HAVE_SERIAL.
15605 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15606 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15607 (list_processes_1, select_wrapper, Fstop_process)
15608 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15609 (status_notify): Modify to handle serial processes.
15610 [HAVE_SERIAL] (Fserial_process_configure)
15611 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15612 New functions.
15613 * process.h (struct Lisp_Process): Add `type'.
15614 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15615 New functions.
15616 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15617 serial ports.
15618 (serial_open, serial_configure): New functions.
15619 * w32.h: Add FILE_SERIAL.
15620 (struct _child_process): Add ovl_read, ovl_write.
15621
15622 2008-06-13 Kenichi Handa <handa@m17n.org>
15623
15624 * dispextern.h (enum lface_attribute_index): New member
15625 LFACE_FOUNDRY_INDEX.
15626
15627 * font.c (font_score): Delete arg alternate_families. Check only
15628 weight, slant, width, and size. Ignore the difference of alias
15629 style symbols.
15630 (font_sort_entites): Adjust for the above change. Reflect the
15631 order of font-driver to scores.
15632 (font_list_entities): Don't check alternate_familes here.
15633 (font_clear_prop): Handle foundry.
15634 (font_update_lface): Don't parse "foundry-family" form here.
15635 Handle FONT_FOUNDRY_INDEX.
15636 (font_find_for_lface): Likewise. Handle alternate families here.
15637 If registry is nil, try iso8859-1 and ascii-0.
15638 (font_open_for_lface): Pay attention to size in ENTITY.
15639 (font_open_by_name): Simplify by calling font_load_for_lface.
15640 (free_font_driver_list): Delete it.
15641 (font_update_drivers): Preserve the order of backends.
15642 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15643 of font_score and font_sort_entites.
15644 (font_update_sort_order): Likewise.
15645
15646 * xfaces.c (LFACE_FOUNDRY): New macro.
15647 (check_lface_attrs): Check foundry.
15648 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15649 (merge_face_vectors): Check foundry.
15650 (merge_face_ref): Likewise.
15651 (Finternal_set_lisp_face_attribute): Likewise.
15652 (x_update_menu_appearance): Likewise.
15653 (Finternal_get_lisp_face_attribute): Likewise.
15654 (lface_hash): Likewise.
15655 (lface_same_font_attributes_p): Likewise.
15656 (x_supports_face_attributes_p): Likewise.
15657 (tty_supports_face_attributes_p): Likewise.
15658 (Finternal_set_alternative_font_family_alist): Intern strings.
15659 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15660 (realize_default_face): Set LFACE_FOUNDRY (lface).
15661
15662 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15663 font-driver at first.
15664
15665 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15666
15667 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15668
15669 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15670
15671 2008-06-12 Jim Meyering <meyering@redhat.com>
15672
15673 Make unexec_free handle NULL the same way free does.
15674 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15675
15676 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15677
15678 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15679 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15680 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15681 (WEAK_ALIAS): Simplify.
15682 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15683 when searching a unibyte buffer.
15684
15685 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
15686
15687 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15688
15689 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
15690
15691 * w32font.c: Include ctype.h.
15692
15693 2008-06-11 Jason Rumney <jasonr@gnu.org>
15694
15695 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15696 misreported as space.
15697 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15698 as aliases for registry iso10646-1.
15699
15700 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15701
15702 * buffer.c (clone_per_buffer_values): Skip `name'.
15703
15704 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
15705
15706 * font.c (font_parse_fcname): Fix last change; accept decimal
15707 points in font size.
15708
15709 2008-06-10 Jason Rumney <jasonr@gnu.org>
15710
15711 * w32uniscribe.c (add_opentype_font_name_to_list):
15712 Skip non unicode fonts.
15713
15714 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15715
15716 * xfns.c (Fx_font_dialog): New function.
15717
15718 * gtkutil.c (xg_dialog_response_cb): Rename from
15719 xg_file_response_callback.
15720 (pop_down_dialog): Rename from pop_down_file_dialog.
15721 (xg_get_file_name): Callers changed.
15722 (xg_get_font_name): New function.
15723
15724 * gtkutil.h (xg_get_font_name): Insert prototype.
15725
15726 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15727
15728 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15729 x_underline_minimum_display_offset.
15730 (syms_of_xdisp): Declare it here rather than in xterm.c.
15731 * dispextern.h (underline_minimum_offset): Declare it.
15732 * w32term.c (x_draw_glyph_string): Use it.
15733 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15734 (syms_of_xterm): Don't declare it any more.
15735 (x_draw_glyph_string): Adjust to the new name.
15736
15737 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
15738
15739 * xterm.c (x_underline_minimum_display_offset): New var.
15740 (x_draw_glyph_string): Use it.
15741 (syms_of_xterm): Declare it.
15742
15743 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15744
15745 * font.c (font_parse_fcname): Accept GTK-style font names too.
15746
15747 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15748
15749 * dired.c (file_name_completion): Don't return t if the match is exact
15750 but with different capitalization.
15751 * minibuf.c (Ftry_completion): Simplify.
15752
15753 * window.c (Vwindow_point_insertion_type): New var.
15754 (set_window_buffer): Use it.
15755 (syms_of_window): Init and export it to Lisp.
15756
15757 2008-06-10 Kenichi Handa <handa@m17n.org>
15758
15759 * font.h (font_intern_prop): Prototype adjusted.
15760
15761 * font.c (font_intern_prop): New arg force_symbol.
15762 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15763 Adjust for the change of font_intern_prop.
15764
15765 * ftfont.c (ftfont_pattern_entity):
15766 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15767 (w32_registry):
15768 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15769 the change of font_intern_prop.
15770
15771 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
15772
15773 * w32menu.c (digest_single_submenu): Declare extern.
15774
15775 2008-06-09 Jason Rumney <jasonr@gnu.org>
15776
15777 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15778
15779 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15780 (parse_single_submenu): Remove.
15781 (digest_single_submenu): Remove.
15782 (syms_of_w32menu): Don't initialise variables that have moved
15783 to menu.c.
15784 (set_frame_menubar): Sync with version in xmenu.c.
15785 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15786
15787 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15788 Make static again.
15789
15790 2008-06-09 Jason Rumney <jasonr@gnu.org>
15791
15792 Changes to w32 files related to the move of common menu code
15793 to menu.c on 2008-06-08 by Chong Yidong.
15794
15795 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15796 defs to w32gui.h.
15797 (single_keymap_panes, push_menu_item, push_menu_pane):
15798 Make globally visible.
15799
15800 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15801 (local_free, malloc_widget_value, free_widget_value)
15802 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15803 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15804 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15805 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15806 (menu_items, menu_items_allocated, menu_items_used)
15807 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15808 (init_menu_items, finish_menu_items, discard_menu_items)
15809 (grow_menu_items, push_submenu_start, push_submenu_end)
15810 (push_left_right_boundary, push_menu_pane, push_menu_item)
15811 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15812 (free_menubar_widget_tree_value, parse_single_submenu)
15813 (update_submenu_strings): Remove functions.
15814 (xmalloc_widget_value): Remove and declare extern.
15815
15816 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15817 (OBJ1): Build it.
15818
15819 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15820 (local_heap, local_alloc, local_free, malloc_widget_value)
15821 (free_widget_value): Define here.
15822
15823 2008-06-09 Kenichi Handa <handa@m17n.org>
15824
15825 * font.h (Qascii_0): Extern it.
15826
15827 * font.c (Qascii_0): New variable.
15828 (syms_of_font): DEFSYM it.
15829 (font_open_by_name): If the registry "iso8859-1" fails, try also
15830 "ascii-0".
15831
15832 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15833
15834 2008-06-08 Kenichi Handa <handa@m17n.org>
15835
15836 * .gdbinit (xfont): New command.
15837
15838 2008-06-08 Andreas Schwab <schwab@suse.de>
15839
15840 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15841 * Makefile.in (menu.o): Update dependencies.
15842
15843 * Makefile.in (obj): Always add menu.o.
15844 * emacs.c (main): Always call syms_of_menu.
15845 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15846
15847 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
15848
15849 * Makefile.in: Compile menu.c.
15850
15851 * lisp.h: Declare syms_of_menu.
15852
15853 * emacs.c (main): Call syms_of_menu.
15854
15855 * keyboard.h: Relocate platform-independent menu definitions from
15856 xmenu.c.
15857
15858 * menu.c: New file. Relocate platform-independent menu
15859 definitions from xmenu.c. Suggested by Adrian Robert.
15860
15861 * xmenu.c: Remove platform-independent menu definitions.
15862 (menu_items, menu_items_inuse, menu_items_allocated)
15863 (menu_items_used, menu_items_n_panes)
15864 (menu_items_submenu_depth): Move to keyboard.h.
15865 (init_menu_items, finish_menu_items, unuse_menu_items)
15866 (discard_menu_items, restore_menu_items, save_menu_items)
15867 (grow_menu_items, push_submenu_start, push_submenu_end)
15868 (push_left_right_boundary, push_menu_pane, push_menu_item)
15869 (keymap_panes, single_keymap_panes, single_menu_item)
15870 (list_of_panes, list_of_items, find_and_call_menu_selection)
15871 (xmalloc_widget_value, free_menubar_widget_value_tree)
15872 (parse_single_submenu, digest_single_submenu)
15873 (update_submenu_strings): Move to menu.c.
15874
15875 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15876
15877 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15878
15879 2008-06-06 Miles Bader <miles@gnu.org>
15880
15881 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15882 face, not frame default.
15883
15884 2008-06-05 Martin Rudalics <rudalics@gmx.at>
15885
15886 * window.c (pop_up_windows, pop_up_frames)
15887 (display_buffer_reuse_frames, Vpop_up_frame_function)
15888 (Vdisplay_buffer_function, Veven_window_heights)
15889 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15890 (Vspecial_display_function, Vsame_window_buffer_names)
15891 (Vsame_window_regexps, split_height_threshold)
15892 (Vsplit_window_preferred_function): Move those vars to window.el.
15893 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15894 (Fdisplay_buffer): Move those functions to window.el.
15895 (syms_of_window): Remove corresponding declarations.
15896 (display_buffer): New function.
15897 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15898 * dispnew.c (Flast_nonminibuf_frame): New function.
15899 * buffer.c (Fpop_to_buffer): Move to window.el.
15900
15901 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15902
15903 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15904
15905 2008-06-05 Kenichi Handa <handa@m17n.org>
15906
15907 * coding.c (detect_coding): Fix previous change.
15908 (detect_coding_system): Likewise.
15909
15910 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15911
15912 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15913
15914 * keymap.c (Vminibuffer_local_filename_must_match_map):
15915 Rename from Vminibuffer_local_must_match_filename_map.
15916 (syms_of_keymap):
15917 * minibuf.c (Fcompleting_read): Adjust accordingly.
15918 * commands.h: Rename declaration as well.
15919
15920 2008-06-05 Kenichi Handa <handa@m17n.org>
15921
15922 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15923 family name.
15924 (Ffont_put): Likewise.
15925
15926 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15927 current font-spec.
15928
15929 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15930 is unspecified.
15931
15932 * xfaces.c (realize_x_face): If the font-related face attributes
15933 are the same as those of default face, realize a new fontset from
15934 default->fontset.
15935 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15936
15937 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15938
15939 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15940 (move_it_in_display_line): New wrapper.
15941
15942 * window.c (window_scroll_pixel_based_preserve_x)
15943 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15944 (window_scroll_pixel_based, window_scroll_line_based):
15945 Use them to preserve column positions.
15946 (syms_of_window): Initialize them.
15947
15948 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15949 (HPOS . VPOS) pair.
15950
15951 * dispextern.h (move_it_in_display_line): Declare.
15952
15953 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
15954
15955 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15956 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15957 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15958
15959 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
15960
15961 * window.c (Fset_window_parameter): Doc fix.
15962 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15963
15964 2008-06-04 Joakim Verona <joakim@verona.se>
15965
15966 * window.h (struct window): Add new member window_parameters.
15967
15968 * window.c (Fwindow_parameters, Fwindow_parameter)
15969 (Fset_window_parameter): New defuns.
15970 (syms_of_window): Defsubr the new defuns.
15971 (make_window): Initialize window_parameters to nil.
15972
15973 2008-06-04 John Paul Wallington <jpw@pobox.com>
15974
15975 * eval.c (Fdefmacro): Doc fix.
15976
15977 2008-06-04 Kenichi Handa <handa@m17n.org>
15978
15979 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15980 Be sure to call setup_coding_system when we find a proper coding system.
15981 (detect_coding_system): Fix handling of coding->head_ascii.
15982
15983 2008-06-03 Andreas Schwab <schwab@suse.de>
15984
15985 * font.c (font_prop_validate_spacing): Fix last change.
15986
15987 2008-06-03 Kenichi Handa <handa@m17n.org>
15988
15989 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15990 (font_parse_fcname): Fix handling of unknown key.
15991
15992 * xfont.c (xfont_list): Try an alias.
15993
15994 * charset.c (char_charset): Return NULL if the arg charset_list is
15995 specified and C doesn't belong to any of them.
15996
15997 2008-06-02 Chip Coldwell <coldwell@redhat.com>
15998
15999 * font.c (font_pixel_size): Don't take cdr of an integer.
16000
16001 2008-06-02 Jim Meyering <meyering@redhat.com>
16002
16003 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16004 * alloc.c (xfree): Return right away for a NULL arg.
16005 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16006 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16007 * mac.c (create_apple_event_from_event_ref): Likewise.
16008 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16009 Likewise.
16010 * doprnt.c (doprnt1): Likewise.
16011 * frame.c (frame): Likewise.
16012 * keyboard.c (wipe_kboard): Likewise.
16013 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16014 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16015 * term.c (tty_default_color_capabilities, maybe_fatal)
16016 (delete_tty): Likewise.
16017 * w16select.c (string): Likewise.
16018 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16019 * w32bdf.c (w32_free_bdf_font): Likewise.
16020 * w32fns.c (w32_unload_font): Likewise.
16021 * w32font.c (w32font_close): Likewise.
16022 * window.c (size_window): Likewise.
16023 * xselect.c (receive_incremental_selection): Likewise.
16024 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16025 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16026 * w32.c (stat): Likewise.
16027
16028 Remove useless if-before-free tests.
16029 * editfns.c (Fset_time_zone_rule): Likewise.
16030 * lread.c (nosuffix): Likewise.
16031 * ralloc.c (get_bloc): Likewise.
16032 * regex.c (reg_free): Likewise.
16033 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16034 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16035 * xsmfns.c (smc_save_yourself_CB): Likewise.
16036
16037 2008-06-02 Kenichi Handa <handa@m17n.org>
16038
16039 * font.c (font_find_for_lface): Handle float font size.
16040 (font_open_for_lface): Likewise.
16041
16042 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16043 comparing the properties.
16044
16045 2008-06-01 Jason Rumney <jasonr@gnu.org>
16046
16047 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16048 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16049 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16050 Don't add empty script list.
16051 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16052
16053 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16054
16055 * Makefile.in (dot, dotdot): Remove, update users.
16056 ".." has been used elsewhere in the file for a long time.
16057 (LIBXT_STATIC): Remove conditional based on unused variable.
16058
16059 2008-06-01 Miles Bader <miles@gnu.org>
16060
16061 * xfaces.c (Vface_remapping_alist): New variable.
16062 (syms_of_xfaces): Initialize it.
16063 (enum named_merge_point_kind): New type.
16064 (struct named_merge_point): Add `named_merge_point_kind' field.
16065 (push_named_merge_point): Make cycle detection respect different
16066 named-merge-point kinds.
16067 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16068 Remove face-name alias resolution.
16069 (lface_from_face_name): New definition using
16070 `lface_from_face_name_no_resolve'.
16071 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16072 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16073 (get_lface_attributes): New definition that layers face-remapping on
16074 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16075 (lookup_basic_face): New function.
16076 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16077 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16078 `get_lface_attributes'.
16079 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16080 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16081 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16082
16083 * xdisp.c (init_iterator): Pass base_face_id through
16084 `lookup_basic_face' when we actually use it as a face-id.
16085 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16086 DEFAULT_FACE_ID.
16087
16088 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16089 lookup the initial face-id.
16090
16091 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16092
16093 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
16094
16095 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16096 (Fremove_text_properties): Fix typos in docstrings.
16097
16098 2008-05-31 Kenichi Handa <handa@m17n.org>
16099
16100 * font.c (font_list_entities): Fix the car part of data to be
16101 stored in the cache.
16102
16103 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16104
16105 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16106
16107 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16108 Add a `test' argument so another predicate than `equal' can be used.
16109 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16110 (map_char_table): Remove unused vars `c' and `i'.
16111 * lisp.h (Foptimize_char_table): Adjust declaration.
16112 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16113
16114 2008-05-30 Kenichi Handa <handa@m17n.org>
16115
16116 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16117 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16118 defined.
16119
16120 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16121
16122 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16123 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16124 frame-local settings for the same variable.
16125
16126 2008-05-30 Kenichi Handa <handa@m17n.org>
16127
16128 * fontset.c (Ffont_info): Move to font.c.
16129 (syms_of_fontset): Delete defsubr of Sfont_info.
16130
16131 * font.c (font_style_to_value, font_score): Delete casting of the
16132 args to xstcasecmp.
16133 (register_font_driver): Increment num_font_drivers only when
16134 registering the driver globally.
16135 (Ffont_info): Move from fontset.c. Handle a font object too.
16136 (syms_of_font): Defsubr Sfont_info.
16137
16138 2008-05-29 Kenichi Handa <handa@m17n.org>
16139
16140 * coding.h (enum define_coding_utf8_arg_index): New enum.
16141 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16142 coding_attr_utf_bom.
16143 (enum utf_bom_type): Rename from utf_16_bom_type.
16144 (struct utf_16_spec): Adjust for the above change.
16145 (struct coding_system): Add utf_8_bom in `spec' union.
16146
16147 * coding.c (CODING_UTF_8_BOM): New macro.
16148 (enum coding_category): Delete coding_category_utf_8, add
16149 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16150 coding_category_utf_8_sig.
16151 (CATEGORY_MASK_UTF_8): Delete it.
16152 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16153 (CATEGORY_MASK_UTF_8_SIG): New macros.
16154 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16155 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16156 CATEGORY_MASK_UTF_8_SIG.
16157 (CATEGORY_MASK_UTF_8): New macro.
16158 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16159 (detect_coding_utf_8): Check BOM.
16160 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16161 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16162 (encode_coding_utf_16): Likewise.
16163 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16164 (detect_coding, detect_coding_system): Handle utf-8-auto.
16165 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16166 (syms_of_coding): Fix setting up of Vcoding_category_table.
16167
16168 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16169
16170 * process.c (Faccept_process_output): If `millisec' is non-nil,
16171 `seconds' default to 0.
16172 (wait_reading_process_output): Also return non-nil if we read output
16173 from a non-running process.
16174
16175 2008-05-29 Jason Rumney <jasonr@gnu.org>
16176
16177 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16178 `raster' specified.
16179 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16180 in the uniscribe backend, but disallow any font that has no
16181 unicode subrange support.
16182
16183 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
16184
16185 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16186 Fix typos in docstrings.
16187
16188 2008-05-29 Kenichi Handa <handa@m17n.org>
16189
16190 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16191 (Fx_family_fonts): Set frame correctly.
16192
16193 2008-05-28 Jason Rumney <jasonr@gnu.org>
16194
16195 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16196
16197 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16198
16199 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16200 calling build_annotations.
16201
16202 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
16203
16204 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16205 (Fencode_coding_string):
16206 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16207 <latin-extra-code-table>: Fix typos in docstrings.
16208 (syms_of_coding) <coding-system-alist>: Doc fix.
16209 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16210
16211 2008-05-28 Kenichi Handa <handa@m17n.org>
16212
16213 * fontset.c (Ffont_info): Don't call font_close_object.
16214
16215 * font.c (font_parse_family_registry): Use Ffont_put to validate
16216 foundry and family.
16217 (font_delete_unmatched): Don't check spacing.
16218 (font_list_entities): Add spacing to the spec to list fonts.
16219
16220 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16221 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16222
16223 * coding.c (encode_coding_raw_text): Fix previous change.
16224 (encode_coding_object): When the dst_object is a buffer and is
16225 different from src_object, move gap to PT.
16226
16227 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16228
16229 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16230
16231 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16232
16233 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16234 all branches. Compute it differently.
16235
16236 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16237
16238 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
16239
16240 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16241 into "else if () ... else ...".
16242
16243 2008-05-27 Jason Rumney <jasonr@gnu.org>
16244
16245 * w32font.c (w32font_open_internal): Determine if glyph indices
16246 are likely to work here.
16247
16248 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16249
16250 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16251 draw overlap glyphs with appropriate highlighting.
16252
16253 2008-05-27 Kenichi Handa <handa@m17n.org>
16254
16255 * xfont.c (xfont_open): Fix calculation of font->average_width.
16256
16257 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16258
16259 * casefiddle.c (casify_object): Try to guess better whether the
16260 argument is a byte or a char.
16261
16262 2008-05-26 Andreas Schwab <schwab@suse.de>
16263
16264 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16265 Always send multiples of format size.
16266
16267 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16268
16269 2008-05-26 Jason Rumney <jasonr@gnu.org>
16270
16271 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16272 (compute_metrics): Don't set failure if we just cleared the cache.
16273 (w32_weight_table): Remove unused variable.
16274 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16275 backwards compatibility.
16276
16277 2008-05-25 Kenichi Handa <handa@m17n.org>
16278
16279 * w32term.c (x_draw_glyph_string):
16280 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16281
16282 * xfaces.c: Delete unused function prototypes.
16283 (xstrlwr, font_frame): Delete them.
16284 (clear_face_cache): Delete unused variable.
16285
16286 * xftfont.c (xftfont_open): Delete unused variable.
16287 If underline_thickness is not 1, adjust underline_position.
16288
16289 * ftxfont.c (ftxfont_open): Delete unused variable.
16290
16291 * fontset.c (face_for_char): Optimize for the case of no charset
16292 property.
16293
16294 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16295 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16296 (otf_open, font_otf_capability, generate_otf_features)
16297 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16298 Comment out by surrounding "#if 0" and "#endif" for the moment.
16299 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16300 (syms_of_font): Codes for accessing above commented out.
16301
16302 2008-05-24 Eli Zaretskii <eliz@gnu.org>
16303
16304 * w32proc.c: Include dispextern.h.
16305
16306 * w32.c: Include dispextern.h.
16307
16308 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
16309
16310 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16311 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16312 Fix typos in docstrings.
16313
16314 2008-05-23 Jason Rumney <jasonr@gnu.org>
16315
16316 * xsmfns.c: Remove includes that are already included by config.h.
16317
16318 2008-05-23 Kenichi Handa <handa@m17n.org>
16319
16320 * charset.c (Qemacs, charset_emacs): New variables.
16321 (char_charset): Fix for non-Unicode characters.
16322 (syms_of_charset): Define charset_emacs.
16323
16324 * w32term.c (x_draw_glyph_string): Be sure to update
16325 s->underline_thickness and s->underline_position. Be sure to draw
16326 underline within the current line area.
16327
16328 * xterm.c (x_draw_glyph_string): Be sure to update
16329 s->underline_thickness and s->underline_position. Be sure to draw
16330 underline within the current line area.
16331
16332 * fontset.c: Delete unused variables and add casting for char *
16333 throughout the file.
16334 (fontset_font): Try the fallback fonts of the current fontset
16335 before consulting the default fontset.
16336
16337 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16338
16339 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16340
16341 2008-05-22 Jason Rumney <jasonr@gnu.org>
16342
16343 * font.c: Don't include strings.h.
16344
16345 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16346
16347 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16348 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16349 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16350 to call xstrcasecmp.
16351
16352 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16353
16354 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16355
16356 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16357
16358 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16359
16360 2008-05-22 Kenichi Handa <handa@m17n.org>
16361
16362 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16363
16364 * font.c (font_prop_validate_style): Adjust for the format
16365 change of font_style_table.
16366
16367 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16368 two args.
16369
16370 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16371 two args.
16372
16373 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16374
16375 * minibuf.c (keys_of_minibuf): Delete.
16376 * lisp.h (keys_of_minibuf): Delete.
16377 * emacs.c (main): Don't call keys_of_minibuf.
16378
16379 2008-05-22 Kenichi Handa <handa@m17n.org>
16380
16381 * ftfont.c (ftfont_resolve_generic_family): Rename from
16382 ftfont_list_generic_family. Return a single family for each
16383 generic family.
16384 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16385 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16386 Call font_add_log.
16387 (ftfont_match): Call font_add_log.
16388
16389 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16390 (FONT_DEBUG): Define it.
16391 (font_add_log): Extern it.
16392 (font_assert): Rename from xassert.
16393
16394 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16395 (xfont_list_family): Call font_add_log.
16396 (xfont_match): Likewise.
16397 (memq_no_quit): Delete.
16398
16399 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16400 call of Ffont_xlfd_name.
16401
16402 * xfaces.c (struct table_entry, slant_table, weight_table)
16403 (swidth_table): Move to font.c.
16404
16405 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16406 xassert are changed to font_assert. Delete many unused variables.
16407 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16408 New variables.
16409 (struct table_entry): Move from xfaces.c and modified.
16410 (weight_table, slant_table, width_table): Move from xfaces.c and
16411 contents adjusted for the change of struct table_entry.
16412 (font_style_to_value, font_style_symbolic): Adjust for the
16413 format change of font_style_table.
16414 (font_parse_family_registry): Don't overwrite existing foundry and
16415 family of font_spec.
16416 (font_score): Fix calculation of diff for sizes.
16417 (font_sort_entites): Call font_add_log.
16418 (font_delete_unmatched): Return a newly created list.
16419 (font_list_entities): Fix previous change. Call font_add_log.
16420 (font_matching_entity, font_open_entity, font_close_entity):
16421 Call font_add_log.
16422 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16423 (Finternal_set_font_style_table): Delete.
16424 (BUILD_STYLE_TABLE): New macro.
16425 (build_style_table): New function.
16426 (Vfont_log, font_log_env_checked): New variables.
16427 (font_add_log): New function.
16428 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16429 Declare Lisp variables "font-weight-table", "font-slant-table",
16430 "font-width-table", and "font-log". Initialize font_style_table.
16431
16432 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16433
16434 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16435
16436 2008-05-21 Seiji Zenitani <zenitani@mac.com>
16437 Ryo Yoshitake <ryo@shiftmode.net>
16438
16439 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16440 (Vframe_alpha_lower_limit): New variable.
16441 (x_set_alpha): New function.
16442
16443 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16444
16445 * xfns.c (x-create-frame, Qalpha):
16446 Initialize the frame parameter `alpha'.
16447 * xterm.c (OPAQUE, OPACITY): New.
16448 (x_set_frame_alpha): New function.
16449 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16450
16451 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16452 * w32fns.c (w32_frame_parm_handlers): Likewise.
16453
16454 2008-05-20 Jason Rumney <jasonr@gnu.org>
16455
16456 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16457 truetype fonts to opentype list.
16458
16459 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
16460
16461 * fontset.c (Ffontset_info): Doc fix.
16462 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16463 <ignore-relative-composition>: Fix typos in docstrings.
16464
16465 * font.c (syms-of-font) <font-encoding-alist>:
16466 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16467 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16468 (Ffont_otf_alternates): Doc fixes.
16469
16470 2008-05-20 Kenichi Handa <handa@m17n.org>
16471
16472 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16473 font.h through out the file.
16474 (FONT_DRIVERS): Rename from FONTOBJ.
16475 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16476 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16477
16478 * emacs.c (main): Call syms_of_font unconditionally.
16479
16480 * font.h (find_font_encoding): Extern it.
16481
16482 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16483 fontset.c.
16484 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
16485 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16486 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16487 only when HAVE_WINDOW_SYSTEM is defined.
16488 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16489 when HAVE_WINDOW_SYSTEM is defined.
16490
16491 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16492 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16493
16494 * xfaces.c: Include font.h unconditionally.
16495 (merge_face_ref, merge_face_vectors)
16496 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16497
16498 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16499
16500 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16501 indirect_variable.
16502 * eval.c (lisp_indirect_variable): New fun.
16503 (Fuser_variable_p): Use it.
16504
16505 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16506
16507 * lisp.h (indirect_variable):
16508 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16509 Use Lisp_Symbol pointers rather than Lisp_Object.
16510 Adjust callers.
16511 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16512 To this end, change calling-convention.
16513
16514 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16515 if some non-hidden buffers are selected by string&pred.
16516
16517 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
16518
16519 * process.c (wait_reading_process_output): Always check status
16520 when in batch mode.
16521
16522 2008-05-19 Kenichi Handa <handa@m17n.org>
16523
16524 * font.c (font_list_entities): Fix handling of cache.
16525 (font_matching_entity): Likewise.
16526
16527 * ftfont.c (cs_iso8859_1): Delete.
16528 (ft_face_cache): New variable.
16529 (struct ftfont_info): New member fc_charset_idx.
16530 (ftfont_build_basic_charsets): Delete.
16531 (fc_charset_table): New variable.
16532 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16533 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16534 Callers changed.
16535 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16536 (ftfont_spec_pattern): New argument fc_charset_idx.
16537 Check registry more rigidly. Change callers.
16538 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16539 change of :font-entity property of the font.
16540
16541 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16542 property of the font.
16543
16544 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
16545
16546 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16547 (Funencodable_char_position, Fcheck_coding_systems_region)
16548 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16549 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16550 (Ffind_operation_coding_system, Fset_coding_system_priority)
16551 (Fcoding_system_eol_type): Doc fixes.
16552
16553 2008-05-17 Glenn Morris <rgm@gnu.org>
16554
16555 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16556
16557 2008-05-16 Eli Zaretskii <eliz@gnu.org>
16558
16559 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16560 and st_gid.
16561
16562 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16563 HAVE_WINDOW_SYSTEM is not defined.
16564
16565 * xfaces.c (merge_face_ref, merge_face_vectors)
16566 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16567 HAVE_WINDOW_SYSTEM is defined.
16568 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16569
16570 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16571
16572 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16573
16574 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16575
16576 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16577
16578 2008-05-15 Kenichi Handa <handa@m17n.org>
16579
16580 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16581 preference.
16582
16583 2008-05-15 Glenn Morris <rgm@gnu.org>
16584
16585 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16586
16587 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
16588
16589 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16590 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16591
16592 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16593
16594 2008-05-15 Kenichi Handa <handa@m17n.org>
16595
16596 * ftfont.c (ftfont_list): Downcase family name to check generic
16597 families.
16598
16599 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16600 font-spec for QCfont value.
16601
16602 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16603 buffer. Check the return value of it.
16604
16605 2008-05-14 Jason Rumney <jasonr@gnu.org>
16606
16607 * w32term.c (w32_get_glyph_overhangs): Remove.
16608 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16609
16610 2008-05-14 Kenichi Handa <handa@m17n.org>
16611
16612 * font.c (font_prop_validate): Make nil a valid value.
16613 (font_clear_cache): Check if the cached vector of entities is nil
16614 or not.
16615
16616 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16617
16618 * emacs.c (main_thread): Conditionalize on
16619 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16620 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16621
16622 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16623 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16624 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16625
16626 2008-05-14 Kenichi Handa <handa@m17n.org>
16627
16628 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16629 has no corresponding coding system.
16630
16631 2008-05-14 Jason Rumney <jasonr@gnu.org>
16632
16633 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16634
16635 * w32font.h (w32font_open_internal): Update declaration.
16636
16637 * w32font.c (w32font_open_internal): Change last argument from
16638 w32font_info struct to font object. Fill in font object from
16639 font_entity. Get Outline metrics if possible. Use them to
16640 calculate underline position and thickness. Use xlfd name as name
16641 property. Don't set codepage.
16642 (w32font_open): Pass font_object to w32font_open_internal. Don't
16643 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16644 (w32font_draw): Use s->font.
16645 (clear_cached_metrics): Don't clear non-existent blocks.
16646
16647 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16648 font was not found.
16649 (x_draw_glyph_string): Use underline position and thickness from font.
16650
16651 * w32uniscribe.c (uniscribe_open): Pass font_object to
16652 w32font_open_internal.
16653
16654 2008-05-14 Kenichi Handa <handa@m17n.org>
16655
16656 These changes are to delete all legacy font-handling codes, and
16657 make Emacs use only font-backends.
16658
16659 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16660 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16661
16662 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16663
16664 * charset.h (Vcharset_non_preferred_head)
16665 (Vcurrent_iso639_language): Extern them.
16666
16667 * charset.c (Vcharset_non_preferred_head): New variable.
16668 (Vcurrent_iso639_language): New variable.
16669 (syms_of_charset): Declare it as a Lisp variable.
16670 (char_charset): Don't check non preferred charsets. As a last
16671 resort, return charset_unicode.
16672 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16673
16674 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16675 conditionals. Don't check enable_font_backend. Delete all codes
16676 used only when USE_FONT_BACKEND is not defined.
16677
16678 * dispextern.h (struct glyph_string): Change type of `font' to
16679 `struct font *'.
16680 (struct glyph_string): New member underline_position and
16681 underline_thickness.
16682 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16683 (struct face): Change type of `font' to `struct font *'. Remove
16684 members `font_name', `font_info_id'.
16685 (per_char_metric, encode_char): Delete externs.
16686 (calc_pixel_width_or_height): Adjust the prototype.
16687
16688 * emacs.c (enable_font_backend): Delete extern.
16689 (main): Don't set enable_font_backend. Don't check the command
16690 line argument "-disable-font-backend".
16691
16692 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16693 (enum font_property_index): New members FONT_DPI_INDEX,
16694 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16695 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16696 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16697 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16698 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16699 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16700 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16701 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16702 (struct font_spec, struct font_entity): New structs.
16703 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16704 (struct font): Many members from old "struct font_info" moved to
16705 here. Members font and entity deleted.
16706 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16707 the new font-related objects.
16708 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16709 (CHECK_FONT_GET_OBJECT): Likewise.
16710 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16711 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16712 (struct font_driver): New members case_sensitive anc check. Type
16713 of the member list and open changed.
16714 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16715 (font_symbolic_width, font_find_object, font_get_spec)
16716 (font_set_lface_from_name): Delete extern.
16717 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16718
16719 * font.c: Include <strings.h>.
16720 (enable_font_backend): Delete it.
16721 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16722 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16723 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16724 (null_string): Delete it.
16725 (null_vector): Make it static.
16726 (font_family_alist): Delete it.
16727 (Qnormal): Extern it.
16728 (QCextra, QClanguage): Delete it.
16729 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16730 (font_make_spec, font_make_entity, font_make_object)
16731 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16732 the string. Callers changed.
16733 (font_pixel_size): Adjusted for the format change of font-related
16734 objects.
16735 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16736 (font_style_to_value, font_style_symbolic): New function.
16737 (build_font_family_alist): Delete it.
16738 (font_registry_charsets): Use Fassoc_string instead of
16739 assq_no_quit.
16740 (font_prop_validate_symbol): Don't return null_string.
16741 (font_prop_validate_style): Adjusted for the change of
16742 style-related values in a font vector.
16743 (font_property_table): Delete entries for QClanguage and
16744 QCantialias, add entries for QCavgwidth.
16745 (get_font_prop_index): Delete the 2nd argument FROM.
16746 (font_prop_validate): Arguments changed.
16747 (font_put_extra): Adjusted for the change of font-related objects.
16748 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16749 (font_parse_fcname, font_unparse_fcname)
16750 (font_prepare_composition): Likewise.
16751 (font_parse_family_registry): Renamed from font_merge_old_spec.
16752 (otf_open): Delete the 1st arg entity.
16753 (font_otf_capability): Adjusted for the above change.
16754 (font_score): New arg alternate_families. Adjusted for the change
16755 of font-related objects.
16756 (font_sort_entites): New arg best_only.
16757 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16758 Delete them.
16759 (font_match_p): Check alternate families.
16760 (font_find_object): Delete it.
16761 (font_check_object): New function.
16762 (font_clear_cache): Adjusted for the change of font-related objects.
16763 (font_delete_unmatched): New arg.
16764 (font_list_entities): Call font_driver->list with a spec that
16765 doesn't specify style-related properties.
16766 (font_matching_entity): Arguments changed. Caller changed.
16767 (font_open_entity): Adjusted for the change of font-related objects.
16768 (font_close_object, font_has_char, font_encode_char)
16769 (font_get_name, font_get_spec): Likewise.
16770 (font_spec_from_name, font_clear_prop, font_update_lface):
16771 New functions.
16772 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16773 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16774 (font_at): Adjusted for the change of font-related objects.
16775 (font_range): New function.
16776 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16777 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16778 (Fcopy_font_spec, Fmerge_font_spec): New function.
16779 (Ffont_family_list): Renamed from list-families.
16780 (Finternal_set_font_style_table): Arguments changed.
16781 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16782 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16783 change of font-related objects.
16784 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16785
16786 * fontset.h (struct font_info): Delete it. Most members go to
16787 struct font.
16788 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16789 (enum FONT_SPEC_INDEX): Delete it.
16790 (font_info, list_fonts_func, load_font_func, query_font_func)
16791 (set_frame_fontset_func, find_ccl_program_func)
16792 (get_font_repertory_func, new_fontset_from_font_name): Delete
16793 externs.
16794 (fontset_from_font_name): Extern it.
16795 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16796 (FONT_INFO_FROM_FACE): Deleted.
16797 (face_for_font): Adjust prototype.
16798
16799 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16800 conditionals. Don't check enable_font_backend. Delete all codes
16801 used only when USE_FONT_BACKEND is not defined.
16802 (get_font_info_func, list_font_func, load_font_func)
16803 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16804 (get_font_repertory_func): Delete them.
16805 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16806 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16807 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16808 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16809 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16810 (fontset_compare_rfontdef): New function.
16811 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16812 rfont-defs by qsort. Adjusted for the change of font-group vector.
16813 (load_font_get_repertory): Deleted.
16814 (fontset_find_font): Use new macros to ref/set elements of
16815 font-def and rfont-def.
16816 (fontset_font): Fix the timing of remembering that no font for C.
16817 (free_face_fontset): Do nothing if the face has no fontset.
16818 (face_suitable_for_char_p): Use new macros to ref/set elements of
16819 rfont-def.
16820 (face_for_char): Likewise. Call face_for_char with font_object.
16821 (fs_load_font): Delete. Delete #pragma surrounding it.
16822 (fs_query_fontset): Use strcasecmp instead of strcmp.
16823 (generate_ascii_font_name): Adjusted for the format change of
16824 font-spec.
16825 (Fset_fontset_font): Likewise. Use new macros to set elements of
16826 font-def.
16827 (Fnew_fontset): Use font_unparse_xlfd to generate
16828 FONTSET_ASCII (fontset).
16829 (new_fontset_from_font_name): Deleted.
16830 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16831 a fontset is already created for the font. FIx updating of
16832 Vfontset_alias_alist.
16833 (fontset_ascii_font): Deleted.
16834 (Ffont_info): Adjusted for the format change of font-spec.
16835 (Finternal_char_font): Likewise.
16836 (Ffontset_info): Likewise.
16837 (syms_of_fontset): Don't check load_font_func.
16838
16839 * fns.c (internal_equal): Handle PREV_FONT.
16840
16841 * frame.h: Delete USE_FONT_BACKEND conditional.
16842
16843 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16844 conditionals. Don't check enable_font_backend. Delete all codes
16845 used only when USE_FONT_BACKEND is not defined.
16846 (x_set_font): Call x_new_font, not x_new_fontset2.
16847 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16848 already set for the frame.
16849
16850 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16851 a font-entity by font_make_entity. Use font_intern_prop instead
16852 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16853 font property. If a font is scalable, set avgwidth property to 0.
16854 Set font-entity property by font_put_extra.
16855 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16856 (ffont_driver): Adjusted for the change of struct font_driver.
16857 (ftfont_spec_pattern): New function.
16858 (ftfont_list): Return a list, not vector.
16859 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16860 (ftfont_list_family): Don't downcase names.
16861 (ftfont_free_entity): Deleted.
16862 (ftfont_open): Return a font-object. Adjusted for the change of
16863 struct font. Get underline_thickness and underline_position from
16864 font property. Don't update dpyinfo->smallest_font_height and
16865 dpyinfo->smallest_char_width.
16866 (ftfont_close): Don't free `struct font'.
16867 (ftfont_has_char): Adjusted for the format change of font-entity.
16868 (ftfont_encode_char, ftfont_text_extents): Likewise.
16869
16870 * ftxfont.c (ftxfont_list): Return a list, not vector.
16871 (ftxfont_open): Return a font-object. Adjusted for the change of
16872 struct font. Get underline_thickness and underline_position from
16873 font property. Don't update dpyinfo->smallest_font_height and
16874 dpyinfo->smallest_char_width.
16875 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16876 (ftxfont_draw): Adjusted for the change of struct font.
16877
16878 * image.c (image_ascent): Don't include "charset.h". Include
16879 "character.h" and "font.h".
16880
16881 * lisp.h (enum pvec_type): New member PREV_FONT.
16882 (Fassoc_string): EXFUN it.
16883
16884 * print.c: Include font.h.
16885 (print_object): Handle font-related objects.
16886
16887 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16888 conditionals. Don't check enable_font_backend. Delete all codes
16889 used only when USE_FONT_BACKEND is not defined.
16890 (handle_auto_composed_prop): Do nothing if it->f is not on a
16891 window system. Check how many following characters can be
16892 displayed by the same font.
16893 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16894 'struct font *'.
16895 (get_char_face_and_encoding): Assign the whole encoding task to
16896 the `encode-char' method of a font driver.
16897 (fill_composite_glyph_string): Adjusted for the change of `struct
16898 face' and `struct glyph_string'.
16899 (fill_glyph_string): Likewise.
16900 (get_per_char_metric): Arguments changed.
16901 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16902 and `struct glyph_string'.
16903 (produce_stretch_glyph, calc_line_height_property)
16904 (x_produce_glyphs): Likewise.
16905
16906 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16907 conditionals. Don't check enable_font_backend. Delete all codes
16908 used only when USE_FONT_BACKEND is not defined. Use
16909 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16910 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16911 (Qp): Extern them.
16912 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16913 Deleted.
16914 (struct font_name): Deleted.
16915 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16916 (compare_fonts_by_sort_order): New function.
16917 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16918 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16919 Deleted.
16920 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16921 compare_fonts_by_sort_order.
16922 (Fx_font_family_list): Call Ffont_family_list.
16923 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16924 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16925 (face_symbolic_slant, face_symbolic_swidth)
16926 (split_font_name_into_vector, build_font_name_from_vector)
16927 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16928 (font_rescale_ratio, split_font_name, build_font_name)
16929 (free_font_names, sort_fonts, x_face_list_fonts)
16930 (face_font_available_p, sorted_font_list, cmp_font_names)
16931 (font_list_1, concat_font_list, font_list, remove_duplicates):
16932 Deleted.
16933 (Fx_list_fonts): Use Ffont_list.
16934 (LFACE_AVGWIDTH): Deleted.
16935 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16936 by FONTP.
16937 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16938 (set_lface_from_font_name): Delete it.
16939 (set_lface_from_font): Renamed from
16940 set_lface_from_font_and_fontset. Caller changed. Don't set
16941 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16942 for face.
16943 (merge_face_vectors): Copy font-spec if necessary.
16944 Clear properties of the font-spec if necessary.
16945 (merge_face_ref): Clear properties of the font-spec if necessary.
16946 (Finternal_set_lisp_face_attribute): Likewise.
16947 (set_font_frame_param): Use font_load_for_lface to load a
16948 font-object, and call Fmodify_frame_parameters with it.
16949 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16950 font name by Ffont_xlfd_name.
16951 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16952 QCslant, and QCwidth.
16953 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16954 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16955 Compare fonts by EQ.
16956 (lookup_non_ascii_face): Deleted.
16957 (face_for_font): The 2nd argument changed.
16958 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16959 Check atomic font properties by case insensitive.
16960 (realize_non_ascii_face): Set face->overstrike correctly.
16961 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16962 (dump_realized_face): Get font name from
16963 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16964
16965 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16966 conditionals. Don't check enable_font_backend. Delete all codes
16967 used only when USE_FONT_BACKEND is not defined.
16968 (xic_create_xfontset): Original code deleted and renamed from
16969 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16970 (x_make_gc): Don't set GCFont in GCs.
16971 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16972 opened by "fixed".
16973 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16974 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16975 get_font_repertory_func.
16976
16977 * xfont.c: Include <stdlib.h> and "ccl.h".
16978 (struct xfont_info): New structure.
16979 (xfont_query_font): Deleted.
16980 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16981 moved from xterm.c.
16982 (xfont_driver): Adjusted for the change of struct font_driver.
16983 (compare_font_names): New function.
16984 (xfont_list_pattern): Sort font names case insensitively. Make
16985 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16986 (xfont_list): Return a list, not vector.
16987 (xfont_match): If the font doesn't have QCname property, generate
16988 a name from the other font properties.
16989 (xfont_open): Return a font-object. Adjusted for the change of
16990 struct font. Get underline_thickness and underline_position from
16991 font property. Don't update dpyinfo->smallest_font_height and
16992 dpyinfo->smallest_char_width.
16993 (xfont_close): Don't free struct font.
16994 (xfont_prepare_face): Adjusted for the change of struct font.
16995 (xfont_done_face): Deleted.
16996 (xfont_has_char): Adjusted for the change of struct font.
16997 (xfont_encode_char, xfont_draw): Likewise.
16998 (xfont_check): New function.
16999
17000 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17001 callback function.
17002 (xftfont_match): Adjusted for the format change of font-entity.
17003 (xftfont_open): Adjusted for the format change of font-entity and
17004 font-object. Adjusted for the change of struct font. Return a
17005 font-object. Don't update dpyinfo->smallest_font_height and
17006 dpyinfo->smallest_char_width.
17007 (xftfont_close): Block input while calling XftFontClose.
17008 (xftfont_prepare_face): Don't block input while calling
17009 xftfont_get_colors. Adjusted for the change of struct font.
17010 (xftfont_shape): Return value of error case fixed.
17011
17012 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17013
17014 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17015 conditionals.
17016 (FONT_WIDTH): Return (f)->max_width.
17017 (struct x_display_info): Delete member `font'.
17018 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17019 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17020 (struct x_output): Change type of `font' to `struct font *'.
17021
17022 * xterm.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. Don't include ccl.h.
17025 (x_per_char_metric, x_encode_char): Deleted.
17026 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17027 (x_compute_glyph_string_overhangs): Adjusted for the change of
17028 `struct face'.
17029 (x_draw_glyph_string_foreground)
17030 (x_draw_composite_glyph_string_foreground): Likewise.
17031 (x_draw_glyph_string): Likewise. Use font->underline_position and
17032 font->underline_thickness.
17033 (x_new_font): Renamed from x_new_fontset2.
17034 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17035 (x_check_font): Call `check' method of a font driver.
17036 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17037 (x_query_font, x_get_font_repertory): Deleted.
17038 (x_find_ccl_program): Renamed and moved to xfont.c.
17039 (x_redisplay_interface): Adjusted for the change of `struct
17040 redisplay_interface'.
17041
17042 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17043 conditionals. Don't check enable_font_backend. Delete all codes
17044 used only when USE_FONT_BACKEND is not defined. Surround non-used
17045 code by "#ifdef OLD_FONT" and "endif".
17046 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17047
17048 * w32font.h (struct w32font_info): New member.
17049 (FONT_COMPAT): New macro.
17050 (w32font_open_internal): Prototype adjusted.
17051
17052 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17053 OLD_FONT" and "endif".
17054
17055 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17056 conditionals. Don't check enable_font_backend. Delete all codes
17057 used only when USE_FONT_BACKEND is not defined.
17058 (w32font_open): Return a font-object. Make a font-object by
17059 font_make_object. Adjusted for the change of struct w32font_info.
17060 (w32font_close): Don't free struct font. Adjusted for the change
17061 of struct w32font_info.
17062 (w32font_encode_char, w32font_text_extents, w32font_draw):
17063 Adjusted for the change of struct w32font_info.
17064 (w32font_draw): Likewise.
17065 (w32font_list_internal): Return a list, not vector.
17066 (w32font_open_internal): Change the 4th arg to font-object.
17067 Adjusted for the change of struct w32font_info and font-object format.
17068 (add_font_name_to_list): Don't downcase names.
17069 (w32_enumfont_pattern_entity): Make a font-entity by
17070 font_make_entity. Adjusted for the format change of font-entity.
17071 Use FONT_SET_STYLE to set a style-related font property. If a
17072 font is scalable, set avgwidth property to 0. Set font-entity
17073 property by font_put_extra.
17074 (font_matches_spec): Adjusted for the format change of font-entity.
17075 (w32_weight_table, w32_decode_weight): New variables.
17076 (w32_encode_weight): New function.
17077 (fill_in_logfont): Adjusted for the format change of font-spec.
17078 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17079 weight value.
17080 (w32font_driver): Adjusted for the change of struct font_driver.
17081
17082 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17083 conditionals. Don't check enable_font_backend. Surround non-used
17084 code by "#ifdef OLD_FONT" and "endif".
17085 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17086 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17087
17088 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17089 conditionals. Don't check enable_font_backend. Delete all codes
17090 used only when USE_FONT_BACKEND is not defined. Surround non-used
17091 code by "#ifdef OLD_FONT" and "endif".
17092
17093 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17094 (uniscribe_open): Return value changed to font-object.
17095 Adjusted for the format change of font-object.
17096 (uniscribe_otf_capability): Adjusted for the change of struct font.
17097 (add_opentype_font_name_to_list): Don't downcase names.
17098 (uniscribe_font_driver): Adjusted for the change of struct
17099 font_driver.
17100
17101 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
17102
17103 * dispnew.c (update_frame_1): Check if tty output is still valid
17104 before flushing it.
17105
17106 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17107
17108 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17109 to Gtk+ menus.
17110
17111 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17112
17113 * dired.c (file_name_completion): Tweak the code so as to always do it
17114 in a single pass. Tighten the scope of some variables.
17115
17116 * dired.c (Qdefault_directory): New var.
17117 (file_name_completion): Use it instead of Fexpand_file_name.
17118 (syms_of_dired): Initialize it.
17119
17120 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17121
17122 * fileio.c (double_dollars): Remove dead code.
17123
17124 2008-05-10 Eli Zaretskii <eliz@gnu.org>
17125
17126 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17127 Mention w32-get-true-file-attributes in doc string.
17128
17129 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17130
17131 2008-05-09 Glenn Morris <rgm@gnu.org>
17132
17133 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17134 2008-04-23.
17135
17136 2008-05-09 Eli Zaretskii <eliz@gnu.org>
17137
17138 Support for reporting owner and group of each file on MS-Windows:
17139 * dired.c (stat_uname, stat_gname): New functions, with special
17140 implementation for w32.
17141 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17142
17143 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17144 (dflt_group_name): New static variable.
17145 (dflt_group): Rename from the_group.
17146 (init_user_info): Init dflt_group fields. Get user's group name
17147 from LookupAccountSid.
17148 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17149 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17150 New initialization states.
17151 (globals_of_w32): Initialize them to zero. Initialize the default
17152 group name to "None".
17153 (GetFileSecurity_Name): New global var, the name of the function
17154 to call for GetFileSecurity.
17155 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17156 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17157 (get_file_security, get_security_descriptor_owner)
17158 (get_security_descriptor_group, is_valid_sid)
17159 (get_file_security_desc, get_rid, get_name_and_id)
17160 (get_file_owner_and_group): New functions.
17161 (stat): Use get_file_security_desc and get_file_owner_and_group to
17162 report the owner and primary group of each file. Don't ignore the
17163 high 32 bits of file's size, now that st_size is 64-bit wide.
17164 Fix test when to get true file attributes.
17165 (init_user_info): Use get_rid instead of equivalent inline code.
17166 (fstat): Don't ignore the high 32 bits of file's size.
17167
17168 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
17169
17170 * image.c (png_load): Use correct bit-depth for setting background
17171 color.
17172
17173 2008-05-08 Eli Zaretskii <eliz@gnu.org>
17174
17175 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17176 epa-hook.elc.
17177
17178 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
17179
17180 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17181
17182 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17183
17184 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17185 because the original parameters are in pure storage now.
17186 (mac_window): Remove unused params. Update callers.
17187
17188 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17189
17190 * lread.c (substitute_object_recurse): Use lower-level primitives.
17191 Don't signal errors when traversing sub-char-tables.
17192 Don't loop over all the possible characters when traversing char-tables.
17193
17194 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17195 just like we do in print.c.
17196
17197 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17198
17199 * minibuf.c (Ftry_completion): Remove code left over from when we used
17200 scmp instead of Fcompare_strings.
17201
17202 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
17203
17204 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17205
17206 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17207
17208 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17209 Create bitmap context in native byte order.
17210
17211 * macterm.c (XDrawLine)
17212 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17213 context in native byte order.
17214
17215 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17216
17217 * config.in: Regenerate.
17218
17219 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17220 New definitions for Image I/O support.
17221 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17222 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17223 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17224 (mac_data_provider_release_data, image_load_image_io)
17225 [USE_MAC_IMAGE_IO]: New functions.
17226 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17227 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17228 (init_image_func_pointer) [MAC_OSX]: Remove function.
17229 (image_load_quartz2d) [MAC_OSX]: Check availability of
17230 CGImageCreateWithPNGDataProvider at compile time.
17231 Use lowercase `false' for boolean constant.
17232 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17233 Use image_load_image_io.
17234 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17235 Don't check MyCGImageCreateWithPNGDataProvider.
17236 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17237 Don't call init_image_func_pointer.
17238
17239 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17240
17241 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17242 Make variable non-static.
17243 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17244 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17245
17246 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17247 (RED_FROM_ULONG): Mask off higher bits.
17248 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17249
17250 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17251 Include AvailabilityMacros.h.
17252 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17253 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17254
17255 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17256
17257 * chartab.c (Fset_char_table_range): If range is t, really set all
17258 chars to that value.
17259
17260 2008-05-03 Eli Zaretskii <eliz@gnu.org>
17261
17262 * dired.c (Ffile_attributes): Don't allow the device number become
17263 negative.
17264
17265 2008-05-02 Daiki Ueno <ueno@unixuser.org>
17266
17267 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17268
17269 2008-05-02 Juri Linkov <juri@jurta.org>
17270
17271 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17272 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17273 DEFAULT argument as a list of default values in docstrings.
17274
17275 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
17276
17277 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17278
17279 2008-05-01 Martin Rudalics <rudalics@gmx.at>
17280
17281 * dispnew.c (change_frame_size_1): Preserve small windows when
17282 shrinking frames by calling set_window_height|width with third
17283 arg 2.
17284
17285 * window.h (struct window): Replace field too_small_ok by field
17286 resize_proportionally.
17287
17288 * window.c (make_window): Initialize resize_proportionally.
17289 (enlarge_window): Temporarily set resize_proportionally to make
17290 sure that shrink_windows does scale the window proportionally.
17291 (shrink_windows): When window has resize_proportionally set try
17292 to shrink it proportionally by stealing from other windows.
17293 (struct saved_window, Fset_window_configuration)
17294 (compare_window_configurations): Handle resize_proportionally.
17295 (WINDOW_TOTAL_SIZE): New macro.
17296 (window_min_size, shrink_windows, size_window): Use it.
17297 (check_min_window_sizes): Remove. Invalid values of
17298 window-min-height|width are handled by window_min_size_2 now.
17299 (size_window, Fsplit_window, enlarge_window)
17300 (adjust_window_trailing_edge, grow_mini_window): Don't call
17301 check_min_window_sizes.
17302 (window_min_size_2, window_min_size_1, window_min_size):
17303 New argument safe_p for retrieving "safe" minimum sizes.
17304 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17305 (adjust_window_trailing_edge, grow_mini_window):
17306 Adjust arguments of window_min_size... functions.
17307 (shrink_windows): Argument min_size removed. New argument
17308 safe_p allows shrinking windows to their safe minimum sizes.
17309 Calculate minimum size and decide whether a window shall be
17310 deleted for each window individually.
17311 (size_window): When nodelete_p equals 2, tell shrink_windows to
17312 delete windows only if their new minimum size is no more safe.
17313 (shrink_window_lowest_first): Call window_min_size_1 to make
17314 sure to preserve modeline of bottom-most window when resizing
17315 the minibuffer.
17316 (Fset_window_configuration, Fcurrent_window_configuration)
17317 (compare_window_configurations): Do not handle
17318 window-min-height|width any more.
17319 (syms_of_window): Clarify window-min-height|width doc-strings.
17320
17321 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17322
17323 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17324 some more. Copy some of the code from Ftry_completions.
17325 Remove special case code that dates back to initial revision when the
17326 slash was only added when necessary and that can't trigger nowadays.
17327
17328 2008-04-27 Kenichi Handa <handa@m17n.org>
17329
17330 * font.c (font_prop_validate): Signal `error' instead of `font'.
17331
17332 2008-04-29 Jason Rumney <jasonr@gnu.org>
17333
17334 * w32fns.c (Fw32_battery_status): New defun.
17335 (syms_of_w32fns): Defsubr it.
17336
17337 2008-04-28 Andreas Schwab <schwab@suse.de>
17338
17339 * dired.c (file_name_completion): Fix another mixing of encoded
17340 and decoded names.
17341
17342 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
17343
17344 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17345
17346 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
17347
17348 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17349
17350 2008-04-27 Andreas Schwab <schwab@suse.de>
17351
17352 * dired.c (file_name_completion): Fix inappropriate mixing of
17353 encoded and decoded names.
17354
17355 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17356
17357 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17358
17359 2008-04-26 Eli Zaretskii <eliz@gnu.org>
17360
17361 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17362 2008-03-31, it's not needed anymore with `struct stat' definition
17363 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17364 for the same reasons.
17365
17366 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17367
17368 * m/sparc.h: Additional redefinitions for GNU/Linux.
17369
17370 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17371
17372 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17373 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17374 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17375 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17376 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17377 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17378 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17379 Likewise.
17380
17381 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17382 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17383 (mac_ax_number_of_characters): Add externs.
17384 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17385 [USE_MAC_TSM]: Likewise.
17386 (mac_handle_text_input_event) [MAC_OSX]:
17387 Handle kEventTextInputOffsetToPos for no active input area case.
17388 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17389 (mac_handle_document_access_event)
17390 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17391 (install_application_handler) [MAC_OSX]: Register handlers for
17392 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17393 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17394 Register mac_handle_document_access_event.
17395
17396 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17397 Make functions non-static.
17398
17399 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17400
17401 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17402 (read_file_name_completion_ignore_case, insert_default_directory)
17403 (Qdefault_directory): Move to minibuffer.el.
17404 (Fread_file_name): Call the new `read-file-name' instead.
17405
17406 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17407
17408 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17409 Make function non-static.
17410 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17411 Remove function.
17412 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17413 Move to mactoolbox.c.
17414 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17415
17416 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17417 (mac_rect_make): New macro.
17418
17419 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17420 instead of float.
17421 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17422 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17423 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17424 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17425 CGRectMake.
17426 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17427 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17428 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17429 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17430 instead of WindowRef in argument type.
17431 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17432 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17433 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17434 instead of DISPLAY. All uses changed.
17435 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17436 (x_calc_absolute_position): Simplify so as not to use
17437 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17438
17439 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17440 instead of WindowRef in argument type.
17441 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17442 [TARGET_API_MAC_CARBON]: Remove externs.
17443 (create_apple_event, mac_event_parameters_to_lisp)
17444 [TARGET_API_MAC_CARBON]: Add externs.
17445
17446 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17447 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17448 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17449 is clicked.
17450 (x_activate_menubar): Remove extern for saved_menu_event_location.
17451 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17452 Move from mac.c.
17453
17454 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17455
17456 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17457 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17458
17459 2008-04-23 Jason Rumney <jasonr@gnu.org>
17460
17461 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17462 attributes only for local files.
17463
17464 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17465 default to Qlocal.
17466
17467 2008-04-22 Juri Linkov <juri@jurta.org>
17468
17469 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17470 read-buffer-to-switch instead of using the letter "B".
17471
17472 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17473
17474 * fileio.c (Qdefault_directory): New variable.
17475 (Fread_file_name): Use it to pass `dir' to the completion functions.
17476
17477 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
17478
17479 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17480
17481 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17482
17483 * keyboard.c (Vpre_help_message): Remove.
17484 (show_help_echo): Remove default C code.
17485
17486 * dired.c (directory_files_internal, file_name_completion):
17487 Only call ENCODE_FILE if the string is indeed decoded.
17488
17489 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17490
17491 * Makefile.in (TOOLKIT_DEFINES): Remove.
17492 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17493
17494 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17495
17496 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17497 (mactoolbox.o): New target.
17498
17499 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17500 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17501
17502 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17503 Use mac_set_frame_window_background instead of XSetWindowBackground.
17504 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17505 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17506 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17507 instead of SetWindowTitleWithCFString.
17508 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17509 Move function to mactoolbox.c.
17510 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17511 Use mac_set_window_modified instead of SetWindowModified.
17512 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17513 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17514 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17515 FrontNonFloatingWindow. Use mac_activate_window instead of
17516 ActivateWindow. Use mac_active_non_floating_window instead of
17517 ActiveNonFloatingWindow.
17518 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17519 Use mac_show_hourglass and mac_hide_hourglass.
17520 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17521 instead of GetGlobalMouse.
17522 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17523 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17524 Use mac_bring_window_to_front instead of BringToFront.
17525 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17526 mactoolbox.c.
17527 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17528 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17529 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17530 mactoolbox.c.
17531
17532 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17533 (XtPointer): Move typedef from macmenu.c.
17534 (enum button_type): Move enum from macmenu.c.
17535 (widget_value): Move typedef from macmenu.c.
17536 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17537 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17538 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17539 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17540 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17541 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17542 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17543 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17544 (Selection): Move typedef from macselect.c.
17545 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17546 macterm.c.
17547 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17548 (mac_is_window_collapsed, mac_bring_window_to_front)
17549 (mac_send_window_behind, mac_hide_window, mac_show_window)
17550 (mac_collapse_window, mac_front_non_floating_window)
17551 (mac_active_non_floating_window, mac_activate_window)
17552 (mac_move_window_structure, mac_move_window, mac_size_window)
17553 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17554
17555 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17556 (enum mac_menu_kind): Move enum to mactoolbox.c.
17557 (min_menu_id): Move variable to mactoolbox.c.
17558 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17559 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17560 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17561 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17562 [TARGET_API_MAC_CARBON]: Likewise.
17563 (XtPointer): Move typedef to macgui.h.
17564 (enum button_type): Move enum to macgui.h.
17565 (widget_value): Move typedef to macgui.h.
17566 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17567 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17568 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17569 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17570 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17571 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17572 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17573 (popup_activated_flag): Make variable non-static.
17574 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17575 (add_menu_item, fill_menu, dispose_menus):
17576 Move functions to mactoolbox.c.
17577 (restore_show_help_function, menu_target_item_handler)
17578 (install_menu_target_item_handler, mac_handle_dialog_event)
17579 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17580 [TARGET_API_MAC_CARBON]: Likewise.
17581 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17582 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17583 (find_and_call_menu_selection, name_is_separator): Make function
17584 non-static.
17585 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17586 to mactoolbox.c.
17587 (set_frame_menubar): Don't call install_menu_quit_handler.
17588 (menu_item_selection): New variable.
17589 (mac_menu_show): Use create_and_show_popup_menu.
17590 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17591 selection but set variable menu_item_selection. All uses changed.
17592 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17593 Call install_menu_quit_handler. Move to mactoolbox.c.
17594
17595 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17596 (Selection): Move typedef to macgui.h.
17597 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17598 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17599 Make variables non-static.
17600 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17601 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17602 Make functions non-static.
17603 (Vmac_service_selection) [MAC_OSX]: Likewise.
17604 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17605 (mac_valid_selection_target_p, mac_clear_selection)
17606 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17607 (mac_put_selection_value, mac_selection_has_target_p)
17608 (mac_get_selection_value, mac_get_selection_target_list)
17609 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17610 Move functions to mactoolbox.c.
17611 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17612 Likewise.
17613 (copy_scrap_flavor_data, mac_handle_service_event)
17614 (install_service_handler) [MAC_OSX]: Likewise.
17615 (syms_of_macselect) <Vmac_dnd_known_types>:
17616 Use mac_dnd_default_known_types.
17617
17618 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17619 Move to mactoolbox.c.
17620 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17621 (Fx_selection_owner_p): Add EXFUN.
17622 (install_window_handler, remove_window_handler, XSetWindowBackground):
17623 Remove externs.
17624 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17625 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17626 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17627 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17628 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17629 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17630 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17631 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17632 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17633 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17634 (mac_valid_selection_target_p, mac_clear_selection)
17635 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17636 (mac_put_selection_value, mac_selection_has_target_p)
17637 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17638 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17639 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17640 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17641 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17642 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17643 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17644 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17645 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17646
17647 * mactoolbox.c: New file.
17648
17649 2008-04-18 Jason Rumney <jasonr@gnu.org>
17650
17651 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17652
17653 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17654
17655 * character.c (Fmultibyte_char_to_unibyte):
17656 Return latin1 chars unchanged.
17657
17658 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17659 relocated if it points to `name'.
17660
17661 2008-04-17 Kenichi Handa <handa@m17n.org>
17662
17663 * data.c (Faset): Allow setting a multibyte character in an
17664 ASCII-only unibyte string.
17665
17666 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17667
17668 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17669
17670 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17671 done in config.h.
17672
17673 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
17674
17675 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17676 (Fchar_direction): Add usage in the docstring.
17677
17678 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
17679
17680 * keyboard.c (read_key_sequence): Remove always-true checks.
17681
17682 2008-04-14 Jason Rumney <jasonr@gnu.org>
17683
17684 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17685 compatibility struct, for better underline positioning.
17686
17687 2008-04-13 David Hansen <david.hansen@gmx.net>
17688
17689 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17690 string.
17691
17692 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17693
17694 * m/hp800.h (XUINT, XSET): Remove.
17695
17696 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
17697
17698 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17699 previous change.
17700
17701 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17702
17703 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17704 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17705
17706 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17707
17708 * keymap.h (map_keymap_canonical): Declare.
17709 * xmenu.c (single_keymap_panes): Use it.
17710
17711 2008-04-11 Glenn Morris <rgm@gnu.org>
17712
17713 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17714 set the target's value to that of the alias.
17715
17716 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17717
17718 * term.c (set_tty_color_mode): Left over typo.
17719
17720 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
17721
17722 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17723 only after check for file name handler functions. Signal, when
17724 native functionality is not supported.
17725 (syms_of_fileio): Declare it unconditionally.
17726
17727 2008-04-10 Jason Rumney <jasonr@gnu.org>
17728
17729 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17730 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17731
17732 * w32.c (logon_network_drive): Also logon to remote drives that
17733 are mapped to drive letters.
17734
17735 2008-04-10 Glenn Morris <rgm@gnu.org>
17736
17737 * xdisp.c (truncate-partial-width-windows): Doc fix.
17738
17739 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17740
17741 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17742 Move functions to minibuffer.el.
17743 (syms_of_fileio): Don't declare them.
17744
17745 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17746
17747 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17748 (syms_of_minibuf): Remove its initialization.
17749
17750 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17751
17752 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
17753
17754 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17755
17756 2008-04-09 Jason Rumney <jasonr@gnu.org>
17757
17758 * makefile.w32-in (distclean): Delete makefile too.
17759 (maintainer-clean): New target.
17760
17761 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17762
17763 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17764 for new font backend and composite cases.
17765
17766 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17767
17768 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17769 Most of the code moved to run_timers.
17770 (do_pending_atimers): Call run_timers.
17771 (run_timers): New function.
17772
17773 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17774 run atimers.
17775
17776 * process.c (wait_reading_process_output): The same as above.
17777
17778 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17779
17780 * minibuf.c (last_exact_completion): Remove variable.
17781 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17782 (complete_and_exit_1, complete_and_exit_2)
17783 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17784 (Fdisplay_completion_list, display_completion_list_1)
17785 (Fminibuffer_completion_help, Fself_insert_and_exit)
17786 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17787 minibuffer.el.
17788 (syms_of_minibuf): Remove corresponding initializations.
17789
17790 * keyboard.c (Qdeactivate_mark): New var.
17791 (command_loop_1): Use it to call `deactivate-mark'.
17792 (syms_of_keyboard): Initialize it.
17793
17794 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17795 to another frame.
17796 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17797 Don't call set_tty_color_mode.
17798 (store_frame_param): Reset previous_frame rather than call
17799 set_tty_color_mode.
17800 * term.c (set_tty_color_mode): Rewrite.
17801 * dispextern.h (set_tty_color_mode): New type.
17802 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17803
17804 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17805
17806 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17807 for generic chars, which do not exist any more in emacs-unicode.
17808
17809 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
17810
17811 * coding.c (detect_coding_emacs_mule)
17812 (Ffind_operation_coding_system): Fix typo.
17813
17814 2008-04-08 Jason Rumney <jasonr@gnu.org>
17815
17816 * w32uniscribe.c (SNAME): Extract only symbol name.
17817
17818 * w32font.h (struct w32_metric_cache): New struct.
17819 (w32font_info): Use it.
17820 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17821 (CACHE_BLOCKSIZE): New constants.
17822
17823 * w32font.c (Qja, Qko, Qzh): New symbols.
17824 (syms_of_w32font): Initialise them.
17825 (font_matches_spec): Use them to filter by language.
17826 (recompute_cached_metrics): Remove function.
17827 (compute_metrics, clear_cached_metrics): New functions.
17828 (w32font_encode_char): Use them to manage metric cache.
17829 (w32font_text_extents): Cache metrics for all glyphs on demand.
17830 Delay converting glyph indices to WORD until needed.
17831 (w32font_open_internal): Initialize metric cache to empty.
17832 (registry_to_w32_charset): Charset should always be a symbol.
17833 (fill_in_logfont, list_all_matching_fonts): Family should
17834 always be a symbol.
17835
17836 2008-04-06 Jason Rumney <jasonr@gnu.org>
17837
17838 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17839 Give up if glyph indices not supported. Use uniscribe obtained
17840 ABC widths for individual metrics. Map glyph clusters back to
17841 characters using fClusterStart flag. Return number of glyphs
17842 produced, not chars processed.
17843 (uniscribe_shape): Map char at FROM to current glyph.
17844
17845 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17846
17847 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17848 Use SetMenuItemHierarchicalMenu.
17849
17850 2008-04-05 Jason Rumney <jasonr@gnu.org>
17851
17852 * image.c (pbm_load): Allow color values up to 65535.
17853 Throw an error if max_color_idx is outside the supported range.
17854 Report an error when image size is invalid.
17855 Read two bytes at a time when raw images have max_color_idx above 255.
17856
17857 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17858
17859 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17860 append "CCL: Quitted" when the CCL program is quitted.
17861 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17862
17863 * ccl.h (struct ccl_program): New member quit_silently.
17864
17865 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
17866
17867 * search.c (compile_pattern_1): Treat non-nil and non-string of
17868 search-spaces-regexp as nil.
17869
17870 * minibuf.c (Fassoc_string): Tweak docstring.
17871
17872 2008-04-05 Eli Zaretskii <eliz@gnu.org>
17873
17874 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17875 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17876 2008-03-14 to force inode be positive.
17877
17878 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17879 _S_* ones, since we now use our own sys/stat.h.
17880 (stat, fstat): Don't mangle the inode number.
17881 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17882
17883 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17884
17885 * frame.h (struct frame): Give one more bit to `visible' since we use
17886 values larger than 1 to indicate obscured frames on ttys.
17887
17888 * keymap.c (Qkeymap_canonicalize): New var.
17889 (Fmap_keymap_internal): New fun.
17890 (describe_map): Use keymap-canonicalize.
17891
17892 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17893 (Fundo_boundary): Set them.
17894 (syms_of_undo): Initialize them.
17895 (record_point): Use them instead of last_point_position*.
17896 (last_undo_buffer): Change type.
17897
17898 2008-04-04 Jason Rumney <jasonr@gnu.org>
17899
17900 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17901 (recompute_cached_metrics): Don't set ascent and descent per char.
17902
17903 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17904 (uniscribe_check_otf): Add GC protection before consing.
17905 Rearrange loop for counting features.
17906
17907 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17908
17909 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17910 buffer with byte-size of source buffer.
17911
17912 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
17913
17914 * callint.c (Fcall_interactively): Handle temporary region even
17915 when shift-select-mode is off.
17916
17917 2008-04-03 Jason Rumney <jasonr@gnu.org>
17918
17919 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17920
17921 2008-04-03 Kenichi Handa <handa@m17n.org>
17922
17923 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17924 (CATEGORY_MASK_UTF_16): Likewise.
17925 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17926 binary file.
17927 (detect_coding): Add null-byte detection for a binary file.
17928 (detect_coding_system): Likewise.
17929
17930 2008-04-03 Jason Rumney <jasonr@gnu.org>
17931
17932 * w32uniscribe.c: New file.
17933
17934 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17935
17936 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17937
17938 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17939 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17940 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17941 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17942 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17943 (Qphonetic): New symbols.
17944 (syms_of_w32font): Initialize them.
17945 (font_supported_scripts): Use them.
17946 (w32font_list_family): List all charsets.
17947 (w32font_text_extents, recompute_cached_metrics): Fix metric
17948 calculations.
17949 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17950 Give opentype fonts their own format.
17951 (font_matches_spec): New arguments backend and logfont.
17952 Handle :otf spec for uniscribe backend.
17953 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17954 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17955
17956 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17957 font backend.
17958 (globals_of_w32fns): Initialize uniscribe font backend.
17959
17960 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17961 dependencies.
17962 (w32uniscribe.$(O)): New file to build.
17963 (FONT_OBJ): Include w32uniscribe.$(O).
17964 (LIBS): Add uniscribe libraries.
17965
17966 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17967
17968 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
17969
17970 * callint.c (Vshift_select_mode): New var.
17971 (Finteractive): Document new ^ spec.
17972 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17973 is present.
17974
17975 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17976 (command_loop_1): Avoid running the direct display versions of
17977 forward-char and backward-char if shift-selection may occur.
17978 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17979 shift-translation takes place.
17980
17981 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17982 avoid clobbering by define-minor-mode.
17983
17984 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17985 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17986
17987 * syntax.c (Fforward_word): Add ^ interactive spec.
17988
17989 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17990 (Fscroll_right): Add ^ interactive spec.
17991
17992 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17993
17994 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17995
17996 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17997
17998 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17999
18000 2008-03-31 Juri Linkov <juri@jurta.org>
18001
18002 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18003
18004 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18005
18006 * gtkutil.c (xg_set_geometry): Fix indentation.
18007 (xg_resize_outer_widget): Remove.
18008 (x_wm_size_hint_off): Fix indentation.
18009 (xg_frame_set_char_size): Call flush_and_sync after
18010 gtk_window_resize.
18011 (x_wm_set_size_hint): Pass NULL as geometry window to
18012 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18013 Add menu bar and tool bar height to base height.
18014 (xg_update_frame_menubar, free_frame_menubar)
18015 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18016 (update_frame_tool_bar, free_frame_tool_bar):
18017 Change xg_resize_outer_widget to xg_frame_set_char_size.
18018
18019 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
18020
18021 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18022 (Fdbus_call_method): New parameter TIMEOUT.
18023 (dbus-send-signal): Optimize UNGCPRO call.
18024
18025 2008-03-29 Juri Linkov <juri@jurta.org>
18026
18027 * window.c (Fdisplay_buffer): Move call to
18028 Vsplit_window_preferred_function out of conditions that check
18029 if window is eligible for vertical splitting.
18030 When Vsplit_window_preferred_function is non-nil, call it and use
18031 its non-nil return value as window. Otherwise, continue doing
18032 vertical splitting using Fsplit_window with arg horflag=nil.
18033 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18034 default value from `split-window' to nil.
18035
18036 2008-03-29 Juri Linkov <juri@jurta.org>
18037
18038 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18039 for interactive code letters 'b' and 'B'.
18040
18041 2008-03-29 Eli Zaretskii <eliz@gnu.org>
18042
18043 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18044 multibyte string.
18045
18046 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18047
18048 * keyboard.c (pending_funcalls): New var.
18049 (timer_check): Run it.
18050 (syms_of_keyboard): Initialize it.
18051 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18052 (Vdelete_terminal_functions): New vars.
18053 (syms_of_terminal): Initialize them.
18054 (Fdelete_terminal): Run delete-terminal-functions.
18055 * xdisp.c (safe_eval): Rewrite.
18056 (safe_call2): New fun.
18057 * frame.c (Qdelete_frame_functions): New var.
18058 (syms_of_frame): Initialize it.
18059 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18060 * lisp.h (safe_call2, pending_funcalls): Declare.
18061
18062 2008-03-28 Andreas Schwab <schwab@suse.de>
18063
18064 * indent.c (Fmove_to_column): Move declaration before statements.
18065
18066 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18067
18068 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18069 (struct frame): Use bit fields for boolean vars.
18070
18071 * process.c (server_accept_connection): Simplify naming.
18072 (emacs_get_tty_pgrp): Use SDATA.
18073
18074 * coding.c (decode_coding_object): Fix last change.
18075
18076 2008-03-27 Jason Rumney <jasonr@gnu.org>
18077
18078 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18079
18080 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18081
18082 * charset.c (Fdefine_charset_internal): Change the way of
18083 registering charsets in Vcharset_order_list.
18084 (syms_of_charset): Make the charset `eight-bit' supplementary.
18085
18086 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18087
18088 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18089 operations, to avoid having the difference between pointers
18090 overflow.
18091
18092 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18093
18094 * indent.c (check_display_width): New fun.
18095 (scan_for_column): Use it.
18096
18097 * data.c (syms_of_data): Mark most-positive-fixnum and
18098 most-negative-fixnum as constants.
18099
18100 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18101
18102 * indent.c (scan_for_column): Extract from current_column_1.
18103 Merge with the same code from Fmove_to_column.
18104 (current_column_1, Fmove_to_column): Use it.
18105
18106 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18107
18108 * keymap.c (map_keymap_internal): New fun.
18109 (map_keymap): Use it.
18110 (Fmap_keymap_internal): New fun.
18111 (Fmap_keymap): Remove left-out test from before make_save_value.
18112
18113 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18114
18115 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18116 Use XCAR/XCDR.
18117
18118 * process.h (struct Lisp_Process): Remove filter_multibyte.
18119 * process.c (QCfilter_multibyte): Remove.
18120 (setup_process_coding_systems): Don't use filter_multibyte.
18121 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18122 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18123 (Fset_process_filter_multibyte): Change the coding-system to
18124 approximate the previous behavior.
18125 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18126 coding-system.
18127
18128 * coding.c (decode_coding_object): When not decoding into a buffer,
18129 obey the coding system's preference of (uni|multi)byte.
18130
18131 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18132
18133 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18134 every char is changed and has a different byte-length.
18135 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18136 Fix int -> EMACS_INT.
18137
18138 2008-03-23 David Hansen <david.hansen@gmx.net>
18139
18140 * dbusbind.c (xd_read_message): Remove extra copying of message
18141 strings. Check for NULL `interface' or `member'.
18142
18143 2008-03-22 Eli Zaretskii <eliz@gnu.org>
18144
18145 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18146 cFileName a file name that includes `?' characters, use the 8+3
18147 alias in cAlternateFileName instead.
18148
18149 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18150
18151 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18152
18153 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18154
18155 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18156 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18157 work on current_buffer only instead (that was already the case
18158 for some of the code anyway).
18159 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18160 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18161 (SET_PT, SET_PT_BOTH): Adjust.
18162 * intervals.h (set_point, temp_set_point, set_point_both)
18163 (temp_set_point_both): Remove redundant declarations.
18164
18165 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18166
18167 * fileio.c (Finsert_file_contents):
18168 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18169 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18170 when buffer != current_buffer anyway.
18171
18172 2008-03-20 Andreas Schwab <schwab@suse.de>
18173
18174 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18175 as default.
18176
18177 2008-03-19 Jason Rumney <jasonr@gnu.org>
18178
18179 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18180 (syms_of_w32fns): Initialize them.
18181 (HOURGLASS_ID): New constant.
18182 (x_window_to_frame): Don't check hourglass_window.
18183 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18184 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18185 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18186 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18187 Only change the cursor if hourglass is not active.
18188 (Fx_create_frame): Initialize frame's current_cursor.
18189 (hourglass_atimer): Remove.
18190 (hourglass_started): New function.
18191 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18192 (show_hourglass): Adapt to w32, changing argument to frame.
18193
18194 * w32term.h (struct w32_output): Remove hourglass_window.
18195 Add current_cursor.
18196
18197 * eval.c (call_debugger, Fsignal):
18198 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18199 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18200 (Fexecute_extended_command, cancel_hourglass_unwind):
18201 * minibuf.c (read_minibuf):
18202 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18203
18204 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18205
18206 * window.c (run_funs): New fun.
18207 (run_window_configuration_change_hook): Use it to run the buffer-local
18208 and the global part of the hook.
18209
18210 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18211 (unwind_format_mode_line): Restore selected window.
18212 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18213
18214 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18215
18216 * editfns.c (Fchar_equal): Check they are valid characters.
18217
18218 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18219
18220 2008-03-17 Andreas Schwab <schwab@suse.de>
18221
18222 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18223 against a charset.
18224
18225 * lisp.h (Fbuffer_list): Declare.
18226
18227 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
18228
18229 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18230 handlebox_widget is != 0.
18231
18232 2008-03-16 Juri Linkov <juri@jurta.org>
18233
18234 * callint.c (Fcall_interactively): For interactive code letters
18235 'b' and 'B' put the buffer list into the list of default "future"
18236 values of the minibuffer.
18237
18238 2008-03-16 Andreas Schwab <schwab@suse.de>
18239
18240 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18241 modifiers.
18242
18243 * regex.c (re_match_2_internal): Correct matching of a charset
18244 against latin-1 characters.
18245
18246 2008-03-16 Kenichi Handa <handa@m17n.org>
18247
18248 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18249 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18250 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18251 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18252 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18253 CHAR_STRING_ADVANCE.
18254 (produce_chars): Fix for the case that the source and the
18255 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18256 instead of CHAR_STRING_ADVANCE.
18257 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18258 STRING_CHAR_ADVANCE.
18259
18260 2008-03-15 Andreas Schwab <schwab@suse.de>
18261
18262 * regex.c (re_match_2_internal): Correct matching of eight bit
18263 characters in unibyte strings.
18264
18265 2008-03-15 Martin Rudalics <rudalics@gmx.at>
18266
18267 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18268 at end of range when it coincides with the end of the buffer.
18269
18270 2008-03-14 Eli Zaretskii <eliz@gnu.org>
18271
18272 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18273
18274 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18275
18276 2008-03-14 Jason Rumney <jasonr@gnu.org>
18277
18278 * editfns.c (initial_tz): New variable.
18279 (syms_of_editfns): Initialize it.
18280 (Fset_time_zone_rule): Set it when first called.
18281 Use it when TZSTRING is nil.
18282
18283 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18284 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18285 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18286 (globals_of_w32fns): Initialize them.
18287 (compute_tip_xy): Use them to position tooltips.
18288
18289 2008-03-14 Glenn Morris <rgm@gnu.org>
18290
18291 * emacs.c (main): Revert previous change.
18292 (standard_args): Revert -internal-script back to -scriptload,
18293 and remove the long-option form.
18294
18295 2008-03-13 Glenn Morris <rgm@gnu.org>
18296
18297 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18298 Remove option -enable-font-backend.
18299
18300 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18301
18302 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18303
18304 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18305
18306 * xterm.c (x_connection_closed): For GTK: If this is the last
18307 terminal just exit without closing the display.
18308
18309 2008-03-11 Jason Rumney <jasonr@gnu.org>
18310
18311 * w32font.c (w32font_full_name): Use floor to round.
18312
18313 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18314
18315 * sound.c (alsa_configure): Declare vol at beginning of block.
18316
18317 * fontset.c (Ffontset_info): Remove extra semicolon.
18318
18319 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18320
18321 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18322 size of resulting string.
18323
18324 2008-03-10 Jason Rumney <jasonr@gnu.org>
18325
18326 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18327
18328 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18329
18330 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18331 Don't pretend as if characters with display property haven't been
18332 consumed for string-replacing-string case.
18333
18334 2008-03-08 Kim F. Storm <storm@cua.dk>
18335
18336 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18337 (get_next_display_element, next_element_from_string)
18338 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18339
18340 2008-03-08 Andreas Schwab <schwab@suse.de>
18341
18342 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18343
18344 2008-03-06 Jason Rumney <jasonr@gnu.org>
18345
18346 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18347 when charset not specified. Only translate ANSI to unicode when
18348 font_type is truetype.
18349 (w32font_coverage_ok): New function.
18350 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18351
18352 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18353
18354 * lread.c (Fread_char): Resolve modifiers.
18355 (Fread_char_exclusive): Likewise.
18356
18357 * character.c (char_resolve_modifier_mask): New function.
18358 (char_string): Use char_resolve_modifier_mask.
18359 (Fchar_resolve_modifiers): New function.
18360 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18361 function.
18362
18363 2008-03-04 Jason Rumney <jasonr@gnu.org>
18364
18365 * makefile.w32-in: Always include w32font.c in the build.
18366 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18367
18368 2008-03-04 Andreas Schwab <schwab@suse.de>
18369
18370 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18371 (versionclean): Likewise.
18372
18373 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
18374
18375 * .cvsignore: Add oo.
18376
18377 2008-03-03 Andreas Schwab <schwab@suse.de>
18378
18379 * coding.c (decode_coding_object): Inhibit gap shrinking while
18380 decoding in place.
18381
18382 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18383
18384 * w32term.c: Remove unused include "gnu.h".
18385 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18386
18387 * gnu.h: Rename to ...
18388 * emacs-icon.h: ... this.
18389 * xterm.c: Use emacs-icon.h instead of gnu.h.
18390 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18391
18392 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
18393
18394 * w32font.c: Include math.h.
18395
18396 2008-03-03 Jason Rumney <jasonr@gnu.org>
18397
18398 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18399 Compute options separately.
18400 (w32font_open_internal): Set glyph_idx before caching metrics.
18401
18402 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18403 Define if system headers don't.
18404 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18405 (w32font_encode_char): Don't declare here.
18406
18407 * w32font.c (Quniscribe, QCformat): New symbols.
18408 (syms_of_w32font): Define them.
18409 (w32font_has_char): Indicate uncertainty.
18410 (w32font_encode_char): Encode as glyph point. Make static.
18411 (recompute_cached_metrics): New function.
18412 (w32font_open_internal): Use it. Set font to use glyph points
18413 initially. Set format based on type of font.
18414 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18415 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18416 on it. Set format based on information available here.
18417 (add_font_entity_to_list): Identify backend based on opentype_only.
18418
18419 2008-03-02 Andreas Schwab <schwab@suse.de>
18420
18421 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18422
18423 * coding.c (decode_coding_big5, produce_chars):
18424 Fix typos in last change.
18425
18426 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18427
18428 * gnu.h: New icon.
18429
18430 2008-03-02 Kenichi Handa <handa@m17n.org>
18431
18432 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18433 `dos', don't decode '\r' if that is the last in the source.
18434 (decode_coding_utf_16, decode_coding_emacs_mule)
18435 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18436 (decode_coding_raw_text, decode_coding_charset): Likewise.
18437 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18438
18439 2008-03-01 Jason Rumney <jasonr@gnu.org>
18440
18441 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18442
18443 2008-03-01 Kim F. Storm <storm@cua.dk>
18444
18445 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18446
18447 2008-03-01 Jason Rumney <jasonr@gnu.org>
18448
18449 * w32font.c (w32font_full_name): New function.
18450 (w32font_open_internal): Use it.
18451
18452 2008-03-01 Kim F. Storm <storm@cua.dk>
18453
18454 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18455
18456 2008-03-01 Jason Rumney <jasonr@gnu.org>
18457
18458 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18459
18460 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18461
18462 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18463 xg_frame_resized when the event is for the edit widget.
18464
18465 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18466
18467 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18468 set_char_size.
18469 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18470 operations on widgets here. Just set frame size if needed.
18471 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18472 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18473 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18474 the whole frame.
18475 (xg_create_tool_bar): Move attachment of the tool bar to
18476 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18477 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18478
18479 2008-03-01 Jason Rumney <jasonr@gnu.org>
18480
18481 * w32fns.c (w32_msg_pump): Disable debug code.
18482
18483 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18484
18485 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18486
18487 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
18488
18489 * xdisp.c (next_overlay_string): Don't set
18490 overlay_strings_at_end_processed_p if we're currently reading from
18491 a display string.
18492
18493 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18494
18495 * xdisp.c (get_overlay_strings_1): Fix typo.
18496
18497 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
18498
18499 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18500
18501 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18502
18503 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18504
18505 * xdisp.c (display_mode_element): Cancel the previous change.
18506 (decode_mode_spec): Likewise.
18507 (handle_auto_composed_prop): Don't make composition if it->string
18508 is a string.
18509
18510 2008-02-27 Kim F. Storm <storm@cua.dk>
18511
18512 * lisp.h (GLYPH): Change type from int to struct with separate char
18513 and face_id members.
18514 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18515 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18516 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18517 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18518 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18519 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18520 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18521 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18522 handle new Lisp glyph code encoding, either an integer or a cons.
18523
18524 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18525 (GLYPH_ALIAS): Delete.
18526 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18527 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18528 (GLYPH_FROM_CHAR): Replace macro by ...
18529 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18530
18531 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18532 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18533 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18534 (GLYPH_INVALID_P): New macro.
18535 (spec_glyph_lookup_face): Update prototype.
18536
18537 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18538 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18539 new glyph code encoding.
18540 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18541 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18542
18543 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18544 Adapt to new glyph type and new glyph code encoding.
18545
18546 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18547
18548 * indent.c (current_column, current_column_1, Fmove_to_column)
18549 (compute_motion): Adapt to new glyph code encoding.
18550
18551 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18552
18553 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
18554
18555 * process.c (wait_reading_process_output): Check for window
18556 changes caused by timers.
18557 Suggested by Johan Bockgård.
18558
18559 2008-02-27 Glenn Morris <rgm@gnu.org>
18560
18561 * emacs.c (USAGE1): Add `--disable-font-backend'.
18562
18563 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18564
18565 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18566 is made to the buffer.
18567
18568 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18569
18570 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18571 (face_at_string_position):
18572 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18573 (face_at_string_position):
18574 * xdisp.c (display_string, next_overlay_change):
18575 * buffer.h (overlays_at):
18576 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18577 Update callers.
18578
18579 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
18580
18581 * editfns.c (Fformat): Doc fix.
18582
18583 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
18584
18585 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18586 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18587 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18588
18589 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18590
18591 * buffer.c (Fbuffer_swap_text): New function.
18592 (syms_of_buffer): Defsubr it.
18593
18594 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
18595
18596 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18597
18598 2008-02-25 Jason Rumney <jasonr@gnu.org>
18599
18600 * w32font.c (w32font_draw): Draw one character at a time when padding.
18601
18602 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18603
18604 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18605 Handle a nil arg. Use run_window_configuration_change_hook.
18606 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18607 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18608 Use run_window_configuration_change_hook.
18609
18610 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18611
18612 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18613 1-pixel width.
18614
18615 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18616
18617 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18618 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18619 if the glyph in the font is zero pixel with.
18620
18621 * dispextern.h (struct glyph_string): New member padding_p.
18622
18623 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18624
18625 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18626
18627 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18628
18629 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18630
18631 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18632
18633 2008-02-25 Jason Rumney <jasonr@gnu.org>
18634
18635 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18636
18637 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18638
18639 Allow fine-grained image-cache flushing.
18640 * dispextern.h (struct image): Add `dependencies' field.
18641 (clear_image_caches): Change arg to Lisp_Object.
18642 * image.c (make_image): Initialize `dependencies' field.
18643 (clear_image_cache): Change arg to allow fine-grained flushing.
18644 Perform the flush even if image-cache-eviction-delay is nil.
18645 (clear_image_caches): Change arg to Lisp_Object.
18646 (Fclear_image_cache): Expand meaning of the argument.
18647 (mark_image): Mark `dependencies' field.
18648 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18649 (lface_hash): Use XHASH rather than XFASTINT.
18650 (face_at_buffer_position): Fix int -> EMACS_INT position.
18651 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18652 (select_frame_for_redisplay): Remove code duplication.
18653 (redisplay_internal): Adapt arg to call to clear_image_caches.
18654
18655 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18656
18657 * s/vms4-0.h:
18658 * s/vms4-2.h:
18659 * s/vms4-4.h:
18660 * s/vms5-5.h: Remove, unused.
18661
18662 * s/irix5-2.h:
18663 * s/irix6-0.h:
18664 * s/riscos5.h:
18665 * s/mach-bsd4-3.h:
18666 * m/mips4.h: Remove files for obsolete systems.
18667
18668 * Makefile.in:
18669 * filelock.c:
18670 * unexmips.c:
18671 * m/hp9000s300.h:
18672 * m/iris4d.h:
18673 * s/aix3-1.h:
18674 * s/hpux.h:
18675 * s/msdos.h:
18676 * s/usg5-0.h:
18677 * s/usg5-2-2.h:
18678 * s/usg5-2.h:
18679 * s/usg5-3.h: Remove references to obsolete variables.
18680
18681 * s/irix5-0.h: Remove, move all the contents ...
18682 * s/irix6-5.h: ... here. Simplify.
18683 * config.in: Regenerate.
18684
18685 2008-02-24 Jason Rumney <jasonr@gnu.org>
18686
18687 * w32term.c (x_draw_glyph_string_background): Clear the background
18688 manually when cleartype is in use.
18689 (x_draw_glyph_string_foreground): Draw text transparently when
18690 cleartype is in use.
18691
18692 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18693 a font into it unless we have to.
18694
18695 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18696
18697 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18698 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
18699
18700 2008-02-18 Jason Rumney <jasonr@gnu.org>
18701
18702 * w32fns.c (Fw32_shell_execute): Encode parameters.
18703
18704 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18705
18706 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18707
18708 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
18709
18710 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18711
18712 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18713
18714 * xterm.c (x_set_offset): Don't change the gravity if
18715 CHANGE_GRAVITY is -1.
18716
18717 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
18718
18719 * fileio.c (auto_save_error_occurred): New var.
18720 (auto_save_error): Set it.
18721 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18722 error occurred.
18723
18724 2008-02-23 Eli Zaretskii <eliz@gnu.org>
18725
18726 * w32.c (globals_of_w32): Add initializations for
18727 g_b_init_get_sid_sub_authority and
18728 g_b_init_get_sid_sub_authority_count.
18729
18730 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18731
18732 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18733 (font_parse_xlfd): Use them for sanity check.
18734 (Finternal_set_font_style_table): Make sure the table is bijective.
18735
18736 Consolidate the image_cache to the terminal struct.
18737 * termhooks.h (P_): Remove redundant def.
18738 (struct terminal): New field `image_cache'.
18739 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18740 of FRAME_X_IMAGE_CACHE.
18741 * xterm.h (struct x_display_info): Remove image_cache field.
18742 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18743 * w32term.h (struct w32_display_info): Remove image_cache field.
18744 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18745 * macterm.h (struct mac_display_info): Remove image_cache field.
18746 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18747 * xterm.c (x_term_init):
18748 * w32term.c (w32_term_init):
18749 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18750 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18751 Remove declarations.
18752 (clear_image_caches, mark_image_cache): New declarations.
18753 * xfaces.c (clear_face_cache):
18754 * xdisp.c (redisplay_internal): Use clear_image_caches.
18755 * image.c (clear_image_cache): Don't check that a frame is on
18756 a window-system before checking if it shares the same cache.
18757 (clear_image_caches): New function.
18758 (Fclear_image_cache): Use it.
18759 (mark_image): Move from allo.c.
18760 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18761 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18762 (mark_object): Don't call mark_image_cache for frames.
18763 (mark_terminals): Call mark_image_cache.
18764
18765 * lisp.h (Fdelete_terminal): Declare.
18766
18767 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18768 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18769 wrong_type_argument.
18770
18771 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18772
18773 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18774 malayalam.el, and tamil.el. Add sinhala.el.
18775
18776 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18777
18778 * xterm.c (x_connection_closed): Consolidate identical tests.
18779 (x_delete_terminal): Don't crash if called via x_connection_closed.
18780
18781 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18782
18783 * xdisp.c (decode_mode_spec): New arg string.
18784 (display_mode_element): Adjust for the above change.
18785
18786 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18787
18788 * callint.c (Fcall_interactively): Use AREF.
18789
18790 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18791
18792 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18793
18794 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18795
18796 * xfns.c (Fx_show_tip): Set string to " " if empty.
18797
18798 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18799
18800 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18801 with Qt.
18802
18803 2008-02-17 Kenichi Handa <handa@m17n.org>
18804
18805 * ftfont.c (ftfont_shape): Return Lispy number.
18806
18807 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18808 for GCs.
18809 (Finternal_set_font_selection_order): Call font_update_sort_order
18810 only when enable_font_backend is set.
18811 (realize_x_face): Set face->font_info to that of default face only
18812 when enable_font_backend is set.
18813
18814 * xdisp.c (handle_composition_prop): Set it->c to the fist
18815 character of the composed region.
18816 (fill_composite_glyph_string): Set base_face->font_info to
18817 s->font_info. Get a face for ascii from base_face->ascii_face.
18818 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18819 with a face already decided.
18820 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18821 non-negative.
18822 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18823 call font_prepare_composition unconditionally.
18824
18825 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18826
18827 * xterm.h (struct x_display_info): New member font.
18828
18829 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18830 (x_set_mouse_face_gc, x_new_font): Likewise.
18831 (x_term_init): Setup display_info->font.
18832 (x_delete_terminal): Free display_info->font.
18833
18834 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18835
18836 * ftxfont.c (ftxfont_default_fid): Delete it.
18837 (ftxfont_open): Set xfont->fid to 0.
18838 (ftxfont_end_for_frame): Clear data specific to the frame and the
18839 font-driver.
18840
18841 * xftfont.c (xftfont_default_fid): Delete it.
18842 (xftfont_open): Set xfont->fid to 0.
18843
18844 * fontset.c (FONTSET_OBJLIST): New macro.
18845 (fontset_find_font): Update font-object list of the fontset.
18846 (free_realized_fontset): New function.
18847 (free_face_fontset): Call free_realized_fontset.
18848 (Ffont_info): Call font_close_object only when enable_font_backend
18849 is set.
18850
18851 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18852 [HAVE_NTGUI]: Include w32term.h.
18853 [MAC_OS]: Include macterm.ch.
18854 (font_otf_ValueRecord): Use make_number.
18855 (font_finish_cache): Fix handling of reference count.
18856 (font_clear_cache): Update num_fonts.
18857 (font_open_entity): Update smallest_char_width and
18858 smallest_font_height of the frame.
18859 (font_close_object): Update num_fonts.
18860 (Fclear_font_cache): Fix finding the target cache data.
18861
18862 2008-02-16 Glenn Morris <rgm@gnu.org>
18863
18864 * fontset.c (Finternal_char_font): Fix compilation warning.
18865
18866 2008-02-16 Eli Zaretskii <eliz@gnu.org>
18867
18868 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18869 instead of char arrays. Enlarge the size of array passed to
18870 get_token_information.
18871
18872 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18873 warnings.
18874
18875 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18876
18877 * .gdbinit: Don't set `args', it breaks gdb --args.
18878
18879 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18880
18881 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18882 within a narrowed buffer.
18883
18884 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18885
18886 * coding.c (decode_coding_object, encode_coding_object):
18887 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18888
18889 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18890
18891 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18892 hardcoding 1.
18893 (detect_coding_system):
18894 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18895 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18896 * insdel.c (insert_from_gap):
18897 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18898 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18899 (string_to_multibyte):
18900 * character.c (chars_in_text, multibyte_chars_in_text):
18901 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18902
18903 * character.h (FETCH_STRING_CHAR_ADVANCE)
18904 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18905 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18906 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18907
18908 * casefiddle.c (casify_region): Only call after-change and composition
18909 functions on the part of the region that was changed.
18910
18911 * keyboard.c (read_avail_input):
18912 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18913
18914 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18915
18916 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18917 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18918
18919 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
18920
18921 * w32menu.c (push_submenu_start, push_submenu_end)
18922 (push_left_right_boundary, push_menu_pane, push_menu_item):
18923 * keyboard.c (read_key_sequence): Don't pass args with side effects
18924 to AREF, it fails when compiling with -DENABLE_CHECKING.
18925
18926 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18927
18928 * Makefile.in (${lispsource}international/charprop.el):
18929 Delete this target.
18930
18931 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18932 emacs-unicode-2.
18933
18934 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18935
18936 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18937
18938 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18939
18940 * frame.c (Qnoelisp): New symbol.
18941 (syms_of_frame): Initialize it.
18942 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18943 harmless Elisp code, from a strong `force' from x_connection_closed.
18944 * frame.h (Qnoelisp): Declare.
18945 * xterm.c (x_connection_closed): Pass `noelisp'.
18946
18947 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18948 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18949 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18950 rather than `int' for the type of `type'.
18951
18952 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18953
18954 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18955
18956 * Makefile.in (GNUC): Remove support for gcc-1.x.
18957
18958 2008-02-10 Richard Stallman <rms@gnu.org>
18959
18960 * lisp.h (ASET): Use AREF, not ASLOT.
18961
18962 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18963
18964 * lisp.h (ASET): Check bounds.
18965
18966 2008-02-10 Glenn Morris <rgm@gnu.org>
18967
18968 * buffer.c (mode-name): Doc fix.
18969
18970 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18971
18972 * Makefile.in:
18973 * emacs.c:
18974 * gmalloc.c:
18975 * keyboard.c:
18976 * lisp.h:
18977 * m/ibm370aix.h:
18978 * process.c:
18979 * regex.c:
18980 * s/hpux.h:
18981 * sysdep.c:
18982 * sysselect.h:
18983 * systty.h:
18984 * unexec.c:
18985 * w32term.c:
18986 * xsmfns.c:
18987 * xterm.c: Remove code that deals with obsolete variables.
18988
18989 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18990
18991 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18992 nothing else needs it anymore.
18993
18994 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18995
18996 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18997 instead of unibyte_char_to_multibyte.
18998
18999 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19000
19001 * s/gnu-linux.h: Remove commented out code.
19002
19003 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19004
19005 * Makefile.in: Update what RMS says about using autoconf.
19006 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19007 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19008 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19009 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19010
19011 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19012
19013 * keymap.c (Fkey_description): Move side effect outside of macro call.
19014
19015 * xfaces.c (Finternal_make_lisp_face):
19016 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19017
19018 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19019 (syms_of_fontset): Use ASET.
19020
19021 * fns.c (concat): Move side effect outside of macro call.
19022 (hash_clear): Use ASET.
19023
19024 2008-02-08 Richard Stallman <rms@gnu.org>
19025
19026 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19027 If FORCE, and frame has a surrogate minibuffer for another frame,
19028 delete the other frame first.
19029
19030 2008-02-07 Timo Savola <timo.savola@iki.fi>
19031
19032 * xterm.c (x_detect_focus_change): Handle embed client message.
19033 (handle_one_xevent): Ditto.
19034 (handle_one_xevent): If embedded and we get a button press/release,
19035 request focus.
19036 (xembed_set_info, xembed_send_message): New functions.
19037 (x_make_frame_visible): Call xembed_set_info if embedded.
19038 (x_make_frame_invisible): Call xembed_set_info if embedded.
19039 (x_term_init): Initialize Xatom_XEMBED.
19040 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19041 (x_iconify_frame): Ditto.
19042
19043 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19044 (enum xembed_info, enum xembed_message, enum xembed_focus)
19045 (enum xembed_modifier, enum xembed_accelerator): New.
19046 (xembed_set_info, xembed_send_message): Declare.
19047 (FRAME_X_EMBEDDED_P): New.
19048
19049 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19050 gtk_plug_new.
19051
19052 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19053 window ID of a frame.
19054 (x_window): Reparent frame if embedded.
19055 (Fx_create_frame): Don't set border width if embedded.
19056
19057 * emacs.c (USAGE3): Add --parent-id.
19058 (standard_args): Ditto.
19059
19060 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19061
19062 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19063
19064 2008-02-07 Jim Meyering <meyering@redhat.com>
19065
19066 Use "do...while (0)", not "if (1)...else" in macro definitions.
19067 The latter provokes a warning from gcc about the empty else, when
19068 followed by ";". Also, without that trailing semicolon, it would
19069 silently swallow up any following statement.
19070 * syntax.h (SETUP_SYNTAX_TABLE)
19071 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19072 * buffer.h (DECODE_POSITION): Likewise.
19073 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19074 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19075 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19076 (FETCH_CHAR_ADVANCE): Likewise.
19077 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19078
19079 2008-02-07 Jim Meyering <meyering@redhat.com>
19080
19081 * lread.c [lint]: Don't include <sys/inode.h>.
19082
19083 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19084
19085 * xselect.c (x_handle_dnd_message):
19086 * xmenu.c (digest_single_submenu, xmenu_show):
19087 * xdisp.c (with_echo_area_buffer_unwind_data)
19088 (format_mode_line_unwind_data, unwind_format_mode_line)
19089 (display_menu_bar):
19090 * eval.c (Ffetch_bytecode):
19091 * doc.c (store_function_docstring):
19092 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19093 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19094 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19095
19096 2008-02-07 Kenichi Handa <handa@m17n.org>
19097
19098 * ftxfont.c (ftxfont_open): Don't set
19099 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19100
19101 * ftfont.c (ftfont_open): Fix previous change.
19102
19103 2008-02-06 Jason Rumney <jasonr@gnu.org>
19104
19105 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19106 Use cached metrics for ASCII characters.
19107 (w32font_open_internal): Don't set font's owning_frame.
19108 Cache metrics for ASCII characters.
19109
19110 * w32font.h (struct w32font_info): Add ascii_metrics.
19111 Remove owning_frame.
19112
19113 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19114
19115 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19116 to negative value.
19117
19118 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19119
19120 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19121
19122 * charset.c (syms_of_charset): Set QCtest and Qeq.
19123
19124 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 * process.c (Fstart_process):
19127 * callproc.c (Fcall_process): Handle the case where
19128 Funhandled_file_name_directory returns nil.
19129
19130 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19131 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19132 * font.c (check_gstring): Use them and AREF to access the vector before
19133 we know it's really a gstring.
19134 (Ffont_shape_text): Fix typo.
19135 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
19136
19137 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19138 Declare.
19139
19140 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19141
19142 2008-02-05 Jason Rumney <jasonr@gnu.org>
19143
19144 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19145 Set smallest_font_height and smallest_char_width in display info.
19146
19147 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19148
19149 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19150
19151 2008-02-05 Miles Bader <miles@gnu.org>
19152
19153 * xfaces.c (get_lface_attributes, merge_named_face)
19154 (lookup_named_face, lookup_derived_face, realize_named_face):
19155 Revert 2008-02-01 change by cyd@stupidchicken.com.
19156
19157 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19158
19159 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19160 fallback fonts.
19161 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19162
19163 2008-02-04 Jason Rumney <jasonr@gnu.org>
19164
19165 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19166 set full_name.
19167 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19168
19169 2008-02-03 Jason Rumney <jasonr@gnu.org>
19170
19171 * makefile.w32-in (OBJ1): Include font.o here.
19172 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19173
19174 2008-02-02 Jason Rumney <jasonr@gnu.org>
19175
19176 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19177
19178 2008-02-01 Jason Rumney <jasonr@gnu.org>
19179
19180 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19181
19182 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19183
19184 2008-02-01 Andreas Schwab <schwab@suse.de>
19185
19186 * Makefile.in (shortlisp, lisp): Update for rename of
19187 ../lisp/language/myanmar.el.
19188
19189 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
19190
19191 * xfaces.c (get_lface_attributes): Delete function.
19192 (merge_named_face, lookup_named_face, lookup_derived_face)
19193 (realize_named_face): Call lface_from_face_name directly, and use
19194 the fact that merge_face_vectors does not alter its FROM argument.
19195
19196 2008-02-01 Jason Rumney <jasonr@gnu.org>
19197
19198 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19199 input in the default locale. Handle non-Unicode multibyte input.
19200
19201 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19202
19203 * fontset.c (reorder_font_vector): Exclude nil elements from the
19204 font group. Don't try multiple fonts.
19205 (fontset_font): Adjust for the above change.
19206 (Finternal_char_font): Return nil if the found font doesn't
19207 contain the character ch.
19208
19209 * Makefile.in (lisp, shortlisp): Add cham.el.
19210
19211 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19212
19213 * font.h (FONTP): Make it return 1 also for a font-object.
19214
19215 * .gdbinit (xfontset): New function.
19216
19217 * font.c (font_find_for_lface): Check if the character C is
19218 supported or not only for the first font.
19219
19220 * fontset.c (reorder_font_vector): Fix typo.
19221 (fontset_find_font): Don't add a font-spec specifying a script.
19222 Use 0 (not Qt) for the indication of empty font-group. Change the
19223 format of RFONT-DEF. Return Qt if no font in the font-group
19224 support the character.
19225 (fontset_font): Adjust for the above change. If no font was
19226 found the character, remember that.
19227 (face_for_char): Adjust for the change of RFONT-DEF.
19228 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19229 no font for the target.
19230 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19231
19232 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19233
19234 * font.c (font_load_for_face): Handle the case that the font in
19235 face->lface is a string.
19236
19237 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19238
19239 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19240
19241 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19242
19243 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19244 Fix previous change. If the frame is not on a window system,
19245 signal an error.
19246
19247 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19248
19249 * coding.c (decode_coding_object, encode_coding_object): Adjust
19250 marker positions after conversion.
19251
19252 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19253
19254 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19255
19256 * font.c (font_find_for_lface): Fix the handling of the return
19257 value of font_has_char.
19258 (Ffont_shape_text): Fix previous change.
19259
19260 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19261 (fontset_ref_and_range): Delete it.
19262 (fontset_find_font): Call char_table_ref_and_range instead of
19263 FONTSET_REF_AND_RANGE.
19264 (make_fontset): Don't setup font groups of Latin here.
19265 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19266 (new_fontset_from_font): Make the specified font the default for
19267 all Latin characters.
19268
19269 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19270
19271 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19272 is on a window system before accessing the fontset of the frame.
19273
19274 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19275
19276 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19277
19278 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19279 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19280
19281 * font.c (Ffont_shape_text): If the font driver doesn't have a
19282 shaper function, make zero-width glyphs to have at least one-pixel
19283 width. Fix setting of `to' field of glyphs.
19284
19285 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19286
19287 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19288 glyphs.
19289
19290 * font.h (struct font_driver): Improve docstring of member `shape'.
19291
19292 2008-02-01 Kenichi Handa <handa@m17n.org>
19293
19294 * composite.c (syms_of_composite): Fix docstring of
19295 auto-composition-function.
19296
19297 * font.h (LGLYPH_SIZE): New macro.
19298
19299 * font.c (Ffont_fill_gstring): Stop filling when a character not
19300 supported by the font is found.
19301 (Ffont_shape_text): When a shape callback function returns nil,
19302 try at most two more times with larger gstring.
19303 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19304
19305 * xdisp.c (handle_auto_composed_prop): Change the argument to
19306 auto-composition-function.
19307
19308 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19309 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19310 Lispy glyph and store it in the lgstring.
19311
19312 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19313
19314 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19315
19316 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19317
19318 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19319
19320 * fontset.c (Vfont_encoding_charset_alist): New variable.
19321 (syms_of_fontset): DEFVAR it.
19322 (reorder_font_vector, fontset_find_font): Optimize for the case of
19323 no need of reordering.
19324 (face_for_char): Map the charset property by
19325 Vfont_encoding_charset_alist.
19326
19327 2008-02-01 Jason Rumney <jasonr@gnu.org>
19328
19329 * w32font.c (logfonts_match): Don't check adstyle here.
19330 (font_matches_spec): Check here against physical font instead.
19331 (add_font_entity_to_list): Avoid some substitutions.
19332
19333 * font.c (font_parse_fcname): Default weight and slant to normal.
19334 (font_score): Prefer normal fonts if weight or slant unspecified.
19335 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19336 match freetype scores.
19337
19338 2008-02-01 Jason Rumney <jasonr@gnu.org>
19339
19340 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19341 font, as it may have been deleted.
19342 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19343 most common hyphenless variation.
19344 (logfonts_match): Check generic family.
19345 (font_matches_spec): Don't check generic family here.
19346 (fill_in_logfont): Set generic family based on adstyle.
19347
19348 * w32font.h (w32font_get_cache): Update declaration.
19349
19350 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19351
19352 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19353
19354 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19355 If none of the new drivers are available, call font_update_drivers
19356 with the old drivers.
19357
19358 * w32font.c (w32font_get_cache): Adjust the argument type.
19359
19360 * xfont.c (xfont_get_cache): Adjust the argument type.
19361
19362 * font.h (struct font_driver): Change argument type of get_cache.
19363
19364 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19365
19366 * font.c (Ffont_get): Fix arguments to Fassoc.
19367 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19368 (font_clear_cache): New function.
19369 (font_list_entities, font_matching_entity): Use font_get_cache.
19370 (font_update_drivers): Call font_clear_cache when finishing a driver.
19371
19372 * fontset.c (fontset_find_font): Fix previous change.
19373
19374 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19375
19376 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19377 dpyinfo->font_table.
19378 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19379 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19380
19381 * font.c (font_at): Handle the case that the arg C is negative.
19382 Handle the unibyte case.
19383 (Ffont_at): Call font_at with the arg C -1.
19384
19385 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19386 the position here, and call font_at with the arg C -1.
19387 Don't check the range of the existing composition at the point.
19388
19389 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19390
19391 * fontset.c (fontset_add): New args charset_id and family.
19392 Change caller.
19393 (load_font_get_repertory, fontset_find_font): Assume that
19394 font_spec is always a font-spec object.
19395 (Fset_fontset_font): Always store a font-spec object in a fontset.
19396
19397 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19398 instead of get_property_and_range.
19399
19400 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19401
19402 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19403 (xftfont_open): Don't keep locking face.
19404 (xftfont_close): Don't unlock face.
19405 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19406
19407 * fontset.c (fontset_find_font): Don't prefer a font of
19408 supplementary charset.
19409
19410 2008-02-01 Kenichi Handa <handa@m17n.org>
19411
19412 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19413 script, langsys_tag to langsys, new member script.
19414 (OTF_TAG_STR): Terminate by '\0'.
19415 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
19416 listing to the script specified in that property. Fix arg to
19417 OTF_check_features.
19418
19419 2008-02-01 Jason Rumney <jasonr@gnu.org>
19420
19421 * w32font.h: New file.
19422
19423 * w32font.c: Include it.
19424 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19425 (w32font_open): Set owning_frame.
19426 (w32font_text_extents): Use owning_frame.
19427 (struct font_callback_data): Add opentype_only field.
19428 (add_font_entity_to_list): Use it to filter fonts.
19429 Don't check against full name.
19430 (w32font_list_internal): New function.
19431 (w32font_list): Use it.
19432 (w32font_match_internal): New function.
19433 (w32font_match): Use it.
19434 (w32font_open_internal): New function.
19435 (w32font_open): Use it.
19436 (w32font_get_cache, w32font_close, w32font_has_char)
19437 (w32font_encode_char, w32font_text_extents, w32font_draw):
19438 Make non-static.
19439
19440 * makefile.w32-in (w32font.o): Depend on w32font.h.
19441
19442 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19443
19444 * charset.c (Fdefine_charset_internal): Record a supplementary
19445 charset at the tail of Vcharset_order_list.
19446
19447 * font.c (Ffont_shape_text): Fix the return value.
19448
19449 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19450
19451 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19452
19453 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19454
19455 * ftfont.c (struct OpenTypeSpec): New struct.
19456 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19457 (ftfont_get_open_type_spec): New function.
19458 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19459
19460 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19461
19462 2008-02-01 Jason Rumney <jasonr@gnu.org>
19463
19464 * w32font.c (add_font_entity_to_list): Compare only the beginning
19465 of full name.
19466
19467 2008-02-01 Kenichi Handa <handa@m17n.org>
19468
19469 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19470 Never return HANDLED_RECOMPUTE_PROPS.
19471
19472 2008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * font.c (font_gstring_produce): Delete it.
19475
19476 * composite.h (COMPOSITION_METHOD):
19477 Handle COMPOSITION_WITH_GLYPH_STRING.
19478
19479 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19480
19481 * xfont.c (Qx): Delete.
19482 (syms_of_xfont): Don't initialize Qx.
19483
19484 * composite.h (enum composition_method):
19485 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19486
19487 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19488
19489 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19490 (choose_face_font): Accept new form of font-spec.
19491
19492 * frame.h (font_driver_list): Declare it unconditionally.
19493 (struct frame): Define members font_driver_list and font_data_list
19494 unconditionally.
19495
19496 * fontset.c: Include "font.h" unconditionally.
19497 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19498 (Fset_fontset_font): Accept a font-spec object.
19499
19500 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19501 PIXEL_SIZE part a wild card.
19502
19503 * dispextern.h (struct glyph_string): Define members clip and
19504 num_clips unconditionally.
19505 (struct face): Define members font_info and extra unconditionally.
19506
19507 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19508 ftfont_info only when HAVE_LIBOTF is defined.
19509
19510 2008-02-01 Andreas Schwab <schwab@suse.de>
19511
19512 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19513 and end.
19514
19515 2008-02-01 Jason Rumney <jasonr@gnu.org>
19516
19517 * w32font.c (w32font_driver): Add new fields.
19518
19519 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19520
19521 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19522 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19523 (LIBES): Add @M17N_FLT_CFLAGS@.
19524
19525 * composite.c (compose_text): Don't treat the new style
19526 composition specially.
19527
19528 * emacs.c (main): Call syms_of_font unconditionally.
19529
19530 * font.h (FONT_ENTITY_NOT_LOADABLE)
19531 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19532 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19533 (struct font_driver): New member shape.
19534 (font_registry_charsets): Extern it.
19535 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19536 (font_otf_capability, font_drive_otf): Delete their externs.
19537
19538 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19539 (font_charset_alist, font_registry_charsets): Move from xfont.c
19540 and rename.
19541 (font_prop_validate_otf): New function.
19542 (font_property_table): Register it for QCotf.
19543 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19544 (font_drive_otf): Delete.
19545 (font_prepare_composition): New arg F. Adjust for the change of
19546 lispy gstring.
19547 (font_find_for_lface): New arg C.
19548 (font_load_for_face): Adjust for the change of font_find_for_lface.
19549 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19550 lispy gstring.
19551 (Ffont_shape_text): New function.
19552 (Fopen_font): If the font size is not given, use 12-pixel.
19553 (Ffont_at): New arg STRING.
19554 (syms_of_font): Initialize font_charset_alist.
19555 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19556 conditionally.
19557
19558 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19559 fonts of the same font-spec. Change the format of RFONT-DEF.
19560 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19561 Adjust for the change of RFONT-DEF.
19562 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19563
19564 * ftfont.h: New file.
19565
19566 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19567 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19568 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19569 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19570 font_otf_capability and font_drive_otf, set ftfont_shape.
19571 (ftfont_list): Adjust for the change of :otf property value.
19572 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19573 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19574 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19575 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19576 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19577 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19578
19579 * w32term.c (x_draw_composite_glyph_string_foreground):
19580 Adjust for the change of lispy gstring.
19581
19582 * xdisp.c (handle_composition_prop): Adjust for the change of
19583 lispy gstring. Call a function for auto-composition with the
19584 third arg it->window.
19585 (fill_composite_glyph_string): Adjust for the change of lispy string.
19586 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19587
19588 * xfaces.c (set_font_frame_param): Adjust for the change of
19589 font_find_for_lface.
19590
19591 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19592 (xfont_registry_charsets): Likewise. Change caller.
19593 (syms_of_xfont): Don't handle x_font_charset_alist.
19594
19595 * xftfont.c: Include "ftfont.h".
19596 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19597 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19598 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19599 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19600 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19601 Set xftfont_driver.shape to xftfont_shape.
19602
19603 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19604 the change of lispy gstring.
19605
19606 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19607
19608 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19609
19610 2008-02-01 Jason Rumney <jasonr@gnu.org>
19611
19612 * w32font.c (w32font_draw): Fill background manually.
19613
19614 2008-02-01 Jason Rumney <jasonr@gnu.org>
19615
19616 * font.c (Qfontp): Remove unused symbol.
19617 (QCantialias): New symbol.
19618 (syms_of_font): Define it.
19619 (font_property_table): Set a validator for QCantialias.
19620
19621 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19622 Define if not already.
19623 (QCfamily): Share with xfaces.c.
19624 (Qstandard, Qsubpixel, Qnatural): New symbols.
19625 (syms_of_w32font): Define them. Don't define QCfamily here.
19626 (w32_antialias_type, lispy_antialias_type): New functions.
19627 (w32_enumfont_pattern_entity): New arg requested_font.
19628 Set antialias parameter if non-default was requested.
19629 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19630
19631 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19632
19633 * lread.c (read1): Undo the previous change.
19634
19635 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19636
19637 * frame.c (Fdelete_frame): Call font_update_drivers only when
19638 USE_FONT_BACKEND is defined.
19639
19640 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19641
19642 * font.h (struct font_bitmap): New member bits_per_pixel.
19643 (struct font_driver): New members start_for_frame and end_for_frame.
19644 (struct font_data_list): New struct.
19645 (font_put_frame_data, font_get_frame_data): Extern them.
19646
19647 * frame.h (struct frame): New member font_data_list.
19648
19649 * font.c (font_update_drivers): Call driver->start_for_frame and
19650 driver->end_for_frame at proper timings.
19651 (font_put_frame_data, font_get_frame_data): New functions.
19652 (Ffont_spec): Add usage in the docstring.
19653
19654 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19655 (Fdelete_frame): Call font_update_drivers.
19656
19657 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19658 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19659 (xftfont_get_xft_draw): New function.
19660 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19661 (xftfont_end_for_frame): New function.
19662 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19663
19664 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19665 Change argument. Cache GCs in the per-frame data.
19666 (struct ftxfont_frame_data): New struct.
19667 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19668 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19669 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19670 (ftxfont_end_for_frame): New function.
19671 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19672
19673 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19674
19675 2008-02-01 Kenichi Handa <handa@m17n.org>
19676
19677 * xselect.c (Vselection_coding_system)
19678 (Vnext_selection_coding_system): Delete them.
19679 (syms_of_xselect): Don't declare selection-coding-system and
19680 next-selection-coding-system. They are declared in select.el.
19681
19682 2008-02-01 Jason Rumney <jasonr@gnu.org>
19683
19684 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19685
19686 * w32fns.c: Include imm.h.
19687 (get_composition_string_fn, get_ime_context_fn): New optional
19688 system functions.
19689 (globals_of_w32fns): Load them from imm32.dll.
19690 (ignore_ime_char): New flag.
19691 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19692 WM_IME_ENDCOMPOSITION messages.
19693
19694 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19695 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19696
19697 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19698
19699 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19700 (READCHAR_REPORT_MULTIBYTE): New macro.
19701 (readchar): New 2nd arg MULTIBYTE.
19702 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19703 Make symbol's name multibyte according to the multibyteness of the
19704 source.
19705
19706 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19707
19708 * xfaces.c (face_for_overlay_string): Call lookup_face with
19709 correct arguments (fix of synching with the trunk).
19710
19711 2008-02-01 Kenichi Handa <handa@m17n.org>
19712
19713 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19714 (font_prop_validate_non_neg, font_prop_validate_spacing):
19715 Delete argument prop_index.
19716 (font_property_table): Change arguments to validater. Change Callers.
19717 (font_lispy_object): Delete.
19718 (font_at): Use font_find_object instead fo font_lispy_object.
19719
19720 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19721
19722 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19723 and file names.
19724
19725 2008-02-01 Jason Rumney <jasonr@gnu.org>
19726
19727 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19728 (font_matches_spec): Remove debug output.
19729 (add_font_entity_to_list): Avoid using substituted fonts.
19730
19731 2008-02-01 Jason Rumney <jasonr@gnu.org>
19732
19733 * doc.c (Fsnarf_documentation):
19734 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19735
19736 2008-02-01 Miles Bader <miles@gnu.org>
19737
19738 * dispextern.h (struct glyph_row): Only define "clip" field if
19739 HAVE_WINDOW_SYSTEM is defined.
19740
19741 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19742
19743 Fix up multi-tty merge.
19744
19745 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19746 and indentation.
19747
19748 * xfaces.c (free_realized_face, clear_face_gcs):
19749 Include font_done_for_face in the input_blocked section, just in case.
19750
19751 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19752 (get_char_face_and_encoding): Undo last change and remove the *other*
19753 duplicate definition (i.e. keep the one that's better scoped and that
19754 includes code for the font-backend).
19755
19756 * terminal.c (create_terminal): Default keyboard_coding to
19757 `no-conversion' and terminal_coding to `undecided'.
19758
19759 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19760
19761 * fontset.c (free_realized_fontsets): Check that the table entry does
19762 contain a fontset before trying to compare it to `base'.
19763
19764 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19765 syms_of_charset, and syms_of_coding earlier because init_window_once
19766 now needs Vcoding_system_hash_table to be setup.
19767
19768 * coding.h (default_buffer_file_coding): Remove.
19769
19770 * coding.c (default_buffer_file_coding): Remove.
19771 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19772 than ->symbol, and use the terminal-local coding system.
19773 (syms_of_coding): Don't setup the coding-systems that are not
19774 terminal-local.
19775 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19776
19777 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19778 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19779
19780 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19781 in chartab.c and were re-added here by mistake.
19782 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19783
19784 * doc.c (Fsnarf_documentation):
19785 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19786 src to etc.
19787
19788 * ChangeLog.10: Add mistakenly removed entry.
19789
19790 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19791
19792 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19793
19794 2008-02-01 Miles Bader <miles@gnu.org>
19795
19796 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19797 Add extra args to FACE_FOR_CHAR.
19798
19799 2008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19802 in sequence.
19803
19804 * chartab.c (map_sub_char_table, map_char_table): If the range
19805 contains just one character, call the function with that character
19806 even if the depth is not 3.
19807
19808 2008-02-01 Jason Rumney <jasonr@gnu.org>
19809
19810 * w32font.c (w32font_text_extents): Calculate metrics for the
19811 whole string.
19812
19813 2008-02-01 Jason Rumney <jasonr@gnu.org>
19814
19815 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19816
19817 2008-02-01 Jason Rumney <jasonr@gnu.org>
19818
19819 * w32term.c (x_set_glyph_string_clipping): Use
19820 get_glyph_string_clip_rects.
19821 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19822 Adjust for the change of struct glyph_string.
19823
19824 * w32font.c (w32font_draw): Do clipping here.
19825
19826 2008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * xftfont.c (xftfont_draw): Adjust for the change of struct
19829 glyph_string.
19830
19831 * xterm.c (x_set_glyph_string_clipping): Use
19832 get_glyph_string_clip_rects.
19833 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19834 Adjust for the change of struct glyph_string.
19835
19836 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19837 the resulting clip(s}.
19838 (expose_overlaps): Add arg r. Change callers. Set it to
19839 row->clip temporarily.
19840 (expose_window): Redraw rows overlapping the exposed area.
19841
19842 * dispextern.h (struct glyph_row): New member clip.
19843 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19844 clip_height, new member clip, and num_clips.
19845
19846 2008-02-01 Kenichi Handa <handa@m17n.org>
19847
19848 * data.c (Fchar_or_string_p): Fix docstring.
19849
19850 2008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19853 create a temporary XftDraw object.
19854
19855 2008-02-01 Kenichi Handa <handa@m17n.org>
19856
19857 * font.c (Ffontp): Fix docstring.
19858
19859 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19860 strong evidence of ISO-2022.
19861
19862 2008-02-01 Kenichi Handa <handa@m17n.org>
19863
19864 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19865 SYNTAX_ENTRY_FOLLOW_PARENT.
19866
19867 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19868
19869 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19870 its type.
19871 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19872 Update to the new type of weak_hash_tables and next_weak.
19873
19874 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19875 a plain C pointer to Lisp_Hash_Table.
19876
19877 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19878 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19879 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19880 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19881 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19882 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19883 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19884 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19885 (GC_EQ): Remove since they've been identical to their non-GC_
19886 alter-egos ever since the markbit was eradicated.
19887
19888 * alloc.c:
19889 * buffer.c:
19890 * buffer.h:
19891 * data.c:
19892 * fileio.c:
19893 * filelock.c:
19894 * fns.c:
19895 * frame.h:
19896 * lisp.h:
19897 * macterm.c:
19898 * print.c:
19899 * process.c:
19900 * w32fns.c:
19901 * w32menu.c:
19902 * w32term.c:
19903 * xfns.c:
19904 * xmenu.c:
19905 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19906
19907 2008-02-01 Kenichi Handa <handa@m17n.org>
19908
19909 * chartab.c (map_sub_char_table): Make it work for the top-level
19910 char-table. Fix handling of parent char-table.
19911 (map_char_table): Adjust for the above change.
19912
19913 2008-02-01 Jason Rumney <jasonr@gnu.org>
19914
19915 * w32font.c (Qgdi): Rename from Qw32.
19916
19917 2008-02-01 Jason Rumney <jasonr@gnu.org>
19918
19919 * w32bdf.c (get_quoted_string): Make function static.
19920
19921 2008-02-01 Kenichi Handa <handa@m17n.org>
19922
19923 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19924 bigger ascent and descent than those of the font, use them as
19925 font's ascent and descent.
19926
19927 2008-02-01 Kenichi Handa <handa@m17n.org>
19928
19929 * Makefile.in (${lispsource}international/charprop.el): Move this
19930 target within "#ifdef HAVE_UNIDATA" and "#endif".
19931
19932 2008-02-01 Kenichi Handa <handa@m17n.org>
19933
19934 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19935 (shortlisp): Add ../lisp/language/tai-viet.el.
19936
19937 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
19938
19939 * Makefile.in (${lispsource}international/charprop.el): Depend on
19940 temacs${EXEEXT}.
19941
19942 2008-02-01 Jason Rumney <jasonr@gnu.org>
19943
19944 * w32font.c (w32font_close): Delete the GDI font object.
19945
19946 * w32menu.c: Include character.h.
19947
19948 * w32proc.c: Likewise.
19949
19950 * w32select.c: Likewise.
19951
19952 * makefile.w32-in (w32proc.o): Depend on character.h.
19953
19954 2008-02-01 Jason Rumney <jasonr@gnu.org>
19955
19956 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19957
19958 * w32menu.c (syms_of_w32menu): Likewise.
19959
19960 * w32proc.c (syms_of_ntproc): Likewise.
19961
19962 * w32select.c (syms_of_w32select): Likewise.
19963
19964 * w32term.c (syms_of_w32term): Likewise.
19965
19966 2008-02-01 Jason Rumney <jasonr@gnu.org>
19967
19968 * w32font.c (w32font_draw): Delete brush after using it.
19969
19970 2008-02-01 Jason Rumney <jasonr@gnu.org>
19971
19972 * w32font.c (w32font_open): Don't set font_idx.
19973 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19974 to font settings.
19975 (w32font_draw): Fill background explicitly.
19976
19977 2008-02-01 Jason Rumney <jasonr@gnu.org>
19978
19979 * w32term.c (w32_initialize): Don't call w32font_initialize.
19980
19981 * w32font.c (w32font_info): Remove subranges.
19982 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19983 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19984 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19985 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19986 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19987 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19988 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19989 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19990 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19991 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19992 New symbols.
19993 (font_callback_data): New struct.
19994 (w32font_list, w32font_match): Use it.
19995 (w32font_open): Don't populate subranges.
19996 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19997 (w32font_encode_char): Always return unicode code-point as-is.
19998 (w32font_text_extents): Supply a transformation matrix to
19999 GetGlyphOutline. Never look up by glyph index. Avoid looping
20000 twice. Use unicode version of GetTexExtentPoint32 instead of
20001 glyph index version.
20002 (set_fonts_frame): Remove.
20003 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20004 set frame parameter. Use backward compatible fake foundries.
20005 Save generic family in extra slot under QCfamily. Make width slot
20006 constant. Save QCspacing value. Save list of scripts instead of
20007 binary subranges.
20008 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20009 (add_font_entity_to_list): Use font_callback_data struct. Filter
20010 unwanted fonts.
20011 (add_one_font_entity_to_list): Use font_callback_data struct.
20012 (w32_registry): Default to iso10646_1.
20013 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20014 string font registries. Don't fill in font name if it is a generic
20015 family name, fill family instead. Use spacing, family and script
20016 extra info to fill pitch, family and charset fields.
20017 (list_all_matching_fonts): Use font_callback_data struct.
20018 (unicode_range_for_char): Remove.
20019 (font_supported_scripts): New function.
20020 (w32font_initialize): Remove.
20021 (syms_of_w32font): Update which symbols are defined.
20022
20023 2008-02-01 Jason Rumney <jasonr@gnu.org>
20024
20025 * font.c (font_pixel_size): Reverse assq_no_quit args.
20026
20027 * w32term.h (FONT_WIDTH): Report max width, not average.
20028 (FONT_MAX_WIDTH): Remove.
20029 (FONT_AVG_WIDTH): New macro.
20030
20031 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20032 redefinition of FONT_WIDTH.
20033
20034 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20035 (w32_cache_char_metrics): Use FONT_WIDTH.
20036
20037 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20038
20039 2008-02-01 Jason Rumney <jasonr@gnu.org>
20040
20041 * w32font.c (w32font_open): Make lfHeight negative.
20042
20043 * w32fns.c (x_default_font_parameter): Use new style font name.
20044 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20045
20046 2008-02-01 Jason Rumney <jasonr@gnu.org>
20047
20048 * w32font.c (QCsubranges): New symbol.
20049 (w32font_open, w32font_has_char): Get subranges from subproperty
20050 of extra.
20051 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20052 (syms_of_w32font): Define :subranges symbol.
20053
20054 * font.c (font_put_extra): Expose externally.
20055
20056 * font.h (font_put_extra): Move declaration from font.c.
20057
20058 * font.c (Ffont_get): Use font driver to determine otf capability.
20059 (adjust_anchor): Check if driver defines anchor_point before using.
20060
20061 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20062 (w32font_draw): Use options.
20063 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20064 Fix detection of truetype fonts.
20065 (registry_to_w32_charset): Handle charsets other than iso8859-1
20066 expressed as lisp symbols.
20067 (w32_registry): Express charset as lisp symbol.
20068 (fill_in_logfont): Reverse pixel and point height logic.
20069 Don't set width here. Set quality to default.
20070
20071 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20072 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20073
20074 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20075 Remove redundant loop and allocation.
20076
20077 * makefile.w32-in (font.o, w32font.o): New objects.
20078 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20079 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20080
20081 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20082 STORE_XCHARB a valid l-value.
20083
20084 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20085 calculations for non-Truetype fonts.
20086 (x_draw_glyph_string): Sync with xterm.c.
20087 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20088 Remove redundant code.
20089 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20090
20091 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20092 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20093
20094 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20095 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20096
20097 * w32font.c: New file for w32 font backend.
20098
20099 2008-02-01 Kenichi Handa <handa@m17n.org>
20100
20101 * term.c: Don't include "buffer.h" twice.
20102
20103 2008-02-01 Kenichi Handa <handa@m17n.org>
20104
20105 * character.c (Funibyte_string): New function.
20106 (syms_of_character): Defsubr it.
20107
20108 2008-02-01 Jason Rumney <jasonr@gnu.org>
20109
20110 * w32term.c [USE_FONT_BACKEND]:
20111 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20112 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20113 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20114 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20115 (x_free_frame_resources): Sync with xterm.c.
20116
20117 2008-02-01 Andreas Schwab <schwab@suse.de>
20118
20119 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20120 char-table size.
20121
20122 2008-02-01 Kenichi Handa <handa@m17n.org>
20123
20124 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20125
20126 2008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20129 font_otf_gpos, add font_drive_otf.
20130
20131 * fontset.c (fontset_find_font): Pay attention to font size
20132 specified for a font.
20133 (reorder_font_vector): Check contents of font_def.
20134
20135 * font.c (struct otf_list): Delete it.
20136 (otf_list): Make it a lisp variable.
20137 (otf_open): Use lispy otf_list.
20138 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20139 (check_otf_features): New function.
20140 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20141 New functions.
20142 (font_drive_otf): New function merging font_otf_gsub and
20143 font_otf_gpos.
20144 (font_open_for_lface): New arg spec. Change argument order.
20145 (font_load_for_face): Adjust for the change of font_open_for_lface.
20146 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20147 Ffont_otf_gpos.
20148 (syms_of_font): Staticpro otf_list. Delete defsubr of
20149 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20150
20151 * xfaces.c (set_font_frame_param): Adjust for the change of
20152 font_open_for_lface.
20153
20154 * font.h (font_open_for_lface): Adjust prototype.
20155 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20156 member otf_drive.
20157 (font_otf_gsub, font_otf_gpos): Delete externs.
20158 (font_drive_otf): Extern it.
20159
20160 2008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 * font.c (font_at): If the window W is not on a window system,
20163 return Qnil.
20164
20165 * coding.c (produce_chars, encode_coding): Don't call
20166 insert_from_gap if no characters to produce.
20167
20168 2008-02-01 Kenichi Handa <handa@m17n.org>
20169
20170 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20171 Fclear_face_cache.
20172
20173 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20174
20175 2008-02-01 Miles Bader <miles@gnu.org>
20176
20177 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20178 Parse "--disable-font-backend" option.
20179 (standard_args): Add "--disable-font-backend" option.
20180
20181 2008-02-01 Kenichi Handa <handa@m17n.org>
20182
20183 * fontset.c (fontset_find_font): New function.
20184 (fontset_font): Use fontset_find_font.
20185 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20186 Register the specified font for all Latin characters.
20187 (new_fontset_from_font): Register the specified font for all Latin
20188 characters.
20189 (dump_fontset): For a realized fontset, include the base fontset
20190 name in the returned vector.
20191
20192 2008-02-01 Kenichi Handa <handa@m17n.org>
20193
20194 * character.h (CHAR_STRING): Cast C to unsigned on calling
20195 char_string.
20196
20197 * character.c (char_string): Type of arg C changed to unsigned.
20198 Signal an error if C is an invalid character code.
20199
20200 * editfns.c (general_insert_function, Fchar_to_string):
20201 Use CHARACTERP, not INTEGERP.
20202
20203 2008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20206 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20207
20208 * regex.c (analyse_first): Fix for multibyte characters in "case
20209 charset:" and "case categoryspec:".
20210
20211 2008-02-01 Andreas Schwab <schwab@suse.de>
20212
20213 * Makefile.in (LIBES): Move standard libraries to the end.
20214
20215 2008-02-01 Kenichi Handa <handa@m17n.org>
20216
20217 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20218 nonzero, don't shrink the buffer nextb.
20219
20220 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20221
20222 * coding.c (coding_alloc_by_making_gap): New arg offset.
20223 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20224 offset.
20225 (decode_coding_iso_2022): Update coding->safe_charsets.
20226 (decode_coding_gap): Temporarily set
20227 current_buffer->text->inhibit_shrinking to 1.
20228
20229 2008-02-01 Kenichi Handa <handa@m17n.org>
20230
20231 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20232 indexing into elements of s->cmp and s->char2b.
20233
20234 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
20235
20236 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20237
20238 2008-02-01 Kenichi Handa <handa@m17n.org>
20239
20240 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20241 target_multibyte instead of multibyte.
20242 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20243 (bcmp_translate): Change the argument name from multibyte to
20244 target_multibyte.
20245
20246 2008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 These changes are to compile a regexp into a pattern that can be
20249 used both for multibyte and unibyte targets.
20250
20251 * Makefile.in (search.o): Depend on charset.h.
20252
20253 * character.c (multibyte_char_to_unibyte_safe): New function.
20254
20255 * search.c: Include "charset.h".
20256 (compile_pattern_1): Delete argument multibyte. Don't set
20257 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20258 (compile_pattern): Don't compare cp->buf.target_multibyte.
20259 Compare cp->buf.charset_unibyte.
20260 (compile_pattern): Set cp->buf.target_multibyte.
20261
20262 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20263
20264 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20265
20266 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20267 multibyte. Change callers.
20268 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20269 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20270 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20271 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20272 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20273 (regex_compile): Make the compiled pattern usable both for
20274 multibyte and unibyte targets.
20275 (analyse_first): Make the fastmap usable both for multibyte and
20276 unibyte targets.
20277 (TRANSLATE_VIA_MULTIBYTE): Delete.
20278 (re_match_2_internal): Pay attention to the case that the
20279 multibyteness of bufp and target may be different.
20280
20281 2008-02-01 Kenichi Handa <handa@m17n.org>
20282
20283 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20284 empty box occupy at least one column width.
20285
20286 2008-02-01 Miles Bader <miles@gnu.org>
20287
20288 * Makefile.in: Remove redundant HAVE_XFT clause.
20289
20290 2008-02-01 Kenichi Handa <handa@m17n.org>
20291
20292 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20293
20294 2008-02-01 Kenichi Handa <handa@m17n.org>
20295
20296 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20297 being nil.
20298
20299 2008-02-01 Kenichi Handa <handa@m17n.org>
20300
20301 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20302
20303 2008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20306
20307 2008-02-01 Kenichi Handa <handa@m17n.org>
20308
20309 * search.c (simple_search): Fix previous change.
20310
20311 2008-02-01 Kenichi Handa <handa@m17n.org>
20312
20313 * xftfont.c (ftfont_font_format): Extern declaration.
20314
20315 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20316
20317 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20318 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20319
20320 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20321 (ftfont_font_format): Fix previous change.
20322
20323 * font.h (Ffont_xlfd_name): EXFUN it.
20324
20325 * font.c (font_parse_xlfd): Fix the array size of `f'.
20326 (register_font_driver): Use EQ to compare driver->type.
20327
20328 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20329 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20330 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20331
20332 2008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20335 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20336
20337 2008-02-01 Kenichi Handa <handa@m17n.org>
20338
20339 * xfont.c (xfont_open): Set font->format.
20340
20341 * xftfont.c (xftfont_open): Set font->format.
20342
20343 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20344 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20345 (ftfont_open): Set font->format.
20346 (ftfont_font_format): New function.
20347
20348 * font.h (struct font): New member format.
20349
20350 * font.c (Qopentype): New variable.
20351 (syms_of_font): Defsym it.
20352 (Fquery_font): Change the format of the last element of the return
20353 value.
20354
20355 2008-02-01 Kenichi Handa <handa@m17n.org>
20356
20357 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20358 last resort.
20359
20360 2008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (detect_coding_charset): Fix detection of multi-byte
20363 charset.
20364
20365 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20366
20367 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20368
20369 2008-02-01 Kenichi Handa <handa@m17n.org>
20370
20371 * xdisp.c (get_next_display_element): Set it->face_id for the
20372 first component of a composition.
20373 (x_produce_glyphs): Check if the font is changed or not for composition.
20374
20375 2008-02-01 Kenichi Handa <handa@m17n.org>
20376
20377 * fontset.c (Qlatin): New variable.
20378 (syms_of_fontset): Define it as a lisp symbol.
20379 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20380
20381 2008-02-01 Kenichi Handa <handa@m17n.org>
20382
20383 * font.c (font_unparse_fcname): Pay attention to the case that
20384 some of font property is a null string.
20385
20386 2008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * term.c: Include "composite.h".
20389 (encode_terminal_code): Output all components of composition.
20390 Check the size of encode_terminal_src.
20391 (produce_glyphs): For composition, call produce_composite_glyph.
20392 (append_composite_glyph, produce_composite_glyph): New functions.
20393
20394 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20395 is not found, get font_info from the current ascii face.
20396
20397 2008-02-01 Kenichi Handa <handa@m17n.org>
20398
20399 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20400 buffer-file-name to Qnil before calling insert_from_buffer.
20401
20402 * font.c (font_unparse_fcname): Pay attention to the case that
20403 foundry is a null string.
20404
20405 2008-02-01 Kenichi Handa <handa@m17n.org>
20406
20407 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20408
20409 * font.c (Qunicode_sip): New variable.
20410 (syms_of_font): Declare it as a Lisp symbol.
20411
20412 * font.h (Qunicode_sip): Extern it.
20413
20414 2008-02-01 Kenichi Handa <handa@m17n.org>
20415
20416 * composite.c (get_composition_id): Pay attention to TAB component.
20417
20418 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20419 TAB. Adjust for the change of s->char2b which always points to
20420 the first element of allocated memory.
20421
20422 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20423
20424 * xdisp.c (handle_composition_prop): Set it->c to the first
20425 non-TAB component.
20426 (fill_composite_glyph_string): Change argument.
20427 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20428 (x_produce_glyphs): Fix handling of left/right padding.
20429
20430 2008-02-01 Kenichi Handa <handa@m17n.org>
20431
20432 * coding.c (detect_coding_system): Fix for handling off
20433 inhibit_iso_escape_detection. Fix for the case that no coding
20434 system is defined for a specific coding category.
20435
20436 2008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 * font.c (font_matching_entity): Delete unused local var.
20439
20440 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20441 opening a font.
20442
20443 * fileio.c (Finsert_file_contents): On recovering a file, assume
20444 Unix-like eol.
20445 (choose_write_coding_system): On auto-saving a file, force
20446 Unix-like eol.
20447
20448 * coding.c (setup_coding_system): Fix setting of
20449 coding->common_flags based on eol_type.
20450 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20451 inherit from it.
20452
20453 2008-02-01 Kenichi Handa <handa@m17n.org>
20454
20455 * alloc.c (NSTATICS): Increas to 0x600.
20456
20457 2008-02-01 Kenichi Handa <handa@m17n.org>
20458
20459 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20460 (ftfont_list): Don't check :name property.
20461 (ftfont_match): New function.
20462 (ftfont_pattern_entity): If the pattern doesn't contain
20463 FC_SPACING, don't assume FC_MONO.
20464
20465 * font.h (struct font_driver): New member `match'.
20466 (font_update_drivers): Adjust prototype.
20467
20468 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20469 property of FONT.
20470 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20471 them unconditionally.
20472 (font_matching_entity): New function.
20473 (font_open_by_name): Try font_matching_entity if exact match is
20474 not found.
20475 (font_update_drivers): Delete the arg FONT. Return a list of
20476 actually used backends. Don't free faces, font caches here.
20477 Don't store data in frame parameters. Don't call x_set_font.
20478 (Ffont_spec): Store :name property as is.
20479 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20480 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20481 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20482 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20483 Call font->driver->otf_gsub instead of font_otf_gsub.
20484
20485 * frame.c (x_set_font_backend): Do more works that were done in
20486 font_update_drivers before.
20487
20488 * xfont.c (xfont_match): New function.
20489 (xfont_driver): Set xfont_driver.match to xfont_match.
20490 (xfont_draw): Set font in GC if necessary.
20491
20492 * ftxfont.c (ftxfont_match): New function.
20493 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20494
20495 * xftfont.c (xftfont_match): New function.
20496 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20497
20498 2008-02-01 Kenichi Handa <handa@m17n.org>
20499
20500 * font.h (struct font): New member scalable.
20501 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20502 (font_otf_gsub): Adjust prototype.
20503
20504 * font.c (font_otf_capability): Fix handling of the default langsys.
20505 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20506 Check the contents of SPEC.
20507 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20508 (check_gstring): New function.
20509 (REPLACEMENT_CHARACTER): New macro.
20510 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20511 glyph codes of GSTRING.
20512 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20513 (font_prepare_composition): Set cmp->glyph_len.
20514 (font_open_entity): Set font->scalable.
20515 (Ffont_get): Handle :otf property.
20516 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20517 functions.
20518 (Fquery_font): Use font->font.full_name.
20519 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20520 Sfont_otf_alternates.
20521
20522 * ftfont.c (ftfont_open): Set font->font.full_name and
20523 font->font.name properly. Fix calculation of font->font.height
20524 and font->min_width.
20525
20526 * ftxfont.c (ftxfont_create_gcs): New function.
20527 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20528 (ftxfont_draw_backgrond): Fix filling region.
20529 (ftxfont_default_fid): New function.
20530 (ftxfont_open): Set xfont->fid to the return value of
20531 ftxfont_default_fid.
20532 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20533 (ftxfont_done_face): Free only GCs that are created by
20534 ftxfont_create_gcs.
20535 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20536
20537 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20538 Clip to src->width, etc (not src->clip_XXX).
20539
20540 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20541 FontBackend frame parameter.
20542
20543 2008-02-01 Kenichi Handa <handa@m17n.org>
20544
20545 * font.h (struct font_driver_list): New member `on'.
20546 (Fclear_font_cache): EXFUN it.
20547 (font_update_drivers): Extern it.
20548
20549 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20550 (font_list_entities): Check driver_list->on.
20551 (register_font_driver): Initialize `on' member to 0.
20552 (font_update_drivers): New function.
20553 (Fclear_font_cache): Check driver_list->on.
20554
20555 * frame.h (Qfont_backend): Extern it.
20556 (x_set_font_backend): Extern it.
20557
20558 * frame.c (Qfont_backend): New variable.
20559 (frame_parms): New element for font-backend.
20560 (x_set_font_backend): New function.
20561
20562 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20563 FontBackend frame parameter.
20564 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20565 x_set_font_backend.
20566
20567 * xfont.c (xfont_list): Don't try listing by :name property if the
20568 name is not for XLFD.
20569
20570 2008-02-01 Kenichi Handa <handa@m17n.org>
20571
20572 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20573 (LGLYPH_SET_TO): New macros.
20574 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20575 element of G is vector or not.
20576 (font_at): Extern it.
20577
20578 * font.c: Include window.h.
20579 (font_lispy_object): New function.
20580 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20581 end of valid glyph.
20582 (font_close_object): Fix getting (struct font *).
20583 (font_at): New function.
20584 (Ffont_get): If FONT is a font-object, get entity from it.
20585 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20586 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20587 range check.
20588 (Ffont_at): New function.
20589 (syms_of_font): Defsubr Sfont_at.
20590
20591 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20592 before the entry for Qcomposition.
20593 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20594 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20595 the font in gstring.
20596 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20597 LGLYPH_FORM (g) to detect the end of valid glyph.
20598 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20599 we are composing with gstring.
20600
20601 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20602 Check if adjustment is vector or not.
20603
20604 * Makefile.in (font.o): Make it depends on window.h.
20605
20606 2008-02-01 Kenichi Handa <handa@m17n.org>
20607
20608 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20609 adjustment is vector or not.
20610
20611 2008-02-01 Miles Bader <miles@gnu.org>
20612
20613 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20614
20615 2008-02-01 Kenichi Handa <handa@m17n.org>
20616
20617 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20618 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20619 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20620
20621 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20622 (DEVICE_DELTA): Fix typo.
20623 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20624 LGLYPH format.
20625
20626 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20627 the change of LGLYPH format.
20628
20629 2008-02-01 Kenichi Handa <handa@m17n.org>
20630
20631 * ftfont.c (ftfont_list): Fix typo.
20632 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20633
20634 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20635
20636 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20637
20638 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20639 xftface_info is non-NULL.
20640
20641 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20642
20643 * ftfont.c (ftfont_list): Move misplaced #endif.
20644
20645 2008-02-01 Kenichi Handa <handa@m17n.org>
20646
20647 * ftfont.c (ftfont_list): Pay attention to the case that
20648 FC_CAPABILITY is not defined.
20649
20650 2008-02-01 Kenichi Handa <handa@m17n.org>
20651
20652 * xftfont.c (xftfont_open): Set charset related members to -1.
20653
20654 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20655 QCname.
20656 (ftfont_open): Set charset related members to -1.
20657
20658 * fontset.c (Votf_script_alist): New variable.
20659 (syms_of_fontset): Initialize it.
20660 (fontset_font): Delete unused variable.
20661
20662 * fontset.h (Votf_script_alist): Extern it.
20663
20664 * font.c (font_find_for_lface): Optimize code.
20665
20666 * font.h (font_close_object, font_merge_old_spec): Extern them.
20667
20668 2008-02-01 Kenichi Handa <handa@m17n.org>
20669
20670 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20671 (syms_of_font): Initialize them.
20672 (font_pixel_size): Allow float value in dpi.
20673 (font_prop_validate_type): Delete.
20674 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20675 Change caller.
20676 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20677 (font_prop_validate_extra): Delete.
20678 (font_prop_validate_spacing): New function.
20679 (font_property_table): Add elements for all known properties.
20680 (get_font_prop_index): Rename from check_font_prop_name. New
20681 argument FROM. Change caller.
20682 (font_prop_validate): Validate all known properties.
20683 (font_put_extra): Delete argument force. Change caller.
20684 (font_expand_wildcards): Make it static. Fix the way of shrinking
20685 the possible range.
20686 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20687 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20688 Change caller.
20689 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20690 (font_parse_fcname): Delete argument merge. Fix parsing of point
20691 size. Don't validate properties values here. Change caller.
20692 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20693 (font_open_by_name): Delete unused variable.
20694 (Ffont_spec): Likewise. Validate property values.
20695 (Ffont_match_p): New function.
20696
20697 * font.h (QCscalable): Extern it.
20698 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20699
20700 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20701
20702 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20703 (xfont_list_pattern): New function.
20704 (xfont_list): Use xfont_list_pattern.
20705
20706 2008-02-01 Kenichi Handa <handa@m17n.org>
20707
20708 * font.h (Flist_fonts): EXFUN it.
20709
20710 2008-02-01 Jason Rumney <jasonr@gnu.org>
20711
20712 * w32term.c (w32_initialize): Add back smoothing_type and
20713 smoothing_enabled definitions.
20714
20715 2008-02-01 Kenichi Handa <handa@m17n.org>
20716
20717 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20718 s->face->font on determining underline position.
20719
20720 2008-02-01 Kenichi Handa <handa@m17n.org>
20721
20722 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20723 (font_has_char): Accept font-object too.
20724 (font_find_for_lface): Try at first with a size specified in face.
20725
20726 2008-02-01 Kenichi Handa <handa@m17n.org>
20727
20728 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20729 font_open_by_name.
20730
20731 2008-02-01 Kenichi Handa <handa@m17n.org>
20732
20733 * font.h (QCspacing, QCdpi): Extern them.
20734 (enum font_spacing): New enum.
20735 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20736
20737 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20738 (QCspacing, QCdpi): New variables.
20739 (syms_of_font): Initialize them.
20740 (font_pixel_size): New function.
20741 (font_put_extra): New function.
20742 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20743 in FONT_EXTRA.
20744 (font_parse_fcname): Handle enumerated values (e.g. bold).
20745 Fix handling font size. Add QCname property that contains only
20746 unknown properties.
20747 (font_score): Change argument. Change caller. Pay attention to
20748 FONT_PIXEL_SIZE_QUANTUM.
20749 (font_sort_entites, font_list_entities, font_find_for_lface)
20750 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20751 (Ffont_spec): Add QCname property that contains only unknown properties.
20752
20753 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20754 include weight in listing pattern, instead check weight of each
20755 listed font. Don't include scalable in pattern. Pay attention to
20756 FONT_PIXEL_SIZE_QUANTUM.
20757
20758 2008-02-01 Kenichi Handa <handa@m17n.org>
20759
20760 * font.c (font_parse_fcname): Fix parsing of point-size.
20761 (font_unparse_fcname): Produce symbolic names for style properties.
20762 (font_list_entities): Handle float size correctly.
20763 (font_open_by_name): Prefer `normal' property values if the name
20764 doesn't specify them.
20765
20766 * fontset.c (Finternal_char_font): Use font_get_name, not
20767 Ffont_xlfd_name.
20768
20769 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20770 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20771 pattern. Don't force scalable.
20772
20773 * xftfont.c (xftfont_open): For generating a name, start from
20774 96-byte buffer.
20775
20776 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20777
20778 * frame.h (x_new_fontset2): Fix prototype.
20779
20780 2008-02-01 Kenichi Handa <handa@m17n.org>
20781
20782 * font.h (struct font_driver): Delete member parse_name.
20783 (font_match_p, font_get_spec, font_parse_fcname)
20784 (font_unparse_fcname): Extern them.
20785 (font_get_name): Adjust prototype.
20786
20787 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20788 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20789 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20790 unnecessary checks for weight, slant, and swidth.
20791 (font_parse_fcname): New function.
20792 (font_unparse_fcname): New function.
20793 (font_parse_name): New function.
20794 (font_match_p): New function.
20795 (font_get_name): Change return value to Lisp string.
20796 (font_get_spec): New function.
20797 (Qunspecified, Qignore_defface): Don't extern them.
20798 (font_find_for_lface): Assume that LFACE is fully specified.
20799 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20800 object, use it for FACE.
20801 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20802 driver->parse_name.
20803 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20804
20805 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20806 prototype.
20807
20808 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20809 argument F. Don't call Fnew_fontset. Instead, directly call
20810 make_fontset.
20811
20812 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20813
20814 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20815 of x_new_fontset2.
20816
20817 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20818 (Qsans__serif): New variables.
20819 (ftfont_generic_family_list): New variable.
20820 (syms_of_ftfont): Initialize the above variables.
20821 (ftfont_pattern_entity): Delete argument NAME.
20822 (ftfont_list_generic_family): New function.
20823 (ftfont_parse_name): Delete this function.
20824 (ftfont_list): Try generic family only when FcFontList found no font.
20825 (ftfont_list_family): Fix args to FcObjectSetBuild.
20826
20827 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20828 object in attrs[LFACE_FONT_INDEX].
20829 (set_lface_from_font_name): Cancel all changes for font-backend.
20830 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20831 function.
20832 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20833 font object in QCfont attribute.
20834 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20835 (realize_default_face) [USE_FONT_BACKEND]: Call
20836 set_lface_from_font_and_fontset.
20837
20838 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20839 "fixed", and signal error here if no suitable font was found.
20840
20841 * xfont.c (xfont_parse_name): Delete this function.
20842
20843 * xftfont.c (xftfont_open): Change coding style of error
20844 handling. Generate fontconfig's fontname pattern.
20845
20846 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20847 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20848
20849 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20850 Both args FONTSET and FONT_OBJECT must be existing ones.
20851
20852 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20853
20854 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20855
20856 2008-02-01 Kenichi Handa <handa@m17n.org>
20857
20858 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20859
20860 * font.h (struct font): Fix typo.
20861
20862 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20863 XLFD_XXX_INDEX.
20864 (enum xlfd_field_mask): New enum.
20865 (intern_font_field): Changed argument. Change caller. If digits
20866 are followed by non-digits, return a symbol.
20867 (font_expand_wildcards): New function.
20868 (font_parse_xlfd): Fix wildcard handling.
20869 (Ffont_spec): If :name is specified, reflect the info in the other
20870 properties.
20871
20872 * ftfont.c (ftfont_pattern_entity): Fix typo.
20873 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20874 locale.
20875
20876 2008-02-01 Kenichi Handa <handa@m17n.org>
20877
20878 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20879
20880 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20881 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20882 registry doesn't specify encoding part.
20883 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20884 (font_open_by_name): At first try parsing the name.
20885 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20886 as Lisp symbols.
20887
20888 * fontset.c (reorder_font_vector): Pay attention to the case that
20889 the 3rd element of font_def is nil.
20890 (fontset_font): For the default fontset, append one more fontset
20891 elements for a script-based font specification. Don't add script
20892 attribute on finding a font.
20893 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20894 font name.
20895 (fontset_ascii_font): If a font can't be opened, return nil.
20896
20897 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20898 (ftfont_pattern_entity): New function.
20899 (ftfont_get_cache): Assume that freetype_font_cache is already
20900 initialized.
20901 (ftfont_list): Handle the case that a file is specified in font
20902 name. Use ftfont_pattern_entity to generate entities.
20903 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20904 (syms_of_ftfont): Initialize freetype_font_cache.
20905
20906 * xftfont.c (xftfont_open): Make the font name fontconfig's
20907 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20908 (xftfont_close): Free font->font.name if not NULL.
20909
20910 * xfont.c (xfont_list): If script is specified for a font, return
20911 null_vector.
20912 (xfont_list_family): Declare argument type.
20913
20914 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20915 name, set LFACE_FONT (lface) to nil.
20916
20917 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20918 return Qnil.
20919
20920 2008-02-01 Kenichi Handa <handa@m17n.org>
20921
20922 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20923 (standard_args): Add "-enable-font-backend".
20924
20925 2008-02-01 Kenichi Handa <handa@m17n.org>
20926
20927 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20928 (struct xftdraw_list, xftdraw_list): Delete them.
20929 (register_xftdraw, check_xftdraw): Delete them.
20930 (xftfont_prepare_face): Don't call register_xftdraw.
20931 (xftfont_done_face): Don't call check_xftdraw.
20932 (xftfont_draw): Get background color only when with_background is
20933 nonzero.
20934
20935 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20936
20937 2008-02-01 Kenichi Handa <handa@m17n.org>
20938
20939 These changes are for the new font handling codes.
20940
20941 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20942 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20943 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20944 (FONTSRC, FONTOBJ): New variables.
20945 (obj): Add $(FONTOBJ).
20946 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20947 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20948 @LIBOTF_LIBS@.
20949 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20950 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20951
20952 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20953
20954 * character.h (Vscript_representative_chars): Extern it.
20955
20956 * character.c (Vscript_representative_chars): New variable.
20957 (syms_of_character): Declare it as a Lisp variable.
20958
20959 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20960 enable_font_backend is nonzero, accept the composition method
20961 COMPOSITION_WITH_GLYPH_STRING.
20962
20963 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20964 enumeration COMPOSITION_WITH_GLYPH_STRING.
20965
20966 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20967 members clip_x, clip_y, clip_width, and clip_height.
20968 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20969
20970 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20971 --enable-font-backend. Call syms_of_font.
20972
20973 * fns.c (assoc_no_quit): New function.
20974
20975 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20976 (face_for_font, new_fontset_from_font)
20977 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20978
20979 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20980 (fontset_font, fontset_ascii, face_for_char)
20981 (make_fontset_for_ascii_face, Ffont_info)
20982 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20983 is nonzero, use font-backend mechanism.
20984 (find_font_encoding): Make it non-static.
20985 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20986 New functions.
20987
20988 * frame.h (struct frame): New members resx and resy.
20989 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20990 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20991
20992 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20993 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20994
20995 * lisp.h (assoc_no_quit): Extern it.
20996
20997 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20998 Through out the file, use FONT_INFO_FROM_FACE instead of
20999 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21000 rif->per_char_metric.
21001 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21002 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21003 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21004 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21005 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21006 nonzero, use font-backend mechanism.
21007 (get_per_char_metric): New function.
21008
21009 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21010 (set_lface_from_font_name)
21011 (set_font_frame_param, free_realized_face)
21012 (prepare_face_for_display, clear_face_gcs)
21013 (Finternal_set_font_selection_order, realize_x_face)
21014 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21015 font-backend mechanism.
21016 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21017 (load_face_font) [USE_FONT_BACKEND]: Abort.
21018 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21019 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21020
21021 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21022 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21023 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21024 nonzero, register all available font drivers. Call
21025 x_default_font_parameter for deciding a font.
21026 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21027
21028 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21029 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21030 (x_set_glyph_string_clipping_exactly)
21031 (x_compute_glyph_string_overhangs)
21032 (x_draw_glyph_string_foreground)
21033 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21034 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21035 enable_font_backend is nonzero, use font-backend mechanism.
21036 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21037
21038 2008-02-01 Kenichi Handa <handa@m17n.org>
21039
21040 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21041 system_eol_type.
21042 (syms_of_coding): Initialize system_eol_type.
21043
21044 * process.c (Fset_process_coding_system): Inherit system's eol
21045 format if necessary.
21046
21047 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21048
21049 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21050
21051 2008-02-01 Kenichi Handa <handa@m17n.org>
21052
21053 * coding.c (decode_eol): Pay attention to buffer relocation in
21054 del_range_2.
21055 (decode_coding): Call decode_eol before restoring undo_list.
21056
21057 2008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * charset.c (Fdefine_charset_internal): Fix setting of
21060 emacs_mule_bytes.
21061
21062 2008-02-01 Kenichi Handa <handa@m17n.org>
21063
21064 * keyboard.c (read_char): Check if C is a character or not before
21065 looking up Vkeyboard_translate_table.
21066
21067 2008-02-01 Kenichi Handa <handa@m17n.org>
21068
21069 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21070 condition to terminate the loop.
21071
21072 2008-02-01 Kenichi Handa <handa@m17n.org>
21073
21074 * coding.c (produce_composition): Compare charbuf[i] instead of
21075 args[i] against 0.
21076 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21077
21078 2008-02-01 Kenichi Handa <handa@m17n.org>
21079
21080 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21081 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21082 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21083 detect_coding.
21084 (emacs_mule_char): Handle old style (Emacs 20) component character
21085 of a composition.
21086 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21087 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21088 composition rule.
21089 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21090
21091 2008-02-01 Kenichi Handa <handa@m17n.org>
21092
21093 * coding.c (encode_coding_ccl): Allocate destination dynamically
21094 when necessary.
21095
21096 2008-02-01 Kenichi Handa <handa@m17n.org>
21097
21098 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21099 the loop. When quitted, show a proper error message.
21100
21101 2008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21104 src->clip_head and src->clip_tail temporarily instead of src->hl.
21105
21106 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21107 character sequence.
21108 (Fccl_execute_on_string): Use ASET, not XSET.
21109
21110 2008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21113
21114 2008-02-01 Kenichi Handa <handa@m17n.org>
21115
21116 * coding.c (decode_coding): Fix the condition of terminating the
21117 decoding loop.
21118
21119 2008-02-01 Kenichi Handa <handa@m17n.org>
21120
21121 * data.c (Faset): On setting a character bigger than 255 in a
21122 unibyte string, signal an error instead of make the string multibyte.
21123
21124 2008-02-01 Kenichi Handa <handa@m17n.org>
21125
21126 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21127 made by a mapping table.
21128
21129 2008-02-01 Kenichi Handa <handa@m17n.org>
21130
21131 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21132 not.
21133 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21134 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21135
21136 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21137 s->face is NULL or not.
21138
21139 2008-02-01 Kenichi Handa <handa@m17n.org>
21140
21141 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21142 (x_draw_glyph_string): Fix drawing of right_overhang and
21143 left_overhang around/on cursor.
21144
21145 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21146
21147 2008-02-01 Kenichi Handa <handa@m17n.org>
21148
21149 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21150
21151 2008-02-01 Kenichi Handa <handa@m17n.org>
21152
21153 * coding.c (Fdefine_coding_system_internal)
21154 (Fdefine_coding_system_alias): Avoid a duplicated element in
21155 Vcoding_system_alist.
21156
21157 2008-02-01 Kenichi Handa <handa@m17n.org>
21158
21159 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21160
21161 * coding.c (Qcoding_system_define_form): New variable.
21162 (syms_of_coding): Intern and staticpro it.
21163 (Fcoding_system_p): Check Qcoding_system_define_form.
21164 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21165
21166 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21167 Fcoding_system_p.
21168 (CHECK_CODING_SYSTEM): If ID is not available, call
21169 Fcheck_coding_system.
21170 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21171 Try also Fcheck_coding_system.
21172
21173 2008-02-01 Kenichi Handa <handa@m17n.org>
21174
21175 * coding.c (code_conversion_restore): GCPRO arg.
21176
21177 2008-02-01 Kenichi Handa <handa@m17n.org>
21178
21179 * character.c (lisp_string_width): Check multibyteness of STRING.
21180
21181 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21182
21183 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21184 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21185 (decode_mac_font_name): Use decode_coding_c_string instead of
21186 decode_coding.
21187 (x_load_font): Initialize fontp->fontset to -1. Set
21188 fontp->encoding_type.
21189
21190 2008-02-01 Kenichi Handa <handa@m17n.org>
21191
21192 * search.c (search_buffer): Give up BM search on case-fold-search
21193 if one of a target character has a case-equivalence of different
21194 byte length even if that target character is an ASCII.
21195 (simple_search): Fix calculation of byte length of matched text.
21196 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21197
21198 2008-02-01 Kenichi Handa <handa@m17n.org>
21199
21200 * coding.c (decode_coding): Fix handling of invalid bytes.
21201
21202 2008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21205 Unicode characters.
21206
21207 2008-02-01 Kenichi Handa <handa@m17n.org>
21208
21209 * coding.c (encode_coding_object): If a pre-write-conversion
21210 function makes a new buffer, kill it.
21211
21212 2008-02-01 Kenichi Handa <handa@m17n.org>
21213
21214 * coding.c (QCascii_compatible_p): New variable.
21215 (syms_of_coding): Initialize it.
21216 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21217 calling string_char.
21218 (record_conversion_result): Add `default:' case.
21219 (coding_charset_list): Delete unused variable `coding_type'.
21220 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21221 property in the plist of the coding system.
21222 (Fcoding_system_put): Check QCascii_compatible_p.
21223
21224 2008-02-01 Miles Bader <miles@gnu.org>
21225
21226 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21227 removed calculation of frame `f', as it's now used.
21228
21229 2008-02-01 Kenichi Handa <handa@m17n.org>
21230
21231 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21232 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21233 (UNIDATA): New variable.
21234 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21235 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21236 $(RUN_TEMACS) unconditionally.
21237
21238 2008-02-01 Kenichi Handa <handa@m17n.org>
21239
21240 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21241 (admindir): New variable.
21242 ($(lispsource)international/charprop.el): New target.
21243
21244 2008-02-01 Miles Bader <miles@gnu.org>
21245
21246 * character.c (chars-in-region): Remove obsolete function.
21247 (syms_of_character): Remove its initialization.
21248
21249 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21250
21251 * w32select.c (validate_coding_system)
21252 (setup_windows_coding_system): New functions.
21253 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21254 setup_windows_coding_system.
21255 (setup_config, Fw32_get_clipboard_data): Use
21256 validate_coding_system.
21257 (Fx_selection_exists): Move call to setup_config to a place
21258 where signals are allowed.
21259
21260 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21261 (Fcheck_coding_system): Add declarations.
21262
21263 2008-02-01 Kenichi Handa <handa@m17n.org>
21264
21265 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21266
21267 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21268
21269 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21270 string as the second argument for x_new_fontset.
21271
21272 2008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21275 (encode_coding_object): Use safe_call instead of call2.
21276
21277 2008-02-01 Kenichi Handa <handa@m17n.org>
21278
21279 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21280
21281 * Makefile.in (lisp): Include charprop.el.
21282
21283 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21284
21285 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21286 Not sure if it's unnecessary.
21287
21288 2008-02-01 Steven Tamm <steventamm@mac.com>
21289
21290 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21291 some possibly unnecessary fontset checking code that crashed
21292 when creating a new frame.
21293
21294 2008-02-01 Kenichi Handa <handa@m17n.org>
21295
21296 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21297 lookup_face.
21298
21299 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21300
21301 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21302
21303 2008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21306 (coding_charset_list): New function.
21307
21308 * coding.h (coding_charset_list): Extern it.
21309
21310 2008-02-01 Kenichi Handa <handa@m17n.org>
21311
21312 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21313 concatenation of family and registry.
21314
21315 2008-02-01 Kenichi Handa <handa@m17n.org>
21316
21317 * character.h (BYTE8_STRING): Fix typo.
21318
21319 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21320 string to multibyte (sync to HEAD).
21321
21322 * casefiddle.c (casify_region): Handle changes in byte-length
21323 using replace_range_2 (sync to HEAD).
21324
21325 2008-02-01 Andreas Schwab <schwab@suse.de>
21326
21327 * chartab.c (map_char_table): GCPRO table and arg.
21328
21329 2008-02-01 Kenichi Handa <handa@m17n.org>
21330
21331 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21332 already at limit.
21333
21334 2008-02-01 Kenichi Handa <handa@m17n.org>
21335
21336 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21337 instead of fast_c_string_match_ignore_case.
21338 (find_font_encoding): Change argument to Lisp_Object. Use
21339 fast_string_match_ignore_case instead of
21340 fast_c_string_match_ignore_case. Change caller.
21341
21342 2008-02-01 Kenichi Handa <handa@m17n.org>
21343
21344 * xdisp.c (get_next_display_element): In unibyte case, decide to
21345 display in octal form by checking a character by
21346 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21347
21348 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21349
21350 * character.c (unibyte_has_multibyte_table): New variable.
21351
21352 * character.h (unibyte_has_multibyte_table): Extern it.
21353 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21354
21355 2008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * coding.c (encode_coding_iso_2022): Fix handling of charset
21358 annotation.
21359
21360 2008-02-01 Kenichi Handa <handa@m17n.org>
21361
21362 * coding.c (setup_coding_system): If coding_system is nil, use
21363 Qundecided.
21364 (Fterminal_coding_system): Return nil if terminal coding system is
21365 `undecided'.
21366 (syms_of_coding): Define coding-system `undecided' here. Setup
21367 terminal_coding as `undecided'.
21368
21369 2008-02-01 Kenichi Handa <handa@m17n.org>
21370
21371 * xdisp.c (message_dolog, set_message_1): Call
21372 unibyte_char_to_multibyte with arg type int.
21373
21374 * lread.c (read1): Fix reading of a char-table.
21375
21376 * print.c (print_object): Include sub char-table in circularities
21377 detection.
21378
21379 2008-02-01 Kenichi Handa <handa@m17n.org>
21380
21381 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21382 Append the found sequences in car of ARGS instead of prepending.
21383
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * fileio.c (report_file_error): Make a unibyte string from
21387 strerror (errorno).
21388 (Fsubstitute_in_file_name): Fix the arg to
21389 unibyte_char_to_multibyte. It is evaluated twice.
21390
21391 2008-02-01 Kenichi Handa <handa@m17n.org>
21392
21393 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21394
21395 2008-02-01 Kenichi Handa <handa@m17n.org>
21396
21397 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21398 BOM is not found.
21399 (detect_coding, detect_coding_system): Optimization for ISO-2022
21400 when no 8-bit data is found.
21401
21402 2008-02-01 Jason Rumney <jasonr@gnu.org>
21403
21404 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21405
21406 2008-02-01 Kenichi Handa <handa@m17n.org>
21407
21408 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21409 CHARS.
21410
21411 2008-02-01 Steven Tamm <steventamm@mac.com>
21412
21413 * macterm.c (mac_encode_char): Add charset argument and update
21414 to use encoding_type.
21415 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21416 switch to pure fontset.
21417 (decode_mac_font_name): Temporarily remove decoding.
21418 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21419 (x_load_font): Temporarily remove encoding.
21420
21421 2008-02-01 Kenichi Handa <handa@m17n.org>
21422
21423 * xfaces.c (Fface_font): If frame is not on a window system,
21424 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21425 refer to face->font.
21426 (split_font_name_into_vector, build_font_name_from_vector)
21427 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21428 when HAVE_WINDOW_SYSTEM is defined.
21429
21430 2008-02-01 Kenichi Handa <handa@m17n.org>
21431
21432 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21433 (x_produce_glyphs): Fix setting of members of cmp in case
21434 cmp->glyph_len is zero.
21435
21436 * fontset.c (Fset_fontset_font): Fix docstring.
21437 (Ffontset_info): Make it backward compatible. New arg ALL.
21438
21439 2008-02-01 Kim F. Storm <storm@cua.dk>
21440
21441 * process.c (read_process_output): Grow decoding_buf when needed;
21442 this could cause a crash in allocate_string and compact_small_strings.
21443
21444 2008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21447
21448 2008-02-01 Kenichi Handa <handa@m17n.org>
21449
21450 * coding.c (setup_coding_system): Set coding->common_flags
21451 correctly for raw-text.
21452 (consume_chars): On encoding unibyte text by raw-text, don't check
21453 multibyte form.
21454 (encode_coding): On encoding by raw-text, never use translation tables.
21455
21456 * fileio.c (e_write): Short cut for the case of no encoding.
21457
21458 2008-02-01 Kenichi Handa <handa@m17n.org>
21459
21460 * coding.c (detect_coding, detect_coding_system): Delete unused
21461 variables.
21462
21463 2008-02-01 Kenichi Handa <handa@m17n.org>
21464
21465 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21466 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21467
21468 2008-02-01 Kenichi Handa <handa@m17n.org>
21469
21470 * coding.c (Ffind_coding_systems_region_internal): Include
21471 raw-text and no-conversion in the result.
21472
21473 2008-02-01 Kenichi Handa <handa@m17n.org>
21474
21475 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21476 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21477 FONT_DEF.
21478 (font_def_arg, add_arg, from_arg, to_arg): New args.
21479 (set_fontset_font): Change argument.
21480 (Fset_fontset_font): Fix for the case that TARGET is a script
21481 name and charset name.
21482 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21483
21484 2008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 * fontset.c (fontset_font): Rename from fontset_face. Change return
21487 value.
21488 (face_suitable_for_char_p, face_for_char): Adjust for the change
21489 of fontset_font.
21490 (make_fontset_for_ascii_face): Fix setting of the fontset element
21491 for ASCII.
21492 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21493 to get a font name.
21494 (Ffontset_info): Adjust for the change of fontset_font.
21495
21496 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21497
21498 * character.h (LEADING_CODE_LATIN_1_MIN)
21499 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21500
21501 2008-02-01 Kenichi Handa <handa@m17n.org>
21502
21503 * editfns.c (check_translation): New function.
21504 (Ftranslate_region_internal): Handle M:N mapping.
21505
21506 2008-02-01 Kenichi Handa <handa@m17n.org>
21507
21508 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21509
21510 2008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21513 goto invalid_code.
21514 (decode_coding_iso_2022): Fix handling of invalid designation.
21515
21516 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21517 after calling code_conversion_save.
21518
21519 2008-02-01 Kenichi Handa <handa@m17n.org>
21520
21521 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21522
21523 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21524
21525 * fontset.c: Include "intervals.h".
21526 (fontset_face): Fix comparing of Lisp_Objects.
21527 (free_face_fontset, new_fontset_from_font_name): Fix
21528 Lisp_Object/int mixup.
21529
21530 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21531
21532 * coding.c: Add many prototypes for static functions.
21533 (get_translation_table): Allow max_lookup to be NULL.
21534 (decode_coding, Ffind_coding_systems_region_internal)
21535 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21536 get_translation_table with max_lookup NULL.
21537
21538 2008-02-01 Kenichi Handa <handa@m17n.org>
21539
21540 * coding.c (get_translation_table): Declare it as Lisp_Object.
21541 (LOOKUP_TRANSLATION_TABLE): New macro.
21542 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21543 instead of CHAR_TABLE_REF.
21544
21545 2008-02-01 Kenichi Handa <handa@m17n.org>
21546
21547 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21548 annotation data format.
21549 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21550 Change arguments FROM and TO to single argument NCHARS. Change caller.
21551 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21552 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21553 (decode_coding_ccl, decode_coding_charset): Pay attention to
21554 coding->charbuf_used.
21555 (get_translation): New function.
21556 (produce_chars): New arguments translation_table and last_block.
21557 Translate characters here. Return number of carryover chars.
21558 Change caller.
21559 (produce_composition): New argument pos. Change caller.
21560 Adjust for the change of annotation data format.
21561 (produce_charset, produce_annotation): Likewise.
21562 (decode_coding, encode_coding): Don't call translate_chars.
21563 (consume_chars): New arg translation_table. Change caller.
21564 (translate_chars): Delete.
21565 (syms_of_coding): Make translation-table's number of extra slots 2.
21566
21567 2008-02-01 Kenichi Handa <handa@m17n.org>
21568
21569 * search.c (simple_search): Fix setting this_pos_byte in backward
21570 search.
21571
21572 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21573 byte sequence.
21574 (detect_coding_ccl): Fix setting of the variable valids.
21575
21576 2008-02-01 Kenichi Handa <handa@m17n.org>
21577
21578 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21579
21580 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21581
21582 * editfns.c (Ftranslate_region_internal): Rename from
21583 Ftranslate_region. Accept a char-table in TABLE.
21584 (syms_of_editfns): Defsubr Stranslate_region_internal.
21585
21586 * xfaces.c (set_lface_from_font_name): If a font is specified for
21587 a frame, generate a fontset from the font.
21588 (build_scalable_font_name): If the scalable font is requested for
21589 a specific size, don't change that size.
21590 (try_font_list): Try a scalable font also in the case that a
21591 pattern string is specified.
21592
21593 2008-02-01 Kenichi Handa <handa@m17n.org>
21594
21595 * xfaces.c (Fface_font): New optional arg CHARACTER.
21596
21597 2008-02-01 Kenichi Handa <handa@m17n.org>
21598
21599 * charset.h (CHARSET_OFFSET): New macro.
21600
21601 2008-02-01 Kenichi Handa <handa@m17n.org>
21602
21603 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21604
21605 * fontset.c (fontset_face): Handle the case that repertory is a
21606 char-table.
21607 (find_font_encoding): Return nil for unknown encoding.
21608 (Fset_fontset_font): Ignore a font of unknown encoding.
21609
21610 2008-02-01 Kenichi Handa <handa@m17n.org>
21611
21612 * keymap.c (describe_vector): Handle default value of a char table.
21613
21614 * fontset.c (fontset_face): Handle fallback fonts correctly.
21615 (Ffontset_info): Return infomation about fallback fonts.
21616
21617 2008-02-01 Kenichi Handa <handa@m17n.org>
21618
21619 * fontset.c (FONTSET_DEFAULT): New macro.
21620 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21621 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21622 the case that it is nil.
21623 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21624 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21625
21626 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21627 subset or superset.
21628
21629 2008-02-01 Kenichi Handa <handa@m17n.org>
21630
21631 * emacs.c (main): Call init_charset after syms_of_XXX.
21632
21633 * charset.c (Vcharset_map_directory): Delete.
21634 (Vcharset_map_path): New variable.
21635 (load_charset_map_from_file): Use Vcharset_map_path instead.
21636 (init_charset): Initialize Vcharset_map_path.
21637 (syms_of_charset): Delete declaration of "charset-map-directory",
21638 add declaration of "charset-map-path".
21639
21640 2008-02-01 Kenichi Handa <handa@m17n.org>
21641
21642 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21643 ASCII only string.
21644
21645 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21646
21647 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21648 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21649
21650 2008-02-01 Kenichi Handa <handa@m17n.org>
21651
21652 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21653
21654 * coding.c (QCmnemonic, QCdefalut_char)
21655 (QCdecode_translation_table, QCencode_translation_table)
21656 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21657 (get_translation_table): Return a list of translation tables if
21658 necessary.
21659 (decode_coding): Call get_translation_table with ENCODEP 0.
21660 (char_encodable_p): If translation_table is non-nil, always call
21661 translate_char.
21662 (Fdefine_coding_system_internal): Accept list of translation
21663 tables as :encode-translation-table and :decode-translation-table.
21664 (Fcoding_system_put): New function.
21665 (syms_of_coding): Declare new symbols. Defsubr
21666 Scoding_system_put.
21667 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21668 typically JISX0212.
21669
21670 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21671 when the charset is superset type.
21672
21673 * character.c (translate_char): Accept list of translation tables.
21674
21675 2008-02-01 Kenichi Handa <handa@m17n.org>
21676
21677 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21678 (CODING_ATTR_TRANS_TBL): New macro.
21679
21680 * coding.c (get_translation_table): New function.
21681 (translate_chars): Fix the bug of skipping annotation data.
21682 (decode_coding, encode_coding): Utilize get_translation_table.
21683 (char_encodable_p, Funencodable_char_position): Translate char if
21684 necessary.
21685 (Ffind_coding_systems_region_internal)
21686 (Fcheck_coding_systems_region): Setup translation table for encode
21687 in a coding system attribute vector in advance.
21688 (Fdefine_coding_system_internal): Allow a symbol as translation
21689 table. For shift-jis type coding system, allow 4th charset.
21690
21691 2008-02-01 Kenichi Handa <handa@m17n.org>
21692
21693 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21694
21695 * xdisp.c (get_next_display_element): Pass -1 as POS to
21696 FACE_FOR_CHAR if displaying a C-string.
21697
21698 2008-02-01 Kenichi Handa <handa@m17n.org>
21699
21700 * composite.c (get_composition_id): Handle xoff and yoff in a
21701 composition rule.
21702
21703 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21704 (struct composition): New member lbearing and rbearing.
21705
21706 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21707 (x_get_glyph_overhangs): Handle a composition glyph.
21708 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21709
21710 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21711 composition glyph.
21712
21713 2008-02-01 Kenichi Handa <handa@m17n.org>
21714
21715 * print.c: Include charset.h.
21716 (Vprint_charset_text_property): New variable.
21717 (Qdefault): Extern it.
21718 (PRINT_STRING_NON_CHARSET_FOUND)
21719 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21720 (print_check_string_result): New variable.
21721 (print_check_string_charset_prop): New function.
21722 (print_prune_charset_plist): New variable.
21723 (print_prune_string_charset): New function.
21724 (print_object): Call print_prune_string_charset if
21725 Vprint_charset_text_property is not t.
21726 (print_interval): Print nothing if interval->plist is nil.
21727 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21728 variable. Init and staticpro print_prune_charset_plist.
21729
21730 2008-02-01 Kenichi Handa <handa@m17n.org>
21731
21732 * fontset.c (new_fontset_from_font_name): Use the specified font
21733 for all characters in the new fontset.
21734
21735 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21736 OBJECT args.
21737
21738 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21739 OBJECT args for composition too.
21740
21741 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21742 OBJECT args.
21743
21744 2008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21747
21748 * fontset.c (reorder_font_vector): Adjust for the change of
21749 FONT_DEF format.
21750 (fontset_face): New arg id. Change caller.
21751 (face_for_char): New args pos and object.
21752 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21753 (fs_query_fontset): Check NAME by Fassoc too.
21754 (Fset_fontset_font): Allow non-XLFD font name.
21755 (Ffontset_info): Adjust for the change of FONT_DEF format.
21756
21757 * fontset.h (face_for_char): Adjust prototype.
21758
21759 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21760 (append_space, extend_face_to_end_of_line)
21761 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21762 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21763
21764 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21765 POS and OBJECT args.
21766
21767 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21768 POS and OBJECT args.
21769
21770 2008-02-01 Jason Rumney <jasonr@gnu.org>
21771
21772 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21773 of GlobalAlloc'ed memory.
21774
21775 2008-02-01 Kenichi Handa <handa@m17n.org>
21776
21777 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21778
21779 * charset.h (charset_table_used): Delete extern.
21780
21781 * charset.c (charset_table_used): Make it static.
21782 (map_charset_chars): Fix args to c_function with.
21783
21784 * chartab.c (map_sub_char_table_for_charset): Fix args to
21785 c_function with.
21786
21787 * coding.h (enum coding_result_code): Delete
21788 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21789
21790 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21791 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21792 (Vlast_code_conversion_error): New variables.
21793 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21794 (ONE_MORE_BYTE): Record error if any instead of signaling an
21795 error. If non-ASCII multibyte char is found, return the negative
21796 value of the code. All callers changed to check it.
21797 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21798 (record_conversion_result): New function. Change all codes setting
21799 coding->result to call this function.
21800 (detect_coding_utf_8, decode_coding_utf_8)
21801 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21802 Don't use the local variable incomplete.
21803 (emacs_mule_char): Change the second arg to `const'.
21804 (decode_coding): Fix of flushing out unprocessed data.
21805 (make_conversion_work_buffer): Fix making of a work buffer.
21806 (decode_coding_object): Return coding->dst_object.
21807
21808 * fontset.c (set_fontset_font): Fix args.
21809
21810 * lisp.h (CHARACTERBITS): Define as 22.
21811
21812 * process.c (send_process): Be sure to set coding->src_multibyte.
21813
21814 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21815
21816 2008-02-01 Kenichi Handa <handa@m17n.org>
21817
21818 * xdisp.c (handle_auto_composed_prop): Give limit to
21819 Fnext_single_char_property_change.
21820
21821 2008-02-01 Kenichi Handa <handa@m17n.org>
21822
21823 * composite.c (syms_of_composite): Don't make the composition hash
21824 table weak.
21825
21826 * fontset.c (Fset_fontset_font): Fix docstring.
21827
21828 * lisp.h (detect_coding_system): Adjust prototype.
21829
21830 * fileio.c (kill_workbuf_unwind): Delete this function.
21831 (Finsert_file_contents): Adjust the call of detect_coding_system.
21832 Get conversion_buffer by code_conversion_save. Use the macro
21833 CODING_MAY_REQUIRE_DECODING. After decoding, update
21834 coding_system.
21835
21836 * coding.h (make_conversion_work_buffer): Delete extern.
21837 (code_conversion_save): Extern it.
21838
21839 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21840 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21841 (decode_coding_utf_8): Don't do eol converion.
21842 (detect_coding_utf_16): Check coding->src_chars, not
21843 coding->src_bytes. Add heuristics for those that have no signature.
21844 (decode_coding_emacs_mule, decode_coding_iso_2022)
21845 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21846 Don't do eol converion.
21847 (adjust_coding_eol_type): Return a new coding system.
21848 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21849 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21850 each change.
21851 (decode_coding): Pay attention to undo_list. Do eol conversion for
21852 all types of coding-systems (if necessary).
21853 (Vcode_conversion_work_buf_list): Delete it.
21854 (Vcode_conversion_reused_workbuf): Rename from
21855 Vcode_conversion_reused_work_buf.
21856 (Vcode_conversion_workbuf_name): New variable.
21857 (reused_workbuf_in_use): New variable.
21858 (make_conversion_work_buffer): Delete the arg DEPTH.
21859 (code_conversion_restore): Change argument to cons.
21860 (code_conversion_save): Delete the argument BUFFER. Change callers.
21861 (detect_coding_system): New argument src_chars. Change callers.
21862 Fix for utf-16 detection.
21863 (init_coding_once): Don't use ISO_carriage_return.
21864 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21865 reused_workbuf_in_use.
21866
21867 2008-02-01 Kenichi Handa <handa@m17n.org>
21868
21869 * keymap.c (store_in_keymap): Pay attention to the case that idx
21870 is a cons specifying a character range.
21871
21872 2008-02-01 Kenichi Handa <handa@m17n.org>
21873
21874 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21875 HANDLED_RECOMPUTE_PROPS.
21876
21877 * coding.c (Fdefine_coding_system_internal): Fix checking of
21878 ascii compatibility.
21879
21880 2008-02-01 Kenichi Handa <handa@m17n.org>
21881
21882 * charset.c (find_charsets_in_text): Delete unused locale variable.
21883 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21884
21885 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21886 Resync charset_list to Vemacs_mule_charset_list.
21887
21888 * keymap.c (store_in_keymap): Pay attention to the case that idx
21889 is a cons specifying a character range.
21890
21891 2008-02-01 Kenichi Handa <handa@m17n.org>
21892
21893 * composite.c (update_compositions): Bind inhibit-read-only, etc
21894 to t before calling remove-list-of-text-properties.
21895
21896 * print.c (print_object): Always print ASCII chars as is.
21897
21898 2008-02-01 Kenichi Handa <handa@m17n.org>
21899
21900 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21901
21902 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21903 is a char table.
21904
21905 2008-02-01 Kenichi Handa <handa@m17n.org>
21906
21907 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21908
21909 2008-02-01 Kenichi Handa <handa@m17n.org>
21910
21911 * xfaces.c (set_lface_from_font_name): Fix for the case that
21912 FONTNAME is not fontset name.
21913
21914 2008-02-01 Kenichi Handa <handa@m17n.org>
21915
21916 * fns.c (base64_encode_1): Fix previous change.
21917
21918 2008-02-01 Kenichi Handa <handa@m17n.org>
21919
21920 * fontset.c (set_fontset_font): New function.
21921 (Fset_fontset_font): If a font is specified for a charset, use
21922 map_charset_chars to store the font spec in a fontset.
21923
21924 2008-02-01 Kenichi Handa <handa@m17n.org>
21925
21926 * fontset.c (fontset_face): Create a fallback fontset on demand.
21927 (make_fontset): Don't create a fallback fontset here.
21928 (free_face_fontset): Free a fallback fontset (if any) too.
21929 (n_auto_fontsets): Delete this variable.
21930 (auto_fontset_alist): New variable.
21931 (new_fontset_from_font_name): Check auto_fontset_alist.
21932 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21933 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21934 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21935 Defsubr Sfontset_list_all.
21936
21937 2008-02-01 Kenichi Handa <handa@m17n.org>
21938
21939 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21940
21941 2008-02-01 Kenichi Handa <handa@m17n.org>
21942
21943 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21944
21945 2008-02-01 Kenichi Handa <handa@m17n.org>
21946
21947 * editfns.c (Fgoto_char): Fix docstring.
21948
21949 2008-02-01 Kenichi Handa <handa@m17n.org>
21950
21951 * insdel.c (insert_from_gap): Adjust intervals correctly.
21952
21953 2008-02-01 Jason Rumney <jasonr@gnu.org>
21954
21955 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21956 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21957 (w32_initialize): Try to load it.
21958 (x_get_font_repertory): Use it if available.
21959 (w32_encode_char): Add shortcut for unicode output.
21960
21961 * w32fns.c (w32_load_system_font): Default charset to -1.
21962 (x_to_w32_charset): Match all fonts for unicode.
21963 (w32_to_x_charset): New parameter matching. Don't return partial
21964 or wildcard charsets.
21965 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21966 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21967 (w32_to_x_font): Match charset to real charset.
21968 (enum_font_cb2): Always list unicode versions.
21969
21970 * makefile.w32-in (temacs): Increase EMHEAP.
21971
21972 2008-02-01 Jason Rumney <jasonr@gnu.org>
21973
21974 * w32term.c (w32_encode_char): New charset parameter.
21975 font_info.encoding becomes encoding_type.
21976 (x_get_font_repertory): New function. Warning: stub only!
21977 (x_new_font): Return quickly if font already set.
21978 (x_new_fontset): fontsetname parameter is Lisp_Object.
21979 Use new fs_query_fontset. Try new_fontset_from_font_name.
21980 Use fontset_name for return value.
21981
21982 * w32term.h: Declare x_get_font_repertory.
21983
21984 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21985 place of find_charset_in_text. Use encode_coding_object in place
21986 of encode_coding.
21987 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21988 decode_coding.
21989
21990 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21991 of x_new_fontset.
21992 (w32_load_system_font): Initialize charset as unicode.
21993 font_info.encoding becomes encoding_type.
21994 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21995 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21996 (syms_of_w32fns): Set get_font_repertory_func.
21997
21998 * w32console.c: Include character.h. Use terminal_encode_buffer
21999 from term.c.
22000 (write_glyphs): Use new version of encode_terminal_code. Use
22001 encode_coding_object in place of encode_coding.
22002
22003 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22004 encoding becomes encoding_type.
22005
22006 * term.c (terminal_encode_buffer): Make externally visible.
22007
22008 * makefile.w32-in: Add character.h dependancies.
22009 (character.o, chartab.o): New targets.
22010
22011 2008-02-01 Kenichi Handa <handa@m17n.org>
22012
22013 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22014 CODING_ID_EOL_TYPE.
22015
22016 2008-02-01 Andreas Schwab <schwab@suse.de>
22017
22018 * coding.c (produce_chars): Revert last change.
22019
22020 2008-02-01 Kenichi Handa <handa@m17n.org>
22021
22022 * charset.h (charset_unicode): Extern it.
22023
22024 * charset.c (string_xstring_p): Check by (C >= 0x100).
22025 (find_charsets_in_text): Change format of the arc CHARSETS. New
22026 arg MULTIBYTE.
22027 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22028 change of find_charsets_in_text.
22029 (Fsplit_char): Fix doc. Never return unknown.
22030
22031 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22032
22033 * coding.c (Fdefine_coding_system_alias): Update
22034 Vcoding_system_list.
22035
22036 * fontset.c (load_font_get_repertory): Pay attention to the case
22037 that ENCODING of a font is specified by a char-table.
22038
22039 * xterm.c (x_get_font_repertory): Handle the case that the
22040 encoding of font is other than Unicode.
22041
22042 2008-02-01 Kenichi Handa <handa@m17n.org>
22043
22044 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22045 if a character is encodable by the terminal coding system. If
22046 not, produces proper number of `?'s. Update
22047 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22048 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22049
22050 2008-02-01 Kenichi Handa <handa@m17n.org>
22051
22052 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22053 variables.
22054 (encode_terminal_code): Change argument. Encode multiple
22055 characters at once. Store the result of encoding in
22056 terminal_encode_buffer.
22057 (write_glyphs, insert_glyphs): Adjust for the change of
22058 encode_terminal_code.
22059 (term_init): Initialize terminal_encode_buffer and
22060 terminal_encode_buf_size.
22061
22062 * coding.c (consume_chars): If coding->src_object is nil, don't
22063 check annotation.
22064
22065 2008-02-01 Kenichi Handa <handa@m17n.org>
22066
22067 * character.c (char_string): Use ASCII_CHAR_P instead of
22068 SINGLE_BYTE_CHAR_P.
22069
22070 2008-02-01 Kenichi Handa <handa@m17n.org>
22071
22072 * xdisp.c (handle_auto_composed_prop): Check if the last
22073 characters of auto-composed region is newly composed with the
22074 following characters.
22075 (handle_composition_prop): Fix checking of point being inside
22076 composition.
22077
22078 2008-02-01 Kenichi Handa <handa@m17n.org>
22079
22080 * fns.c (concat): Don't change multibyteness of the result by
22081 concatenating an 8-bit character.
22082
22083 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22084 multibyteness of the result when newelt is an 8-bit character.
22085
22086 2008-02-01 Dave Love <fx@gnu.org>
22087
22088 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22089 EMACS_INT.
22090
22091 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22092
22093 * xfaces.c (face_numeric_value): Declare dim size_t.
22094 (Finternal_lisp_face_equal_p): Remove unused f.
22095
22096 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22097 (MATRIX_ROW): Remove unused vars.
22098 (draw_glyphs, x_insert_glyphs, fast_find_position)
22099 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22100 byte/char counts.
22101
22102 * regex.c (regex_compile): Remove unused var.
22103
22104 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22105
22106 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22107 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22108
22109 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22110
22111 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22112
22113 * fileio.c (Fwrite_region): Remove unused var.
22114
22115 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22116 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22117
22118 * composite.c (Fremove_list_of_text_properties): Declare.
22119
22120 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22121 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22122 (coding_inherit_eol_type): Remove unused attrs.
22123 (detect_coding): Cast arg of detect_eol.
22124
22125 * charset.c (syms_of_charset): Remove unused var p.
22126 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22127 byte/char counts.
22128
22129 * casetab.c (set_case_table): Remove unused var.
22130
22131 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22132 unused vars.
22133
22134 2008-02-01 Dave Love <fx@gnu.org>
22135
22136 * xterm.c (x_bitmap_mask): Declare.
22137
22138 2008-02-01 Dave Love <fx@gnu.org>
22139
22140 * xterm.c (x_term_init): Fix type error.
22141
22142 * lisp.h: Add Funibyte_char_to_multibyte.
22143
22144 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22145 (Fset_coding_system_priority): Doc fix.
22146
22147 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22148
22149 * indent.c (check_composition): Make start and end EMACS_INT.
22150
22151 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22152
22153 * xdisp.c (handle_composition_prop, check_point_in_composition):
22154 Make buffer positions EMACS_INT.
22155
22156 * composite.c (find_composition, run_composition_function)
22157 (update_compositions, Ffind_composition_internal): Make buffer
22158 positions EMACS_INT.
22159
22160 * composite.h (find_composition, update_compositions): Make
22161 position args EMACS_INT.
22162
22163 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22164
22165 * intervals.c (get_property_and_range):
22166 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22167
22168 * unexalpha.c: Don't include varargs.h.
22169
22170 2008-02-01 Dave Love <fx@gnu.org>
22171
22172 * coding.h (ENCODE_UTF_8): New.
22173
22174 * Makefile.in (gtkutil.o): Depend on coding.h.
22175
22176 * coding.c (Fset_coding_system_priority): Doc fix.
22177
22178 2008-02-01 Kenichi Handa <handa@m17n.org>
22179
22180 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22181 the case of auto saving.
22182
22183 2008-02-01 Andreas Schwab <schwab@suse.de>
22184
22185 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22186 `range' from GC.
22187
22188 2008-02-01 Kenichi Handa <handa@m17n.org>
22189
22190 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22191
22192 2008-02-01 Kenichi Handa <handa@m17n.org>
22193
22194 * fileio.c (choose_write_coding_system): Return a decided coding system.
22195 (Fwrite_region): Set Vlast_coding_system_used to the return value
22196 of choose_write_coding_system.
22197
22198 2008-02-01 Kenichi Handa <handa@m17n.org>
22199
22200 * charset.c (Fset_charset_priority): Pay attention to duplicated
22201 arguments.
22202
22203 * coding.c (QCcategory): New variable.
22204 (syms_of_coding): Defsym it. Set all elements of
22205 Vcoding_category_table and their symbol values.
22206 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22207 coding-category-XXX, and coding-category-list.
22208 (Fdefine_coding_system_internal): Add category in the plist.
22209
22210 2008-02-01 Kenichi Handa <handa@m17n.org>
22211
22212 * callproc.c (Fcall_process): Handle carryover correctly.
22213
22214 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22215 (raw_text_coding_system): Check NILP (coding_system).
22216 (coding_inherit_eol_type): Check NILP (coding_system) and
22217 NILP (parent).
22218 (consume_chars): Fix for the case of raw-text.
22219
22220 * process.c (read_process_output): Handle carryover correctly.
22221
22222 2008-02-01 Dave Love <fx@gnu.org>
22223
22224 * regex.c (re_search_2): Fix last change.
22225
22226 2008-02-01 Kenichi Handa <handa@m17n.org>
22227
22228 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22229 target_multibyte. Even in a unibyte case, return a converted
22230 multibyte char.
22231 (GET_CHAR_AFTER): New macro.
22232 (PATFETCH): Translate via multibyte char.
22233 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22234 (SETUP_MULTIBYTE_RANGE): New macro.
22235 (regex_compile): Setup compiled code so that its multibyteness
22236 matches that of a target. Fix the handling of "[X-YZ]" using
22237 SETUP_MULTIBYTE_RANGE.
22238 (analyse_first) <charset>: For filling fastmap for all multibyte
22239 characters, don't check by BASE_LEADING_CODE_P.
22240 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22241 the same as RE_MULTIBYTE_P (bufp) now.
22242 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22243 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22244 (TRANSLATE_VIA_MULTIBYTE): New macro.
22245 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22246 It is the same as RE_MULTIBYTE_P (bufp) now.
22247 <exactn>: Translate via multibyte.
22248 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22249 translate it.
22250 <charset, charset_not>: Fetch a character by
22251 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22252 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22253 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22254 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22255 by GET_CHAR_AFTER.
22256 (bcmp_translate): Likewise.
22257
22258 * search.c (compile_pattern): Check the member target_multibyte,
22259 not the member multibyte of buf.
22260
22261 * lread.c (read1): While reading a string, set force_singlebyte
22262 and force_multibyte correctly.
22263
22264 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22265 up of unibyte_to_multibyte_table.
22266
22267 2008-02-01 Kenichi Handa <handa@m17n.org>
22268
22269 * coding.c (setup_coding_system): If coding has
22270 post-read-conversion or pre-write-conversion, set
22271 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22272 respectively.
22273 (decode_coding_gap): Run post-read-conversion if any.
22274
22275 * fileio.c (Finsert_file_contents): Even if we read into a
22276 unibyte buffer, check if we must decode the result or not.
22277
22278 2008-02-01 Kenichi Handa <handa@m17n.org>
22279
22280 * coding.c (make_conversion_work_buffer): Change the work buffer
22281 name to the same one as that of Emacs 21.
22282
22283 2008-02-01 Kenichi Handa <handa@m17n.org>
22284
22285 * coding.h (make_conversion_work_buffer): Adjust prototype.
22286 (code_conversion_restore): Don't extern it.
22287
22288 * coding.c (detected_mask): Delete unused variable.
22289 (decode_coding_iso_2022): Pay attention to the byte sequence of
22290 CTEXT extended segment, and retain those bytes as is.
22291 (decode_coding_ccl): Delete unused variable `valids'.
22292 (setup_coding_system): Delete unused variable `category'.
22293 (consume_chars): Delete unused variable `category'. Make it work
22294 for non-multibyte case.
22295 (make_conversion_work_buffer): Change argument.
22296 (saved_coding): Delete unused variable.
22297 (code_conversion_restore): Don't check saved_coding->destination.
22298 (code_conversion_save): New function.
22299 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22300 instead of record_unwind_protect.
22301 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22302 (detect_coding_system): Delete unused variable `mask'.
22303 (Fdefine_coding_system_internal): Delete unused variable id.
22304
22305 * fileio.c (kill_workbuf_unwind): New function.
22306 (Finsert_file_contents): On replacing, call
22307 make_conversion_work_buffer with correct args, and call
22308 record_unwind_protect with the first arg kill_workbuf_unwind.
22309
22310 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22311
22312 2008-02-01 Kenichi Handa <handa@m17n.org>
22313
22314 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22315 (fontset_add): Fix for the case that TO is less than TO1.
22316 (Ffontset_info): Don't use fallback fontset on checking the
22317 default fontset.
22318 (dump_fontset): New function for debugging.
22319
22320 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22321 coding_type is Qcharset.
22322
22323 2008-02-01 Kenichi Handa <handa@m17n.org>
22324
22325 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22326 (map_char_table): Don't inherit the value from the parent on
22327 initializing VAL. Adjust for the above change.
22328
22329 2008-02-01 Kenichi Handa <handa@m17n.org>
22330
22331 * coding.c (Qsignature, Qendian): Delete these variables.
22332 (syms_of_coding): Don't initialize them.
22333 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22334 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22335 detect_info->found.
22336 (decode_coding_utf_16): Don't detect BOM here.
22337 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22338 is NOT utf_16_without_bom.
22339 (setup_coding_system): For a coding system of type utf-16, check
22340 if the attribute :endian is Qbig or not (not nil or not), and set
22341 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22342 (detect_coding): If coding type is utf-16 and BOM detection is
22343 required, detect it.
22344 (Fdefine_coding_system_internal): For a coding system of type
22345 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22346
22347 2008-02-01 Kenichi Handa <handa@m17n.org>
22348
22349 * coding.c (coding_set_source): Fix for the case that the current
22350 buffer is different from coding->src_object.
22351 (decode_coding_object): Don't use the conversion work buffer if
22352 DST_OBJECT is a buffer.
22353
22354 2008-02-01 Dave Love <fx@gnu.org>
22355
22356 * lread.c (read_emacs_mule_char) [len==2]: Index
22357 emacs_mule_charset correctly.
22358
22359 2008-02-01 Dave Love <fx@gnu.org>
22360
22361 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22362 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22363 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22364 treated specially.)
22365 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22366 (detected_mask): Remove Big5 bits.
22367
22368 2008-02-01 Kenichi Handa <handa@m17n.org>
22369
22370 The following changes are to make the font rescaling facility
22371 compatible with Emacs 21.
22372
22373 * xfaces.c (Vface_font_rescale_alist): Rename from
22374 Vface_resizing_fonts.
22375 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22376 (font_rescale_ratio): Rename from font_resizing_ratio.
22377 (split_font_name): Set font->rescale_ratio.
22378 (better_font_p): Pay attention to font->rescale_ratio.
22379 (build_scalable_font_name): Likewise. Change RESX, and RESY
22380 fields.
22381 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22382
22383 2008-02-01 Kenichi Handa <handa@m17n.org>
22384
22385 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22386 (Qutf_16_le): Remove these variables.
22387 (syms_of_coding): Don't DEFSYM them.
22388 (decode_coding_utf_16): Fix handling of BOM.
22389 (encode_coding_utf_16): Fix handling of BOM.
22390
22391 2008-02-01 Kenichi Handa <handa@m17n.org>
22392
22393 * fileio.c (Finsert_file_contents): On replacing, before decoding
22394 the file into the work buffer, set point of the work buffer to the end.
22395
22396 2008-02-01 Dave Love <fx@gnu.org>
22397
22398 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22399
22400 2008-02-01 Dave Love <fx@gnu.org>
22401
22402 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22403 and fix C types.
22404
22405 2008-02-01 Kenichi Handa <handa@m17n.org>
22406
22407 * xdisp.c (SKIP_GLYPHS): New macro.
22408 (set_cursor_from_row): Pay attention to string display properties.
22409
22410 * category.c (copy_category_entry): Fix for the case that RANGE
22411 is an integer.
22412
22413 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22414
22415 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22416
22417 2008-02-01 Kenichi Handa <handa@m17n.org>
22418
22419 * charset.c (Fcharset_id_internal): New function.
22420 (syms_of_charset): Defsubr it.
22421
22422 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22423 with the last arg charset_list acquired from coding.
22424 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22425 the attribute coding_attr_ccl_valids.
22426
22427 * coding.h (enum define_coding_ccl_arg_index): Set the first
22428 member coding_arg_ccl_decoder to coding_arg_max.
22429
22430 * ccl.h (ccl_driver): Adjust prototype.
22431
22432 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22433 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
22434 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
22435 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22436 last arg Qnil.
22437
22438 2008-02-01 Kenichi Handa <handa@m17n.org>
22439
22440 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22441 call encode_char.
22442
22443 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22444
22445 2008-02-01 Dave Love <fx@gnu.org>
22446
22447 * composite.c (syms_of_composite): Make composition_hash_table weak.
22448
22449 2008-02-01 Kenichi Handa <handa@m17n.org>
22450
22451 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22452 (font_name_registry): Don't extern them.
22453 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22454
22455 * fontset.h (Qfontset): Don't extern it.
22456 (new_fontset_from_font_name): Extern it.
22457
22458 * fontset.c: Give 8 extra slots to fontset objects.
22459 (Qfontset_info): New variable.
22460 (syms_of_fontset): Defsym it.
22461 (FONTSET_FALLBACK): New macro.
22462 (fontset_face): Try also the default fontset.
22463 (make_fontset): Realize a fallback fontset from the default fontset.
22464 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22465 using split_font_name_into_vector and build_font_name_from_vector.
22466 (Fset_fontset_font): Access the elements of font_spec by enum
22467 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22468 name by using split_font_name_into_vector.
22469 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22470 generate a proper font name from the fontset name. Update
22471 Vfontset_alias_alist.
22472 (n_auto_fontsets): New variable.
22473 (new_fontset_from_font_name): New function.
22474 (Ffont_info): Store the information about fonts generated from the
22475 default fontset in the first extra slot of the returned char-table.
22476
22477 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22478 (font_name_registry): Delete function.
22479 (split_font_name_into_vector): New function.
22480 (build_font_name_from_vector): New function.
22481 (font_list): The argument REGISTRY is now a list of registry names.
22482 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22483 specifies an explicit font name, return the name as is. Make a
22484 list of registy names.
22485
22486 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22487 of x_new_fontset.
22488 (Fx_create_frame): Don't call x_new_fontset here. Just use
22489 x_list_fonts to check the existence of fonts.
22490
22491 * xterm.h (x_new_fontset): Adjust prototype.
22492
22493 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22494 string. Use new_fontset_from_font_name to create a fontset from a
22495 font name.
22496
22497 2008-02-01 Kenichi Handa <handa@m17n.org>
22498
22499 * syntax.c (Vfind_word_boundary_function_table): New name for
22500 Vnext_word_boundary_function_table.
22501 (find-word-boundary-function-table): New name for
22502 next-word-boundary-function-table.
22503
22504 2008-02-01 Dave Love <fx@gnu.org>
22505
22506 * Makefile.in: Fix some dependencies.
22507
22508 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22509 set it to nil before returning.
22510
22511 * composite.c (update_compositions): Fix type error.
22512
22513 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22514
22515 2008-02-01 Kenichi Handa <handa@m17n.org>
22516
22517 * xterm.c (x_new_font): Optimize for the case that the font is
22518 already set for the frame.
22519
22520 2008-02-01 Kenichi Handa <handa@m17n.org>
22521
22522 * chartab.c (char_table_ascii): Check if the char table contents
22523 is sub-char-table or not.
22524 (char_table_set, char_table_set_range): Fix argument to
22525 char_table_ascii.
22526
22527 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22528 (detect_coding_utf_8, detect_coding_utf_16)
22529 (detect_coding_emacs_mule, detect_coding_iso_2022)
22530 (detect_coding_sjis, detect_coding_big5)
22531 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22532 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22533 sequence is valid in this coding system. Change callers.
22534 (MAX_ANNOTATION_LENGTH): New macro.
22535 (ADD_ANNOTATION_DATA): New macro.
22536 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22537 ADD_ANNOTATION_DATA. Change the format of annotation data.
22538 (ADD_CHARSET_DATA): New macro.
22539 (emacs_mule_char): New argument ID. Change callers.
22540 (decode_coding_emacs_mule, decode_coding_iso_2022)
22541 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22542 Produce charset annotation data in coding->charbuf.
22543 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22544 to charset annotation data in coding->charbuf.
22545 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22546 coding->common_flags if the coding system is iso-2022 based and
22547 uses designation.
22548 (produce_composition): Adjust for the new annotation data format.
22549 (produce_charset): New function.
22550 (produce_annotation): Handle charset annotation.
22551 (handle_composition_annotation, handle_charset_annotation): New
22552 functions.
22553 (consume_chars): Handle charset annotation. Utilize the above two
22554 functions.
22555 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22556 buffer, get the deleted text as a string and set
22557 coding->src_object to that string.
22558 (detect_coding, detect_coding_system): Use the new struct
22559 coding_detection_info.
22560
22561 * coding.h (struct coding_detection_info): New structure.
22562 (struct coding_system): Adjust prototype of the member `detector'.
22563 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22564
22565 2008-02-01 Kenichi Handa <handa@m17n.org>
22566
22567 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22568
22569 2008-02-01 Dave Love <fx@gnu.org>
22570
22571 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22572 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22573 to new local and nullify apropos_accumulate before returning.
22574 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22575
22576 2008-02-01 Kenichi Handa <handa@m17n.org>
22577
22578 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22579 correctly.
22580
22581 2008-02-01 Dave Love <fx@gnu.org>
22582
22583 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22584
22585 2008-02-01 Kenichi Handa <handa@m17n.org>
22586
22587 The following changes are to make character composition happen
22588 automatically on displaying.
22589
22590 * Makefile.in (lisp, shortlisp): Add composite.elc.
22591
22592 * composite.h (Qauto_composed, Vauto_composition_function)
22593 (Qauto_composition_function): Extern them.
22594
22595 * composite.c (Vcomposition_function_table)
22596 (Qcomposition_function_table): Delete variables.
22597 (Qauto_composed, Vauto_composition_function)
22598 (Qauto_composition_function): New variables.
22599 (run_composition_function): Don't call
22600 compose-chars-after-function.
22601 (update_compositions): Clear `auto-composed' text property.
22602 (compose_chars_in_text): Delete this function.
22603 (syms_of_composite): Staticpro Qauto_composed and
22604 Qauto_composition_function. Declare Vauto_composition_function as
22605 a Lisp variable.
22606
22607 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22608
22609 * xdisp.c (it_props): Add an entry for Qauto_composed.
22610 (handle_auto_composed_prop): New function.
22611
22612 * xselect.c (selection_data_to_lisp_data): Don't call
22613 compose_chars_in_text.
22614
22615 2008-02-01 Dave Love <fx@gnu.org>
22616
22617 * keyboard.c (read_char): Modify checking around use of
22618 Vkeyboard_translate_table.
22619
22620 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22621 and fix C types.
22622
22623 2008-02-01 Kenichi Handa <handa@m17n.org>
22624
22625 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22626 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22627 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22628 the case that the last byte is '\r' correctly.
22629 (decode_coding): Flush out the unprocessed data correctly.
22630 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22631
22632 2008-02-01 Dave Love <fx@gnu.org>
22633
22634 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22635 Add XK_ISO... case.
22636 (xaw_scroll_callback): Revert last change.
22637
22638 2008-02-01 Kenichi Handa <handa@m17n.org>
22639
22640 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22641
22642 2008-02-01 Kenichi Handa <handa@m17n.org>
22643
22644 * xfaces.c (Vface_resizing_fonts): New variable.
22645 (struct font_name): New member `resizing_ratio'.
22646 (font_resizing_ratio): New function.
22647 (split_font_name): Set font->resizing_ratio.
22648 (better_font_p): Pay attention to font->resizing_ratio.
22649 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22650 RESX, and RESY fields.
22651 (try_alternative_families): Try scalable fonts if
22652 Vscalable_fonts_allowed is not Qt.
22653 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22654
22655 2008-02-01 Dave Love <fx@gnu.org>
22656
22657 * xterm.c (xaw_scroll_callback): Cast correctly.
22658
22659 2008-02-01 Dave Love <fx@gnu.org>
22660
22661 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22662 (lispy_kana_keys): Comment out.
22663 (make_lispy_event) [XK_kana_A]: Comment out.
22664
22665 * xterm.c (xaw_scroll_callback): Cast call_data.
22666 (XTread_socket): Deal with ASCII keysyms.
22667 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22668
22669 2008-02-01 Dave Love <fx@gnu.org>
22670
22671 * xterm.c (Vx_keysym_table): New.
22672 (syms_of_xterm): Initialize it.
22673 (XTread_socket): Use it.
22674 From head: Eliminate incorrect optimization that tried to avoid
22675 decoding the output of X*LookupString.
22676 (x_get_font_repertory): Delete charset declaration.
22677
22678 2008-02-01 Kenichi Handa <handa@m17n.org>
22679
22680 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22681 return 0.
22682 (Fdefine_coding_system_internal): Setup
22683 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22684
22685 2008-02-01 Dave Love <fx@gnu.org>
22686
22687 * coding.c (Fcheck_coding_system): Doc fix.
22688
22689 * editfns.c (Finsert_byte): Return a proper value.
22690
22691 2008-02-01 Kenichi Handa <handa@m17n.org>
22692
22693 * coding.c (decode_coding): Fix args to translate_chars. Pay
22694 attention to Vstandard_translation_table_for_decode.
22695 (encode_coding): Fix args to translate_chars. Pay attention to
22696 Vstandard_translation_table_for_encode.
22697
22698 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22699 SINGLE_BYTE_CHAR_P.
22700
22701 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22702 not by SINGLE_BYTE_CHAR_P.
22703
22704 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22705 SINGLE_BYTE_CHAR_P.
22706
22707 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22708 SINGLE_BYTE_CHAR_P.
22709
22710 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22711 by SINGLE_BYTE_CHAR_P.
22712
22713 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22714 SINGLE_BYTE_CHAR_P.
22715
22716 2008-02-01 Dave Love <fx@gnu.org>
22717
22718 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22719
22720 2008-02-01 Dave Love <fx@gnu.org>
22721
22722 * fns.c (Flanginfo): Fix typo.
22723
22724 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22725
22726 2008-02-01 Kenichi Handa <handa@m17n.org>
22727
22728 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22729 (detect_coding_emacs_mule, detect_coding_iso_2022)
22730 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22731 incomplete byte sequence. Don't update *mask when correctly detected.
22732 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22733 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22734 (detect_coding, detect_coding_system): Adjust for the changes above.
22735
22736 2008-02-01 Kenichi Handa <handa@m17n.org>
22737
22738 * character.c (char_string): Rename from
22739 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22740 (string_char): Rename from string_char.
22741
22742 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22743 if C is greater than MAX_3_BYTE_CHAR.
22744 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22745 string_char instead of string_char_with_unification.
22746
22747 2008-02-01 Dave Love <fx@gnu.org>
22748
22749 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22750
22751 2008-02-01 Kenichi Handa <handa@m17n.org>
22752
22753 * keymap.c (push_key_description): Pay attention to force_multibyte.
22754
22755 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22756
22757 2008-02-01 Dave Love <fx@gnu.org>
22758
22759 * charset.c (define_charset_internal): Rename `supprementary'.
22760
22761 * Makefile.in (lisp, shortlisp): Remove latin-N.
22762
22763 2008-02-01 Dave Love <fx@gnu.org>
22764
22765 * xfns.c (x_window, x_window): Use use_xim.
22766
22767 * xterm.c (use_xim): Initialize.
22768 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22769 (x_term_init): Maybe set use_xim.
22770
22771 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22772
22773 2008-02-01 Kenichi Handa <handa@m17n.org>
22774
22775 * search.c (search_buffer): Fix case-fold-search of multibyte
22776 characters.
22777 (boyer_moore): Rename the last argument to char_high_bits.
22778
22779 2008-02-01 Kenichi Handa <handa@m17n.org>
22780
22781 * xdisp.c (display_string): Fix for the case of zero width glyph.
22782
22783 * xfns.c (x_set_font): Change the error message of the case that
22784 x_new_fontset returns Qt.
22785
22786 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22787 (Finternal_set_lisp_face_attribute): Use signal_error for the
22788 error of invalid fontset.
22789
22790 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22791 fontset, return Qt.
22792
22793 2008-02-01 Dave Love <fx@gnu.org>
22794
22795 * unexelf.c (unexec): Make .got handling not SGI-specific.
22796
22797 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22798
22799 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22800
22801 * keyboard.c (read_key_sequence): Fix type error.
22802
22803 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22804 type error.
22805
22806 * fontset.c (fontset_add): Return Lisp_Object.
22807
22808 2008-02-01 Dave Love <fx@gnu.org>
22809
22810 * charset.h (charset_ordered_list_tick): Declare extern.
22811
22812 2008-02-01 Kenichi Handa <handa@m17n.org>
22813
22814 The following changes (and some of 2008-02-01 changes of mine) are
22815 for handling syntax, category, and case conversion for unibyte
22816 characters by converting them to multibyte on the fly. With these
22817 changes, we don't have to setup syntax and case tables for unibyte
22818 characters in each language environment.
22819
22820 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22821 multibyte if necessary.
22822
22823 * bytecode.c (Fbyte_code): Likewise.
22824
22825 * character.h (LEADING_CODE_LATIN_1_MIN)
22826 (LEADING_CODE_LATIN_1_MAX): New macros.
22827 (unibyte_to_multibyte_table): Extern it.
22828 (unibyte_char_to_multibyte): New macro.
22829 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22830 (CHAR_LEADING_CODE): New macro.
22831 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22832
22833 * character.c (unibyte_to_multibyte_table): New variable.
22834 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22835 (multibyte_char_to_unibyte): If C is an eight-bit character,
22836 convert it to the corresponding byte value.
22837
22838 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22839 not 1, signals an error. Update the elements of
22840 unibyte_to_multibyte_table.
22841 (init_charset_once): Initialize unibyte_to_multibyte_table.
22842 (syms_of_charset): Define the charset `iso-8859-1'.
22843
22844 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22845 as is without converting it to unibyte. In a unibyte buffer,
22846 convert C to multibyte before checking the syntax.
22847
22848 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22849
22850 * minibuf.c (Fminibuffer_complete_word): Use the macro
22851 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22852
22853 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22854
22855 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22856 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22857 that is zero, convert an eight-bit char to multibyte.
22858 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22859 non-emacs case.
22860 (PATFETCH): Convert an eight-bit char to multibyte.
22861 (HANDLE_UNIBYTE_RANGE): New macro.
22862 (regex_compile): Setup the compiled pattern for multibyte chars
22863 even if the given regex string is unibyte. Use PATFETCH_RAW
22864 instead of PATFETCH in many places. To handle `charset'
22865 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22866 only for ASCII chars.
22867 (analyse_first) <exactn>: Simplify because the compiled pattern
22868 is multibyte.
22869 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22870 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22871 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22872 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22873 multibyte always 1.
22874 (re_search_2): In emacs, set the locale variable multibyte to 1,
22875 otherwise to 0. New local variable target_multibyte. Check it
22876 to decide the multibyteness of STR1 and STR2. If
22877 target_multibyte is zero, convert unibyte chars to multibyte
22878 before translating and checking fastmap.
22879 (TARGET_CHAR_AND_LENGTH): New macro.
22880 (re_match_2_internal): In emacs, set the locale variable multibyte
22881 to 1, otherwise to 0. New local variable target_multibyte. Check
22882 it to decide the multibyteness of STR1 and STR2. Use
22883 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22884 <charset, charset_not>: If multibyte is nonzero, check fastmap
22885 only for ASCII chars. Call bcmp_translate with
22886 target_multibyte, not with multibyte.
22887 <begline>: Declare the local variable C as `unsigned'.
22888 (bcmp_translate): Change the last arg name to target_multibyte.
22889
22890 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22891 the regexp pattern and the matching target. Set cp->buf.multibyte
22892 to the multibyteness of the regexp pattern. Set
22893 cp->but.target_multibyte to the multibyteness of the matching target.
22894 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22895 FETCH_STRING_CHAR_ADVANCE.
22896 (Freplace_match): Convert unibyte chars to multibyte.
22897
22898 * syntax.c (char_quoted, back_comment, scan_words)
22899 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22900 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22901 unibyte chars to multibyte.
22902 (skip_chars): Delete the arg syntaxp, and move the code for
22903 handling syntaxes to skip_syntaxes. Change callers.
22904 Fix the case that the multibyteness of STRING and the current
22905 buffer doesn't match.
22906 (skip_syntaxes): New function.
22907 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22908 SINGLE_BYTE_CHAR_P.
22909
22910 2008-02-01 Kenichi Handa <handa@m17n.org>
22911
22912 * xfaces.c (QCfontset): New variable.
22913 (LFACE_FONTSET): New macro.
22914 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22915 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22916 (Finternal_set_lisp_face_attribute)
22917 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22918 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22919 check also LFACE_FONTSET_INDEX.
22920 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22921 attrs[LFACE_FONT_INDEX].
22922 (syms_of_xfaces): Intern and staticpro QCfontset.
22923
22924 * dispextern.h (enum lface_attribute_index): New member
22925 LFACE_FONTSET_INDEX.
22926
22927 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22928
22929 2008-02-01 Kenichi Handa <handa@m17n.org>
22930
22931 * coding.c (coding_set_destination): Fix coding->destination for
22932 the case converting a region.
22933 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22934 (encode_coding_object): Fix coding->dst_pos and
22935 coding->dst_pos_byte for the case converting a region.
22936
22937 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22938
22939 * character.h (BYTE8_STRING): New macro.
22940
22941 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22942
22943 2008-02-01 Kenichi Handa <handa@m17n.org>
22944
22945 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22946 characters by octal form.
22947
22948 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22949
22950 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22951 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22952 _fetch_multibyte_char_len.
22953 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22954
22955 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22956
22957 * casefiddle.c (casify_object): Simplify. Handle the case that
22958 the case conversion change the byte length.
22959 (casify_region): Likewise.
22960
22961 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22962
22963 * character.c (_fetch_multibyte_char_len): Delete this variable.
22964 (syms_of_character): Setup Vprintable_chars.
22965
22966 * editfns.c (Fchar_equal): Fix for the unibyte case.
22967 (Finsert_byte): New function.
22968 (syms_of_editfns): Defsubr it.
22969
22970 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22971 of direct code 0x3ffff.
22972
22973 * search.c (Freplace_match): Fix for the unibyte case.
22974
22975 2008-02-01 Kenichi Handa <handa@m17n.org>
22976
22977 * lread.c (safe_to_load_p): Fix the logic.
22978
22979 * syntax.c (scan_words): Don't treat characters belonging to
22980 different scripts as constituting a word.
22981
22982 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22983
22984 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22985
22986 * emacs.c (main): In the case of --unibyte, instead of aborting on
22987 finding non-empty buffer, make it unibyte.
22988
22989 2008-02-01 Kenichi Handa <handa@m17n.org>
22990
22991 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22992 to create a fontset.
22993
22994 2008-02-01 Dave Love <fx@gnu.org>
22995
22996 * character.c (Funibyte_char_to_multibyte): Doc fix.
22997
22998 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22999
23000 2008-02-01 Kenichi Handa <handa@m17n.org>
23001
23002 * fontset.c (fontset_add): Make the type `int'.
23003 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23004
23005 * character.c (unibyte_char_to_multibyte)
23006 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23007 charset_unibyte, not charset_primary.
23008
23009 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23010
23011 * charset.c (charset_unibyte): Rename from charset_primary.
23012 (Funibyte_charset): Rename from Fprimary_charset.
23013 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23014 (syms_of_charset): Adjust for the above changes.
23015
23016 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23017 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23018 it->multibyte_p is zero.
23019
23020 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23021 Delete extern.
23022
23023 2008-02-01 Kenichi Handa <handa@m17n.org>
23024
23025 * coding.c (Fdefine_coding_system_internal): Fix category setting
23026 for a coding system of type iso-2022.
23027
23028 2008-02-01 Kenichi Handa <handa@m17n.org>
23029
23030 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23031
23032 2008-02-01 Kenichi Handa <handa@m17n.org>
23033
23034 * syntax.c (Vnext_word_boundary_function_table): New variable.
23035 (next-word-boundary-function-table): Declare it as a Lisp variable
23036 in syms_of_syntax.
23037 (scan_words): Call functions in Vnext_word_boundary_function_table
23038 if any.
23039
23040 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23041
23042 * fontset.c (fs_load_font): If fontp->charset is not negative,
23043 return fontp without setting its members.
23044
23045 2008-02-01 Dave Love <fx@gnu.org>
23046
23047 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23048
23049 * m/sparc.h (HAVE_ALLOCA): Delete.
23050
23051 * s/irix6-5.h: Don't include strings.h.
23052 (bcopy, bzero, bcmp): Don't undef.
23053
23054 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23055
23056 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23057 (TIOCSIGSEND): Don't test IRIX6.
23058 (bcopy, bzero, bcmp): Define conditionally.
23059
23060 2008-02-01 Kenichi Handa <handa@m17n.org>
23061
23062 * buffer.c (Qas, Qmake, Qto): New variables.
23063 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23064 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23065
23066 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23067 we are inserting a process output into a multibyte buffer.
23068
23069 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23070 multibyte_char_to_unibyte.
23071
23072 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23073 by the primary charset, make it eight-bit char.
23074 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23075
23076 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23077 (charset_8_bit__control, charset_8_bit_graphic)
23078 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23079 (define_charset_internal): New function.
23080 (syms_of_charset): Call define_charset_internal for pre-defined
23081 charsets.
23082
23083 * charset.h (charset_8_bit): Extern it.
23084
23085 * coding.c (make_conversion_work_buffer): Adjust for the change
23086 of Fset_buffer_multibyte.
23087 (encode_coding_raw_text): Increment p0 in the loop.
23088
23089 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23090
23091 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23092 for the change of Fset_buffer_multibyte.
23093
23094 * fns.c (Fstring_to_multibyte): New function.
23095 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23096
23097 2008-02-01 Dave Love <fx@gnu.org>
23098
23099 * xfns.c (x_put_x_image): Declare args.
23100
23101 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23102 (try_font_list): Declare an arg.
23103
23104 * xdisp.c (message2_nolog, set_message): Declare an arg.
23105
23106 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23107
23108 * syntax.c (scan_sexps_forward): Declare an arg.
23109
23110 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23111 Declare an arg.
23112
23113 * lisp.h (Fnew_fontset): Declare.
23114
23115 * keymap.c (push_key_description): Call CHARACTERP correctly.
23116
23117 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23118 (face_for_char): Delete unused vars.
23119 (Fset_fontset_font): Doc fix. Delete unused vars.
23120
23121 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23122
23123 * composite.c (update_compositions): Declare arg.
23124
23125 * cm.c (calccost, cmgoto): Declare args.
23126
23127 * charset.c: Remove `emacs' conditional. Doc fixes.
23128 (map_char_table_for_charset): Declare.
23129
23130 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23131
23132 * ccl.c: Remove `emacs' conditional.
23133
23134 2008-02-01 Kenichi Handa <handa@m17n.org>
23135
23136 The following changes are to allow specifying multiple font
23137 patterns for a character range (specified by script or charset).
23138
23139 * Makefile.in (abbrev.o): Depend on syntax.h.
23140 (xfaces.o): Depend on charset.h.
23141
23142 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23143 SINGLE_BYTE_CHAR_P.
23144
23145 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23146
23147 * character.h (Vchar_script_table): Extern it.
23148
23149 * character.c (Vscript_alist): Delete.
23150 (Vchar_script_table, Qchar_script_table): New variable.
23151 (syms_of_character): Declare Vchar_script_table as a lisp variable
23152 and initialize it.
23153
23154 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23155 have property char-table-extra-slots, make no extra slot.
23156
23157 * dispextern.h (struct face): Delete member `charset'.
23158 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23159 SINGLE_BYTE_CHAR_P.
23160 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23161 Add prototypes.
23162 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23163 (generate_ascii_font_name): Rename from generate_ascii_font.
23164
23165 * fontset.h (get_font_repertory_func): New prototype.
23166 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23167 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23168
23169 * fontset.c (Qprepend, Qappend): New variables.
23170 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23171 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23172 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23173 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23174 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23175 (load_font_get_repertory): New functions.
23176 (fontset_set): Delete.
23177 (fontset_face): New arg FACE. Return face ID, not face.
23178 Complete re-write to handle new fontset structure. Change caller.
23179 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23180 (face_for_char): Don't call lookup_face.
23181 (make_fontset_for_ascii_face): New arg FACE.
23182 (fs_load_font): New arg CHARSET_ID. Don't check
23183 Vfont_encoding_alist here.
23184 (find_font_encoding): New function.
23185 (list_fontsets): Use STRINGP, not ! NILP.
23186 (accumulate_script_ranges): New function.
23187 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23188 re-written to handle new fontset structure.
23189 (Ffontset_font): Return a copy of element.
23190 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23191 docstring of font-encoding-alist.
23192
23193 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23194 (Fset_fotset_font): Fix arguments to 5.
23195
23196 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23197
23198 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23199 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23200 (highlight_trailing_whitespace): Adjust for the change of
23201 lookup_named_face.
23202
23203 * xfaces.c: Include charset.h.
23204 (load_face_font): Delete argument C. Change caller.
23205 (generate_ascii_font_name): Rename from generate_ascii_font.
23206 (font_name_registry): New function.
23207 (cache_face): Store ascii faces before non-ascii faces in buckets.
23208 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23209 Lookup only ascii faces.
23210 (lookup_non_ascii_face): New function.
23211 (lookup_named_face): Delete argument C. Change caller.
23212 (lookup_derived_face): Delete argument C. Change caller.
23213 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23214 a string, just call font_list with it.
23215 (choose_face_font): Delete arguments FACE and C. New arg
23216 FONT_SPEC. Change caller.
23217 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23218 Change caller.
23219 (realize_non_ascii_face): New function.
23220 (realize_x_face): Call load_face_font here.
23221 (realize_tty_face): Delete argument C. Change caller.
23222 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23223 get a face ID.
23224 (dump_realized_face): Don't print charset of FACE.
23225
23226 * xfns.c (x_set_font): Always call x_new_fontset and
23227 store_frame_parameter.
23228 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23229 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23230
23231 * xterm.h (x_get_font_repertory): Extern it.
23232
23233 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23234 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23235 it->multibyte_p is zero.
23236 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23237 (x_new_fontset): If FONTSETNAME doesn't match any existing
23238 fontsets, create a new one.
23239 (x_get_font_repertory): New function.
23240
23241 2008-02-01 Kenichi Handa <handa@m17n.org>
23242
23243 * coding.c (Ffind_coding_systems_region_internal): Detect an
23244 ASCII only string correctly.
23245
23246 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23247 version is 0.
23248
23249 2008-02-01 Kenichi Handa <handa@m17n.org>
23250
23251 * lread.c: Include "coding.h".
23252 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23253 (load_each_byte, unread_char): New variables.
23254 (readchar_backlog): Delete.
23255 (readchar): Return a character unless load_each_byte is nonzero.
23256 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23257 cons. If unread_char is not -1, simply return it.
23258 (unreadchar): Handle the case that readcharfun is
23259 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23260 (read_multibyte): Delete.
23261 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23262 (read_emacs_mule_char): New functions.
23263 (Fload): Even if the file doesn't have the extension ".elc", if
23264 safe_to_load_p returns a positive version number, assume that the
23265 file contains bytecompiled code. If the version is less than 22,
23266 load the file while decoding multibyte sequences by emacs-mule.
23267 (readevalloop): Don't use readchar_backlog.
23268 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23269 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23270 (read_escape): Delete the arg BYTEREP.
23271 (read1): Set load_each_byte to 1 temporarily while handling
23272 #@NUMBER. Don't call read_multibyte.
23273 (read_vector): Call Fread with a cons. If readcharfun is
23274 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23275 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23276 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23277 and Qload_force_doc_strings.
23278
23279 2008-02-01 Kenichi Handa <handa@m17n.org>
23280
23281 * xdisp.c (face_before_or_after_it_pos): Call
23282 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23283
23284 2008-02-01 Kenichi Handa <handa@m17n.org>
23285
23286 * character.h (TRAILING_CODE_P): New macro.
23287 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23288 (string_char_with_unification): Fix prototype.
23289 (Vscript_alist): Extern it.
23290
23291 * character.c (Vscript_alist): New variable.
23292 (string_char_with_unification, str_as_unibyte)
23293 (string_escape_byte8): Add `const' to local variables.
23294 (syms_of_character): Declare script-alist as a Lisp variable.
23295
23296 * charset.h (Vcharset_ordered_list): Extern it.
23297 (charset_ordered_list_tick): Extern it.
23298 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23299 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23300 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23301 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23302 (Funify_charset): Adjust for the change of Funify_charset.
23303
23304 * charset.c (charset_ordered_list_tick): New variable.
23305 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23306 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
23307 deunify instead of unify a charset.
23308 (string_xstring_p): Add `const' to local variables.
23309 (find_charsets_in_text): Add `const' to arguments and local variables.
23310 (encode_char): Adjust for the change of Funify_charset. Fix
23311 detecting of invalid code.
23312 (Fset_charset_priority): Increment charset_ordered_list_tick.
23313 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23314 and TO_CODE.
23315
23316 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23317 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23318 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23319 (decode_coding_ccl, consume_chars)
23320 (Ffind_coding_systems_region_internal)
23321 (Fcheck_coding_systems_region): Add `const' to local variables.
23322
23323 * print.c (print_object): Use octal form for printing the
23324 contents of a bool vector.
23325
23326 2008-02-01 Dave Love <fx@gnu.org>
23327
23328 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23329 <version == 20>: Refuse to load.
23330
23331 2008-02-01 Dave Love <fx@gnu.org>
23332
23333 * fns.c: Move coding.h.
23334 (Qcodeset, Qdays, Qmonths): New.
23335 (concat): Use CHARACTERP instead of INTEGERP.
23336 (Flocale_codeset): Delete.
23337 (Flanginfo): New function.
23338 (syms_of_fns): Change accordingly.
23339
23340 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23341
23342 2008-02-01 Dave Love <fx@gnu.org>
23343
23344 * casetab.c (init_casetab_once, init_casetab_once): Fix
23345 CHAR_TABLE_SET call.
23346
23347 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23348
23349 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23350
23351 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23352 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23353 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23354
23355 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23356
23357 * coding.c (ENCODE_DESIGNATION, decode_eol)
23358 (make_conversion_work_buffer, code_conversion_restore)
23359 (Fdefine_coding_system_internal): Convert Lisp types.
23360 (code_conversion_restore): Use EQ, not ==.
23361 (Fencode_coding_string): Fix code_convert_string call.
23362
23363 * coding.h (code_convert_region): Fix prototype.
23364
23365 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23366
23367 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23368 (Ffontset_info): Convert Lisp types.
23369
23370 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23371
23372 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23373
23374 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23375
23376 * chartab.c: Include "...h", not <...h> in some cases.
23377
23378 * callproc.c (Fcall_process): Remove unused variables.
23379
23380 2008-02-01 Dave Love <fx@gnu.org>
23381
23382 * coding.c (Fset_coding_system_priority): Allow null arg list.
23383
23384 2008-02-01 Dave Love <fx@gnu.org>
23385
23386 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23387 (Fself_insert_and_exit): Use CHARACTERP.
23388
23389 * callproc.c (Fcall_process): Remove unused vars.
23390
23391 * xterm.c (XTread_socket): Add extra dead keysyms.
23392
23393 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23394
23395 * dispextern.h: Remove prototypes for redraw_frame,
23396 redraw_garbaged_frames.
23397
23398 * cmds.c (Fself_insert_command): Use CHARACTERP.
23399
23400 * chartab.c (make_sub_char_table): Remove unused var.
23401 (Fset_char_table_default, Fmap_char_table): Doc fix.
23402
23403 * keymap.c (access_keymap): Remove generic char code.
23404 (push_key_description): Use CHARACTERP.
23405
23406 2008-02-01 Dave Love <fx@gnu.org>
23407
23408 * charset.c: Doc fixes.
23409 (Funify_charset): Extra checking.
23410
23411 2008-02-01 Dave Love <fx@gnu.org>
23412
23413 * lread.c: Remove some unused variables.
23414 (safe_to_load_p): If safe, return the magic number version byte.
23415 (Fload): Maybe use load-with-code-conversion.
23416
23417 2008-02-01 Kenichi Handa <handa@m17n.org>
23418
23419 * category.c (Fmodify_category_entry): Don't modify the contents
23420 of category_set for characters out of the range. Avoid
23421 unnecessary modification.
23422
23423 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23424 Vchar_unify_table. The default value of the table is now nil.
23425
23426 * character.c (syms_of_character): Setup Vchar_width_table for
23427 eight-bit-control and raw-byte chars.
23428
23429 * charset.h (enum define_charset_arg_index): Delete
23430 charset_arg_parents and add charset_arg_subset and
23431 charset_arg_superset.
23432 (enum charset_attr_index): Delete charset_parents and add
23433 charset_subset and charset_superset.
23434 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23435 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23436 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23437 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23438 (CHARSET_SUPERSET): New macros.
23439 (charset_work): Extern it.
23440 (ENCODE_CHAR): Use charset_work.
23441 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23442 (map_charset_chars): Extern it.
23443
23444 * charset.c (load_charset_map): Set the default value of encoder
23445 and deunifier char-tables to nil.
23446 (map_charset_chars): Change argument. Change callers. Use
23447 map_char_table_for_charset instead of map_char_table.
23448 (Fmap_charset_chars): New optional args from_code and to_code.
23449 (Fdefine_charset_internal): Adjust for the change of
23450 `define-charset' (:parents -> :subset or :superset).
23451 (charset_work): New variable.
23452 (encode_char, syms_of_charset): Adjust for the change of
23453 Fdefine_charset_internal.
23454 (Ffind_charset_string): Setup the vector `charsets' correctly.
23455
23456 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23457 the previous change.
23458 (char_table_ref_and_range): Adjust for the above change.
23459 (map_sub_char_table_for_charset): New function.
23460 (map_char_table_for_charset): New function.
23461
23462 * keymap.c (describe_vector): Handle a char-table directly here.
23463 (describe_char_table): Delete.
23464
23465 * lisp.h (map_charset_chars): Delete.
23466
23467 2008-02-01 Dave Love <fx@gnu.org>
23468
23469 * fns.c (count_combining): Comment out (unused).
23470 (Flocale_codeset): New.
23471 (syms_of_fns): Defsubr it.
23472
23473 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23474 (size_t): Remove.
23475
23476 2008-02-01 Dave Love <fx@gnu.org>
23477
23478 * Makefile.in (chartab.o): Depend on charset.h.
23479
23480 2008-02-01 Kenichi Handa <handa@m17n.org>
23481
23482 * character.c (syms_of_character): Set the default value of
23483 Vprintable_chars to Qnil.
23484
23485 2008-02-01 Dave Love <fx@gnu.org>
23486
23487 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23488
23489 2008-02-01 Kenichi Handa <handa@m17n.org>
23490
23491 * charset.c (load_charset_map): Handle the case that from < to
23492 correctly.
23493
23494 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23495 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23496 Pay attention to raw-8-bit chars.
23497
23498 2008-02-01 Kenichi Handa <handa@m17n.org>
23499
23500 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23501 It is not bytecompiled now.
23502
23503 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23504 (charset_jisx0208): New variables.
23505 (Fdefine_charset_internal): Setup them if appropriate.
23506 (init_charset_once): Initialize them to -1.
23507
23508 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23509 (charset_jisx0208): Extern them.
23510
23511 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23512 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23513 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23514 (setup_iso_safe_charsets): Fix arguments to Fassq.
23515 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23516 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23517 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23518 (encode_coding_iso_2022): Change the 1st arg to
23519 ENCODE_ISO_CHARACTER to a variable.
23520
23521 2008-02-01 Kenichi Handa <handa@m17n.org>
23522
23523 * charset.h (enum define_charset_arg_index): New enums
23524 charset_arg_min_code and charset_arg_max_code.
23525 (struct charset): New member char_index_offset.
23526
23527 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23528 Take charset->char_index_offset into account.
23529 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23530 args[charset_arg_max_code]. Setup charset.char_index_offset.
23531 (syms_of_charset): Fix args to Fdefine_charset_internal.
23532
23533 2008-02-01 Dave Love <fx@gnu.org>
23534
23535 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23536
23537 2008-02-01 Dave Love <fx@gnu.org>
23538
23539 * coding.c: Doc fixes.
23540 (Fcoding_system_aliases): Fix return value.
23541 (Qmac): Remove (duplicated) definition.
23542
23543 2008-02-01 Dave Love <fx@gnu.org>
23544
23545 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23546 New functions.
23547
23548 * character.c (Fstring): Doc fix.
23549
23550 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23551
23552 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
23553 (font-encoding-alist): Doc fix.
23554
23555 2008-02-01 Dave Love <fx@gnu.org>
23556
23557 * term.c (costs_set): Declare static, non-initialized for pcc.
23558 (encode_terminal_code): Remove unused var.
23559
23560 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23561 for K&R.
23562
23563 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23564
23565 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23566 (suffixes): Move out of make_subsidiaries for K&R.
23567
23568 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23569
23570 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23571
23572 2008-02-01 Dave Love <fx@gnu.org>
23573
23574 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23575
23576 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23577
23578 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23579
23580 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23581
23582 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23583
23584 2008-02-01 Kenichi Handa <handa@m17n.org>
23585
23586 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23587 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23588
23589 2008-02-01 Kenichi Handa <handa@m17n.org>
23590
23591 * coding.c (decode_coding_charset): Adjust for the change of
23592 Fdefine_coding_system_internal.
23593 (Fdefine_coding_system_internal): For a coding system of
23594 `charset' type, store a list of charset IDs in
23595 `charset_attr_charset_valids' element of coding attributes.
23596
23597 2008-02-01 Kenichi Handa <handa@m17n.org>
23598
23599 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23600 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23601 caller. Handle 2-byte and 3-byte charsets correctly.
23602 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23603 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23604 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23605 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23606 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23607 sequence.
23608 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23609 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23610 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23611 and alt&rule composition.
23612 (decode_coding_iso_2022): Handle composition correctly.
23613 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23614
23615 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23616 re-defining a charset. If the charset has :emacs-mule-id, setup
23617 emacs_mule_bytes.
23618 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23619
23620 2008-02-01 Kenichi Handa <handa@m17n.org>
23621
23622 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23623 (encode_coding_big5, encode_coding_charset): If coding requires safe
23624 encoding, produce a character specified by
23625 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23626
23627 2008-02-01 Dave Love <fx@gnu.org>
23628
23629 * xterm.c (XSetIMValues): Declare.
23630
23631 * process.c: Conditionally include sys/wait.h, pty.h.
23632
23633 * print.c (print_object): Fix print format for 64-bit systems.
23634
23635 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23636
23637 * buffer.c (emacs_strerror): Declare.
23638
23639 * fontset.c (Fclear_face_cache): Declare.
23640 (accumulate_font_info): Comment-out (unused).
23641 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23642 variables.
23643
23644 * character.h (string_escape_byte8): Declare.
23645
23646 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23647 unused vars.
23648 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23649 (Fmap_charset_chars): Doc fix.
23650
23651 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23652 (Fset_coding_system_priority, Fset_coding_system_priority)
23653 (Fdefine_coding_system_internal): Doc fix.
23654
23655 2008-02-01 Dave Love <fx@gnu.org>
23656
23657 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23658
23659 2008-02-01 Kenichi Handa <handa@m17n.org>
23660
23661 * character.c (string_escape_byte8): Make multibyte string with
23662 correct size.
23663
23664 * charset.c (Fmake_char): Delete unnecessary code.
23665
23666 2008-02-01 Kenichi Handa <handa@m17n.org>
23667
23668 * xfns.c (x_encode_text): Allocate coding.destination here, and
23669 call encode_coding_object with dst_object Qnil.
23670
23671 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23672 multibyte form correctly.
23673
23674 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23675 against Vfont_encoding_alist.
23676
23677 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23678 handling of charset list.
23679 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23680 (decode_coding_object): Move point to coding->dst_pos before
23681 calling post-read-conversion function.
23682 (encode_coding_object): Give correct arguments to
23683 pre-write-conversion. Ignore the return value of
23684 pre-write-conversion function. Pay attention to the case that
23685 pre-write-conversion changes the current buffer. If dst_object is
23686 Qt, even if coding->src_bytes is zero, allocate at least one byte
23687 to coding->destination.
23688
23689 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23690
23691 * charset.c (Fmake_char): Make it more backward compatible.
23692 (Fmap_charset_chars): Fix docstring.
23693
23694 2008-02-01 Dave Love <fx@gnu.org>
23695
23696 * coding.c: Doc fixes.
23697 (Fdefine_coding_system_alias): Use names, not symbols, in
23698 coding-system-alist.
23699
23700 2008-02-01 Kenichi Handa <handa@m17n.org>
23701
23702 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23703 of calling free_realized_face.
23704
23705 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23706
23707 * charset.c (read_hex): Don't treat SPC as a comment starter.
23708 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23709 (Fdecode_char): Fix typo.
23710
23711 2008-02-01 Kenichi Handa <handa@m17n.org>
23712
23713 * charset.h (struct charset): New member `code_space_mask'.
23714
23715 * coding.c (coding_set_source): Delete the local variable beg_byte.
23716 (encode_coding_charset, Fdefine_coding_system_internal):
23717 Delete the local variable charset.
23718 (Fdefine_coding_system_internal): Setup
23719 attrs[coding_attr_charset_valids] correctly.
23720
23721 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23722 member to check if CODE is valid or not.
23723 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23724 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23725 is within the range of charset->min_code and carset->max_code.
23726
23727 2008-02-01 Dave Love <fx@gnu.org>
23728
23729 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23730
23731 * dispextern.h (generate_ascii_font): Fix return type.
23732
23733 * xfaces.c (generate_ascii_font): Fix arg declaration.
23734
23735 * coding.c (coding_inherit_eol_type)
23736 (Fset_terminal_coding_system_internal)
23737 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23738
23739 2008-02-01 Kenichi Handa <handa@m17n.org>
23740
23741 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23742 multiple charsets correctly.
23743
23744 2008-02-01 Kenichi Handa <handa@m17n.org>
23745
23746 * search.c (boyer_moore): Fix handling of multibyte character
23747 translation.
23748
23749 * xdisp.c (display_mode_element): When the variable `elt' is
23750 changed, update `this' and `lisp_string'.
23751
23752 2008-02-01 Kenichi Handa <handa@m17n.org>
23753
23754 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23755
23756 * callproc.c (Fcall_process): Be sure to give the current buffer
23757 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23758
23759 * charset.c (struct charset_map_entries): New struct.
23760 (load_charset_map): Rename from parse_charset_map. New args
23761 entries and n_entries. Change caller.
23762 (load_charset_map_from_file): Rename from load_charset_map.
23763 Change caller. New arg control_flag. Call load_charset_map at
23764 the tail.
23765 (load_charset_map_from_vector): New function.
23766 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23767 (encode_char): If the charset is compact, change a character index
23768 to a code point.
23769
23770 * coding.c (coding_alloc_by_making_gap): Check the case that the
23771 source and destination are the same correctly.
23772 (decode_coding_raw_text): Set coding->consumed_char and
23773 coding->consumed to 0.
23774 (produce_chars): If coding->chars_at_source is nonzero, update
23775 coding->consumed_char and coding->consumed before calling
23776 alloc_destination.
23777 (Fdefine_coding_system_alias): Register ALIAS in
23778 Vcoding_system_alist.
23779 (syms_of_coding): Define `no-conversion' coding system at the tail.
23780
23781 * fileio.c (Finsert_file_contents): Set coding_system instead of
23782 val. If the current buffer is multibyte, always call
23783 decode_coding_gap.
23784
23785 * xfaces.c (try_font_list): Give higher priority to fontset's
23786 family than face's family.
23787
23788 2008-02-01 Kenichi Handa <handa@m17n.org>
23789
23790 * callproc.c (Fcall_process): Be sure to give the current buffer
23791 to decode_coding_c_string.
23792
23793 * xfaces.c (try_font_list): Give a family specified in a fontset
23794 higher priority than a family specified in a face.
23795
23796 2008-02-01 Kenichi Handa <handa@m17n.org>
23797
23798 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23799 Fix arguments to insert_from_buffer.
23800
23801 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23802
23803 2008-02-01 Kenichi Handa <handa@m17n.org>
23804
23805 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23806 (decode_coding_gap): Set coding->dst_multibyte correctly.
23807
23808 2008-02-01 Kenichi Handa <handa@m17n.org>
23809
23810 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23811 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23812 (encode_coding_utf_16): Substitute coding->default_char for
23813 non-Unicode characters.
23814 (decode_coding): Don't call record_insert here.
23815 (setup_coding_system): Initialize `surrogate' of
23816 coding->spec.utf_16 to 0.
23817 (EMIT_ONE_BYTE): Fix for multibyte case.
23818
23819 * insdel.c (insert_from_gap): Call record_insert.
23820
23821 2008-02-01 Kenichi Handa <handa@m17n.org>
23822
23823 * casefiddle.c (casify_region): Fix multibyte case.
23824
23825 * character.c (c_string_width): Add return type `int'.
23826 (char_string_with_unification): Delete arg ADVANCED.
23827
23828 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23829 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23830 (CHAR_STRING_ADVANCE): Make it do-while statement.
23831
23832 * chartab.c (sub_char_table_set_range): Optimize for the case
23833 DEPTH == 3. Add workaround code for a GCC optimization bug.
23834
23835 * charset.c (parse_charset_map): Remove an unused variable.
23836
23837 * coding.c: Delete unused variables.
23838
23839 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23840 earlier. If inserted is zero and the coding system doesn't
23841 require flushing, don't call decode_coding_gap.
23842
23843 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23844
23845 2008-02-01 Kenichi Handa <handa@m17n.org>
23846
23847 The following changes are for using Unicode as an internal
23848 character model, and use UTF-8 format for buffer/string
23849 representation.
23850
23851 * .gdbinit (xchartable): Adjust for the change of char table structure.
23852 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23853
23854 * Makefile.in (obj): Add character.o and chartab.o.
23855 (lisp, shortlisp): Remove utf-8.elc.
23856 (*.o): For many files, change dependency on charset.h to
23857 character.h, and add dependency on character.h.
23858 (character.o, chartab.o): New targets.
23859
23860 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23861 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23862 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23863 of "charset.h".
23864
23865 * dired.c, filelock.c: Include "character.h".
23866
23867 * alloc.c: Include "character.h" instead of "charset.h".
23868 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23869 (syms_of_alloc): Remove defsubr for Smake_char_table.
23870
23871 * buffer.c: Include "character.h" instead of "charset.h", don't
23872 include "coding.h".
23873 (Fset_buffer_multibyte): Adjust for UTF-8.
23874
23875 * buffer.h: EXFUN Fbuffer_live_p.
23876
23877 * callproc.c: Include "character.h" instead of "charset.h".
23878 (Fcall_process): Big change for the new code-conversion APIs.
23879
23880 * casetab.c: Include "character.h" instead of "charset.h".
23881 (set_canon, set_identity, shuffle): Adjust for the new
23882 map_char_table spec.
23883 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23884 accessing the char table structure.
23885
23886 * chartab.c: New file that implements char table.
23887
23888 * category.c: Include "character.h".
23889 (copy_category_entry): New function.
23890 (copy_category_table): Call map_char_table and copy_category_entry.
23891 (Fmake_category_table): Initialize all top-level slots.
23892 (char_category_set): New function.
23893 (modify_lower_category_set): Delete.
23894 (Fmodify_category_entry): Call char_table_ref_and_range.
23895
23896 * category.h (CATEGORY_SET): Just call char_category_set.
23897
23898 * ccl.c: Include "character.h".
23899 (Qccl, Qcclp): New variables.
23900 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23901 it's less than 256.
23902 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23903 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23904 and DST type.
23905 (ccl_driver): Change types of argument, adjust code accordingly.
23906 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23907 ccl_driver.
23908 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23909
23910 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23911 New members src_multibyte, dst_multibyte, consumed, and produced.
23912 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23913 (CODING_SPEC_CCL_PROGRAM): New macro.
23914 (ccl_driver): Update prototype.
23915 (Qccl, Qcclp, Fccl_program_p): Extern them.
23916 (CHECK_CCL_PROGRAM): New macro.
23917
23918 * character.c, character.h, chartab.c: New files.
23919
23920 * charset.c: Mostly re-written. Move character and multibyte sequence
23921 handling codes to character.c.
23922
23923 * charset.h: Mostly re-written. Move character and multibyte sequence
23924 handling codes to character.h.
23925
23926 * coding.c, coding.h: Mostly re-written.
23927
23928 * composite.c: Include "character.h" instead of "charset.h".
23929 (CHAR_WIDTH): Move to character.h.
23930 (HASH_KEY, HASH_VALUE): Delete.
23931
23932 * composite.h (enum composition_method): Change order of enumeration
23933 symbols.
23934
23935 * data.c: Include "character.h" instead of "charset.h".
23936 (Faref): Call CHAR_TABLE_REF for a char table.
23937 (Faset): Call CHAR_TABLE_SET for a char table.
23938
23939 * dispextern.h (free_realized_face, check_face_attribytes)
23940 (generate_ascii_font): Extern them.
23941 (free_realized_multibyte_face): Delete extern.
23942
23943 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23944 table structure.
23945
23946 * editfns.c: Include "character.h" instead of "charset.h".
23947 (Fchar_to_string): Always call CHAR_STRING.
23948
23949 * emacs.c (main): Call init_charset_once, init_charset,
23950 syms_of_chartab, and syms_of_character.
23951
23952 * fileio.c: Include "character.h" instead of "charset.h".
23953 (Finsert_file_contents): Big change for the new code-conversion API.
23954 (choose_write_coding_system, Fwrite_region): Likewise.
23955 (build_annotations_2): Delete.
23956 (e_write): Big change for the new code-conversion API.
23957
23958 * fns.c: Include "character.h" instead of "charset.h".
23959 (copy_sub_char_table): Move to chartab.c.
23960 (Fcopy_sequence): Call copy_char_table for a char table.
23961 (concat): Delete codes calling count_multibyte.
23962 (string_char_to_byte, string_byte_to_char): Adjust for the new
23963 multibyte form.
23964 (internal_equal): Adjust for the change of char table structure.
23965 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23966 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23967 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23968 (char_table_translate, optimize_sub_char_table)
23969 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23970 chartab.c.
23971 (char_table_ref_and_index): Delete.
23972 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23973 (Fmd5): Call preferred_coding_system instead of accessing
23974 Vcoding_category_list. Adjust for the new code-conversion API.
23975 (syms_of_fns): Move defsubr for char table related functions to
23976 chartab.c.
23977
23978 * fontset.c: Mostly re-written.
23979
23980 * fontset.h (struct font_info): Change type of the member encoding_type.
23981 (enum FONT_SPEC_INDEX): New enum.
23982 (fontset_font_pattern, fs_load_font): Update prototype.
23983 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23984
23985 * indent.c: Include "character.h" instead of "charset.h".
23986 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23987
23988 * insdel.c: Include "character.h" instead of "charset.h".
23989 (copy_text): Don't refer to Vnonascii_translation_table.
23990 (insert_from_gap): New function.
23991
23992 * keyboard.c: Include "character.h" instead of "charset.h".
23993 (command_loop_1): Never call direct_output_forward_char before
23994 a non-ASCII character.
23995 (read_char): If Vkeyboard_translate_table is a char table, always
23996 translate a character.
23997
23998 * keymap.c: Include "character.h".
23999 (store_in_keymap): Handle the case that IDX is a cons.
24000 (Fdefine_key): Handle the case that KEY is a cons and the car part
24001 is also a cons (range).
24002 (push_key_description): Adjust for the new character code.
24003 (describe_vector): Call describe_char_table for a char table.
24004 (describe_char_table): New function.
24005
24006 * keymap.h (describe_char_table): Extern it.
24007
24008 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24009 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24010 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24011 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24012 Delete.
24013 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24014 structure.
24015 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24016 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24017 (CHARTAB_SIZE_BITS_3): New macros.
24018 (chartab_size): Extern it.
24019 (struct Lisp_Char_Table): Re-design.
24020 (struct Lisp_Sub_Char_Table): New structure.
24021 (HASH_KEY, HASH_VALUE): Move from fns.c.
24022 (CHARACTERBITS): Define as 22.
24023 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24024 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24025 (GC_SUB_CHAR_TABLE_P): New macro.
24026 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24027 (code_convert_string_norecord): Deleted extern.
24028 (init_character_once, syms_of_character, init_charset)
24029 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24030
24031 * lread.c: Include "character.h".
24032 (read_multibyte): New arg NBYTES.
24033 (read_escape): Change the meaning of returned *BYTEREP.
24034 (to_multibyte): Delete.
24035 (read1): Adjust the handling of char table and string.
24036
24037 * print.c: Include "character.h" instead of "charset.h".
24038 (print_string): Convert 8-bit raw bytes to octal form by
24039 string_escape_byte8.
24040 (print_object): Adjust for the new multibyte form. Print 8-bit
24041 raw bytes always in octal form. Handle sub char table correctly.
24042
24043 * process.c: Include "character.h" instead of "charset.h".
24044 (read_process_output, send_process): Adjust for the new
24045 code-conversion API.
24046
24047 * puresize.h (BASE_PURESIZE): Increase.
24048
24049 * regex.c: Include "character.h" instead of "charset.h".
24050 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24051 (regex_compile): Accept a range whose starting and ending
24052 character have different leading bytes.
24053 (analyse_first): Adjust for the above change.
24054
24055 * search.c: Include "character.h" instead of "charset.h".
24056 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24057 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24058
24059 * syntax.c: Include "character.h" instead of "charset.h".
24060 (syntax_parent_lookup): Delete.
24061 (Fmodify_syntax_entry): Accept a cons as CHAR.
24062 (skip_chars): Adjust for the new multibyte form.
24063 (init_syntax_once): Call char_table_set_range instead of directly
24064 accessing the structure of a char table.
24065
24066 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24067 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24068 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24069 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24070
24071 * term.c: Include "buffer.h" and "character.h".
24072 (encode_terminal_code, write_glyphs): Adjust for the new
24073 code-conversion API.
24074 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24075
24076 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24077
24078 * xdisp.c: Include "character.h".
24079 (get_next_display_element): Adjust for the new multibyte form.
24080 (disp_char_vector): Adjust for the new char table structure.
24081 (decode_mode_spec_coding): Adjust for the new structure of
24082 coding system.
24083 (decode_mode_spec): Adjust for the new code-conversion API.
24084
24085 * xfaces.c: Include "character.h" instead of "charset.h".
24086 (load_face_font): Adjust for the change of choose_face_font and
24087 FS_LOAD_FONT.
24088 (generate_ascii_font): New function.
24089 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24090 (set_font_frame_param): Adjust for the change of choose_face_font.
24091 (free_realized_face): Make it public.
24092 (free_realized_faces_for_fontset): Rename from
24093 free_realized_multibyte_face. Free also faces realized for ASCII.
24094 (choose_face_font): Change arguments. Adjust for the change of
24095 fontset_font_pattern and FS_LOAD_FONT.
24096
24097 * xfns.c: Include "character.h".
24098 (x_encode_text): Adjust for the new code-conversion API.
24099
24100 * xselect.c: Don't include "charset.h".
24101 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24102
24103 * xterm.c: Include "character.h".
24104 (x_encode_char): New argument CHARSET. Change caller.
24105 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24106 Call ENCODE_CHAR instead of SPLIT_CHAR.
24107 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24108 CHAR_WIDTH instead of CHARSET_WIDTH.
24109 (XTread_socket): Adjust for the new code-conversion API.
24110 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24111 (x_load_font): Adjust for the change of struct font.
24112
24113 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24114
24115 * xfaces.c (face_at_buffer_position): Remove unused vars.
24116
24117 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24118
24119 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24120 Fix overflow checking.
24121
24122 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24123
24124 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24125 Cancel previous change.
24126
24127 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24128
24129 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24130 ccl->eight_bit_control. Fix check for buffer overflow.
24131 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24132 (ccl_driver): Initialize extra_bytes to 0.
24133
24134 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24135
24136 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24137 return it ORed with ctrl_modifier.
24138
24139 2008-01-29 Miles Bader <miles@gnu.org>
24140
24141 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24142
24143 2008-01-28 Jason Rumney <jasonr@gnu.org>
24144
24145 * w32.c (stat): Don't double check for networked drive.
24146
24147 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24148
24149 * window.c (run_window_configuration_change_hook): New function.
24150 Code extracted from set_window_buffer. Set the selected frame.
24151 (set_window_buffer): Use it.
24152 * window.h (run_window_configuration_change_hook): Declare.
24153 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24154
24155 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24156
24157 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24158
24159 * Makefile.in: Remove references to unused macros.
24160
24161 2008-01-26 Eli Zaretskii <eliz@gnu.org>
24162
24163 * w32.c (g_b_init_get_sid_sub_authority)
24164 (g_b_init_get_sid_sub_authority_count): New static variables.
24165 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24166 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24167 (init_user_info): Use them to retrieve uid and gid.
24168 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24169 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24170 st_uid and st_gid of the file.
24171
24172 2008-01-26 Jason Rumney <jasonr@gnu.org>
24173
24174 * w32.c (logon_network_drive): New function.
24175 (stat): Use it.
24176
24177 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
24178
24179 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24180 invisible text covered with an ellipsis.
24181
24182 2008-01-25 Richard Stallman <rms@gnu.org>
24183
24184 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24185 jump back to beginning. Move some other initializations after that.
24186 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24187 New variables.
24188 (syms_of_xdisp): Init them.
24189
24190 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24191
24192 * buffer.c (reset_buffer_local_variables):
24193 Implement `permanent-local-hook'.
24194 (Qpermanent_local_hook): New variable.
24195 (syms_of_buffer): Init and staticpro it.
24196
24197 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
24198
24199 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24200
24201 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24202
24203 * fns.c (Fclrhash): Return TABLE.
24204
24205 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24206
24207 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24208 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24209 is set even without positional changes.
24210 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24211
24212 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24213
24214 2008-01-23 Jason Rumney <jasonr@gnu.org>
24215
24216 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24217
24218 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24219 the unicode range available in MULE by locale-coding-system.
24220 Improve dbcs lead byte detection. Set event timestamp and modifiers
24221 earlier.
24222
24223 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24224
24225 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24226 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24227 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24228 when used on child processes.
24229
24230 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
24231
24232 * dbusbind.c (Fdbus_method_return_internal): Rename from
24233 Fdbus_method_return.
24234 (Fdbus_unregister_object): Move to dbus.el.
24235 (Fdbus_call_method, Fdbus_method_return_internal)
24236 (Fdbus_send_signal): Improve debug messages.
24237
24238 2008-01-20 Martin Rudalics <rudalics@gmx.at>
24239
24240 * undo.c (undo_inhibit_record_point): New variable.
24241 (syms_of_undo): Initialize it.
24242 (record_point): Don't record point when undo_inhibit_record_point
24243 is set.
24244
24245 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24246
24247 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24248
24249 * xdisp.c (Qauto_hscroll_mode): New var.
24250 (syms_of_xdisp): Initialize it.
24251 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24252 window's buffer.
24253 (hscroll_windows): Don't check automatic_hscrolling_p here.
24254
24255 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24256 vscroll if we're setting window-buffer to the value it already has.
24257
24258 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24259
24260 * m/intel386.h: Remove references to XENIX.
24261
24262 2008-01-17 Andreas Schwab <schwab@suse.de>
24263
24264 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24265 instead of HAVE_X86_64_LIB64_DIR.
24266 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24267
24268 2008-01-17 Glenn Morris <rgm@gnu.org>
24269
24270 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24271 to HAVE_X86_64_LIB64_DIR.
24272
24273 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24274
24275 * s/irix3-3.h:
24276 * s/irix4-0.h:
24277 * s/386-ix.h:
24278 * s/domain.h:
24279 * s/hpux9-x11r4.h:
24280 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24281
24282 * sysdep.c: Remove code containing references to symbols defined
24283 by unsupported systems.
24284
24285 2008-01-16 Glenn Morris <rgm@gnu.org>
24286
24287 * coding.c (select-safe-coding-system-function): Doc fix.
24288
24289 2008-01-15 Glenn Morris <rgm@gnu.org>
24290
24291 * config.in: Revert 2008-01-13 change: this is a generated file.
24292
24293 2008-01-13 Tom Tromey <tromey@redhat.com>
24294
24295 * lisp.h: Fix typo.
24296
24297 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24298
24299 * m/sequent-ptx.h:
24300 * m/sequent.h:
24301 * s/ptx.h:
24302 * s/ptx4-2.h:
24303 * s/ptx4.h: Remove files for systems no longer supported.
24304
24305 * callproc.c (Fcall_process): Fix previous change.
24306
24307 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24308
24309 * unexsunos4.c: Remove file, system not supported anymore.
24310
24311 * m/mips.h:
24312 * m/intel386.h:
24313 * callproc.c:
24314 * config.in:
24315 * ecrt0.c:
24316 * emacs.c:
24317 * fileio.c:
24318 * frame.c:
24319 * getpagesize.h:
24320 * keyboard.c:
24321 * lread.c:
24322 * process.c:
24323 * puresize.h:
24324 * sysdep.c:
24325 * systty.h:
24326 * syswait.h:
24327 * unexec.c:
24328 * xdisp.c:
24329 * alloc.c: Remove code containing references to symbols defined by
24330 unsupported systems.
24331
24332 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24333
24334 * coding.c (detect_coding_mask): Fix previous change.
24335
24336 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24337
24338 * coding.c (detect_coding_iso2022): New arg
24339 latin_extra_code_state. Allow Latin extra codes only
24340 when *latin_extra_code_state is nonzero.
24341 (detect_coding_mask): If there is a NULL byte, detect the encoding
24342 as UTF-16 or binary. If Latin extra codes exist, detect the
24343 encoding as ISO-2022 only when there's no other proper encoding is
24344 found.
24345
24346 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24347
24348 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24349 #ifdef MAC_OS.
24350
24351 2008-01-08 Richard Stallman <rms@gnu.org>
24352
24353 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24354
24355 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
24356
24357 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24358 menu bar in parentheses.
24359
24360 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24361
24362 * m/7300.h:
24363 * m/acorn.h:
24364 * m/alliant-2800.h:
24365 * m/alliant.h:
24366 * m/alliant1.h:
24367 * m/alliant4.h:
24368 * m/altos.h:
24369 * m/amdahl.h:
24370 * m/apollo.h:
24371 * m/att3b.h:
24372 * m/aviion-intel.h:
24373 * m/aviion.h:
24374 * m/celerity.h:
24375 * m/clipper.h:
24376 * m/cnvrgnt.h:
24377 * m/convex.h:
24378 * m/cydra5.h:
24379 * m/delta88k.h:
24380 * m/dpx2.h:
24381 * m/dual.h:
24382 * m/elxsi.h:
24383 * m/f301.h:
24384 * m/gould-np1.h:
24385 * m/gould.h:
24386 * m/i860.h:
24387 * m/ibmps2-aix.h:
24388 * m/ibmrt-aix.h:
24389 * m/ibmrt.h:
24390 * m/irist.h:
24391 * m/is386.h:
24392 * m/isi-ov.h:
24393 * m/mega68.h:
24394 * m/mg1.h:
24395 * m/news-r6.h:
24396 * m/news-risc.h:
24397 * m/news.h:
24398 * m/nh3000.h:
24399 * m/nh4000.h:
24400 * m/ns16000.h:
24401 * m/ns32000.h:
24402 * m/nu.h:
24403 * m/orion.h:
24404 * m/orion105.h:
24405 * m/paragon.h:
24406 * m/pfa50.h:
24407 * m/plexus.h:
24408 * m/pyramid.h:
24409 * m/pyrmips.h:
24410 * m/sh3el.h:
24411 * m/sps7.h:
24412 * m/sr2k.h:
24413 * m/stride.h:
24414 * m/sun1.h:
24415 * m/sun2.h:
24416 * m/sun3-68881.h:
24417 * m/sun3-fpa.h:
24418 * m/sun3-soft.h:
24419 * m/sun3.h:
24420 * m/sun386.h:
24421 * m/symmetry.h:
24422 * m/tad68k.h:
24423 * m/tahoe.h:
24424 * m/targon31.h:
24425 * m/tek4300.h:
24426 * m/tekxd88.h:
24427 * m/tower32.h:
24428 * m/tower32v3.h:
24429 * m/ustation.h:
24430 * m/wicat.h:
24431 * m/xps100.h:
24432 * s/cxux.h:
24433 * s/cxux7.h:
24434 * s/dgux.h:
24435 * s/dgux4.h:
24436 * s/dgux5-4-3.h:
24437 * s/dgux5-4r2.h:
24438 * s/esix.h:
24439 * s/esix5r4.h:
24440 * s/hiuxmpp.h:
24441 * s/hiuxwe2.h:
24442 * s/iris3-5.h:
24443 * s/iris3-6.h:
24444 * s/isc2-2.h:
24445 * s/isc3-0.h:
24446 * s/isc4-0.h:
24447 * s/isc4-1.h:
24448 * s/newsos5.h:
24449 * s/newsos6.h:
24450 * s/osf1.h:
24451 * s/osf5-0.h:
24452 * s/riscix1-1.h:
24453 * s/riscix12.h:
24454 * s/sco4.h:
24455 * s/sco5.h:
24456 * s/sunos4-0.h:
24457 * s/sunos4-1.h:
24458 * s/sunos413.h:
24459 * s/sunos4shr.h:
24460 * s/umax.h:
24461 * s/unipl5-2.h:
24462 * s/xenix.h:
24463 * cxux-crt0.s:
24464 * unexapollo.c:
24465 * unexconvex.c:
24466 * unexenix.c:
24467 * unexsni.c: Remove files for systems no longer supported.
24468
24469 * m/intel386.h: Remove references to unsupported systems.
24470
24471 * w32.c (get_emacs_configuration): Remove reference to i860.
24472
24473 * sysdep.c: Remove dead code.
24474
24475 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24476
24477 * s/rtu.h:
24478 * m/masscomp.h: Remove files. Platform is obsolete.
24479
24480 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
24481
24482 * dbusbind.c (Fdbus_method_return): New function.
24483 (xd_read_message): Add the serial number to the event.
24484 (Fdbus_register_method): Activate the function.
24485
24486 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24487
24488 * keyboard.c (read_key_sequence): Fix typo.
24489
24490 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
24491
24492 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24493 (xd_signature, xd_append_arg): Handle element type detection for
24494 empty arrays.
24495 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24496 SDATA () calls; this must be solved more general.
24497 (Fdbus_register_signal): Use SBYTES instead of strlen.
24498
24499 2008-01-03 Magnus Henoch <magnus@zemdatav>
24500
24501 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24502 unsigned int for byte values (necessary for big-endian platform).
24503 (Fdbus_call_method): Handle the case of no returned arguments.
24504
24505 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24506
24507 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24508
24509 2007-12-31 Magnus Henoch <mange@freemail.hu>
24510
24511 * dbusbind.c (xd_signature): Signature of variant is just "v".
24512
24513 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
24514
24515 * dbusbind.c: Fix several errors and compiler warnings.
24516 Reported by Tom Tromey <tromey@redhat.com>.
24517 (XD_ERROR, XD_DEBUG_MESSAGE)
24518 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24519 (xd_append_arg): Part for basic D-Bus types rewritten.
24520 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24521 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24522 appropriate.
24523 (xd_read_message): Return Qnil. Don't signal an error; it is not
24524 useful during event reading.
24525 (Fdbus_register_signal): Signal an error if the check for
24526 FUNCTIONP fails.
24527 (Fdbus_register_method): New function. The implementation is not
24528 complete, the call of the function signals an error therefore.
24529 (Fdbus_unregister_object): New function, renamed from
24530 Fdbus_unregister_signal. The initial check signals an error, if
24531 the object is not well formed.
24532
24533 2007-12-30 Richard Stallman <rms@gnu.org>
24534
24535 * textprop.c (get_char_property_and_overlay):
24536 Signal error if POSITION is out of range in a buffer.
24537
24538 2007-12-29 Martin Rudalics <rudalics@gmx.at>
24539
24540 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24541 because the original parameters are in pure storage now.
24542
24543 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24544
24545 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24546
24547 2007-12-22 Eli Zaretskii <eliz@gnu.org>
24548
24549 * callint.c (syms_of_callint) <command-history>: Add reference to
24550 history-length in the doc string.
24551
24552 2007-12-17 Jason Rumney <jasonr@gnu.org>
24553
24554 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24555 before passing as wParam.
24556
24557 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
24558
24559 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24560 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24561 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24562 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24563 as number.
24564 (Fdbus_call_method): Fix docstring.
24565
24566 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
24567
24568 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24569 New macros.
24570 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24571 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24572 Simplify.
24573 (xd_signature): New function.
24574 (xd_append_arg): Compute also signatures. Major rewrite.
24575 (xd_retrieve_arg): Make debug messages friendly.
24576 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24577 Check for signatures of arguments.
24578
24579 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
24580
24581 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24582 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24583 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24584 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24585 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24586 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24587 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24588 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24589 (xd_retrieve_value): Remove. Functionality included in ...
24590 (xd_append_arg): New function.
24591 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24592
24593 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
24594
24595 * dbusbind.c (top): Include <stdio.h>.
24596 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24597 dbus_message_new_method_call and dbus_message_new_signal.
24598 (Fdbus_register_signal): Rename unique_name to uname.
24599 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24600 non-existing unique name. Fix typos in matching rule. Return an
24601 object which is useful in Fdbus_unregister_signal.
24602 (Fdbus_unregister_signal): Reimplementation, in order to remove
24603 only the corresponding entry.
24604 (Vdbus_registered_functions_table): Change the order of entries.
24605 Apply these changes in xd_read_message and Fdbus_register_signal.
24606
24607 2007-12-16 Andreas Schwab <schwab@suse.de>
24608
24609 * fileio.c (Finsert_file_contents): Fix overflow check to not
24610 depend on undefined integer overflow.
24611
24612 2007-12-14 Jason Rumney <jasonr@gnu.org>
24613
24614 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24615 for characters above 127.
24616
24617 2007-12-13 Jason Rumney <jasonr@gnu.org>
24618
24619 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24620 before dereferencing array.
24621 (lookup_vk_code): Remove zero comparison.
24622
24623 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
24624
24625 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24626 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24627 Use `unsigned int' instead of `uint'.
24628 (xd_read_message, Fdbus_register_signal): Split expressions into
24629 multiple lines before operators "&&" and "||", according to the
24630 GNU Coding Standards.
24631
24632 2007-12-14 Eli Zaretskii <eliz@gnu.org>
24633
24634 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24635
24636 2007-12-12 Juri Linkov <juri@jurta.org>
24637
24638 * buffer.c (Frename_buffer): In interactive spec replace
24639 `read-buffer' with `read-string' that uses `buffer-name-history'
24640 as history, and the current buffer's name as default.
24641
24642 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24643
24644 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24645 manipulating the backtrace manually.
24646 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24647 (struct backtrace, backtrace_list): Remove.
24648 (command_loop_1): Remove dead var `no_direct'.
24649
24650 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24651 preserve non-built-in buffer-local variables.
24652 (Fkill_all_local_variables): Don't re-create&re-set permanent
24653 buffer-local variables.
24654
24655 2007-12-09 Juri Linkov <juri@jurta.org>
24656
24657 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24658 Lisp code that uses `read-buffer' with current buffer as default.
24659
24660 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
24661
24662 * dbusbind.c (xd_read_message): Generate an event for every
24663 registered handler. There might be several handlers registered
24664 for the same signal.
24665 (Fdbus_register_signal): Don't overwrite a registration for the
24666 same signal. Add a new registration if handlers are different.
24667 (Vdbus_registered_functions_table): Rework doc string.
24668
24669 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
24670
24671 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24672 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24673 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24674 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24675 Unify argument lists.
24676 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24677 arguments and hash table keys. Use unique name for service.
24678 (Fdbus_unregister_signal): Remove checks.
24679 (Vdbus_registered_functions_table): Fix doc string.
24680
24681 2007-12-05 Magnus Henoch <mange@freemail.hu>
24682
24683 * process.c (make_process): Initialize pty_flag to 0.
24684
24685 2007-12-05 Jason Rumney <jasonr@gnu.org>
24686
24687 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24688 specified XBMs.
24689
24690 2007-12-05 Richard Stallman <rms@gnu.org>
24691
24692 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24693
24694 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24695
24696 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24697 New variable.
24698 (mac_try_close_socket) [MAC_OSX]: New function.
24699 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24700 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24701
24702 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24703 Use mac_try_close_socket.
24704
24705 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24706
24707 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24708 reloc_base.
24709 (copy_dysymtab): Compute relocation base here.
24710 (rebase_reloc_address) [__ppc64__]: New function.
24711 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24712 changed.
24713
24714 2007-12-05 Jason Rumney <jasonr@gnu.org>
24715
24716 * w32proc.c (sys_spawnve): Quote args with wildcards.
24717
24718 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24719
24720 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24721 __objc_* sections.
24722 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24723
24724 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
24725
24726 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24727 Move check for Vdbus_registered_functions_table to
24728 xd_read_queued_messages.
24729 (xd_read_queued_messages): Protect xd_read_message calls by
24730 internal_condition_case_1.
24731
24732 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
24733
24734 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24735 Qdbus_system_bus and Qdbus_session_bus, respectively.
24736 (Vdbus_intern_symbols): Remove.
24737 (Vdbus_registered_functions_table): New hash table.
24738 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24739 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24740 Rewrite in order to manage registered functions by hash table
24741 Vdbus_registered_functions_table.
24742
24743 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24744
24745 * xterm.c: Update URL to Window Manager Specification in comment.
24746
24747 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
24748
24749 * config.in (HAVE_DBUS): Add.
24750
24751 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24752 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24753 (obj): Add $(DBUS_OBJ).
24754 (LIBES): Add $(DBUS_LIBS).
24755 (dbusbind.o): New target.
24756
24757 * dbusbind.c: New file.
24758
24759 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24760
24761 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24762 (Qdbus_event): New Lisp symbol.
24763 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24764 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
24765 (keys_of_keyboard): Define dbus-event.
24766
24767 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24768
24769 2007-12-01 Richard Stallman <rms@gnu.org>
24770
24771 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24772
24773 2007-11-30 Jason Rumney <jasonr@gnu.org>
24774
24775 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24776 (w32con_reset_terminal_modes): Clear screen buffer.
24777 (w32_face_attributes): Don't use color indexes that are out of range.
24778 Only reverse the default colors.
24779
24780 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24781 WINDOWSNT.
24782
24783 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24784
24785 2007-11-29 Jason Rumney <jasonr@gnu.org>
24786
24787 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24788 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24789 if the terminal colors are initialized.
24790 (unspecified_fg, unspecified_bg): Remove unused declarations.
24791
24792 2007-11-29 Andreas Schwab <schwab@suse.de>
24793
24794 * keyboard.c (apply_modifiers): Fix typo.
24795
24796 2007-11-29 Richard Stallman <rms@gnu.org>
24797
24798 * keymap.c (Fcurrent_local_map): Doc fix.
24799
24800 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24801
24802 * s/gnu-kfreebsd.h: New file.
24803
24804 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24805
24806 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24807 Don't cast redundantly.
24808
24809 * keyboard.c (KEY_TO_CHAR): New macro.
24810 (parse_modifiers, apply_modifiers): Accept integer arguments.
24811 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24812 for chars and symbol keys.
24813 After doing such remapping, apply function-key-map again.
24814
24815 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24816
24817 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24818 compiled anymore.
24819
24820 2007-11-26 Andreas Schwab <schwab@suse.de>
24821
24822 * process.c (list_processes_1): Fix indentation level of the
24823 command column.
24824
24825 2007-11-23 Andreas Schwab <schwab@suse.de>
24826
24827 * editfns.c (Fformat): Handle %c specially since it requires the
24828 argument to be of type int.
24829
24830 2007-11-23 Markus Triska <markus.triska@gmx.at>
24831
24832 * emacs.c (main): Call init_editfns before init_process, since
24833 init_process sets Vprocess_connection_type depending on OS release.
24834
24835 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24836
24837 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24838 (find_symbol_value): Use do_symval_forwarding.
24839
24840 * data.c (set_internal): Set the value in the `cons-cell' (for
24841 Buffer_Local_values) not only for frame-local variables.
24842
24843 2007-11-22 Andreas Schwab <schwab@suse.de>
24844
24845 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24846 values to sprintf.
24847 * keymap.c (Fsingle_key_description): Likewise.
24848 * print.c (print_object): Likewise.
24849
24850 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24851
24852 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24853 file for image is nil.
24854
24855 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24856
24857 * term.c: Include stdarg.h.
24858 (fatal): Implement using varargs.
24859 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24860
24861 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24862
24863 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24864 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24865 Update call to buffer_slot_type_mismatch.
24866 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24867 (buffer_slot_type_mismatch): Update.
24868 * buffer.c (buffer_local_types): Remove.
24869 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24870 (defvar_per_buffer): Set the type in the buffer_objfwd.
24871
24872 2007-11-21 Jason Rumney <jasonr@gnu.org>
24873
24874 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24875 CreateFileMapping returns NULL on failure.
24876
24877 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24878
24879 * search.c (Fset_match_data): Remove the `evaporate' feature.
24880 (unwind_set_match_data): Don't use the `evaporate' feature.
24881
24882 2007-11-21 Jason Rumney <jasonr@gnu.org>
24883
24884 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24885
24886 * w32console.c (w32con_write_glyphs): Remove unused variables.
24887
24888 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24889
24890 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24891
24892 * s/darwin.h (MULTI_KBOARD): Remove.
24893
24894 * macfns.c (x_create_tip_frame, Fx_create_frame)
24895 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24896
24897 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24898
24899 * buffer.c (Fbuffer_local_value): Remove redundant test.
24900 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24901 than in `current-buffer' to match the comment.
24902 Do the swap using swap_in_global_binding.
24903
24904 * data.c (store_symval_forwarding, set_internal):
24905 * eval.c (specbind): Remove dead code.
24906
24907 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24908 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24909 Since we do not want to see internal Lisp_*fwd objects here.
24910
24911 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24912
24913 * sysdep.c (init_system_name): Use getaddrinfo if available.
24914
24915 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24916 (x_scroll_bar_note_movement): start, end, with, height in struct
24917 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24918
24919 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24920
24921 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24922
24923 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24924
24925 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24926 This undoes Richard's change of 14-Oct-2002.
24927
24928 * alloc.c (allocate_other_vector):
24929 * lisp.h (allocate_other_vector): Remove.
24930
24931 * window.c (struct save_window_data): Move non-lisp data to the end
24932 and make it `int' rather than Lisp_Object.
24933 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24934 Done wrap/unwrap integer values.
24935 (Fset_window_configuration, compare_window_configurations):
24936 Update use of fields to their new types.
24937
24938 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24939 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24940 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24941 (SET_SCROLL_BAR_X_WINDOW): Remove.
24942 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24943 Access the new x_window field directly.
24944 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24945 Don't wrap/unwrap integers into Lisp_Objects.
24946 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24947 (x_scroll_bar_report_motion):
24948 Don't wrap/unwrap integers into Lisp_Objects.
24949 (x_term_init): Use SDATA.
24950 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24951 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24952 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24953 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24954 * xfns.c (x_set_background_color):
24955 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24956 Access the new x_window field directly.
24957
24958 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24959 (allocate_pseudovector): Make non-static.
24960
24961 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24962 (allocate_pseudovector): Declare.
24963 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24964
24965 2007-11-15 Andreas Schwab <schwab@suse.de>
24966
24967 * editfns.c (Fformat): Correctly format EMACS_INT values.
24968 Also take precision into account when formatting an integer.
24969
24970 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24971
24972 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24973
24974 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24975 (syms_of_keyboard): Defsubr it.
24976
24977 * data.c (swap_in_global_binding): Fix longstanding bug where
24978 store_symval_forwarding was not called with the right second argument,
24979 thus causing objfwd-ing from being dropped.
24980
24981 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24982
24983 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24984 (Fx_display_pixel_height, Fx_display_planes)
24985 (Fx_display_color_cells, Fx_server_max_request_size)
24986 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24987 (Fx_display_visual_class, Fx_display_save_under):
24988 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24989 (Fx_display_pixel_height, Fx_display_planes)
24990 (Fx_display_color_cells, Fx_server_max_request_size)
24991 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24992 (Fx_display_mm_height, Fx_display_mm_width)
24993 (Fx_display_backing_store, Fx_display_visual_class)
24994 (Fw32_select_font, Fx_display_save_under):
24995 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24996 (Fx_display_pixel_height, Fx_display_planes)
24997 (Fx_display_color_cells, Fx_server_max_request_size)
24998 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24999 (Fx_display_save_under): Fix typos in docstrings.
25000
25001 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25002
25003 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25004 corresponding to deleted entries; they are an implementation detail.
25005 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25006 Remove variables.
25007 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25008 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25009 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25010 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25011 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25012 (Fw32_define_rgb_color, Fw32_load_color_file)
25013 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25014 Fix typos in docstrings.
25015 (Fx_server_version): Reflow docstring.
25016 (Fw32_shell_execute): Doc fixes.
25017
25018 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
25019
25020 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25021 if w32_parse_hot_key returned nil.
25022
25023 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25024
25025 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25026
25027 2007-11-09 Jason Rumney <jasonr@gnu.org>
25028
25029 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25030
25031 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25032
25033 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25034 Remove W32_SCROLL_BAR_CLICK_EVENT.
25035
25036 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25037 Add MULTIMEDIA_KEY_EVENT.
25038
25039 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25040 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25041 (make_lispy_event) [WINDOWSNT]: Use it to translate
25042 MULTIMEDIA_KEY_EVENT.
25043
25044 * w32term.h (WM_APPCOMMAND): Define if not already.
25045 (GET_APPCOMMAND_LPARAM): Likewise.
25046
25047 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25048 WM_APPCOMMAND.
25049
25050 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25051 (syms_of_w32fns): Export and initialize it.
25052 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25053
25054 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
25055
25056 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25057 twice.
25058
25059 * xdisp.c (handle_face_prop): Fix last change.
25060
25061 2007-11-09 Richard Stallman <rms@gnu.org>
25062
25063 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25064 not just for after-strings and before-strings.
25065 Call face_for_overlay_string and pass the overlay to it.
25066 (handle_display_prop): Determine whether property came from an overlay.
25067 Pass OVERLAY arg to handle_single_display_spec.
25068 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25069 (load_overlay_strings): Fill in it->string_overlays.
25070 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25071
25072 * xfaces.c (face_for_overlay_string): Function renamed from
25073 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25074
25075 * dispextern.h (struct it): New elt string_overlays.
25076 New elt from_overlay, also in stack.
25077 Rearrange a few elements.
25078 (face_for_overlay_string): Decl renamed from
25079 face_at_buffer_position_no_overlays, and add argument.
25080
25081 2007-11-09 Richard Stallman <rms@gnu.org>
25082
25083 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25084 to get the base face for an overlay string.
25085
25086 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25087
25088 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25089
25090 * xdisp.c (handle_stop): Move some code out of loop.
25091
25092 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25093
25094 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25095 Fix conversion from Lisp object to ATSUFontID.
25096
25097 2007-11-09 Jason Rumney <jasonr@gnu.org>
25098
25099 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25100
25101 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25102
25103 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25104 Don't assume regions are aligned to page boundary.
25105 (print_load_command_name): Add LC_UUID if defined.
25106
25107 2007-11-09 Richard Stallman <rms@gnu.org>
25108
25109 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25110
25111 2007-11-07 Jason Rumney <jasonr@gnu.org>
25112
25113 * s/windows95.h: Remove.
25114
25115 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25116
25117 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25118 abort with a message on unhandled store_type values.
25119
25120 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25121
25122 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25123 Remove HAVE_X11R5 and HAVE_X11R4.
25124
25125 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25126
25127 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25128
25129 2007-11-01 Johan Bockgård <bojohan@gnu.org>
25130
25131 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25132 Don't set s->stippled_p here, since it has already been set by
25133 x_set_glyph_string_gc from x_draw_glyph_string.
25134
25135 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25136
25137 * sunfns.c: Remove file.
25138
25139 * m/sun386.h:
25140 * m/sun2.h:
25141 * m/sparc.h: Remove Sun windows code.
25142
25143 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25144
25145 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25146 (init_keyboard): Set current_kboard's window-system to nil.
25147 (tty_read_avail_input): Typo.
25148 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25149
25150 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25151
25152 * s/usg5-4.h:
25153 * s/usg5-3.h:
25154 * s/ptx.h:
25155 * m/is386.h:
25156 * m/ibmps2-aix.h:
25157 * Makefile.in: Remove all mentions of X10.
25158
25159 * dispnew.c (syms_of_display): Don't mention version 10.
25160
25161 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
25162
25163 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25164 ($(BLD)/abbrev.$(O)): Remove.
25165
25166 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25167
25168 Rewrite abbrev.c in Elisp.
25169 * image.c (Qcount): Don't declare as extern.
25170 (syms_of_image): Initialize and staticpro `Qcount'.
25171 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25172 * emacs.c (main): Don't call syms_of_abbrev.
25173 * Makefile.in (obj): Remove abbrev.o.
25174 (abbrev.o): Remove.
25175 * abbrev.c: Remove.
25176
25177 2007-10-26 Martin Rudalics <rudalics@gmx.at>
25178
25179 * window.c (window_min_size_2): Don't count header-line.
25180
25181 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25182
25183 * frame.h (struct frame): Move all bit fields after the first bit
25184 field to take advantage of the available space. Group all the
25185 chars together to reduce wasted space due to padding.
25186
25187 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
25188
25189 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25190
25191 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25192 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25193 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25194 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25195 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25196 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25197 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25198 (last_marked, mark_object_loop_halt): Make static.
25199
25200 * frame.c (syms_of_frame) <delete-frame-functions>:
25201 Fix typo in docstring.
25202
25203 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
25204
25205 * w32.c (init_environment): Fix tiny memory leak.
25206 (w32_get_resource): Remove unused variable `ok'.
25207
25208 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25209
25210 Make `window-system' into a keyboard-local variable (rather than
25211 frame-local as done originally by multi-tty).
25212
25213 * keyboard.h (struct kboard): Add Vwindow_system.
25214 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25215 (mark_kboards): Mark Vwindow_system.
25216
25217 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25218 (init_display): Don't set the obsolete `window-system' frame-param.
25219
25220 * xterm.c (x_term_init):
25221 * w32term.c (w32_create_terminal):
25222 * term.c (init_tty): Set Vwindow_system.
25223 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25224 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25225
25226 * xfns.c (Fx_create_frame, x_create_tip_frame):
25227 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25228 * macfns.c (Fx_create_frame):
25229 Don't set the obsolete `window-system' frame-param.
25230
25231 * frame.h (Qwindow_system): Remove.
25232 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25233 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25234
25235 2007-10-24 Richard Stallman <rms@gnu.org>
25236
25237 * frame.c (x_figure_window_size): For fullscreen case,
25238 set USPosition | PPosition without clobbering rest of window_prompting.
25239
25240 * keyboard.c (Fcurrent_idle_time): Doc fix.
25241
25242 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25243
25244 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25245
25246 * process.c (unwind_request_sigio): Only define if __ultrix__.
25247
25248 * callproc.c (child_setup): Remove spurious *.
25249
25250 * lisp.h (Fget_text_property): Declare.
25251 (have_menus_p): Declare it here rather than in sys-dep header files.
25252 * macterm.h (have_menus_p):
25253 * msdos.h (have_menus_p):
25254 * xterm.h (have_menus_p): Remove.
25255
25256 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25257 (Fmake_variable_frame_local): Just check the variable's const-ness
25258 rather than checking nil or t.
25259
25260 2007-10-22 Jason Rumney <jasonr@gnu.org>
25261
25262 * w32fns.c: Include math.h.
25263 (w32_abort): Declaration moved to nt/config.nt.
25264
25265 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25266 (abort): Redefinition moved to nt/config.nt.
25267
25268 * m/windowsnt.h: Remove.
25269
25270 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
25271
25272 * emacs.c (Fdump_emacs): Fix typo in message.
25273 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25274 <installation-directory>: Reflow docstring.
25275
25276 2007-10-22 Juri Linkov <juri@jurta.org>
25277
25278 * minibuf.c: Allow minibuffer default to be a list of default values.
25279 With empty input use the first element of this list as returned default.
25280 (string_to_object)
25281 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25282 (read_minibuf): If defalt is cons, set histstring to its car.
25283 (Fread_string): If default_value is cons, set val to its car.
25284 (Fread_buffer): If def is cons, use its car.
25285 (Fcompleting_read): If defalt is cons, set val to its car.
25286
25287 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
25288
25289 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25290
25291 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
25292
25293 * doc.c (Fdocumentation): Check for advice in all cases.
25294
25295 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
25296
25297 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25298
25299 2007-10-19 Richard Stallman <rms@gnu.org>
25300
25301 * doc.c (Fdocumentation): Check for and handle an advised function.
25302
25303 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
25304
25305 * process.c (Fset_process_filter): Doc fix.
25306
25307 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25308
25309 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25310 which caused key-translation-map to applied repeatedly (thus breaking
25311 double-mode).
25312
25313 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25314
25315 * xselect.c (x_own_selection, x_handle_selection_clear)
25316 (x_clear_frame_selections):
25317 * w32menu.c (list_of_panes, list_of_items):
25318 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25319 * textprop.c (validate_plist, interval_has_all_properties)
25320 (interval_has_some_properties, interval_has_some_properties_list)
25321 (add_properties, text_property_list):
25322 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25323 * minibuf.c (Fassoc_string):
25324 * macselect.c (x_own_selection, x_clear_frame_selections)
25325 (Fx_disown_selection_internal):
25326 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25327 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25328
25329 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
25330
25331 * process.c: Link to libs for calling res_init() if available.
25332 (Fmake_network_process): Call res_init() before getaddrinfo or
25333 gethostbyname, if possible.
25334
25335 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25336
25337 * lread.c (read1): Set pvectype for char_tables.
25338
25339 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25340 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25341 Add type checks.
25342 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25343
25344 * alloc.c (free_misc): Use XMISCTYPE.
25345 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25346
25347 2007-10-17 Glenn Morris <rgm@gnu.org>
25348
25349 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25350 (syms_of_minibuf): Add Qcompletion_ignore_case.
25351 * dired.c (Qcompletion_ignore_case): Change to external.
25352 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25353 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25354 (Fread_file_name): Use it rather than intern'ing.
25355
25356 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25357 (Fread_coding_system): Ignore case of user input.
25358
25359 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25360
25361 * xdisp.c (handle_display_prop): Ignore display specs after
25362 replacing one when string text is being replaced.
25363 (handle_single_display_spec): Pretend as if characters with display
25364 property haven't been consumed only when buffer text is being replaced.
25365
25366 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25367
25368 * xfns.c (Fx_create_frame, Fx_display_list):
25369 * window.c (window_fixed_size_p, enlarge_window)
25370 (shrink_window_lowest_first):
25371 * macterm.c (init_font_name_table):
25372 * macfns.c (Fx_create_frame, Fx_display_list):
25373 * lread.c (close_load_descs):
25374 * keyboard.c (read_char_x_menu_prompt):
25375 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25376 * coding.c (code_convert_region_unwind): Test the type of an object
25377 rather than just !NILP before extracting data from it.
25378
25379 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25380
25381 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25382 (XMISCANY): New macro.
25383 (XMISCTYPE): Use it.
25384 (struct Lisp_Misc_Any): New type.
25385 (union Lisp_Misc): Use it.
25386 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25387 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25388 (find_symbol_value, set_internal, default_value, Fset_default)
25389 (Fmake_variable_buffer_local, Fmake_local_variable)
25390 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25391 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25392 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25393 * alloc.c (allocate_buffer): Set the size and tag.
25394 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25395 Use XMISCANY.
25396 (die): Follow the GNU convention for error messages.
25397 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25398 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25399 tag any more.
25400 (set_buffer_internal_1):
25401 * frame.c (store_frame_param):
25402 * eval.c (specbind):
25403 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25404
25405 * doc.c (Fsnarf_documentation): Simplify.
25406
25407 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
25408
25409 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25410 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25411
25412 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25413
25414 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25415
25416 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
25417
25418 * eval.c (do_autoload): Don't save autoloads.
25419
25420 * data.c (Ffset): Save autoload of the function being set.
25421
25422 2007-10-07 John Paul Wallington <jpw@pobox.com>
25423
25424 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25425 parameter before setting up faces.
25426
25427 2007-10-13 Eli Zaretskii <eliz@gnu.org>
25428
25429 * ccl.c (Fregister_code_conversion_map):
25430 * keyboard.c (append_tool_bar_item): Reformat last change.
25431
25432 * lisp.h (eabs): Rename from `abs'. All callers changed.
25433
25434 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25435
25436 * buffer.c (add_overlay_mod_hooklist):
25437 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25438 * fontset.c (make_fontset):
25439 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25440 (append_tool_bar_item):
25441 * macmenu.c (grow_menu_items):
25442 * w32menu.c (grow_menu_items):
25443 * xmenu.c (grow_menu_items): Use larger_vector.
25444
25445 2007-10-13 Eli Zaretskii <eliz@gnu.org>
25446
25447 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25448 selected frame'' on MSDOS).
25449
25450 2007-10-12 Martin Rudalics <rudalics@gmx.at>
25451
25452 * frame.c (Qexplicit_name): New variable.
25453 (x_report_frame_params): Report it in parameter alist.
25454 (syms_of_frame): Intern and staticpro it.
25455
25456 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25457
25458 * macfns.c (x_create_tip_frame): Set terminal for frame.
25459
25460 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25461
25462 * frame.c (Qenvironment): Remove.
25463 (syms_of_frame) <Qenvironment>: Don't initialize.
25464 (Fdelete_frame): Don't treat the `environment' param specially.
25465 * frame.h (Qenvironment): Don't declare.
25466 * callproc.c (set_initial_environment): Don't set unused frame param.
25467
25468 * frame.c (Fframe_with_environment): Remove.
25469 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25470
25471 * lisp.h (Fframe_with_environment): Don't declare.
25472
25473 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
25474
25475 * indent.c (indent_tabs_mode, last_known_column)
25476 (last_known_column_modified): Make static.
25477 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25478
25479 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25480
25481 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25482
25483 2007-10-09 Jason Rumney <jasonr@gnu.org>
25484
25485 * w32term.c (x_set_window_size): Disable code that attempts to tell
25486 Lisp code about a size change before it actually happens.
25487
25488 2007-10-09 Richard Stallman <rms@gnu.org>
25489
25490 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25491 return HANDLED_RETURN.
25492
25493 2007-10-08 Martin Rudalics <rudalics@gmx.at>
25494
25495 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25496 when there's an unread command event.
25497
25498 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25499 window autoselection act appropriately when leaving selected frame.
25500 (syms_of_frame): Initialize focus_follows_mouse.
25501 * frame.h (focus_follows_mouse): Extern it.
25502 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25503 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25504 * msdos.c (dos_rawgetc): Likewise.
25505 * w32term.c (w32_read_socket): Likewise.
25506 * xterm.c (handle_one_xevent): Likewise.
25507 * xdisp.c (syms_of_xdisp): In doc-string of
25508 mouse-autoselect-window mention focus-follows-mouse.
25509
25510 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25511
25512 * macterm.c (mac_load_query_font): Fix missing return value.
25513 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25514 Add BLOCK_INPUT.
25515
25516 2007-10-08 Richard Stallman <rms@gnu.org>
25517
25518 * xdisp.c (get_window_cursor_type): Implement documented behavior
25519 for cursor-in-non-selected-windows = t.
25520
25521 2007-10-08 Jason Rumney <jasonr@gnu.org>
25522
25523 * w32.c (w32_get_resource): Always close registry keys.
25524
25525 2007-10-08 Jason Rumney <jasonr@gnu.org>
25526
25527 * makefile.w32-in (LIBS): Add COMCTL32.
25528
25529 * w32fns.c (globals_of_w32fns): Init common controls.
25530
25531 2007-10-08 Richard Stallman <rms@gnu.org>
25532
25533 * image.c (our_memory_buffer): Rename from omfib_buffer.
25534
25535 2007-10-08 Richard Stallman <rms@gnu.org>
25536
25537 * buffer.c (Foverlays_at): Doc fix.
25538
25539 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25540
25541 * fns.c (Fplist_put): Preserve uneven tail data.
25542
25543 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25544
25545 * termhooks.h (enum event_kind): Remove trailing comma.
25546
25547 * frame.h (enum): Remove trailing comma.
25548
25549 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25550
25551 * w32proc.c (delete_child): Don't terminate threads of zombies.
25552
25553 2007-10-08 Martin Rudalics <rudalics@gmx.at>
25554
25555 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25556
25557 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25558 last-repeatable-command.
25559 (init_kboard): Initialize Vlast_repeatable_command.
25560 (command_loop_1): Set it to real_this_command unless that was
25561 bound to an input event.
25562 (mark_kboards): Mark it.
25563
25564 2007-10-08 Richard Stallman <rms@gnu.org>
25565
25566 * eval.c (condition-case): Doc fix.
25567
25568 2007-10-08 Masatake YAMATO <jet@gyve.org>
25569
25570 * xfaces.c (tty_supports_face_attributes_p): Fix code
25571 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25572 was copied and not edited.
25573
25574 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25575
25576 Add new `input-decode-map' keymap and use it for terminal
25577 escape sequences.
25578 * keyboard.h (struct kboard): Add Vinput_decode_map.
25579 Remove Vlocal_key_translation_map.
25580 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25581 (init_kboard): Init input-decode-map.
25582 Replace local-key-translation-map back with key-translation-map.
25583 (syms_of_keyboard): Declare input-decode-map.
25584 Remove local-key-translation-map. Update docstrings.
25585 (mark_kboards): Mark Vinput_decode_map.
25586 Don't mark Vlocal_key_translation_map.
25587 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25588 Replace local-key-translation-map back with key-translation-map.
25589 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25590 Bind in input-decode-map rather than function-key-map.
25591
25592 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25593 This was made redundant by the previous introduction of XSETPVECTYPE.
25594
25595 2007-10-09 Richard Stallman <rms@gnu.org>
25596
25597 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25598
25599 2007-09-29 Richard Stallman <rms@gnu.org>
25600
25601 * eval.c (internal_condition_case_2, internal_condition_case_1)
25602 (internal_condition_case): Reenable abort if x_catching_errors ()
25603 to see if that really happens and why.
25604
25605 2007-10-06 Andreas Schwab <schwab@suse.de>
25606
25607 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25608
25609 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
25610
25611 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25612
25613 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25614
25615 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25616
25617 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25618
25619 * window.h (struct window):
25620 * window.c (struct save_window_data, struct saved_window):
25621 * termhooks.h (struct terminal):
25622 * process.h (struct Lisp_Process):
25623 * frame.h (struct frame):
25624 * buffer.h (struct buffer):
25625 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25626 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25627 The size field of (pseudo)vectors is now unsigned.
25628 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25629
25630 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25631 Turn `count' into an integer.
25632
25633 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25634 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25635 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25636 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25637 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25638
25639 * alloc.c (allocate_pseudovector): New fun.
25640 (ALLOCATE_PSEUDOVECTOR): New macro.
25641 (allocate_window, allocate_terminal, allocate_frame)
25642 (allocate_process): Use it.
25643 (mark_vectorlike): New function.
25644 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25645 (mark_terminals): Use it.
25646 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25647 (Fmake_byte_code): Use XSETPVECTYPE.
25648
25649 * frame.c (Fframe_parameters): Minor simplification.
25650
25651 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25652
25653 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25654
25655 * buffer.c (Fget_buffer_create, init_buffer_once):
25656 * lread.c (defsubr):
25657 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25658
25659 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25660 defined differently in the m/*.h files.
25661 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25662 (XSETPVECTYPE): New macro.
25663 (XSETPSEUDOVECTOR): Use it.
25664
25665 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25666 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25667
25668 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25669 * lread.c (defvar_per_buffer):
25670 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25671
25672 * window.c (candidate_window_p): Only consider as visible frames that
25673 are on the same terminal.
25674
25675 * m/ibms390x.h (MARKBIT): Remove unused macro.
25676
25677 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
25678
25679 * lread.c (Fload): Fix typo in docstring.
25680
25681 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25682
25683 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25684 of a non-zero value can't yield zero.
25685
25686 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25687
25688 * term.c (term_clear_mouse_face, term_mouse_highlight)
25689 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25690
25691 * print.c (safe_debug_print): Use XHASH.
25692
25693 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25694 Lisp elements such as tags.
25695 (XHASH): New macro.
25696 (EQ): Use it.
25697 (SREF, SSET, STRING_COPYIN): Use SDATA.
25698 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25699
25700 * alloc.c (mark_terminal): Remove left-over declaration.
25701 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25702 (allocate_vectorlike): Remove type argument. Adjust callers.
25703 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25704 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25705
25706 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25707 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25708 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25709 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25710 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25711 Use them.
25712
25713 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25714 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25715 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25716
25717 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25718
25719 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25720 loaded by default.
25721
25722 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25723
25724 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25725 on this tty.
25726 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25727
25728 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25729 Update all users.
25730 (handle_one_term_event): Use Gpm_DrawPointer.
25731 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25732 Signal errors instead of returning nil. Always return nil.
25733 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25734 Make it a noop if gpm-mouse was not activated.
25735 (syms_of_term): Update names.
25736
25737 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25738
25739 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25740 (init_sys_modes): Check that gpm_tty is the current tty.
25741
25742 * alloc.c (allocate_terminal): Set the vector size to only count the
25743 lisp fields. Initialize those to nil.
25744 (mark_object): Don't treat terminals specially.
25745 (mark_terminal): Remove.
25746 (mark_terminals): Use mark_object instead.
25747
25748 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25749 the GC to the beginning.
25750
25751 * indent.h:
25752 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25753
25754 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25755
25756 2007-09-25 Jason Rumney <jasonr@gnu.org>
25757
25758 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25759
25760 * w32console.c (create_w32cons_output): Remove.
25761
25762 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25763
25764 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25765 (reset_sys_modes): Use reset_terminal_modes_hook.
25766
25767 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25768
25769 * eval.c (do_autoload): Don't output any message.
25770
25771 2007-09-24 Juri Linkov <juri@jurta.org>
25772
25773 * emacs.c (standard_args): Change priority of "--no-splash"
25774 from 40 to 3. Add "--no-desktop" with the same priority.
25775
25776 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25777
25778 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25779 and optimize the case where they are all 1.
25780
25781 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
25782
25783 * lisp.h (abs): Define if not defined.
25784 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25785 Don't define `abs', since it's defined in lisp.h.
25786
25787 2007-09-22 Eli Zaretskii <eliz@gnu.org>
25788
25789 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25790 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25791 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25792 (init_tty): Use DEV_TTY instead of "/dev/tty".
25793 [WINDOWSNT]: No need to protect from NAME arg being null.
25794
25795 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25796
25797 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25798 up the tty state.
25799
25800 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25801
25802 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25803 (gpm_tty): Change its type.
25804 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25805 (gpm_tty): Change its type and initialize it.
25806 (Fterm_open_connection): Check the frame is indeed a tty.
25807 Use the new gpm_tty.
25808 (Fterm_close_connection): Use the new gpm_tty.
25809 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25810 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25811
25812 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
25813
25814 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25815 underline_color, to draw strike-through.
25816
25817 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25818
25819 * lisp.h (allocate_terminal): Declare.
25820
25821 * window.c (candidate_window_p): Consider frames that are being placed
25822 by the user as somewhere between visible and iconified.
25823 (window_loop): Prefer windows on the current frame.
25824 (Fselect_window): Move the use of select-frame to the beginning so we
25825 can just delegate all the work (it'll call us back anyway).
25826
25827 * frame.c (Qdisplay_environment_variable):
25828 * frame.h (Qdisplay_environment_variable): Delete.
25829
25830 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25831 of the first arg, since that value may be a union.
25832
25833 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25834 parameter rather than Qdisplay_environment_variable. If all else
25835 fails, look for DISPLAY in initial-environment.
25836
25837 2007-09-21 Glenn Morris <rgm@gnu.org>
25838
25839 * Makefile.in (emacstool): Remove target.
25840 (lisp, shortlisp): Remove termdev.elc.
25841
25842 2007-09-21 Markus Triska <markus.triska@gmx.at>
25843
25844 * xterm.c (x_delete_display): Compile session management conditionally.
25845
25846 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25847
25848 * callproc.c (getenv_internal_1): New function.
25849 (getenv_internal): Use it.
25850 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25851
25852 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25853 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25854 (Fset_terminal_parameter): Work with dead terminals as well.
25855 (Fmodify_terminal_parameters): Remove.
25856
25857 * terminal.c (get_terminal): Handle terminals.
25858 Make sure the terminal returned is live.
25859 (create_terminal): Use allocate_terminal.
25860 (mark_terminals): Move to alloc.c.
25861 (delete_terminal): Use terminal->name as liveness status.
25862 NULL out fields after freeing their contents.
25863 Don't deallocate the object.
25864 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25865 rather than an int.
25866 (Fterminal_live_p): Accept non-integer arguments.
25867 (Fterminal_list): Return terminal objects rather than an ints.
25868
25869 * alloc.c (enum mem_type): New member for `terminal' objects.
25870 (allocate_terminal): New function.
25871 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25872 Handle terminals.
25873 (mark_terminal): New fun.
25874 (mark_terminals): Move from terminal.c.
25875
25876 * term.c (get_tty_terminal): Don't treat output_initial specially.
25877 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25878 (delete_tty): Use terminal->name as liveness status.
25879
25880 * termhooks.h (struct terminal): Make it into a pseudovector.
25881 Remove `deleted' replaced by checking `name's nullness.
25882
25883 * print.c (print_object): Handle terminals.
25884
25885 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25886 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25887
25888 * frame.c (make_terminal_frame):
25889 * keyboard.c (tty_read_avail_input):
25890 * w32term.c (x_delete_terminal):
25891 * xfns.c (Fx_create_frame, x_create_tip_frame):
25892 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25893
25894 2007-09-20 Glenn Morris <rgm@gnu.org>
25895
25896 * process.c (Fmake_network_process): Doc fix.
25897
25898 2007-09-19 Jason Rumney <jasonr@gnu.org>
25899
25900 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25901
25902 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25903
25904 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25905 Fix a C warning regarding variable constness.
25906
25907 * xterm.c (handle_one_xevent): Fix a C warning.
25908
25909 2007-09-18 Jason Rumney <jasonr@gnu.org>
25910
25911 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25912
25913 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25914
25915 * gtkutil.c (gdpy_def): New variable.
25916 (xg_initialize): Initialize gdpy_def.
25917 (xg_display_close): If no other display exists, set gdpy_def to a
25918 new connection.
25919
25920 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25921
25922 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25923 when we have no file name for the icon.
25924 (xg_tool_bar_expose_callback): Remove.
25925 (xg_create_tool_bar): Don't connect expose signal to
25926 xg_tool_bar_expose_callback.
25927 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25928
25929 2007-09-16 Andreas Schwab <schwab@suse.de>
25930
25931 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25932 values instead of zapping them.
25933
25934 2007-09-14 Glenn Morris <rgm@gnu.org>
25935
25936 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25937 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25938 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25939 scope and rename to omfib_buffer for clarity.
25940 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25941
25942 2007-09-14 Kenichi Handa <handa@m17n.org>
25943
25944 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25945
25946 2007-09-13 Jason Rumney <jasonr@gnu.org>
25947
25948 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25949
25950 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25951
25952 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25953 (mac_term_init): Call here instead, passing rif.
25954
25955 2007-09-13 Glenn Morris <rgm@gnu.org>
25956
25957 * s/hpux.h: No longer define `static' as nothing.
25958
25959 2007-09-13 Johan Bockgård <bojohan@gnu.org>
25960
25961 * callint.c (Fcall_interactively): Remove unused var `fun'.
25962
25963 2007-09-12 Romain Francoise <romain@orebokech.com>
25964
25965 * window.c (prefer_window_split_horizontally, display_buffer):
25966 Revert 2007-09-08 change.
25967
25968 2007-09-12 Glenn Morris <rgm@gnu.org>
25969
25970 * alloca.c: Remove file.
25971 * Makefile.in (alloca): Do not undef.
25972 (allocaobj, alloca.o): Remove.
25973 (otherobj): Remove allocaobj.
25974 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25975 * regex.c (C_ALLOCA): Remove all references and code that was only
25976 used when this was defined.
25977 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25978 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25979 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25980
25981 * Makefile.in (SOURCES, unlock, relock): Delete.
25982
25983 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25984 (menu_grab_callback): All uses changed.
25985
25986 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25987 (x_reply_selection_request): All uses changed.
25988
25989 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25990
25991 * lread.c (load_warn_old_style_backquotes): Change message to look
25992 better when it appears in the middle of byte-compiler messages.
25993
25994 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25995
25996 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25997
25998 * xterm.c (x_create_terminal): Add comment.
25999
26000 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26001
26002 2007-09-10 Richard Stallman <rms@gnu.org>
26003
26004 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26005
26006 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26007
26008 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26009 (DEFUN): Document `intspec', use it instead of `prompt'.
26010
26011 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26012
26013 * data.c (Finteractive_form): If the interactive specification starts
26014 with a `(', use it as a Lisp form.
26015
26016 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26017 name and file modes.
26018
26019 * callint.c (Fcall_interactively): Comment fixes.
26020
26021 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26022
26023 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26024 and compiled functions.
26025
26026 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26027
26028 * window.c (prefer_window_split_horizontally): New variable.
26029 (display_buffer): Consider splitting window horizontally depending
26030 on prefer_window_split_horizontally.
26031
26032 2007-09-08 Eli Zaretskii <eliz@gnu.org>
26033
26034 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26035
26036 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26037
26038 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26039
26040 * frame.c (x_set_frame_parameters): Check number is positive before
26041 using XFASTINT.
26042
26043 * window.c (freeze_window_start): Don't presume selected_window holds
26044 a window object.
26045 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26046
26047 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26048
26049 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26050
26051 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26052
26053 * window.c (Vsplit_window_preferred_function): New var.
26054 (Fdisplay_buffer): Use it.
26055 (syms_of_window): Export, and initialize it.
26056
26057 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26058
26059 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26060
26061 2007-09-06 Glenn Morris <rgm@gnu.org>
26062
26063 * gtkutil.c (menu_grab_callback) <cnt>:
26064 * xselect.c (x_reply_selection_request) <cnt>: Move static
26065 variable to file scope.
26066
26067 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26068
26069 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26070 consistent values of selected_frame and selected_window.
26071
26072 2007-09-04 Jason Rumney <jasonr@gnu.org>
26073
26074 * w32console.c (initialize_w32_display): Zero unused hooks.
26075
26076 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26077
26078 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26079 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26080
26081 2007-09-04 Jason Rumney <jasonr@gnu.org>
26082
26083 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26084 in w32console.c. Set up input. Remove XXX comments that have been
26085 confirmed as correct.
26086
26087 * s/ms-w32.h (MULTI_KBOARD): Define.
26088
26089 * w32console.c (one_and_only_w32cons): Remove.
26090 (initialize_w32_display): Take terminal argument.
26091
26092 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26093 initialize_w32_display.
26094 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26095
26096 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26097
26098 * keyboard.c (discard_mouse_events): Discard it.
26099 (make_lispy_event): Translate it to a lisp event.
26100 (lispy_wheel_names): Add wheel-left and right events.
26101 (syms_of_keyboard): Enlarge wheel_syms.
26102
26103 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26104 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26105
26106 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26107
26108 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26109 from WM_MOUSEHWHEEL.
26110 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26111
26112 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26113 terminal.
26114
26115 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26116 keyboard for the terminal.
26117
26118 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26119
26120 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26121 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26122 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26123 and resume-tty-function to resume-tty-hook.
26124 (Fsuspend_tty, Fresume_tty): Use new names.
26125
26126 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26127
26128 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26129 if it starts with "n:".
26130
26131 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26132
26133 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26134
26135 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26136
26137 * frame.h:
26138 * frame.c (Qterm_environment_variable): Remove.
26139 (syms_of_frame): Don't init and staticpro it.
26140
26141 * callproc.c (getenv_internal): Remove special case for $TERM.
26142
26143 * callproc.c (Vinitial_environment): New variable.
26144 (set_initial_environment): Initialize it.
26145 (syms_of_callproc): Declare it.
26146 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26147 TERM under which a process runs is never related to the TERM in which
26148 Emacs is running.
26149
26150 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26151
26152 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26153 * s/darwin.h: ... do it here.
26154
26155 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26156
26157 * lisp.h (set_initial_environment): Rename from set_global_environment.
26158
26159 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26160 removed by mistake on the multi-tty branch.
26161
26162 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26163 (Fmodify_frame_parameters): Return a value.
26164
26165 * image.c (png_load): Comment-out var only used in commented-out code.
26166
26167 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26168 before passing it to mark_object.
26169
26170 * xfaces.c (internal_resolve_face_name): Return a value.
26171 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26172
26173 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26174 (x_icon): Comment-out var only used in commented-out code.
26175
26176 2007-08-29 Romain Francoise <romain@orebokech.com>
26177
26178 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26179 QUIT hasn't been provided.
26180
26181 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26182
26183 * callproc.c (child_setup, getenv_internal): Use the
26184 display-environment-variable and term-environment-variable frame params.
26185 (set_initial_environment): Initialise Vprocess_environment.
26186
26187 * config.in: Disable multi-keyboard support on a mac.
26188
26189 * frame.c (Qterm_environment_variable)
26190 (Qdisplay_environment_variable): New variables.
26191 (syms_of_frame): Intern and staticpro them.
26192 (Fmake_terminal_frame): Disable output method test.
26193
26194 * frame.h: Declare them here.
26195
26196 * macfns.c (x_set_mouse_color): Get rif from the frame.
26197 (x_set_tool_bar_lines): Don't use updating_frame.
26198 (mac_window): Add 2 new parameters for consistency with other systems.
26199 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26200 frame parameters following what is done in X11 and w32. Don't use
26201 FRAME_MAC_DISPLAY_INFO.
26202 (Fx_open_connection, start_hourglass): Remove window-system check.
26203 (x_create_tip_frame): Get the keyboard from the terminal.
26204
26205 * macmenu.c: Reorder includes.
26206 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26207
26208 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26209 terminal parameter.
26210 (x_clear_frame): Add a frame parameter.
26211 (note_mouse_movement): Get rif from the frame.
26212 (mac_term_init): Initialize the terminal.
26213 (mac_initialize): Make static and move terminal initialization ...
26214 (mac_create_terminal): ... to this new function.
26215
26216 * macterm.h (struct mac_display_info): Add terminal.
26217 (mac_initialize): Delete declaration.
26218
26219 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26220
26221 * sysdep.c: Comment out text after #endif.
26222
26223 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26224 is defined. Better initialize ttys in windows. Use terminal
26225 specific mouse_position_hook.
26226
26227 * termhooks.h (union display_info): Add mac_display_info.
26228
26229 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26230 Set the default minibuffer frame, window_system and the rest of the
26231 frame parameters following what is done in X11.
26232
26233 * w32term.c (w32_initialize): Make static.
26234
26235 * xselect.c (x_handle_selection_clear): Only access
26236 terminal->kboard when MULTI_KBOARD is defined.
26237
26238 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26239 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26240
26241 2007-08-29 Jason Rumney <jasonr@gnu.org>
26242
26243 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26244 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26245
26246 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26247 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26248
26249 * keyboard.c (restore_kboard_configuration): Only define when
26250 MULTI_KBOARD defined.
26251
26252 * makefile.w32-in: Update dependancies from Makefile.in.
26253 (OBJ1): Add terminal.$(O)
26254
26255 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26256 Don't define function body.
26257 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26258
26259 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26260
26261 * w32.c (request_sigio, unrequest_sigio): Remove.
26262
26263 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26264 (w32con_clear_frame, w32con_clear_end_of_line)
26265 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26266 (w32con_delete_glyphs, w32con_set_terminal_window)
26267 (scroll_line, w32_sys_ring_bell): Add frame arg.
26268 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26269 Add terminal arg.
26270 (PICK_FRAME): Remove.
26271 (w32con_write_glyphs): Use frame specific terminal coding.
26272 (one_and_only_w32cons): New global variable.
26273 (initialize_w32_display): Use it for storing hooks.
26274 (create_w32cons_output): New function.
26275
26276 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26277 arg a frame.
26278
26279 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26280 Set window_system.
26281 (x_set_tool_bar_lines): Don't use updating_frame.
26282 (Fx_create_frame): Set terminal and ref count.
26283 (Fx_open_connection): Remove window-system check.
26284
26285 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26286
26287 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26288 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26289 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26290 Add frame arg.
26291 (x_delete_terminal, w32_create_terminal): New functions.
26292 (w32_term_init): Create a terminal.
26293 (w32_initialize): Move terminal specific initialization to
26294 w32_create_terminal.
26295
26296 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26297 (w32_clear_rect, w32_clear_area): Use background from frame.
26298 (w32_display_info): Add terminal.
26299 (w32_sys_ring_bell, x_delete_display): Declare here.
26300
26301 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26302
26303 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26304
26305 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26306
26307 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26308 Fix get_named_tty calls for the controlling tty.
26309
26310 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26311
26312 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
26313
26314 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26315
26316 * term.c (tty_insert_glyphs): Add missing first parameter.
26317
26318 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26319
26320 * buffer.c (Fbuffer_list, Fbury_buffer):
26321 Take frame->buried_buffer_list into account.
26322
26323 * cm.c (current_tty): New variable, for cmputc().
26324 (cmputc): Use it.
26325 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26326 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26327 (cmgoto): Add tty parameter. Pass it on to calccost().
26328 Use emacs_tputs() instead of tputs().
26329
26330 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26331 tputs().
26332 (current_tty): New variable, for cmputc().
26333 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26334
26335 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26336 (internal_condition_case, internal_condition_case_1)
26337 (internal_condition_case_2): Don't abort when x_catching_errors.
26338
26339 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26340 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26341 prevent crashes caused by bogus longjmps in read_char.
26342
26343 * keymap.h (Fset_keymap_parent): Add EXFUN.
26344
26345 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26346 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26347 Remove redundant definition.
26348
26349 * macfns.c (x_set_mouse_color, x_make_gc):
26350 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26351
26352 * w32term.c (x_free_frame_resources):
26353 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26354 (w32_initialize): Use the accessor macros for terminal characteristics.
26355
26356 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26357 Use the accessor macros for terminal characteristics.
26358 * msdos.c (internal_terminal_init): Use the accessor macros for
26359 terminal characteristics.
26360 (ScreenVisualBell, internal_terminal_init):
26361 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26362
26363 * termopts.h (no_redraw_on_reenter): Declare.
26364
26365 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26366 (mark_terminals, mark_ttys): Declare.
26367 (Fgarbage_collect): Call them.
26368 (mark_object): Mark buried_buffer_list.
26369
26370 * prefix-args.c: Include stdlib.h for exit.
26371
26372 * syssignal.h: Add comment.
26373
26374 * indent.c: Include stdio.h.
26375
26376 * window.h (Vinitial_window_system): Declare.
26377 (Vwindow_system): Delete declaration.
26378
26379 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26380
26381 * image.c (lookup_image): Don't initialize `c' until the xasserts
26382 have been run.
26383
26384 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26385 FRAME_FOREGROUND_PIXEL.
26386
26387 * print.c (print_preprocess): Don't lose print_depth levels while
26388 iterating.
26389
26390 * widget.c (update_from_various_frame_slots):
26391 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26392
26393 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26394 frames.
26395 (window_internal_height): Remove bogus make_number call.
26396 (init_window_once): Call make_terminal_frame with two zero parameters.
26397
26398 * fileio.c (Fread_file_name): Update comment.
26399
26400 * callint.c (Fcall_interactively):
26401 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26402 Make sure it is correctly unwound.
26403
26404 * xsmfns.c (x_session_close): New function.
26405
26406 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26407 Delete declarations.
26408
26409 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26410 (x_output): Remove background_pixel and foreground_pixel fields.
26411 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26412 (x_delete_device, x_session_close): Declare.
26413
26414 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26415 (read_filtered_event): Call `read_char' with a local
26416 `wrong_kboard_jmpbuf'.
26417
26418 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26419 Don't call single_kboard_state. Use FRAME_RIF.
26420
26421 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26422 systems.
26423
26424 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26425 (Fframe_with_environment, Fset_input_meta_mode)
26426 (Fset_quit_char): EXFUN.
26427 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26428 (init_sys_modes, reset_sys_modes): Update prototypes.
26429 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26430
26431 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26432 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26433 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26434 Delete declarations.
26435 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26436 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26437 New declarations.
26438
26439 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26440 already does that during init_display(). Call syms_of_keymap
26441 before syms_of_keyboard. Call `syms_of_terminal'.
26442 Call set_initial_environment, not set_process_environment.
26443 (shut_down_emacs): Call reset_all_sys_modes() instead of
26444 reset_sys_modes().
26445
26446 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26447 (internal_resolve_face_name, resolve_face_name_error): New functions.
26448 (resolve_face_name): Protect against loops and errors thrown by Fget.
26449 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26450 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26451
26452 * scroll.c: Replace CURTTY() with local variables throughout the
26453 file (where applicable).
26454 (calculate_scrolling, calculate_direct_scrolling)
26455 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26456 characteristics.
26457
26458 * keymap.c (Vfunction_key_map): Remove.
26459 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26460 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26461 (Vkey_translation_map): Remove.
26462 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26463 (Fdescribe_buffer_bindings)
26464 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26465 Update for terminal-local key-translation-map.
26466
26467 * Makefile.in (callproc.o): Update dependencies.
26468 (lisp, shortlisp): Add termdev.elc.
26469 (obj): Add terminal.o.
26470 (terminal.o): Add dependencies.
26471 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26472 (data.o, fns.o): Add termhooks.h dependency.
26473 (SOME_MACHINE_LISP): Add dnd.elc.
26474 (minibuf.o): Fix typo.
26475 Update dependencies.
26476
26477 * data.c (do_symval_forwarding, store_symval_forwarding)
26478 (find_symbol_value): Use the selected frame's keyboard, not
26479 current_kboard.
26480
26481 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26482 Vwindow_system.
26483
26484 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26485 Fmenu_bar_open.
26486 (syms_of_xmenu): Update defsubr.
26487 (mouse_position_for_popup, Fx_popup_menu)
26488 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26489 (set_frame_menubar, free_frame_menubar)
26490 (create_and_show_popup_menu, xmenu_show)
26491 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26492 an X frame.
26493
26494 * xselect.c (x_own_selection): Abort if not an X frame.
26495 (some_frame_on_display): Check if it is an X frame.
26496 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26497
26498 * coding.c: Include frame.h and termhooks.h.
26499 (terminal_coding, keyboard_coding): Delete.
26500 (Fset_terminal_coding_system_internal)
26501 (Fset_keyboard_coding_system_internal)
26502 (Fkeyboard_coding_system)
26503 (Fterminal_coding_system): Add a terminal parameter.
26504 Get terminal_coding from the terminal.
26505 (init_coding_once): Don't call setup_coding_system here.
26506
26507 * dispextern.h (set_scroll_region, turn_off_insert)
26508 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26509 (tty_clear_end_of_line, tty_setup_colors)
26510 (delete_tty, updating_frame)
26511 (produce_special_glyphs, produce_glyphs, write_glyphs)
26512 (insert_glyphs): Remove.
26513 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26514 (tty_turn_off_highlight, get_tty_size): Add declaration.
26515 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26516
26517 * frame.h (enum output_method): Add output_initial.
26518 (struct x_output): Delete.
26519 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26520 Access foreground_pixel and background_pixel directly from the frame.
26521 (tty_display): Delete.
26522 (struct frame): Add buried_buffer_list, foreground_pixel,
26523 background_pixel and terminal. Delete kboard.
26524 (union output_data): Add tty.
26525 (FRAME_KBOARD): Get the kboard from the terminal.
26526 (FRAME_INITIAL_P): New macro.
26527 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26528 (Qterm_environment_variable, Qdisplay_environment_variable)
26529 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26530 New declarations.
26531
26532 * termchar.h (tty_output, tty_display_info): New structures.
26533 (tty_list): Declare.
26534 (FRAME_TTY, CURTTY): New macros.
26535 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26536 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26537 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26538 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26539
26540 * callproc.c: Include frame.h and termhooks.h, for terminal
26541 parameters.
26542 (add_env): New function.
26543 (child_setup): Use it.
26544 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26545 (getenv_internal): Fix get_terminal_param call.
26546 (Fgetenv_internal, egetenv): Update doc.
26547 (syms_of_callproc): Initialize Vprocess_environment to nil.
26548 Register and initialize them. Remove obsolete defvars. Update doc
26549 strings.
26550 (child_setup): Handle Vlocal_environment_variables.
26551 (getenv_internal): Add terminal parameter.
26552 Handle Vlocal_environment_variables.
26553 (Fgetenv_internal): Add terminal parameter.
26554 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26555 environment in a frame (not terminal) parameter. Update doc strings.
26556 (set_initial_environment): Rename from set_global_environment.
26557 Store Emacs environment in initial frame parameter.
26558
26559 * xdisp.c (redisplay_internal): Update references to
26560 `previous_terminal_frame'.
26561 (display_mode_line, Fformat_mode_line): Replace calls to
26562 `push_frame_kboard' with `push_kboard'.
26563 (get_glyph_string_clip_rects): Add extra parentheses and
26564 braces to prevent compiler warnings.
26565 (calc_pixel_width_or_height): Add xassert to check that the
26566 frame is alive. Don't call `lookup_image' on a termcap frame.
26567 (message2_nolog, message3_nolog, redisplay_internal)
26568 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26569 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26570 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26571 (Fx_display_pixel_width, Fx_display_pixel_height)
26572 (Fx_display_planes, Fx_display_color_cells)
26573 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26574 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26575 (Fx_display_backing_store, Fx_display_visual_class)
26576 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26577 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26578
26579 * xfns.c (x_set_foreground_color x_set_background_color)
26580 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26581 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26582 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26583 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26584 terminal that is being deleted.
26585 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26586 frame parameter, and make sure it overrides any user-supplied setting.
26587 (Fx_close_connection, Fx_synchronize): Unify argument names with
26588 the rest of the DEFUNs.
26589
26590 * dispnew.c (Fsend_string_to_terminal): Update call to
26591 `get_tty_terminal'.
26592 (Fredraw_frame, Fsend_string_to_terminal)
26593 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26594 FRAME_TERMCAP_P and FRAME_TTY.
26595 (window_change_signal): Don't believe width/height values that are
26596 impossibly small.
26597 (Vinitial_window_system): Rename from Vwindow_system.
26598 (termscript, Wcm, rif): Delete.
26599
26600 * termhooks.h (struct terminal): New struct containing the
26601 previously global text display hooks and new members NAME,
26602 DELETED and PARAM_ALIST.
26603 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26604 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26605 (FRAME_RIF): New macros.
26606 (get_terminal_param, get_device): New declarations.
26607 (termscript): Delete declaration.
26608
26609 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26610 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26611 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26612 FRAME_FOREGROUND_PIXEL.
26613 (x_fully_uncatch_errors): Disable definition.
26614 (x_scroll_bar_expose): Fix reference to foreground pixel.
26615 (XTread_socket): Disable loop on all X displays.
26616 (x_delete_terminal): Don't set terminal->deleted and let
26617 delete_terminal delete the frames on the terminal.
26618 (x_delete_display): Doc update to reflect changes in
26619 delete_terminal.
26620 (x_display_info) <terminal>: Move member earlier in the struct.
26621 (deleting_tty): Remove old variable.
26622 (Fsuspend_tty): Call clear_tty_hooks.
26623 (Fresume_tty, init_tty): Call set_tty_hooks.
26624 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26625 errors on X frames.
26626 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26627 (handle_one_xevent): Initialize `f' to NULL.
26628 (x_delete_terminal, x_create_terminal): New functions.
26629 (XTset_terminal_modes, XTreset_terminal_modes)
26630 (XTread_socket, x_connection_closed, x_term_init)
26631 (x_term_init, x_delete_display): Add terminal parameter.
26632 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26633 X connections.
26634
26635 * frame.c: Include termchar.h.
26636 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26637 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26638 (Qdisplay_environment_variable): New vars.
26639 (Fframep): Deal with output_initial.
26640 (Fframe-live-p): Doc fix.
26641 (Fwindow-system): New function.
26642 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26643 (make_terminal_frame): Don't create frames on a terminal that is
26644 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26645 (store_frame_param): Check for found_for_frame before calling XFRAME.
26646 (Fmake_terminal_frame): Handle NULL tty names correctly.
26647 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26648 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26649 frames to refer to a deleted frame in their 'environment parameter.
26650 (Fframe_with_environment): New function.
26651 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26652 (get_future_frame_param): New function.
26653 (Fmake_terminal_frame): Use it.
26654 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26655
26656 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26657 * sysdep.c (reset_sys_modes): Update for renames.
26658
26659 * keyboard.c (tty_read_avail_input): New function.
26660 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26661 (syms_of_keyboard): Defsubr them.
26662 (Fset_input_meta_mode, Fset_quit_char): New functions.
26663 (Fset_input_mode): Split to above functions.
26664 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26665 parameter. Use it in call to `read_char'.
26666 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26667 Set wrong_kboard_jmpbuf correctly in recursive calls.
26668 Use current_kboard to access Vkeyboard_translate_table.
26669 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26670 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26671 Update longjmp invocations. Remember the original current_kboard,
26672 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26673 changes it. Comment out unnecessary calls to
26674 `record_single_kboard_state' and `any_kboard_state'.
26675 Update recursive calls.
26676 (wrong_kboard_jmpbuf): Remove global variable.
26677 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26678 Handle deleted interrupted_kboards correctly; that is a legal
26679 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26680 and read_char calls. Abort if interrupted_kboard died in read_char.
26681 (any_kboard_state, single_kboard_state)
26682 (push_frame_kboard): Remove function.
26683 (pop_kboard): Switch out of single_kboard mode if the kboard has
26684 been deleted. Remove unused variable. Help debugging by not
26685 changing current_kboard unnecessarily. Set current_kboard to the
26686 kboard of the selected frame when the stored kboard object has
26687 been deleted before pop_kboard.
26688 (temporarily_switch_to_single_kboard): Change first parameter to a
26689 frame pointer. Throw an error when caller wants to change kboards
26690 while in single_kboard mode. Don't push_kboard if we weren't in
26691 single kboard state. Don't pop_kboard if we popped into any
26692 kboard state.
26693 (restore_kboard_configuration): Abort if pop_kboard changed the
26694 kboard in single_kboard mode. Call pop_kboard only after setting
26695 up single_kboard mode.
26696 (Frecursive_edit): Switch to single_kboard mode only in nested
26697 command loops.
26698 (cmd_error, command_loop, command_loop_1, timer_check):
26699 Comment out unnecessary call to `any_kboard_state' and
26700 `record_single_kboard_state'.
26701 (delete_kboard): Exit single_kboard mode if we have just deleted
26702 that kboard. Use FRAME_KBOARD.
26703 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26704 `fatal_error_signal'.
26705 (record_single_kboard_state): Don't push_kboard if we weren't in
26706 single kboard state. Don't pop_kboard if we popped into any
26707 kboard state.
26708 (push_frame_kboard): Rename to push_kboard.
26709 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26710 (read_avail_input): Read input from all terminals.
26711 (mark_kboards): Also mark Vkeyboard_translate_table.
26712 (kbd_buffer_store_event_hold): Simplify condition.
26713 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26714 (Vkeyboard_translate_table): Move to struct kboard.
26715 (init_kboard): Initialize Vkeyboard_translate_table.
26716 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26717 Vkeyboard_translate_table. Update doc strings. Update docs of
26718 local-function-key-map and function-key-map.
26719
26720 * terminal.c: New file.
26721
26722 * term.c: Include errno.h.
26723 (Vring_bell_function, device_list, initial_device)
26724 (next_device_id, ring_bell, update_begin, update_end)
26725 (set_terminal_window, cursor_to, raw_cursor_to)
26726 (clear_to_end, clear_frame, clear_end_of_line)
26727 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26728 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26729 (syms_of_term): Move their initialization to terminal.c.
26730 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26731 (Ftty_display_color_cells)
26732 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26733 (clear_tty_hooks, set_tty_hooks)
26734 (init_tty, maybe_fatal): New functions.
26735 (Ftty_type): Return nil if terminal is not on a tty instead of
26736 throwing an error. Doc update.
26737 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26738 Doc update. Initialize new subrs and variables.
26739 (delete_tty): Use terminal->deleted.
26740 (tty_set_terminal_modes): Rename from set_terminal_modes.
26741 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26742 (set_scroll_region): Rename to `tty_set_scroll_region'.
26743 (turn_on_insert): Rename to `tty_turn_on_insert'.
26744 (turn_off_insert): Rename to `tty_turn_off_insert'.
26745 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26746 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26747 (toggle_highligh): Rename to `tty_toggle_highlight'.
26748 (background_highlight): Rename to `tty_background_highlight'.
26749 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26750 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26751 (tty_set_scroll_region, tty_background_highlight)
26752 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26753 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26754 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26755 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26756 Add static modifier.
26757 (tty_reset_terminal_modes, tty_set_terminal_window)
26758 (tty_set_scroll_region, tty_background_highlight)
26759 (tty_highlight_if_desired, tty_cursor_to)
26760 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26761 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26762 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26763 renames.
26764
26765 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26766
26767 * keyboard.c: Qrtl is new.
26768 (parse_tool_bar_item): Handle :rtl keyword.
26769 (syms_of_keyboard): Intern :rtl keyword.
26770
26771 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26772
26773 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26774 so no Lisp code is executed.
26775 (file_for_image, find_rtl_image): New functions.
26776 (xg_get_image_for_pixmap): Use file_for_image.
26777 (update_frame_tool_bar): If direction is RTL, use RTL image if
26778 defined. Use Gtk stock images if defined.
26779
26780 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26781
26782 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26783 for nonexistent or zero-width glyph in composition glyph.
26784
26785 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26786
26787 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26788
26789 * xdisp.c (Finvisible_p): New function.
26790 (syms_of_xdisp): defsubr it.
26791
26792 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
26793
26794 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26795 Doc fixes.
26796
26797 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26798
26799 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26800
26801 2007-08-24 Martin Rudalics <rudalics@gmx.at>
26802
26803 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26804 whether decoding has modified buffer contents.
26805
26806 2007-08-24 Jason Rumney <jasonr@gnu.org>
26807
26808 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26809 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26810 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26811 (init_svg_functions) [HAVE_NTGUI]: New function.
26812 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26813 (svg_load_image): Use them.
26814 (svg_load_image) [HAVE_NTGUI]: Implement background.
26815
26816 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26817
26818 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26819 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26820 (LIBX): Remove @RSVG_LIBS@.
26821 (LIBES): Add $(RSVG_LIBS).
26822
26823 * image.c (svg_load_image): Blend with specified background if exists.
26824 Use IMAGE_BACKGROUND. Add Mac OS Support.
26825
26826 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26827 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26828 Remove macros.
26829 [MAC_OSX] (socket_callback): Do nothing.
26830 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26831 ReceiveNextEvent.
26832 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26833 socket_callback.
26834 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26835
26836 2007-08-22 Glenn Morris <rgm@gnu.org>
26837
26838 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26839
26840 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26841
26842 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26843
26844 * image.c: Add support for SVG images. Some additional comments
26845 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26846 (svg_image_p): New function to test for SVG image.
26847 (svg_load): New function to load SVG image.
26848 (svg_load_image): New function, helper for svg_load.
26849 (Qsvg): New Lisp_object.
26850 (svg_keyword_index): New enum.
26851 (svg_format): New static `image_keyword' struct.
26852 (svg_type): New static `image_type' struct.
26853 (librsvg/rsvg.h): Include it.
26854
26855 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26856
26857 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26858
26859 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26860
26861 * lread.c (Qold_style_backquotes): New var.
26862 (syms_of_lread): Init and staticpro it.
26863 (load_warn_old_style_backquotes): New fun.
26864 (Fload): Use them to warn about old style backquotes.
26865 (end_of_file_error, Fload): Remove unused vars.
26866
26867 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26868
26869 * lread.c (Vold_style_backquotes): New var.
26870 (syms_of_lread): Init and export it to Elisp.
26871 (read1): Set it when we find an old-style (back)quote.
26872
26873 2007-08-22 Jason Rumney <jasonr@gnu.org>
26874
26875 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26876
26877 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26878
26879 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26880
26881 2007-08-19 Richard Stallman <rms@gnu.org>
26882
26883 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26884
26885 2007-08-19 Andreas Schwab <schwab@suse.de>
26886
26887 * alloc.c (pure): Round PURESIZE up.
26888
26889 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26890
26891 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26892 active frame.
26893
26894 2007-08-16 Richard Stallman <rms@gnu.org>
26895
26896 * eval.c (Fcommandp): Add parens to clarify.
26897
26898 * minibuf.c (Fall_completions): Use enum for type of table.
26899
26900 * emacs.c (USAGE2): Improve text.
26901
26902 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26903
26904 * term.c (tty_default_color_capabilities): Declare static
26905 variables in file scope, to avoid HPUX compiler problem.
26906
26907 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26908
26909 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26910 to gtk_toolbar_insert.
26911
26912 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26913
26914 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26915
26916 * insdel.c (reset_var_on_error): New fun.
26917 (signal_before_change, signal_after_change):
26918 Use it to reset (after|before)-change-functions to nil in case of error.
26919 Bind inhibit-modification-hooks to t.
26920 Don't bind (after|before)-change-functions to nil while they run.
26921
26922 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26923
26924 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26925 filling pixmap with stippled background.
26926
26927 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26928
26929 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26930 Don't use invisible frame as parent window for repositioning.
26931
26932 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26933
26934 * print.c (new_backquote_output): Rename from old_backquote_output.
26935 (print): Inverse its logic (according to its name) so as to match the
26936 behavior of new_backquote_flag in lread.c.
26937
26938 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26939
26940 * gmalloc.c (posix_memalign): New function.
26941
26942 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26943 ActivateControl/DeactivateControl here.
26944 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26945 frame-notice-user-settings is non-nil.
26946 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26947 for kEventParamFMFontStyle.
26948 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26949 mac_pass_command_to_system and mac_pass_control_to_system here.
26950 (XTread_socket): Call ActivateControl/DeactivateControl here.
26951 (XTread_socket) [TARGET_API_MAC_CARBON]:
26952 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26953 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26954 for window repositioning.
26955
26956 2007-08-08 Glenn Morris <rgm@gnu.org>
26957
26958 * Replace `iff' in doc-strings and comments.
26959
26960 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
26961
26962 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26963
26964 2007-08-07 Martin Rudalics <rudalics@gmx.at>
26965
26966 * fileio.c (Finsert_file_contents): Run format-decode and
26967 after_insert_file_functions on entire buffer when REPLACE is
26968 non-nil and inhibit modification_hooks and point_motion_hooks.
26969 For consistency, run after_insert_file_functions iff something
26970 got inserted. Move signal_after_change and update_compositions
26971 after code running after_insert_file_functions. Make sure that
26972 undo_list doesn't record intermediate steps of the decoding process.
26973
26974 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26975
26976 * emacs.c (main)
26977 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26978 Call malloc_enable_thread on interactive startup.
26979
26980 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26981 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26982 [USE_PTHREAD]: Conditionalize with it.
26983 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26984 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26985 New functions.
26986
26987 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
26988
26989 * xdisp.c (redisplay_window): When restoring original buffer
26990 position, make sure it is still valid.
26991
26992 * image.c (png_load): Ignore png-supplied background color.
26993
26994 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26995
26996 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26997 Use kCFAbsoluteTimeIntervalSince1970.
26998
26999 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27000 New variable.
27001 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27002 event loop should be quit.
27003 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27004 Quit dialog event loop if quit_dialog_event_loop is set.
27005
27006 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27007 (Selection): New typedef. Use instead of ScrapRef.
27008 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27009 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27010 (mac_clear_selection): Rename from clear_scrap.
27011 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27012 scrap_has_target_type. All uses changed.
27013 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27014 (mac_selection_has_target_p): New functions.
27015 (mac_put_selection_value): Rename from put_scrap_string.
27016 (mac_get_selection_value): Rename from get_scrap_string.
27017 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27018 (put_scrap_private_timestamp, scrap_has_target_type)
27019 (get_scrap_private_timestamp): Remove functions.
27020 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27021 (x_own_selection, x_get_local_selection):
27022 Use mac_valid_selection_value_p.
27023 (x_own_selection): Don't use put_scrap_private_timestamp.
27024 Record OWNERSHIP-INFO into Vselection_alist instead.
27025 (x_get_local_selection): Don't check type if request is local.
27026 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27027 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27028
27029 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27030
27031 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27032 add comment explaining why.
27033
27034 2007-08-03 Richard Stallman <rms@gnu.org>
27035
27036 * fileio.c (Fvisited_file_modtime): Use make_time.
27037
27038 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27039
27040 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27041 build.
27042
27043 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27044
27045 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27046
27047 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27048
27049 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27050
27051 2007-07-30 Richard Stallman <rms@gnu.org>
27052
27053 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27054
27055 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27056
27057 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27058
27059 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
27060
27061 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27062 remote default-directory.
27063
27064 * buffer.c (mode-line-format): Update doc string.
27065
27066 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27067
27068 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27069 scroll bar gap.
27070 (x_scroll_bar_create): Set bar->fringe_extended_p.
27071 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27072 on frame edge. Check fringe background extension. Don't clear
27073 extended fringe background area.
27074
27075 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27076 (w32_fill_area): Enclose multiple statements with do ... while (0).
27077
27078 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27079 Extend fringe background to scroll bar gap.
27080 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27081 Set bar->fringe_extended_p.
27082 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27083 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27084 background extension. Don't clear extended fringe background area.
27085
27086 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27087 New member fringe_extended_p.
27088
27089 2007-07-25 Glenn Morris <rgm@gnu.org>
27090
27091 * Relicense all FSF files to GPLv3 or later.
27092
27093 * COPYING: Switch to GPLv3.
27094
27095 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27096
27097 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27098
27099 * data.c (Finteractive_form): Check for the presence of an
27100 `interactive-form' symbol property more thoroughly.
27101
27102 * data.c (Finteractive_form): Use an `interactive-form' property if
27103 present, analogous to the function-documentation property.
27104
27105 2007-07-24 Jason Rumney <jasonr@gnu.org>
27106
27107 * w32fns.c (x_real_positions): Get real position from OS instead of
27108 calculating it.
27109
27110 2007-07-23 Jason Rumney <jasonr@gnu.org>
27111
27112 * filelock.c (current_lock_owner): Allow for @ sign in username.
27113
27114 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
27115
27116 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27117 remote default-directory.
27118
27119 * buffer.c (mode-line-format): Describe above case in doc string.
27120
27121 2007-07-20 Eli Zaretskii <eliz@gnu.org>
27122
27123 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27124 Define if not defined.
27125
27126 2007-07-18 Jason Rumney <jasonr@gnu.org>
27127
27128 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27129
27130 2007-07-18 Richard Stallman <rms@gnu.org>
27131
27132 * data.c (Fsetq_default): Doc fix.
27133
27134 * eval.c (Fsetq): Doc fix.
27135
27136 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
27137
27138 * coding.c (Ffind_operation_coding_system):
27139 * eval.c (For, Fand): Doc fixes.
27140 Reported by Johan Bockgård.
27141
27142 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27143
27144 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27145
27146 * xterm.h: Declare x_ewmh_activate_frame.
27147
27148 * xterm.c (x_ewmh_activate_frame): New function.
27149 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27150
27151 2007-07-17 Martin Rudalics <rudalics@gmx.at>
27152
27153 * window.c (Fdisplay_buffer): If largest or LRU window is the
27154 only window, split it even if it is not eligible for splitting.
27155 This restores the original behavior broken by the 2007-07-15
27156 change.
27157
27158 2007-07-17 Glenn Morris <rgm@gnu.org>
27159
27160 * abbrev.c (abbrev_check_chars): New function.
27161 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27162 Call abbrev_check_chars to check abbrev characters are word
27163 constituents. Doc fix.
27164
27165 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27166
27167 * process.c (Fstart_process, Fmake_network_process)
27168 (read_process_output): Fix up last changes.
27169
27170 2007-07-16 Eli Zaretskii <eliz@gnu.org>
27171
27172 * makefile.w32-in (clean): Don't delete *~.
27173
27174 2007-07-16 Andreas Schwab <schwab@suse.de>
27175
27176 * window.c (Fdisplay_buffer): Use NILP.
27177 (Fset_window_scroll_bars): Likewise.
27178
27179 2007-07-15 Martin Rudalics <rudalics@gmx.at>
27180
27181 * window.c (window_min_size_2): New function.
27182 (window_min_size_1, size_window, Fdisplay_buffer)
27183 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27184 windows without mode- or header-lines when window-min-height is
27185 too small.
27186 (size_window): Reset nodelete_p after testing it, following an
27187 earlier note by Kim F. Storm.
27188 (display_buffer): Do not set split_height_threshold to twice the
27189 value of window_min_height to avoid changing the value of a
27190 customizable variable. Rather explicitly check whether the
27191 height of the window that shall be splitted is at least as large
27192 as split_height_threshold.
27193 (Fwindow_full_width_p): New defun.
27194 (syms_of_window): Defsubr it.
27195
27196 * window.h: Add EXFUN for Fwindow_full_width_p.
27197
27198 2007-07-14 Jason Rumney <jasonr@gnu.org>
27199
27200 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27201
27202 2007-07-14 Richard Stallman <rms@gnu.org>
27203
27204 * eval.c (maybe_call_debugger): New function.
27205 (find_handler_clause): Use maybe_call_debugger.
27206 Call it when the handler says `debug'.
27207 Eliminate DEBUGGER_VALUE_PTR.
27208 (Fsignal): Eliminate debugger_value.
27209 (Qdebug): New variable.
27210 (syms_of_eval): Initialize it.
27211
27212 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
27213
27214 * eval.c (Fprogn):
27215 * keyboard.c (Ftrack_mouse):
27216 * print.c (Fwith_output_to_temp_buffer):
27217 * window.c (Fsave_window_excursion): Doc fix.
27218
27219 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27220
27221 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27222
27223 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27224
27225 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27226 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27227 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27228 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27229 Remove unused encoding_carryover.
27230 * process.c: Adjust all functions accordingly.
27231
27232 2007-07-12 Richard Stallman <rms@gnu.org>
27233
27234 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27235
27236 2007-07-11 Jason Rumney <jasonr@gnu.org>
27237
27238 * makefile.w32-in (LIBS): Include OLE32.
27239
27240 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27241 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27242
27243 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27244
27245 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27246 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27247 from a Lisp_Object into a bare pointer.
27248 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27249 Adjust the code correspondingly.
27250
27251 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27252
27253 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27254 (term_show_mouse_face): Remove unused var `j'.
27255 (handle_one_term_event): Remove unused vars `i' and `j'.
27256 Don't cast return value of ttyname since it's not necessary.
27257
27258 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27259
27260 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27261 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27262
27263 * fns.c (map_char_table): Use an array of int for `indices' rather than
27264 an array of Lisp_Objects (which are only ever integers anyway).
27265 (Fmap_char_table): Update caller.
27266 * lisp.h: Update prototype.
27267 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27268 * fontset.c (Ffontset_info):
27269 * casetab.c (set_case_table): Update callers.
27270
27271 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27272
27273 * keymap.c (struct accessible_keymaps_data)
27274 (struct where_is_internal_data): New structures.
27275 (accessible_keymaps_1, where_is_internal_1): Use them to change
27276 interface to adhere to the one used by map_keymap.
27277 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27278 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27279
27280 * keymap.h (map_keymap_function_t): More informative prototype.
27281
27282 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27283
27284 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27285 (looking_at_1): Don't change search_regs and last_thing_searched
27286 if `inhibit-changing-match-data' is non-nil.
27287 (string_match_1, search_buffer, set_search_regs): Likewise.
27288 (syms_of_search): Add Lisp level definition for
27289 `inhibit-changing-match-data' and set it to nil.
27290 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27291 start and end of the match, instead of using values in search_regs.
27292
27293 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27294
27295 * minibuf.c (Fcompleting_read): New value `confirm-only'
27296 for `require-match'.
27297
27298 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27299
27300 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27301 part of the 2007-06-27 change to syms_of_fileio.
27302
27303 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27304
27305 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27306 Check WINDOWP before using XWINDOW. Consolidate return statements.
27307
27308 2007-06-27 Richard Stallman <rms@gnu.org>
27309
27310 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27311
27312 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
27313
27314 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27315
27316 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27317
27318 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27319 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27320 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27321 (_free_internal, memalign): Use them.
27322 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27323 Initialize to PTHREAD_MUTEX_INITIALIZER.
27324 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27325 (morecore_nolock): Rename from morecore. All uses changed.
27326 Use only nolock versions of internal allocation functions.
27327 (_malloc_internal_nolock, _realloc_internal_nolock)
27328 (_free_internal_nolock): New functions created from
27329 _malloc_internal, _realloc_internal, and _free_internal.
27330 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27331 Copy hook value to automatic variable before its use.
27332 (memalign): Copy hook value to automatic variable before its use.
27333
27334 2007-06-26 Kenichi Handa <handa@m17n.org>
27335
27336 * coding.c (Ffind_operation_coding_system): Docstring improved.
27337 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27338
27339 2007-06-25 David Kastrup <dak@gnu.org>
27340
27341 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27342 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27343 cater for additional parameter.
27344
27345 * keymap.h: Adjust number of parameters to `current-active-maps'.
27346
27347 * doc.c (Fsubstitute_command_keys): Adjust call of
27348 `current-active-maps'.
27349
27350 2007-06-25 David Kastrup <dak@gnu.org>
27351
27352 * callint.c (Fcall_interactively): Make the parsing of interactive
27353 specs somewhat more readable.
27354
27355 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27356
27357 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27358 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27359 if extended background has already been filled.
27360
27361 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27362
27363 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27364 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27365
27366 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27367 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27368 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27369 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27370 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27371 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27372 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27373 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27374 Run timers during dialog popup.
27375 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27376
27377 2007-06-21 Jason Rumney <jasonr@gnu.org>
27378
27379 * image.c (convert_mono_to_color_image): Swap fore and background.
27380
27381 2007-06-20 Jason Rumney <jasonr@gnu.org>
27382
27383 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27384 (w32_free_bdf_font): Unmap memory not handle.
27385
27386 2007-06-20 Sam Steingold <sds@gnu.org>
27387
27388 * gmalloc.c (__morecore): Fix the declaration to comply with the
27389 definition.
27390
27391 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
27392
27393 * w32term.c (w32_delete_display): Remove leftover declaration.
27394 (w32_define_cursor, w32_initialize): Make static.
27395
27396 * w32.c (_wsa_errlist): Fix typo in error message.
27397 (init_environment): Ignore any environment variable from the
27398 registry having a null value.
27399
27400 2007-06-20 Glenn Morris <rgm@gnu.org>
27401
27402 * Makefile.in (LIBGIF): Default to -lgif.
27403
27404 2007-06-17 Jason Rumney <jasonr@gnu.org>
27405
27406 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27407 unicode strings.
27408
27409 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
27410
27411 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27412 Fix typo in docstring.
27413
27414 2007-06-16 Eli Zaretskii <eliz@gnu.org>
27415
27416 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27417 and their keybindings.
27418
27419 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
27420
27421 * composite.c (update_compositions): Fix last fix.
27422
27423 2007-06-14 Jason Rumney <jasonr@gnu.org>
27424
27425 * w32.c (get_process_times_fn): New function pointer.
27426 (globals_of_w32): Intialize it if present in kernel32.dll.
27427 (w32_get_internal_run_time): New function.
27428
27429 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27430
27431 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27432
27433 * composite.c (update_compositions): Check the validness of
27434 compositions.
27435
27436 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27437
27438 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27439 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27440
27441 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27442 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27443
27444 * macgui.h (USE_MAC_TOOLBAR): New define.
27445
27446 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27447 Return immediately unless popup is activated.
27448
27449 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27450 background to scroll bar gap.
27451 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27452 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27453 scroll bars on frame edge. Check fringe background extension.
27454 Don't clear extended fringe background area.
27455 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27456 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27457 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27458 [USE_MAC_TOOLBAR]: New macros.
27459 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27460 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27461 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27462 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27463 [USE_MAC_TOOLBAR]: New functions.
27464 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27465 manually if previous repositioning has failed.
27466 (mac_handle_keyboard_event): Use precomputed event kind.
27467 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27468 as tool bar item click. Handle mouse movement over tool bar items.
27469
27470 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27471 toolbar_win_gravity.
27472 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27473 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27474 Add externs.
27475
27476 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27477 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27478
27479 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
27480
27481 * image.c (search_image_cache): Remove unused variable.
27482
27483 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
27484
27485 * xfns.c, xmenu.c: Link to xaw3d if available.
27486
27487 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27488
27489 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27490 frame_foreground and frame_background.
27491
27492 * image.c (lookup_image): Save frame foreground and background colors.
27493 (search_image_cache): Check if saved and current frame colors match.
27494
27495 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27496
27497 * regex.c (regex_compile): Remove the `regnum' counter.
27498 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27499
27500 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27501
27502 * term.c: Include intervals.h to declare Fget_text_property.
27503
27504 2007-06-10 Jason Rumney <jasonr@gnu.org>
27505
27506 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27507
27508 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
27509
27510 * callint.c (Fcall_interactively):
27511 * editfns.c (Fdelete_and_extract_region):
27512 * fileio.c (Fread_file_name):
27513 * fns.c (Fmapconcat):
27514 * keyboard.c (cmd_error_internal):
27515 * keymap.c (Fkey_description):
27516 * lread.c (openp):
27517 * minibuf.c (read_minibuf):
27518 * search.c (wordify):
27519 * sunfns.c (sel_read):
27520 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27521 * xfns.c (x_default_scroll_bar_color_parameter):
27522 * xmenu.c (menu_help_callback):
27523 * xselect.c (Fx_get_atom_name):
27524 * xterm.c (x_term_init): Use empty_unibyte_string.
27525
27526 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27527
27528 * alloc.c (init_strings): Initialize canonical empty strings.
27529 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27530 canonical empty string when the requested size is 0.
27531
27532 * emacs.c (empty_unibyte_string): Rename from empty_string.
27533 (empty_multibyte_string): New canonical empty string.
27534 (syms_of_emacs): Don't initialize empty_string.
27535
27536 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27537 string, if appropriate.
27538 (empty_unibyte_string, empty_multibyte_string): New externs.
27539 (empty_string): Remove extern.
27540
27541 * lread.c (syms_of_lread): Use empty_unibyte_string.
27542
27543 2007-06-07 Jason Rumney <jasonr@gnu.org>
27544
27545 * s/ms-w32.h: Don't define HAVE_TZNAME.
27546
27547 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27548
27549 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27550
27551 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27552
27553 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27554 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27555
27556 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27557 Don't call next handler.
27558 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27559 Remove argument. Install handler to application.
27560 (set_frame_menubar): Don't change deep_p.
27561 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27562 FRAME_OUTER_TO_INNER_DIFF_Y.
27563 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27564 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27565 [HAVE_DIALOGS]: New macros.
27566 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27567 Use them.
27568 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27569
27570 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27571 init_service_handler. All callers changed. Return OSStatus value.
27572
27573 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27574 All callers changed so as not to call SetPortWindowPort.
27575 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27576 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27577 mac_draw_string_common.
27578 (mac_draw_image_string_qd): Likewise.
27579 (mac_draw_string_common): Use them. Add INLINE.
27580 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27581 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27582 GetGlobalMouse.
27583 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27584 and FRAME_OUTER_TO_INNER_DIFF_Y.
27585 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27586 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27587 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27588 repositioning window to mac_handle_window_event.
27589 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27590 saving window location to mac_handle_window_event
27591 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27592 (install_menu_target_item_handler): Remove argument in extern.
27593 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27594 Also accept command events.
27595 (do_keystroke): New function created from XTread_socket.
27596 (init_command_handler): Remove functions.
27597 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27598 and save window location by kEventWindowShowing and kEventWindowHiding
27599 handlers here. Don't call next handler for window state change and
27600 focus events.
27601 (mac_handle_application_event, mac_handle_keyboard_event)
27602 [TARGET_API_MAC_CARBON]: New functions.
27603 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27604 kEventWindowShowing and kEventWindowHiding events. Move installation
27605 of mouse, font, text input and menu target item handlers to
27606 install_application_handler.
27607 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27608 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27609 New function.
27610 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27611 Register it.
27612 (XTread_socket) [TARGET_API_MAC_CARBON]:
27613 Consolidate SendEventToEventTarget calls.
27614 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27615 Move application activation handler to mac_handle_application_event.
27616 Move keyboard handler to mac_handle_keyboard_event.
27617 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27618 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27619 init_command_handler. Call install_application_handler.
27620
27621 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27622 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27623
27624 2007-06-07 Glenn Morris <rgm@gnu.org>
27625
27626 * emacs.c (main): Use `emacs-copyright' in --version output.
27627
27628 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
27629
27630 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27631
27632 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27633
27634 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27635
27636 * macgui.h: Replace WindowPtr with WindowRef.
27637
27638 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27639 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27640 Replace ControlHandle with ControlRef.
27641 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27642
27643 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27644 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27645 Replace ControlHandle with ControlRef.
27646 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27647 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27648
27649 * macterm.h (struct scroll_bar): Rename member control_handle_low
27650 and control_handle_high to control_ref_low and control_ref_high.
27651 All uses changed.
27652 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27653 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27654 respectively. All uses changed.
27655 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27656 (install_window_handler, remove_window_handler): Replace WindowPtr
27657 with WindowRef in externs.
27658
27659 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
27660
27661 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27662
27663 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
27664
27665 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27666
27667 * frame.c (Fmouse_position, Fmouse_pixel_position):
27668 Condition on HAVE_GPM too.
27669
27670 * term.c (term_mouse_highlight): Remove unused variables.
27671 (Fterm_open_connection): Set gpm_zerobased to 1.
27672 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27673 Use zero based co-ordinates.
27674 (handle_one_term_event): Report a drag as mouse movement too.
27675
27676 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27677
27678 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
27679
27680 * image.c (search_image_cache): New function. Require background
27681 color match if background color is unspecified in the image spec.
27682 (uncache_image, lookup_image): Use it.
27683
27684 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
27685
27686 * window.c (Fshrink_window): Reflow docstring.
27687
27688 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
27689
27690 * Version 22.1 released.
27691
27692 2007-06-01 Richard Stallman <rms@gnu.org>
27693
27694 * xfns.c (x_encode_text): Add GCPRO.
27695
27696 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27697
27698 * xfns.c (x_set_name_internal): Save encoded name before
27699 x_encode_text in case string data is relocated.
27700
27701 2007-05-31 Richard Stallman <rms@gnu.org>
27702
27703 * buffer.c (syms_of_buffer): Doc fix.
27704
27705 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
27706
27707 * sysdep.c (init_sys_modes): Add rather than replace with
27708 O_NONBLOCK.
27709
27710 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27711 term_mouse_moveto.
27712
27713 * termhooks.h (term_mouse_moveto): New extern.
27714
27715 * term.c (mouse_face_window): Rename...
27716 (Qmouse_face_window): ...to this.
27717 (term_show_mouse_face, term_clear_mouse_face)
27718 (term_mouse_highlight): Use Qmouse_face_window.
27719 (term_mouse_moveto): New function.
27720 (term_mouse_position): Make it work.
27721 (syms_of_term): Uncomment assignment to mouse_position_hook.
27722 Staticpro Qmouse_face_window.
27723
27724 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27725
27726 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27727 around current_column call.
27728
27729 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27730
27731 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27732 * xdisp.c (next_element_from_buffer):
27733 * window.c (delete_window):
27734 * term.c (term_mouse_highlight):
27735 * msdos.c (getdefdir):
27736 * macterm.c (mac_create_bitmap_from_bitmap_data)
27737 (init_font_name_table):
27738 * fns.c (Fsxhash):
27739 * data.c (Fmake_local_variable):
27740 * ccl.c (ccl_driver): Likewise.
27741
27742 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27743
27744 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27745 Call mac_wakeup_from_rne on window size change.
27746
27747 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
27748
27749 * image.c (uncache_image): Fix typo.
27750
27751 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27752
27753 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27754
27755 2007-05-22 Richard Stallman <rms@gnu.org>
27756
27757 * xterm.c (x_connection_closed): Remove NO_RETURN.
27758
27759 2007-05-22 Martin Rudalics <rudalics@gmx.at>
27760
27761 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27762
27763 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
27764
27765 * image.c (uncache_image): New function.
27766 (Fimage_refresh): New function.
27767
27768 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27769
27770 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27771
27772 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27773
27774 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27775 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27776
27777 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27778
27779 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27780 conditional on [HAVE_GPM_H].
27781
27782 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27783
27784 * syntax.c (skip_chars): Update syntax-table only after we checked that
27785 the new location is valid.
27786
27787 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27788
27789 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27790 mac_get_window_bounds.
27791
27792 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27793
27794 * Makefile.in (LIBGPM): Allow it to be set from configure.
27795 If set then link Emacs with it.
27796
27797 * config.in: Regenerate.
27798
27799 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27800 New externs.
27801
27802 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27803 Include gpm.h.
27804 (handle_one_term_event, term_gpm): New externs.
27805
27806 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27807 and allow it to be interrupted by SIGIO.
27808
27809 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27810 (wait_reading_process_output): Wait on gpm_fd too.
27811 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27812 (add_gpm_wait_descriptor_called_flag): New variable.
27813 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27814
27815 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27816 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27817 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27818 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27819 (make_lispy_event): Add case GPM_CLICK_EVENT.
27820 (read_avail_input): Handle mouse input.
27821
27822 * term.c (write_glyphs_with_face): New function.
27823 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27824 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27825 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27826 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27827 (last_mouse_x, last_mouse_y): New variables.
27828 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27829 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27830 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27831 (Fterm_close_connection): New functions.
27832 (term_init): Initialise mouse_face_window.
27833
27834 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
27835
27836 * xdisp.c (redisplay_window): If first window line is a
27837 continuation line, recompute the new window start instead of
27838 recentering.
27839
27840 2007-05-18 Glenn Morris <rgm@gnu.org>
27841
27842 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27843 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27844
27845 2007-05-17 Glenn Morris <rgm@gnu.org>
27846
27847 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27848
27849 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27850
27851 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27852 dead key repeat and up events.
27853
27854 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
27855
27856 * image.c (pbm_load): Check image size for monochrome pbm.
27857
27858 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
27859
27860 * xterm.c (XTread_socket): Revert last change.
27861
27862 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
27863
27864 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27865
27866 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27867
27868 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27869
27870 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27871 mixup (YAILOM).
27872
27873 2007-05-07 Andreas Schwab <schwab@suse.de>
27874
27875 * keymap.c (Flookup_key): Fix typo in last change.
27876
27877 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27878
27879 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27880 mapping for unibyte strings.
27881
27882 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27883
27884 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27885 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27886
27887 2007-04-29 Richard Stallman <rms@gnu.org>
27888
27889 * insdel.c (replace_range): For undo, record insertion first.
27890
27891 2007-04-29 Andreas Schwab <schwab@suse.de>
27892
27893 * lisp.h (VECSIZE): Use OFFSETOF.
27894
27895 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27896
27897 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27898 disabled lines.
27899
27900 2007-04-28 Richard Stallman <rms@gnu.org>
27901
27902 * lread.c (read_escape): In a string, \s is always space.
27903
27904 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27905
27906 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27907
27908 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27909 submenu for menu bar items.
27910
27911 See ChangeLog.10 for earlier changes.
27912
27913 ;; Local Variables:
27914 ;; coding: utf-8
27915 ;; add-log-time-zone-rule: t
27916 ;; End:
27917
27918 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
27919
27920 This file is part of GNU Emacs.
27921
27922 GNU Emacs is free software: you can redistribute it and/or modify
27923 it under the terms of the GNU General Public License as published by
27924 the Free Software Foundation, either version 3 of the License, or
27925 (at your option) any later version.
27926
27927 GNU Emacs is distributed in the hope that it will be useful,
27928 but WITHOUT ANY WARRANTY; without even the implied warranty of
27929 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27930 GNU General Public License for more details.
27931
27932 You should have received a copy of the GNU General Public License
27933 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27934
27935 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40