Fix the MSDOS build broken by 2010-09-26T15:18:47Z!larsi@gnus.org.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
54cc6a83
EZ
12010-10-01 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (set_cursor_from_row): When the row is truncated and
4 point is outside the range of displayed characters, position the
5 cursor inside the scroll margin. (Bug#6349)
6
321401d1
DN
72010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
8
4cacd822
DN
9 Do not include stdlib.h and string.h, config.h does it.
10 * xfont.c:
11 * w32term.c:
12 * w32reg.c:
13 * w32inevt.c:
14 * w32heap.c:
15 * w32console.c:
16 * w16select.c:
17 * unexsol.c:
18 * term.c:
19 * sound.c:
20 * scroll.c (m):
21 * gtkutil.c:
22 * font.c:
23 * filelock.c:
24 * fileio.c:
25 * dosfns.c:
26 * dbusbind.c:
27 * bidi.c:
28 * callproc.c:
29 * process.c:
30 * msdos.c:
31 * charset.c: Do not include stdlib.h and string.h, config.h does it.
32
0781e7ab
DN
33 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
34
9bf58201
DN
35 * process.c: Move #include <pty.h> earlier.
36 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
37 (pty_name): Move definition later.
38
088dcc3e
DN
39 * nsselect.m (syms_of_nsselect):
40 * nsmenu.m (syms_of_nsmenu):
41 * nsfns.m (syms_of_nsfns):
42 * msdos.c (syms_of_msdos):
4cacd822 43
088dcc3e
DN
44 * image.c (syms_of_image):
45 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
46
321401d1
DN
47 * point.h: Remove, unused.
48
73077a9a
EZ
492010-10-01 Eli Zaretskii <eliz@gnu.org>
50
51 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
52 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
53 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
54
55e572ef
DN
552010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
56
57 * xml.c (parse_string): Use const.
58
d4b6d95d
LMI
592010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
60
61 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
62 only override Vprint_level if it isn't already bound, and increase
63 the level to 8 to produce more useful backtraces for bug reports.
64
e4b6db12
DN
652010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
66
67 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
68
1becef93
JB
692010-09-30 Juanma Barranquero <lekktu@gmail.com>
70
71 * w32console.c (vga_stdcolor_name): Remove unused function;
72 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
73
df7fcaff
LMI
742010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
75
bac5cef8
LMI
76 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
77 (Fgnutls_boot): Start the handshake.
78 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
79 (Fgnutls_boot): Remove some debugging messages.
80 Change indentation throughout to use the Emacs style.
81 (emacs_gnutls_handshake): Cast the fds to something that's
82 possibly the expected length.
83 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 84
df7fcaff
LMI
85 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
86
87 * process.c (make_process): Set the gnutls_p field to zero by
88 default.
89 (read_process_output): Always call the gnutls_read function if the
90 stream is a gnutls stream.
91 (send_process): Ditto for writes.
92
93 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
94 or write anything until the state is GNUTLS_STAGE_READY.
95 (Fgnutls_boot): Mark the stream as being a gnutls stream.
96
d585695f
EZ
972010-09-29 Eli Zaretskii <eliz@gnu.org>
98
af7ef32d
EZ
99 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
100 NEUTRAL_DIR.
101 (handle_invisible_prop, iterate_out_of_display_property)
102 (next_element_from_buffer): If bidi_it.first_elt is set, call
103 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
104 (Bug#7128)
105
d585695f
EZ
106 * print.c (print_object): Fix format string and argument types for
107 printing a Lisp_Misc_Marker.
108
109 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
110 (load_overlay_strings, get_overlay_strings_1)
111 (get_overlay_strings, forward_to_next_line_start)
112 (back_to_previous_visible_line_start, reseat, reseat_to_string)
113 (get_next_display_element, next_element_from_string)
114 (next_element_from_c_string, next_element_from_buffer)
115 (move_it_vertically_backward, move_it_by_lines, add_to_log)
116 (message_dolog, message_log_check_duplicate, message2_nolog)
117 (message3, message3_nolog, vmessage, set_message, set_message_1)
118 (hscroll_window_tree, text_outside_line_unchanged_p)
119 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
120 (find_last_unchanged_at_beg_row)
121 (find_first_unchanged_at_end_row, row_containing_pos)
122 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
123 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
124 EMACS_INT for buffer and string positions.
125
126 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
127 (row_containing_pos): Adjust prototype.
128
129 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
130 (message2_nolog, set_message): Adjust prototypes.
131
a6f3211f
SM
1322010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
133
134 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
135 (Fgnutls_boot): Use SDATA.
136 (Fgnutls_handshake): Remove unused var `max_log_level'.
137
e0720500
MA
1382010-09-27 Michael Albinus <michael.albinus@gmx.de>
139
11a5af7c 140 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
141 (Bug#7113)
142
d8a4b27a
J
1432010-09-27 Jan Djärv <jan.h.d@swipnet.se>
144
42d3022b
J
145 * xgselect.c (xg_select): Clear file descriptors not set from
146 rfds and wfds.
147
d8a4b27a
J
148 * process.c (wait_reading_process_output): Add missing FD_CLR
149 for write_mask (must mirror connect_wait_mask).
150
8ed70bf3
LMI
1512010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
152
153 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
154 prefix.
155 (Fgnutls_boot): Use changed process members. Use log level with a
156 function parameter to set it. Bring back Emacs-level debugging
157 messages at log level 1 and 2.
158
159 * process.c (make_process): Initialize gnutls_log_level.
160
161 * process.h: Add gnutls_log_level and rename x509_cred and
162 anon_cred to have the gnutls_ prefix for consistency.
163
164 * gnutls.h (GNUTLS_LOG): Add convenience macro.
165
bedf4aab
JB
1662010-09-27 Juanma Barranquero <lekktu@gmail.com>
167
168 * w32.c (g_b_init_get_sid_identifier_authority)
169 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
170 Remove, not used.
171 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
172 (init_winsock): Remove useless assignment.
173 (open_process_token, get_token_information, lookup_account_sid)
174 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
175 (get_security_descriptor_owner, get_security_descriptor_group)
176 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
177 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
178 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
179 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
180 (unc_volume_file_attributes, convert_from_time_t)
181 (create_toolhelp32_snapshot, process32_first, process32_next)
182 (open_thread_token, impersonate_self, revert_to_self)
183 (get_process_memory_info, get_process_working_set_size)
184 (global_memory_status, global_memory_status_ex, socket_to_fd)
185 (shutdown_handler): Make static.
186
08609ffd
MA
1872010-09-27 Michael Albinus <michael.albinus@gmx.de>
188
189 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
190 (xd_pending_messages): Functions removed.
191 (xd_read_queued_messages): Add parameters fd, *data, for_read in
192 order to be compatible with add_read_fd. Determine bus from data,
193 and call xd_read_message just for this bus.
194 (xd_add_watch): Use xd_read_queued_messages as callback function.
195 Add data.
196
197 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
198
d2e9d0bb
LMI
1992010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
200
201 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 202 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 203
4be9765d
KH
2042010-09-27 Kenichi Handa <handa@m17n.org>
205
206 These changes are to remove restriction on the number of glyphs in
207 one composition.
208
209 * dispextern.h (struct glyph): Change the member "slice" to union.
210 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
211 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
212
213 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
214 instead of glyph->slice.
215 (marginal_area_string): Likewise.
216
217 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
218 glyph->u.cmp.
219 (append_composite_glyph): Likewise.
220
221 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
222 glyph->u.cmp.
223 (fill_gstring_glyph_string, x_get_glyph_overhangs)
224 (append_composite_glyph): Likewise.
225 (fill_image_glyph_string): Use glyph->slice.img instead of
226 glyph->slice.
227 (append_glyph, produce_image_glyph, append_stretch_glyph)
228 (note_mouse_highlight): Likewise.
229
3fad2ad2
J
2302010-09-26 Jan Djärv <jan.h.d@swipnet.se>
231
bf05eed6
J
232 * process.c (add_keyboard_wait_descriptor)
233 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
234 (wait_reading_process_output): Don't pass write_mask to select
235 if SELECT_CANT_DO_WRITE_MASK is defined.
236 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 237
3fad2ad2
J
238 * process.h (add_read_fd, delete_read_fd, add_write_fd)
239 (delete_write_fd): Declare.
240
241 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
242 (write_mask): New variable.
243 (max_input_desc): Renamed from max_keyboard_desc.
244 (fd_callback_info): New variable.
70e31436
JB
245 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
246 New functions.
3fad2ad2
J
247 (Fmake_network_process): FD_SET write_mask.
248 (deactivate_process): FD_CLR write_mask.
249 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
250 check_connect removed. check_write is new. Remove references to gpm.
251 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
252 NON_BLOCKING_CONNECT) instead of Connecting.
253 Loop over file descriptors and call callbacks in fd_callback_info
254 if file descriptor is ready for I/O.
255 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
256 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
257 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
258 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
259 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
260 (init_process): Initialize write_mask and fd_callback_info.
261
262 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
263
264 * dbusbind.c: Include process.h.
265 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
266 (xd_read_message_1): New functions.
70e31436
JB
267 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
268 Handle watch for both read and write.
3fad2ad2
J
269 (Fdbus_init_bus): Also register xd_toggle_watch.
270 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
271 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
272 to dbus_connection_flush.
70e31436 273 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
274 Call xd_read_message_1 until status is COMPLETE.
275
dce4c2ac
DN
2762010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
277
278 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
279 (init_tty): Reorder code to reduce the number of #ifdefs.
280 No code changes.
dce4c2ac 281
8af55556
TZ
2822010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
283
284 * process.h: Set up GnuTLS support.
285
286 * process.c (make_process, Fstart_process)
287 (read_process_output, send_process): Set up GnuTLS support for
288 process input/output file descriptors.
289
290 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
291
292 * gnutls.c: The source code for GnuTLS support in Emacs.
293
294 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
295
296 * config.in: Set up GnuTLS support.
297
298 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
299 (obj, LIBES): Set up GnuTLS support.
300
83e245c4
JB
3012010-09-26 Juanma Barranquero <lekktu@gmail.com>
302
303 * w32.c (get_emacs_configuration_options): Fix previous change.
304
d24ec09a
CY
3052010-09-25 Chong Yidong <cyd@stupidchicken.com>
306
307 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
308 alive before using it (Bug#6977).
309
b7bdc47c
LMI
3102010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
311
a952d5f3
LMI
312 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
313
314 * dispextern.h: EMACS_INT/int fixup.
315
316 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
317 fixup.
318
b7bdc47c
LMI
319 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
320
41118bd3
EZ
3212010-09-25 Eli Zaretskii <eliz@gnu.org>
322
2452438f
EZ
323 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
324 (Fselect_window, window_scroll_pixel_based)
325 (window_scroll_line_based, Frecenter, Fset_window_configuration):
326 Use EMACS_INT for buffer positions.
327
328 * textprop.c (validate_interval_range, interval_of)
329 (property_change_between_p, Fadd_text_properties)
330 (set_text_properties_1, Fremove_text_properties)
331 (Fremove_list_of_text_properties, Ftext_property_any)
332 (Ftext_property_not_all, copy_text_properties)
333 (text_property_list, extend_property_ranges)
334 (verify_interval_modification): Use EMACS_INT for buffer
335 positions.
336
f877c546
EZ
337 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
338 for buffer positions.
339
340 * process.c (read_process_output, send_process)
341 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
342 and string positions and size.
343
da43f021
EZ
344 * print.c (print_object, print_string, strout): Use EMACS_INT for
345 string indices.
346
347 * minibuf.c (string_to_object): Use EMACS_INT for string position
348 and size.
349
350 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
351
352 * lread.c <read_from_string_index, read_from_string_index_byte>
353 <read_from_string_limit, readchar_count>: Define EMACS_INT.
354 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
355 buffer positions and string length.
356
41118bd3
EZ
357 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
358 EMACS_INT.
359 (echo_truncate, adjust_point_for_property, read_char)
360 (gen_help_event, make_lispy_event, modify_event_symbol)
361 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
362 for buffer positions and string length.
363
364 * keyboard.h (gen_help_event): Adjust prototype.
365
366 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
367
368 * commands.h <last_point_position>: Declare EMACS_INT.
369
370 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
371 (truncate_echo_area): Accept EMACS_INT argument.
372
373 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
374
375 * lisp.h (truncate_echo_area): Adjust prototype.
376
377 * composite.c (composition_adjust_point): Return EMACS_INT.
378
379 * composite.h (composition_adjust_point): Adjust prototype.
380
ba3033ee
JB
3812010-09-25 Juanma Barranquero <lekktu@gmail.com>
382
383 * process.c (Fmake_network_process): When arg :host is 'local,
384 use address 127.0.0.1, not name "localhost". (Bug#6781)
385
4f3a2f8d
EZ
3862010-09-24 Eli Zaretskii <eliz@gnu.org>
387
5816888b
EZ
388 * indent.c (Fcurrent_indentation, indented_beyond_p)
389 (compute_motion): Use EMACS_INT for buffer position variables.
390
391 * lisp.h (indented_beyond_p): Adjust prototype.
392
393 * buffer.c (overlay_strings): Return EMACS_INT.
394
395 * buffer.h (overlay_strings): Adjust prototype.
396
397 * region-cache.c (pp_cache): Adjust format to arguments.
398
399 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
400 (call_debugger): Use EMACS_INT for specpdl_size related variables.
401 (verror): Use EMACS_INT for size of allocated buffer.
402
ace1712c
EZ
403 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
404 positions.
405
406 * xdisp.c (redisplay_internal, try_window_id)
407 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
408 EMACS_INT for buffer positions.
409
f5276b75 410 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
411
412 * dispnew.c (increment_matrix_positions)
413 (increment_row_positions, copy_glyph_row_contents)
414 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
415 positions.
416
417 * dispextern.h (mode_line_string, marginal_area_string)
418 (increment_matrix_positions, increment_row_positions): Adjust
419 prototypes.
420
421 * data.c (Faref, Faset): Use EMACS_INT for string length and
422 positions.
423
424 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
425 characters to insert.
426
427 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
428 position and size.
429
4f3a2f8d
EZ
430 * syntax.c (scan_words, update_syntax_table)
431 (prev_char_comend_first, back_comment, skip_chars)
432 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
433 EMACS_INT for buffer and string positions.
434
435 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
436
437 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
438 positions.
439
db063399
LMI
4402010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
441
f0812d35
LMI
442 * scroll.c (calculate_scrolling, line_ins_del)
443 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
444 conversion.
445
f5c7fc27
LMI
446 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
447 (region_cache_backward, region_cache_forward)
448 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
449 conversion.
450
db063399
LMI
451 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
452
453 * eval.c (verror): Fix EMACS_INT/int conversion.
454
07914cd0 455 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
456 (print_preprocess, print_check_string_charset_prop)
457 (print_object): Fix EMACS_INT/int conversion.
458
459 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
460
e6d4aefa
EZ
4612010-09-24 Eli Zaretskii <eliz@gnu.org>
462
69481da7
EZ
463 * callproc.c (Fcall_process): Use EMACS_INT for count of
464 characters read from the subprocess.
465
61bfec98
EZ
466 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
467 positions.
468 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
469 positions.
470
145582a0
EZ
471 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
472 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
473 length.
474 (advance_to_char_boundary, Fset_buffer_multibyte)
475 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
476 (overlay_touches_p, record_overlay_string, overlay_strings)
477 (recenter_overlay_lists, fix_start_end_in_overlays)
478 (modify_overlay, Fmove_overlay, report_overlay_modification)
479 (evaporate_overlays): Use EMACS_INT for buffer positions.
480
481 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
482 prototypes.
483
446470a9
EZ
484 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
485 positions.
486
e6d4aefa
EZ
487 * fns.c (Fcompare_strings, Fstring_lessp, concat)
488 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
489 (Fsubstring_no_properties, substring_both, Ffillarray)
490 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
491 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
492 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
493 (Fmd5): Use EMACS_INT for buffer and string positions and length
494 variables and arguments.
495
496 * lisp.h (substring_both): Adjust prototype.
497
eb652396
JB
4982010-09-24 Juanma Barranquero <lekktu@gmail.com>
499
500 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
501 * w32fns.c (clipboard_sequence_fn): Don't declare.
502 (globals_of_w32fns): Don't initialize it.
503
266a86bd 5042010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
505
506 * syntax.c (back_comment): Detect the case where a 1-char comment
507 starter is also the 2nd char of a 2-char comment ender.
508
266a86bd 5092010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
510
511 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
512
40283062
LMI
5132010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
514
db063399
LMI
515 * eval.c (verror): EMACS_INT/int cleanup.
516
faf8b5bc
LMI
517 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
518 unwind_protect more than 2GB worth of functions.
519
520 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
521
40283062
LMI
522 * lisp.h: Have oblookup take EMACS_INT to allow interning big
523 string and avoid compiler warnings.
524 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
525 all users.
526
527 * lread.c (oblookup): EMACS_INT/int cleanup.
528
529 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
530
fe3537c3
EZ
5312010-09-23 Eli Zaretskii <eliz@gnu.org>
532
533 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
534
535 * lisp.h (clip_to_bounds): Adjust prototype.
536
537 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
538
0350982f
LMI
5392010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
540
84c9ce05
LMI
541 * lisp.h: doprnt.c EMACS_INT/int cleanup.
542
543 * doprnt.c (doprnt): EMACS_INT/int cleanup.
544
545 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
546 cleanup.
547
0350982f
LMI
548 * lisp.h: Change the definition of all marker.c functions that
549 take and return buffer stuff to be EMACS_INT instead of int.
550
551 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
552 (buf_charpos_to_bytepos, bytepos_to_charpos)
553 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
554 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
555 for all buffer positions.
556
c50bd0d2
CY
5572010-09-23 Chong Yidong <cyd@stupidchicken.com>
558
559 * intervals.c (traverse_intervals, rotate_right, rotate_left)
560 (split_interval_right, find_interval, next_interval)
561 (delete_node, delete_interval, interval_deletion_adjustment)
562 (adjust_intervals_for_deletion, merge_interval_right)
563 (merge_interval_left, graft_intervals_into_buffer)
564 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
565
566 * intervals.h (traverse_intervals): Update prototype.
567
14162469
EZ
5682010-09-23 Eli Zaretskii <eliz@gnu.org>
569
c098fdb8
EZ
570 * indent.c (compute_motion): Use EMACS_INT for arguments to
571 region_cache_forward.
572
573 * region-cache.c (struct boundary, struct region_cache): Use
574 EMACS_INT for positions.
575 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
576 (delete_cache_boundaries, set_cache_region)
577 (invalidate_region_cache, know_region_cache)
578 (region_cache_forward, region_cache_backward, pp_cache): Use
579 EMACS_INT for buffer positions.
580
581 * region-cache.h (know_region_cache, invalidate_region_cache)
582 (region_cache_forward, region_cache_backward): Adjust prototypes.
583
584 * search.c (string_match_1, fast_c_string_match_ignore_case)
585 (looking_at_1, scan_buffer, scan_newline)
586 (find_next_newline_no_quit, find_before_next_newline)
587 (search_command, trivial_regexp_p, search_buffer, simple_search)
588 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
589 and string positions and length.
590
caefdbe7
EZ
591 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
592 (find_before_next_newline): Adjust prototypes.
c098fdb8 593
29cdc13e
EZ
594 * editfns.c (transpose_markers, update_buffer_properties)
595 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
596 (get_pos_property, Fconstrain_to_field)
597 (Fline_beginning_position, Fline_end_position, Fprevious_char)
598 (Fchar_after, Fchar_before, Finsert_char)
599 (Finsert_buffer_substring, Fcompare_buffer_substrings)
600 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
601 EMACS_INT for buffer and string position variables.
c098fdb8 602 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
603
604 * lisp.h (clip_to_bounds): Adjust prototype.
605
e79123aa
EZ
606 * intervals.c (traverse_intervals, rotate_right, rotate_left)
607 (balance_an_interval, split_interval_right, split_interval_left)
608 (find_interval, next_interval, update_interval)
609 (adjust_intervals_for_insertion, delete_node, delete_interval)
610 (interval_deletion_adjustment, adjust_intervals_for_deletion)
611 (offset_intervals, merge_interval_right, merge_interval_left)
612 (graft_intervals_into_buffer, adjust_for_invis_intang)
613 (move_if_not_intangible, get_local_map, copy_intervals)
614 (copy_intervals_to_string, compare_string_intervals)
615 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 616 and for interval tree size.
e79123aa
EZ
617
618 * intervals.h (traverse_intervals, split_interval_right)
619 (split_interval_left, find_interval, offset_intervals)
620 (graft_intervals_into_buffer, copy_intervals)
621 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
622 (update_interval): Adjust prototypes.
623
579c18d0
EZ
624 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
625 Use EMACS_INT for buffer position variables and arguments.
626
627 * composite.c (get_composition_id, find_composition)
628 (run_composition_function, compose_text)
629 (composition_gstring_width, autocmp_chars)
630 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
631 for buffer positions and string length variables and arguments.
632
633 * composite.h (get_composition_id, find_composition, compose_text)
634 (composition_gstring_width): Adjust prototypes.
635
636 * editfns.c (Fformat): Use EMACS_INT for string size variables.
637
638 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
639 EMACS_INT for string positions.
640
641 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
642 position arguments.
643
644 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
645
646 * character.c (parse_str_as_multibyte, str_as_multibyte)
647 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
648 (string_count_byte8, string_escape_byte8, c_string_width)
649 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
650 EMACS_INT for string length variables and arguments.
14162469
EZ
651
652 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
653 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
654 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
655 prototypes.
656
579c18d0
EZ
657 * font.c (font_intern_prop): Use EMACS_INT for string length
658 variables.
659
660 * font.c (font_intern_prop): Use EMACS_INT for string length
661 variables.
662
14162469
EZ
663 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
664 variables.
665
666 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
667 (Fmake_string): Protect against too large strings.
668 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
669 (live_misc_p): Use ptrdiff_t instead of int for pointer
670 differences.
671 (string_bytes, check_sblock, check_string_free_list)
672 (allocate_string_data, compact_small_strings, Fmake_string)
673 (Fmake_bool_vector, make_string, make_unibyte_string)
674 (make_multibyte_string, make_string_from_bytes)
675 (make_specified_string_string, Fmake_list, Fmake_vector): Use
676 EMACS_INT for string length variables and arguments.
677 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
678 (Fpurecopy): Use EMACS_INT for string size.
679 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
680 for vector size.
681
682 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
683 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
684 (make_pure_string, string_bytes, check_point_in_composition):
685 Adjust prototypes.
14162469 686
c8a66ab8
EZ
6872010-09-22 Eli Zaretskii <eliz@gnu.org>
688
689 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
690 (check_translation): Use EMACS_INT for buffer positions and
691 length.
692
693 * undo.c (record_marker_adjustment, record_delete)
694 (record_change, record_point, record_insert)
695 (record_property_change, Fprimitive_undo): Use EMACS_INT for
696 buffer positions.
697
698 * lisp.h (record_marker_adjustment, record_delete)
699 (record_change, record_point, record_insert)
700 (record_property_change, Fprimitive_undo): Adjust prototypes.
701
38c54d9d
JB
7022010-09-22 Juanma Barranquero <lekktu@gmail.com>
703 Eli Zaretskii <eliz@gnu.org>
704
705 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
706
413d18e7
EZ
7072010-09-22 Eli Zaretskii <eliz@gnu.org>
708
709 * minibuf.c (Fminibuffer_contents)
710 (Fminibuffer_contents_no_properties)
711 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
712 positions.
713
714 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
715 mark.
716
717 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
718 (allocate_string_data): Accept EMACS_INT for string length.
719
720 * editfns.c (Ffield_string, Ffield_string_no_properties)
721 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
722 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
723 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
724 (Ffield_end): Use EMACS_INT for buffer positions.
725
726 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
727 point with mark.
728
729 * lisp.h (allocate_string_data, make_uninit_string)
730 (make_uninit_multibyte_string, make_buffer_string)
731 (make_buffer_string_both): Adjust prototypes.
732
4b9832a6
CY
7332010-09-22 Chong Yidong <cyd@stupidchicken.com>
734
735 * xml.c: Switch to GNU indentation.
736 (make_dom): Change parse tree format to match xml.el.
737 (Fxml_parse_html_string_internal): Rename from html-parse-string.
738 (Fxml_parse_string_internal): Rename from xml-parse-string.
739
86282aab
KH
7402010-09-22 Kenichi Handa <handa@m17n.org>
741
742 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
743 only if we are not at a composition.
744 (set_iterator_to_next): Give it->end_charpos to
745 composition_compute_stop_pos.
746 (set_iterator_to_next, next_element_from_buffer): Likewise.
747
748 * dispnew.c (buffer_posn_from_coords): Fix position when the
749 current display element is a grapheme cluster in bidi-reordered
750 region.
751
840b985a
AR
7522010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
753
754 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
755 the regions may overlap.
756
5bc88f4b
JB
7572010-09-21 Juanma Barranquero <lekktu@gmail.com>
758
759 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
760
92bc9a36
DN
7612010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
762
d19e096e
DN
763 * emacs.c: Do not include sys/ioctl.h, not needed.
764
92bc9a36
DN
765 * doprnt.c: Do not include stdlib.h, config.h does it.
766 Move #include before macro definition.
767
15f844ac
DN
7682010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
769
48e24408
DN
770 * Makefile.in (temacs): Link using $(CC) not $(LD).
771 (LD_FIRSTFLAG): Define using autoconf.
772 (LD): Remove.
773
65539506
DN
774 Remove HAVE_TERMIOS definitions.
775 * s/usg5-4-common.h (HAVE_TERMIOS):
776 * s/template.h (HAVE_TERMIOS):
777 * s/gnu-linux.h (HAVE_TERMIOS):
778 * s/darwin.h (HAVE_TERMIOS):
779 * s/cygwin.h (HAVE_TERMIOS):
780 * s/bsd-common.h (HAVE_TERMIOS):
781 * s/aix4-2.h (HAVE_TERMIOS):
782 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
783 defined on all non-MS platforms.
784 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
785
15f844ac
DN
786 * xterm.c (xt_action_hook): Use const.
787
7d701334
JB
7882010-09-20 Juanma Barranquero <lekktu@gmail.com>
789
790 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
791 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
792 (gethostname) [!HAVE_SOCKETS]: Remove.
793 (SOCK_REPLACE_HANDLE): Remove macro.
794 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
795 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
796 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
797 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
798
f3ec267a
EZ
7992010-09-18 Eli Zaretskii <eliz@gnu.org>
800
801 * deps.mk (xml.o): Add dependencies.
802
93acd23d
JB
803 * xdisp.c (Fcurrent_bidi_paragraph_direction):
804 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
805
806 * bidi.c (bidi_paragraph_init): Accept an additional argument
807 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
808 search back until a paragraph with a strong directional character
809 is found, and use that to determine paragraph's base direction.
810
811 * dispextern.h (bidi_paragraph_init): Update prototype.
812
69e847be
EZ
8132010-09-17 Eli Zaretskii <eliz@gnu.org>
814
815 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
816 of w32api >= 3.15. (Bug#6989)
817
283357a7
LMI
8182010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
819
820 * process.c (wait_reading_process_output): Don't message about
821 accept-process-output unless the time limit really is zero.
822
4ddb20d6
SM
8232010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
824
825 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
826 int/Lisp_Object mixup).
827
e24ad6dd
J
8282010-09-17 Jan Djärv <jan.h.d@swipnet.se>
829
830 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
831 not HELP.
832
fb0cf781
J
8332010-09-17 Stephen Berman <stephen.berman@gmx.net>
834
835 * frame.c (Ftool_bar_pixel_width): New function to expose tool
836 bar's pixel width to Lisp (Bug#7048).
837
4ddb20d6
SM
8382010-09-14 Juanma Barranquero <lekktu@gmail.com>
839
840 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 841
318a04c6
J
8422010-09-17 Jan Djärv <jan.h.d@swipnet.se>
843
844 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
845 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
846
78a21772
KH
8472010-09-17 Kenichi Handa <handa@m17n.org>
848
849 * ftfont.c (ftfont_check_otf): Fix previous change.
850
fa3f6039
KH
8512010-09-14 Kenichi Handa <handa@m17n.org>
852
853 * ftfont.c (ftfont_check_otf): Fix the case of checking just
854 existence of GSUB or GPOS.
855
2b5491fa
JB
8562010-09-14 Juanma Barranquero <lekktu@gmail.com>
857
858 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
859
c97c655f
LMI
8602010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
861
2b5491fa 862 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
863 what it does.
864 (parse_string): Return nil when the document can't be parsed.
865
6664fc59 8662010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
867
868 * xterm.c (get_current_vm_state): New function.
869 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
870 want_fullscreen so set_wm_state calls are few (Bug#7013).
871 (x_handle_net_wm_state): Move code to get_current_vm_state and
872 call that function.
873
6664fc59 8742010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
875
876 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
877
6664fc59 8782010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
879
880 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
881 we may use designation or locking-shift.
882
6664fc59 8832010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
884
885 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
886 sequence when the source is multibyte.
887
1da70e99
AS
8882010-09-14 Andreas Schwab <schwab@linux-m68k.org>
889
6664fc59
JB
890 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
891 Don't make first argument optional. Doc fix.
1da70e99 892
26632d8d
LMI
8932010-09-14 Leo <sdl.web@gmail.com> (tiny change)
894
895 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
896 parameters for the doc string.
897
21fa8e37
LMI
8982010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
899
900 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
901
5616cc54
SM
9022010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
903
904 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
905 (syms_of_fns): Don't defsubr Sy_or_n_p.
906 * lisp.h: Don't declare Fy_or_n_p.
907 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
908
381408e2
LMI
9092010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
910
911 * xml.c (Fxml_parse_buffer): New function to parse XML files.
912
9132010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
914
915 * xml.c: New file.
916 (Fhtml_parse_buffer): New function to interface to the libxml2
917 html parsing function.
918
733946e7
JB
9192010-09-05 Juanma Barranquero <lekktu@gmail.com>
920
921 * biditype.h: Regenerate.
922
7574650a
AS
9232010-09-04 Andreas Schwab <schwab@linux-m68k.org>
924
925 * nsimage.m (ns_load_image): Check argument types.
926
927 * image.c: Remove all uses of gcpro.
928 (xpm_load): Check all lisp types.
929 (pbm_load): Likewise.
930 (png_load): Likewise.
931 (jpeg_load): Likewise.
932 (tiff_load): Likewise.
933 (gif_load): Likewise.
934 (imagemagick_load_image): Likewise.
935 (imagemagick_load): Likewise.
936 (svg_load): Likewise.
937 (gs_load): Likewise.
938
6e6b8e25
EZ
9392010-09-04 Eli Zaretskii <eliz@gnu.org>
940
941 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
942 try to reorder grapheme clusters, since LGSTRING should always
943 hold them in the logical order.
944 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
945 return glyph codes in the logical order.
946
dbfe4532
AS
9472010-09-04 Andreas Schwab <schwab@linux-m68k.org>
948
949 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 950 (imagemagick_load_image): Fix type mismatch.
5e5992c2 951 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 952
6d7cc563
JD
9532010-09-02 Jan Djärv <jan.h.d@swipnet.se>
954
955 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
956
957 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
958
959 * xselect.c: Remove declaration of cut-buffer objects and functions.
960 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
961 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
962 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
963 (Fx_rotate_cut_buffers_internal): Remove.
964 (syms_of_xselect): Remove defsubr of above.
965 Remove intern of QCUT_BUFFERn.
966
8f4e9110
SM
9672010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
968
969 * cmds.c (Vblink_paren_function): Remove.
970 (internal_self_insert): Make it insert N chars at a time.
971 Don't call blink-paren-function.
972 (Fself_insert_command): Adjust accordingly.
973 (syms_of_cmds): Don't declare blink-paren-function.
974
d419e1d9
KH
9752010-08-31 Kenichi Handa <handa@m17n.org>
976
977 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
978 characters.
979
980 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
981 (produce_glyphs): Don't set it->char_to_display here.
982 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
983 (produce_special_glyphs): Set temp_it.char_to_display before
984 calling produce_glyphs.
985
986 * xdisp.c (get_next_display_element): Set it->char_to_display
987 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
988 characters.
989 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
990 calling PRODUCE_GLYPHS.
991 (append_space_for_newline): Save and store it->char_to_display.
992 Set it->char_to_display before calling PRODUCE_GLYPHS.
993 (extend_face_to_end_of_line): Set it->char_to_display before
994 calling PRODUCE_GLYPHS.
995 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
996 character to its byte value.
997 (get_char_glyph_code): New function.
998 (produce_stretch_glyph): Set it2.char_to_display too before
999 calling x_produce_glyphs.
1000 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1001 non-ASCII characters. Don't set it->char_to_display here.
1002 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1003 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1004
b819f760
SM
10052010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1006
1007 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1008
07fa68a7
CY
10092010-08-31 Chong Yidong <cyd@stupidchicken.com>
1010
1011 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1012
cd196f12
SM
10132010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1014
1015 * marker.c (Fcopy_marker): Make the first arg optional.
1016
49a752bb
KH
10172010-08-30 Kenichi Handa <handa@m17n.org>
1018
1019 * composite.c (composition_update_it): Fix computing of
1020 cmp_it->width.
1021
769ae9e1
KH
10222010-08-29 Kenichi Handa <handa@m17n.org>
1023
9e69cb05 1024 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1025 corresponding bytes.
9e69cb05 1026
4520b858
J
10272010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1028
1029 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1030
fe50eb41
KH
10312010-08-26 Kenichi Handa <handa@m17n.org>
1032
1033 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1034 on calling composition_compute_stop_pos.
1035
f6aa6ec6
KH
10362010-08-25 Kenichi Handa <handa@m17n.org>
1037
9dfdbc0a
KH
1038 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1039 :otf.
1040
f6aa6ec6
KH
1041 * composite.c (composition_compute_stop_pos): Don't break
1042 composition at PT.
1043 (composition_reseat_it): Likewise. Fix calculation of character
1044 position starting a composition.
1045 (Fcomposition_get_gstring): Don't limit the number of components
1046 for automatic composition.
1047
ff94e32c
KH
10482010-08-25 Kenichi Handa <handa@m17n.org>
1049
1050 * composite.c (composition_compute_stop_pos): In forward search,
1051 pay attention to the possibility that some character after ENDPOS
1052 will be composed with charactrs before ENDPOS.
1053
1c409d0b
CY
10542010-08-24 Chong Yidong <cyd@stupidchicken.com>
1055
1056 * keyboard.c (command_loop_1): Don't clobber primary selection
1057 during handle-switch-frame (Bug#6872).
1058
0c372655
MA
10592010-08-23 Michael Albinus <michael.albinus@gmx.de>
1060
1061 * dbusbind.c: Accept UNIX domain sockets as bus address.
1062 (Fdbus_close_bus): New function.
1063 (Vdbus_registered_buses): New variable.
1064 (xd_initialize): Implement string as bus address.
1065 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1066 (Fdbus_get_unique_name, Fdbus_call_method)
1067 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1068 (Fdbus_method_error_internal, Fdbus_send_signal)
1069 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1070 check. This is done in xd_initialize_bus. Adapt doc string, if
1071 necessary.
1072 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1073 Vdbus_registered_buses.
1074 (Vdbus_registered_objects_table): Create hash.
1075
7133b7ee
JL
10762010-08-22 Juri Linkov <juri@jurta.org>
1077
1078 * keyboard.c (Fexecute_extended_command): Move reading a command name
1079 with `completing-read' to a new Elisp function `read-extended-command'.
1080 Call it to read a command to `function' (bug#5364, bug#5214).
1081
198a7a97
CY
10822010-08-22 Chong Yidong <cyd@stupidchicken.com>
1083
1084 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1085
b0126eac 10862010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1087
1088 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1089 instead of SAFE_ALLOCA.
1090
b0126eac 10912010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1092
1093 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1094 (Bug#6214).
1095
b0126eac 10962010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1097
1098 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1099
b0126eac
CY
11002010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1101
1102 * doc.c (Fsnarf_documentation): Initialize skip_file before
1103 build-files test.
1104
692f3ddc 11052010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1106
692f3ddc
JB
1107 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1108 New definitions.
b0126eac
CY
1109 (HAVE_TERMIO): Remove.
1110
5f2f0bc1
EZ
11112010-08-22 Eli Zaretskii <eliz@gnu.org>
1112
b613941b
EZ
1113 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1114
a583bbef
EZ
1115 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1116 for w32.
1117
1118 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1119 it's done in nt/config.nt.
1120
1121 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1122
5f2f0bc1
EZ
1123 * unexcoff.c (report_error, make_hdr, write_segment)
1124 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1125 Convert argument lists and prototypes to ANSI C.
1126 (make_hdr, write_segment): Remove unused variables.
1127 (unexec): Remove commented-out line. Initialize `new' to shut up
1128 compiler warnings.
1129
a7ebc409
DN
11302010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1131
1132 Simplify termio code.
1133 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1134 HAVE_TERMIO code is obsolete.
1135 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1136 * systty.h: Do not define HAVE_TCATTR.
1137 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1138 Do not define EMACS_HAVE_TTY_PGRP. Only define
1139 EMACS_GET_TTY_PGRP for !DOS_NT.
1140 * sysdep.c: Include sysselect.h unconditionally. Do not include
1141 sys/ioctl.h and termios.h, systty.h does it. Use
1142 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1143 (init_baud_rate): Remove HAVE_TERMIO code.
1144 (child_setup_tty): Remove HAVE_TERMIO code.
1145 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1146 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1147 (new_ltchars, new_tchars): Remove, unused.
1148 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1149 code. Remove special casing for __mips__, it was a no-op. Remove
1150 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1151 (init_sys_modes): Remove HPUX special case.
1152 * process.c: Include stdlib.h unconditionally. Do not include
1153 fcntl.h, systty.h does it. Remove conditional code for
1154 HAVE_SERIAL, it is always true.
1155 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1156 always true when SIGNALS_VIA_CHARACTERS is true.
1157 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1158 !WINDOWSNT means HAVE_TERMIOS.
1159 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1160 conditional, which is true for all HAVE_TERMIOS systems.
1161 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1162 instead of HAVE_TERMIOS.
1163 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1164 EMACS_HAVE_TTY_PGRP.
1165 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1166 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1167 anyway.
1168
40629f17
EZ
11692010-08-21 Eli Zaretskii <eliz@gnu.org>
1170
1171 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1172 mirroring pixel positions.
1173
d931da8c
DN
11742010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1175
b5c76d0c
DN
1176 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1177 write only.
1178 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1179 malloc_sbrk_used, nothing uses them.
1180
74815588
DN
1181 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1182 defined, unconditionally defined in lisp.h.
1183
f5817d1c
DN
1184 * term.c: Do not include <termios.h>, systty.h does it.
1185
d931da8c
DN
1186 * s/unixware.h (HAVE_TCATTR):
1187 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1188 systty.h defines it when HAVE_TERMIOS is defined.
1189
ff2de6d2 11902010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1191
b43c883c 1192 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1193 terminals: add one-character offset for R2L lines.
b43c883c 1194
491a1546
EZ
1195 * emacs.c <emacs_version>: Add a comment regarding
1196 msdos/mainmake.v2's dependency on the syntax of this declaration.
1197
2396cbba
EZ
11982010-08-20 Eli Zaretskii <eliz@gnu.org>
1199
1200 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1201 position for R2L lines by mirroring the pixel position wrt the
1202 text are box. Improve commentary.
1203
7df6150a
AS
12042010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1205
1206 * image.c (imagemagick_clear_image): Remove debugging output.
1207
a2e5caf7
SM
12082010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1209
1210 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1211 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1212 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1213 self-insert-face.
1214 (syms_of_cmds): Initialize the new vars.
1215
20d60baf
JR
12162010-08-19 Jason Rumney <jasonr@gnu.org>
1217
cc477da7
JR
1218 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1219
20d60baf
JR
1220 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1221
2c0ac867
J
12222010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1223
1224 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1225
93352106
EZ
12262010-08-18 Eli Zaretskii <eliz@gnu.org>
1227
1228 * xterm.c (x_draw_bar_cursor):
1229 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1230 R2L, draw the bar cursor on its right rather than on its left.
1231
c785836d
SM
12322010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1233
0193499f
SM
1234 * eval.c (Fdefmacro): Only obey one declaration.
1235
c785836d
SM
1236 * casefiddle.c (casify_region): Setup gl_state.
1237
9cb728a5
J
12382010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1239
1240 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1241
e1e18511
J
12422010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1243
1d77b63e 1244 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1245
64cb6c78
J
12462010-08-18 David De La Harpe Golden <david@harpegolden.net>
1247
1248 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1249 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1250 QPRIMARY => NXPrimaryPboard.
1251 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1252 NXPrimaryPboard => QPRIMARY.
1253 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1254 NXSecondaryPboard = SecondarySelection.
1255 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1256
0c9b8993
GM
12572010-08-18 Joakim Verona <joakim@verona.se>
1258
1259 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1260 defined:
1261 (imagemagick_image_p): New function to test for ImageMagic image.
1262 (imagemagick_load): New function to load ImageMagick image.
1263 (imagemagick_load_image): New function, helper for imagemagick_load.
1264 (imagemagick-types): New function.
1265 (Qimagemagick): New Lisp_object.
1266 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1267
c3554f68
SM
12682010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1269
1270 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1271 is a string.
1272
1ff2e434
J
12732010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1274
1275 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1276 x_set_tool_bar_position handler.
1277
0cc56427
EZ
12782010-08-17 Eli Zaretskii <eliz@gnu.org>
1279
1280 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1281 x_set_tool_bar_position handler, needed to support changes from
1282 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1283
e45a249b
JD
12842010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1285
921242c6
J
1286 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1287 declaration (Bug#6863).
573d150b 1288 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1289
e45a249b
JD
1290 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1291
1292 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1293
7c23dd44
CY
12942010-08-16 Chong Yidong <cyd@stupidchicken.com>
1295
1296 * keyboard.c (command_loop_1): Avoid setting selection twice,
1297 since it's done in deactivate-mark as well.
1298 (Vselect_active_regions): Change default to t. Replace `lazy'
1299 with non-default value `only', meaning only set PRIMARY for
1300 temporarily active regions.
1301
1302 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1303 select-active-regions.
1304
0005830c
J
13052010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1306
1307 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1308 isn't a string.
1309
603dfc72
AS
13102010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1311
1312 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1313
c25ce9d0
J
13142010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1315
c3554f68
SM
1316 * keyboard.c (parse_tool_bar_item): malloc buf.
1317 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1318 new_lbl (Bug#6855).
c25ce9d0 1319
5872c762
EZ
13202010-08-14 Eli Zaretskii <eliz@gnu.org>
1321
b236615c
EZ
1322 * xterm.c (x_draw_stretch_glyph_string):
1323 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1324 the cursor on the right edge of the stretch glyph.
1325
c3554f68
SM
1326 * xdisp.c (window_box_right_offset, window_box_right):
1327 Fix commentary.
b236615c 1328
5872c762
EZ
1329 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1330 direction when point is inside a run of whitespace characters.
1331
1332 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1333
e66f9a1b
JR
13342010-08-14 Jason Rumney <jasonr@gnu.org>
1335
1336 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1337
79d6f59e
CY
13382010-08-14 Chong Yidong <cyd@stupidchicken.com>
1339
1340 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1341
1c9b4129
JR
13422010-08-13 Jason Rumney <jasonr@gnu.org>
1343
1344 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1345 (MessageBoxW_Proc): New function typedef.
1346 (unicode-message-box): New function pointer.
1347 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1348
2b4e6277
J
13492010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1350
1351 * frame.h (Qtool_bar_position): Declare.
1352
1353 * xfns.c (Fx_create_frame): Call x_default_parameter for
1354 Qtool_bar_position.
1355
94c97d85
EZ
13562010-08-13 Eli Zaretskii <eliz@gnu.org>
1357
8ee81892
EZ
1358 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1359 (report_error, report_error_1): Ditto.
1360 (write_segment): Remove "#if 0" unused code.
1361 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1362 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1363 (start_of_text): Remove unused function (was used only if NO_REMAP
1364 was NOT defined).
1365
891ef8f7
EZ
1366 * msdos.c (IT_set_face): Fix format string to match argument
1367 types.
1368 (IT_write_glyphs, IT_note_mode_line_highlight)
1369 (IT_set_frame_parameters): Remove unused variables.
1370 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1371 (IT_set_terminal_modes): Disambiguate expression in if clause.
1372 (Fmsdos_remember_default_colors): Return Qnil.
1373 (IT_set_frame_parameters): Add parens to disambiguate boolean
1374 expression for logging the cursor type to termscript.
1375 (keyboard_layout_list, keypad_translate_map)
1376 (grey_key_translate_map): Add braces in inner initializers.
1377 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1378 (dos_rawgetc): Remove unused label.
1379 (XMenuActivate): Add braces to remove ambiguous `else'.
1380 (dos_ttraw): Always return a value.
1381 (spawnve): Declare.
1382 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1383
1384 * dosfns.h (x_set_title): Declare.
1385
1386 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1387 Remove unused variables.
1388
1389 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1390 variables.
1391 (init_dosfns): Declare get_lim_data.
1392 (system_process_attributes): Declare Fget_internal_run_time.
1393
38e41e0e
EZ
1394 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1395 list to be consistent with menu.h.
1396
94c97d85
EZ
1397 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1398 warnings due to mixing of "char *" and "const char *".
1399
c5683ceb
SM
14002010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1401
1402 Introduce a new comment style "c" flag.
1403 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1404 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1405 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1406 (syntax_prefix_flag_p): New function.
1407 (Fstring_to_syntax): Understand new "c" flag.
1408 (Finternal_describe_syntax_value): Recognize new flag; use the
1409 SYNTAX_FLAGS_* macros.
1410 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1411 comment style to accomodate the new styles.
1412 (back_comment, forw_comment, Fforward_comment, scan_lists)
1413 (scan_sexps_forward): Update code to obey the new comment style flag.
1414
1415 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1416
1417 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1418
7aee76f4
J
14192010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1420
3a46642b
J
1421 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1422 first.
94dff98f 1423 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1424
1425 * gtkutil.h (xg_check_special_colors): Declare.
1426
1427 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1428 (xg_create_frame_widgets): Connect theme name changes to
1429 style_changed_cb.
1430
42ca4633
J
1431 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1432 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1433 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1434 string literal. file is const char*.
42ca4633
J
1435
1436 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1437 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1438 props. Free them at the end.
1439
1440 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1441
c5683ceb
SM
1442 * xrdb.c (get_system_app): Make path const and use char *p for
1443 non-const char.
42ca4633
J
1444
1445 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1446 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1447 char *.
1448 (button_names): Is const char *.
1449 (xdialog_show): error_name and pane_string is const.
1450
1451 * process.h (synch_process_death): Is const char*.
1452
1453 * w32menu.c (w32_menu_show):
1454 * nsmenu.m (ns_menu_show): error parameter is const char **.
1455
1456 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1457 is const char **.
1458
1459 * menu.c (Fx_popup_menu): error_name is const.
1460
1461 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1462 with unsigned char and XtPointer with void *.
1463
1464 * gtkutil.h: Replace widget_value with struct _widget_value.
1465 (enum button_type, struct _widget_value): Remove and use the one from
1466 keyboard.h.
1467
1468 * gtkutil.c (get_utf8_string): Always return an allocated string.
1469 Parameter is const.
1470 (create_dialog, xg_create_one_menuitem, create_menus)
1471 (xg_item_label_same_p, xg_update_menu_item): Free result from
1472 get_utf8_string.
1473 (xg_separator_p, xg_item_label_same_p): label is const.
1474
1475 * font.h (font_open_by_name): Make name const.
1476
1477 * font.c (font_open_by_name): Make name const.
1478
1479 * floatfns.c (matherr): Use a const char* variable for x->name.
1480
1481 * emacs.c (main): Pass char[] to putenv instead of literal.
1482
1483 * callproc.c (synch_process_death): Make const.
1484 (Fcall_process): Make signame const.
1485
9c5bd55a
J
1486 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1487 (addDisplayItemWithImage): Use const char*.
1488
1489 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1490 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1491
1492 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1493
1494 * keyboard.h (_widget_value): name, value and key are const char*.
1495
7aee76f4
J
1496 * unexmacosx.c (unexec_error): Use const char *.
1497
09d93395
DN
14982010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1499
1500 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1501 (font_parse_name, font_open_by_name):
09d93395 1502 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1503 (font_parse_name, font_open_by_name): Remove const.
09d93395 1504
671d409f
AS
15052010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1506
1507 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1508 definition.
1509
1510 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1511 * m/amdx86-64.h: Likewise.
1512 * m/arm.h: Likewise.
1513 * m/hp800.h: Likewise.
1514 * m/ia64.h: Likewise.
1515 * m/ibmrs6000.h: Likewise.
1516 * m/ibms390.h: Likewise.
1517 * m/intel386.h: Likewise.
1518 * m/iris4d.h: Likewise.
1519 * m/m68k.h: Likewise.
1520 * m/macppc.h: Likewise.
1521 * m/mips.h: Likewise.
1522 * m/sh3.h: Likewise.
1523 * m/sparc.h: Likewise.
1524 * m/template.h: Likewise.
1525 * m/vax.h: Likewise.
1526 * m/xtensa.h: Likewise.
1527 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1528 WORDS_BIG_ENDIAN.
1529 * lisp.h: Likewise.
1530 * md5.c: Likewise.
1531 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1532
8ea90aa3
DN
15332010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1534
1535 Use const char* instead of char*.
1536 Reduce the number of warnings with -Wwrite-strings.
1537 * xrdb.c (get_environ_db, get_system_name):
1538 * unexelf.c (find_section):
1539 * term.c (string_cost, string_cost_one_line, per_line_cost)
1540 (get_named_tty, init_tty):
1541 * sysdep.c (sys_subshell):
1542 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1543 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1544 * search.c (Freplace_match):
1545 * process.c (Fmake_network_process, send_process, init_process):
1546 * lread.c (Fload, init_lread):
1547 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1548 * keyboard.c (parse_tool_bar_item, struct event_head):
1549 * gtkutil.h (xg_get_font_name):
1550 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1551 (make_widget_for_menu_item, make_menu_item, create_menus)
1552 (xg_make_tool_item):
1553 * font.c (parse_matrix, font_parse_name):
1554 * floatfns.c (rounding_driver, float_error_fn_name):
1555 * filelock.c (get_boot_time_1, lock_file_1):
1556 * fileio.c (barf_or_query_if_file_exists, check_writable):
1557 * editfns.c (get_system_name, get_operating_system_release)
1558 (Fencode_time, Fset_time_zone_rule):
1559 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1560 * buffer.c (defvar_per_buffer): Use const.
1561
7815fe19 15622010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1563
692f3ddc 1564 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1565 (struct charset_sort_data): New struct.
1566 (charset_compare): New function.
692f3ddc 1567 (Fsort_charsets): New function.
7a84eee5
KH
1568 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1569
1570 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1571 number in CTEXT extended segment.
1572
7815fe19 15732010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1574
1575 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1576 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1577
7815fe19 15782010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1579
1580 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1581 (Fhash_table_size): Fix typos in docstrings.
1582 (Fmake_hash_table): Doc fix.
1583
7815fe19 15842010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1585
1586 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1587 Doc fix (bug#5625).
1588
7815fe19 15892010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1590
1591 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1592 the MSDOS definition.
1593
1b6d8cf0
DN
15942010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1595
675e2c69
DN
1596 Use const char* instead of char*.
1597 * xterm.c (x_create_toolkit_scroll_bar):
1598 * xfont.c (xfont_list_pattern):
1599 * xfns.c (x_default_scroll_bar_color_parameter)
1600 (xic_create_fontsetname, x_default_font_parameter)
1601 (x_screen_planes):
1602 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1603 (store_mode_line_string, decode_mode_spec, display_string):
1604 * menu.c (digest_single_submenu):
1605 * keymap.h (initial_define_key, initial_define_lispy_key):
1606 * keymap.c (initial_define_key, initial_define_lispy_key):
1607 * image.c (image_error, image_keyword):
1608 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1609 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1610 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1611 (ftfont_list, ftfont_match):
1612 * frame.c (frame_parm_table):
1613 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1614 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1615 (font_add_log, font_deferred_log):
1616 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1617 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1618 (font_add_log, font_deferred_log):
1619 * emacs.c (argmatch):
1620 * dispextern.h (struct it):
1621 * coding.c (ENCODE_DESIGNATION):
1622 * charset.c (define_charset_internal): Use const.
1623
25717ca1
DN
1624 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1625
c5683ceb
SM
1626 * xrdb.c: Remove include guard.
1627 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1628 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1629 realloc->xrealloc instead of using #defines.
1630
efb41e21
EZ
16312010-08-08 Eli Zaretskii <eliz@gnu.org>
1632
cd21226d 1633 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1634 * editfns.c (Fline_beginning_position, Fline_end_position):
1635 State in the doc strings that start and end of line are in the
1636 logical order.
cd21226d 1637
efb41e21
EZ
1638 * xdisp.c (display_line): Move the handling of overlay arrow after
1639 the call to find_row_edges. (Bug#6699)
1640
746812d9
CY
16412010-08-07 Chong Yidong <cyd@stupidchicken.com>
1642
1643 * keyboard.c (command_loop_1):
1644 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1645
9852377f
CY
16462010-08-07 Chong Yidong <cyd@stupidchicken.com>
1647
1648 * insdel.c (prepare_to_modify_buffer): Save active region text to
1649 Vsaved_region_selection.
1650
1651 * xselect.c (QPRIMARY): Move to keyboard.c.
1652
1653 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1654 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1655 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1656
0e9c8657
JB
16572010-08-07 Juanma Barranquero <lekktu@gmail.com>
1658
1659 * alloc.c (lisp_malloc):
1660 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1661 * charset.h (emacs_mule_charset):
1662 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1663 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1664 (bitch_at_user):
1665 * lisp.h (Fcheck_coding_system, Fget_text_property)
1666 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1667 Remove duplicate declarations.
1668
648801d1
DN
16692010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1670
32bc6709
DN
1671 * process.c: Simplify include logic.
1672
3ef1d108
DN
1673 * keyboard.h (quit_char): Add declaration.
1674 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1675 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1676 Add declarations.
3ef1d108
DN
1677 * sysdep.c:
1678 * w32.c: Remove the above declarations.
1679
97ec208f
DN
1680 Remove extern declarations in .c files, .h files have them.
1681 * xterm.c:
1682 * xdisp.c:
97ec208f
DN
1683 * msdos.c:
1684 * image.c:
1685 * gtkutil.c:
1686 * fileio.c:
1687 * eval.c: Remove declarations.
1688
94eed851
DN
1689 * frame.c (frame_params): Make const.
1690
36e053eb
DN
1691 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1692
0e843971
DN
1693 * emacs.c (emacs_copyright, emacs_version): Make static.
1694 (Vinitial_window_system, Vauto_save_list_file_name)
1695 (Vinhibit_redisplay): Remove declarations.
1696 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1697 for AIX.
1698
648801d1
DN
1699 Use const for some arrays and functions.
1700 * xterm.h (xg_set_icon_from_xpm_data):
1701 * xfns.c (xg_set_icon_from_xpm_data):
1702 * term.c (fkeys):
1703 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1704 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1705 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1706 (frame.c frame_parms):
1707 * emacs-icon.h (gnu_xpm_bits):
1708 * callint.c (callint_argfuns): Use const.
1709
8646d999
J
17102010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1711
1712 * sysdep.c: Move include term.h last of includes (Bug#6812).
1713
cb4545ad
EZ
17142010-08-06 Eli Zaretskii <eliz@gnu.org>
1715
1716 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1717
1718 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1719
1720 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1721
da7e2be6
JB
17222010-08-06 Juanma Barranquero <lekktu@gmail.com>
1723
1724 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1725
3d608a86
J
17262010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1727
7908fb60
J
1728 * xterm.h (x_get_focus_frame): Declare.
1729
1730 * keyboard.h (poll_for_input_1): Unconditionally declare.
1731
4094bf36
J
1732 * nsterm.h (x_set_menu_bar_lines): Declare.
1733
1734 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1735
3d608a86
J
1736 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1737
1738 * window.c: Include menu.h.
1739
1740 * unexmacosx.c (print_region_list, print_regions)
1741 (build_region_list, find_emacs_zone_regions)
1742 (unexec_regions_merge, read_load_commands, dump_it)
1743 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1744
1745 * term.c: Check HAVE_SYS_IOCTL_H.
1746
686b968e 1747 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1748
686b968e 1749 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1750
1751 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1752 (ns_ring_bell, ns_defined_color, hide_hourglass)
1753 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1754 Convert to ANSI C prototypes.
1755 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1756 before code.
1757
1758 * nsterm.h : Include sysselect.h.
1759 (x_sync, x_get_focus_frame, x_set_mouse_position)
1760 (x_set_mouse_pixel_position, x_make_frame_visible)
1761 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1762 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1763 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1764 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1765 Declare.
3d608a86
J
1766
1767 * nsmenu.m (popup_activated, name_is_separator)
1768 (syms_of_nsmenu): Convert to ANSI C prototypes.
1769 (runMenuAt): Prototypes and move declarations before code.
1770
1771 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1772
1773 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1774 prototypes.
1775
1776 * nsfns.m (have_menus_p, ns_display_info_for_name)
1777 (x_set_cursor_type, ns_appkit_version_str)
1778 (ns_appkit_version_int, ns_do_applescript)
1779 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1780 (syms_of_nsfns): Convert to ANSI C prototypes.
1781
1782 * menu.h (x_set_menu_bar_line): Declare.
1783 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1784
1785 * lisp.h (fmod_float): Declare.
1786
1787 * image.c (xpm_scan, xpm_make_color_table_v)
1788 (xpm_put_color_table_v, xpm_get_color_table_v)
1789 (xpm_make_color_table_h, xpm_put_color_table_h)
1790 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1791 (xpm_load): Convert to ANSI C prototypes.
1792
1793 * emacs.c: Include nsterm.h if HAVE_NS.
1794
1795 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1796
fce70521
DN
17972010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1798
1799 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1800 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1801 (socket_options): Use const char* for name.
1802
a11889ab
JB
18032010-08-06 Juanma Barranquero <lekktu@gmail.com>
1804
1805 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1806
1807 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1808 Don't declare xmalloc_widget_value and digest_single_submenu.
1809
1810 * w32font.c (Qlatin): Remove declaration.
1811
1812 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1813
c95b508f 1814 * dired.c (compile_pattern): Restore declaration.
a11889ab 1815
6254cdda
DN
18162010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1817
04bab72c
DN
1818 Remove extern declarations in .c files, .h files have them.
1819 * data.c:
1820 * dired.c:
1821 * editfns.c:
1822 * filelock.c:
1823 * fns.c:
1824 * font.c:
1825 * fontset.c:
1826 * frame.c:
1827 * fringe.c:
1828 * ftfont.c:
1829 * gtkutil.c:
1830 * indent.c:
1831 * keyboard.c:
1832 * keymap.c:
1833 * lread.c:
1834 * menu.c:
1835 * print.c:
1836 * search.c:
1837 * sound.c:
1838 * window.c:
1839 * xdisp.c:
1840 * xfaces.c:
1841 * xfns.c:
1842 * xfont.c:
1843 * xftfont.c:
1844 * xmenu.c:
1845 * xterm.c: Remove declarations.
1846
dff94ed5
DN
1847 Cleanup syssignal.h.
1848 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1849 (main_thread): Move down to remove #ifdef.
1850 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1851 Remove conditional definition following unconditional ones.
1852
99f3388e
DN
1853 * lisp.h: Remove HAVE_SHM code, unused.
1854 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1855 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1856 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1857 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1858 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1859 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1860 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1861 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1862 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1863 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1864 (Qwindow_scroll_functions, Vafter_load_alist)
1865 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1866 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1867 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1868 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1869 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1870 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1871 (initial_argv, last_nonmenu_event, load_in_progress)
1872 (noninteractive_need_newline, scroll_margin): Add declarations.
1873
1874 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1875 declarations, menu.h has them.
1876 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1877 (Vinput_method_function, Qinput_method_function)
1878 (Qevent_symbol_element_mask, last_event_timestamp):
1879 * dispextern.h (Voverflow_newline_into_fringe):
1880 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1881 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1882 (syms_of_w32font, syms_of_nsfont):
1883 * fontset.h (find_font_encoding, Qlatin):
1884 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1885 (Vtool_bar_mode, set_frame_menubar):
1886 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1887 * xterm.h (Qx_gtk_map_stock):
1888 * keymap.h (meta_prefix_char): Add declarations.
1889
9f5dd6f2
DN
1890 * term.c: Remove dead code.
1891
6254cdda
DN
1892 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1893 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1894 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1895 which is what was there before BSD_PGRPS was removed.
1896
29cf3e20
EZ
18972010-08-05 Eli Zaretskii <eliz@gnu.org>
1898
1899 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1900
1901 * unexcoff.c: Renamed from unexec.c.
1902
aaa0a19a
SM
19032010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1904
1905 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1906
8d1d9587
JB
19072010-08-03 Johan Bockgård <bojohan@gnu.org>
1908
1909 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1910 (Bug#6744)
8d1d9587 1911
9a747ba6
JD
19122010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1913
4d464ae4
JD
1914 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1915 to TRUE if depth of screen is < 16.
1916
ac01763e
JD
1917 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1918 USE_GTK_TOOLTIP.
e0d62a9b
JB
1919 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1920 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1921 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1922 USE_GTK_TOOLTIP.
1923 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1924
1925 * xterm.h (USE_GTK_TOOLTIP): New define.
1926 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1927
9a747ba6
JD
1928 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1929 to Control-D (Bug#6771).
1930
7b0815ba
JB
19312010-08-02 Juanma Barranquero <lekktu@gmail.com>
1932
1933 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1934 Wording by Drew Adams <drew.adams@oracle.com>.
1935
aa1859f5
J
19362010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1937
1938 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1939 ttip_lbl.
1940
1941 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1942 calling gtk_widget_queue_draw.
1943 (x_free_frame_resources): Call xg_free_frame_widgets.
1944
1945 * xfns.c (x_gtk_use_system_tooltips): New variable.
1946 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1947 new gtkutil tooltip functions to show the tooltip.
1948 (Fx_hide_tip): Call xg_hide_tooltip.
1949 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1950
1951 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1952 (xg_show_tooltip, xg_hide_tooltip): Declare.
1953
1954 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1955 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1956 New functions.
aa1859f5
J
1957 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1958 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1959 Remove code that is commented out.
1960
76417ef4
SM
19612010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1962
1963 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1964
16041401
CY
19652010-07-31 Chong Yidong <cyd@stupidchicken.com>
1966
1967 * xselect.c (x_own_selection): Use list4.
1968
2c09a58f
DN
19692010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1970
1971 * buffer.c (Qwindow): Do not define, already defined in data.c.
1972 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1973
59df9fdd 19742010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1975
59df9fdd
JB
1976 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1977 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1978 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1979 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1980 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1981
1b231651
DN
19822010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1983
1984 Rename s/usg5-4.h -> s/usg5-4-common.h.
1985 * s/usg5-4.h: Rename file to ...
1986 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1987 * s/unixware.h:
1988 * s/sol2-6.h:
1989 * s/irix6-5.h: Update includes accordingly.
1990
bfeabdc3
JD
19912010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1992
2ebf1083
J
1993 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1994
bfeabdc3 1995 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1996 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1997 Remove toolbar_height.
1998 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1999 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2000 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2001 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2002
2003 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2004
2005 * xfns.c (x_set_tool_bar_position): New function.
2006 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2007 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2008 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2009
2010 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2011 and FRAME_TOOLBAR_LEFT_WIDTH.
2012
2013 * gtkutil.h (xg_change_toolbar_position): Declare.
2014
2015 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2016 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2017 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2018 (xg_create_frame_widgets): Create a hobox for placing widgets
2019 vertically. Use gtk_box_pack_start.
2020 (xg_height_or_width_changed): Renamed from xg_height_changed.
2021 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2022 (xg_update_frame_menubar, free_frame_menubar): Change to
2023 xg_height_or_width_changed.
2024 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2025 size correctly. Remove hardcoded 4, instead use handlebox size -
2026 toolbar size.
2027 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2028 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2029 (xg_pack_tool_bar): POS is a new parameter.
2030 Set orientation of tool bar based on pos.
2031 Only make handlebox_widget if NULL.
2032 Check if tool bar goes to vbox or hbox depending on pos.
2033 (xg_update_tool_bar_sizes): New function.
686b968e 2034 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2035 height, call xg_update_tool_bar_sizes instead.
2036 (free_frame_tool_bar): Remove from hbox or vbox depending on
2037 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2038 (xg_change_toolbar_position): New function.
2039
2040 * frame.h (struct frame): Add tool_bar_position.
2041 (Qbottom): Declare.
2042
2043 * frame.c (Qtool_bar_position): New variable.
2044 (make_frame): Set tool_bar_position to Qtop.
2045 (frame_parms): Add tool-bar-position.
2046 (x_report_frame_params): Store tool_bar_position.
2047 (x_set_fringe_width): Reset wm size hint after fringe changes.
2048
26469a38
DN
20492010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2050
2051 Make lisp_time_argument declaration work on all systems.
2052 * lisp.h (lisp_time_argument): Move declaration ...
2053 * systime.h (lisp_time_argument): ... here
2054 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2055
8848b728
JD
20562010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2057
2058 * vm-limit.c (POINTER): Add typedef for it.
2059 (start_of_data): Change return type from POINTER to char *.
2060
2061 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2062 HAVE_WINDOW_SYSTEM.
2063
76fd1ee9
DN
20642010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2065
0441987e
DN
2066 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2067 Remove reference to __osf__, unused.
2068
56a000c7
DN
2069 * mem-limits.h: Remove duplicated includes.
2070 (NULL): Remove definition, unused.
2071 (POINTER): Remove definition.
2072 (start_of_data): Use char* in prototype, as the function
2073 definition does.
2074
e6cba650
DN
2075 Remove extern declarations from .c files, and them to .h files.
2076 * keyboard.h (Qhelp_echo, waiting_for_input)
2077 (input_available_clear_time, ignore_mouse_drag_p)
2078 (Vdouble_click_time, real_this_command, Vthis_original_command):
2079 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2080 (Voverriding_local_map_menu_flag):
2081 * lisp.h (Qinteractive_form, use_file_dialog)
2082 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2083 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2084 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2085 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2086 (Qfunction, debug_on_next_call, Qfield)
2087 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2088 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2089 (Qfile_directory_p, Qinsert_file_contents)
2090 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2091 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2092 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2093 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2094 (Qminibuffer_prompt)
2095 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2096 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2097 (gray_bitmap_bits, xic_create_fontsetname):
2098 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2099
2100 * xsmfns.c (Vuser_login_name):
2101 * xrdb.c (Vdouble_click_time):
2102 * xfaces.c (xic_create_fontsetname):
2103 * w32select.c (waiting_for_input):
2104 * print.c (minibuffer_auto_raise):
2105 * msdos.c (Qhelp_echo):
2106 * macros.c (real_this_command):
2107 * keymap.c (Voverriding_local_map):
2108 * xterm.c (poll_for_input_1, gray_bitmap_width)
2109 (gray_bitmap_height, gray_bitmap_bits;
2110 * xmenu.c ( Voverriding_local_map)
2111 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2112 (use_file_dialog, Xt_app_con):
2113 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2114 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2115 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2116 (Qtool_bar_lines, ignore_mouse_drag_p):
2117 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2118 (Qrear_nonsticky, nconc2):
2119 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2120 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2121 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2122 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2123 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2124 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2125 (gc_in_progress):
2126 * doc.c (Voverriding_local_map, Qremap):
2127 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2128 (Vcompletion_regexp_list):
2129 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2130 (Qcompletion_ignore_case):
2131 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2132 (Vhistory_length, Vthis_original_command, real_this_command)
2133 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2134 * image.c (Qrisky_local_variable):
2135 * fontset.c (QCname):
2136 * fns.c (minibuffer_auto_raise, QCname):
2137 * dispnew.c (char_ins_del_cost):
2138 * composite.c (font_fill_lglyph_metrics):
2139 * cmds.c (Qface, Vtranslation_table_for_input):
2140 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2141 * ccl.c (charset_unicode):
2142 * callproc.c (Vtemporary_file_directory):
2143 * buffer.c (emacs_strerror): Remove extern declarations.
2144
2145 * data.c (Qwindow): Make non-static, used from other files too.
2146 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2147
76fd1ee9
DN
2148 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2149 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2150 * s/usg5-4.h (COFF):
2151 * s/template.h:
2152 * s/msdos.h (COFF, NO_REMAP):
2153 * s/ms-w32.h (NO_REMAP):
2154 * s/hpux10-20.h (NO_REMAP):
2155 * m/sparc.h (SEGMENT_MASK):
2156 * m/m68k.h (NO_REMAP):
2157 * m/intel386.h (SEGMENT_MASK):
2158 * m/arm.h (NO_REMAP):
2159 * m/alpha.h (COFF):
2160 * m/template.h: Remove references to unused defines.
2161
8a52f00a
JD
21622010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2163
2164 * xsettings.c (Ftool_bar_get_system_style): Also check for
2165 Qtext_image_horiz.
2166
2167 * xdisp.c (Qtext_image_horiz): Define.
2168 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2169 to documentation of tool-bar-style.
8a52f00a
JD
2170
2171 * lisp.h (Qtext_image_horiz): Declare.
2172
2173 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2174 style text_image_horiz.
2175
89dc303e
DN
21762010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2177
60799703
DN
2178 * emacs.c (Fkill_emacs): Remove return statement.
2179
37254dc1
DN
2180 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2181 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2182 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2183 local extern declarations.
2184
71c7345a
DN
2185 * xmenu.c: Do not included lwlib.h, not needed.
2186
6ba577cb
DN
2187 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2188
fdb183d6
DN
2189 * process.c: Move definitions earlier to minimize #ifdefs.
2190
2191 * xterm.h (x_get_customization_string, x_load_resources)
2192 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2193 (x_check_errors, x_property_data_to_lisp, defined_color)
2194 (xic_set_xfontset, x_defined_color): Use const.
2195
2196 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2197 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2198
2199 * xselect.c (selection_data_to_lisp_data)
2200 (x_property_data_to_lisp):
2201 * xrdb.c (x_get_string_resource, file_p)
2202 (x_get_customization_string, magic_file_p, search_magic_path)
2203 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2204 (x_get_string_resource): Use const.
2205
2206 * xfns.c: Include xlwmenu.h when USE_LUCID.
2207 (x_defined_color, xic_set_xfontset): Use const.
2208 (Fx_hide_tip): Remove local extern declaration.
2209
2210 * xfaces.c (Qmouse_face): Remove declaration.
2211 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2212 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2213
2214 * xdisp.c (do_mouse_tracking): Remove declaration.
2215 (add_to_log): Use const.
2216
2217 * minibuf.c (Qmouse_face): Remove declaration.
2218
2219 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2220
2221 * keyboard.h (do_mouse_tracking): Add declaration.
2222
2223 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2224 (QCdata, QCtype, Qcenter): Remove declarations.
2225
2226 * frame.c (x_get_resource_string, x_get_string_resource)
2227 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2228 (x_default_parameter): Use const.
2229
2230 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2231 (QCheight, QCsize, QCname): Remove declarations.
2232
2233 * emacs.c (main): Remove local extern declaration.
2234
2235 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2236 declarations.
2237
2238 * dispnew.c: Remove duplicate #include <unistd.h>.
2239 (update_window, update_frame_1, init_display): Remove local extern
2240 declarations.
2241
2242 * dispextern.h (add_to_log): Remove declaration.
2243 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2244 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2245
2246 * dired.c (scmp): Add const.
2247 (directory_files_internal): Remove local extern declaration.
2248
2249 * data.c (Finteractive_form): Use const.
2250
2251 * composite.c (syms_of_composite): Remove local extern declarations.
2252
2253 * charset.c (add_to_log): Remove declaration.
2254
2255 * character.c (strwidth, parse_str_to_multibyte): Add const.
2256
2257 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2258
2259 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2260
89dc303e 2261 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2262 (Lisp_Subr): Make doc and intspec constant.
2263 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2264 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2265 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2266 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2267 (display_arg): Add declarations.
89dc303e 2268
0ed082fe 22692010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2270
2271 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2272
0ed082fe
JB
2273 * window.c (Fwindow_height): Doc fix (bug#6518).
2274
22752010-07-27 Juanma Barranquero <lekktu@gmail.com>
2276
2277 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2278
ccaf0336
DN
22792010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2280
977105dc
DN
2281 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2282 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2283 functions.
2284
f5ada890
DN
2285 * frame.h (Qtty_color_mode): Add declaration.
2286
ccaf0336
DN
2287 * lisp.h (Ftop_level, Fexit_recursive_edit)
2288 (Fabort_recursive_edit): Mark as NO_RETURN.
2289
dfe3c90f
KH
22902010-07-26 Kenichi Handa <handa@m17n.org>
2291
2292 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2293 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2294
7d383292
JB
22952010-07-26 Juanma Barranquero <lekktu@gmail.com>
2296
2297 * lread.c (unreadpure, mapatoms_1): Make static.
2298
da31e629
JB
22992010-07-25 Juanma Barranquero <lekktu@gmail.com>
2300
2301 * terminfo.c (tparam): Fix prototype of tparm.
2302
7bfa6d77
AS
23032010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2304
dcc19aac
AS
2305 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2306 find start of text segment.
2307 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2308 is defined.
2309
7bfa6d77
AS
2310 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2311
63f9a672
KB
23122010-07-25 Ken Brown <kbrown@cornell.edu>
2313
2314 * vm-limit.c (check_memory_limits): Fix previous change;
2315 accidentally reverted an earlier change.
2316
24933075
KB
23172010-07-25 Ken Brown <kbrown@cornell.edu>
2318
2319 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2320 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2321
361358ea
JB
23222010-07-25 Juanma Barranquero <lekktu@gmail.com>
2323
2324 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2325 * dired.c (opendir, readdir): Fix prototypes.
2326 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2327 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2328 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2329 (telldir): Remove declaration.
2330 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2331 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2332 * syssignal.h (strsignal): Fix prototype.
2333 * term.c (tparam): Fix prototype.
2334 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2335 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2336 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2337 and __morecore.
2338 * w32gui.h (XParseGeometry): Fix prototype.
2339 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2340 * w32term.c (my_set_focus): Declare inside #if 0.
2341 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2342 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2343 (drain_message_queue, get_next_msg, post_msg, parse_button)
2344 (ClipboardSequence_Proc): Fix prototypes.
2345 (wait_for_sync): Remove declaration.
2346
630b9592
JB
23472010-07-24 Juanma Barranquero <lekktu@gmail.com>
2348
2349 * w32fns.c (w32_to_x_color): Remove, unused.
2350
6a0d6611
AS
23512010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2352
2353 * lisp.h: Remove leftover P_.
2354
4e8608ff
DN
23552010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2356
2357 * ecrt0.c, unexalpha.c: Remove files, unused.
2358
c8197983
AS
23592010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2360
2361 * cmds.c (internal_self_insert): Make static.
2362 * lisp.h (internal_self_insert): Remove declaration.
2363
97b372d7
JB
23642010-07-23 Juanma Barranquero <lekktu@gmail.com>
2365
33ac0414
JB
2366 * alloc.c (free_float):
2367 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2368 * frame.c (delete_frame_handler):
2369 * ralloc.c (reorder_bloc):
2370 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2371 Remove unused static functions.
2372
94da8397
JB
2373 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2374 it is called only from NS code.
2375
2e6c8532
JB
2376 * w32term.c (my_set_focus): #ifdef away; it is called only from
2377 "#ifdef 0" code.
2378
97b372d7
JB
2379 * w32fns.c (x_edge_detection):
2380 * xfaces.c (may_use_scalable_font_p):
2381 Remove obsolete static declarations.
2382
7c3320d8
JB
23832010-07-20 Juanma Barranquero <lekktu@gmail.com>
2384
2385 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2386 (emacs_blocked_realloc, uninterrupt_malloc):
2387 * fringe.c (w32_reset_fringes):
2388 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2389 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2390 * sound.c (be2hs, do_play_sound):
2391 * vm-limit.c (get_lim_data, ret_lim_data):
2392 * w32term.c (x_free_frame_resources):
2393 * xfaces.c (x_create_gc, x_free_gc):
2394 Convert definitions to standard C.
2395
d5273788
SM
23962010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2397
2398 * eval.c (Feval, Ffuncall): Use the new names.
2399
2400 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2401 (DEFUN): Add braces around the union initialisation and use ## to
2402 specify the right union alternative and avoid a cast.
2403
8d16a259
JB
24042010-07-18 Juanma Barranquero <lekktu@gmail.com>
2405
2406 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2407
3b8eff32
CY
24082010-07-17 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2411
499322ce
J
24122010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2413
2414 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2415 is related to the menu bar (Bug#6499).
a628ad9d 2416 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2417
f6003da5 24182010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2419
2420 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2421
2422 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2423
2424 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2425 i.e. don't put back ButtonRelease (Bug#6608).
2426
2427 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2428 instead of Window. Call xg_event_is_for_menubar when
2429 USE_GTK (Bug#6499).
2430
2431 * gtkutil.h (xg_event_is_for_menubar): Declare.
2432
2433 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2434
f6003da5 24352010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2436
2437 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2438 when it's the same as the old foreground. (Bug#6609)
2439
23243f29
J
24402010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2441
2442 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2443 widget is non-null (Bug#6645).
2444
2b23d2a6
AS
24452010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2446
01b564ff
AS
2447 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2448 Convert old-style definition.
2449
2b23d2a6
AS
2450 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2451 timestamp argument.
2452
c4affd2c
EZ
24532010-07-15 Eli Zaretskii <eliz@gnu.org>
2454
2455 * fringe.c (update_window_fringes): Restore mistakenly reverted
2456 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2457
cf28cebc
J
24582010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2459
2460 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2461 (SET_SAVED_KEY_EVENT): Remove (not used).
2462 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2463 remove size parameter.
2464 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2465 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2466 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2467 ButtonRelease.
6b2c4bd9
J
2468 (x_set_window_size_1): scroll_bar_actual_width is always
2469 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2470
2471 * xdisp.c (pending_menu_activation): Remove extern declaration.
2472 (prepare_menu_bars): Remove setting of pending_menu_activation.
2473
2474 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2475 (x_activate_menubar): Set popup_activated_flag for Xt also.
2476 Remove setting of pending_menu_activation.
cf28cebc
J
2477 (set_frame_menubar): Remove check of pending_menu_activation.
2478 Declare menubar_size before code. Correct spelling in comment.
2479
f6c1c771
KH
24802010-07-14 Kenichi Handa <handa@m17n.org>
2481
2482 * font.c (font_open_entity): Cancel previous change.
2483 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2484
20477505
EZ
24852010-07-13 Eli Zaretskii <eliz@gnu.org>
2486
77defa9a
EZ
2487 Remove subprocesses #ifdefs.
2488 * process.c <inhibit_sentinels>: Move to the common part.
2489 (Fwaiting_for_user_input_p): Move to the common part; return nil
2490 if async subprocesses aren't supported.
2491 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2492 MS-DOS. Remove "#ifdef subprocesses".
2493 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2494 (gettimeofday): Remove "#ifdef subprocesses".
2495 (wait_without_blocking): Remove function.
2496 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2497 Remove "#ifdef subprocesses".
2498 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2499 compiled on MS-DOS.
2500 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2501 wait_for_termination on MS-DOS.
2502 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2503 initialization of inhibit_sentinels.
2504 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2505 subprocesses" conditional.
2506 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2507 wait_for_termination, since `buffer' cannot be an integer when
2508 async subprocesses are not supported
2509 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2510 for ifdefing away the call to Fprocess_status.
2511
20477505
EZ
2512 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2513 away the entire body of the function.
2514
b3ffc17c
DN
25152010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2516
01faa934
DN
2517 Remove subprocesses #ifdefs from term.c.
2518 * process.c (add_keyboard_wait_descriptor)
2519 (delete_keyboard_wait_descriptor): Move to common section, do
2520 nothing when subprocesses is not defined.
a628ad9d
JB
2521 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2522 Remove subprocesses #ifdefs.
01faa934 2523
b3ffc17c
DN
2524 Convert maybe_fatal to standard C.
2525 * lisp.h (verror): Declare.
2526 * eval.c (verror): New function containing the code from ...
2527 (error): ... this. Call verror.
2528 * term.c (vfatal): New function containing the code from ...
2529 (fatal): ... this. Call vfatal.
2530 (maybe_fatal): Convert to standard C, use variable number of
2531 arguments. Declare as non-return.
2532 (init_tty): Fix maybe_fatal call.
2533
0521f580
DN
25342010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2535
2536 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2537 (_scroll_bar_note_movement): Convert definitions to standard C.
2538 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2539 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2540
ebd15611
DN
25412010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2542
2543 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2544 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2545 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2546 (xaw_jump_callback, xaw_scroll_callback)
2547 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2548 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2549 definitions to standard C.
2550 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2551 (popup_activate_callback, popup_deactivate_callback)
2552 (menu_highlight_callback, menubar_selection_callback)
2553 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2554 (free_frame_menubar, popup_selection_callback, as)
2555 (create_and_show_popup_menu, dialog_selection_callback)
2556 (create_and_show_dialog):
2557 * xfns.c (hack_wm_protocols, x_window):
2558 * xfaces.c (x_update_menu_appearance):
2559 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2560 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2561 (set_frame_size, update_wm_hints, setup_frame_gcs)
2562 (update_various_frame_slots, update_from_various_frame_slots)
2563 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2564 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2565 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2566
de06a2dd
AS
25672010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2568
a628ad9d 2569 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2570
fc549af9
EZ
25712010-07-12 Eli Zaretskii <eliz@gnu.org>
2572
2573 * process.c (setup_process_coding_systems): Move to the part
2574 shared by non-subprocesses systems, and make its body empty when
2575 subprocesses is not defined.
2576 (close_process_descs): Move to the part shared by non-subprocesses
2577 systems.
1408902e
EZ
2578 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2579 ANSI C.
fc549af9 2580
d5a3eaaf
AS
25812010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2582
2583 * editfns.c (transpose_markers): Convert old-style definition.
2584 * emacs.c (abort, shut_down_emacs, fixup_locale)
2585 (synchronize_system_time_locale)
2586 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2587 * floatfns.c (extract_float, matherr, init_floatfns)
2588 (syms_of_floatfns): Likewise.
2589 * fns.c (make_hash_table): Likewise.
2590 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2591 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2592 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2593 (ftfont_variation_glyphs): Likewise.
2594 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2595 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2596 * lread.c (read_filtered_event): Likewise.
2597 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2598 * process.c (wait_reading_process_output): Likewise.
2599 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2600 * search.c (search_buffer, boyer_moore): Likewise.
2601 * syntax.c (scan_sexps_forward): Likewise.
2602 * xdisp.c (try_scrolling): Likewise.
2603 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2604 (face_at_string_position): Likewise.
2605 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2606 * xselect.c (x_get_window_property, receive_incremental_selection)
2607 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2608 Likewise.
2609 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2610
6f704c76
DN
26112010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2612
ded80a25
DN
2613 * callproc.c (child_setup): Remove subprocesses conditional.
2614 Remove code dealing with SET_EMACS_PRIORITY, unused.
2615
49d937f4 2616 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2617 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2618
2619 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2620 (__do_global_dtors, __main): Use void in definition.
2621 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2622 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2623 the only users from ...
2624 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2625 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2626 (HAVE_VOLATILE): Remove, unused.
2627
6f704c76
DN
2628 Convert more function definitions to standard C.
2629 * xdisp.c (window_box_edges, handle_single_display_spec)
2630 (display_string): Convert definition to standard C.
2631 * scroll.c (do_direct_scrolling, scrolling_1):
2632 * dispnew.c (allocate_matrices_for_frame_redisplay)
2633 (mirrored_line_dance):
2634 * coding.c (code_convert_string):
2635 * charset.c (map_charset_chars):
2636 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2637 (Fregister_ccl_program, Fregister_code_conversion_map):
2638 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2639 (head_table): Make static and const.
2640
e6cfa7c3
AS
26412010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2642
2643 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2644 (PROFILING_LDFLAGS): Set from substitution.
2645 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2646 CFLAGS last.
2647
892dd565
KH
26482010-07-12 Kenichi Handa <handa@m17n.org>
2649
6f2cdcd1
KH
2650 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2651 (shortlisp): Likewise.
2652
892dd565
KH
2653 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2654
2655 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2656 of FONT_ENTITY_INDEX.
2657 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2658 property, get the property value dynamically.
2659 (Ffont_put): Accept font-entity and font-object too.
2660 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2661 return value changed.
2662 (syms_of_font): Adjusted for the above change.
2663
ae96d47a
AS
26642010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2665
c8fc18ee
AS
2666 * blockinput.h: Remove obsolete comment.
2667
89887d67
AS
2668 * lisp.h: Include <stddef.h>.
2669 (OFFSETOF): Don't define.
2670 (VECSIZE): Use offsetof instead of OFFSETOF.
2671 (PSEUDOVECSIZE): Likewise.
2672 * process.c (conv_sockaddr_to_lisp): Likewise.
2673 * alloc.c: Don't include <stddef.h>.
2674 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2675
ae96d47a
AS
2676 * process.c: Remove obsolete comment.
2677
635c0aa1
CY
26782010-07-11 Chong Yidong <cyd@stupidchicken.com>
2679
2680 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2681
a64df650
AS
26822010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2683
8966b757
AS
2684 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2685 index, rindex.
2686 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2687 * editfns.c (Fuser_full_name, Fformat): Likewise.
2688 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2689 * fileio.c (Ffile_symlink_p): Likewise.
2690 * filelock.c (current_lock_owner): Likewise.
2691 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2692 * fontset.c (fontset_pattern_regexp): Likewise.
2693 * lread.c (read1): Likewise.
2694 * sysdep.c (init_system_name): Likewise.
2695 * xfns.c (select_visual): Likewise.
2696 * s/hpux10-20.h (index, rindex): Don't define.
2697 * s/ms-w32.h (index): Likewise.
2698 * s/usg5-4.h: Likewise.
2699
cf237e27
AS
2700 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2701
a8fe7202
AS
2702 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2703 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2704 (egetenv): Likewise.
2705 * doprnt.c (doprnt): Likewise.
2706 * editfns.c (set_time_zone_rule, format2): Likewise.
2707 * emacs.c (decode_env_path): Likewise.
2708 * eval.c (signal_error, error): Likewise.
2709 * insdel.c (replace_range_2): Likewise.
2710 * keyboard.c (cmd_error_internal): Likewise.
2711 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2712 * print.c (write_string, write_string_1, print_error_message):
2713 Likewise.
2714 * vm-limit.c (warn_function, memory_warnings): Likewise.
2715 * xdisp.c (message1, message1_nolog, message_with_string)
2716 (vmessage, message, message_nolog): Likewise.
2717 * emacs.c: Remove duplicate declaration.
2718 * keyboard.h: Likewise.
2719 * lisp.h: Update prototypes.
2720
bb8e180f
AS
2721 * eval.c: Fix indentation problem.
2722
83380e65
AS
2723 * keyboard.c: Include "process.h"
2724
a64df650
AS
2725 * eval.c: Remove obsolete noinline declaration.
2726 * fns.c: Likewise.
2727
6a8033e1
KR
27282010-07-11 Ken Raeburn <raeburn@raeburn.org>
2729
2730 * doprnt.c (doprnt): Take a va_list argument instead of count and
2731 pointer.
2732 * eval.c (error): Change to a standard-C variadic function.
2733 * xdisp.c (vmessage): Renamed from message, made static, and
2734 changed to take a va_list argument.
2735 (message): New variadic wrapper.
2736 (message_nolog): Now a variadic function, calling vmessage.
2737 * lisp.h: Include stdarg.h for va_list.
2738 (doprnt, error, message, message_nolog): Decls updated.
2739
462aa963
EZ
27402010-07-11 Eli Zaretskii <eliz@gnu.org>
2741
2742 * process.c (syms_of_process) <delete-exited-processes>: Define
2743 even if !subprocesses.
2744 (delete_exited_processes): Ditto.
2745
2746 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2747 (delete_exited_processes): Don't define.
2748
48104462
CY
27492010-07-10 Chong Yidong <cyd@stupidchicken.com>
2750
2751 * frame.c (make_frame): Initialize menu_bar_lines and
2752 tool_bar_lines members.
2753 (make_initial_frame, make_terminal_frame): Initialize
2754 menu_bar_lines using value of menu-bar-mode.
2755
2756 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2757
f388c88a
EZ
27582010-07-10 Eli Zaretskii <eliz@gnu.org>
2759
2760 * process.c: Reshuffle #include's. Condition some of the global
2761 and static variables on `subprocesses'.
2762 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2763 Leave only one implementation.
2764 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2765 (kill_buffer_processes, Flist_system_processes)
2766 (Fprocess_attributes, init_process, syms_of_process): Unify the
2767 implementations for with subprocesses and without them.
2768
723f5a07
J
27692010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2770
2771 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2772 correct size for Motif.
2773 (free_frame_menubar): Call x_set_window_size to update frame size.
2774
2775 * xfns.c (x_window): Set borderWidth to 0 for pane and
2776 EmacsFrame. Frame size calculation is wrong otherwise.
2777
2536a4b7
MA
27782010-07-09 Michael Albinus <michael.albinus@gmx.de>
2779
2780 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2781 allows to suppress errors when polling in Emacs' main loop.
2782 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2783 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2784 (Fdbus_method_error_internal, Fdbus_send_signal)
2785 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2786 (Fdbus_register_method): Use it. (Bug#6579)
2787
5842a27b
DN
27882010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2789
2790 * alloc.c: Convert DEFUNs to standard C.
2791 * buffer.c:
2792 * bytecode.c:
2793 * callint.c:
2794 * callproc.c:
2795 * casefiddle.c:
2796 * casetab.c:
2797 * category.c:
2798 * character.c:
2799 * charset.c:
2800 * chartab.c:
2801 * cmds.c:
2802 * coding.c:
2803 * composite.c:
2804 * data.c:
2805 * dbusbind.c:
2806 * dired.c:
2807 * dispnew.c:
2808 * doc.c:
2809 * dosfns.c:
2810 * editfns.c:
2811 * emacs.c:
2812 * eval.c:
2813 * fileio.c:
2814 * filelock.c:
2815 * floatfns.c:
2816 * fns.c:
2817 * font.c:
2818 * fontset.c:
2819 * frame.c:
2820 * fringe.c:
2821 * image.c:
2822 * indent.c:
2823 * insdel.c:
2824 * keyboard.c:
2825 * keymap.c:
2826 * lread.c:
2827 * macros.c:
2828 * marker.c:
2829 * menu.c:
2830 * minibuf.c:
2831 * msdos.c:
2832 * nsfns.m:
2833 * nsmenu.m:
2834 * nsselect.m:
2835 * print.c:
2836 * process.c:
2837 * search.c:
2838 * sound.c:
2839 * syntax.c:
2840 * term.c:
2841 * terminal.c:
2842 * textprop.c:
2843 * undo.c:
2844 * w16select.c:
2845 * w32console.c:
2846 * w32fns.c:
2847 * w32font.c:
2848 * w32menu.c:
2849 * w32proc.c:
2850 * w32select.c:
2851 * window.c:
2852 * xdisp.c:
2853 * xfaces.c:
2854 * xfns.c:
2855 * xmenu.c:
2856 * xselect.c:
2857 * xsettings.c:
2858 * xsmfns.c: Likewise.
2859
d568829b
EZ
28602010-07-08 Eli Zaretskii <eliz@gnu.org>
2861
2862 * process.c (kbd_is_on_hold, hold_keyboard_input)
2863 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2864
52214050
J
28652010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2866
2867 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2868 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2869 unless USE_LUCID.
2870
313d9eb2
DN
28712010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2872
a628ad9d
JB
2873 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2874 declaration.
d8825aa3 2875
295d0d8f
DN
2876 Clean up include guards.
2877 * tparam.c: Remove include guards for config.h, string.h and code
2878 that assumes #ifndef emacs.
2879 * termcap.c:
2880 * unexalpha.c:
2881 * sysdep.c:
2882 * filemode.c:
2883 * filelock.c:
2884 * bidi.c: Likewise.
2885
49d9e6b0
DN
2886 Remove prefix-args.c
2887 * prefix-args.c: Remove file.
2888 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2889 * Makefile.in (temacs${EXEEXT}): Remove references to
2890 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2891 (mostlyclean): Remove reference to prefix-args.
2892 (prefix-args): Remove.
2893
313d9eb2
DN
2894 Simplify cstart_of_data, start_of_code and related code.
2895 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2896 (start_of_data): Merge into start_of_data function.
2897 * sysdep.c (start_of_text): Remove. Move simplified versions of
2898 it in the only users: unexaix.c and unexec.c.
2899 (read_input_waiting): Remove local declaration of quit_char.
2900 (start, etext): Remove declarations.
2901 (start_of_data): Merge with the version in mem-limits.h and move
2902 to vm-limits.c.
2903 * vm-limit.c (start_of_data): Merged and simplified version of the
2904 code formerly in mem-limits.h and sysdep.c.
2905 * unexec.c (start): New declaration, moved from sysdep.c.
2906 (start_of_text): Simplified version of the code formerly in sysdep.c.
2907 * unexaix.c (start_of_text): Simplified version of the code
2908 formerly in sysdep.c.
2909 * m/alpha.h (HAVE_TEXT_START): Remove.
2910 (TEXT_START): Move ...
2911 * unexalpha.c (TEXT_START): ... here.
2912 * s/hpux10-20.h (TEXT_START): Remove.
2913 * s/darwin.h (TEXT_START):
2914 * m/mips.h (TEXT_START):
2915 * m/macppc.h (HAVE_TEXT_START):
2916 * m/m68k.h (TEXT_START):
2917 * m/iris4d.h (TEXT_START):
2918 * m/intel386.h (TEXT_START):
2919 * m/ibmrs6000.h (TEXT_START):
2920 * m/ia64.h (HAVE_TEXT_START):
2921 * s/msdos.h (TEXT_START): Likewise.
2922
72af86bd
AS
29232010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2924
2925 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2926 (overrun_check_free, xstrdup, allocate_string)
2927 (allocate_string_data, compact_small_strings, Fmake_string)
2928 (make_unibyte_string, make_multibyte_string)
2929 (make_string_from_bytes, make_specified_string, make_float)
2930 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2931 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2932 memcpy, memmove, memset, memcmp.
2933 * atimer.c (start_atimer, set_alarm): Likewise.
2934 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2935 (mmap_realloc, init_buffer_once): Likewise.
2936 * callint.c (Fcall_interactively): Likewise.
2937 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2938 (getenv_internal_1): Likewise.
2939 * casefiddle.c (casify_object): Likewise.
2940 * ccl.c (ccl_driver): Likewise.
2941 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2942 * charset.c (load_charset_map_from_file)
2943 (load_charset_map_from_file, load_charset_map_from_vector)
2944 (Fdefine_charset_internal): Likewise.
2945 * cm.c (Wcm_clear): Likewise.
2946 * coding.c (decode_eol, decode_coding_object)
2947 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2948 * data.c (Faset): Likewise.
2949 * dired.c (directory_files_internal, file_name_completion_stat):
2950 Likewise.
2951 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2952 (clear_glyph_row, copy_row_except_pointers)
2953 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2954 (save_current_matrix, restore_current_matrix)
2955 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2956 (mirror_line_dance, scrolling_window): Likewise.
2957 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2958 Likewise.
2959 * doprnt.c (doprnt): Likewise.
2960 * editfns.c (Fuser_full_name, make_buffer_string_both)
2961 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2962 * emacs.c (sort_args): Likewise.
2963 * eval.c (Fapply, Ffuncall): Likewise.
2964 * fileio.c (Ffile_name_directory, make_temp_name)
2965 (Fexpand_file_name, search_embedded_absfilename)
2966 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2967 (auto_save_error): Likewise.
2968 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2969 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2970 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2971 (Fmake_hash_table): Likewise.
2972 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2973 * ftfont.c (ftfont_text_extents): Likewise.
2974 * getloadavg.c (getloadavg): Likewise.
2975 * image.c (define_image_type, make_image, make_image_cache)
2976 (x_create_x_image_and_pixmap, xbm_image_p)
2977 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2978 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2979 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2980 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2981 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2982 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2983 Likewise.
2984 * indent.c (scan_for_column, compute_motion): Likewise.
2985 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2986 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2987 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2988 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2989 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2990 (store_user_signal_events, menu_bar_items, tool_bar_items)
2991 (process_tool_bar_item, append_tool_bar_item)
2992 (read_char_minibuf_menu_prompt, read_key_sequence)
2993 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2994 Likewise.
2995 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2996 Likewise.
2997 * lisp.h (STRING_COPYIN): Likewise.
2998 * lread.c (Fload, read1, oblookup): Likewise.
2999 * msdos.c (Frecent_doskeys): Likewise.
3000 * nsfns.m (Fx_create_frame): Likewise.
3001 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3002 Likewise.
3003 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3004 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3005 Likewise.
3006 * nsmenu.m (ns_update_menubar): Likewise.
3007 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3008 * print.c (print_unwind, printchar, strout, print_string)
3009 (print_error_message): Likewise.
3010 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3011 (Fmake_network_process, Fnetwork_interface_list)
3012 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3013 (init_process): Likewise.
3014 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3015 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3016 Likewise.
3017 * scroll.c (do_scrolling, do_direct_scrolling)
3018 (scrolling_max_lines_saved): Likewise.
3019 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3020 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3021 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3022 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3023 (emacs_set_tty): Likewise.
3024 * term.c (encode_terminal_code, calculate_costs)
3025 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3026 Likewise.
3027 * termcap.c (tgetst1, gobble_line): Likewise.
3028 * termhooks.h (EVENT_INIT): Likewise.
3029 * tparam.c (tparam1): Likewise.
3030 * unexalpha.c (unexec): Likewise.
3031 * unexec.c (write_segment): Likewise.
3032 * unexmacosx.c (unexec_write_zero): Likewise.
3033 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3034 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3035 * w32font.c (w32font_list_family, w32font_text_extents)
3036 (w32font_list_internal, w32font_match_internal)
3037 (w32font_open_internal, compute_metrics, Fx_select_font):
3038 Likewise.
3039 * w32menu.c (set_frame_menubar, add_menu_item)
3040 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3041 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3042 * w32uniscribe.c (uniscribe_list_family): Likewise.
3043 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3044 * window.c (make_window, replace_window, set_window_buffer)
3045 (Fsplit_window): Likewise.
3046 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3047 (add_to_log, message3, x_consider_frame_title)
3048 (append_space_for_newline, extend_face_to_end_of_line)
3049 (decode_mode_spec_coding, init_glyph_string): Likewise.
3050 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3051 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3052 (face_attr_equal_p, make_realized_face, make_face_cache)
3053 (free_realized_faces, lookup_named_face, smaller_face)
3054 (face_with_height, lookup_derived_face)
3055 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3056 (Finternal_set_font_selection_order, realize_default_face)
3057 (compute_char_face, face_at_buffer_position)
3058 (face_for_overlay_string, face_at_string_position, merge_faces):
3059 Likewise.
3060 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3061 (Fx_window_property, x_create_tip_frame)
3062 (Fx_backspace_delete_keys_p): Likewise.
3063 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3064 (xfont_text_extents): Likewise.
3065 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3066 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3067 * xselect.c (x_queue_event, x_get_window_property)
3068 (receive_incremental_selection): Likewise.
3069 * xsmfns.c (x_session_check_input): Likewise.
3070 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3071 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3072 Likewise.
3073 * character.h (BCOPY_SHORT): Removed.
3074 * config.in: Regenerate.
3075 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3076 * emacs.c (main) [PROFILING]: Don't declare
3077 dump_opcode_frequencies.
3078 * lisp.h (safe_bcopy): Remove declaration.
3079 (memset) [!HAVE_MEMSET]: Declare.
3080 (memcpy) [!HAVE_MEMCPY]: Likewise.
3081 (memmove) [!HAVE_MEMMOVE]: Likewise.
3082 (memcmp) [!HAVE_MEMCMP]: Likewise.
3083 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3084 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3085 Don't define.
3086 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3087 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3088 (BCOPY_DOWNWARD_SAFE): Don't define.
3089 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3090 (memcpy) [!HAVE_MEMCPY]: Define.
3091 (memmove) [!HAVE_MEMMOVE]: Define.
3092 (memcmp) [!HAVE_MEMCMP]: Define.
3093
cb768704
J
30942010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3095
3096 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3097 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3098 New functions.
cb768704
J
3099 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3100 select on empty input mask.
3101 (init_process): Initialize kbd_is_on_hold to 0.
3102
3103 * process.h (hold_keyboard_input, unhold_keyboard_input)
3104 (kbd_on_hold_p): Declare.
3105
3106 * keyboard.c (input_available_signal): Declare.
3107 (kbd_buffer_nr_stored): New function.
3108 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3109 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3110 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3111 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3112 (tty_read_avail_input): If input is on hold, return.
3113 Don't read more that free slots in kbd_buffer (Bug#6571).
3114
3a8ce822
EZ
31152010-07-07 Eli Zaretskii <eliz@gnu.org>
3116
3117 * msdos.h:
3118 * msdos.c:
3119 * dosfns.c:
3120 * w16select.c: Convert function definitions to ANSI C.
3121
a628ad9d
JB
3122 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3123 Remove unused prototypes.
3a8ce822 3124
cf84bb53
JB
31252010-07-07 Juanma Barranquero <lekktu@gmail.com>
3126
3127 * coding.c, sysdep.c: Convert some more functions to standard C.
3128
1a4990fb
JB
31292010-07-07 Juanma Barranquero <lekktu@gmail.com>
3130
3131 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3132 (encode_coding_object): Use SPECPDL_INDEX.
3133 (syms_of_coding): Use DOS_NT.
3134
c0f2f16b
DN
31352010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3136
48fb6855
DN
3137 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3138
c0f2f16b
DN
3139 Make the function member of Lisp_Subr use standard C prototypes.
3140 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3141 (DECL_ALIGN): Add a cast for the function.
3142 * eval.c (Feval, Ffuncall): Use the proper type for each type
3143 function call.
3144
67aecef9
CY
31452010-07-06 Chong Yidong <cyd@stupidchicken.com>
3146
3147 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3148 fringe face id, so face-remapping-alist works (Bug#6091).
3149
b56ceb92
JB
31502010-07-06 Juanma Barranquero <lekktu@gmail.com>
3151
3152 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3153 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3154 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3155
7af07b96
AS
31562010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3157
3158 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3159 * lisp.h: Declare x_get_keysym_name.
3160 * keyboard.c (modify_event_symbol): Don't declare
3161 x_get_keysym_name here.
3162
69e24e34
DN
31632010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3164
3165 * ecrt0.c: Revert conversion to standard C.
3166
d3da34e0 31672010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3168
3169 * vm-limit.c (memory_warnings):
3170 * keyboard.c (modify_event_symbol):
3171 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3172 (round2, emacs_rint):
3173 * process.c (send_process, old_sigpipe): Convert function
3174 definitions and declarations to standard C.
3175
31762010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3177
3178 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3179 * xdisp.c: Convert function definitions to standard C.
3180
3181 * cm.c (cmputc): Arg C is now int, not char.
3182 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3183
00be444c
J
31842010-07-05 James Cloos <cloos@jhcloos.com>
3185
3186 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3187
3188 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3189 _NET_WM_ICON_NAME atoms.
3190
3191 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3192 and _NET_WM_ICON_NAME properties, too, matching what is
3193 done in the Gtk+ case.
3194
e4c8d29a
J
31952010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3196
ff919460
J
3197 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3198
e4c8d29a
J
3199 * xsmfns.c (SSDATA): New macro.
3200 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3201 passed to strlen/strcpy/strcat.
3202 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3203 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3204
3205 * xsettings.c (something_changedCB, parse_settings)
3206 (apply_xft_settings): Reformat prototype.
3207 (something_changedCB, init_gconf): Remove unused variable i.
3208 (read_settings): Remove unused variable long_len.
3209
3210 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3211 (xg_get_image_for_pixmap, create_dialog)
3212 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3213 (menuitem_highlight_callback, make_menu_item)
3214 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3215 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3216 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3217 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3218 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3219 (xg_tool_bar_item_expose_callback): Reformat prototype.
3220 (xg_update_menubar): GList *group => GSList *group.
3221 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3222 before use.
3223 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3224 to GTK_IMAGE (wimage).
3225
dd4c5104
DN
32262010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3227
898b4c5c
DN
3228 * atimer.c: Use "" instead of <> for local includes for
3229 consistency with the rest of the code.
3230
dd4c5104
DN
3231 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3232 * xrdb.c (get_system_name):
3233 * window.c (shrink_windows):
3234 * syntax.c (forw_comment):
3235 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3236 (ins_del_costs):
3237 * mem-limits.h (start_of_data):
3238 * lread.c (readevalloop):
3239 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3240 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3241 * frame.c (x_get_focus_frame):
3242 * floatfns.c (fmod_float):
3243 * fileio.c (choose_write_coding_system):
3244 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3245 (malloc_initialize_hook, sort_args, synchronize_locale):
3246 * doprnt.c (doprnt):
3247 * dired.c (compile_pattern):
3248 * data.c (fmod_float):
3249 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3250 (map_char_table_for_charset):
3251 * charset.c (define_charset_internal):
3252 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3253 to standard C.
3254
9a39b306 32552010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3256 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3257
3258 * lread.c (read1): Fix up last change to not mess up `c'.
3259
e6cb2cbb
JB
32602010-07-04 Juanma Barranquero <lekktu@gmail.com>
3261
3262 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3263
438105ed
JB
32642010-07-04 Juanma Barranquero <lekktu@gmail.com>
3265
3266 Fix prototypes.
3267
e5447b22 3268 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3269 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3270 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3271 arg, as required by internal_condition_case_1.
dcc7404b 3272 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3273 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3274 (analyse_first): Fix "const const".
e5447b22 3275 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3276 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3277 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3278
971de7fb
DN
32792010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3280
3281 * alloc.c: Convert function definitions to standard C.
3282 * atimer.c:
3283 * bidi.c:
3284 * bytecode.c:
3285 * callint.c:
3286 * callproc.c:
3287 * casefiddle.c:
3288 * casetab.c:
3289 * category.c:
3290 * ccl.c:
3291 * character.c:
3292 * charset.c:
3293 * chartab.c:
3294 * cmds.c:
3295 * coding.c:
3296 * composite.c:
3297 * data.c:
3298 * dbusbind.c:
3299 * dired.c:
3300 * dispnew.c:
3301 * doc.c:
3302 * doprnt.c:
3303 * ecrt0.c:
3304 * editfns.c:
3305 * fileio.c:
3306 * filelock.c:
3307 * filemode.c:
3308 * fns.c:
3309 * font.c:
3310 * fontset.c:
3311 * frame.c:
3312 * fringe.c:
3313 * ftfont.c:
3314 * ftxfont.c:
3315 * gtkutil.c:
3316 * indent.c:
3317 * insdel.c:
3318 * intervals.c:
3319 * keymap.c:
3320 * lread.c:
3321 * macros.c:
3322 * marker.c:
3323 * md5.c:
3324 * menu.c:
3325 * minibuf.c:
3326 * prefix-args.c:
3327 * print.c:
3328 * ralloc.c:
3329 * regex.c:
3330 * region-cache.c:
3331 * scroll.c:
3332 * search.c:
3333 * sound.c:
3334 * strftime.c:
3335 * syntax.c:
3336 * sysdep.c:
3337 * termcap.c:
3338 * terminal.c:
3339 * terminfo.c:
3340 * textprop.c:
3341 * tparam.c:
3342 * undo.c:
3343 * unexelf.c:
3344 * window.c:
3345 * xfaces.c:
3346 * xfns.c:
3347 * xfont.c:
3348 * xftfont.c:
3349 * xgselect.c:
3350 * xmenu.c:
3351 * xrdb.c:
3352 * xselect.c:
3353 * xsettings.c:
3354 * xsmfns.c:
3355 * xterm.c: Likewise.
3356
ae492bec
EZ
33572010-07-03 Eli Zaretskii <eliz@gnu.org>
3358
76ea4cc9
EZ
3359 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3360 frames other than the initial one. Fix reversal of colors when
3361 `reverse' is specified in the frame parameters. Call
3362 update_face_from_frame_parameter instead of
3363 internal-set-lisp-face-attribute. Initialize screen colors from
3364 initial_screen_colors[] when f->default_face_done_p is zero,
3365 instead of depending on being called with default-frame-alist as
3366 the alist argument.
3367
3368 * xfaces.c (update_face_from_frame_parameter): Move out of
3369 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3370 with HAVE_WINDOW_SYSTEM.
3371
1e6255ae
EZ
3372 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3373 to menu-bar-mode, if not set in the frame parameters or in
3374 default-frame-alist.
3375
ae492bec
EZ
3376 * w32console.c (sys_tputs): Adjust argument list to prototype in
3377 term.c.
3378
3a35a84c
JB
33792010-07-03 Juanma Barranquero <lekktu@gmail.com>
3380
3381 * lisp.h (memory_warnings): Fix prototype.
3382
3383 * cm.h (evalcost): Fix prototype.
3384
3385 * cm.c (evalcost): Fix arg type.
3386
c532d349
DN
33872010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3388
3389 * term.c (term_clear_mouse_face, Fidentity):
3390 * syssignal.h (signal_handler_t):
3391 * lisp.h (memory_warnings):
3392 * coding.h (preferred_coding_system):
3393 * cm.h (evalcost):
3394 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3395
c0b36d46
EZ
33962010-07-02 Eli Zaretskii <eliz@gnu.org>
3397
3398 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3399 from prototypes.
3400
3401 * msdos.h (load_pixmap): Don't define away.
3402
383e0970
J
34032010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3404
f57e2426
J
3405 * lisp.h:
3406 * atimer.h: Remove define for P_.
3407
3408 * alloc.c: Remove __P and P_ from .c and .m files.
3409 * atimer.c:
3410 * buffer.c:
3411 * callint.c:
3412 * category.c:
3413 * charset.c:
3414 * chartab.c:
3415 * cm.c:
3416 * coding.c:
3417 * composite.c:
3418 * data.c:
3419 * dired.c:
3420 * dispnew.c:
3421 * doc.c:
3422 * editfns.c:
3423 * emacs.c:
3424 * eval.c:
3425 * fileio.c:
3426 * filelock.c:
3427 * fns.c:
3428 * font.c:
3429 * fontset.c:
3430 * frame.c:
3431 * ftfont.c:
3432 * ftxfont.c:
3433 * gmalloc.c:
3434 * gtkutil.c:
3435 * image.c:
3436 * indent.c:
3437 * intervals.c:
3438 * keyboard.c:
3439 * keymap.c:
3440 * lread.c:
3441 * marker.c:
3442 * menu.c:
3443 * minibuf.c:
3444 * print.c:
3445 * process.c:
3446 * scroll.c:
3447 * search.c:
3448 * sound.c:
3449 * strftime.c:
3450 * syntax.c:
3451 * sysdep.c:
3452 * term.c:
3453 * terminal.c:
3454 * textprop.c:
3455 * unexalpha.c:
3456 * w32console.c:
3457 * w32fns.c:
3458 * w32font.c:
3459 * w32menu.c:
3460 * w32term.c:
3461 * w32uniscribe.c:
3462 * window.c:
3463 * xdisp.c:
3464 * xfaces.c:
3465 * xfns.c:
3466 * xfont.c:
3467 * xftfont.c:
3468 * xmenu.c:
3469 * xselect.c:
3470 * xterm.c: Likewise.
3471
383e0970 3472 Remove P_ and __P macros.
f57e2426
J
3473 * atimer.h: Remove P_ and __P macros.
3474 * buffer.h:
383e0970
J
3475 * category.h:
3476 * ccl.h:
3477 * character.h:
3478 * charset.h:
3479 * cm.h:
3480 * coding.h:
3481 * composite.h:
3482 * dispextern.h:
3483 * disptab.h:
9e892c8d 3484 * dosfns.h:
383e0970
J
3485 * font.h:
3486 * fontset.h:
3487 * frame.h:
3488 * gtkutil.h:
3489 * indent.h:
3490 * intervals.h:
3491 * keyboard.h:
3492 * keymap.h:
3493 * lisp.h:
3494 * macros.h:
3495 * md5.h:
3496 * menu.h:
3497 * msdos.h:
3498 * nsterm.h:
3499 * puresize.h:
3500 * region-cache.h:
3501 * syntax.h:
3502 * syssignal.h:
3503 * systime.h:
3504 * termhooks.h:
9e892c8d 3505 * w32font.h:
383e0970
J
3506 * w32term.h:
3507 * widget.h:
3508 * window.h:
3509 * xgselect.h:
3510 * xsettings.h:
3511 * xterm.h: Likewise.
3512
98601119
DN
35132010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3514
d9170db5
DN
3515 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3516
98601119
DN
3517 Cleanup old code.
3518 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3519 * syssignal.h: Remove code for Lynx, not supported anymore.
3520 * vm-limit.c: Remove unused code the depends on emacs not being
3521 defined and NO_LIM_DATA being defined.
3522 * mem-limits.h: Remove dead code.
3523
1f984e12
J
35242010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3525
c49d071a
J
3526 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3527
9d5405ec
J
3528 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3529 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3530
7a18115b
J
3531 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3532 parameters, they are already absolute.
3533
a628ad9d
JB
3534 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3535 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3536
a628ad9d 3537 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3538
a628ad9d
JB
3539 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3540 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3541
a628ad9d
JB
3542 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3543 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3544
c1ef4455
CY
35452010-06-30 Chong Yidong <cyd@stupidchicken.com>
3546
3547 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3548 check default-frame-alist.
3549
ce8f5a9a
AS
35502010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3551
3552 * process.c (create_process): Avoid using invalid file descriptors.
3553
3554 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3555
bf935339
J
35562010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3557
3558 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3559 Improve documentation. Return font regardless of use_system_font.
3560 (syms_of_xsettings): Improve documentation for font-use-system-font.
3561
7c33a057
CY
35622010-07-10 Chong Yidong <cyd@stupidchicken.com>
3563
2ec1b5ee
CY
3564 * xfaces.c (realize_face): Garbage the frame if a face is removed
3565 (Bug#6593).
3566
35672010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3568
3569 * keyboard.c: Remove duplicate <setjmp.h>.
3570 (read_key_sequence): Remove volatile qualifiers.
3571
35722010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3573
3574 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3575 (struct glyph_row): New members left_fringe_offset and
3576 right_fringe_offset.
3577
3578 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3579 specially.
3580 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3581 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3582
3583 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3584 Take account of bitmap offset.
2ec1b5ee
CY
3585 (draw_window_fringes): Take account of window vscroll.
3586 (update_window_fringes): Likewise. Extend top-aligned top indicator
3587 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3588 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3589 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3590
35912010-07-04 Juanma Barranquero <lekktu@gmail.com>
3592
3593 * w32fns.c (Qtooltip): Declare.
3594 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3595
35962010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3597
3598 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3599 grab on just Press (Bug#6499).
3600
36012010-07-02 Chong Yidong <cyd@stupidchicken.com>
3602
3603 * frame.c (Qtooltip): New var.
3604 (delete_frame): Use it. Fix faulty if statement. Don't update
3605 mode line for tooltip frames. Suggested by Martin Rudalics.
3606
3607 * xfns.c (x_create_tip_frame):
3608 * w32fns.c (x_create_tip_frame): Use it.
3609
36102010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3611
3612 * xftfont.c (xftfont_open): Check font width one by one also when
3613 spacing is dual.
3614
3615 * ftfont.c (ftfont_open): Ditto.
3616
6259c2ec
GM
36172010-06-30 Glenn Morris <rgm@gnu.org>
3618
a46007e9
GM
3619 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3620
6259c2ec
GM
3621 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3622
3623 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3624 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3625 * s/darwin.h (SYSTEM_MALLOC):
3626 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3627
5d1d3d04
J
36282010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3629
3630 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3631 (ns_get_screen): Don't assign integer to f.
3632 (Fx_display_color_cells): Declarations before statements.
3633
e547b051
J
36342010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3635
5fc8e5bc
J
3636 * xfns.c (x_default_font_parameter): Remove got_from_system
3637 (Bug#6526).
3638
e547b051
J
3639 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3640 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3641 defines based on what configure finds.
3642
3643 * xterm.c (XTflash): Use gtk_widget_get_window.
3644 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3645 gtk_adjustment_get_page_size.
3646 (handle_one_xevent): Use gtk_widget_get_mapped.
3647 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3648 messages.
3649
3650 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3651
3652 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3653 HAVE_GTK_FILE_SELECTION_NEW.
3654
3655 * gtkutil.c (xg_display_open, xg_display_close): Remove
3656 HAVE_GTK_MULTIDISPLAY, it is always defined.
3657 (xg_display_open): Return type is void.
3658 (gtk_widget_set_has_window)
3659 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3660 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3661 (gtk_adjustment_set_page_increment)
3662 (gtk_adjustment_get_step_increment): #define these if not found
3663 by configure.
3664 (remove_submenu): New define based on Gtk+ version.
3665 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3666 gtk_widget_get_window.
3667 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3668 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3669 (create_dialog): Use gtk_dialog_get_action_area and
3670 gtk_dialog_get_content_area.
3671 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3672 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3673 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3674 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3675 g_object_ref and g_object_unref.
3676 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3677 gtk_widget_get_sensitive.
3678 (xg_update_submenu): Use remove_submenu.
3679 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3680 properties instead to get old x and y position.
3681 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3682 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3683 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3684 (xg_get_tool_bar_widgets): New function.
3685 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3686 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3687 (toolbar_set_orientation): New #define based on if configure
3688 finds gtk_orientable_set_orientation.
3689 (xg_create_tool_bar): Call toolbar_set_orientation.
3690 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3691 instead of gtk_box_pack_start_defaults.
3692
b9229673
CY
36932010-06-28 Chong Yidong <cyd@stupidchicken.com>
3694
3695 * cmds.c (Fdelete_backward_char): Move into Lisp.
3696
bbc803b0
DN
36972010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3698
3699 * s/freebsd.h (BSD4_2): Remove redundant definition.
3700 bsd-common.h defines it already.
3701
6431f2e6
CY
37022010-06-27 Chong Yidong <cyd@stupidchicken.com>
3703
3704 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3705 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3706 tool-bar-mode, which are now set using these X resources at
3707 startup, to determine the defaults (Bug#2249).
3708
3709 * w32fns.c (Fx_create_frame):
3710 * nsfns.m (Fx_create_frame): Likewise.
3711
3712 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3713
8c079ebb
JB
37142010-06-24 Juanma Barranquero <lekktu@gmail.com>
3715
3716 * gtkutil.c (xg_update_scrollbar_pos):
3717 Avoid C99 mid-block variable declaration.
3718
e9b7ab96
JD
37192010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3720
bc869eca
JD
3721 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3722
2b7e356a 3723 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3724
3725 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3726 if height is less than scroll bar min size.
3727 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3728
e9b7ab96
JD
3729 * xfns.c (x_default_font_parameter): Try to open font from system
3730 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3731
a628ad9d 37322010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3733
3734 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3735
70c4cfbb
EZ
37362010-06-20 Eli Zaretskii <eliz@gnu.org>
3737
3738 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3739 most-positive-fixnum, be extra accurate when scrolling window
3740 start, to avoid missing the cursor line.
3741
ad5a12b5
EZ
37422010-06-19 Eli Zaretskii <eliz@gnu.org>
3743
3744 * xdisp.c (try_scrolling): Compute the limit for searching point
3745 in forward scroll from scroll_max, instead of an arbitrary limit
3746 of 10 screen lines. See
3747 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3748 and
3749 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3750 for details.
3751
2a64315a 37522010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3753
3754 * editfns.c (Fbyte_to_string): Pacify compiler.
3755
288cf4e9
SM
37562010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3757
3758 * lread.c (read1): Phase out old-style backquotes a bit more.
3759
6e6e5760
EZ
37602010-06-12 Eli Zaretskii <eliz@gnu.org>
3761
cbc4fd20
EZ
3762 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3763 bidimirror.h.
3764
3765 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3766
317fbf33
EZ
3767 * bidi.c (bidi_initialize): Remove explicit initialization of
3768 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3769 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3770 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3771
3772 * biditype.h: New file.
3773
cbc4fd20
EZ
3774 * bidimirror.h: New file.
3775
6e6e5760
EZ
3776 * window.c (syms_of_window): Doc fix (bug#6409).
3777
4176cba2
RF
37782010-06-12 Romain Francoise <romain@orebokech.com>
3779
3780 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3781 ediff-hook.
3782
cb4bfcb5
GM
37832010-06-10 Glenn Morris <rgm@gnu.org>
3784
64c60c2f
GM
3785 * editfns.c (Fbyte_to_string): Pacify compiler.
3786
cb4bfcb5
GM
3787 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3788
2ec1b5ee
CY
37892010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3790
3791 * alloc.c (Fmake_byte_code): Don't access undefined argument
3792 (Bug#6517).
3793
37942010-06-25 Chong Yidong <cyd@stupidchicken.com>
3795
3796 * xdisp.c (next_element_from_image): Ensure that after-strings are
3797 read the next time we hit handle_stop (Bug#1336).
3798
37992010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3800
3801 * lread.c (read1): Signal error if #s is not followed by paren.
3802
38032010-06-19 Chong Yidong <cyd@stupidchicken.com>
3804
3805 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3806
3807 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3808
38092010-06-15 Glenn Morris <rgm@gnu.org>
3810
3811 * editfns.c (Fbyte_to_string): Pacify compiler.
3812
e454a4a3
SM
38132010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3814
3815 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3816 Check `object's type before accessing its guts.
3817
c1b1acc2
DN
38182010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3819
3820 * s/usg5-4.h: Fix previous change.
3821 Suggested by Lawrence Mitchell <wence@gmx.li>
3822
657d4c0b
AS
38232010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3824
3825 * minibuf.c (Fall_completions): Add more checks.
3826
9b27fd9f
JB
38272010-06-08 Juanma Barranquero <lekktu@gmail.com>
3828
3829 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3830
a99ebb40
DN
38312010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3832
d7c5d87d
DN
3833 * lread.c (X_OK): Remove, unused.
3834
0263a941
DN
3835 * dispnew.c: Remove obsolete comment.
3836
a99ebb40
DN
3837 Remove INCLUDED_FCNTL.
3838 * xterm.c (INCLUDED_FCNTL):
3839 * callproc.c (INCLUDED_FCNTL):
3840 * alloc.c (INCLUDED_FCNTL):
3841 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3842 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3843
13b5221f
MR
38442010-06-07 Martin Rudalics <rudalics@gmx.at>
3845
3846 * window.c (Fselect_window): Move `record_buffer' up to the
3847 beginning of this function, so the buffer gets recorded
3848 even if the selected window does not change.
3849 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3850
5220357f
JB
38512010-06-07 Juanma Barranquero <lekktu@gmail.com>
3852
3853 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3854 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3855
3085237c
DN
38562010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3857
3858 Remove BSTRING related code, all platforms define it.
3859 * s/usg5-4.h (BSTRING): Remove definition.
3860 * s/template.h (BSTRING):
3861 * s/msdos.h (BSTRING):
3862 * s/ms-w32.h (BSTRING):
3863 * s/hpux10-20.h (BSTRING):
3864 * s/gnu-linux.h (BSTRING):
3865 * s/darwin.h (BSTRING):
3866 * s/cygwin.h (BSTRING):
3867 * s/bsd-common.h (BSTRING):
3868 * s/aix4-2.h (BSTRING): Likewise.
3869 * sysdep.c: Remove code depending on BSTRING not being defined.
3870
409f2919
JB
38712010-06-05 Juanma Barranquero <lekktu@gmail.com>
3872
3873 Remove obsolete macro BASE_LEADING_CODE_P.
3874 * character.h (BASE_LEADING_CODE_P): Remove.
3875 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3876 * buffer.c (Fset_buffer_multibyte):
3877 * indent.c (scan_for_column, compute_motion):
3878 * insdel.c (count_combining_before, count_combining_after):
3879 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3880
087fc47a
JB
38812010-06-04 Juanma Barranquero <lekktu@gmail.com>
3882
3883 Turn `directory-sep-char' into a noop.
3884
3885 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3886 (DIRECTORY_SEP): Define unconditionally.
3887
3888 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3889
3890 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3891 call dostounix_filename directly.
3892
3893 * fileio.c (CORRECT_DIR_SEPS): Remove.
3894 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3895 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3896 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3897 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3898
3899 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3900 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3901
0eb7675e
AS
39022010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3903
a628ad9d
JB
3904 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3905 (Bug#6346)
0eb7675e 3906
78edd3b7
JB
39072010-06-03 Juanma Barranquero <lekktu@gmail.com>
3908
3909 * ccl.c (Fccl_program_p): Fix typo in docstring.
3910
eb697db5
DN
39112010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3912
3913 Move UNEXEC definition to autoconf.
3914 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3915 * s/sol2-10.h (UNEXEC):
3916 * s/irix6-5.h (UNEXEC):
3917 * s/hpux10-20.h (UNEXEC):
3918 * s/gnu-linux.h (UNEXEC):
3919 * s/darwin.h (UNEXEC):
3920 * s/cygwin.h (UNEXEC):
3921 * s/bsd-common.h (UNEXEC):
3922 * s/aix4-2.h (UNEXEC):
3923 * m/alpha.h (UNEXEC): Likewise.
3924 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3925
aa3830c4
JB
39262010-06-03 Juanma Barranquero <lekktu@gmail.com>
3927
3928 Remove obsolete pre-unicode2 macros.
3929 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3930 * composite.c (composition_reseat_it):
3931 * data.c (Faset):
3932 * fns.c (Ffillarray):
3933 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3934 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3935
d234d13e
JL
39362010-06-03 Juri Linkov <juri@jurta.org>
3937
3938 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3939 (Fswitch_to_buffer): Remove unused variable `err'.
3940
0d4bcf4d
GM
39412010-06-03 Glenn Morris <rgm@gnu.org>
3942
e23dc1e2
GM
3943 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3944
05b09564
GM
3945 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3946 now that AH_BOTTOM does it.
3947
824e2978
GM
3948 * m/hp800.h (HAVE_ALLOCA):
3949 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3950
0d4bcf4d
GM
3951 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3952 Remove NOT_C_CODE tests, it is always true now.
3953
c55d2abf
DN
39542010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3955
08a494a3
DN
3956 Fix config.h includes.
3957 * xsettings.c:
3958 * xgselect.c:
3959 * nsterm.m:
3960 * nsselect.m:
3961 * nsimage.m:
3962 * nsfont.m:
3963 * nsfns.m:
3964 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3965 other files do.
3966
75934b1d
DN
3967 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3968
9f32a766
DN
3969 * s/sol2-6.h: Remove obsolete comments.
3970
c55d2abf
DN
3971 Remove unnecessary alloca.h includes.
3972 * keymap.c: Do not include alloca.h, config.h does that.
3973 * sysdep.c: Likewise. Do not define fwrite, not used.
3974
06ac62b4
SM
39752010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3976
3977 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3978 the HAVE_TERMIO where it belongs (bug#6149).
3979
1ab8293c
SM
39802010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3981
3982 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3983 of bug#6305).
3984
6dcfd253
EZ
39852010-05-30 Eli Zaretskii <eliz@gnu.org>
3986
3987 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3988 state is always cached (bug#6306).
3989
6d26bbb2
EZ
39902010-05-29 Eli Zaretskii <eliz@gnu.org>
3991
06fa4a23
EZ
3992 Fix cursor motion in bidi-reordered continued lines.
3993 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3994 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3995 over continuation lines in bidi-reordered buffers. Return
3996 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3997 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3998
f5783df3
MA
39992010-05-28 Michael Albinus <michael.albinus@gmx.de>
4000
4001 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4002
7d56b2dd
KH
40032010-05-28 Kenichi Handa <handa@m17n.org>
4004
4005 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4006 Don't sheck SPEC if it is nil.
4007 (font_list_entities): Call font_delete_unmatched if
b925d231 4008 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4009
e58d4ff7
GM
40102010-05-28 Glenn Morris <rgm@gnu.org>
4011
4012 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4013
f1a5d776
CY
40142010-05-27 Chong Yidong <cyd@stupidchicken.com>
4015
4016 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4017 whether to trash.
4018 (internal_delete_file, Frename_file): Callers changed.
4019 (delete_by_moving_to_trash): Doc fix.
4020 (Fdelete_directory_internal): Don't move to trash.
4021
4022 * callproc.c (delete_temp_file):
4023 * buffer.c (Fkill_buffer): Callers changed.
4024
4025 * lisp.h: Update prototype.
4026
f44a59e6
CY
40272010-05-27 Chong Yidong <cyd@stupidchicken.com>
4028
4029 * xdisp.c (redisplay_window): After redisplay, check if point is
4030 still valid before setting it (Bug#6177).
4031
81ac4f35
GM
40322010-05-27 Glenn Morris <rgm@gnu.org>
4033
4034 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4035 Convert comments to Makefile format.
4036
4037 * Makefile.in (bootstrap-clean): No more Makefile.c.
4038
ccd89fb3
GM
40392010-05-26 Glenn Morris <rgm@gnu.org>
4040
90278cb6
GM
4041 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4042 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4043
ccd89fb3
GM
4044 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4045 Remove.
4046 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4047
b7050583
KH
40482010-05-26 Kenichi Handa <handa@m17n.org>
4049
4050 * composite.c (composition_compute_stop_pos): Fix condition for
4051 backward scanning.
4052
e5458003
GM
40532010-05-25 Glenn Morris <rgm@gnu.org>
4054
c345fe90
GM
4055 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4056 Move before TEMACS_LDFLAGS.
4057 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4058 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4059
2e0689ab
GM
4060 * Makefile.in (NOT_C_CODE): No longer define.
4061 (config.h): No longer include.
4062
8009a5e8
GM
4063 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4064 variables it may reference.
4065
e5458003
GM
4066 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4067 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4068
10f72a37
KH
40692010-05-25 Kenichi Handa <handa@m17n.org>
4070
4071 * dispextern.h (struct composition_it): New members rule_idx and
4072 charpos.
4073
4074 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4075 that the character positions of IT point the last character of the
4076 current grapheme cluster.
4077 (next_element_from_composition): Don't change character positions
4078 of IT.
4079 (append_composite_glyph): Set glyph->charpos to
4080 it->cmp_it.charpos.
4081
4082 * composite.c (autocmp_chars): Change the first argument to RULE,
4083 and try composition with RULE only.
4084 (composition_compute_stop_pos): Record the index number of the
4085 composition rule in CMP_IT->rule_idx.
4086 (composition_reseat_it): Call autocmp_chars repeatedly until the
4087 correct rule of the composition is found.
4088 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4089 is at the last character of the current grapheme cluster when
4090 CMP_IT->reversed_p is nonzero.
4091
171eda53 40922010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4093
171eda53
SM
4094 * editfns.c (Fbyte_to_string): New function.
4095
66a9f7f4
SM
40962010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4097
4098 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4099 Suggested by Masatake YAMATO <yamato@redhat.com>.
4100
d8c315d1
EZ
41012010-05-23 Eli Zaretskii <eliz@gnu.org>
4102
171eda53 4103 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4104
f5b416d2 41052010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4106
4107 * s/netbsd.h: If terminfo is found, use it in preference to
4108 termcap. (Bug#6190) [Backport from trunk]
4109
0416466c
EZ
41102010-05-19 Eli Zaretskii <eliz@gnu.org>
4111
11117830 4112 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4113
4114 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4115 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4116 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4117 and maxpos members instead of start.pos and end.pos, respectively.
4118
4119 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4120 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4121 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4122 (try_window_reusing_current_matrix, try_window_id):
4123 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4124 (init_from_display_pos, init_iterator): Use EMACS_INT for
4125 character and byte positions.
66a9f7f4 4126 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4127 arguments for minimum and maximum buffer positions seen by
4128 display_line for this row. Don't use iterator to find the
4129 position following the maximum one; instead, increment the
11117830
EZ
4130 position found by display_line directly. Fix logic; eol_pos
4131 should be tested before the rest. Handle the case of characters
4132 delivered from display vector (bug#6036). Fix tests related to
4133 it->method. Handle the truncated_on_right_p rows.
4134 (RECORD_MAX_MIN_POS): New macro.
4135 (display_line): Use it to record the minimum and maximum buffer
4136 positions for glyphs in the row being assembled. Record the
4137 position of the newline that terminates the line. If word wrap is
4138 in effect, restore minimum and maximum positions seen up to the
4139 wrap point, when iterator returns to it.
4140 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4141 row and cursor not already at point. Restore original pre-bidi
4142 code for unidirectional buffers.
d36fe237
EZ
4143
4144 * dispnew.c (increment_row_positions, check_matrix_invariants):
4145 Increment and check row->start.pos and row->end.pos, in addition
4146 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4147
11117830
EZ
4148 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4149 Display truncated_on_left_p and truncated_on_right_p flags.
4150 Formatting fixes.
4151 (pmtxrows): Display the ordinal number of each row. Don't display
4152 rows beyond the last one.
4153
4154 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4155 it is not copied by bidi_copy_it.
4156
6e83d800
EZ
41572010-05-22 Eli Zaretskii <eliz@gnu.org>
4158
4159 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4160 (Bug#6237)
4161
110683ad
CY
41622010-05-22 Chong Yidong <cyd@stupidchicken.com>
4163
4164 * image.c (Fimage_flush): Rename from image-refresh.
4165
98fe5161
CY
41662010-05-21 Chong Yidong <cyd@stupidchicken.com>
4167
4168 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4169 just one window.
4170
4171 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4172 (clear_image_cache): If the number of cached images is unusually
4173 large, decrease the cache eviction delay (Bug#6230).
4174
e8752c66
GM
41752010-05-21 Glenn Morris <rgm@gnu.org>
4176
66dbf213
GM
4177 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4178 Move these rules to ns.mk.
4179 * ns.mk: New file.
4180
04384b2d
GM
4181 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4182
e8752c66
GM
4183 * Makefile.in (CANNOT_DUMP): New, set by configure.
4184 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4185
2e2bbddb
JL
41862010-05-20 Juri Linkov <juri@jurta.org>
4187
4188 * fileio.c (Fdelete_file): Change interative spec to use
4189 `read-file-name' like in `find-file-read-args' where the default
4190 value is `default-directory' instead of `buffer-file-name'.
4191 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4192
31c4aaf6
KR
41932010-05-20 Kevin Ryde <user42@zip.com.au>
4194
4195 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4196 (Voverriding_terminal_local_map, Vsystem_key_alist)
4197 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4198
9d5cf9b6
GM
41992010-05-20 Glenn Morris <rgm@gnu.org>
4200
4201 * Makefile.in (DEPDIR): New constant.
4202 (DEPFLAGS): Set with configure, not cpp.
4203 (MKDEPDIR): New, set by configure.
4204 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4205 (clean): Use $DEPDIR.
4206 (deps_frag): Include from configure.
4207 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4208 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4209
ead6f8f5
EZ
4210 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4211 reallocation of the cache. (Bug#6210)
4212
7f34aec3
GM
42132010-05-19 Glenn Morris <rgm@gnu.org>
4214
d494e8f2
GM
4215 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4216
c1d0dcfd
GM
4217 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4218 (GNULIB_VAR): Remove.
4219 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4220
4221 * m/ibms390x.h (LINKER):
4222 * m/macppc.h (LINKER) [GNU_LINUX]:
4223 * s/aix4-2.h (ORDINARY_LINK):
4224 * s/cygwin.h (LINKER):
4225 * s/darwin.h (ORDINARY_LINK):
4226 * s/gnu.h (ORDINARY_LINK):
4227 * s/netbsd.h (LINKER):
4228 * s/usg5-4.h (ORDINARY_LINK):
4229 Move to configure.
4230
7f34aec3
GM
4231 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4232
754790b6
CY
42332010-05-18 Chong Yidong <cyd@stupidchicken.com>
4234
4235 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4236 prevent stack overflow if number of arguments is too large
4237 (Bug#6214).
4238
161e44d1
JB
42392010-05-18 Juanma Barranquero <lekktu@gmail.com>
4240
4241 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4242
be4ff9da
GM
42432010-05-18 Glenn Morris <rgm@gnu.org>
4244
9539dc5d
GM
4245 * s/gnu-linux.h: Combine two conditionals.
4246
4247 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4248 $(POST_ALLOC_OBJ).
4249
40dc6bf4
GM
4250 * Makefile.in (RALLOC_OBJ): New, set by configure.
4251 (rallocobj): Replace with the previous variable.
4252 (otherobj): Use $RALLOC_OBJ.
4253
4254 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4255 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4256
be4ff9da
GM
4257 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4258 (gmallocobj, vmlimitobj): Replace with previous two variables.
4259 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4260
16455a85
GM
42612010-05-17 Glenn Morris <rgm@gnu.org>
4262
4263 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4264 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4265
5fdb7468
GM
42662010-05-16 Glenn Morris <rgm@gnu.org>
4267
7ca1f3f9
GM
4268 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4269
7541dad5
GM
4270 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4271
da53fab9
GM
4272 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4273 trailing "/".
4274
b02a6645
GM
4275 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4276 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4277
8877ca0f
GM
4278 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4279 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4280 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4281 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4282 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4283
5fdb7468
GM
4284 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4285 Remove ${STARTFLAGS}, nothing ever sets it.
4286
95adb4b1
DN
42872010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4288
4289 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4290
676b6304
GM
42912010-05-16 Glenn Morris <rgm@gnu.org>
4292
9beab9ce
GM
4293 * Makefile.in (LIBX_BASE): Always define.
4294
8a95f0e7
GM
4295 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4296
676b6304
GM
4297 * Makefile.in (LIBXT): Always define.
4298
6e546d18
GM
42992010-05-15 Glenn Morris <rgm@gnu.org>
4300
4235ca47 4301 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4302
6e546d18
GM
4303 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4304 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4305
8c5ff6dd
KR
43062010-05-15 Ken Raeburn <raeburn@raeburn.org>
4307
560bb7ae 4308 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4309 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4310
8b4eb796
KR
4311 * emacs.c (main): Initialize initial-environment and
4312 process-environment before generating from env, not after.
4313
8c5ff6dd
KR
4314 Handle --version reasonably in CANNOT_DUMP configuration.
4315 * emacs.c (emacs_version, emacs_copyright): New string variables.
4316 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4317 (syms_of_emacs): Defvar them, and initialize them from the C
4318 string variables.
4319 (main): If initialization hasn't been done, print initial version
4320 info from the C strings, instead of starting an interactive session.
4321
dbd3f723
EZ
43222010-05-15 Eli Zaretskii <eliz@gnu.org>
4323
d20e1419
EZ
4324 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4325 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4326 (bidi_paragraph_init): Remove redundant assertion that we are at
4327 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4328
4329 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4330 (syms_of_xdisp): Defsubr it.
4331
d36fe237
EZ
4332 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4333
dbd3f723
EZ
4334 * Makefile.in: Fix MSDOS-related comments.
4335
02be533b
GM
43362010-05-15 Glenn Morris <rgm@gnu.org>
4337
1a82cca9
GM
4338 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4339 (really-lwlib, really-oldXMenu): Always define.
4340 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4341
3df7b338
GM
4342 * Makefile.in: Simplify cpp conditional.
4343
2b5f541b
GM
4344 * Makefile.in (${ns_appdir}): Simplify using umask.
4345
02be533b
GM
4346 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4347
4e2db1fe
SM
43482010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4349
4350 * eval.c (specbind): Remove left-over duplicate test.
4351 Disallow let-binding frame-local vars. Add comment.
4352
4b292a22
EZ
43532010-05-14 Eli Zaretskii <eliz@gnu.org>
4354
2fe72643 4355 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4356 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4357 (bidi_init_it): Call it.
4358 (bidi_cache_iterator_state): Enlarge the cache if needed.
4359
4e2db1fe 4360 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4361 bidi_get_next_char_visually. All callers changed.
4362
82ebc97b
KH
43632010-05-14 Kenichi Handa <handa@m17n.org>
4364
4365 * dispextern.h (struct composition_it): New member reversed_p.
4366
4367 * composite.c (composition_compute_stop_pos): Search backward if
4368 ENDPOS < CHARPOS.
4369 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4370 Set CMP_IT->reversed_p.
b4b6e17e 4371 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4372
4e2db1fe
SM
4373 * xdisp.c (set_iterator_to_next):
4374 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4375 scanning backward. Call composition_compute_stop_pos if scan
4376 direction is changed.
4377 (next_element_from_buffer): Call composition_compute_stop_pos with
4378 negative ENDPOS if we are scanning backward.
4379 (next_element_from_composition): Pay attention to
4380 IT->cmp_it.reversed_p.
4381
0e5d7800
KH
43822010-05-14 Kenichi Handa <handa@m17n.org>
4383
560bb7ae 4384 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4385
cb027b32
GM
43862010-05-14 Glenn Morris <rgm@gnu.org>
4387
177b0288
GM
4388 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4389
fbc00890
GM
4390 * Makefile.in (mktime, X11, register): Move undefs to configure.
4391
f14d1dfd
GM
4392 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4393 (MSDOS_X_OBJ): New variable.
4394 (MSDOS_SUPPORT_REAL): New constant.
4395 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4396 (obj): Use MSDOS_X_OBJ.
4397 (lisp): Use MSDOS_SUPPORT as a variable.
4398
11842bd8
GM
4399 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4400 (GPM_MOUSE_SUPPORT): Now it's a constant.
4401 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4402 not cpp.
4403
489d31a4 4404 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4405 (ns_appresdir): Remove, unused.
e20f1f07 4406
489d31a4
GM
4407 * Makefile.in (SHELL): Move outside cpp section.
4408
cb027b32
GM
4409 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4410
5a903aa9
GM
44112010-05-13 Glenn Morris <rgm@gnu.org>
4412
3369c79f
GM
4413 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4414 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4415
d5e982a6
GM
4416 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4417 HAVE_WINDOW_SYSTEM must be too.
4418
6192e163
GM
4419 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4420 (lisp): Remove WINNT_SUPPORT.
4421
472c5d6b
GM
4422 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4423 Let configure set these variables (to empty) in this case as well.
4424
0116466b
GM
4425 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4426 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4427
5a903aa9
GM
4428 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4429 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4430 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4431 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4432 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4433 the values output by configure.
5a903aa9
GM
4434 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4435
1a0d7c06
GM
44362010-05-12 Glenn Morris <rgm@gnu.org>
4437
b5457f14
GM
4438 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4439 (LINKER_WAS_SPECIFIED): Remove.
4440
1a0d7c06
GM
4441 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4442 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4443 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4444 * s/cygwin.h (LIB_GCC):
4445 * s/freebsd.h (LIB_GCC):
4446 * s/gnu-linux.h (LIB_GCC):
4447 * s/msdos.h (LIB_GCC):
4448 * s/netbsd.h (LIB_GCC):
4449 Move to configure.
4450
3ffd4615 44512010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4452
4453 * ftfont.c: Fix incorrect parentheses of #if condition for
4454 definining M17N_FLT_USE_NEW_FEATURE.
4455
acddf8ae
GM
44562010-05-11 Glenn Morris <rgm@gnu.org>
4457
4458 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4459 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4460
ae5e04fa
EZ
44612010-05-10 Eli Zaretskii <eliz@gnu.org>
4462
4463 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4464 unibyte buffers. See
4465 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4466
7490175b
GM
44672010-05-10 Glenn Morris <rgm@gnu.org>
4468
97efb629
GM
4469 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4470 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4471 (LIBES): Use LIBS_SYSTEM as a variable.
4472 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4473 * s/aix4-2.h (LIBS_SYSTEM):
4474 * s/freebsd.h (LIBS_SYSTEM):
4475 * s/hpux10-20.h (LIBS_SYSTEM):
4476 * s/sol2-6.h (LIBS_SYSTEM):
4477 * s/unixware.h (LIBS_SYSTEM):
4478 Move to configure.
4479
7490175b
GM
4480 * s/aix4-2.h (MAIL_USE_LOCKF):
4481 * s/bsd-common.h (MAIL_USE_FLOCK):
4482 * s/darwin.h (MAIL_USE_FLOCK):
4483 * s/gnu-linux.h (MAIL_USE_FLOCK):
4484 * s/irix6-5.h (MAIL_USE_FLOCK):
4485 * s/template.h (MAIL_USE_FLOCK):
4486 Move to configure.
4487
0235128c 44882010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4489
4490 * Version 23.2 released.
4491
0235128c 44922010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4493
4494 * composite.c (autocmp_chars): Save point as marker before calling
4495 auto-composition-function (Bug#5984).
4496
4497 * lisp.h (restore_point_unwind): Add prototype.
4498
4499 * fileio.c (restore_point_unwind): Remove static attribute.
4500
0235128c 45012010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4502
4503 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4504 new feature of libotf and m17n-flt.
0235128c
SM
4505 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4506 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4507 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4508 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4509 that OUT is NULL. Use OTF_drive_gsub_with_log and
4510 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4511 OTF_drive_gpos.
4512 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4513 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4514 Setup mflt_enable_new_feature and mflt_try_otf.
4515
4721152c
J
45162010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4517
4518 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4519
4520 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4521 box and toolbar (Bug #6139).
4522 (xg_create_tool_bar): Remove comment (Bug #6139).
4523 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4524 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4525
ee0a16cf
JB
45262010-05-08 Juanma Barranquero <lekktu@gmail.com>
4527
4528 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4529 Update dependencies.
4530
96d79611
EZ
45312010-05-08 Eli Zaretskii <eliz@gnu.org>
4532
4533 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4534 R2L lines.
4535
40c17879
GM
45362010-05-08 Glenn Morris <rgm@gnu.org>
4537
7b42b29f
GM
4538 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4539
40c17879
GM
4540 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4541 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4542 (termcapobj): Replace with TERMCAP_OBJ.
4543 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4544 (LIBES): Use LIBS_TERMCAP as a variable.
4545
4546 * s/freebsd.h (osreldate.h): No longer include, since this file
4547 does not use __FreeBSD_version any more.
4548
4549 * s/aix4-2.h (TERMINFO):
4550 * s/cygwin.h (TERMINFO):
4551 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4552 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4553 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4554 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4555 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4556 * s/irix6-5.h (TERMINFO):
4557 * s/netbsd.h (LIBS_TERMCAP):
4558 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4559 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4560 * s/usg5-4.h (TERMINFO):
4561 Move to configure.
4562
94b612ad
SM
45632010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4564
4565 * eval.c (unbind_to): Don't unbind a local binding into the global
4566 binding when the local binding disappeared. Inversely, don't unbind
4567 a global binding into a newly created local binding.
4568 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4569 can specify the frame to use, when applicable. Adjust callers.
4570
15e12598 45712010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4572 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4573
4574 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4575
f724825e
EZ
45762010-05-07 Eli Zaretskii <eliz@gnu.org>
4577
5cba3209
EZ
4578 * w32fns.c: Include w32.h.
4579 (Fw32_shell_execute): Decode the error message before passing it
4580 to `error'. (Bug#6126)
4581
d16bdfc3
EZ
4582 * msdos.c (dos_set_window_size):
4583 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4584 instead of `XSYMBOL (foo)->value'.
4585
59d93e87
EZ
45862010-05-07 Eli Zaretskii <eliz@gnu.org>
4587
9fdec8bc
EZ
4588 Fix the MS-DOS build, broken by autoconfiscation.
4589
4590 * Makefile.in: Don't use Make-style comments past the "start of
4591 cpp stuff" line.
4592 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4593
4594 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4595 edited directly by msdos/sed1v2.inp).
f724825e 4596
2f86b22b
GM
45972010-05-07 Glenn Morris <rgm@gnu.org>
4598
4599 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4600 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4601 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4602 move out of cpp section.
4603 * s/freebsd.h (LD_SWITCH_SYSTEM):
4604 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4605 * s/netbsd.h (LD_SWITCH_SYSTEM):
4606 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4607
49ebbd65
DN
46082010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4609
4610 Define LIB_STANDARD and START_FILES using autoconf.
4611 * s/usg5-4.h (LIB_STANDARD):
4612 * s/netbsd.h (START_FILES):
4613 * s/irix6-5.h (LIB_STANDARD):
4614 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4615 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4616 * s/freebsd.h (START_FILES):
4617 * s/darwin.h (START_FILES):
4618 * s/cygwin.h (START_FILES):
4619 * s/aix4-2.h (LIB_STANDARD):
4620 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4621 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4622 autoconf, not cpp.
4623
d43c06d6
DN
46242010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4625
28823648
DN
4626 Remove NEED_BSDTTY and NEED_UNISTD_H.
4627 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4628 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4629 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4630 <sys/ptyio.h> and <unistd.h>.
4631
aca00430
DN
4632 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4633
d43c06d6
DN
4634 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4635 * s/gnu.h (START_FILES): Remove empty definition.
4636
3e56b11d
JD
46372010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4638
4639 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4640
e3cf0cde
GM
46412010-05-06 Glenn Morris <rgm@gnu.org>
4642
4643 * Makefile.in (CPP, LN_S): Remove unused variables.
4644
774b9a60
SM
46452010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4646
4647 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4648
4ab92842
LM
46492010-05-05 Lawrence Mitchell <wence@gmx.li>
4650
4651 * m/sparc.h: Fix typo in earlier change.
4652
178f2507
SM
46532010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4654
4655 Misc tweaks.
4656 * eval.c (Fdefvaralias): Remove unintended nested if.
4657 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4658
80f00217 46592010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4660
4661 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4662
ef03a4e6
DN
46632010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4664
58eb6cf0
DN
4665 Remove BSD_PGRPS.
4666 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4667 * s/gnu-linux.h (BSD_PGRPS): Remove.
4668 * term.c (dissociate_if_controlling_tty):
4669 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4670 (init_sys_modes, reset_sys_modes):
4671 * emacs.c (main):
4672 * callproc.c (Fcall_process, child_setup): Remove code depending
4673 on BSD_PGRPS.
4674
ef03a4e6
DN
4675 Remove POSIX_SIGNALS.
4676 * s/usg5-4.h (POSIX_SIGNALS):
4677 * s/netbsd.h (POSIX_SIGNALS):
4678 * s/msdos.h (POSIX_SIGNALS):
4679 * s/ms-w32.h (POSIX_SIGNALS):
4680 * s/hpux11.h (POSIX_SIGNALS):
4681 * s/gnu.h (POSIX_SIGNALS):
4682 * s/gnu-linux.h (POSIX_SIGNALS):
4683 * s/freebsd.h (POSIX_SIGNALS):
4684 * s/darwin.h (POSIX_SIGNALS):
4685 * s/cygwin.h (POSIX_SIGNALS):
4686 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4687 * s/unixware.h:
4688 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4689 * process.c (create_process):
4690 * syssignal.h:
4691 * sysdep.c (wait_for_termination, init_signals):
4692 * process.c (create_process):
4693 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4694 remove all code that assumes the contrary.
4695
49628785
GM
46962010-05-04 Glenn Morris <rgm@gnu.org>
4697
27a2cdfc
GM
4698 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4699 variable.
4700 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4701 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4702 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4703 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4704 LD_SWITCH_SYSTEM_tmp.
4705 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4706 New variables, set by configure.
4707
eb21eab5
GM
4708 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4709 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4710 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4711 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4712 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4713
49628785
GM
4714 * s/aix4-2.h (C_SWITCH_SYSTEM):
4715 * m/alpha.h (C_SWITCH_MACHINE):
4716 Move to configure.in.
4717 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4718 New variables, set by configure.
4719 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4720 $c_switch_machine and $c_switch_system.
4721
7dff330b
DN
47222010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4723
4724 * s/hpux10-20.h (LIB_STANDARD): New definition.
4725 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4726 on it, not used anymore.
4727
53967e09
CY
47282010-05-03 Chong Yidong <cyd@stupidchicken.com>
4729
4730 * eval.c (internal_condition_case_n): Rename from
4731 internal_condition_case_2.
4732 (internal_condition_case_2): New function.
4733
4734 * xdisp.c (safe_call): Use internal_condition_case_n.
4735
4736 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4737 (internal_delete_file, Frename_file): Callers changed.
4738
4739 * buffer.c (Fkill_buffer):
4740 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4741
4742 * lisp.h: Update prototypes.
4743
3dee6fdb
GM
47442010-05-03 Glenn Morris <rgm@gnu.org>
4745
4746 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4747 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4748 (LIBXT): Set with configure, not cpp.
4749 (LIBX): Remove.
4750 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4751
a101e0fb
DN
47522010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4753
4754 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4755 The FreeBSD is not needed, the default works, Solaris version is
4756 not needed, and the remaining case is not supported by configure.
4757
f63d0028
JD
47582010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4759
4760 * xsmfns.c (CHDIR_OPT): New define.
4761 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4762 restarting emacs.
4763
4764 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4765 shut_down_emacs.
4766
4767 * emacs.c (USAGE1): Mention --chdir.
4768 (main): Handle --chdir.
4769 (standard_args): Add --chdir.
4770 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4771 #5552).
4772
e4814a9f
DN
47732010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4774
cd03c74a
DN
4775 Remove LD_SWITCH_MACHINE.
4776 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4777 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4778
c3a398a1
DN
4779 Clean up IRIX code.
4780 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4781 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4782
87e7285c
DN
4783 Clean up AIX code.
4784 * m/ibmrs6000.inp: Remove file, unused.
4785 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4786 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4787 definition ...
4788 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4789
80f00217
JB
4790 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4791 unused.
e4814a9f 4792
59ca28de
EZ
47932010-05-01 Eli Zaretskii <eliz@gnu.org>
4794
197daef4
EZ
4795 Emulate POSIX_SIGNALS on MS-Windows.
4796
4797 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4798 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4799
4800 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4801 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4802 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4803
80f00217
JB
4804 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4805 New stubs.
197daef4 4806
af7c7572
EZ
4807 Miscellaneous fixes of bidi display.
4808
59ca28de
EZ
4809 * xdisp.c (find_row_end): New function, refactored from display_line.
4810 (display_line): Use it.
017ea819
EZ
4811 (extend_face_to_end_of_line): In almost-filled rows, extend only
4812 if the row is R2L and not continued.
166e930d 4813 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4814 Preserve overlay and string info in row->end.
166e930d
EZ
4815 (insert_left_trunc_glyphs): Support addition of left truncation
4816 glyphs to R2L rows.
b47e0dcf 4817 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4818 glyph between adjacent windows. Fix a crash when a display string
4819 is continued to the next line. Don't return zero if cursor was
4820 found by `cursor' property of a display string.
b47e0dcf
EZ
4821 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4822 test for that explicitly.
59ca28de 4823
7acac9f4
GM
48242010-05-01 Glenn Morris <rgm@gnu.org>
4825
4826 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4827 for clarity.
4828 (OTHER_OBJ): Remove.
4829 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4830 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4831
45841e65
KK
48322010-05-01 Karel Klíč <kklic@redhat.com>
4833
4834 * fileio.c (Ffile_selinux_context): Context functions may return null.
4835
afc61943
DN
48362010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4837
80f00217 4838 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4839
5a1bb006
GM
48402010-04-30 Glenn Morris <rgm@gnu.org>
4841
4842 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4843 (OTHER_OBJ): Define as a separate variable, for clarity.
4844
210af043
J
48452010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4846
4847 * xsettings.c: include limits.h and update file comment.
4848
0a7df391
GM
48492010-04-30 Glenn Morris <rgm@gnu.org>
4850
d5096f16
GM
4851 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4852 Set with configure, not cpp.
4853 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4854
7eb1ac33
GM
4855 * Makefile.in (mallocobj): Remove.
4856 (otherobj): Simplify using @OTHER_OBJ@.
4857
517d086b
GM
4858 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4859 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4860 Don't bother making nsgui.h dependency platform-specific.
4861
0a7df391
GM
4862 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4863
d6d23852
SM
48642010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4865
d2630aef
SM
4866 * process.c (read_process_output, exec_sentinel): Don't burp if the
4867 sentinel/filter kills the current buffer (bug#6060).
4868
f9dddf52 4869 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4870 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4871 Remove unused var `args'.
4872 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4873 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4874 * doc.c (store_function_docstring): Use XSETCAR.
4875
f1e3642a
GM
48762010-04-28 Glenn Morris <rgm@gnu.org>
4877
faf535f8
GM
4878 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4879 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4880
c40f9449
GM
4881 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4882
658f86ca
GM
4883 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4884 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4885
bc0b5f61
GM
4886 * Makefile.in (FONT_OBJ): New, set by configure.
4887 (FONT_DRIVERS): Use $FONT_OBJ.
4888
294c50a0
GM
4889 * Makefile.in (LIBXMU): Set with configure, not cpp.
4890 * s/aix4-2.h (LIBXMU):
4891 * s/hpux10-20.h (LIBXMU):
4892 Remove definition, now set in configure.
4893
e6ec4e99
GM
4894 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4895
f1e3642a
GM
4896 * m/amdx86-64.h [i386]: Move this test to configure.in.
4897
c6ea2936
GM
48982010-04-27 Glenn Morris <rgm@gnu.org>
4899
8fdac2c3
GM
4900 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4901 * s/unixware.h (NEED_LIBW): Remove definition.
4902
986fb647
GM
4903 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4904 (TOOLKIT_LIBW): New, set by configure.
4905 (@X_TOOLKIT_TYPE@): No longer define it.
4906
c6ea2936
GM
4907 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4908 (MOTIF_LIBW): Set with configure, not cpp.
4909 * s/aix4-2.h (LIB_MOTIF):
4910 * s/gnu-linux.h (LIB_MOTIF):
4911 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4912
aaa36002
DN
49132010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4914
4915 Reduce CPP usage.
4916 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4917 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4918 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4919 definitions and undefs. Inline definitions in the only user.
4920 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4921
b678dd8b
GM
49222010-04-27 Glenn Morris <rgm@gnu.org>
4923
76cda504
GM
4924 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4925 since the defaults (set by the system file) are fine in most cases.
4926 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4927 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4928 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4929 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4930 Remove definitions, since they are set correctly in s/gnu-linux.h.
4931 * s/freebsd.h (START_FILES, LIB_STANDARD):
4932 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4933 * s/hpux10-20.h (START_FILES):
4934 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4935 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4936
b678dd8b
GM
4937 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4938 (MOTIF_LIBW): Use $LIBXP.
4939 (otherobj): Use $WIDGET_OBJ.
4940
9452ded1
DN
49412010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4942
7e10844c
DN
4943 * Makefile.in (LIBS_MACHINE): Remove, unused.
4944
9452ded1
DN
4945 Use autoconf instead of cpp for LIB_MATH.
4946 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4947 * s/cygwin.h (LIB_MATH): Likewise.
4948 * Makefile.in (LIB_MATH): Do not define with cpp.
4949 (LIBES): Use autoconf for LIB_MATH.
4950
fcebfc6a
KH
49512010-04-26 Kenichi Handa <handa@m17n.org>
4952
4953 * composite.c (Ffind_composition_internal): Fix the return value
4954 for an automatic composition.
4955
39e2ad1b
DN
49562010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4957
4958 Remove all NO_ARG_ARRAY uses.
4959 * fns.c (concat2, concat3, nconc2):
4960 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4961 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4962 * m/xtensa.h (NO_ARG_ARRAY):
4963 * m/template.h (NO_ARG_ARRAY):
4964 * m/sparc.h (NO_ARG_ARRAY):
4965 * m/sh3.h (NO_ARG_ARRAY):
4966 * m/mips.h (NO_ARG_ARRAY):
4967 * m/macppc.h (NO_ARG_ARRAY):
4968 * m/iris4d.h (NO_ARG_ARRAY):
4969 * m/intel386.h (NO_ARG_ARRAY):
4970 * m/ibms390x.h (NO_ARG_ARRAY):
4971 * m/ibms390.h (NO_ARG_ARRAY):
4972 * m/ibmrs6000.h (NO_ARG_ARRAY):
4973 * m/ia64.h (NO_ARG_ARRAY):
4974 * m/hp800.h (NO_ARG_ARRAY):
4975 * m/arm.h (NO_ARG_ARRAY):
4976 * m/amdx86-64.h (NO_ARG_ARRAY):
4977 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4978
adf4f59c
EZ
49792010-04-25 Eli Zaretskii <eliz@gnu.org>
4980
6bdf5d65
EZ
4981 * xdisp.c (display_line): Don't assume 2nd call to
4982 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4983 (iterate_out_of_display_property): New function, body from pop_it.
4984 (pop_it): Use it.
adf4f59c 4985
dfbbda83
GM
49862010-04-24 Glenn Morris <rgm@gnu.org>
4987
4988 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4989 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4990 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4991 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4992
2d4018aa
EZ
49932010-04-24 Eli Zaretskii <eliz@gnu.org>
4994
a49884a6
EZ
4995 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4996 use `get_next_display_element' and `set_iterator_to_next' to
4997 advance to the next character, when looking for the character that
4998 begins the next row.
4999
76db6fcc 5000 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5001 definition of "struct Lisp_Symbol".
5002
70eab5c1
GM
50032010-04-24 Glenn Morris <rgm@gnu.org>
5004
5005 * Makefile.in (CRT_DIR): New variable, set by configure.
5006 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5007 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5008
1ad4cc3d
DN
50092010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5010
e769f484
DN
5011 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5012
4196ff33
DN
5013 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5014
879b0ee4
DN
5015 Remove redundant flags.
5016 * s/freebsd.h (C_SWITCH_SYSTEM):
5017 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5018 * s/netbsd.h (C_SWITCH_SYSTEM):
5019 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5020 of these.
5021
03cbbcb8
DN
5022 Simplify m/intel386.h.
5023 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5024 user: ecrt0.c.
5025 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5026 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5027 the only user: s/unixware.h.
5028 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5029 from m/intel386.h.
5030 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5031 moved here from m/intel386.h.
5032
1ad4cc3d
DN
5033 * m/mips.h: Remove #if 0 code.
5034
8785b888
EZ
50352010-04-23 Eli Zaretskii <eliz@gnu.org>
5036
728588cc
EZ
5037 Fix display of composed characters from L2R scripts in bidi buffers.
5038 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5039 After advancing IT past the composition, resync the bidi iterator
5040 with IT's position. (Bug#5977)
5041
a63f80b4
DN
50422010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5043
5044 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5045 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5046
ff5dec5c
SM
50472010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5048
5049 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5050
8785b888
EZ
50512010-04-23 Eli Zaretskii <eliz@gnu.org>
5052
58ccf243 5053 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5054 * xdisp.c (pop_it): When the stack is popped after displaying
5055 from a string, bidi-iterate to exit from the text portion covered
5056 by the `display' property or overlay. (Bug#5988, bug#5920)
5057
feeb1604
DN
50582010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5059
8e324eb6
DN
5060 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5061 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5062
809fcaba
DN
5063 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5064 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5065
ed710380
DN
5066 Simplify STARTFILES definition.
5067 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5068 relying on Makefile.in to define it.
5069 * s/cygwin.h (START_FILES): Likewise.
5070 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5071
feeb1604
DN
5072 Clean up Solaris code.
5073 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5074 (LIB_MOTIF): Remove, configure takes care of this.
5075 (NOT_USING_MOTIF): Remove, unused.
5076 * xrdb.c: Remove #if 0-ed #include.
5077 (SYSV): Remove conditional for old SysV.
5078 * sysdep.c (closedir): Remove conditional code for Solaris,
5079 Solaris has closedir.
5080
a0d0b563
JD
50812010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5082
5083 * xsettings.c (read_and_apply_settings): Check if current_font is
5084 NULL before strcmp (Bug#6001).
5085
56bae7c7
DN
50862010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5087
5088 Clean up HP-UX files.
5089 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5090 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5091 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5092 * s/hpux10-20.h: ... to the only user, here.
5093
372b7a95
EZ
50942010-04-21 Eli Zaretskii <eliz@gnu.org>
5095
5096 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5097 use buffer-local values of paragraph-start and paragraph-separate.
5098 <paragraph_start_re, paragraph_separate_re>: Rename from
5099 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5100 (Bug#5992)
5101
f904c0f9
JD
51022010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5103
5104 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5105 current_tool_bar_style are new.
5106 (store_config_changed_event): Rename from store_font_changed_event.
5107 (XSETTINGS_TOOL_BAR_STYLE): New define.
5108 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5109 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5110 HAVE_XFT.
5111 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5112 store_config_changed_event.
f904c0f9
JD
5113 (parse_settings): Rename from parse_xft_settings. Read
5114 non-xft xsettings outside #ifdef HAVE_XFT.
5115 (read_settings): Renamed from read_xft_settings.
5116 (apply_xft_settings): Take current settings as parameter. Do not
5117 call read_(xft)_settings.
5118 (read_and_apply_settings): New function.
5119 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5120 read_and_apply_settings if there are settings to be read.
5121 (init_xsettings): Renamed from init_xfd_settings.
5122 Call read_and_apply_settings unconditionally.
5123 (xsettings_initialize): Call init_xsettings.
5124 (Ftool_bar_get_system_style): New function.
5125 (syms_of_xsettings): Define Qmonospace_font_name and
5126 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5127 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5128 dynamic-setting.
31a01b90 5129 Move misplaced HAVE_GCONF
f904c0f9
JD
5130
5131 * xsettings.h (Ftool_bar_get_system_style): Declare.
5132
5133 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5134 Qtext, Qboth, Qboth_horiz are new.
5135 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5136 Vtool_bar_style, tool_bar_max_label_size.
5137
5138 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5139
5140 * keyboard.c: QClabel is new.
5141 (parse_tool_bar_item): Take out QClabel from tool bar items.
5142 Try to construct a label if ther is no QClabel.
5143 (syms_of_keyboard): Intern :label as QClabel.
5144
5145 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5146 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5147 New.
5148
5149 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5150 dynamic-setting.el.
5151
5152 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5153 (xg_make_tool_item, xg_show_toolbar_item): New function.
5154 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5155 Call xg_make_tool_item to make a tool bar item.
5156 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5157
5158 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5159 into account for toolbars.
5160
c632dfda
JD
51612010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5162
5163 * data.c (make_blv): Declarations before code (Bug#5993).
5164
10efe302
GM
51652010-04-21 Glenn Morris <rgm@gnu.org>
5166
5167 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5168 Define using autoconf, not cpp.
5169 (LIBXSM): New variable, set by autoconf.
5170 (LIBXT): Use $LIBXSM.
5171
4285ac5a
DN
51722010-04-21 Dan Nicolaescu <local_user@dannlt>
5173
3ec759e7
DN
5174 Remove NOMULTIPLEJOBS, unused.
5175 * s/template.h (NOMULTIPLEJOBS):
5176 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5177
4285ac5a
DN
5178 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5179 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5180 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5181 detects -znocombreloc and passes it to the linker
5182 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5183
2807228d
GM
51842010-04-21 Glenn Morris <rgm@gnu.org>
5185
5186 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5187
574c05e2
KK
51882010-04-21 Karel Klíč <kklic@redhat.com>
5189
5190 * Makefile.in (LIBSELINUX_LIBS): New.
5191 (LIBES): Add $LIBSELINUX_LIBS.
5192 * eval.c, lisp.h (call7): New function.
5193 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5194 (Ffile_selinux_context, Fset_file_selinux_context):
5195 New functions.
5196 (Fcopy_file): New parameter preserve-selinux-context.
5197 (Frename_file): Preserve selinux context when renaming by copy-file.
5198
91eac4bb 51992010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5200 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5201
50426a04
JB
5202 Don't depend on cm.c or termcap.c on Windows, use stubs.
5203 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5204 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5205 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5206 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5207 (sys_tputs, sys_tgetstr): New stubs.
5208 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5209 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5210
938efb77
JB
52112010-04-20 Juanma Barranquero <lekktu@gmail.com>
5212
5213 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5214
b4bf28b7
SM
52152010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5216
8b1e1112
SM
5217 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5218 Just signal a warning rather than an error when inside a let.
5219 (Fmake_variable_frame_local): Add the same test.
5220
933ac235
SM
5221 * font.c (syms_of_font): Make the style table vars read-only.
5222
b4bf28b7
SM
5223 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5224 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5225
5226 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5227
93d68d0c
EZ
52282010-04-20 Eli Zaretskii <eliz@gnu.org>
5229
5230 Fix R2L paragraph display on TTY.
5231
5232 * xdisp.c (unproduce_glyphs): New function.
5233 (display_line): Use it when produced glyphs are discarded from R2L
5234 glyph rows.
5235 (append_composite_glyph): In R2L rows, prepend the glyph rather
5236 than appending it.
5237
5238 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5239 rather than append it. Set up the resolved_level and bidi_type
5240 attributes of the appended glyph.
283ccc18
EZ
5241 (produce_special_glyphs): Mirror the backslash continuation
5242 character in R2L lines.
93d68d0c 5243
283ccc18 5244 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5245
283ccc18
EZ
5246 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5247 append_stretch_glyph.
5248 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5249 off-by-one error in computing x at end of text in the row.
5250 (append_stretch_glyph): In reversed row, prepend the glyph rather
5251 than append it. Set resolved_level and bidi_type of the glyph.
5252 (extend_face_to_end_of_line): If the row is reversed, prepend a
5253 stretch glyph whose width is such that the rightmost glyph will be
5254 drawn at the right margin of the window. Fix off-by-one error on
5255 TTY frames in testing whether a line needs face extension. Fix
5256 face extension at ZV. If this is the last glyph row, use
5257 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5258 region face.
5259 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5260 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5261 row->continuation_lines_width.
283ccc18
EZ
5262 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5263 are at ZV. Fixes a crash when reseated to ZV by
5264 try_window_reusing_current_matrix.
45903529
EZ
5265 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5266 which happens with R2L glyph rows. Fixes a crash when inserting a
5267 character at end of an R2L line.
283ccc18
EZ
5268 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5269 treat them as having zero-width characters. Improve comments.
5270 Don't reverse pos_before and pos_after for reversed glyph rows.
5271 Set cursor.x to negative value when the cursor might be on the
5272 left fringe.
5273 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5274 left fringe, not the right one.
f951a506
EZ
5275 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5276 (erase_phys_cursor): For reversed cursor_row, support cursor on
5277 the left fringe.
5278
283ccc18
EZ
5279 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5280 of continuation indicators on the fringes.
5281 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5282 left fringe.
5283
f951a506
EZ
5284 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5285 draw cursor on the left fringe.
5286
5287 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5288 cursor on the left fringe.
5289
f951a506
EZ
5290 * dispnew.c (update_text_area): Handle reversed desired rows when
5291 the cursor is on the left fringe.
5292 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5293 below, not by 0, for when the cursor is on the left fringe.
5294
3bb49aaf
JD
52952010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5296
5297 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5298 widget is a scrollbar.
5299
c0be27fd
KH
53002010-04-20 Kenichi Handa <handa@m17n.org>
5301
5302 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5303 only when the arg CHARSET_LIST is nil.
5304
ce5b453a
SM
53052010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5306
5307 Make variable forwarding explicit rather the using special values.
5308 Basically, this makes the structure of buffer-local values and object
5309 forwarding explicit in the type of Lisp_Symbols rather than use
5310 special Lisp_Objects for that. This tends to lead to slightly more
5311 verbose code, but is more C-like, simpler, and makes it easier to make
5312 sure we handled all cases, among other things by letting the compiler
5313 help us check it.
5314 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5315 Removing forwarding objects.
5316 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5317 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5318 explicit rather than hiding them inside Lisp_Object "values".
5319 (XFWDTYPE): New macro.
5320 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5321 (XBUFFER_LOCAL_VALUE): Remove.
5322 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5323 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5324 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5325 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5326 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5327 Remove the Lisp_Misc_* header.
5328 (struct Lisp_Buffer_Local_Value): Redefine.
5329 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5330 (struct Lisp_Misc_Any): Add filler to get the right size.
5331 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5332 Lisp_Intfwd.
5333 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5334 (DEFVAR_KBOARD): Allocate a forwarding object.
5335 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5336 (let_shadows_global_binding_p): New function.
5337 (union Lisp_Val_Fwd): New type.
5338 (make_blv): New function.
5339 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5340 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5341 (swap_in_symval_forwarding, find_symbol_value, Fset)
5342 (let_shadows_buffer_binding_p, set_internal, default_value)
5343 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5344 (Fkill_local_variable, Fmake_variable_frame_local)
5345 (Flocal_variable_p, Flocal_variable_if_set_p)
5346 (Fvariable_binding_locus):
5347 * xdisp.c (select_frame_for_redisplay):
5348 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5349 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5350 * frame.c (store_frame_param):
5351 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5352 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5353 value structure.
5354 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5355 (clone_per_buffer_values): Only adjust markers into the current buffer.
5356 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5357 (Fbuffer_local_value, set_buffer_internal_1)
5358 (swap_out_buffer_local_variables):
5359 Adapt to the new symbol value structure.
5360 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5361 (defvar_per_buffer): Take a new arg for the fwd object.
5362 (buffer_lisp_local_variables): Return a proper alist (different fix
5363 for bug#4138).
5364 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5365 (Fgarbage_collect): Don't handle buffer_defaults specially.
5366 (mark_object): Handle new symbol value structure rather than the old
5367 special Lisp_Misc_* objects.
5368 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5369 * term.c (set_tty_color_mode):
5370 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5371 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5372 a buffer_local_flags.
5373 * print.c (print_object): Get rid of impossible forwarding objects.
5374
fd3998ff
EZ
53752010-04-19 Eli Zaretskii <eliz@gnu.org>
5376
5377 * bidi.c (bidi_get_type, bidi_get_category)
5378 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5379 (bidi_type_of_next_char, bidi_level_of_next_char):
5380 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5381
e42cd1a7
JB
53822010-04-19 Juanma Barranquero <lekktu@gmail.com>
5383
5384 * dired.c (Ffile_attributes): Fix typo in docstring.
5385
6e104790 53862010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5387
5388 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5389 NSInteger (Bug#5811).
5390
6e104790 53912010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5392
5393 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5394 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5395
6e104790 53962010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5397
5398 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5399
6e104790
SM
54002010-04-19 Chong Yidong <cyd@stupidchicken.com>
5401
5402 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5403 terminal frames (Bug#5837).
5404
37dcfea0
EZ
54052010-04-19 Eli Zaretskii <eliz@gnu.org>
5406
d1da276f
EZ
5407 * .gdbinit (xsubchartable): New command.
5408
37dcfea0
EZ
54092010-04-19 Eli Zaretskii <eliz@gnu.org>
5410
5411 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5412 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5413 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5414 and
5415 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5416
e9515805
SM
54172010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5418
5419 * alloc.c (Fpurecopy): Hash-cons if requested.
5420 (syms_of_alloc): Update purify-flag docstring.
5421
22aa44a8
JD
54222010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5423
5424 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5425 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5426
ebb5722e
EZ
54272010-04-17 Eli Zaretskii <eliz@gnu.org>
5428
5429 Fix a crash when an NSM character is inserted at BEGV.
5430
5431 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5432 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5433 NEUTRAL_B or UNKNOWN_BT.
5434
0f4442ef
EZ
54352010-04-16 Eli Zaretskii <eliz@gnu.org>
5436
5437 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5438 other rows with cursor unless they are different from this row and
5439 this row is part of a continued line. (Bug#5943)
5440
7d4e45f8
DN
54412010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5442
5443 * s/freebsd.h: Restore osreldate.h include.
5444 Suggested by Naohiro Aota.
5445
5ba5ec85
J
54462010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5447
5448 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5449
20af301d
CY
54502010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5451
5452 * s/cygwin.h: Avoid linking against static libgcc.
5453
a4b000fb
JL
54542010-04-15 Juri Linkov <juri@jurta.org>
5455
5456 * window.c: Add Qscroll_command.
5457 Remove Vscroll_preserve_screen_position_commands.
5458 (window_scroll_pixel_based, window_scroll_line_based): Check the
5459 `scroll-command' property on the last command instead of searching
5460 the last command in Vscroll_preserve_screen_position_commands.
5461 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5462 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5463 (scroll-preserve-screen-position): Doc fix.
5464 (Vscroll_preserve_screen_position_commands): Remove variable.
5465
bc319ba4
DN
54662010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5467
6bb24457
DN
5468 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5469
19d4c244
DN
54702010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5471
5472 Reduce cpp use in Makefile.in.
5473 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5474 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5475 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5476 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5477 (CRT0_COMPILE): Remove, inline it in the only user.
5478
32129746
JL
54792010-04-14 Juri Linkov <juri@jurta.org>
5480
5481 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5482 `scroll-up-command' and `M-v' from `scroll-down' to
5483 `scroll-down-command'.
5484
9013a7f8
JL
54852010-04-14 Juri Linkov <juri@jurta.org>
5486
5487 * window.c (Vscroll_preserve_screen_position_commands): New variable
5488 with the default value as the list of Qscroll_down and Qscroll_up.
5489 (window_scroll_pixel_based, window_scroll_line_based): Search the
5490 last command in the list Vscroll_preserve_screen_position_commands
5491 instead of comparing with Qscroll_up and Qscroll_down.
5492
4bef8d26
JD
54932010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5494
92848133
JD
5495 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5496 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5497 does that.
5498
4bef8d26
JD
5499 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5500 to zero.
5501
58b963f7
SM
55022010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5503
84164a0d
SM
5504 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5505
2b0a91e7
SM
5506 Try to solve the problem of spurious EOF chars in long lines of text
5507 sent to interactive subprocesses.
5508 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5509 (system_process_attributes): Remove unused var `ttotal'.
5510 * process.c (send_process): Don't bother breaking long line with EOF
5511 chars when talking to ttys any more.
5512 (wait_reading_process_output): Output a warning when called in such
5513 a way that it could block without being interruptible.
5514
58b963f7
SM
5515 Try to detect file modification within the same second.
5516 * buffer.h (struct buffer): New field modtime_size.
5517 * buffer.c (reset_buffer): Initialize it.
5518 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5519 (Fverify_visited_file_modtime): Check it.
5520 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5521 (Fset_visited_file_modtime): Set (or clear) it.
5522
01f5787b
SM
55232010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5524
5525 * process.c (status_notify): Remove unused var `ro'.
5526
83725342
JD
55272010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5528
5529 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5530 more than one visual (Bug#5938).
5531
b9465836
DN
55322010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5533
50426a04
JB
5534 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5535 Undefine.
b9465836 5536
8d9c8ece
DN
55372010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5538
b1f52161
DN
5539 Remove C_SWITCH_SYSTEM_TEMACS.
5540 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5541 (malloc, realloc, free): Use emacs, not temacs for conditional
5542 definition.
5543
5544 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5545 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5546
8d9c8ece
DN
5547 Use autoconf, not cpp for some variables.
5548 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5549 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5550 (ALL_CFLAGS): Use them as make variables.
5551 (really-lwlib, really-oldXMenu): Do not pass them.
5552
1ecb2d3f
JD
55532010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5554
5555 * xmenu.c (apply_systemfont_to_dialog): New.
5556 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5557
3a4fa2f2
SM
55582010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5559
97e53006
SM
5560 * process.c (exec_sentinel): Preserve current-buffer.
5561
3a4fa2f2
SM
5562 * process.c (read_process_output): Move the save-current-buffer to
5563 apply to both the filter and the non-filter branches.
5564
88df7221
DN
55652010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5566
5567 * s/msdos.h (UNEXEC): New definition.
5568
5634ff85
YM
55692010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5570
6eff5c3d
YM
5571 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5572 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5573
5574 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5575 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5576 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5577 TRY_WINDOW_CHECK_MARGINS.
5578
5579 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5580 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5581 width only when it is for padding.
5634ff85 5582
b13aef54
J
55832010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5584
5585 * xfns.c (Fx_show_tip): Call try_window in a loop until
5586 fonts_changed_p is zero (Bug#2423).
5587
21d28484
EZ
55882010-04-08 Eli Zaretskii <eliz@gnu.org>
5589
5590 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5591 the end of TEXT_AREA. (Bug#5856)
5592
0269ef77
JD
55932010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5594
5595 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5596 HAVE_GCONF.
5597
5930fe97
EZ
55982010-04-08 Eli Zaretskii <eliz@gnu.org>
5599
5600 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5601 prev.orig_type, for resolving type of NSM. (Bug#5858)
5602
99852628
JD
56032010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5604
5605 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5606 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5607 in current_font.
5608 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5609 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5610 New functions.
5611 (syms_of_xsettings): Initialize current_font.
5612 defsubr Sfont_get_system_normal_font.
99852628 5613
686b968e
JB
5614 * xsettings.h (Ffont_get_system_normal_font)
5615 (xsettings_get_system_normal_font): Declare.
99852628
JD
5616
5617 * xfns.c (extern xlwmenu_default_font): Remove.
5618 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5619 to xlwmenu.c.
5620
5621 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5622 menu items in UTF-8.
5623
5624 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5625 (apply_systemfont_to_menu): New function.
5626 (set_frame_menubar, create_and_show_popup_menu): Call
5627 apply_systemfont_to_menu.
5628
7fc874c4
J
56292010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5630
5631 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5632 FRAME_LINE_TO_PIXEL_Y.
5633
5634 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5635 pixelwidth/height.
5636
863bf481
DN
56372010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5638
5e5a3b92
DN
5639 Simplify code for HP machines.
5640 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5641 for GNU_LINUX, not needed.
5642 (UNEXEC, NEED_BSDTTY): Move definitions...
5643 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5644
863bf481
DN
5645 * m/iris4d.h (UNEXEC): Move definition ...
5646 * s/irix6-5.h (UNEXEC): ... here.
5647
3e6bec3b
JD
56482010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5649
5650 * xfns.c (set_machine_and_pid_properties): New function.
5651 (Fx_create_frame): Call set_machine_and_pid_properties.
5652
2912322b
SM
56532010-04-03 Eli Zaretskii <eliz@gnu.org>
5654
1502b819
EZ
5655 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5656 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5657 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5658
2912322b
SM
5659 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5660 in this function. (Bug#5703)
5661
56622010-04-03 Chong Yidong <cyd@stupidchicken.com>
5663
5664 * nsterm.h: Fix last change.
5665
c435b432
DN
56662010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5667
a568f507
DN
5668 * m/intel386.h (NO_REMAP): Move definition ...
5669 * s/msdos.h (NO_REMAP): ... here.
5670
4cd9f6c2
DN
5671 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5672
c435b432
DN
5673 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5674 used on those platforms.
5675
42a2c622
DN
56762010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5677
5678 Remove extern errno declarations.
5679 * xterm.c:
5680 * xrdb.c:
5681 * w32term.c:
5682 * unexec.c:
5683 * unexaix.c:
5684 * sysdep.c:
5685 * process.c:
5686 * lread.c:
5687 * keyboard.c:
5688 * floatfns.c:
5689 * filelock.c:
5690 * fileio.c:
5691 * emacs.c (main):
5692 * ecrt0.c:
5693 * dispnew.c:
5694 * callproc.c:
5695 * buffer.c: Remove errno extern declarations.
5696 * s/netbsd.h (NEED_ERRNO): Remove.
5697
8224f93d
DN
56982010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5699
5700 Remove all uses of LIBX11_SYSTEM.
5701 * Makefile.in (LIBX11_SYSTEM): Remove.
5702 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5703 instead.
5704
814062c7
EZ
57052010-04-01 Eli Zaretskii <eliz@gnu.org>
5706
ed68db4d
EZ
5707 Remove support for DJGPP v1.x (bug#5813).
5708
5709 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5710 * s/msdos.h:
5711 * unexec.c (make_hdr, copy_text_and_data):
5712 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5713 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5714 (IT_set_terminal_modes, __write, _rename, gethostname)
5715 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5716 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5717 the value of __DJGPP__.
ed68db4d
EZ
5718 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5719 compatibility code.
8224f93d
DN
5720 * lread.c:
5721 * gmalloc.c (memalign):
5722 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5723 * emacs.c (main):
5724 * dosfns.c (init_dosfns):
ed68db4d
EZ
5725 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5726
52f4d8d5
EZ
57272010-04-01 Eli Zaretskii <eliz@gnu.org>
5728
814062c7
EZ
5729 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5730 string with `cursor' property comes from an `after-string'
5731 overlay. (Bug#5816)
5732
0dc2e11d
GM
57332010-04-01 Glenn Morris <rgm@gnu.org>
5734
5735 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5736 Define as Makefile variables.
5737 (LIBX): Use above variables rather than directly using autoconf.
5738
1d29df59
DN
57392010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5740
5741 Clean up BSD_SYSTEM use.
5742 * xterm.c:
5743 * process.c:
5744 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5745 for including <sys/ioctl.h>.
5746 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5747 code is only used for MSDOS.
5748
1546c559
JL
57492010-03-31 Juri Linkov <juri@jurta.org>
5750
5751 * image.c: Add `Qextension_data'.
5752 (syms_of_image): Initialize and staticpro `Qextension_data'.
5753 (Fimage_metadata): Rename from `Fimage_extension_data'.
5754 (gif_load): Put GIF extension data to the property
5755 `Qextension_data'.
5756
6521c534
CY
57572010-03-31 Chong Yidong <cyd@stupidchicken.com>
5758
5759 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5760 * nsterm.h: Fix prototype.
5761
52c30783
EZ
57622010-03-31 Eli Zaretskii <eliz@gnu.org>
5763
5764 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5765 trailing whitespace in right-to-left rows.
5766
855a0da7
SM
57672010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5768
5769 Get rid of the direct_output optimizations.
5770 * keyboard.c (nonundocount): Remove extern declaration.
5771 (command_loop_1): Remove brittle optimisation for cheap and
5772 common operations.
5773 * xdisp.c (redisplay_internal): Don't bother checking
5774 redisplay_performed_directly_p any more.
5775 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5776 any more.
5777 * dispnew.c (redisplay_performed_directly_p)
5778 (direct_output_for_insert, direct_output_forward_char):
5779 * dispextern.h (redisplay_performed_directly_p)
5780 (direct_output_for_insert, direct_output_forward_char): Remove.
5781 * cmds.c (nonundocount): Make it static.
5782
85738751 57832010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5784
5785 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5786
85738751 57872010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5788
5789 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5790 invisible (Bug#5766).
5791
85738751 57922010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5793
855a0da7
SM
5794 * xdisp.c (x_consider_frame_title, update_window_cursor):
5795 Remove HAVE_NS conditionals.
194d44e7 5796 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5797
5798 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5799 filename for the title.
5800 (ns_set_doc_edited): Do nothing if the selected window is a
5801 minibuffer window.
5802
5803 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5804 ns_set_doc_edited.
5805
5806 * nsterm.m: Remove unneeded prototype.
5807
85738751 58082010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5809
5810 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5811 in the DOC file. (Bug#5336)
5812
85738751 58132010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5814
5815 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5816
75d1428c
SM
58172010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5818
5819 * window.c (keys_of_window): Remove redundant/overridden bindings.
5820
82043cfb
EZ
58212010-03-30 Eli Zaretskii <eliz@gnu.org>
5822
5823 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5824 Restore original behavior when the iterator is not bidi_p.
5825
b5dd0ae7
DN
58262010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5827
5828 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5829
bd924a5d
EZ
58302010-03-30 Eli Zaretskii <eliz@gnu.org>
5831
5832 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5833 are outside the range of cached character positions.
5834
3580374b
JB
58352010-03-30 Juanma Barranquero <lekktu@gmail.com>
5836
5837 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5838
a7b02820
EZ
58392010-03-30 Eli Zaretskii <eliz@gnu.org>
5840
5841 Initial support for bidirectional editing.
5842
5843 * Makefile.in (obj): Include bidi.o.
5844 (bidi.o): New target.
5845
5846 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5847 ($(BLD)/bidi.$(O)): New target.
5848
5849 * bidi.c: New file.
5850
5851 * buffer.h (struct buffer): New members bidi_display_reordering
5852 and bidi_paragraph_direction.
5853
5854 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5855 and bidi_paragraph_direction.
5856 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5857 and bidi-paragraph-direction.
5858 (Fbuffer_swap_text): Swap the values of
5859 bidi_display_reordering and bidi_paragraph_direction.
5860
5861 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5862 (bidi_type_t, bidi_dir_t): New types.
5863 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5864 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5865 prev_stop, base_level_stop, and eol_pos.
5866 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5867 (IT_STACK_SIZE): Enlarge to 5.
5868 (struct glyph_row): New member reversed_p.
5869 <string_buffer_position>: Update prototype.
5870 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5871 glyph_row if bidi_it.paragraph_dir == R2L.
5872 (struct glyph): New members resolved_level and bidi_type.
5873
5874 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5875 processing or buffer's direction is right-to-left.
5876 (prepare_desired_row): Preserve the reversed_p flag.
5877 (row_equal_p): Compare the reversed_p attributes as well.
5878
5879 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5880 bidi_init_it and set it->paragraph_embedding from the current
5881 buffer's value of bidi_paragraph_direction.
5882 (reseat_1): Initialize bidi_it.first_elt.
5883 (set_iterator_to_next, next_element_from_buffer): Use the value of
5884 paragraph_embedding to determine the paragraph direction.
5885 (set_iterator_to_next): Under bidi reordering, call
5886 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5887 new_paragraph flag is set in the bidi iterator.
5888 (next_element_from_buffer): If bidi_it.first_elt is set,
5889 initialize paragraph direction and find the first character to
5890 display in the visual order. If reseated to a middle of a line,
5891 prime the bidi iterator starting at the line's beginning. Handle
5892 the situation where we overstepped stop_charpos due to
5893 non-linearity of the bidi iteration. Likewise for when we back up
5894 beyond the previous stop_charpos. When moving across stop_charpos,
5895 record it in prev_stop.
5896 (display_line): Set row->end and it->start for the next row to the
5897 next character in logical order. Always extend reversed_p rows to
5898 the end of line, even if they end at ZV. Copy the reversed_p flag
5899 to the next glyph row. Keep calling set_cursor_from_row for
5900 bidi-reordered rows even if we already have a possible candidate
5901 for cursor position. Set row_end after all the row's glyphs have
5902 been produced, by looping over the glyphs. Record the position
5903 after EOL in it->eol_pos, and use it to set end_pos of the last
5904 row produced for a continued line.
5905 <Qright_to_left, Qleft_to_right>: New variables.
5906 (syms_of_xdisp): Initialize and staticpro them.
5907 (string_buffer_position_lim): New function.
5908 (string_buffer_position): Most of code moved to
5909 string_buffer_position_lim. Last argument and return value are
5910 now EMACS_INT; all callers changed.
5911 (set_cursor_from_row): Rewritten to support bidirectional text and
5912 reversed glyph rows.
5913 (text_outside_line_unchanged_p, try_window_id): Disable
5914 optimizations if we are reordering bidirectional text and the
5915 paragraph direction can be affected by the change.
5916 (append_glyph, append_composite_glyph)
5917 (produce_image_glyph, append_stretch_glyph): Set the
5918 resolved_level and bidi_type members of each glyph.
5919 (append_glyph): If the glyph row is reversed, prepend the glyph
5920 rather than appending it.
5921 (handle_stop_backwards): New function.
5922 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5923 (reseat): call handle_stop_backwards to recompute prev_stop and
5924 base_level_stop for the new position.
5925 (handle_invisible_prop): Under bidi iteration, skip invisible text
5926 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5927 paragraph direction. Update IT->prev_stop after skipping
5928 invisible text.
5929 (move_it_in_display_line_to): New variables prev_method
5930 and prev_pos. Compare for strict equality in
5931 BUFFER_POS_REACHED_P.
5932 (try_cursor_movement): Examine all the candidate rows that occlude
5933 point, to return the best match. If rows are bidi-reordered
5934 and point moved backwards, back up to the row that is not a
5935 continuation line, and start looking for a suitable row from
5936 there.
5937
5938 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5939 rather than appending, if the glyph_row's reversed_p flag is set.
5940 Set the resolved_level and bidi_type members of each glyph.
5941
5942 * .gdbinit (pbiditype): New command.
5943 (pgx): Use it to display bidi level and type of the glyph.
5944 (pitx): Display some bidi information about the iterator.
5945 (prowlims, pmtxrows): New commands.
5946
32a8894e
DN
59472010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5948
5949 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5950 * s/usg5-4.h (LIBS_DEBUG):
5951 * s/irix6-5.h (C_DEBUG_SWITCH):
5952 * s/gnu-linux.h (LIBS_DEBUG):
5953 * s/darwin.h (LIBS_DEBUG):
5954 * s/bsd-common.h (LIBS_DEBUG):
5955 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5956 * m/iris4d.h (LIBS_DEBUG):
5957 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5958
5959 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5960 (LIBS_DEBUG): Remove definition.
5961
649dbf36
CY
59622010-03-27 Chong Yidong <cyd@stupidchicken.com>
5963
5964 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5965 Windows.
5966
cad4261f
YM
59672010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5968
5969 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5970 `connect' (Bug#5723).
5971
cd591dbc
HE
59722010-03-25 Helmut Eller <eller.helmut@gmail.com>
5973
5974 * process.c (Fmake_network_process): Call `select' for interrupted
5975 `connect' rather than creating new socket (Bug#5173).
5976
e867cb5d 59772010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5978
5979 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5980
5981 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5982
5983 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5984
e867cb5d 59852010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5986
5987 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5988 XLoadQueryFont.
5989
e867cb5d 59902010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5991
5992 * coding.c (decode_coding_ccl): Fix previous change for the
5993 multibyte case.
fb608df3
KH
5994 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5995 case that the output buffer is fullfilled.
5996 (encode_coding): Setup ccl program here.
fbdc1721 5997
5845f0ed
DN
59982010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5999
814fb708
DN
6000 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6001
5845f0ed
DN
6002 Simplify LIBS_MACHINE definitions.
6003 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6004 * m/iris4d.h (LIBS_MACHINE): Likewise.
6005 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6006 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6007 * s/netbsd.h: Remove commented out code.
5845f0ed 6008
b7064064
DN
60092010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6010
df7734b2
DN
6011 Remove dead code dealing with POSIX_SIGNALS.
6012 * atimer.c (set_alarm): Remove dead code, all USG systems define
6013 POSIX_SIGNALS.
6014 * data.c (arith_error): Likewise.
6015 * keyboard.c (input_available_signal, handle_user_signal)
6016 (interrupt_signal): Likewise.
6017 * process.c (sigchld_handler): Likewise.
6018 (create_process): Remove if 0 code. Remove HPUX conditional when
6019 !defined (POSIX_SIGNALS), it cannot be true.
6020 * syssignal.h: Remove USG5_4 and USG conditionals when
6021 !POSIX_SIGNALS, they cannot be true.
6022
b7064064
DN
6023 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6024 NO_SOCK_SIGIO, not used anymore.
6025
55da5ee3
DN
60262010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6027
0be96e3a
DN
6028 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6029 support vax on BSDs.
6030
55da5ee3
DN
6031 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6032 * s/aix4-2.h (ORDINARY_LINK): ... here.
6033
c0282183
AS
60342010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6035
82c3d67a
AS
6036 * Makefile.in (abs_builddir): Define.
6037 (bootstrap_exe): Use it.
6038 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6039
3613edce
SM
60402010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6041
6042 * Makefile.in (bootstrap_exe): Use an absolute name.
6043
7f110ddc
DN
60442010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6045
22e87574
DN
6046 Remove support for old GNU/Linux using libc version 5.
6047 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6048 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6049
05a670e6
DN
6050 Consolidate redundant definitions in s/bsd-common.h.
6051 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6052 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6053 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6054 doing it in all files that include this one.
6055 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6056 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6057 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6058 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6059 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6060 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6061 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6062 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6063 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6064
2968f561
DN
6065 Consolidate redundant definitions.
6066 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6067 it's undefined in all files that include this one.
6068 (POSIX_SIGNALS): Define here instead of doing it in all files that
6069 include this one.
6070 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6071 (POSIX_SIGNALS): Do not define.
6072 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6073 (POSIX_SIGNALS): Do not define.
6074 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6075 (POSIX_SIGNALS): Do not define.
6076
15d25dc0
DN
6077 Remove support for old UNIX System V systems.
6078 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6079 * s/usg-5-4-2.h: Remove.
6080
07e339e4
DN
6081 Remove support for Solaris on PPC and for old versions.
6082 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6083 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6084 that cancel each other.
6085 * s/sol2-3.h:
6086 * s/sol2-4.h:
6087 * s/sol2-5.h: Remove.
6088 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6089 (NO_REMAP): Remove, unused.
6090 (UNEXEC): Move definition ...
6091 * s/aix4-2.h (UNEXEC): ... here.
6092
7f110ddc
DN
6093 * s/openbsd.h: Remove support for non-ELF and for systems that do
6094 not support shared libraries.
6095 * s/netbsd.h:
6096 * s/freebsd.h: Likewise.
6097
605f35cd
DN
60982010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6099
6100 Remove non-working support for lynxos 3.0.
6101 * s/lynxos.h: Remove file.
6102
6103 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6104 COFF_BSD_SYMBOLS, nothing defines it anymore.
6105
aed71cf4
DN
61062010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6107
6108 Remove obsolete uses of HAVE_SHM.
6109 * emacs.c (standard_args):
6110 (Fdump_emacs):
6111 (syms_of_emacs): Remove code depending on HAVE_SHM.
6112
6113 * alloc.c: Remove HAVE_SHM dependent definition.
6114
6115 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6116
aded53ff
GM
61172010-03-18 Glenn Morris <rgm@gnu.org>
6118
17284745
GM
6119 * emacs.c (USAGE4): Hard-code bug address.
6120 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6121 (bug_reporting_address): Remove.
6122 (main): Don't call bug_reporting_address.
6123
aded53ff
GM
6124 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6125 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6126
303500aa
CY
61272010-03-15 Chong Yidong <cyd@stupidchicken.com>
6128
6129 * xfns.c (Fx_create_frame):
6130 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6131 on left.
6132
cef3058f
CY
61332010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6134
6135 * editfns.c (Fformat): Account for string precision when computing
6136 field width (Bug#5710).
6137
a647d59d
CY
61382010-03-12 Chong Yidong <cyd@stupidchicken.com>
6139
4fa42018
CY
6140 * xfns.c (Fx_create_frame): Set default to Qright.
6141
a647d59d
CY
6142 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6143 all window systems.
6144
6da23aaa
EZ
61452010-03-12 Eli Zaretskii <eliz@gnu.org>
6146
a96f6398 6147 These changes remove termcap.c from the build on Posix platforms.
83d02def 6148 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6149 (MSDOS_OBJ): ...to here.
6150 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6151 now identical to when LIBS_TERMCAP is defined.
6152
6153 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6154
6155 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6156
a96f6398 6157 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6158
288f9fc0
CY
61592010-03-10 Chong Yidong <cyd@stupidchicken.com>
6160
6161 * Branch for 23.2.
6162
d48cd3f4
SM
61632010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6164
6165 Cleanup setup of gl_state in various parts of the code.
6166 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6167 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6168 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6169 (skip_chars):
6170 * regex.c (regex_compile): Use it.
6171 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6172 it's now set in regex_compile when/if we need it.
6173
618db430
SM
61742010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6175
c0335e02
SM
6176 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6177 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6178 (QUIT): Use it to consolidate code and remove redundancy.
6179 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6180
254c06a8
SM
6181 * regex.c (regex_compile): Setup gl_state as well.
6182
618db430
SM
6183 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6184 (in_classes): Use CONSP before XCAR/XCDR.
6185
233f0c9f
CY
61862010-03-03 Chong Yidong <cyd@stupidchicken.com>
6187
6188 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6189 definitions, so that keyboard macros are correctly handled
6190 (Bug#5481).
6191
75f80e63
EZ
61922010-03-02 Eli Zaretskii <eliz@gnu.org>
6193
6194 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6195 text that could be relocated inside the call to emacs_mule_char.
6196 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6197 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6198
dcfb9bc4
KH
61992010-03-02 Kenichi Handa <handa@m17n.org>
6200
fc9a17bc
KH
6201 * character.c (parse_str_as_multibyte): Fix handling of the
6202 multibyte form of raw-bytes.
6203 (str_as_multibyte): Likewise.
6204
dcfb9bc4
KH
6205 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6206 form of raw-bytes.
6207
412c01b6
CY
62082010-02-28 Chong Yidong <cyd@stupidchicken.com>
6209
6210 * charset.c (load_charset_map_from_file)
6211 (load_charset_map_from_vector): Zero out allocated
6212 charset_map_entries before using them.
6213
df7e1ea0
AS
62142010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6215
6216 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6217
fe69a722
CY
62182010-02-27 Chong Yidong <cyd@stupidchicken.com>
6219
4ed28cf4
CY
6220 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6221 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6222
7379cfce
KH
62232010-02-26 Kenichi Handa <handa@m17n.org>
6224
f88cc4d6
KH
6225 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6226
7379cfce
KH
6227 * xdisp.c (reseat_to_string): Fix previous change.
6228
cf2fdcfb
CY
62292010-02-26 David Reitter <david.reitter@gmail.com>
6230
6231 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6232 Lisp_Object (Bug#4736).
6233
cc6c7c75
KH
62342010-02-25 Kenichi Handa <handa@m17n.org>
6235
6236 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6237
32e737d7
JD
62382010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6239
6240 * xterm.c (XTflash): Move declarations before statements.
6241
6242 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6243 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6244 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6245 (xg_create_tool_bar): Remove unused variables.
6246 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6247 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6248
676cae9f
CY
62492010-02-21 Chong Yidong <cyd@stupidchicken.com>
6250
6251 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6252
886cc2b8
SM
62532010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6254
6255 * term.c (fatal): Add a final \n if needed (bug#5596).
6256
ddb2d8e2
CY
62572010-02-18 Chong Yidong <cyd@stupidchicken.com>
6258
6259 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6260
2a4f8d3d
GM
62612010-02-18 Glenn Morris <rgm@gnu.org>
6262
6263 * callint.c (Finteractive): Doc fix.
6264
ebaf11b6
KH
62652010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6266
886cc2b8
SM
6267 * coding.c (record_conversion_result):
6268 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6269 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6270 memory allocation error.
6271
d0396581
KH
62722010-02-17 Kenichi Handa <handa@m17n.org>
6273
886cc2b8
SM
6274 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6275 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6276 (decode_coding): Setup ccl program here. Keep looping when the
6277 decoder stopped because the output buffer is
6278 fullfilled (bug#5534).
6279
6280 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6281
98599f74
JD
62822010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6283
471e4f04 6284 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6285 bug #5571.
886cc2b8 6286 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6287 overdrawn.
98599f74 6288
182659ae
JD
62892010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6290
6291 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6292 doing_interact here.
6293 (ice_connection_closed): New function.
6294 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6295 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6296 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6297 returns I/O error.
6298 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6299 bug #5512.
6300
9be32c4e 63012010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6302
6303 * nsfont.m (nsfont_open): The system's value for the font descent
6304 is negative, so round it down to avoid clipping.
6305
a2f3eb19
CY
63062010-02-06 Chong Yidong <cyd@stupidchicken.com>
6307
6308 * charset.c (load_charset_map_from_file)
6309 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6310 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6311
3088147c
CY
63122010-02-05 Chong Yidong <cyd@stupidchicken.com>
6313
6314 * charset.c (load_charset_map_from_file): Allocate large
6315 charset_map_entries structure on the heap rather than the stack.
6316 (Bug#5526).
6317
b57d9029
KH
63182010-01-31 Kenichi Handa <handa@m17n.org>
6319
6320 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6321 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6322
c67d885b
CY
63232010-01-31 Chong Yidong <cyd@stupidchicken.com>
6324
6325 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6326 <deactivated@gmail.com> (Bug#3605).
6327
8fab2362
CY
63282010-01-31 David De La Harpe Golden <david@harpegolden.net>
6329
6330 * fileio.c (Frename_file): Correctly rename symlinks to
6331 directories (Bug#5496).
6332
cb2a62f2
CY
63332010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6334
6335 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6336
944c7a26
AS
63372010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6338
6339 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6340
c024ac08
CY
63412010-01-29 Chong Yidong <cyd@stupidchicken.com>
6342
6343 * frame.c (DEFAULT_ROWS): Change default to 35.
6344
6345 * xfns.c (x_default_font_parameter): Change default XFT font to
6346 monospace-10 (Bug#3643).
6347
af93af83
EZ
63482010-01-29 Eli Zaretskii <eliz@gnu.org>
6349
6350 * w32inevt.c (key_event): Remove unnecessary comparison of
6351 event->uChar.AsciiChar with 128.
6352
ca0eb708
CY
63532010-01-28 Chong Yidong <cyd@stupidchicken.com>
6354
b242dbfc
CY
6355 * fileio.c (Frename_file): Fix last change (Bug#5487).
6356
ca0eb708
CY
6357 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6358
6359 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6360
45d45af5
JD
63612010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6362
6363 * xfns.c (Fx_create_frame): Remove window size matching code from
6364 2010-01-15.
a73f9c9d 6365 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6366
7e233730
JR
63672010-01-27 Jason Rumney <jasonr@gnu.org>
6368
6369 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6370 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6371
86e893e3
KH
63722010-01-27 Kenichi Handa <handa@m17n.org>
6373
6374 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6375 pattern string (Bug#4209).
86e893e3 6376
8719abec
CY
63772010-01-27 David De La Harpe Golden <david@harpegolden.net>
6378
6379 * fileio.c (Frename_file): Call copy-directory and
6380 delete-directory for directories, in order to handle cross-device
6381 renaming (Bug#3353).
6382
844794c8
JD
63832010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6384
aa3e13b5 6385 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6386 sizes 24 and 10. Bug #3643.
844794c8 6387
bd4b5750
SM
63882010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6389
8dc1adf6 6390 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6391 * keymap.c (shadow_lookup): Add `remap' arg.
6392 (describe_map, describe_vector): Update calls to shadow_lookup.
6393 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6394 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6395 perform remapping during shadow_lookup check of remapped_sequences.
6396
285d07e2
CY
63972010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6398
6399 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6400 png_check_sig, which has been removed in libpng 1.4.
6401
c6d09b8d
CY
64022010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6403
6404 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6405 lacks this header file).
6406
3d782998
YM
64072010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6408
6409 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6410 as in Emacs 22.
6411
2aff7c53
YM
64122010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6413
6414 * lisp.h (make_pure_string): String pointer arg now points to const.
6415
6416 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6417 args now point to const.
6418
74327f7a
EZ
64192010-01-22 Eli Zaretskii <eliz@gnu.org>
6420
6421 * lread.c (Fload): Don't treat files without .elc extension as
6422 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6423 them. (bug#5303)
6424
4d1e6632
KH
64252010-01-20 Kenichi Handa <handa@m17n.org>
6426
6427 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6428 treat the source as actual byte sequence.
6429
1fdede8f
AM
64302010-01-19 Alan Mackenzie <acm@muc.de>
6431
6432 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6433 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6434 `signal_after_change_p' to `coherent_change_p', and make the
6435 invocation of `modify_region' conditional on it.
6436
67477f30
JD
64372010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6438
6439 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6440 for debug purpose.
6441 (syms_of_xsettings): Declare xft-settings.
6442
244b023e
CY
64432010-01-18 Chong Yidong <cyd@stupidchicken.com>
6444
6445 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6446
617364fe
CY
64472010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6448
6449 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6450
4fe22cdf
CY
64512010-01-16 Chong Yidong <cyd@stupidchicken.com>
6452
6453 * emacs.c (standard_args): Adjust arg priorities to reflect how
6454 they are processed in startup.el.
6455
e118d2be
AS
64562010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6457
6458 * Makefile.in (lisp, shortlisp): Update.
6459
523ae620
SM
64602010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6461
6462 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6463 code, link the new kboard into all_kboard before running Lisp code,
6464 and protect the new terminal with GCPRO (Bug#5365).
6465 (x_term_init): Remove unused var `atom'.
6466 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6467
f0d13888
JD
64682010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6469
6470 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6471 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6472 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6473 this. Bug #3643.
f0d13888 6474
cc320f07
KH
64752010-01-15 Kenichi Handa <handa@m17n.org>
6476
6477 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6478
7ffdf101
CY
64792010-01-15 Chong Yidong <cyd@stupidchicken.com>
6480
6481 * nsterm.m (Qnone): Define.
6482
6483 * nsfns.m (Qnone): Move definition to nsterm.m.
6484
d12bd917
KH
64852010-01-14 Kenichi Handa <handa@m17n.org>
6486
6487 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6488 systems.
6489
d9a7c140
KH
64902010-01-14 Kenichi Handa <handa@m17n.org>
6491
6492 Make auto-composition work on all buffers even if they are
6493 fundamental mode.
6494
6495 * composite.c (Vauto_composition_mode): New variable.
6496 (composition_compute_stop_pos): Check Vauto_composition_mode
6497 instead of Vauto_composition_function.
6498 (composition_adjust_point, Ffind_composition_internal): Likewise.
6499 (syms_of_composite): Declare Lisp variable
6500 "auto-composition-mode" here.
6501
63286bb2
CY
65022010-01-13 Chong Yidong <cyd@stupidchicken.com>
6503
6504 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6505 during call to vendor-specific-keysyms (Bug#5365).
6506
c2623ee7
YM
65072010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6508
6509 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6510 Call SIGNAL_THREAD_CHECK (Bug#5333).
6511
6512 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6513 Call SIGNAL_THREAD_CHECK.
6514
0b5397c2
SM
65152010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6516
6517 Try to fix bug#5314. This is probably not the final word, tho.
6518 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6519 recent-auto-save-p as a side-effect.
6520 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6521 * buffer.c (Fkill_buffer, reset_buffer):
6522 * editfns.c (Fsubst_char_in_region):
6523 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6524 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6525
dc954cb2
KH
65262010-01-13 Kenichi Handa <handa@m17n.org>
6527
6528 Display buffer name, etc. in mode line by composing correctly.
6529
6530 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6531 STRING is not nil.
0b5397c2 6532 (display_mode_element): Adjust for the change of
dc954cb2
KH
6533 decode_mode_spec and display_line.
6534 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6535 (display_string): Handle the case that STRING is non-null and
6536 LISP_STRING is not nil.
6537
0b5397c2
SM
6538 * xterm.c (x_draw_composite_glyph_string_foreground):
6539 Pay attention to s->face->overstrike.
dc954cb2
KH
6540
6541 * composite.c (composition_reseat_it): Don't check PT if STRING is
6542 non nil.
6543
4a00eaca
YM
65442010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6545
6546 * keyboard.c (read_char): Don't apply previous change when current
6547 buffer is unchanged by command execution.
6548
60abb287
JD
65492010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6550
6551 * keyboard.c (read_char): Return after executing from special map.
6552
893db5bc
GM
65532010-01-12 Glenn Morris <rgm@gnu.org>
6554
6555 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6556 bug-gnu-emacs rather than emacs-pretest-bug.
6557
4d03ece0
CY
65582010-01-11 Chong Yidong <cyd@stupidchicken.com>
6559
6560 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6561 initializing the Lisp variables that depend on them.
6562
1df47e38
YM
65632010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6564
6565 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6566 Clear areas that will not be updated after change of menu bar lines.
6567 Clear the menu bar window's current matrix when the window gets empty.
6568
2f1c6384
CY
65692010-01-09 Chong Yidong <cyd@stupidchicken.com>
6570
e398c61c
CY
6571 * intervals.h, textprop.c (extend_property_ranges): Return value
6572 and args changed. Discard properties that begin at or after the
6573 new end (Bug#5306).
6574
6575 * editfns.c (Fformat): Caller changed.
6576
e5a29a10
CY
6577 * nsterm.m (ns_set_default_prefs): Delete function.
6578 (syms_of_nsterm): Initialize ns_command_modifier,
6579 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6580 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6581
2f1c6384
CY
6582 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6583 position (Bug#4040).
6584
d427a9fa
EZ
65852010-01-09 Eli Zaretskii <eliz@gnu.org>
6586
6587 * editfns.c (Ffloat_time): Doc fix.
6588
21b9df2f
JD
65892010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6590
6591 * xfns.c (Fx_create_frame): Don't create frame larger than display
6592 by default bug#3643.
6593
4b00d3b1
YM
65942010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6595
6596 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6597 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6598 windows above internal border.
6599
6600 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6601 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6602 windows above internal border.
6603
6604 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6605 tool bar windows specially.
6606
6607 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6608
6609 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6610 specially.
6611 (XTflash): Take account of menu bar height.
6612
6613 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6614 specially.
6615
5075d853
JD
66162010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6617
ac146f82 6618 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6619 also be true before we can return early (bug #5339).
6620
474217c8
CY
66212010-01-06 David Reitter <david.reitter@gmail.com>
6622
6623 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6624 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6625 (Bug#3233).
6626
c0e6d47d
JD
66272010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6628
d0cf45b7
JD
6629 * font.c (font_open_entity): Enable chache and call cached_font_ok
6630 for the driver if defined.
6631 (QCuser_spec): New symbol.
6632 (font_spec_from_name): Save name as user-spec.
6633 (font_load_for_lface): Keep user-spec instead of name.
6634 (font_open_by_name): Save name as user-spec.
6635 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6636 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6637
6638 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6639 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6640 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6641
6642 * font.h (struct font_driver): Add cached_font_ok.
6643
c0e6d47d
JD
6644 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6645
7c583cd8
JD
66462010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6647
6648 * xterm.c (x_new_font): Move code for setting rows/cols before
6649 resizing ...
ac146f82 6650 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6651
6652 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6653 (xg_frame_resized, xg_frame_set_char_size):
6654 Call xg_clear_under_internal_border.
7c583cd8 6655 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6656
03f77f0a
CY
66572010-01-05 Chong Yidong <cyd@stupidchicken.com>
6658
6659 * keyboard.c (read_key_sequence): Catch keyboard switch after
6660 making a new tty frame (Bug#5095).
6661
2a1ef5be
KH
66622010-01-05 Kenichi Handa <handa@m17n.org>
6663
6664 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6665
e3eb1dae
SM
66662010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6667
6668 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6669 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6670 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6671
777013f2
MA
66722010-01-03 Michael Albinus <michael.albinus@gmx.de>
6673
6674 * dbusbind.c (xd_add_watch): Improve debug message.
6675 (xd_remove_watch): Improve debug message. If DATA is the session
6676 bus, unset D-Bus session environment.
6677 (Fdbus_init_bus): Pass the bus as argument to
6678 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6679
8932b1c2
CY
66802010-01-01 Chong Yidong <cyd@stupidchicken.com>
6681
87231e2c
CY
6682 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6683
4801c5fa
CY
6684 * lread.c (syms_of_lread): Make it clearer that these are the
6685 names of loaded files (Bug#5068).
6686
8932b1c2
CY
6687 * eval.c (run_hook_with_args): Handle the case where the global
6688 value has the obsolete single-function form (Bug#5026).
6689
11e3c684
CY
66902009-12-27 Chong Yidong <cyd@stupidchicken.com>
6691
6692 * minibuf.c (Fall_completions): Minor optimization.
6693
5b28ce35
EZ
66942009-12-26 Eli Zaretskii <eliz@gnu.org>
6695
5ce6e4f4
JB
6696 * .gdbinit (pgx): Fix display of composite glyphs.
6697 Display cmp.from and cmp.to as well.
6698 (pitx): Fix last change.
5b28ce35 6699
bcffff46
KH
67002009-12-25 Kenichi Handa <handa@m17n.org>
6701
6702 * composite.h (composition_adjust_point): Update prototype.
6703
6704 * composite.c (composition_reseat_it): Don't make a composition
6705 spanning over point.
6706 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6707 composable characters.
6708 (composition_adjust_point): New arg NEW_PT. Callers changed.
6709
6710 * keyboard.c (command_loop_1): Force redisplay if the last point
6711 was within a composition.
6712 (adjust_point_for_property): Don't adjust point for automatic
6713 composition when called after buffer modification.
6714
3f670e9a
EZ
67152009-12-19 Eli Zaretskii <eliz@gnu.org>
6716
5ce6e4f4
JB
6717 * .gdbinit (pitx): Don't use enum names, use their values.
6718 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6719 (pgx): Don't use enum names, use their values.
6720 (pitmethod): New helper command.
6721 (pitx): Use it to display iteration method.
6722 (pgrowit): New command.
6723
ad903955
EZ
6724 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6725
3f670e9a
EZ
6726 Update dependencies in Makefile.in.
6727
6728 * Makefile.in (alloc.o): Depend on termhooks.h.
6729 (atimer.o): Depend on blockinput.h.
6730 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6731 and frame.h.
6732 (callint.o): Depend on systime.h, coding.h, and composite.h.
6733 (callproc.o): Depend on buffer.h.
6734 (casefiddle.o): Don't depend on charset.h.
6735 (casetab.o): Depend on character.h.
6736 (ccl.o): Depend on composite.h.
6737 (chartab.o): Depend on ccl.h.
6738 (cm.o): Depend on dispextern.h.
6739 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6740 (coding.o): Don't depend on $(INTERVALS_H).
6741 (composite.o): Don't depend on dispextern.h explicitly (it's in
6742 $(INTERVALS_H)). Depend on ccl.h.
6743 (data.o): Depend on systime.h, coding.h, composite.h,
6744 dispextern.h, font.h, and ccl.h.
6745 (dired.o): Depend on composite.h.
6746 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6747 composite.h (it's in $(INTERVALS_H)).
6748 (doc.o): Depend on systime.h, coding.h, and composite.h.
6749 (editfns.o): Don't depend explicitly on dispextern.h.
6750 (emacs.o): Depend on frame.h and coding.h.
6751 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6752 (fileio.o): Depend on frame.h and commands.h. Don't depend
6753 explicitly on dispextern.h.
6754 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6755 composite.h.
6756 (fns.o): Don't depend on termhooks.h.
6757 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6758 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6759 coding.h, $(INTERVALS_H), window.h, xterm.h.
6760 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6761 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6762 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6763 fontset.h, ccl.h, and ftfont.h.
6764 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6765 (gtkutil.o): Depend on dispextern.h and composite.h.
6766 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6767 termhooks.h, and ccl.h.
6768 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6769 (intervals.o): Depend on systime.h and coding.h.
6770 (keyboard.o): Depend on composite.h and coding.h.
6771 (keymap.o): Depend on coding.h and frame.h.
6772 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6773 (macros.o): Depend on systime.h, coding.h, and composite.h.
6774 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6775 and atimer.h.
6776 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6777 dispextern.h explicitly.
0b5397c2
SM
6778 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6779 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6780 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6781 (regex.o): Don't depend on charset.h.
6782 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6783 (search.o): Don't depend explicitly on composite.h.
6784 (sound.o): Depend on atimer.h and systime.h.
6785 (syntax.o): Don't depend explicitly on composite.h.
6786 (sysdep.o): Depend on coding.h and composite.h.
6787 (term.o): Depend on xterm.h and buffer.h.
6788 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6789 (textprop.o): Don't depend on dispextern.h explicitly.
6790 (undo.o): Depend on dispextern.h.
6791 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6792 dispextern.h and composite.h explicitly.
6793 (xdisp.o): Depend on ccl.h.
6794 (xfaces.o): Depend on coding.h and ccl.h.
6795 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6796 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6797 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6798 ftfont.h.
6799 (xgselect.o): New dependency.
6800 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6801 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6802 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6803 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6804 (xsmfns.o): Depend on frame.h and dispextern.h.
6805 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6806 sysselect.h.
6807
7a6f7fea
AS
68082009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6809
6810 * font.c (Fclear_font_cache): Pass correct cache argument to
6811 font_clear_cache.
6812
f4c21026
AS
68132009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6814
6815 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6816 twice.
6817
f7ab0997
CY
68182009-12-15 Chong Yidong <cyd@stupidchicken.com>
6819
6820 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6821 calling file-remote-p. Reported by Jim Meyering.
6822
fa8e045a
MA
68232009-12-15 Michael Albinus <michael.albinus@gmx.de>
6824
6825 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6826 avoid compiler warnings. (Bug #5217)
fa8e045a 6827
a63dba42
KH
68282009-12-14 Kenichi Handa <handa@m17n.org>
6829
6830 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6831 in 8-bit encoding.
6832
5ce6e4f4 68332009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6834
6835 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6836 tooltip windows.
6837
223e5fc6
JD
68382009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6839
36acb2a7
JD
6840 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6841 Xatom_net_window_type.
6842
6843 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6844 Xatom_net_window_type.
6845
b8f00677
JD
6846 * xterm.c (my_log_handler): New function.
6847 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6848 so we can filter out buggy messages. (Bug #5120).
b8f00677 6849
e5f0bc9a
JD
6850 * xterm.c (xg_scroll_callback): Parameter list changed,
6851 use parameter GtkScrollType to determine scroll/line/page.
6852 Only allow dragging if a button < 4 is grabbed (bug #5177).
6853 (xg_end_scroll_callback): New function.
6854 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6855 xg_create_scroll_bar.
6856
6857 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6858 (scroll_end_callback): Remove.
6859 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6860 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6861 bug #5177.
e5f0bc9a
JD
6862 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6863 bug #5177.
6864
6865 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6866 (xg_create_scroll_bar): Add GCallback end_callback.
6867
223e5fc6
JD
6868 * xftfont.c (QClcdfilter): New variable.
6869 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6870 (syms_of_xftfont): Initialize QClcdfilter.
6871
3c055b77
JD
68722009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6873
6874 * xsettings.c (struct xsettings): Add member seen.
6875 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6876 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6877 (apply_xft_settings): Only update Xft settings with what member seen
6878 indicates as new.
6879
05fe33ff
EZ
68802009-12-12 Eli Zaretskii <eliz@gnu.org>
6881
c4cc8b9a 6882 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6883 (struct glyph): Use EMACS_INT for charpos.
6884 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6885 region_beg_charpos, region_end_charpos,
6886 redisplay_end_trigger_charpos, and also for
6887 iterator_stack_entry.end_charpos and
6888 iterator_stack_entry.stop_charpos.
6889
e8d7886a
JD
68902009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6891
5ce6e4f4 6892 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6893 (xg_create_scroll_bar): Call scroll_end_callback on button release
6894 event (bug #5177).
6895 (xg_event_is_for_scrollbar): != replaced with ==.
6896
d0db2ec8
KH
68972009-12-12 Kenichi Handa <handa@m17n.org>
6898
6899 * ftfont.c (struct ftfont_info): New member matrix.
6900 (ftfont_open): Setup xftfont_info->matrix.
6901 (MFLTFontFT): New member matrix.
6902 (FLOOR, CEIL, ROUND): New macros.
6903 (ftfont_get_metrics): Handle matrix transformation.
6904 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6905
6906 * xftfont.c (struct xftfont_info): New member matrix.
6907 (xftfont_open): Setup xftfont_info->matrix.
6908
69092009-12-10 Kenichi Handa <handa@m17n.org>
6910
6911 * xdisp.c (append_space_for_newline): Consider face-remapping.
6912
2cc7b62f
AS
69132009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6914
b87dd913
AS
6915 * xsettings.c: Include "keyboard.h".
6916
eba5eb94
AS
6917 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6918
2cc7b62f
AS
6919 Fix implicit function declarations.
6920 * cmds.c: Include "frame.h".
6921 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6922 * frame.h: Move declaration of delete_frame outside of
6923 HAVE_WINDOW_SYSTEM.
6924
a4ef73c8
CY
69252009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6926
6927 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6928
6929 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6930 GTK builds.
6931
944a300c
AS
69322009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6933
6934 * unexelf.c (unexec): Don't search for .data twice.
6935
022eef62
CY
69362009-12-05 Chong Yidong <cyd@stupidchicken.com>
6937
426ac949
CY
6938 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6939 if push failed.
6940 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6941 of push_display_prop (Bug#5000).
6942
022eef62
CY
6943 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6944 value of font_list_entities (Bug#5085).
6945
be95bee9
JB
69462009-12-04 Juanma Barranquero <lekktu@gmail.com>
6947
6948 Fix `string-to-number' to deal consistently with integers and floats.
6949 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6950 trailing characters, not just whitespace.
6951 (read1): Pass new arg 0 to keep old behavior.
6952 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6953 trailing chars, as it is already done for integers. Doc fixes.
6954 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6955
24c2d7ce
EZ
69562009-12-04 Eli Zaretskii <eliz@gnu.org>
6957
0b5397c2
SM
6958 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6959 Delete unused enumeration value.
24c2d7ce 6960
7e694795
EZ
69612009-12-03 Eli Zaretskii <eliz@gnu.org>
6962
6963 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6964
84b31826
SM
69652009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6966
6967 * process.c (Fmake_network_process): Fix up the tests for
6968 "connectionless socket", so they DTRT for seqpacket sockets as well.
6969
f00c449b
SM
69702009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6971
6972 * process.c (Qseqpacket): New symbol.
6973 (HAVE_SEQPACKET): New macro.
6974 (Fmake_network_process): Accept new :type `seqpacket'.
6975 (init_process): Add `seqpacket' feature when applicable.
6976 (syms_of_process): Initialize Qseqpacket.
6977
8096a0ff
YM
69782009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6979
6980 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6981 if entity is Qnil.
6982
3e0de07f
SM
69832009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6984
6985 * print.c (print_preprocess): Preprocess the key_and_value table of
6986 hashtables, even tho they're "hidden" (bug#5082).
6987
abeafb2a
JD
69882009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6989
6990 * frame.c (frame_make_pointer_invisible)
6991 (frame_make_pointer_visible): Declare f before statements.
6992
4bf47195
EZ
69932009-11-28 Eli Zaretskii <eliz@gnu.org>
6994
6995 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6996 omitted dependencies on lisp.h.
6997
c525b3f2
JD
69982009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6999
ece2d4ed
JD
7000 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7001 is NULL.
7002
7003 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7004
7005 * frame.c (frame_make_pointer_invisible)
3e0de07f 7006 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7007 frame.
7008
c525b3f2
JD
7009 * search.c (simple_search): Remove warning by making *p const.
7010
2f00e299
DN
70112009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7012
7013 * xdisp.c (power_letter): Remove duplicate const.
7014
084b049b
JD
70152009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7016
a1fadc6f
JD
7017 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7018
5ce6e4f4 7019 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7020 defaults (bug #5025).
7021
28259cac
SM
70222009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7023
7024 * insdel.c (adjust_markers_for_delete): Move it in the
7025 right direction! (bug#4803)
7026
e8e14166
YM
70272009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7028
7029 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7030
7031 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7032
86677b58
GM
70332009-11-24 Glenn Morris <rgm@gnu.org>
7034
7035 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7036
581e51e8
JD
70372009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7038
cfc86c7a
JD
7039 * Makefile.in: Must create deps for ecrt0.o in its rule.
7040
581e51e8
JD
7041 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7042 because that is what Gtk+ font dialog understands.
7043
7044 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7045 of Fcopy_sequence.
7046 (font_open_by_name): Put name given into QCname for font-object returned.
7047
7048 * frame.c (x_set_font): Save original font name as frame parameter
7049 font-parameter.
7050
7051 * xsettings.c (set_default_xft_settings): New function.
7052 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7053 is found.
7054
8b264ecb
AS
70552009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7056
7057 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7058 searching backwards through multibyte buffer.
7059
872870b2
JD
70602009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7061
7062 * xterm.c: #include xgselect.h.
7063 (x_initialize): Call xgselect_initialize.
7064
7065 * xsettings.c (something_changedCB): C++ comments => C comments.
7066 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7067 does that now.
7068
7069 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7070 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7071 (scroll_bar_button_cb): Remove.
5ce6e4f4 7072 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7073 event.
7074 (xg_create_scroll_bar): Don't bind button-press-event and
7075 button-release-event.
7076
7077 * process.c: Include xgselect.h if defined (USE_GTK) ||
7078 defined (HAVE_GCONF).
7079 (wait_reading_process_output): Call xg_select for the same condition.
7080
7081 * xgselect.c (xg_select): New function to better integrate with
7082 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7083
7084 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7085
7086 * Makefile.in (XOBJ): Add xgselect.o.
7087
62a6e103
AS
70882009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7089
0b5397c2
SM
7090 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7091 Remove ignored second argument. All callers changed.
62a6e103
AS
7092 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7093 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7094 * xdisp.c (string_char_and_length): Likewise.
7095
b0ca0f33
DN
70962009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7097
7098 * xterm.c (x_new_font):
7099 * print.c (print_object):
7100 * cmds.c (Fself_insert_command): Move declarations before statements.
7101
dd5a6279
CY
71022009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7103
7104 * s/cygwin.h: Remove unneeded linker flags.
7105
4a8e097d
JD
71062009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7107
0d1d0d26
JD
7108 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7109
7110 * xsettings.h: Declare xsettings_get_system_font.
7111
7112 * xsettings.c (xsettings_get_system_font): New function.
7113 (init_gconf): No use initiating gconf unless we have Xft also.
7114 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7115 HAVE_GCONF.
7116
4a8e097d
JD
7117 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7118 add a blank entry so it doesn't collapse into nothing.
7119
8ab1650e
SM
71202009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7121
7122 * lread.c (Funintern): Comment out last change.
7123
82c602f0
RS
71242009-11-19 Richard Stallman <rms@gnu.org>
7125
7126 * lread.c (Funintern): Error if symbol is t or nil.
7127
87e32266
SM
71282009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7129
7130 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7131 representation of Lisp integers.
7132 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7133
1b9ac145
AS
71342009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7135
7136 * lisp.h: Remove declaration of Ffont_get_system_font.
7137 * xfns.c: Move include of "xsettings.h".
7138 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7139
dfb3c4c6
JD
71402009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7141
87e32266
SM
7142 * xsettings.c (something_changedCB, Ffont_get_system_font):
7143 Check use_system_font.
dfb3c4c6
JD
7144 (syms_of_xsettings): DEFVAR font-use-system-font.
7145
9370c1d8
AS
71462009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7147
25fe851a
AS
7148 * xfns.c (x_default_font_parameter): Remove dead assignment.
7149
9370c1d8
AS
7150 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7151
637fa988
JD
71522009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7153
87e32266 7154 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7155 not have FC_LCD_*. #define them if not there.
a6eb20d8 7156
87e32266 7157 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7158
637fa988
JD
7159 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7160
7161 * xterm.c (handle_one_xevent): Call xft_settings_event for
7162 ClientMessage, PropertyNotify and DestroyNotify.
7163 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7164 Call xsettings_initialize.
7165
7166 * xftfont.c (xftfont_fix_match): New function.
7167 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7168 Call xftfont_fix_match after XftFontMatch.
7169
7170 * xfont.c (xfont_driver): Initialize all members.
7171
87e32266
SM
7172 * xfns.c (x_default_font_parameter):
7173 Try font from Ffont_get_system_font.
637fa988
JD
7174 Do not get font from x_default_parameter if we got one from
7175 Ffont_get_system_font.
87e32266 7176 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7177
7178 * w32font.c (w32font_driver): Initialize all members.
7179
7180 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7181
7182 * lisp.h: Declare syms_of_xsettings.
7183
87e32266
SM
7184 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7185 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7186
7187 * ftfont.c (ftfont_filter_properties): New function.
7188
7189 * frame.c (x_set_font): Remove unused variable lval.
7190
87e32266 7191 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7192
7193 * font.c (font_put_extra): Don't return if val is nil, it means
7194 boolean option is off.
7195 (font_parse_fcname): Collect all extra properties in extra_props
7196 and call filter_properties for all drivers with extra_props and
7197 font as parameter.
87e32266
SM
7198 (font_open_entity): Do not use cache, it does not pick up new
7199 fontconfig settings like hinting.
637fa988
JD
7200 (font_load_for_lface): If spec had a name in it, store it in entity.
7201
a73f9c9d 7202 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7203
7204 * config.in: HAVE_GCONF is new.
7205
7206 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7207 xsettings.o is new.
7208
5a942932
KH
72092009-11-17 Kenichi Handa <handa@m17n.org>
7210
7211 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7212 back to the default font in case that no suitable font is found.
7213
b7c7a4d1
SM
72142009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7215
7216 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7217 Suggested by Chad Brown <yandros@mit.edu>.
7218 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7219
072f1e39
JD
72202009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7221
7222 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7223
5d1e70a2
AS
72242009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7225
87e32266 7226 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7227
a53cfbe5
JD
72282009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7229
473a99b7
JD
7230 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7231 has a parent.
7232
a53cfbe5 7233 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7234 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7235
7236 * config.in: Generated (AUTO_DEPEND).
7237
f04bb9b2
MA
72382009-11-13 Michael Albinus <michael.albinus@gmx.de>
7239
b7c7a4d1 7240 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7241 Vdbus_registered_functions_table, because it contains also
7242 properties. Fix docstring.
b7c7a4d1 7243 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7244
8f11f7ec
SM
72452009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7246
7247 * alloc.c (mark_object): Don't reprocess marked strings.
7248 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7249 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7250
8a605fe8
KH
72512009-11-13 Kenichi Handa <handa@m17n.org>
7252
8f11f7ec 7253 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7254 semantics of Vword_combining_categories.
7255 (Vword_combining_categories): Describe the slight change of the
7256 semantics.
7257
241c4680
EZ
72582009-11-13 Eli Zaretskii <eliz@gnu.org>
7259
7260 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7261
7262 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7263
5d58e44c
SM
72642009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7265
7266 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7267
5e13f9d3
JB
72682009-11-12 Juanma Barranquero <lekktu@gmail.com>
7269
7270 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7271
cf54c754
DR
72722009-11-11 David Reitter <david.reitter@gmail.com>
7273
7274 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7275 variables to fix 2009-11-09 change.
7276
a4ada374
DN
72772009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7278
91433552
DN
7279 * process.c (ifflag_def): Make flag_sym constant.
7280 (Fnetwork_interface_info): Use a constant pointer.
7281 (ifflag_table):
7282 * xfns.c (cursor_bits):
7283 * xdisp.c (power_letter):
7284 * termcap.c (speeds, esctab):
7285 * sysdep.c (baud_convert):
7286 * keyboard.c (lispy_accent_codes, modifier_names):
7287 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7288 (jpeg_format, tiff_format, gif_format, svg_format)
7289 (interlace_start, interlace_increment, gs_format):
7290 * gtkutil.c (separator_names):
7291 * fringe.c (swap_nibble):
7292 * fns.c (base64_value_to_char, base64_char_to_value):
7293 * fileio.c (make_temp_name_tbl):
7294 * coding.c (suffixes): Make constant.
7295
f4265f6c
DN
7296 * frame.c (make_initial_frame):
7297 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7298 build_string.
7299 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7300
04420943
DN
7301 * s/freebsd.h:
7302 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7303
0a5d24ae
DN
7304 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7305 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7306
a4ada374
DN
7307 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7308 * xterm.c (syms_of_xterm):
7309 * xfaces.c (syms_of_xfaces):
7310 * xdisp.c (syms_of_xdisp):
7311 * lread.c (syms_of_lread):
7312 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7313 build_string.
91433552 7314
a4ada374
DN
7315 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7316
af98fc7f
SM
73172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7318
8ab1650e 7319 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7320
e90292a9
JD
73212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7322
7323 * keyboard.h: Declare timer_check.
7324
7325 * keyboard.c (timer_check_2): New function that does what the old
7326 timer_check did.
7327 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7328 returned, i.e. don't return -1 with timers pending.
7329
7330 * process.c: Remove extern declaration of timer_check.
7331
7332 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7333 even if timer_check returned -1.
7334
af98fc7f
SM
7335 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7336 xg_dialog_data.
e90292a9
JD
7337 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7338 the event loop.
7339 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7340 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7341 Destroy the dialog after xg_dialog_run.
7342
045b83c0
SM
73432009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7344
7345 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7346
1fb99a3a
JD
73472009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7348
7349 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7350
04e452cb
JB
73512009-11-09 Juanma Barranquero <lekktu@gmail.com>
7352
7353 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7354
ef7417fd
SM
73552009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7356
7357 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7358 w32menu.c, and nsmenu.m.
7359 Simplify the obsolete case where position is nil.
7360 (cleanup_popup_menu): New function, moved from nsmenu.m.
7361 (struct skp): Remove slot `notreal'.
7362 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7363 adjust callers.
7364 (single_menu_item): Adjust call to parse_menu_item.
7365 (syms_of_menu): Defsubr x-popup-menu.
7366 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7367 (keymap_panes): Don't export any more.
7368 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7369 (xmenu_show): Declare.
7370 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7371 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7372 * keyboard.h (parse_menu_item): Update declaration.
7373 * xmenu.c (Fx_popup_menu): Remove.
7374 (syms_of_xmenu): Don't defsubr x-popup-menu.
7375 * w32menu.c (Fx_popup_menu): Remove.
7376 (syms_of_w32menu): Don't defsubr x-popup-menu.
7377 * nsmenu.m (cleanup_popup_menu): Remove.
7378 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7379 moved to menu.c's Fx_popup_menu.
7380 (Fx_popup_menu): Remove.
7381 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7382 menu_items (it's done in menu.c already).
7383
424d6179
SM
73842009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7385
7386 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7387 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7388
c0df13a6 73892009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7390
7391 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7392 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7393 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7394 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7395
2de9f71c
SM
73962009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7397
7398 Let integers use up 2 tags to give them one extra bit and thus double
7399 their range.
7400 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7401 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7402 New macros.
7403 (enum Lisp_Type): Use them. Give explicit values.
7404 (Lisp_Type_Limit): Remove.
7405 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7406 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7407 Pay attention to USE_2_TAGS_FOR_INTS.
7408 (INTEGERP): Use LISP_INT_TAG_P.
7409 * fns.c (internal_equal): Simplify the default case.
7410 (sxhash): Use case_Lisp_Int.
7411 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7412 any more.
7413 (Ftype_of): Use case_Lisp_Int.
7414 (store_symval_forwarding): Take into account the fact that Ints can
7415 now have more than one tag.
7416 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7417 (buffer_slot_type_mismatch):
2de9f71c
SM
7418 * xfaces.c (face_attr_equal_p):
7419 * print.c (print_object):
7420 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7421 Use case_Lisp_Int.
7422
323637a2
EZ
74232009-11-06 Eli Zaretskii <eliz@gnu.org>
7424
7ac65b38
EZ
7425 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7426
323637a2
EZ
7427 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7428 warning.
7429
e511451f
JD
74302009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7431
7432 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7433
7434 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7435
7436 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7437 ButtonPressRelease and MotionNotify (bug#4870).
7438
5e2327cf
DN
74392009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7440
5adc433e
DN
7441 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7442
d67b4f80
DN
7443 * xterm.c (syms_of_xterm):
7444 * xselect.c (syms_of_xselect):
7445 * xmenu.c (syms_of_xmenu):
7446 * xfns.c (syms_of_xfns):
7447 * xfaces.c (syms_of_xfaces):
7448 * xdisp.c (syms_of_xdisp):
7449 * window.c (syms_of_window):
7450 * w32fns.c (syms_of_w32fns):
7451 * undo.c (syms_of_undo):
7452 * textprop.c (syms_of_textprop):
7453 * terminal.c (syms_of_terminal):
7454 * syntax.c (syms_of_syntax):
7455 * sound.c (syms_of_sound):
7456 * search.c (syms_of_search):
7457 * print.c (syms_of_print):
7458 * minibuf.c (syms_of_minibuf):
7459 * macros.c (syms_of_macros):
7460 * keymap.c (syms_of_keymap, initial_define_key)
7461 (initial_define_lispy_key):
7462 * keyboard.c (syms_of_keyboard):
7463 * insdel.c (syms_of_insdel):
7464 * image.c (syms_of_image):
7465 * fringe.c (syms_of_fringe):
7466 * frame.c (syms_of_frame):
7467 * fontset.c (syms_of_fontset):
7468 * fns.c (syms_of_fns):
7469 * fns.c (syms_of_fns):
7470 * fileio.c (syms_of_fileio):
7471 * fileio.c (syms_of_fileio):
7472 * eval.c (syms_of_eval):
7473 * doc.c (syms_of_doc):
7474 * dispnew.c (syms_of_display):
7475 * dired.c (syms_of_dired):
7476 * dbusbind.c (syms_of_dbusbind):
7477 * data.c (syms_of_data):
7478 * composite.c (syms_of_composite):
7479 * coding.c (syms_of_coding):
7480 * cmds.c (syms_of_cmds):
7481 * charset.c (define_charset_internal, syms_of_character):
7482 * ccl.c (syms_of_ccl):
7483 * category.c (syms_of_category, init_category_once):
7484 * casetab.c (syms_of_casetab):
7485 * casefiddle.c (syms_of_casefiddle):
7486 * callint.c (syms_of_callint):
7487 * bytecode.c (syms_of_bytecode):
7488 * buffer.c (keys_of_buffer, syms_of_buffer):
7489 * alloc.c (syms_of_alloc):
7490 * process.c (syms_of_process, init_process):
7491 * lread.c (syms_of_lread, init_obarray):
7492 * font.c (build_style_table):
7493 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7494 intern_c_string, calls to make_pure_string with
7495 make_pure_c_string. Use pure_cons instead of Fcons.
7496
5e2327cf
DN
7497 * process.c (socket_options): Make it const.
7498 (set_socket_option, init_process): Use a const pointer.
7499
7500 * lread.c (intern_c_string): New function.
7501 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7502 (defvar_int): Uset it. Make the name const char*.
7503
7504 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7505 (defvar_int): Update prototypes.
7506 (DEFUN, EXFUN): Support for prototypes is now required.
7507 (intern_c_string): New prototype.
7508 (struct Lisp_Subr): Make symbol_name constant.
7509
7510 * font.c (struct table_entry): Remove unused member. Make NAMES
7511 constant.
7512 (weight_table, slant_table, width_table): Make constant.
7513
7514 * emacs.c (struct standard_args): Make name and longname constant.
7515
7516 * character.h (DEFSYM): Use intern_c_string.
7517
a56eaaef
DN
75182009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7519
7520 * alloc.c (make_pure_c_string): New function.
7521
7522 * eval.c (Fautoload): Purecopy all arguments.
7523
f6a07420
KH
75242009-11-05 Kenichi Handa <handa@m17n.org>
7525
7526 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7527 the buffer in case of replace.
7528
5d28d4b1
DN
75292009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7530
7531 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7532
b349d111
SM
75332009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7534
d528b1ce
SM
7535 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7536 when applicable (bug#4851).
7537
b349d111
SM
7538 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7539 (P_): Support for prototypes is now required.
7540
c38eb027
CY
75412009-10-31 Chong Yidong <cyd@stupidchicken.com>
7542
7543 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7544 (Bug#4827).
7545
0405f8d9
EZ
75462009-10-30 Eli Zaretskii <eliz@gnu.org>
7547
d528b1ce 7548 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7549
ca0a881a
DN
75502009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7551
7552 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7553
d528b1ce
SM
7554 * lread.c (Fload): Purecopy the file name when building
7555 Vpreloaded_file_list.
ca0a881a 7556
47e0e0e4
JR
75572009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7558
7559 * w32fns.c (syms_of_w32fns): Change default value of
7560 w32-scroll-lock-modifier to nil. (Bug#2827)
7561
057bce6f
JB
75622009-10-26 Juanma Barranquero <lekktu@gmail.com>
7563
782a943e 7564 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7565
242bc74c
AS
75662009-10-26 Andreas Schwab <schwab@redhat.com>
7567
7568 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7569
522d013a
JB
75702009-10-26 Juanma Barranquero <lekktu@gmail.com>
7571
7572 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7573 For delta < 0, skip check that only makes sense when the mini-window
7574 is going to be enlarged. (Bug#4534)
7575
18060980
CY
75762009-10-25 Chong Yidong <cyd@stupidchicken.com>
7577
7578 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7579 string in menu maps (Bug#4471).
7580
fec8f0fe
CY
75812009-10-24 Chong Yidong <cyd@stupidchicken.com>
7582
7583 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7584 FRAME_NS_VIEW on terminal frames (Bug#4765).
7585
10d66ec0
AS
75862009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7587
1cae01f7
AS
7588 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7589 DBUS_TYPE_UINTnn separately to get proper sign extension.
7590
58a12889
AS
7591 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7592 can properly handle unsigned types.
d528b1ce 7593 (make_uid, make_gid): Remove.
58a12889 7594
987c9327
AS
7595 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7596 types again.
7597
522d013a 7598 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7599 (system_process_attributes): Likewise.
7600
905a9ed3
DN
76012009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7602
7603 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7604
7605 * eval.c (Fautoload): Purecopy the filename. Simplify.
7606
7607 * category.c (Fdefine_category): Purecopy docstring.
7608
a599b3e8
AS
76092009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7610
7b792fc9
AS
7611 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7612
a599b3e8
AS
7613 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7614
b35ac83e
CY
76152009-10-23 Chong Yidong <cyd@stupidchicken.com>
7616
7617 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7618 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7619 (Bug#4775).
7620
e8903e00
SM
76212009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7622
7623 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7624 (init_fileio_once):
7625 * lisp.h (init_fileio_once): Remove.
7626 * emacs.c (main): Don't call init_fileio_once.
7627
8f43cbf3
DN
76282009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7629
7630 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7631
26898943
AS
76322009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7633
7634 * doprnt.c (doprnt): Fix overflow check.
7635
5c646d5a
JD
76362009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7637
3132a7ea
JD
7638 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7639
5c646d5a
JD
7640 * xterm.h (x_wait_for_event): Declare it.
7641
7642 * xterm.c (pending_event_wait): New variable.
7643 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7644 see pending_event_wait.eventtype.
7645 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7646 (x_new_font): Call change_frame_size with new rows/columns before we
7647 try to resize the frame.
5c646d5a 7648 (x_wait_for_event): New function.
d528b1ce
SM
7649 (x_set_window_size_1): Don't change gravity unless change_gravity
7650 is set.
5c646d5a
JD
7651 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7652 don't change frame size, instead wait for the ConfigureNotify.
7653 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7654 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7655 (x_initialize): Initialize pending_event_wait.
7656
7657 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7658 size.
7659
7660 * widget.c (EmacsFrameSetValues): Add comment.
7661 (EmacsFrameSetCharSize): Just call x_set_window_size.
7662
7663 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7664 x_wait_for_event.
d528b1ce 7665 (flush_and_sync): Remove again.
5c646d5a
JD
7666 (xg_get_font_name): Suggest monospace if no previous font is known.
7667
e9c1637d
SM
76682009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7669
7670 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7671 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7672
5a72cccb
YM
76732009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7674
7675 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7676 processing pending events when event is filtered for input method.
ab04798f 7677 (Bug#3681)
5a72cccb 7678
2629aa37
JB
76792009-10-20 Juanma Barranquero <lekktu@gmail.com>
7680
7681 * fns.c: Add #endif accidentally removed in previous change.
7682
c3417a74
DN
76832009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7684
7685 * fns.c: Remove code for unsupported system: MAC_OS.
7686 * image.c: Likewise. Include setjmp.h.
7687
9685cef2
JD
76882009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7689
7690 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7691 pixel -1 (bug #4742).
7692
d7306fe6
DN
76932009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7694
019d2c4c
DN
7695 * process.c (create_pty): Remove conditionals for no longer
7696 supported systems: UNIPLUS and RTU.
7697
ee6bacd4
DN
7698 * xterm.c:
7699 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7700
d7306fe6
DN
7701 * alloc.c: Do not define struct catchtag.
7702 * eval.c: Move struct catchtag definition ...
7703 * lisp.h: ... here.
7704
7705 * image.c: Move png.h #include earlier to avoid warnings.
7706
7707 * xterm.c:
7708 * xsmfns.c:
7709 * xselect.c:
7710 * xrdb.c:
7711 * xmenu.c:
7712 * xftfont.c:
7713 * xfont.c:
7714 * xfns.c:
7715 * xfaces.c:
7716 * xdisp.c:
7717 * window.c:
7718 * widget.c:
7719 * w32xfns.c:
7720 * w32uniscribe.c:
7721 * w32term.c:
7722 * w32select.c:
7723 * w32reg.c:
7724 * w32proc.c:
7725 * w32menu.c:
7726 * w32inevt.c:
7727 * w32heap.c:
7728 * w32font.c:
7729 * w32fns.c:
7730 * w32console.c:
7731 * w32.c:
7732 * w16select.c:
7733 * vm-limit.c:
7734 * unexsol.c:
7735 * unexec.c:
7736 * unexcw.c:
7737 * unexaix.c:
7738 * undo.c:
7739 * tparam.c:
7740 * textprop.c:
7741 * terminfo.c:
7742 * terminal.c:
7743 * termcap.c:
7744 * term.c:
7745 * syntax.c:
7746 * sound.c:
7747 * sheap.c:
7748 * search.c:
7749 * scroll.c:
7750 * region-cache.c:
7751 * regex.c:
7752 * ralloc.c:
7753 * process.c:
7754 * print.c:
b024548b
DN
7755 * nsterm.m:
7756 * nsselect.m:
7757 * nsmenu.m:
7758 * nsimage.m:
7759 * nsfont.m:
7760 * nsfns.m:
d7306fe6
DN
7761 * msdos.c:
7762 * minibuf.c:
7763 * menu.c:
7764 * marker.c:
7765 * macros.c:
7766 * keymap.c:
7767 * keyboard.c:
7768 * intervals.c:
7769 * insdel.c:
7770 * indent.c:
7771 * gtkutil.c:
7772 * ftxfont.c:
7773 * ftfont.c:
7774 * fringe.c:
7775 * frame.c:
7776 * fontset.c:
7777 * font.c:
7778 * fns.c:
7779 * floatfns.c:
7780 * filelock.c:
7781 * fileio.c:
7782 * emacs.c:
7783 * editfns.c:
7784 * dosfns.c:
7785 * doprnt.c:
7786 * doc.c:
7787 * dispnew.c:
7788 * dired.c:
7789 * dbusbind.c:
7790 * data.c:
7791 * composite.c:
7792 * coding.c:
7793 * cmds.c:
7794 * cm.c:
7795 * chartab.c:
7796 * charset.c:
7797 * character.c:
7798 * ccl.c:
7799 * category.c:
7800 * casetab.c:
7801 * casefiddle.c:
7802 * callproc.c:
7803 * callint.c:
7804 * bytecode.c:
7805 * buffer.c:
7806 * atimer.c: Include setjmp.h. (Bug#4643)
7807
fd5f21e6
SM
78082009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7809
4c0354d7
SM
7810 Remove leftover table unibyte_to_multibyte_table.
7811 * character.c (unibyte_to_multibyte_table): Remove.
7812 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7813 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7814 * character.h (UNIBYTE_TO_CHAR): New macro.
7815 (MAKE_CHAR_MULTIBYTE): Use it.
7816 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7817 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7818 (message_dolog, set_message_1):
7819 * search.c (Freplace_match):
7820 * editfns.c (Fcompare_buffer_substrings):
7821 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7822 (concat):
7823 * insdel.c (copy_text, count_size_as_multibyte):
7824 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7825 * term.c (produce_glyphs):
7826 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7827 * regex.c (RE_CHAR_TO_MULTIBYTE):
7828 * cmds.c (internal_self_insert):
7829 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7830
fd5f21e6
SM
7831 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7832
4418646e
DN
78332009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7834
7835 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7836
35f5c1d2
JB
78372009-10-16 Juanma Barranquero <lekktu@gmail.com>
7838
7839 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7840
a0cd8f6b
AR
78412009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7842
7843 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7844 still needed under Tiger.
7845
7846 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7847
7848 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7849 __Apple__.
7850
7851 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7852
01a8d3fa
KH
78532009-10-15 Kenichi Handa <handa@m17n.org>
7854
7855 * print.c (print_object): Escape a symbol like "2E10" too.
7856
bf6c75c9 78572009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7858
7859 Cleanups and changes for 64-bit compile under Snow Leopard.
7860 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7861
7862 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7863
c5959062 7864 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7865 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7866 cast argument.
7867 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7868 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7869
7870 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7871
7872 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7873 where appropriate.
7874
7875 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7876 where appropriate.
6e4780c5
JB
7877 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7878 Use stringWithUTF8String.
bf6c75c9
AR
7879 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7880
6e4780c5
JB
7881 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7882 Add formal protocol mention to inheritance.
bf6c75c9
AR
7883 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7884
6e4780c5
JB
7885 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7886 Fix printf format.
bf6c75c9
AR
7887 (ns_query_color): Use CGFloat where appropriate.
7888 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7889 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7890 argument.
7891
3d87f118
AR
7892 * config.in (NS_HAVE_NSINTEGER): Drop.
7893
a95c8102
AR
7894 * dbusbind.c (dbus-method-return-internal)
7895 (dbus-method-error-internal): Use long format in printf, and cast
7896 argument.
7897
7898 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7899 in printf, and cast argument.
7900
6873acca 7901 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7902 cast argument.
7903
9ec6f100
GM
79042009-10-11 Glenn Morris <rgm@gnu.org>
7905
7906 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7907
5be883cd
JD
79082009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7909
7910 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7911 menu bar with a small width so it doesn't enlarge the frame.
7912
d7a39b51
JB
79132009-10-08 Juanma Barranquero <lekktu@gmail.com>
7914
7915 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7916
0c2b6f8e
GM
79172009-10-06 Glenn Morris <rgm@gnu.org>
7918
7919 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7920 SOME_MACHINE_LISP (this enters indirectly via DOC).
7921
e02131a2
EZ
79222009-10-05 Eli Zaretskii <eliz@gnu.org>
7923
7924 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7925
b4744254
EZ
79262009-10-04 Eli Zaretskii <eliz@gnu.org>
7927
7928 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7929 Doc fix.
7930
dbf64827
JB
79312009-10-03 Martin Rudalics <rudalics@gmx.at>
7932
7933 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7934
e9a0aef8
MA
79352009-10-02 Michael Albinus <michael.albinus@gmx.de>
7936
d528b1ce 7937 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7938 used anymore outside fileio.c.
7939
7940 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7941
64eb2b56
JB
79422009-10-01 Juanma Barranquero <lekktu@gmail.com>
7943
7944 * lisp.h (Qdelete_directory_internal):
7945 Declare, instead of Qdelete_directory.
7946
7947 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7948
9d28c33e
SM
79492009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7950
7951 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7952
9d8f3bd9
MA
79532009-10-01 Michael Albinus <michael.albinus@gmx.de>
7954
9d28c33e 7955 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7956 Fdelete_directory. It is not a command anymore. It has no file
7957 name handler.
7958
9694740b
SM
79592009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7960
7961 * xdisp.c (get_next_display_element): Use an enum in last change.
7962
748e162f
KH
79632009-09-28 Kenichi Handa <handa@m17n.org>
7964
9694740b 7965 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7966 unibyte_display_via_language_environment in handling
7967 Vnobreak_char_display.
7968
17efd58d
AR
79692009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7970
7971 * nsterm.h (ns_app_name): New extern variable.
7972
7973 * nsterm.m (ns_app_name): New variable.
7974 (ns_term_init): Set and use it.
7975 (ns_term_shutdown): Use it.
7976
7977 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7978 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7979
7980 * nsfns.m (ns_set_name_iconic, ns_set_name)
7981 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7982 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7983
9694740b
SM
7984 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7985 Remove double-casting in client_data comparison.
31c2d412 7986
3208cb35
YM
79872009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7988
7989 * keyboard.c (make_lispy_event): Remember last wheel direction.
7990 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7991
b7d552d6
GM
79922009-09-26 Glenn Morris <rgm@gnu.org>
7993
7994 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7995 internal.elc. Add term/pc-win.elc.
7996 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7997 term/x-win.elc.
7998 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7999 term/w32-win.elc.
8000 (NS_SUPPORT): New.
8001 (lisp): Add NS_SUPPORT.
8002 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8003
4ff670a8
DR
80042009-09-25 David Reitter <david.reitter@gmail.com>
8005
8006 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8007 on Mac OS X 10.6+ (bug#4513).
8008
feabfb6c
JB
80092009-09-24 Juanma Barranquero <lekktu@gmail.com>
8010
8011 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8012 some parts of Emacs code (like font selection) don't grok them.
8013 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8014
de59072a
AS
80152009-09-24 Andreas Schwab <schwab@redhat.com>
8016
8017 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8018
a489517b
JB
80192009-09-24 Juanma Barranquero <lekktu@gmail.com>
8020
8021 * dired.c (Fdirectory_files): Fix typo in docstring.
8022
0592970c
AR
80232009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8024
8025 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8026 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8027 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8028 under GNUstep.
8029 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8030
8031 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8032 glyph advancement.
8033
48e8a88b
AR
80342009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8035
8036 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8037 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8038
8039 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8040 deleted (bug #4492).
8041
e14f0a78
AR
8042 * nsfont.m (Vns_reg_to_script): New lisp variable.
8043 (syms_of_nsfont): Declare it.
8044 (ns_registry_to_script): New function.
8045 (ns_get_req_script): Call it.
8046 (ns_findfonts): Don't give up on non-unicode registry.
8047
8048 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8049
5b650faa
SM
80502009-09-20 Tom Tromey <tromey@redhat.com>
8051
8052 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8053 batch mode (bug#4228).
8054
a489517b 80552009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8056
8057 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8058 carefully. (Bug #4339)
0bae4e09 8059
fcfe06f3
CY
80602009-09-18 Chong Yidong <cyd@stupidchicken.com>
8061
d798ba87 8062 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8063
31642728
AR
80642009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8065
8066 * emacs.c (inhibit_x_resources): Update doc string for NS.
8067 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8068 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8069
8070 * nsterm.h (ns_no_defaults): Remove.
8071
8072 * nsterm.m (ns_no_defaults): Remove.
8073 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8074 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8075 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8076 don't update the NSWindow itself.
8077 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8078 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8079
8080 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8081 ns_use_qd_smoothing.
8082
8083 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8084 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8085 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8086 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8087
8686ac71
JB
80882009-09-17 Juanma Barranquero <lekktu@gmail.com>
8089
8090 * emacs.c (inhibit_x_resources): New variable.
8091 (main) [HAVE_NS]: Don't process --quick command line option.
8092 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8093
8094 * lisp.h (inhibit_x_resources): Declare it extern.
8095
8096 * w32reg.c (x_get_string_resource):
8097 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8098
e227ba05
EZ
80992009-09-17 Eli Zaretskii <eliz@gnu.org>
8100
362654a6
JB
8101 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8102 Add lisp/term/internal.elc.
e227ba05 8103
742d40e8
SM
81042009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8105
8106 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8107 (bug#4461).
8108
005bd5a2
DN
81092009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8110
8111 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8112
8113 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8114 (OBJECTS_MACHINE): Remove, unused.
8115
f9af9719
SM
81162009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8117
8118 * frame.c (x_get_resource_string): Remove unused.
8119
0307c7d2
JD
81202009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8121
8122 * xterm.c (x_new_font): Call change_frame_size before calling
8123 x_set_window_size, in case frame size won't change.
8124
8125 * frame.c (x_set_font): Remove dead code.
8126
428b13d6
SM
81272009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8128
8129 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8130
5766c380
SM
81312009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8132
8133 * lread.c (Fload): Don't output a message after loading an obsolete
8134 package any more (done in Lisp now).
8135
2fd0161b
CY
81362009-09-12 Chong Yidong <cyd@stupidchicken.com>
8137
8138 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8139
bc5e75b6
SM
81402009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8141
8142 * keymap.c (Fwhere_is_internal): Use nconc2.
8143
c31c985e
AM
81442009-09-11 Alan Mackenzie <acm@muc.de>
8145
8146 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8147 batch mode.
8148
78012bd2
AS
81492009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8150
8151 * xdisp.c (display_mode_element): Detect cycles.
8152
9d889332
SM
81532009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8154
8155 * keymap.c (where_is_internal): Don't erroneously return nil right after
8156 filling the cache.
8157 (where_is_internal_1): Fix up typo.
8158
7ab5d780
GM
81592009-09-11 Glenn Morris <rgm@gnu.org>
8160
8161 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8162 share a common doc-string.
8163
5238a749
SM
81642009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8165
66d77eda
SM
8166 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8167 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8168
5238a749
SM
8169 * keymap.c (QCadvertised_binding): New constant.
8170 (syms_of_keymap): Initialize it.
8171 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8172 if applicable.
8173
19f48442
SM
81742009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8175
50d4ba39
SM
8176 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8177 (parse_menu_item): Streamline since bindings are recomputed all the
8178 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8179 more and don't support lmenu's menu-alias any more either.
8180
a88a5372
SM
8181 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8182 (where_is_internal): Strip it down to only traverse the keymaps.
8183 Move the cache handling from Fwhere_is_internal to here.
8184 (Fwhere_is_internal): Move the handling of remapping and the choice of
8185 the best binding from where_is_internal to here.
8186 Unify the cached/noncached paths, so remapping is also handled
8187 correctly when the cache is used, and so the cache can be used to
8188 speed up remap-handling when applicable.
8189 Give preference to non-remapped bindings.
8190 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8191 non-remapped bindings.
8192 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8193 command remapping.
8194
19f48442
SM
8195 * xdisp.c (display_mode_element): Move list length limit from 50 to
8196 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8197
599498c3 81982009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8199
8200 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8201
f9b7b5ac
SM
82022009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8203
a53af587
JB
8204 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8205 (Bug#4334)
8206
f9b7b5ac
SM
8207 * keymap.c (where_is_internal): Filter out shadowed remappings.
8208 Assume that where_is_internal returns unshadowed bindings to simplify
8209 the code and get rid of the gotos. Use ASIZE.
8210
04f4b72d
JD
82112009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8212
4da146f2
JD
8213 * xterm.c (x_focus_changed): If we get a focusout and pointer
8214 is invisible, make it visible.
8215
04f4b72d
JD
8216 * xterm.h: Remove condition for declaration of
8217 x_*_window_to_frame.
8218
7cef7ce3
SM
82192009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8220
8221 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8222 initial terminal as well.
8223
a54fa5b7
JD
82242009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8225
8226 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8227 x_menubar_window_to_frame.
a54fa5b7 8228
50426a04 8229 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8230 (XTmouse_position): Do not return valid positions
8231 for clicks in the menubar and the toolbar for Gtk+.
8232
8233 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8234 if the widget for the event has the same top level as a frame,
8235 return the frame.
8236 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8237 internal windows, bug #4122.
8238 (x_non_menubar_window_to_frame): Remove.
8239
5a021dd0
GM
82402009-09-02 Glenn Morris <rgm@gnu.org>
8241
8242 * buffer.c (default-major-mode): Move most of the doc from here...
8243 (major-mode): ... to here.
8244
548fe2f3
NR
82452009-08-30 Nick Roberts <nickrob@snap.net.nz>
8246
8247 * process.c (wait_reading_process_output): Keep the descriptor
8248 when pty is used by a non-child process, e.g., in I/O buffer of
8249 GDB this allows inferior to be restarted.
8250
e0840eef
EZ
82512009-08-29 Eli Zaretskii <eliz@gnu.org>
8252
8253 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8254 both branches into one.
8255
82e98df4
SM
82562009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8257
8258 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8259 (main): Use enable-multibyte-characters rather than
8260 default-enable-multibyte-characters. Output a warning message when
8261 running a unibyte session.
8262
890617cb
YM
82632009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8264
8265 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8266 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8267 (copy_data_segment): Also copy __program_vars section.
8268 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8269 (dump_it) [LC_DYLD_INFO]: Use it.
8270
8271 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8272
e7adeadc
EZ
82732009-08-28 Eli Zaretskii <eliz@gnu.org>
8274
8275 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8276 $(SRC)/buildobj.h.
8277 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8278 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8279 $(SRC)/buildobj.h.
8280 (clean): Add buildobj.h.
8281
3ed8bbdc
TZ
82822009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8283
8284 * print.c (print_object): Set escapeflag to 1 when printing
8285 hashtable keys and values.
8286
155a6764
SM
82872009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8288
8289 * lread.c (read_integer): Use doubles (and potentially return a float
8290 number) as we do in string-to-number.
8291 (read1): Use strtol to read integers, signal errors on strtol's
8292 overflow and use floats if strtol's output is too large for
8293 Elisp integers.
8294
877610de
EZ
82952009-08-27 Eli Zaretskii <eliz@gnu.org>
8296
8297 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8298 (make-buildobj-SH): Fix last change.
8299 (SRC): Move to before where it's first used.
8300
ef73e7be
KH
83012009-08-27 Kenichi Handa <handa@m17n.org>
8302
550c8289
KH
8303 * process.c (send_process): Use encode_coding_object instead of
8304 encode_coding_string to perform eol-conversion even if the string
8305 is unibyte.
8306
60afa08d
KH
8307 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8308 character.
8309
ef73e7be 8310 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8311 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8312
7b3a82d7
DN
83132009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8314
5654bf63
DN
8315 * callproc.c (Fcall_process): Remove always true #if.
8316
7b3a82d7
DN
8317 * lisp.h: Replace #if 0 code for checking with text pointing to
8318 the --enable-checking configure flag.
8319
8320 * emacs.c (main): Mention the --enable-profiling configure flag
8321 instead of using CFLAGS.
8322
878bde49
KR
83232009-08-26 Ken Raeburn <raeburn@raeburn.org>
8324
8325 * Makefile.in (buildobj.h): New target.
8326 (doc.o): Depend on it.
8327 (temacs${EXEEXT}): Don't generate buildobj.lst.
8328 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8329 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8330 ($(BLD)/doc.$(O)): Depend on it.
8331 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8332 provided by Eli Zaretskii.)
8333 ($(TEMACS)): Don't generate buildobj.lst.
8334 * doc.c: Include buildobj.h.
8335 (buildobj): New static variable.
8336 (Fsnarf_documentation): Use it, instead of opening and reading
8337 buildobj.lst.
8338
1574224c
MA
83392009-08-25 Michael Albinus <michael.albinus@gmx.de>
8340
8341 * dbusbind.c (Fdbus_call_method)
8342 (Fdbus_call_method_asynchronously): Use English numeric format for
8343 timeout values in doc string.
8344
d9da2f45
KH
83452009-08-25 Kenichi Handa <handa@m17n.org>
8346
ef73e7be
KH
8347 * alloc.c (mark_char_table): New function.
8348 (mark_object): Use mark_char_table for a char-table.
8349
d9da2f45
KH
8350 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8351 (CHAR_TABLE_REF): Use it.
8352
c8edcc01
KR
83532009-08-23 Ken Raeburn <raeburn@raeburn.org>
8354
8355 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8356 before invoking the newly build emacs to check for load-path
8357 shadowing.
8358
7763401b
GM
83592009-08-22 Glenn Morris <rgm@gnu.org>
8360
8361 * Makefile.in (bootstrap_exe): New variable.
8362 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8363 Use ${bootstrap_exe}.
8364
729eadda
EZ
83652009-08-22 Eli Zaretskii <eliz@gnu.org>
8366
8367 * coding.h (encode_coding_string): Don't encode unibyte strings.
8368 (Bug#4047)
8369
eb4c6ace
MA
83702009-08-22 Michael Albinus <michael.albinus@gmx.de>
8371
8372 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8373
8374 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8375 intended as hotfix only.
8376 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8377
36e34d1b
AR
83782009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8379
8380 * nsterm.m (ns_get_color): Update documentation properly for last
8381 change, and clean up loose ends in the code left by it. Fix
8382 longstanding bug with 16-bit hex parsing, and add support for
8383 yet another X11 format (rgb:r/g/b) for compatibility.
8384 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8385 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8386
f983eb8a
SM
83872009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8388
8389 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8390
3f56d3c6
MA
83912009-08-20 Michael Albinus <michael.albinus@gmx.de>
8392
8393 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8394 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8395 (xd_initialize, xd_pending_messages): Check, whether
8396 $DBUS_SESSION_BUS_ADDRESS is set.
8397
fb641d68
YM
83982009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8399
8400 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8401
8402 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8403
cf59a374
GM
84042009-08-20 Glenn Morris <rgm@gnu.org>
8405
8406 * emacs.c (system-type): Doc fix.
8407
1373f3be
SM
84082009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8409
8410 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8411 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8412
058ed861
MA
84132009-08-18 Michael Albinus <michael.albinus@gmx.de>
8414
1373f3be
SM
8415 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8416 New functions.
058ed861
MA
8417 (xd_initialize): Revert change from 2009-08-16.
8418
563a866e 84192009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8420
8421 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8422 font-group vector, return nil.
5fc05db0 8423
e42bdf01
CY
84242009-08-17 Chong Yidong <cyd@stupidchicken.com>
8425
8426 * process.c (status_notify): Don't perform redisplay.
8427 (Fdelete_process, list_processes_1, process_send_signal):
8428 Expliticly perform redisplay.
8429 (wait_reading_process_output): Always check process status, but
8430 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8431
4230ab74
KR
84322009-08-17 Ken Raeburn <raeburn@raeburn.org>
8433
1373f3be 8434 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8435 (XFLOAT_INIT): New macro for storing a float value.
8436 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8437 * fns.c (sxhash): Copy out the value of a float in order to
8438 examine its bytes.
8439 * dbusbind.c (xd_append_arg): Likewise.
8440
4230ab74
KR
8441 * emacs.c (main): Don't call syms_of_data twice.
8442
a0645cdd
MA
84432009-08-16 Michael Albinus <michael.albinus@gmx.de>
8444
8445 * dbusbind.c (xd_initialize): Add connection file descriptor to
8446 input_wait_mask, in order to let select() detect, whether a new
8447 message has been arrived.
ca4f31ea 8448 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8449
485db0ba
MA
84502009-08-15 Michael Albinus <michael.albinus@gmx.de>
8451
1373f3be
SM
8452 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8453 New functions.
485db0ba
MA
8454
8455 * lisp.h (xd_pending_messages): Declare.
8456
8457 * keyboard.c (readable_events): Call xd_pending_messages.
8458
b5b98ff4
CY
84592009-08-15 Chong Yidong <cyd@stupidchicken.com>
8460
1373f3be 8461 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8462
f8354c6e
CY
8463 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8464
b5b98ff4
CY
8465 * buffer.c (set_buffer_internal_1)
8466 (swap_out_buffer_local_variables): Check for unbound local
8467 variables (Bug#4138).
8468
8b9fc636
EZ
84692009-08-14 Eli Zaretskii <eliz@gnu.org>
8470
8471 * process.c (create_pty): Fix last change.
8472
ce959360
CY
84732009-08-13 Chong Yidong <cyd@stupidchicken.com>
8474
8475 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8476 (xbm_load_image): Caller changed.
64b807c9 8477 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8478
c7baf7e9
NR
84792009-08-13 Nick Roberts <nickrob@snap.net.nz>
8480
8481 * process.c (create_pty): New function.
8482 (Fstart_process): Use it to allow Emacs to just associate a pty
8483 with the buffer. See associated change in gdb-mi.el.
8484 (list_processes_1): Deal with no program name.
8485 (start_process_unwind): Use pid == -2 to mean no process.
8486
1ac9108a
SM
84872009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 * cmds.c (nonundocount): New global variable.
8490 (keys_of_cmds): Initialize it.
8491 (Fself_insert_command): Use it to combine upto 20 sequential chars
8492 into a single undo entry, just like the Qself_insert_command code in
8493 keyboard.c does.
8494 Call frame_make_pointer_invisible, also like the Qself_insert_command
8495 code in keyboard.c does.
8496 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8497 than its own local replacement for it.
8498
e267324c
KR
84992009-08-10 Ken Raeburn <raeburn@raeburn.org>
8500
1ac9108a 8501 * fns.c (concat): Don't re-set string length to its current value.
77437343 8502
1ac9108a
SM
8503 * coding.h (decode_coding_string, encode_coding_string):
8504 Use SBYTES macro.
f0bed503 8505
1ac9108a 8506 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8507 (doprnt): Merge with doprnt1, discarding lispstrings code.
8508 * lisp.h (doprnt_lisp): Don't declare.
8509
416e006d
JL
85102009-08-07 Juri Linkov <juri@jurta.org>
8511
8512 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8513
6f7d5780
DN
85142009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8515
8516 * print.c (syms_of_print): Undo previous change.
8517
f19a0f5b
TZ
85182009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8519
8520 * lread.c (read1, syms_of_lread): Read hashtables back from the
8521 readable format.
8522
8523 * print.c (print_preprocess, print_object): Print hashtables fully
8524 and readably.
8525 (syms_of_print): Provide 'hashtable-print-readable.
8526
b9173dc2
AR
85272009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8528
8529 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8530 no family set.
8531 (nsfont_open): Handle case when entity has no family.
8532
1586503c
AR
85332009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8534
8535 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8536 element, not a list, for match case.
8537
087048cd
KH
85382009-07-28 Kenichi Handa <handa@m17n.org>
8539
8540 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8541 rigidly.
8542
8543 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8544 font_parse_xlfd. Check font properties more rigidly.
8545
780c2506
DN
85462009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8547
31fd7c5c
JB
8548 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8549 bsd-common.h.
780c2506 8550
a8c0cc18
KH
85512009-07-27 Kenichi Handa <handa@m17n.org>
8552
8553 * xfaces.c (face_with_height): Call font_clear_prop.
8554
4fbe2306
CY
85552009-07-26 Chong Yidong <cyd@stupidchicken.com>
8556
111d9af3
CY
8557 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8558
8559 * xterm.c (x_term_init): Use Qx.
8560
4fbe2306
CY
8561 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8562
1ac9108a 8563 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8564 (ns_get_color): Revert 2009-07-16 change.
8565
beb0b7f9
EZ
85662009-07-25 Eli Zaretskii <eliz@gnu.org>
8567
8568 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8569 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8570
2baf5e76
KR
85712009-07-25 Ken Raeburn <raeburn@raeburn.org>
8572
1ac9108a
SM
8573 * coding.h (decode_coding_string, encode_coding_string):
8574 Use SCHARS macro.
8890e5f5 8575
2baf5e76 8576 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8577 (load_depth): Delete.
2baf5e76
KR
8578 (Qload_in_progress): New variable.
8579 (load_unwind): Don't reference load_depth or load_in_progress.
8580 (Fload): Likewise; specbind Qload_in_progress instead.
8581 (init_lread): Don't initialize load_depth.
8582 (syms_of_lread): Initialize and protect Qload_in_progress.
8583
1395c6f5
AR
85842009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8585
8586 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8587
4e2f36cf
AR
85882009-07-23 Yavor Doganov <yavor@gnu.org>
8589
8590 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8591
5dd9a6f7
AR
85922009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8593
8594 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8595 Bugs 3792, 3720, 2402.
8596 (ns_lookup_indexed_color): Check for bad index.
8597 (ns_index_color): Init unused slot to 0.
8598 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8599 Bug 3714, possibly 3082.
5dd9a6f7 8600
c902b920
JR
86012009-07-22 Jason Rumney <jasonr@gnu.org>
8602
1ac9108a
SM
8603 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8604 Position IME window at cursor (Bug#2570).
c902b920
JR
8605 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8606 (globals_of_w32fns): Dynamically load functions required above.
8607
8608 * w32term.c (w32_draw_window_cursor): Send message to reposition
8609 any IME window.
8610
090101cf
CY
86112009-07-21 Chong Yidong <cyd@stupidchicken.com>
8612
8613 * fileio.c: Revert 2009-07-16 changes.
8614 (Vauto_save_include_big_deletions): New variable.
8615 (Fdo_auto_save): Disable auto-save only if
8616 auto-save-include-big-deletions is nil.
8617
e6583e3d
CY
86182009-07-21 Chong Yidong <cyd@stupidchicken.com>
8619
8620 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8621 the overflowed pixels into account (Bug#3879).
8622
ece435a5
KR
86232009-07-21 Ken Raeburn <raeburn@raeburn.org>
8624
8625 * lread.c (load_depth): New variable.
8626 (Fload, load_unwind, init_lread): Set it to the load recursion
8627 depth; set load_in_progress as a simple boolean based on the
8628 current load_depth. (Bug#3892)
8629
40b2d973
AR
86302009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8631
8632 * nsfont.m (ns_has_attribute): Remove.
8633 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8634
10be7e0d
JL
86352009-07-18 Juri Linkov <juri@jurta.org>
8636
8637 * process.c (Fset_process_query_on_exit_flag): Mention killing
8638 a buffer in docstring.
8639
fa055055
KH
86402009-07-17 Kenichi Handa <handa@m17n.org>
8641
8642 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8643
042f7b69
YM
86442009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8645
8646 * nsfns.m (Fns_set_alpha): Remove function.
8647 (syms_of_nsfns): Don't defsubr it.
8648
8649 * nsterm.m (ns_get_color): Remove incompatible color formats.
8650 (ns_color_to_lisp): Generate #rrggbb color format string.
8651
4be941e3
RS
86522009-07-16 Richard Stallman <rms@gnu.org>
8653
8654 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8655 (Fset_buffer_auto_saved): Handle save_length = -2.
8656
4e6b227d
CY
86572009-07-16 Chong Yidong <cyd@stupidchicken.com>
8658
8659 * xterm.c (Qx_gtk_map_stock): New var.
8660
8661 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8662 of calling intern each time.
8663
a1856973
YM
86642009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8665
8666 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8667 does tiling.
8668
8669 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8670
497e54d8
KH
86712009-07-14 Kenichi Handa <handa@m17n.org>
8672
72d36834
KH
8673 * font.c (font_vconcat_entity_vectors): New function.
8674 (struct font_sort_data): New member font_driver_preference.
8675 (font_compare): Check font_driver_preference.
8676 (font_sort_entities): The format of the first argument changed.
8677 (font_delete_unmatched): Likewise.
8678 (font_list_entities): The return type changed.
8679 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8680 (font_find_for_lface): Adjuste for the above changes.
8681 Don't suppress the checking of C even if the repertory supports it.
8682 (Flist_fonts): Adjust for the above changes.
72d36834 8683
1ac9108a
SM
8684 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8685 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8686 Reject a font who has adstyle property that is different from a
8687 langname derived from registry property.
1ac9108a 8688 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8689
b6046155
EZ
86902009-07-13 Eli Zaretskii <eliz@gnu.org>
8691
8692 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8693 local copy of dirfilename.
8694
fb6b6049
KH
86952009-07-13 Kenichi Handa <handa@m17n.org>
8696
e2402a5e
KH
8697 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8698 against max_char.
8699
fb6b6049
KH
8700 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8701 calling XSYMBOL (sym).
8702
65156807
EZ
87032009-07-11 Eli Zaretskii <eliz@gnu.org>
8704
1ac9108a
SM
8705 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8706 New function.
8707 (directory_files_internal) [WINDOWSNT]:
8708 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8709 the filesystem of the directory is fast or slow.
8710
8711 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8712 file name.
8713 (is_slow_fs): New function.
8714 (stat): Use it to determine whether to issue more system calls to
8715 get accurate file attributes, when w32-get-true-file-attributes is
8716 `local'.
8717
e0ab5fcf
JD
87182009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8719
8720 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8721 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8722 parameter font-parameter as default to the font dialog.
8723
784ceded
KH
87242009-07-10 Kenichi Handa <handa@m17n.org>
8725
8726 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8727
fb8edc0b
EZ
87282009-07-09 Eli Zaretskii <eliz@gnu.org>
8729
1ac9108a 8730 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8731
fb8edc0b
EZ
8732 * w32.c (stat): Treat UNC file names as residing on remote
8733 drives. (Bug#3542)
8734
635c75b1
KH
87352009-07-09 Kenichi Handa <handa@m17n.org>
8736
8737 * fontset.c (fontset_find_font): Fix previous change.
8738
c1d5ce94
MA
87392009-07-08 Michael Albinus <michael.albinus@gmx.de>
8740
8741 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8742 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8743 error flag.
8744
edb61b39
KH
87452009-07-08 Kenichi Handa <handa@m17n.org>
8746
374bf7e4
KH
8747 * fontset.c (fontset_find_font): Fix the logic of handling
8748 charset_matched.
8749 (font_for_char): Delete unused var.
8750 (generate_ascii_font_name): Delete it.
8751
edb61b39
KH
8752 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8753
8754 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8755 (encode_coding_sjis): Fix the code range check.
8756
0f3f018c
CY
87572009-07-07 Chong Yidong <cyd@stupidchicken.com>
8758
8759 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8760 (Fexpand_file_name): Copy string data properly (Bug#3772).
8761
fcaf6f3a
JD
87622009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8763
8764 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8765 first MapNotify.
8766
6809ca75
KH
87672009-07-07 Kenichi Handa <handa@m17n.org>
8768
8769 * character.h (unibyte_has_multibyte_table): Delete extern.
8770 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8771
8772 * charset.c (Fset_charset_priority): Update charset_unibyte.
8773 (syms_of_charset): Initialize charset_unibyte.
8774
8775 * character.c (unibyte_has_multibyte_table): Delete it.
8776 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8777 charset_unibyte.
8778 (multibyte_char_to_unibyte_safe): Likewise.
8779 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8780
1ac9108a 8781 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8782 (x_produce_glyphs): Likewise.
8783
8784 * .gdbinit (xcharset): Fix the treating $arg0.
8785
ad9e2d54
EZ
87862009-07-04 Eli Zaretskii <eliz@gnu.org>
8787
8788 Emulation of `getloadavg' on MS-Windows.
50426a04 8789 * w32.c: Include float.h.
ad9e2d54
EZ
8790 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8791 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8792 (get_native_system_info, get_system_times): New functions.
8793 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8794 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8795 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8796 g_b_init_get_system_times, and num_of_processors.
8797
0a3472c7
JR
87982009-07-03 Jason Rumney <jasonr@gnu.org>
8799
8800 * w32term.c (w32_initialize): Use standard types.
8801
80904120
EZ
88022009-07-03 Eli Zaretskii <eliz@gnu.org>
8803
8804 * dired.c (Ffile_attributes): Decode user and group names by the
8805 locale's encoding. (Bug#3443)
8806
6978862d
DN
88072009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8808
f8d23104
DN
8809 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8810 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8811
8812 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8813
8814 * term.c (init_tty): Remove spurious #ifdef.
8815
6978862d
DN
8816 * m/mips.h: Mention this file is also used for netbsd.
8817 * m/pmax.h: Remove file.
8818
e044e4fc
JD
88192009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8820
8821 * xterm.h (struct x_display_info): Add invisible_cursor.
8822 (struct x_output): Add current_cursor.
8823
8824 * xterm.c (XTtoggle_invisible_pointer): New function.
8825 (x_define_frame_cursor): Don't define cursor if invisible or the
8826 same as before. Set current_cursor.
8827 (x_create_terminal): Set toggle_invisible_pointer_hook.
8828
8829 * xfns.c (make_invisible_cursor): New function.
8830 (x_set_mouse_color): Call make_invisible_cursor.
8831 Set current_cursor.
8832 (x_window): Set current_cursor.
8833
8834 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8835
8836 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8837 inserting a character.
8838 (read_avail_input): Call frame_make_pointer_visible.
8839
8840 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8841 (frame_make_pointer_invisible, frame_make_pointer_visible):
8842 New functions.
e044e4fc
JD
8843 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8844
8845 * frame.h: Declare frame_make_pointer_invisible and
8846 frame_make_pointer_visible.
8847 (struct frame): Add pointer_invisible.
8848
574c8efa
JD
88492009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8850
7b507248
JD
8851 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8852 frame isn't visible.
8853 (xg_frame_resized): If width/height is -1, get size of window
8854 from X server.
8855
8856 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8857 for MapNotify.
8858
835bdaa7 8859 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8860 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8861 (flush_and_sync): Reintroduce.
574c8efa 8862
3f1c6666 88632009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8864
31fd7c5c 8865 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8866
8867 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8868 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8869
8870 * frame.h: Declare Qsticky.
8871
cad9ef74
JD
8872 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8873
8874 * nsfns.m (ns_frame_parm_handlers): Ditto.
8875
8876 * frame.c: Declare Qsticky.
8877 (frame_parms): Add sticky.
8878
8879 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8880
8881 * xterm.h: Declare x_set_sticky.
8882
8883 * xterm.c (x_set_sticky): New function.
8884
69b16610
JD
8885 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8886 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8887 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8888
8889 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8890
8891 * frame.c: Qmaximized is new.
8892 (x_set_frame_parameters): Do not handle fullscreen specially.
8893 Only set width and height if explicitly set.
8894 (x_set_fullscreen): Handle Qmaximized.
8895 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8896 (syms_of_frame): Initialize Qmaximized.
8897
1ac9108a
SM
8898 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8899 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8900
8901 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8902 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8903 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8904 set gravity to NorthWestGravity when USE_GTK.
8905 (set_wm_state): New function.
31fd7c5c 8906 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8907 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8908 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8909 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8910 to x_real_positions and x_fullscreen_adjust.
8911
8912 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8913 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8914 flush_and_sync.
8915 (xg_height_changed): New function.
8916 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8917 and gtk_window_set_policy. Set frame gravity after parsing the
8918 geometry string.
3f1c6666
JD
8919 (xg_update_frame_menubar, free_frame_menubar)
8920 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8921 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8922 Remove calls to xg_frame_set_char_size.
8923
fd503d99
KH
89242009-07-01 Kenichi Handa <handa@m17n.org>
8925
8926 * keyboard.c (decode_keyboard_code): New function.
8927 (tty_read_avail_input): Decode the input bytes if necessary.
8928
1ac9108a
SM
8929 * coding.c (setup_coding_system):
8930 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8931 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8932 use Qno_conversion.
8933
24ed93fb
YM
89342009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8935
8936 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8937
99061dfc
CY
89382009-06-30 Chong Yidong <cyd@stupidchicken.com>
8939
1ac9108a 8940 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8941
ff90fbde
JR
89422009-06-30 Jason Rumney <jasonr@gnu.org>
8943
8944 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8945 is already loaded.
8946 Set user model ID if supported (bug#1849).
8947
5f445726
JM
89482009-06-29 Jim Meyering <meyering@redhat.com>
8949
8950 Remove useless if-before-xfree test.
8951 * nsfont.m (nsfont_close): Remove useless test.
8952 * term.c (delete_tty): Likewise.
8953 * w32.c (system_process_attributes): Likewise.
8954 * w32font.c (w32font_close): Likewise.
8955 * xfaces.c (x_free_gc): Likewise.
8956 * xselect.c (buffer): Likewise.
8957
b9607587
AS
89582009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8959
8960 * process.c (send_process): Keep decoded string in a local
8961 variable and protect it from GC. (Bug#3521)
8962
89ba96f4
EZ
89632009-06-28 Eli Zaretskii <eliz@gnu.org>
8964
8965 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8966 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8967
098a1589
CY
89682009-06-28 Chong Yidong <cyd@stupidchicken.com>
8969
485422be
CY
8970 * xdisp.c (start_display, handle_face_prop)
8971 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8972 (redisplay_window, try_window_id, produce_image_glyph):
8973 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8974
098a1589
CY
8975 * xterm.c (x_update_window_begin, x_new_focus_frame)
8976 (x_scroll_bar_handle_click, handle_one_xevent)
8977 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8978 (x_make_frame_visible, x_make_frame_invisible)
8979 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8980 code chunks that are now obsolete.
8981
78c38319
MA
89822009-06-28 Michael Albinus <michael.albinus@gmx.de>
8983
8984 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8985 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8986 for hours, when optimzation is enabled.
8987 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8988 (xd_read_message): Make them static.
8989
4189ed40
CY
89902009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8991
8992 * term.c (turn_on_face): Allow simultaneously bold and dim
8993 terminal faces (Bug#3530).
8994
cd9b5e16
CY
89952009-06-27 Chong Yidong <cyd@stupidchicken.com>
8996
4e23bedb
CY
8997 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8998
cd9b5e16
CY
8999 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9000 truncation glyphs (Bug#3686).
9001
07cc3c35
GM
90022009-06-27 Glenn Morris <rgm@gnu.org>
9003
9004 * m/pmax.h: Restore file, with only netbsd portions.
9005
31fd7c5c 90062009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9007
cd9b5e16 9008 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9009
42d4a64f
KH
90102009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9011
9012 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9013 the arg FORCE_SYMBOL.
9014
930fe55b 90152009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9016
9017 * fontset.c (fontset_find_font): When a usable rfont_def is found
9018 in a fallback font-group, make it the first element of the group.
9019
57ebc3fd
CY
90202009-06-24 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9023
f084f942
KH
90242009-06-24 Kenichi Handa <handa@m17n.org>
9025
9026 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9027 set for C.
9028 (fontset_font): Record the availability of a font for C both in
9029 the realized fontsets of the current one and the default one.
9030
2f686c87
DN
90312009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9032
9033 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9034 conditional, it is always defined on AIX.
9035
666e158e
MB
90362009-06-23 Miles Bader <miles@gnu.org>
9037
9038 * window.c (Vrecenter_redisplay): New variable.
9039 (syms_of_window): Initialize it.
9040 (Qtty): New extern declaration.
9041 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9042
c6da7cd2
JM
90432009-06-23 Jim Meyering <meyering@redhat.com>
9044
1ac9108a
SM
9045 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9046 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9047 pointer dereferences are guaranteed to be valid.
c6da7cd2 9048
678dca3d
KH
90492009-06-23 Kenichi Handa <handa@m17n.org>
9050
74d75424
KH
9051 * emacs.c (main): Call init_font ().
9052
9053 * font.h (Vfont_log): Extern it.
9054 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9055
9056 * font.c (font_sort_entities, font_list_entities)
9057 (font_matching_entity, font_open_entity)
9058 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9059 (Vfont_log): Delete static.
9060 (font_log_env_checked): Delete this variable.
9061 (font_add_log): Don't check font_log_env_checked.
9062 (font_deferred_log): Check Vfont_log.
9063 (init_font): New function.
9064
678dca3d
KH
9065 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9066
9067 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9068
9069 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9070
9071 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9072
9073 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9074 (face_for_char): Don't call font_deferred_log here.
9075 (font_for_char): Likewise.
9076
8a668709
CY
90772009-06-22 Chong Yidong <cyd@stupidchicken.com>
9078
9a01ee33
CY
9079 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9080 rather than its background_width for drawing the overline and
9081 underline (Bug#489).
9082
9083 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9084 rather than its background_width for drawing the overline and
9085 underline (Bug#489).
ec7c9926
CY
9086 (xg_default_icon_file): New variable.
9087 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9088 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9089
8a668709
CY
9090 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9091 (load_overlay_strings): Remove externs.
9092 (fast_find_position): Function deleted.
9093 (mouse_face_from_buffer_pos): New function, based on
9094 fast_find_position. Correctly handle before-strings,
9095 display-strings, and after-strings (Bug#1220).
9096 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9097
4d4c02d8
CY
90982009-06-21 Chong Yidong <cyd@stupidchicken.com>
9099
1ac9108a 9100 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9101 (move_it_in_display_line_to, move_it_in_display_line_to)
9102 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9103
70243478
CY
91042009-06-21 Chong Yidong <cyd@stupidchicken.com>
9105
9106 * Branch for 23.1.
9107
13087e59
JR
91082009-06-21 Jason Rumney <jasonr@gnu.org>
9109
9110 * w32term.c (keyboard_codepage): New static variable.
9111 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9112 (w32_read_socket) [WM_CHAR]: Use it to decode character
9113 input (bug#3237).
9114 (w32_initialize): Initialize it.
9115 (codepage_for_locale): New function.
9116
4735b74e
KR
91172009-06-20 Ken Raeburn <raeburn@raeburn.org>
9118
9119 * process.c (status_message): Pass Faset index argument as a lisp
9120 object, so as to work with USE_LISP_UNION_TYPE.
9121
0e727afa
YM
91222009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9123
9124 * coding.c (Ffind_coding_systems_region_internal):
9125 Cache checked characters.
9126
cf299835
KH
91272009-06-18 Kenichi Handa <handa@m17n.org>
9128
1ac9108a 9129 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9130
90f20d94
AS
91312009-06-18 Andreas Schwab <aschwab@redhat.com>
9132
9133 * xdisp.c (redisplay_internal): Check that the frame is still
9134 live after redisplay of its windows.
9135 (redisplay_windows): Check that the window is still live.
9136
7f1faf1c
KH
91372009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9138
9139 * coding.c (detect_coding_utf_16): Fix previous change.
9140
cc13543e
KH
91412009-06-16 Kenichi Handa <handa@m17n.org>
9142
9143 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9144 UTF-16 by checking the dispersion of Eth and Oth bytes.
9145
977b85f4
AS
91462009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9147
9148 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9149
66bd43d1
KH
91502009-06-15 Kenichi Handa <handa@m17n.org>
9151
9152 * process.c (status_message): Fix previous change. Be sure to
9153 decode a localized string.
9154
cb5ca9c5
YM
91552009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9156
9157 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9158 add comment explaining why.
9159
ec7709ba 91602009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9161
ec7709ba 9162 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9163
4b7f335c
AR
91642009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9165
9166 * nsfont.m (ns_attribute_value): Remove.
9167 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9168 (ns_has_attribute): Shrink the normal range.
9169 (ns_findfonts): Don't worry about requested spec in determining
9170 need for synthItal.
e41820ee 9171 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9172
73b26103
SZ
91732009-06-14 Seiji Zenitani <zenitani@mac.com>
9174
9175 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9176
5753e4da
KH
91772009-06-11 Kenichi Handa <handa@m17n.org>
9178
9179 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9180 overhang for the static composition case.
9181
3561b671
KH
91822009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9183
5753e4da
KH
9184 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9185 overhang for the automatic composition case.
9186
3561b671
KH
9187 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9188 composition case.
9189
852bbd41
CY
91902009-06-10 Chong Yidong <cyd@stupidchicken.com>
9191
9192 * xdisp.c (get_next_display_element): When handling wrap-prefix
9193 and line-prefix, treat \n as a control character (bug#3502).
9194
9903d1e6
KH
91952009-06-10 Kenichi Handa <handa@m17n.org>
9196
9197 * font.c (font_parse_family_registry): Fix for one-char foundry.
9198 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9199
0bcbaaaa
CY
92002009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9201
9202 * process.c (status_message): Fix handling of multibyte signal
9203 string (Bug#3499).
9204
40aa3f13
JM
92052009-06-09 Jim Meyering <meyering@redhat.com>
9206
1f80c7e2
CY
9207 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9208 color name is missing.
40aa3f13 9209
72d51285
KH
92102009-06-09 Kenichi Handa <handa@m17n.org>
9211
9212 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9213 FROM-CODE and TO-CODE are codepoints of CHARSET.
9214
c1d04d84
AR
92152009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9216
9217 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9218
92192009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9220
9221 Changes to support :script/:lang/:otf in NS font driver.
9222 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9223 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9224 indicate not part of font driver interface, and change callers.
9225 (ns_get_family): Remove pointless null check.
9226 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9227 ns_spec_to_descriptor, ns_descriptor_to_entity.
9228 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9229 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9230 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9231 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9232 (ns_get_req_script, ns_accumulate_script_ranges)
9233 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9234 New functions.
9235 (nsfont_list, nsfont_match): Use ns_findfonts.
9236 (nsfont_open): Use font descriptor instead of traits.
9237 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9238 (dump_glyphstring): Rename to ns_dump_glyphstring.
9239
c7eb9816
AR
9240 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9241
c1d04d84
AR
9242 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9243
9244 * fontset.c (fontset_from_font): Remove NS-specific code.
9245
ec7709ba 92462009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9247
9248 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9249 nonactive windows.
9250
31fd7c5c 92512009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9252
1ac9108a 9253 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9254
68852c13 92552009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9256
9257 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9258
6756cd1d
CY
92592009-06-07 Chong Yidong <cyd@stupidchicken.com>
9260
9261 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9262 account for the overflowing of newlines into the last glyph on the
9263 display line (Bug#3482).
9264
28bf482a
DR
92652009-06-05 David Reitter <david.reitter@gmail.com>
9266
ec7709ba
JB
9267 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9268 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9269 Fns_selection_exists_p, Fns_selection_owner_p.
9270
fdb55376
JR
92712009-06-03 Jason Rumney <jasonr@gnu.org>
9272
9273 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9274 available. (Bug#3379)
9275
05129fbe
KH
92762009-05-29 Kenichi Handa <handa@m17n.org>
9277
1ac9108a
SM
9278 * coding.c (get_translation_table):
9279 Check Venable_character_translation.
05129fbe 9280
ec7709ba 92812009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9282
ec7709ba
JB
9283 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9284 (x_make_frame_visible): Move frame to front rather than calling
15891144 9285 ns_raise_frame().
ec7709ba 9286 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9287 isn't key window.
ec7709ba 9288 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9289 drawRect may be called by NSView even if the frame is hidden.
9290
ec7709ba
JB
9291 * nsfns.m (Fx_create_frame): Follow other ports in
9292 determining visibility; default to t. Ensure async_visible is set.
15891144 9293
21f73755
EZ
92942009-05-23 Eli Zaretskii <eliz@gnu.org>
9295
9296 * dired.c (Ffile_attributes): Doc fix.
9297
34001e41
CY
92982009-05-22 Chong Yidong <cyd@stupidchicken.com>
9299
9300 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9301
46306a17
SM
93022009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9303
9304 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9305 and xfont_scratch_props.
9306 (syms_of_xfont): Do it here instead.
9307 (xfont_find_ccl_program): Delete, unused.
9308 (xfont_open): Delete unused var `i'.
9309
ef6e0694
KH
93102009-05-21 Kenichi Handa <handa@m17n.org>
9311
9312 * fontset.c (Qlatin): Don't make it static.
9313
46306a17
SM
9314 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9315 New functions.
ef6e0694
KH
9316 (xfont_scripts_cache, xfont_scratch_props): New variables.
9317 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9318 (xfont_list_pattern): Argument changed. Callers changed.
9319 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9320 (xfont_list): Don't reject a font spec with :script property.
9321 (xfont_has_char): Fix setting of encoding.
9322 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9323 xfont_scratch_props.
9324
93252009-05-19 Kenichi Handa <handa@m17n.org>
9326
46306a17 9327 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9328 Callers changed.
9329
93302009-05-18 Kenichi Handa <handa@m17n.org>
9331
9332 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9333
ac71ced7
SM
93342009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9335
9336 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9337 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9338
1c6d1051
YM
93392009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9340
9341 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9342 (x_delete_terminal): Dissociate resource database from display and
9343 then call XrmDestroyDatabase before closing display.
9344
9b9b779c
AR
93452009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9346
9347 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9348 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9349 whether selected frame is viable before raising it (based on patch
9350 by David Reitter), and improve commentary.
9351 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9352
cccd42d5
KH
93532009-05-15 Kenichi Handa <handa@m17n.org>
9354
9355 * font.c (Ffont_spec): Check arguments.
9356
337fbd17
CY
93572009-05-14 Chong Yidong <cyd@stupidchicken.com>
9358
9359 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9360 weight when testing attributes (Bug#3282).
9361
47a6002f
JD
93622009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9363
9364 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9365 what we expect to get in the next ConfigureNotify event.
9366
9cb363db
YM
9367 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9368 before Xft one (Bug#1696).
9369
b9126609
CY
93702009-05-07 David Reitter <david.reitter@gmail.com>
9371
9372 * nsfns.m (Fx_display_planes): Compute bitplanes using
9373 NSBitsPerPixelFromDepth (Bug#3207).
9374
27a69fd9
CY
93752009-05-10 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9378
00f37552
TTN
93792009-05-10 Ulrich Mueller <ulm@gentoo.org>
9380
9381 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9382
2d82a920
DR
93832009-05-07 David Reitter <david.reitter@gmail.com>
9384
ec7709ba
JB
9385 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9386 Respect mouse face background.
2d82a920 9387
46b0d52d
DR
93882009-05-07 David Reitter <david.reitter@gmail.com>
9389
ec7709ba
JB
9390 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9391 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9392 in ns_update_begin and ns_update_end.
9393
ce1b23bb
SM
93942009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9395
5996e1b7
SM
9396 * nsfns.m (ns_get_screen): Rewrite.
9397 Don't presume selected-frame is of type `ns'.
9398
ba98e3a0
SM
9399 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9400 all drivers.
9401
ce1b23bb
SM
9402 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9403
bcda200f
YM
94042009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9405
9406 * keyboard.h (add_user_signal): Fix typo in extern.
9407
9408 * lisp.h (add_user_signal): Remove extern.
9409
9410 * unexelf.c (unexec): Consider a section to precede the .bss section
9411 if its addresses overlap that of .bss.
9412 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9413 instead of dumping process.
9414
864660a2
SM
94152009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9416
9417 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9418
50da4e56
SM
94192009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9420
9421 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9422
51520a1a
DN
94232009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9424
9425 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9426 any statements.
9427
409ea3a1
AS
94282009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9429
59c4c60f
AS
9430 * process.c (read_process_output): Make sure the current buffer is
9431 always restored.
9432
409ea3a1
AS
9433 * coding.c (record_conversion_result): Don't modify
9434 Vlast_code_conversion_error for successful result.
9435 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9436
56f00ed2
KH
94372009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9438
9439 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9440 (load_charset_map): Remove unnecessary code.
56f00ed2 9441
4491c9d2
DR
94422009-04-30 David Reitter <david.reitter@gmail.com>
9443
35f5b128 9444 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9445 through f24.
9446
6970f632
CY
94472009-04-30 Chong Yidong <cyd@stupidchicken.com>
9448
9449 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9450
9451 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9452 face_at_buffer_position.
9453 (face_before_or_after_it_pos, get_next_display_element)
9454 (note_mouse_highlight): Update face_at_buffer_position call.
9455
9456 * term.c (term_mouse_highlight):
9457 * msdos.c (IT_note_mouse_highlight):
9458 * fontset.c (Finternal_char_font):
35f5b128 9459 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9460
9461 * dispextern.h (face_at_buffer_position): Update prototype.
9462
0c616f63
KH
94632009-04-30 Kenichi Handa <handa@m17n.org>
9464
35f5b128 9465 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9466
ad3aaf33
AS
94672009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9468
9469 * callproc.c (Fcall_process): Fix GC protection. Make sure
9470 current buffer is always restored.
9471
c3c963a0
YM
94722009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9473
9474 * atimer.c (init_atimer): Also clear stopped_atimers.
9475
9476 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9477
7e3386cb
YM
9478 * process.c (create_process): Clean up merger residues of
9479 2008-07-17 change.
9480
91f68422
CY
94812009-04-29 Ulrich Mueller <ulm@gentoo.org>
9482
9483 * lread.c (Vread_circle): New variable.
9484 (read1): Disable recursive read if Vread_circle is nil.
9485
24b34550
KH
94862009-04-29 Kenichi Handa <handa@m17n.org>
9487
9488 * fontset.h (set_default_ascii_font): Delete extern.
9489
9490 * fontset.c (set_default_ascii_font): Delete this unused function.
9491
9492 * frame.c (x_set_font): When ARG is a font-object, check if the
9493 font-object matches with the ASCII font-spec of the frame's
9c358bda 9494 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9495
77bf07e1
AS
94962009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9497
9498 * fns.c (Flocale_info): Protect vector from GC during decoding.
9499
9500 * process.c (Fstart_process): Protect argv strings from GC during
9501 encoding.
9502
2c55aacf
AS
95032009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9504
9505 * sysdep.c: Include <ctype.h>.
9506
b892d3c9
DR
95072009-04-27 David Reitter <david.reitter@gmail.com>
9508
35f5b128 9509 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9510 Remove commented-out code.
9511
9d0644c4
JB
95122009-04-26 Johan Bockgård <bojohan@gnu.org>
9513
9514 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9515
b7053016
JR
95162009-04-25 Jason Rumney <jasonr@gnu.org>
9517
9518 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9519
4e8231f3
YM
95202009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9521
9522 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9523 Swap bytes in short integer if fringe bitmap width > 8.
9524
493dcf2c
KH
95252009-04-23 Kenichi Handa <handa@m17n.org>
9526
9527 * xfaces.c (Fx_list_fonts): If a font size is specified in
9528 PATTERN, set it in returned scalable fonts.
9529
401e9e57
CY
95302009-04-22 Chong Yidong <cyd@stupidchicken.com>
9531
708e05dc
CY
9532 * keyboard.c (Fset_input_meta_mode): Doc fix.
9533
9534 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9535
1ac9108a 9536 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9537
9538 * coding.c (Fterminal_coding_system): Doc fix.
9539
9540 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9541 (Fx_display_pixel_height, Fx_display_planes)
9542 (Fx_display_color_cells, Fx_server_max_request_size)
9543 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9544 (Fx_display_mm_height, Fx_display_mm_width)
9545 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9546 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9547 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9548 (check_x_display_info): Handle terminal objects instead of
9549 terminal ids.
9550
401e9e57
CY
9551 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9552 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9553 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9554 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9555
df80c7f0
KH
95562009-04-21 Kenichi Handa <handa@m17n.org>
9557
5a8f12af 9558 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9559 (font_score): Check AVGWIDTH too.
908567ef 9560
df80c7f0
KH
9561 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9562 worst case.
1ac9108a
SM
9563 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9564 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9565
705af33f
JR
95662009-04-19 Jason Rumney <jasonr@gnu.org>
9567
9568 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9569 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9570
9571 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9572 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9573 get_phys_cursor_geometry.
9574
b71ac3dd 9575 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9576 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9577 using get_phys_cursor_geometry.
9578
9579 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9580 correctly calculated.
9581
dc2933eb
JD
95822009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9583
1ac9108a
SM
9584 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9585 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9586 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9587 is deprecated.
9588
973e7849
AS
95892009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9590
9591 * font.c (font_put_frame_data): Use xfree instead of free.
9592
314d66f4
JB
95932009-04-17 Juanma Barranquero <lekktu@gmail.com>
9594
9595 * w32font.c (Qja, Qko): Remove declarations.
9596 (syms_of_w32font): Don't DEFSYM them.
9597
cf702558
CY
95982009-04-17 Chong Yidong <cyd@stupidchicken.com>
9599
9600 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9601
9602 * font.h (Qja, Qko): Extern them.
9603
9604 * ftfont.c (Qja, Qko): Remove declarations.
9605
9606 * xfont.c (Qja, Qko): Remove declarations.
9607
b50504f5
KH
96082009-04-17 Kenichi Handa <handa@m17n.org>
9609
bde25748
KH
9610 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9611 string from a vector to handle Latin-1 characters correctly.
9612
b50504f5
KH
9613 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9614 entity even if the cache hits.
9615
f4646fff
AS
96162009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9617
9618 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9619 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9620
e7deaab0
AS
9621 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9622 * lisp.h: Adjust prototypes.
9623
0a0e7d49
CY
96242009-04-16 Chong Yidong <cyd@stupidchicken.com>
9625
9626 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9627 change (Bug#3003).
9628
3c908a57
KH
96292009-04-16 Kenichi Handa <handa@m17n.org>
9630
1ac9108a 9631 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9632
9633 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9634 adstyle.
9635
9636 * ftfont.c (Qja, Qko): Don't make them static.
9637 (enum ftfont_cache_for): New enum.
9638 (fc_charset_table): Undo the previous change.
9639 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9640 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9641 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9642 non-scarable font, try to get AVERAGE_WIDTH.
9643 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9644 Change ft_face_cache from a list of a hash-table. Don't check
9645 `ja' and `ko' adstyle here.
9646 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9647 FTFONT_CACHE_FOR_CHARET.
9648 (ftfont_get_charset): Undo the previous change.
1ac9108a 9649 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9650 (ftfont_close): Likewise.
9651 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9652
9653 * font.c (font_sort_entites): Change the meaning of the arg
9654 BEST-ONLY. Don't optimize for VEC of lenght 1.
9655 (font_select_entity): Just return the value of font_sort_entites.
9656
9657 * xfaces.c (merge_face_vectors): Reflect font properties in
9658 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9659 font_clear_prop if a face attribute doesn't change.
9660
3c908a57
KH
9661 * charset.h (charset_ksc5601): Extern it.
9662
9663 * charset.c (charset_ksc5601): New variable.
9664 (Fdefine_charset_internal): Set charset_ksc5601.
9665 (init_charset_once): Initialize charset_ksc5601 to -1.
9666
d65859c3
DN
96672009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9668
9669 * fileio.c (history_delete_duplicates): Remove unused declaration.
9670
9671 * callint.c (history_delete_duplicates): New declaration.
9672 (Fcall_interactively): Remove command history duplicates when
9673 history_delete_duplicates is true.
9674
3ba010e5
EZ
96752009-04-14 Eli Zaretskii <eliz@gnu.org>
9676
9677 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9678
06f19b91
KH
96792009-04-14 Kenichi Handa <handa@m17n.org>
9680
9681 * font.c (Ffont_info): Fix docstring. Fix the second element of
9682 the returned value (bug#2949).
9683
2cce8bfc
CY
96842009-04-14 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9687
d156542d
KH
96882009-04-14 Kenichi Handa <handa@m17n.org>
9689
9690 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9691 encoding charset is ascii_compatible.
9692
9693 * charset.c (Fdefine_charset_internal): Make charset
9694 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9695 code_offset is 0, and covers all ASCII characters.
9696
86fa089e
SM
96972009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9698
9699 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9700 (ns_string_to_pasteboard_internal):
9701 * nsmenu.m (process_dialog):
9702 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9703 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9704 * lisp.h (Fx_load_color_file): Declare.
9705
a8a3728b
KH
97062009-04-13 Kenichi Handa <handa@m17n.org>
9707
1ac9108a 9708 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9709 (font_select_entity): Suppress the code to optimize for the same
9710 kind of fonts.
9711 (font_load_for_lface): Get a font that supports at least ASCII
9712 characters.
9713
9714 * ftfont.c (Qja, Qko): New variables.
9715 (fc_charset_table): Delete uniquifier data for iso8859-1.
9716 (ftfont_get_latin1_charset): New function.
9717 (get_adstyle_property): New function.
9718 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9719 bitmap fonts.
9720 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9721 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9722 `ko' or `ja'.
9723 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9724 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9725 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9726 property.
9727 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9728 (syms_of_ftfont): DEFSYM Qja and Qko.
9729
483670b5
KH
97302009-04-09 Kenichi Handa <handa@m17n.org>
9731
12b55765
KH
9732 * charset.c (map_charset_chars): For a charset of `superset'
9733 method, fix calculation of code range.
9734
483670b5
KH
9735 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9736 from the list of extra properties.
9737 (font_clear_prop): Be sure to delete `:name' font property.
9738
57d3b93b
KH
97392009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9740
b4b2c2ca
YM
9741 * dispnew.c (redraw_overlapping_rows): Fix detection of
9742 overlapping for topmost and bottommost rows.
9743
1ac9108a 9744 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9745
472c3609
JR
97462009-04-06 Jason Rumney <jasonr@gnu.org>
9747
9748 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9749
ab193662
KH
97502009-04-06 Kenichi Handa <handa@m17n.org>
9751
9752 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9753
9754 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9755
0c26f026
KH
97562009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9757
9758 * ftfont.c (ftfont_open): Fix checking of the return value of
9759 FT_Load_Char. Fix setting font->underline_thickness.
9760
e173bbce
CY
97612009-04-04 Chong Yidong <cyd@stupidchicken.com>
9762
9763 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9764 (Fterminal_parameters, Fterminal_parameter)
9765 (Fset_terminal_parameter): In doc string, refer to terminal
9766 objects rather than terminal ids.
9767
693a2698
EZ
97682009-04-04 Eli Zaretskii <eliz@gnu.org>
9769
9770 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9771 ret_lim_data. (Bug#2867)
9772
d5221487
CY
97732009-04-03 Chong Yidong <cyd@stupidchicken.com>
9774
9775 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9776 so they don't get wider than the window, matching 2006-01-23
9777 change to the partner function in xdisp.c (Bug#2800).
9778
223509a3
KH
97792009-04-03 Kenichi Handa <handa@m17n.org>
9780
9781 * print.c (print_object): Make each lowest sub_char_table start a
9782 new line (Bug#2866).
9783
74fcd0b1
KH
97842009-04-02 Kenichi Handa <handa@m17n.org>
9785
9786 * fontset.c (fontset_font): Record no-font when a fontset
9787 explicitly tells not to try another font-specs.
9788
c542407d
SM
97892009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9790
9791 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9792
e3869731
KH
97932009-03-30 Kenichi Handa <handa@m17n.org>
9794
d8d2f142
KH
9795 * fontset.c (fontset_from_font): Specify only registry in a
9796 font-spec for all characters supported by that registry.
9797
e3869731
KH
9798 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9799 even if HAVE_M17N_FLT is not defined.
9800
5da5f805
CY
98012009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9802
9803 * ftfont.c: Conditionalize prototyping and use of
9804 ftfont_variation_glyphs.
9805
ab226c50
SM
98062009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9807
9628fed7
SM
9808 * frame.c (delete_frame): Work around compiler bug.
9809
9810 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9811 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9812 Some more EMACS_INT.
9813 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9814
9815 * xdisp.c (dump_glyph): Fix typo.
9816
ae19ba7c
SM
9817 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9818 (adjust_markers_gap_motion, adjust_markers_for_delete)
9819 (adjust_markers_for_insert, adjust_point)
9820 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9821 (make_gap, copy_text, count_size_as_multibyte, insert)
9822 (insert_and_inherit, insert_before_markers)
9823 (insert_before_markers_and_inherit, insert_1)
9824 (count_combining_before, count_combining_after, insert_1_both)
9825 (insert_from_string, insert_from_string_before_markers)
9826 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9827 (insert_from_buffer_1, adjust_after_replace)
9828 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9829 (replace_range_2, del_range, del_range_1, del_range_byte)
9830 (del_range_both, del_range_2, modify_region)
9831 (prepare_to_modify_buffer, signal_before_change)
9832 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9833 for buffer positions and sizes.
9834 * lisp.h: Adjust prototypes accordingly.
9835
9836 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9837 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9838 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9839
ab226c50
SM
9840 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9841
46dfb8fb
JD
98422009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9843
9844 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9845 lines and columns so we keep the same pixel height and width.
9846
9847 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9848 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9849 (x_handle_net_wm_state): New function to update frame parameter
9850 fullscreen.
9851 (x_term_init): Initialize atoms for _NET_WM_STATE.
9852
9853 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9854
d347e494
SM
98552009-03-27 Kevin Ryde <user42@zip.com.au>
9856
9857 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9858 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9859 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9860 (Fgpm_mouse_stop): Pass that new parameter.
9861 * termhooks.h (close_gpm): Adjust prototype.
9862
84db11d6
SM
98632009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9864
c95a5008
SM
9865 * lisp.h (Fx_focus_frame): Declare.
9866
84db11d6
SM
9867 * callint.c (Fcall_interactively): For '^' just delegate the work to
9868 handle-shift-selection.
9869 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9870
0a1958d6
CY
98712009-03-24 Chong Yidong <cyd@stupidchicken.com>
9872
0bfdff23
CY
9873 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9874
0a1958d6
CY
9875 * data.c (Qinteractive_form): New variable.
9876 (Finteractive_form): Use it.
9877
9878 * eval.c (Fcommandp): Use Qinteractive_form.
9879
58aec0d6
JR
98802009-03-24 Jason Rumney <jasonr@gnu.org>
9881
9882 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9883 Calculate total size precisely. Decode environment variables
9884 before substituting. (Bug#38)
9885
553dd618
KH
98862009-03-24 Kenichi Handa <handa@m17n.org>
9887
9888 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9889 encoding (Bug#2722).
553dd618 9890
c39ea606
JD
98912009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9892
9893 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9894 that gdpy is set.
9895
bc9b2b5e
AM
98962009-03-22 Alan Mackenzie <acm@muc.de>
9897
9898 * callint.c (Finteractive): Clarify the doc string - even
9899 promptless elements need \n separators.
9900
9f995a76
JR
99012009-03-22 Jason Rumney <jasonr@gnu.org>
9902
9903 * w32term.c (syms_of_w32term): Doc fix for
9904 x-use-underline-position-properties.
9905
22749e9a
EZ
99062009-03-21 Eli Zaretskii <eliz@gnu.org>
9907
9908 * w32.c (getpwuid): Change argument type to unsigned.
9909 (struct w32_id): Change type of `rid' member to unsigned.
9910 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9911 argument ID to unsigned. All callers changed.
9912 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9913
e00553bf
EZ
99142009-03-20 Eli Zaretskii <eliz@gnu.org>
9915
9916 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9917 negative, produce a float value.
9918
9919 * dired.c (make_uid, make_gid): New functions.
9920 (Ffile_attributes): Use them to avoid negative UID and GID.
9921
f761d6b6
JB
99222009-03-20 Juanma Barranquero <lekktu@gmail.com>
9923
9924 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9925 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9926 Fix typos in docstrings.
9927
d507f8d7
KH
99282009-03-19 Kenichi Handa <handa@m17n.org>
9929
9930 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9931 changed, use font_load_for_lface to get a new font object.
9932 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9933
9934 * frame.c (x_set_font): Handle the case that ARG is a cons.
9935
c68845e0
GM
99362009-03-19 Glenn Morris <rgm@gnu.org>
9937
9938 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9939
bfa49dd1
CY
99402009-03-19 Chong Yidong <cyd@stupidchicken.com>
9941
9942 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9943
8458d4c1
KH
99442009-03-19 Kenichi Handa <handa@m17n.org>
9945
9946 * charset.c (load_charset_map_from_file): When a mapfile can't be
9947 loaded, signal an error.
9948
78e7d1fe
EZ
99492009-03-18 Eli Zaretskii <eliz@gnu.org>
9950
9951 * dired.c (Ffile_attributes): Make sure UID and GID are always
9952 positive, even if the value is too large for a positive EMACS_INT.
9953 Doc fix.
9954
9955 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9956
5da9fdfa
YM
99572009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9958
9959 * xmenu.c (xdialog_show): Move Fredisplay call ...
9960 (Fx_popup_dialog): ... here.
9961
7519c40d
SM
99622009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9963
9964 * dired.c (file_name_completion): Disable the first optimization just
9965 installed, since it is not implemented correctly.
9966
2cd298e2
SM
99672009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9968
9969 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9970 only if the entry can affect bestmatch.
2cd298e2
SM
9971 Stop the search early, as Ftry_completion already does.
9972
48d37adf
CY
99732009-03-17 Chong Yidong <cyd@stupidchicken.com>
9974
e10c9c93 9975 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9976
9286b16a
CY
99772009-03-15 Chong Yidong <cyd@stupidchicken.com>
9978
9979 * keyboard.c (parse_menu_item): Don't display remappings as menu
9980 equivalent bindings (Bug#788).
9981
f7b146dc
JR
99822009-03-15 Jason Rumney <jasonr@gnu.org>
9983
9984 * w32term.h (WM_EMACS_PAINT): New message.
9985 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9986 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9987 before passing to lisp thread. (Bug#950)
9988
f761d6b6 99892009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9990
d93f9575
CY
9991 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9992 variable as it was never reset.
9993 (ns_term_init): Remove initialization of Lisp-settable defaults
9994 and ns_expand_space.
9995 (-setPanelFromDefaultValues): Remove ns_expand_space.
9996 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9997 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9998 i.e. no additional spacing, similar to Carbon port.
9999
d93f9575
CY
10000 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10001 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10002
305018ec
JD
100032009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10004
10005 * sound.c (alsa_configure): Remove call to deprecated
10006 snd_pcm_sw_params_set_xfer_align.
10007
f761d6b6 100082009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10009
10010 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10011 after clicking in a detached tool bar.
10012 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10013
46e722a9
SM
100142009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10015
348db3dd
SM
10016 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10017 int/Lisp_Object mixup).
46e722a9 10018
a3d16f39
KH
100192009-03-13 Kenichi Handa <handa@m17n.org>
10020
10021 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10022 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10023 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10024 (set_fontset_font): Change ARG to a vector. Handle range_list in
10025 ARG correctly.
10026 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10027 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10028 the above change.
10029 (fontset_from_font): Fix previous change.
fe24f56a 10030 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10031 entry. If FONTSET is the default fontset, don't set the extra
10032 slot of the returning char-table.
10033
b066e6b6
JB
100342009-03-12 Juanma Barranquero <lekktu@gmail.com>
10035
10036 * nsfns.m (Fx_close_connection): Doc fix.
10037 (Fns_do_applescript): Reflow docstring.
10038 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10039 (Fx_display_pixel_width, Fx_display_pixel_height)
10040 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10041 Fix typos in docstrings.
10042 (Fns_set_alpha): Fix typos in error messages.
10043
d472514e 100442009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10045
d472514e 10046 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10047 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10048 were used for such events.
10049
d472514e
JB
10050 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10051 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10052
d472514e 10053 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10054 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10055
fb930676
KH
100562009-03-11 Kenichi Handa <handa@m17n.org>
10057
ff85581a
KH
10058 * font.h (font_open_by_spec): Extern it.
10059
c50b7e98
KH
10060 * font.c (font_open_by_spec): New function.
10061 (font_open_by_name): Use font_open_by_spec.
10062
fb930676
KH
10063 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10064 fontset of the frame.
10065
10066 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10067 modify the default font of frames that use this fontset.
10068 (num_auto_fontsets): New variable.
10069 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10070 name. Be sure to set FONTSET_ASCII to the correct font name.
10071 (update_auto_fontset_alist): New function.
10072
df4e8455
JB
100732009-03-11 Juanma Barranquero <lekktu@gmail.com>
10074
10075 * makefile.w32-in: Update dependencies.
10076
0a375797
AR
100772009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10078
10079 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10080
61313fa3
SM
100812009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10084
b55103fb
CY
100852009-03-10 Chong Yidong <cyd@stupidchicken.com>
10086
10087 * lread.c (Feval_buffer): Doc fix.
10088
dde2559c
KH
100892009-03-09 Kenichi Handa <handa@m17n.org>
10090
10091 * charset.c (Qfile_name_handler_alist): Extern it.
10092 (load_charset_map_from_file): Temporarily bind
10093 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10094
df4e8455 100952009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10096
47f588bb
GM
10097 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10098 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10099
4ddf94bd
AR
101002009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10101
4c9bdfc2
AR
10102 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10103 (x_set_window_size): Change back to calculated method of setting
10104 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10105 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10106 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10107
fe41ae9e
AR
10108 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10109
4c9bdfc2
AR
10110 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10111 accelerator in parens under GNUstep.
10112
825d0875
KH
101132009-03-06 Kenichi Handa <handa@m17n.org>
10114
10115 These changes are to detect incorrect composition sequence without
f3b3be74 10116 looking ahead the source. (Bug#2370)
825d0875
KH
10117
10118 * coding.h: Include "composite.h".
10119 (enum compisition_state): New enum.
10120 (struct compisition_status): New struct.
10121 (struct iso_2022_spec): New member cmp_status.
10122 (struct emacs_mule_spec): New struct.
10123 (struct coding_system): New members ctext_extended_segment_len and
10124 embedded_utf_8. Change the union member
10125 spec.emacs_mule_full_support to spec.emacs_mule.
10126
10127 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10128 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10129 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10130 (ADD_COMPOSITION_DATA): New arg nbytes.
10131 (emacs_mule_char): New arg cmp_status.
10132 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10133 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10134 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10135 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10136 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10137 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10138 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10139 (EMACS_MULE_COMPOSITION_END): New macro.
10140 (emacs_mule_finish_composition): New function.
10141 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10142 (decode_coding_emacs_mule): Avoid long looking ahead while
10143 handling composition.
10144 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10145 (ENCODE_COMPOSITION_RULE): New macro.
10146 (finish_composition): New function.
10147 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10148 (DECODE_COMPOSITION_START): New implementation.
10149 (DECODE_COMPOSITION_END): Likewise.
10150 (STORE_COMPOSITION_RULE): New macro.
10151 (decode_coding_iso_2022): Avoid long looking ahead while handling
10152 composition, CTEXT extended segment, and embedded UTF-8.
10153 (setup_coding_system): For a coding of type iso-2022, reset
10154 CODING_ISO_EXTSEGMENT_LEN (coding) and
10155 CODING_ISO_EMBEDDED_UTF_8 (coding).
10156 (get_translation): Delete arguments last_block, from_nchars,
10157 to_nchars. Callers changed.
10158 (produce_chars): Don't modify charbuf. Adjusted for the change of
10159 get_translation.
98a326f7 10160 (produce_composition): Adjust for the new annotation sequence.
825d0875 10161 (handle_composition_annotation): Likewise.
98a326f7 10162 (consume_chars): Adjust for the change of get_translation.
825d0875 10163
ccbc4452
AR
101642009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10165
4ddf94bd 10166 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10167
988a7ddb
KH
101682009-03-05 Kenichi Handa <handa@m17n.org>
10169
10170 * font.c (font_select_entity): New function.
10171 (font_find_for_lface): Use font_select_entity to select a font.
10172
10173 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10174 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10175 font with C restriction.
10176
98a326f7 101772009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10178
be1bce46 10179 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10180
10ea2b82
JR
101812009-03-04 Jason Rumney <jasonr@gnu.org>
10182
2c93b248 10183 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10184 characters that have already been read. (Bug#2569)
2c93b248 10185
10ea2b82
JR
10186 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10187 Log an error message if check_image_size failed.
10188 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10189 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10190
71a0c011
EZ
101912009-03-02 Eli Zaretskii <eliz@gnu.org>
10192
10193 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10194 when decoding process output.
10195
2f63bba8
RS
101962009-03-01 Richard M Stallman <rms@gnu.org>
10197
10198 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10199
10200 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10201
0a9564cb
EZ
102022009-02-28 Eli Zaretskii <eliz@gnu.org>
10203
10204 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10205 (decode_coding_emacs_mule, decode_coding_iso_2022)
10206 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10207 (decode_coding_raw_text, decode_coding_charset)
10208 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10209 Honor inhibit-eol-conversion. (Bug #2186)
10210
449148b3
JR
102112009-02-28 Jason Rumney <jasonr@gnu.org>
10212
10213 * coding.c (detect_coding_charset): If not checking latin extra,
10214 fail on characters between 0x80 and 0xA0. (Bug#2354)
10215
a4aee864
EZ
102162009-02-28 Eli Zaretskii <eliz@gnu.org>
10217
10218 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10219 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10220
d88bee5a
GM
102212009-02-27 Glenn Morris <rgm@gnu.org>
10222
10223 * callint.c (Finteractive): Doc fix.
10224
a808f22d
KH
102252009-02-27 Kenichi Handa <handa@m17n.org>
10226
10227 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10228
caf8d60c
CY
102292009-02-27 Chong Yidong <cyd@stupidchicken.com>
10230
10231 * font.c (font_style_to_value): Set value for unknown symbols to
10232 100 instead of 255.
b61137ea
CY
10233 (weight_table, slant_table, width_table): Treat "unspecified" as
10234 the default value.
caf8d60c 10235
1a0de25c
JB
102362009-02-26 Juanma Barranquero <lekktu@gmail.com>
10237
10238 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10239
8fc45744
JB
102402009-02-25 Juanma Barranquero <lekktu@gmail.com>
10241
107bd7d1
JB
10242 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10243 error as soon as a recursive load is detected.
8fc45744 10244
f097e223
AR
102452009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10246
10247 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10248 before caching.
10249
8810a12f
KH
102502009-02-24 Kenichi Handa <handa@m17n.org>
10251
10252 * fontset.c (fontset_find_font): Fix the condition for checking
10253 unavailable font.
10254
2c7d1565
GM
102552009-02-24 Glenn Morris <rgm@gnu.org>
10256
10257 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10258 whitespace that confuses documentation.
10259
a20878b6
MB
102602009-02-23 Miles Bader <miles@gnu.org>
10261
10262 * process.c (Flist_system_processes, Fprocess_attributes)
10263 (syms_of_process): Rename `system-process-attributes' to
10264 `process-attributes'.
10265
b3b58c01
AS
102662009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10267
1b3b981b
AS
10268 * coding.h (struct coding_system): Make safe_charsets a pointer to
10269 unsigned char.
10270 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10271 being 255.
10272 (SAFE_CHARSET_P): Likewise.
10273 (setup_iso_safe_charsets): Properly setup safe_charsets.
10274 (Fdefine_coding_system_internal): Likewise.
10275 (setup_coding_system): Likewise. Remove unneeded casts.
10276 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10277 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10278 unneeded casts.
10279
b3b58c01
AS
10280 * insdel.c (del_range_2): Don't modify gap contents when called
10281 from decode_coding_object. (Bug#1809)
10282
0b6f228c
CY
102832009-02-21 Chong Yidong <cyd@stupidchicken.com>
10284
10285 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10286 Qfont_object.
10287 (Ftype_of): Recognize font objects.
10288
10289 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10290
10291 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10292 moved to data.c.
10293
52f8870b
AR
102942009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10295
10296 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10297 async_iconified. Based on a patch by Christian Lynbech
10298 <christian.lynbech@tieto.com>.
10299 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10300
7087d5e9
GM
103012009-02-20 Glenn Morris <rgm@gnu.org>
10302
10303 * syntax.c (Fskip_chars_forward): Fix doc typo.
10304
41d2ceef
CY
103052009-02-20 Chong Yidong <cyd@stupidchicken.com>
10306
10307 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10308
1a3b7ca6
CY
103092009-02-19 Chong Yidong <cyd@stupidchicken.com>
10310
10311 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10312
73cce38d
KH
103132009-02-19 Kenichi Handa <handa@m17n.org>
10314
10315 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10316 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10317
a51092ee
DN
103182009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10319
10320 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10321
c423ecca
KH
103222009-02-18 Kenichi Handa <handa@m17n.org>
10323
10324 * font.c (font_check_otf_features): Fix handling of `nil' element.
10325 (Ffont_spec): Describe :lang and :otf in the docstring.
10326
4c1958f4
AS
103272009-02-16 Andreas Schwab <schwab@suse.de>
10328
10329 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10330 string.
10331
5704f39a
KH
103322009-02-16 Kenichi Handa <handa@m17n.org>
10333
10334 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10335 (Bug#1723)
5704f39a 10336
8f0085aa
CY
103372009-02-14 Chong Yidong <cyd@stupidchicken.com>
10338
a057d86a 10339 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10340
10341 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10342 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10343
aff01dd9
EZ
103442009-02-14 Eli Zaretskii <eliz@gnu.org>
10345
10346 * msdos.c (MAX_SCREEN_BUF): New macro.
10347 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10348 Encode the entire run of glyphs sharing the same face, instead of
10349 doing that one glyph at a time (fixes a bug with displaying
10350 double-size characters).
10351
ba301db3
AR
103522009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10353
10354 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10355
10356 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10357 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10358 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10359
10360 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10361 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10362
51d861de
SM
103632009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10364
ac146f82 10365 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10366 invisible areas.
10367
7fed8996
JR
103682009-02-12 Jason Rumney <jasonr@gnu.org>
10369
631ea4fb
JR
10370 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10371 (add_font_entity_to_list): Call check_face_name even when family
10372 is unspecified.
10373
cb4a3e42
JR
10374 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10375 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10376 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10377
7fed8996 10378 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10379 raster fonts. (Bug#2219)
7fed8996 10380
895416e3
KH
103812009-02-12 Kenichi Handa <handa@m17n.org>
10382
10383 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10384 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10385 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10386 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10387 (find_automatic_composition): While looking forward and backward,
10388 check static composition. Fix where to stop looking forward.
10389 (composition_adjust_point): Fix checking of static composition.
10390 (Fcomposition_get_gstring): Pay attention to
1dacf998 10391 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10392
10393 * lisp.h (fast_looking_at): Extern it.
10394
10395 * search.c (fast_looking_at): New function.
10396
51d861de 10397 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10398 <struct glyph>.u.cmp.to.
10399 (append_composite_glyph): Likewise.
10400
51d861de 10401 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10402 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10403 composition.
51d861de 10404 (append_composite_glyph): Adjust for the change of
895416e3
KH
10405 <strcut glyph>.u.cmp.to.
10406
8510724d
JB
104072009-02-11 Juanma Barranquero <lekktu@gmail.com>
10408
10409 * casetab.c (init_casetab_once):
10410 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10411 * font.c (font_update_lface):
10412 * fontset.c (Fnew_fontset):
10413 * ftfont.c (ftfont_drive_otf):
10414 * xfont.c (xfont_open):
10415 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10416
294fa707
SM
104172009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * fileio.c (Fwrite_region): !NILP -> CONSP.
10420
b5bfebec
AS
104212009-02-10 Andreas Schwab <schwab@suse.de>
10422
10423 * process.c (send_process): Properly relocate pointer into data
adab88bd 10424 when using encoded data. (Bug#2272)
b5bfebec 10425
cb84a2be
KH
104262009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10427
10428 * coding.c (detect_coding_charset): Fix previous change.
10429
89e09428
JR
104302009-02-08 Jason Rumney <jasonr@gnu.org>
10431
10432 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10433 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10434
4470a277
AS
104352009-02-07 Andreas Schwab <schwab@suse.de>
10436
10437 * unexelf.c (unexec): Fix error message.
10438
3175b12a
AR
104392009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10440
10441 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10442 when modal window is active. (Bug #2152)
3175b12a
AR
10443 (applicationShouldTerminate:): Remove now-unneeded while loop
10444 around NSRunAlertPanel.
10445
10446 * nsmenu.m (popupSession): New file-global variable.
10447 (pop_down_menu): End the popupSession before closing dialog.
10448 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10449 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10450 don't query NSApp for events (just sleep instead).
10451
8434d0b8
EZ
104522009-02-07 Eli Zaretskii <eliz@gnu.org>
10453
51d861de
SM
10454 * coding.c (syms_of_coding) <translation-table-for-input>:
10455 Modify doc string to discourage use for character code unification.
8434d0b8 10456
aa82edfd
CY
104572009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10458
10459 * atimer.c (run_timers): Update pending_atimers.
10460
2d283c7c
CY
104612009-02-06 Chong Yidong <cyd@stupidchicken.com>
10462
eb306cab
CY
10463 * image.c (svg_load_image): Fix last change.
10464
2d283c7c
CY
10465 * xfns.c (Fx_create_frame): Signal an error if no font is
10466 found (Bug#2147).
10467
4d8e170e
JB
104682009-02-05 Juanma Barranquero <lekktu@gmail.com>
10469
10470 * character.c (syms_of_character) <script-representative-chars>:
10471 Fix typo in docstring.
10472
c96169a0
AR
104732009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10474
10475 * nsmenu.m (pop_down_menu): New function.
10476 (ns_popup_dialog): Call it on unwind.
10477 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10478 call timer_check() (Bug#2154).
10479 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10480 handling_signal is set.
10481 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10482
31fd7c5c 10483 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10484
10485 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10486
10487 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10488
51d861de
SM
10489 * keyboard.c (poll_for_input_1, handle_async_input):
10490 Set handling_signal under HAVE_NS.
c96169a0 10491
aacd8ba1
GM
104922009-02-04 Glenn Morris <rgm@gnu.org>
10493
10494 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10495
4cb75c4b
KH
104962009-02-04 Kenichi Handa <handa@m17n.org>
10497
10498 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10499
10500 * charset.c (Fchar_charset): New optional arg restriction.
10501
10502 * coding.h (coding_system_charset_list): Extern it.
10503
10504 * coding.c (coding_system_charset_list): New function.
10505
10506 * composite.c: Include coding.h and termhooks.h.
10507 (composition_gstring_p): Fix for the terminal case.
10508 (composition_gstring_width): Likewise.
10509 (fill_gstring_body): Likewise.
10510 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10511 the frame.
10512 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10513 is within a composition.
867d4bb3 10514 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10515
10516 * term.c (encode_terminal_code): Fix handling of composition.
10517 (produce_composite_glyph): For static composition, get pixel_width
10518 from struct composition.
10519
826ba17e
AS
105202009-02-02 Andreas Schwab <schwab@suse.de>
10521
10522 * unexelf.c (unexec): Handle unaligned bss offset.
10523
8ad093db
AR
105242009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10525
10526 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10527 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10528
8ad093db
AR
10529 * keyboard.c (handle_interrupt): Don't call
10530 quit_throw_to_read_char() under NS.
d0a76a6e 10531
8ad093db
AR
10532 * blockinput.h: Remove NS-specific code.
10533
4d18a7a2
DN
105342009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10535
db878925
DN
10536 * dispnew.c (window_change_signal): Don't try to get the size of a
10537 suspended tty frame.
10538 * term.c (Fresume_tty): Resize if the size has changed while the
10539 tty was suspended.
10540
4d18a7a2
DN
10541 * alloc.c (mark_stack): Properly conditionalize previous change.
10542
8984df7c
JB
105432009-01-30 Juanma Barranquero <lekktu@gmail.com>
10544
10545 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10546 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10547 Remove; this code is not used on Windows.
10548
75f4f1ac
EZ
105492009-01-30 Eli Zaretskii <eliz@gnu.org>
10550
10551 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10552 EOLs that also has stray ^M characters.
10553
07a1e794
JB
105542009-01-30 Juanma Barranquero <lekktu@gmail.com>
10555
10556 * atimer.c (run_timers, alarm_signal_handler):
10557 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10558 * w32inevt.c (w32_console_read_socket):
10559 * w32term.c (w32_read_socket):
10560 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10561
a8b11cc9
CY
105622009-01-30 Chong Yidong <cyd@stupidchicken.com>
10563
10564 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10565 Initialize it as a relative filename pattern.
10566 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10567 (Fcall_process_region): Simplify temp file creation using
10568 temporary-file-directory.
10569
c279587b
EZ
105702009-01-29 Eli Zaretskii <eliz@gnu.org>
10571
10572 * msdos.c: Rename pending_signals to msdos_pending_signals.
10573 (sig_suspender, sigprocmask): Adjust.
10574
a8fe3242
CY
105752009-01-29 Chong Yidong <cyd@stupidchicken.com>
10576
10577 * keyboard.c (pending_signals): New var.
10578 (poll_for_input, input_available_signal, init_keyboard): Set it.
10579 (process_pending_signals): New function.
10580
10581 * lisp.h (QUIT): Check pending_signals instead of
10582 interrupt_input_pending. Use process_pending_signals.
10583
51d861de 10584 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10585
51d861de 10586 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10587
10588 * sysdep.c (emacs_write): Use process_pending_signals.
10589
10590 * xterm.c (XTread_socket): Update pending_signals.
10591
10592 * w32term.c (w32_read_socket): Update pending_signals.
10593
10594 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10595
6570a1c4
KH
105962009-01-29 Kenichi Handa <handa@m17n.org>
10597
10598 * xftfont.c (xftfont_has_char): New function.
10599 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10600
d72a4afa
AR
106012009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10602
10603 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10604 under GNUstep.
10605 (ns_query_color): New declaration.
10606
10607 * nsterm.m (ns_confirm_quit): New variable.
10608 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10609 (EmacsApp-applicationShouldTerminate:): Use it.
10610 (EmacsPrefsController): Let user set it.
10611 (ns_query_color): New function.
10612 (ns_defined_color): Use it.
10613 (ns_initialize): Drop.
10614 (ns_term_init): Add two lines from ns_initialize(), and set
10615 input_interrupt_mode to nil.
10616
10617 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10618 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10619
9fe78804
KH
106202009-01-28 Kenichi Handa <handa@m17n.org>
10621
10622 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10623 (fontset_get_font_group): Remember that no font-group is specified
10624 for C.
9fe78804 10625
fa57de36
CY
106262009-01-27 Chong Yidong <cyd@stupidchicken.com>
10627
930600e9
CY
10628 * fns.c (concat): Check for string overflow (bug#1787).
10629
fa57de36
CY
10630 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10631 Quadruple undo limits (bug#1501).
10632
7179ce7b
KH
106332009-01-27 Kenichi Handa <handa@m17n.org>
10634
10635 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10636 directly use GT_Get_Char_index.
10637
10638 * xftfont.c (struct xftfont_info): New member `index'.
10639
10640 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10641 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10642
5be8fcc0
CY
106432009-01-26 Kenichi Handa <handa@m17n.org>
10644
10645 * fontset.c (fontset_find_font): Fix handling of non-cons return
10646 value of fontset_get_font_group.
10647 (fontset_font): Revert last change.
10648
19ae3e61
JR
106492009-01-26 Jason Rumney <jasonr@gnu.org>
10650
10651 * w32font.c (w32font_list_internal): Return quickly if registry is
10652 unknown. Simplify final return.
10653 (add_font_entity_to_list): Break complex logic down into more
10654 manageable chunks. Move unknown registry check to
10655 w32font_list_internal.
10656
8612b71a
AR
106572009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10658
10659 Changes to remove Feval calls from GUI under NS.
10660
d8038940
JB
10661 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10662 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10663 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10664
10665 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10666 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10667 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10668 instead of NON_ASCII_KEYSTROKE_EVENT.
10669 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10670 (EmacsApp-applicationShouldTerminate:): Query user.
10671 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10672 instead of Feval.
10673
10674 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10675
10676 * keyboard.c (kbd_buffer_get_event): Check for it.
10677 (keys_of_keyboard): Define lispy keys for
10678 ns-put/unput-working-text.
10679
10680 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10681 versions.
10682 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10683
6288ae55
CY
106842009-01-25 Chong Yidong <cyd@stupidchicken.com>
10685
10686 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10687 setting current_buffer directly. (Bug#2044)
6288ae55 10688
289e7f8f
CY
106892009-01-24 Chong Yidong <cyd@stupidchicken.com>
10690
5ce87308 10691 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10692 any work. (Bug#1952, bug#1990).
5ce87308 10693
64cc3cf6 10694 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10695
b3243e6f
AR
106962009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10697
10698 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10699 (ns_no_defaults): New declaration.
10700 (main): Use it.
e0d2e69a 10701
d900b2af 10702 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10703
d900b2af 10704 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10705
d900b2af
AR
10706 * nsterm.m (ns_no_defaults): New variable.
10707 (ns_initialize): Don't read defaults when ns_no_defaults.
10708 (EmacsView-readSelectionFromPasteboard:)
10709 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10710 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10711 (ns_dumpglyphs_stretch): New function.
10712 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10713 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10714
e0d2e69a
AR
10715 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10716
3ac71f5d
CY
107172009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10718
10719 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10720 call for Sparc64.
10721
3fe53a83
AR
107222009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10723
10724 * nsfns.m:
10725 * nsgui.h:
10726 * nsmenu.m:
10727 * nsselect.m:
10728 * nsterm.h:
10729 * nsterm.m: Remove '23' comments that indicated code added during
10730 update from emacs-20 -> emacs-23.
10731
10f87c6f 107322009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10733
10734 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10735 ns_alternate_modifier. (Bug#1217)
a3b53a85 10736
c7cef62d
AR
10737 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10738 Display all shortcuts, including those w/o super modifier.
10739
575fb8bd
AR
10740 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10741
918b848b
CY
107422009-01-22 Chong Yidong <cyd@stupidchicken.com>
10743
10744 * fileio.c (Vwrite_region_post_annotation_function)
10745 (Vwrite_region_annotation_buffers): New vars.
10746 (build_annotations_unwind): Just reset
10747 Vwrite_region_annotation_buffers.
10748 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10749 Call write-region-post-annotation-function.
10750 (build_annotations): Add to Vwrite_region_annotation_buffers if
10751 buffer changes.
10752
a39e2539
AR
107532009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10754
10755 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10756 Tiger.
51d861de
SM
10757 * nsfns.m (ns_do_applescript):
10758 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10759
35ed44db
AR
107602009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10761
10762 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10763
cbe0b5bf
AR
107642009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10765
10766 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10767
6049d3a0
AR
10768 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10769
10770 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10771 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10772 handle Ctrl-tab. (Bug#1841)
10773 (ns_get_color): Use unsigned long long for scanned hex string value.
10774 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10775 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10776 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10777 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10778 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10779 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10780 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10781
d3810c21 10782 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10783 DPI. (Bug#1316)
d3810c21
AR
10784 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10785 values in onTiger section.
4c7077c3 10786
e301e634
CY
107872009-01-19 Chong Yidong <cyd@stupidchicken.com>
10788
7f82490b
CY
10789 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10790 Check return value of font_spec_from_name.
64cc3cf6 10791 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10792
10793 * font.c (font_spec_from_name): Return Qnil if font name could not
10794 be parsed.
10795 (font_parse_name): Treat a `?' character as part of an XLFD.
10796
e301e634
CY
10797 * fns.c (Fsubstring): Doc fix.
10798
1c0db158
KH
107992009-01-19 Kenichi Handa <handa@m17n.org>
10800
51d861de 10801 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10802 (ftfont_list): Likewise.
10803
acf20901
JB
108042009-01-18 Juanma Barranquero <lekktu@gmail.com>
10805
fff4e459
JB
10806 * dbusbind.c (Fdbus_register_signal):
10807 * process.c (conv_sockaddr_to_lisp):
10808 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10809
acf20901
JB
10810 * callproc.c (Fgetenv_internal): Doc fix.
10811
e7abcdfb
CY
108122009-01-16 Chong Yidong <cyd@stupidchicken.com>
10813
10814 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10815 it is not even used.
10816
b60861e6
GM
108172009-01-16 Glenn Morris <rgm@gnu.org>
10818
10819 * font.c (Ffont_variation_glyphs): Silence compiler.
10820
8db52afe
JB
108212009-01-15 Juanma Barranquero <lekktu@gmail.com>
10822
10823 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10824 Reported by David Robinow <drobinow@gmail.com>.
10825
4cddb209
KH
108262009-01-15 Kenichi Handa <handa@m17n.org>
10827
51d861de 10828 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10829
f247f67b
JR
108302009-01-14 Jason Rumney <jasonr@gnu.org>
10831
10832 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10833 never a fontset. (Bug#1562)
f247f67b 10834
f56a4450
KH
108352009-01-14 Kenichi Handa <handa@m17n.org>
10836
10837 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10838 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10839
4e99855e
CY
108402009-01-13 Chong Yidong <cyd@stupidchicken.com>
10841
10842 * font.c (font_clear_prop): If clearing the family, clear the font
10843 width index too.
10844
fff4e459 10845 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10846
24f01470
JB
108472009-01-12 Juanma Barranquero <lekktu@gmail.com>
10848
10849 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10850 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10851 functions, use sizeof.
10852
a41240a3
MR
108532009-01-12 Martin Rudalics <rudalics@gmx.at>
10854
10855 * keyboard.c (read_char): Fix case where last_nonmenu_event
10856 returned a bad value with submenus. (Bug#447)
10857
944636b8
CY
108582009-01-12 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10861 family, clear the font width index too.
10862
0dad7c6f
JR
108632009-01-11 Jason Rumney <jasonr@gnu.org>
10864
10865 * keyboard.c (cmd_error_internal): Exit when errors occur before
10866 frame creation and not in daemon mode. (Bug#1836)
10867
7c2363af
CY
108682009-01-10 Chong Yidong <cyd@stupidchicken.com>
10869
10870 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10871 of a display vector, backtrack.
10872 (try_window_reusing_current_matrix): Check glyph type before
10873 referencing charpos member.
10874
97b1b294
EZ
108752009-01-10 Eli Zaretskii <eliz@gnu.org>
10876
10877 Fix Bug #876:
10878
10879 * coding.c (inhibit_null_byte_detection): New variable.
10880 (detect_coding, detect_coding_system): Don't pay attention to null
10881 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10882 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10883 <inhibit-iso-escape-detection>: Doc fix.
10884
4624b6e3
JR
108852009-01-09 Jason Rumney <jasonr@gnu.org>
10886
10887 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10888 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10889 Only report Unicode Plane 2 fonts as unicode-sip.
10890
323b840c
CY
108912009-01-09 Chong Yidong <cyd@stupidchicken.com>
10892
51d861de
SM
10893 * xfaces.c (Fx_font_family_list): Delete function.
10894 Move compatibility version to faces.el.
323b840c 10895
51d861de 10896 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10897
eba7400d
MR
108982009-01-09 Martin Rudalics <rudalics@gmx.at>
10899
10900 * frame.c (x_set_frame_parameters): Remember requested value for
10901 fullscreen before it's reset by the parameter handler.
10902
4b09796d
GM
109032009-01-09 Glenn Morris <rgm@gnu.org>
10904
10905 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10906 (last_command_event): ... and update all users.
4b09796d
GM
10907 (last_input_char): For clarity, rename to...
10908 (last_input_event): ... and update all users.
10909 (last-command-char, last-input-char): Move to subr.el as aliases.
10910 * cmds.c, commands.h: Update for last_command_char rename.
10911
14ccea62
CY
109122009-01-08 Chong Yidong <cyd@stupidchicken.com>
10913
51d861de 10914 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10915
5f004711
JR
109162009-01-08 Jason Rumney <jasonr@gnu.org>
10917
10918 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10919 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10920 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10921 Don't declare.
fff4e459 10922 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10923 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10924
b71f6f73
KH
109252009-01-07 Kenichi Handa <handa@m17n.org>
10926
50b06221 10927 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10928 remember the coding system used for decoding in
50b06221
KH
10929 coding_system (Bug#1039).
10930
b71f6f73 10931 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10932 breaking the loop. (Bug#870)
b71f6f73
KH
10933 (decode_coding_utf_16, decode_coding_emacs_mule)
10934 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10935 (decode_coding_charset): Likewise.
10936
56f668f7
MR
109372009-01-05 Martin Rudalics <rudalics@gmx.at>
10938
10939 * frame.c (x_set_frame_parameters): Make sure height (width) get
10940 applied when fullwidth (fullheight) is set. (Bug#1522)
10941
5da9424d
JB
109422009-01-04 Juanma Barranquero <lekktu@gmail.com>
10943
10944 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10945 (utc_base): Declare as ULONGLONG, not long double.
10946 (convert_time_raw): Delete.
10947 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10948 (initialize_utc_base): New function.
10949 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10950 (convert_from_time_t): Use initialize_utc_base; compute result with
10951 64-bit arithmetic.
10952 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10953
c4605e09
EZ
109542009-01-03 Eli Zaretskii <eliz@gnu.org>
10955
9acef61c 10956 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10957 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10958 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10959 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10960 [!subprocesses]: Define.
10961 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10962 (Flist_system_processes, Fsystem_process_attributes)
10963 [!subprocesses]: Call list_system_processes and
10964 system_process_attributes instead of returning Qnil.
10965
9acef61c
JB
10966 * dosfns.c (system_process_attributes, list_system_processes):
10967 New functions.
c4605e09
EZ
10968
10969 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10970
10971 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10972 Don't use the default (no-op) implementation.
10973
8b7d0a16
JR
109742009-01-03 Jason Rumney <jasonr@gnu.org>
10975
a6d46bc1
JR
10976 * keyboard.c (parse_modifiers_uncached): Wheel events are
10977 clicks (bug#687).
10978
8b7d0a16
JR
10979 * w32term.c (x_query_colors, x_query_color): New functions.
10980
10981 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10982 (svg_load_image): Cast returned pointers from dynamically loaded
10983 functions. Eliminate W32 specific code.
10984
bfe11752
DN
109852009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10986
89e2438a
DN
10987 * nsfns.m (x_set_foreground_color, x_set_background_color)
10988 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10989 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10990 x_ prefix instead of ns_. Update references.
10991 (syms_of_nsfns): Add a FIXME comment.
10992
10993 * nsterm.m (x_set_cursor_type): New prototype.
10994 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10995
bfe11752
DN
10996 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10997 for Solaris instead of incorrectly providing Qutime and Qcutime.
10998
031da700
EZ
109992009-01-02 Eli Zaretskii <eliz@gnu.org>
11000
11001 * w32.c (process_times): Compute sum of utime and stime.
11002 (system_process_attributes): Add Qtime to the alist.
11003
11004 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11005 and add them to the alist.
11006
11007 * process.c (top level) <Qtime, Qctime>: New variables.
11008 (syms_of_process): staticpro them.
11009 (Fsystem_process_attributes): Add their documentation to the doc
11010 string.
11011
11012 * process.h: Declare Qtime and Qctime.
11013
df23bf08
JR
110142009-01-02 Jason Rumney <jasonr@gnu.org>
11015
9acef61c 11016 * image.c (Qgobject): New symbol.
df23bf08
JR
11017 (syms_of_image): Initialize it.
11018 (init_svg_functions): Load some functions from gobject library.
11019
5bbdf7aa
DN
110202009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11021
11022 * frame.c (make_terminal_frame): Remove redundant code and useless
11023 block.
11024
63136da6
AS
110252009-01-01 Andreas Schwab <schwab@suse.de>
11026
11027 * process.c (conv_sockaddr_to_lisp): Add workaround for
11028 getsockname bug on BSD.
11029
9ef69046
CY
110302009-01-01 Chong Yidong <cyd@stupidchicken.com>
11031
d6fafbe0
CY
11032 * xfns.c (x_create_tip_frame): Set border width of the X window.
11033
51d861de 11034 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11035
f9c34147
JR
110362009-01-01 Jason Rumney <jasonr@gnu.org>
11037
9acef61c 11038 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11039 Don't block input, as per earlier xterm.c changes.
11040
f5497e45
AR
110412008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11042
11043 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11044 (ns_appkit_version_int): New function.
11045 (x-server-version): Use ns_appkit_version_int and follow 21+
11046 convention of returning 3 integers.
11047
c19cab20
KH
110482008-12-30 Kenichi Handa <handa@m17n.org>
11049
11050 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11051 (CHAR_SURROGATE_PAIR_P): New macro.
11052
11053 * font.h (struct font_driver): New member get_variation_glyphs.
11054
9acef61c 11055 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11056 (Ffont_variation_glyphs): New function.
11057 (syms_of_font): Defsubr it.
11058
11059 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11060 ftfont_variation_glyphs.
11061 (setup_otf_gstring): New function.
11062 (ftfont_drive_otf): Use it.
11063 (ftfont_shape_by_flt): Handle variation selector.
11064 (ftfont_variation_glyphs): New function.
11065
28cd591f
MR
110662008-12-30 Martin Rudalics <rudalics@gmx.at>
11067
11068 * frame.c (Vemacs_iconified): Remove.
11069
7f714baf
JR
110702008-12-30 Jason Rumney <jasonr@gnu.org>
11071
11072 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11073 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11074
9d2d22ab
CY
110752008-12-30 Chong Yidong <cyd@stupidchicken.com>
11076
11077 * indent.c (Fvertical_motion): Don't advance iterator if we have
11078 reseated to the desired position.
11079
11080 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11081 checking for pos match.
11082
545312c2
KH
110832008-12-30 Kenichi Handa <handa@m17n.org>
11084
1ede3eb6
KH
11085 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11086 just get the low 8-bit of the code.
11087
545312c2
KH
11088 * font.c (font_intern_prop): Validate str as multibyte.
11089
bd7bbf29
DN
110902008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11091
31e0750e
DN
11092 * dispextern.h (struct face): Move lface and hash from the middle
11093 of bitfields.
11094
bd7bbf29
DN
11095 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11096
b5672e7c
DN
110972008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11098
11099 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11100 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11101 instead of intervals.h.
11102
d704470f
AS
111032008-12-26 Andreas Schwab <schwab@suse.de>
11104
11105 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11106 cons.
11107
54b33868
MR
111082008-12-26 Martin Rudalics <rudalics@gmx.at>
11109
11110 * textprop.c (Qminibuffer_prompt): New variable.
11111 (syms_of_textprop): Initialize it.
11112 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11113 in minibuffer-prompt face. (Bug#1662)
11114
40b615d6
JR
111152008-12-25 Jason Rumney <jasonr@gnu.org>
11116
11117 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11118
baae5c2d
JR
111192008-12-24 Jason Rumney <jasonr@gnu.org>
11120
11121 * ralloc.c (r_alloc_reset_variable): New function.
11122
11123 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11124 record of what points where. (Bug#716)
baae5c2d 11125
a9051c88
DN
111262008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11127
11128 * minibuf.c (read_minibuf): Follow the non-interactive case when
11129 running as a daemon, before detaching.
11130
8b146312
AS
111312008-12-22 Andreas Schwab <schwab@suse.de>
11132
11133 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11134 * gtkutil.c (free_widget_value): Use xfree instead of free.
11135
56f2de10
MR
111362008-12-22 Martin Rudalics <rudalics@gmx.at>
11137
11138 * frame.c (delete_frame): New function derived from
11139 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11140 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11141 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11142 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11143 * frame.h: Extern delete_frame.
11144 * window.c (window_loop):
11145 * terminal.c (delete_terminal):
11146 * xterm.c (x_connection_closed):
11147 * xfns.c (Fx_hide_tip):
9acef61c 11148 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11149
1fc200d6
JR
111502008-12-21 Jason Rumney <jasonr@gnu.org>
11151
11152 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11153 when character maps to .notdef character.
11154
5e252df2
SM
111552008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11156
11157 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11158
99b72cc4
JR
111592008-12-20 Jason Rumney <jasonr@gnu.org>
11160
11161 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11162 a graphical frame on Windows. (Bug#1325)
99b72cc4 11163
acc49a52
JD
111642008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11165
11166 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11167
6ea15123
CY
111682008-12-20 Chong Yidong <cyd@stupidchicken.com>
11169
11170 * minibuf.c (Fread_buffer): Doc fix.
11171
b2dab6c8
JR
111722008-12-20 Jason Rumney <jasonr@gnu.org>
11173
54ea0c87 11174 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11175 server name in UNC paths. (Bug#719)
54ea0c87 11176
b2dab6c8 11177 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11178 charbuf. (Bug#1035)
b2dab6c8 11179
6d1921be
DN
111802008-12-19 Daniel Engeler <engeler@gmail.com>
11181
11182 * sysdep.c (serial_configure): Fix typo.
11183
53934c98
DN
111842008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11185
11186 * sysdep.c: Include alloca.h.
f4f634e8
DN
11187 (system_process_attributes): Add implementation for Solaris.
11188
11189 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11190
06e111a6
DN
111912008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11192
11193 Reorganize implementation of Flist_system_processes and
11194 Fsystem_process_attributes. No functional changes.
11195 * process.c: Don't #include pwd.h, grp.h and limits.h.
11196 (Flist_system_processes): Just call list_system_processes.
11197 (Fsystem_process_attributes): Just call system_process_attributes.
11198 (procfs_list_system_processes, time_from_jiffies)
11199 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11200 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11201
11202 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11203 (list_system_processes): Rename from
11204 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11205 Provide a do nothing implementation.
11206 (system_process_attributes): Rename from
11207 procfs_list_system_processes.
11208 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11209 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11210
11211 * w32.c (list_system_processes): Rename from
11212 w32_list_system_processes.
11213 (system_process_attributes): Rename from
11214 w32_system_process_attributes.
11215
11216 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11217
11218 * process.h (w32_list_system_processes)
11219 (w32_system_process_attributes): Remove.
362654a6
JB
11220 (list_system_processes, system_process_attributes):
11221 New prototypes.
06e111a6 11222
6a705b23
KH
112232008-12-19 Kenichi Handa <handa@m17n.org>
11224
11225 * xfont.c (xfont_decode_coding_xlfd): New function.
11226 (xfont_encode_coding_xlfd): New function.
11227 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11228 (xfont_list): Decode and encode XLFD by iso-8859-1.
11229 (xfont_match): Likewise.
11230 (xfont_list_family): Likewise.
11231 (xfont_open): Likewise.
11232
d66c0241 11233 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11234 names are utf-8.
11235
d66c0241 11236 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11237 names are utf-8.
11238
5a130941
JD
112392008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11240
11241 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11242 changed.
bfd20325
JD
11243 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11244 clicked on a detached tool bar button.
5a130941 11245
fd95644b
DN
112462008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11247
11248 * emacs.c (main): Print and error and exit when no data is read
11249 from the pipe.
11250
e6eee6ae
JR
112512008-12-17 Jason Rumney <jasonr@gnu.org>
11252
11253 * w32font.c (w32font_has_char): Always return -1.
11254
a35dd56b
KH
112552008-12-16 Kenichi Handa <handa@m17n.org>
11256
11257 * font.c (font_open_entity): Fix previous change.
11258
0e3635c2
DN
112592008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11260
11261 * process.c: Include <limits.h>.
11262
d4835507 112632008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11264
11265 * font.c (font_update_drivers): Fix mistake in reconstructing the
11266 driver list.
11267
112682008-12-16 Chong Yidong <cyd@stupidchicken.com>
11269
11270 * font.c (font_clear_cache): Fix format of font cache data.
11271
e2cbc401
CY
112722008-12-15 Chong Yidong <cyd@stupidchicken.com>
11273
11274 * xftfont.c (xftfont_open): Free Xft font pattern if
11275 XftFontOpenPattern fails.
11276
11277 * xterm.c (x_free_frame_resources): Remove extraneous call to
11278 free_frame_faces.
11279
b131d535
CY
112802008-12-13 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * xterm.c (x_delete_display): Move xim_close_dpy call to
11283 x_delete_terminal.
11284 (x_delete_terminal): Call xim_close_dpy.
11285
e6df5336
JR
112862008-12-13 Jason Rumney <jasonr@gnu.org>
11287
11288 * w32font.c (intern_font_name): New function.
11289 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11290 (w32font_open_internal, Fx_select_font): Decode font name.
11291 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11292
11293 * w32font.h (intern_font_name): Declare new function.
11294
11295 * w32uniscribe.c (add_opentype_font_name_to_list):
11296 Use intern_font_name.
11297
20d68145
CY
112982008-12-13 Chong Yidong <cyd@stupidchicken.com>
11299
9f2554de
CY
11300 * frame.c (Fdelete_frame): Call free_font_driver_list.
11301
3d9bec9a
CY
11302 * font.c (free_font_driver_list): Implement missing function.
11303
20d68145
CY
11304 * w32term.c (w32_term_init): Don't initialize the image cache
11305 here; it will be done in init_frame_faces.
11306
11307 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11308 (struct x_display_info): Remove unused member null_pixel. New
11309 member xim_callback_data.
11310
11311 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11312 (xim_initialize): Save pointer to callback function data.
11313 (xim_close_dpy): Free callback function data. Call XCloseIM,
11314 reverting 2008-11-04 change by David Smith.
11315 (x_term_init): Don't initialize the image cache here; it will be
11316 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11317 (x_delete_display): Free x_dnd_atoms member.
11318
96f9306b
KH
113192008-12-13 Kenichi Handa <handa@m17n.org>
11320
6dec9044
JB
11321 * font.c (font_rescale_ratio): Moved from xfaces.c.
11322 Argument type changed. Handle a font-spec too.
96f9306b 11323 (font_score): Check Vface_font_rescale_alist.
6dec9044 11324 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11325
11326 * xfaces.c (font_rescale_ratio): Moved to font.c.
11327
8d5b4964
CY
113282008-12-13 Chong Yidong <cyd@stupidchicken.com>
11329
11330 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11331
e6df5336
JR
113322008-12-12 Jason Rumney <jasonr@gnu.org>
11333
11334 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11335 Vwindow_system_version to the real w32 major version.
11336
97c6058a
DN
113372008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11338
11339 * term.c (init_tty): Move setting the terminal name before the
11340 potential user: maybe_fatal.
11341
ec4e88d7
CY
113422008-12-11 Chong Yidong <cyd@stupidchicken.com>
11343
d4835507
JB
11344 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11345 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11346
b4233ec9
JR
113472008-12-11 Jason Rumney <jasonr@gnu.org>
11348
8ec71e23 11349 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11350 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11351
b4233ec9 11352 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11353 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11354
011a0143
JB
113552008-12-11 Juanma Barranquero <lekktu@gmail.com>
11356
11357 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11358
3c309f34
JB
113592008-12-11 Juanma Barranquero <lekktu@gmail.com>
11360
11361 * process.c (Fsystem_process_attributes, syms_of_process):
11362 Fix typo in name of Ssystem_process_attributes.
11363 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11364
fedc6ab5
JB
113652008-12-11 Juanma Barranquero <lekktu@gmail.com>
11366
11367 * syntax.c (Fmodify_syntax_entry): Doc fix.
11368
ba3de0e8
JB
113692008-12-10 Juanma Barranquero <lekktu@gmail.com>
11370
11371 * font.c (Ffont_spec): Move usage to end of docstring.
11372
174f1c74
JR
113732008-12-10 Jason Rumney <jasonr@gnu.org>
11374
11375 * w32font.c (Qcham): New symbol.
11376 (font_supported_scripts): Add cham, and comments for other new
11377 scripts in bitfield from OpenType spec.
9d32f818
JR
11378 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11379 contain characters beyond the bmp.
174f1c74 11380
7b649478
KH
113812008-12-10 Kenichi Handa <handa@m17n.org>
11382
11383 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11384 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11385 Qunicode_sip.
11386
2133e2d1
JB
113872008-12-10 Juanma Barranquero <lekktu@gmail.com>
11388
11389 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11390 (Fcoding_system_put): Use QCdefault_char.
11391 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11392
9af886ee
CY
113932008-12-09 Chong Yidong <cyd@stupidchicken.com>
11394
74d819eb
CY
11395 * xftfont.c (syms_of_xftfont): Fix typo.
11396
4ccfa1c0 11397 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11398
7c19d3ae
DN
113992008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11400
11401 * emacs.c (main): Close daemon_pipe on exec.
11402
567826bb
CY
114032008-12-08 Chong Yidong <cyd@stupidchicken.com>
11404
11405 * termchar.h (struct tty): New members termcap_term_buffer and
11406 termcap_strings_buffer.
11407
11408 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11409 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11410 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11411 All callers changed.
11412 (init_tty): Store termcap data and string buffers in new struct
11413 tty members termcap_term_buffer and termcap_strings_buffer.
11414 (delete_tty): Free them.
4ccfa1c0 11415 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11416
aa96c42b
SZ
114172008-12-07 Seiji Zenitani <zenitani@mac.com>
11418
11419 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11420 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11421
b7e1d896
CY
114222008-12-06 Chong Yidong <cyd@stupidchicken.com>
11423
11424 * coding.c (make_conversion_work_buffer): Disable buffer
11425 modification hooks in the work buffer.
11426
b5ec91a5
EZ
114272008-12-05 Eli Zaretskii <eliz@gnu.org>
11428
11429 * process.c (procfs_system_process_attributes): If `nread' has a
11430 negative value, assign zero to it.
11431
a5d2a52b
CY
114322008-12-05 Chong Yidong <cyd@stupidchicken.com>
11433
68c5540b 11434 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11435
7bf1bb21
KH
114362008-12-05 Kenichi Handa <handa@m17n.org>
11437
11438 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11439 second character is a combining character.
11440
2fdc7d00
EZ
114412008-12-05 Eli Zaretskii <eliz@gnu.org>
11442
11443 * process.c (procfs_system_process_attributes): Don't use cmd,
11444 cmdsize, and q without initializing them first.
11445
bf6bfba8
JR
114462008-12-04 Jason Rumney <jasonr@gnu.org>
11447
11448 * w32font.c (w32font_draw): Initialize orig_clip before getting
11449 it, and delete it when finished.
11450
a3b1a468
DN
114512008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11452
11453 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11454 case when running as a daemon before detaching.
11455
8b8be8eb
JB
114562008-12-03 Juanma Barranquero <lekktu@gmail.com>
11457
805f2638 11458 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11459
b1bde622
KH
114602008-12-03 Kenichi Handa <handa@m17n.org>
11461
e500c47d
KH
11462 * font.c (font_at): Set `multibyte' at first.
11463
ca516334
KH
11464 * coding.c (decode_coding_charset): Check type of an element of
11465 vector VALIDS.
7bf1bb21 11466 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11467
4ccfa1c0 11468 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11469 (font_for_char): Likewise.
11470
1e5ecd37
CY
114712008-12-03 Chong Yidong <cyd@stupidchicken.com>
11472
d5b01609 11473 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11474 (font_update_lface): Handle fonts with corrupted size specs,
11475 i.e. non-int and non-float.
d5b01609 11476
11e3a6e4 11477 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11478 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11479 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11480
ab06788b
CY
11481 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11482
1e5ecd37 11483 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11484 underline_minimum_offset for underline position.
1e5ecd37 11485
63c125ab
DN
114862008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11487
11488 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11489
11490 * character.c (c_string_width): Specify the type for LEN.
11491
3a8406e1
KH
114922008-12-03 Kenichi Handa <handa@m17n.org>
11493
4ccfa1c0 11494 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11495 (decode_coding_utf_8): Likewise.
4ccfa1c0 11496 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11497 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11498
651df7d9
CY
114992008-12-02 Chong Yidong <cyd@stupidchicken.com>
11500
11501 * keyboard.c (make_lispy_position): Only use PT if the selected
11502 window is current.
11503
1f625c6c
AS
115042008-12-02 Andreas Schwab <schwab@suse.de>
11505
f7741ce9
AS
11506 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11507
1f625c6c
AS
11508 * doprnt.c (doprnt1): Fix size of charbuf.
11509
92bc2678
CY
115102008-12-02 Chong Yidong <cyd@stupidchicken.com>
11511
11512 * keyboard.c (timer_check): Revert last change.
11513
93b9e8cc
JB
115142008-12-02 Juanma Barranquero <lekktu@gmail.com>
11515
11516 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11517
fd7a37d5
JB
115182008-12-01 Juanma Barranquero <lekktu@gmail.com>
11519
11520 * makefile.w32-in: Update dependencies.
11521 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11522
c115043b
AS
115232008-12-01 Andreas Schwab <schwab@suse.de>
11524
11525 * font.c (register_font_driver): Use xmalloc.
11526 (font_put_frame_data): Likewise.
11527
f5668d2a
CY
115282008-12-01 Chong Yidong <cyd@stupidchicken.com>
11529
860d96be
CY
11530 * xfaces.c (realize_x_face): Make abort condition clearer.
11531
f5668d2a
CY
11532 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11533
379c17e7
CY
115342008-11-30 Chong Yidong <cyd@stupidchicken.com>
11535
11536 * keyboard.c (timer_check): After a timer runs, ensure that the
11537 selected window's buffer is current.
11538
35f36d65
JB
115392008-11-30 Juanma Barranquero <lekktu@gmail.com>
11540
f952c61c
JB
11541 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11542 It was accidentally restored by the Unicode merge.
11543
35f36d65
JB
11544 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11545
b23077df
JB
115462008-11-29 Juanma Barranquero <lekktu@gmail.com>
11547
11548 * w32proc.c: Include "coding.h".
11549 (Fw32_short_file_name): Encode filename passed to Windows API.
11550 (Fw32_long_file_name): Encode filename passed to Windows API and
11551 decode back the result. (Bug#1433)
11552
b8ebe9dd
KH
115532008-11-29 Kenichi Handa <handa@m17n.org>
11554
8cc53f96
KH
11555 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11556 not before accessing it.
11557
b8ebe9dd
KH
11558 * charset.c (Fdefine_charset_internal): After calculating
11559 min_char, max_char, and fastmap, copy the charset structure again.
11560 (encode_char): Fix the previous change.
11561
59bc82c0
SZ
115622008-11-28 Seiji Zenitani <zenitani@mac.com>
11563
11564 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11565
11566 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11567
11568 * nsterm.m (x_set_frame_alpha): New function.
11569
32247e3d
EZ
115702008-11-27 Eli Zaretskii <eliz@gnu.org>
11571
11572 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11573
b003e5ff
JB
115742008-11-27 Juanma Barranquero <lekktu@gmail.com>
11575
11576 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11577 pointer to check_face_name.
11578
708550f5
KH
115792008-11-27 Kenichi Handa <handa@m17n.org>
11580
11581 * category.h (SET_CATEGORY_SET): Call set_category_set.
11582 (set_category_set): Extern it.
11583
11584 * category.c (hash_get_category_set): New function.
11585 (Fmodify_category_entry): Adjusted for the change of
11586 char_table_ref_and_range. Call hash_get_category_set to get a
11587 category set to store in the table.
11588
11589 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11590 Funify_charset.
11591
2ae37cf0 11592 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11593 (DECODE_CHAR): Check if the decoder vector is ready.
11594 (ENCODE_CHAR): Check if the encoder char-table is ready.
11595 (maybe_unify_char): Extern it.
11596
11597 * charset.c (Vchar_unified_charset_table): Delete it.
11598 (inhibit_load_charset_map): New variable.
11599 (temp_charset_work): New variable.
11600 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11601 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11602 New macros.
11603 (load_charset_map): Meaning of control_flag changed. If
11604 inhibit_load_charset_map is nonzero, setup a table in
11605 temp_charset_work.
11606 (load_charset): New argument control_flag.
11607 (map_charset_for_dump): New function.
11608 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11609 map_charset_for_dump.
11610 (Fdefine_charset_internal): If the charset method is MAP, load
11611 mapping tables by calling load_charset.
11612 (Funify_charset): Don't load a mapping table but directly set
11613 Vchar_unify_table.
11614 (maybe_unify_char): New function.
11615 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11616 Handle the case of inhibit_load_charset_map being nonzero.
11617 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11618 Handle the case of inhibit_load_charset_map being nonzero.
11619 (Fclear_charset_maps): Just free temp_charset_work.
11620 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11621 variable.
11622
11623 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11624 change of char_table_ref_and_range.
11625 (char_table_ref_and_range): Change the meaning of argument FROM
11626 and TO. Now the caller must provide initial values for *FROM
11627 and *TO.
11628
11629 * fontset.c (fontset_add): Adjusted for the change of
11630 char_table_ref_and_range.
11631 (fontset_get_font_group): Likewise.
11632 (Ffontset_info): Likewise.
11633
11634 * keymap.c (describe_vector): Adjusted for the change of
11635 char_table_ref_and_range. For char-table, put boundary between
11636 non-ASCII and 8-bit characters.
11637
11638 * print.c (print_object): For bool-vector, delete unnecessary
11639 check of ASCII_BYTE_P.
11640
9196133b
JR
116412008-11-26 Jason Rumney <jasonr@gnu.org>
11642
11643 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11644 leading in font height. (Bug#879)
9196133b 11645
9f688acf
GM
116462008-11-26 Glenn Morris <rgm@gnu.org>
11647
11648 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11649 redefinition with ifdef. (Bug#1383)
11650
90d19aff
AR
116512008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11652
11653 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11654
4ccfa1c0 116552008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11656
11657 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11658 New EmacsView methods.
11659 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11660 Fixes bug #1048,1357,1414.
11661
116622008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11663
11664 Fix bug #1362.
11665 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11666 is not an indexed color.
11667 * nsterm.m (free_indexed_color): Add argument checking.
11668 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11669
e7d5ecb3
CY
116702008-11-24 Chong Yidong <cyd@stupidchicken.com>
11671
11672 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11673 Document confirm-after-completion value for
11674 minibuffer-completion-confirm.
11675
c285743c
JR
116762008-11-24 Jason Rumney <jasonr@gnu.org>
11677
11678 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11679 warning.
11680
b0857706
JR
116812008-11-23 Jason Rumney <jasonr@gnu.org>
11682
11683 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11684 restored before returning.
11685
11686 * w32font.c (check_face_name): New function.
11687 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11688 fonts. (Bug#642)
b0857706 11689
ee50ff07
MR
116902008-11-22 Martin Rudalics <rudalics@gmx.at>
11691
11692 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11693 confirm-nonexistent-file-or-buffer in doc-string.
11694
b8ff72fa
SM
116952008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11696
11697 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11698 Fix copy/paste typo. Add checks.
11699
cee53ed4
KH
117002008-11-21 Kenichi Handa <handa@m17n.org>
11701
11702 * coding.c (detect_coding_iso_2022): Reject invalid composition
11703 sequence.
11704 (DECODE_COMPOSITION_START): If the current source is the last
11705 block, and the current composition doesn't end, regard this
11706 sequence as invalid.
11707 (decode_coding_iso_2022): Handle invalid composition sequence.
11708
f6ef1e65
MR
117092008-11-20 Martin Rudalics <rudalics@gmx.at>
11710
11711 * window.c (coordinates_in_window): Don't return
11712 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11713 line when the window is not the rightmost one. (Bug#1372)
11714
e08b1705
MR
117152008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11716
11717 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11718
ad98e89f
EZ
117192008-11-15 Eli Zaretskii <eliz@gnu.org>
11720
11721 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11722 and bright_bg if noninteractive is non-zero.
11723
fb098a4b
CY
117242008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11725
11726 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11727 x_draw_glyph_string_background.
11728
11729 * w32term.c (x_draw_glyph_string): Likewise.
11730
ce952b6e
CY
117312008-11-15 Chong Yidong <cyd@stupidchicken.com>
11732
11733 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11734 the next glyph string once past the overhang width.
11735
11736 * nsterm.m (ns_draw_glyph_string): Likewise.
11737
11738 * w32term.c (x_draw_glyph_string): Likewise.
11739
26ea7079
CY
117402008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11741
11742 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11743 double file close.
11744
1c33c906
MR
117452008-11-14 Martin Rudalics <rudalics@gmx.at>
11746
11747 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11748 dedicated status of window before attempting to display another
11749 buffer in it.
11750
8fc29035
JB
117512008-11-14 Juanma Barranquero <lekktu@gmail.com>
11752
11753 * msdos.c (Fmsdos_long_file_names):
11754 (syms_of_msdos) <dos-unsupported-char-glyph>:
11755 * dosfns.c (Fint86): Fix typos in docstrings.
11756
55fb4286
EZ
117572008-11-14 Eli Zaretskii <eliz@gnu.org>
11758
11759 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11760
3fda0315
KY
117612008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11762
11763 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11764
7e849c17
CY
117652008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11766
11767 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11768
11769 * frame.h: Negative alpha means "don't touch".
11770
11771 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11772
11773 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11774
b9fd67bd
DN
117752008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11776
11777 * hftctl.c:
11778 * chpdef.h:
11779 * acldef.h: Remove files used only for systems no longer supported.
11780
11781 * Makefile.in: Fix .o alphabetical ordering.
11782 (hftctl.o): Remove dependency, file removed.
11783 (keymap.o, print.o): Depend on charset.h.
11784
d5998e03
KH
117852008-11-10 Kenichi Handa <handa@m17n.org>
11786
2ae37cf0 11787 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11788
be70e183
CY
117892008-11-08 Chong Yidong <cyd@stupidchicken.com>
11790
11791 * dired.c (file_name_completion): If completion_ignore_case is
11792 enabled, ignore case when checking completion-regexp-list.
11793
7cf94eac
EZ
117942008-11-08 Eli Zaretskii <eliz@gnu.org>
11795
11796 * vm-limit.c (get_lim_data): Fix last change.
11797
ee107a89
KH
117982008-11-08 Kenichi Handa <handa@m17n.org>
11799
11800 * character.c (Fget_byte): New function.
11801 (syms_of_character): Defsubr Fget_byte.
11802
5fd15622
CY
118032008-11-07 Chong Yidong <cyd@stupidchicken.com>
11804
11805 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11806 cursor position is valid after scrolling.
11807
13d62fad
JB
118082008-11-06 Juanma Barranquero <lekktu@gmail.com>
11809
11810 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11811
a1dd2936
GM
118122008-11-06 Glenn Morris <rgm@gnu.org>
11813
11814 * xterm.c (handle_one_xevent): Don't let popup menus cause
11815 mouse-autoselect-window related window switching. (Bug#1261)
11816
860cd236
CY
118172008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11818
11819 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11820
653a3150
AS
118212008-11-04 Andreas Schwab <schwab@suse.de>
11822
11823 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11824
870f5cac
CY
118252008-11-03 Chong Yidong <cyd@stupidchicken.com>
11826
11827 * xfns.c (Fx_wm_set_size_hint): New function.
11828
1e02f3cb
MR
118292008-11-03 Martin Rudalics <rudalics@gmx.at>
11830
11831 * textprop.c (Fprevious_single_char_property_change): Return 0
11832 when there's no change in a string. (Bug#1301)
11833
e630dfc6
MR
118342008-11-02 Martin Rudalics <rudalics@gmx.at>
11835
11836 * frame.c (do_switch_frame): New argument NORECORD passed to
11837 Fselect_window.
11838 (Fselect_frame): New argument NORECORD passed to
11839 do_switch_frame.
11840 (Fset_frame_selected_window): New argument NORECORD passed to
11841 Fselect_frame.
11842 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11843 in call of do_switch_frame.
11844 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11845 Handle NORECORD argument in call of Fselect_frame.
11846 * lisp.h (do_switch_frame, Fselect_frame)
11847 (Fset_frame_selected_window): Adjust declarations.
11848 * window.c (select_frame_norecord): New function.
11849 (run_window_configuration_change_hook): Use it and call
11850 Fselect_frame with NORECORD set.
11851 (Fselect_window): Pass NORECORD to Fselect_frame.
11852 (Fset_window_configuration): Handle NORECORD argument in call of
11853 do_switch_frame.
11854 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11855 Fset_frame_selected_window.
11856 * keyboard.c (command_loop_1): Handle NORECORD in call of
11857 Fselect_frame (currently ifdefd).
11858
9020b223
GM
118592008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11860
11861 * emacs.c (USAGE2): Untabify.
11862
793ffee8
SM
118632008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11864
11865 * composite.c (fill_gstring_header): Fix copy/paste typo.
11866
ab6d1131
MR
118672008-10-31 Martin Rudalics <rudalics@gmx.at>
11868
11869 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11870 (Fother_window): Rename argument and rewrite doc-string.
11871 (select_window_norecord): Fix return value. (Bug#1276)
11872
601a9cf1
JB
118732008-10-30 Juanma Barranquero <lekktu@gmail.com>
11874
11875 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11876 new frames overriding foreground for tooltips. Based on similar patch
11877 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11878
813b0652
CY
118792008-10-29 Chong Yidong <cyd@stupidchicken.com>
11880
11881 * emacs.c (Fdaemon_initialized): Initialize nfd.
11882
4414f58f
MR
118832008-10-29 Martin Rudalics <rudalics@gmx.at>
11884
11885 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11886 (Fwindow_text_height): Clarify doc-strings.
11887 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11888 doc-string of window-scroll-functions.
11889
ecdcaa09
RS
118902008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11891
11892 * category.c (syms_of_category): Fix typo in docstring.
11893
23fe745a
JB
118942008-10-28 Juanma Barranquero <lekktu@gmail.com>
11895
11896 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11897 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11898 Fix typos in docstrings.
11899
ff808935
DN
119002008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11901
11902 * emacs.c (daemon_pipe): Make non-static.
11903 (IS_DAEMON): Move definition ...
11904 * lisp.h (IS_DAEMON): ... here.
11905 (daemon_pipe): Declare.
11906 (is_daemon): Remove.
11907 * dispnew.c (init_display): Use IS_DAEMON.
11908
fc012771
SM
119092008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11910
11911 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11912 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11913
11914 * emacs.c (is_daemon): Remove.
11915 (main): Don't set is_daemon.
11916 (IS_DAEMON): New macro.
11917 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11918 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11919 parent exits.
11920 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11921
d8bdbe6f
CY
119222008-10-27 Chong Yidong <cyd@stupidchicken.com>
11923
d1a072bf
CY
11924 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11925 over-sized glyph, draw it with the default glyph width.
11926
e2e325aa
CY
11927 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11928 glyph, draw it with the default glyph width.
11929
11930 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11931 glyph, draw it with the default glyph width.
11932
d8bdbe6f
CY
11933 * xdisp.c (try_scrolling): When computing the distance from the
11934 scroll margin to PT, try moving some distance past the window
11935 bottom before giving up.
11936
7bfac547
MR
119372008-10-27 Martin Rudalics <rudalics@gmx.at>
11938
11939 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11940 (Fset_window_buffer): Explain in doc-string that a window can be
11941 "strongly" dedicated to its buffer.
11942
4ff029f6
DN
119432008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11944
11945 * emacs.c (daemon_name): New variable.
11946 (main): Deal with --daemon=SERVER_NAME.
11947 (Fdaemonp): Return a name if one was passed to --daemon.
11948
5790ef40
DN
119492008-10-26 Romain Francoise <romain@orebokech.com>
11950
f9bd0df9 11951 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11952 (main): Create a pipe before forking, make the parent exit only after
11953 the child has closed its end of the pipe. Move closing the
11954 descriptors ...
11955 (Fdaemon_initialized): ... here. New function.
11956
f5385255
SM
119572008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11958
4d632321
SM
11959 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11960 the previous unoptimized table.
11961
f5385255
SM
11962 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11963 the distinction between non-nil and non-t value of `dedicated'.
11964
6c56a0f3
CY
119652008-10-25 Chong Yidong <cyd@stupidchicken.com>
11966
11967 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11968 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11969
fec89261
MR
119702008-10-25 Martin Rudalics <rudalics@gmx.at>
11971
11972 * window.c (Fget_buffer_window, Fdelete_windows_on)
11973 (Freplace_buffer_in_windows): Make buffer argument optional and
11974 rename to buffer_or_name.
11975
34fcddd0
CY
119762008-10-24 Chong Yidong <cyd@stupidchicken.com>
11977
f5385255
SM
11978 * xdisp.c (handle_single_display_spec, handle_display_prop):
11979 Undo 2005-05-16 change.
34fcddd0
CY
11980 (handle_stop): Pop iterator if it's loaded with an empty string.
11981 (get_overlay_strings_1): Don't save iterator if it's loaded with
11982 an empty string (bug#1201).
11983
064766f2
KH
119842008-10-24 Kenichi Handa <handa@m17n.org>
11985
11986 * ftfont.c (ftfont_otf_features): Fix previous change.
11987 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11988 calling ftfont_otf_features.
11989
f9bd0df9 119902008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11991
11992 * font.c (font_match_p): Fix for the case that a vector of
11993 characters is in script-representative-chars.
11994
1dae9197
MA
119952008-10-24 Michael Albinus <michael.albinus@gmx.de>
11996
11997 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11998 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11999 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12000 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12001 macro. (Bug#1186)
1dae9197 12002
f9bd0df9 120032008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12004
12005 * s/sol2-10.h: New file.
12006
878a4584
JB
120072008-10-23 Juanma Barranquero <lekktu@gmail.com>
12008
12009 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12010 poor beast has survived 9+ years and the jump from xterm.c!).
12011
cd265ca6
MR
120122008-10-23 Martin Rudalics <rudalics@gmx.at>
12013
12014 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12015 Reword doc-string.
f5385255 12016 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12017
472a4dc9
JB
120182008-10-23 Juanma Barranquero <lekktu@gmail.com>
12019
12020 * character.c (syms_of_character) <script-representative-chars>:
12021 <unicode-category-table>: Doc fixes.
12022
159bd5a2
NF
120232008-10-23 Noah Friedman <friedman@splode.com>
12024
12025 * coding.c (make_conversion_work_buffer): Check that
12026 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12027 Fget_buffer_create.
12028
49f9c344
KH
120292008-10-23 Kenichi Handa <handa@m17n.org>
12030
12031 * font.c (font_add_log): Check the values of extra properties.
12032
12bb3111
MR
120332008-10-22 Martin Rudalics <rudalics@gmx.at>
12034
12035 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12036 Reword doc-string.
12037 (Fset_window_parameter): Use NILP.
12038 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12039 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12040
bbeb4e99
JB
120412008-10-22 Juanma Barranquero <lekktu@gmail.com>
12042
12043 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12044
120452008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12046
12047 * nsfns.m (ns_appkit_version): New function.
12048 (x-server-version): Use it.
12049 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12050 (x-server-vendor): Don't check_ns().
12051
12052 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12053
a9b555d3
JB
120542008-10-22 Juanma Barranquero <lekktu@gmail.com>
12055
12056 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12057 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12058
4626499f
KH
120592008-10-22 Kenichi Handa <handa@m17n.org>
12060
e3681952
KH
12061 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12062 scripts.
12063
4626499f
KH
12064 * category.c (word_boundary_p): Check scripts instead of charset.
12065 Handle nil value in word-separating-categories and
12066 word-combining-categories.
12067 (syms_of_category): Fix docstrings of word-separating-categories
12068 and word-combining-categories.
12069
1560f91a
EZ
120702008-10-21 Eli Zaretskii <eliz@gnu.org>
12071
12072 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12073 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12074
f4668441
MR
120752008-10-21 Martin Rudalics <rudalics@gmx.at>
12076
12077 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12078 Rename arg "buffer" to "buffer_or_name".
12079 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12080 it optional.
12081 (no_switch_window): Remove since the return value is not used.
a9b555d3 12082 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12083 Consider window as dedicated when Fwindow_dedicated_p returns a
12084 non-nil value.
12085 * lisp.h: Remove prototype for no_switch_window.
12086
fd75ddb2
JD
120872008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12088
12089 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12090 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12091
07295713
KH
120922008-10-21 Kenichi Handa <handa@m17n.org>
12093
12094 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12095 check Vlatin_extra_code_table.
12096
712adc82
EZ
120972008-10-20 Eli Zaretskii <eliz@gnu.org>
12098
12099 * fileio.c (Fset_file_modes): Doc fix.
12100
f549eb0b
MA
121012008-10-19 Michael Albinus <michael.albinus@gmx.de>
12102
12103 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12104 in arrays.
12105
aac0c6e3
MR
121062008-10-19 Martin Rudalics <rudalics@gmx.at>
12107
12108 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12109 Mention kill-buffer in doc-string.
12110 (Fset_window_buffer): Reinsert tem check removed in last commit.
12111 (Fenlarge_window, Fshrink_window): Have argument names and
12112 doc-string follow Elisp manual more closely.
12113
121142008-10-18 Eli Zaretskii <eliz@gnu.org>
12115
12116 * fileio.c (Fset_file_modes): Doc fix.
12117
121182008-10-18 Martin Rudalics <rudalics@gmx.at>
12119
12120 * window.c (Fwindow_width, Fset_window_start)
12121 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12122 (Fdelete_windows_on, Freplace_buffer_in_windows):
12123 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12124 (Fwindow_dedicated_p): Make window argument optional.
12125 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12126 (Fset_window_buffer): Respect any non-nil dedicated value for
12127 window. Rename "buffer" argument to "buffer_or_name".
12128
121292008-10-18 Ulrich Mueller <ulm@gentoo.org>
12130
12131 * m/sh3.h: New file, machine description for SuperH.
12132
121332008-10-17 Martin Rudalics <rudalics@gmx.at>
12134
12135 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12136
121372008-10-17 Kenichi Handa <handa@m17n.org>
12138
12139 * ftfont.c (ftfont_otf_features): Fix indexing
12140 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12141
121422008-10-16 Magnus Henoch <mange@freemail.hu>
12143
12144 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12145 (Fdbus_call_method_asynchronously): Ditto.
12146 This change makes C-h f display the argument list.
12147
121482008-10-16 Chong Yidong <cyd@stupidchicken.com>
12149
12150 * fileio.c (Fexpand_file_name): Doc fix.
12151
12152 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12153 of :foreground and :background equivalent to unspecified (20.x
12154 compatibility).
12155
121562008-10-15 Eli Zaretskii <eliz@gnu.org>
12157
12158 * buffer.c (syms_of_buffer): Doc fix.
12159
121602008-10-14 Kenichi Handa <handa@m17n.org>
12161
12162 * font.c (font_clear_prop): When clearing font width, clear the
12163 average width field too.
12164
121652008-10-12 Andreas Schwab <schwab@suse.de>
12166
12167 * ftfont.c (ftfont_shape_by_flt): Make static.
12168 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12169
12170 * font.c: Don't include <m17n-flt.h>.
12171
121722008-10-10 Eli Zaretskii <eliz@gnu.org>
12173
12174 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12175
121762008-10-09 Eli Zaretskii <eliz@gnu.org>
12177
12178 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12179 away code.
12180
121812008-10-09 Chong Yidong <cyd@stupidchicken.com>
12182
12183 * dispnew.c (update_text_area): Avoid looping due to large glyph
12184 overhangs (bug#1070).
12185
121862008-10-09 Kenichi Handa <handa@m17n.org>
12187
12188 * fontset.c (face_for_char): If face->fontset is negative, just
12189 return ascii_face.
12190
f5385255
SM
12191 * font.c (font_delete_unmatched): Fix previous change.
12192 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12193
121942008-10-09 Martin Rudalics <rudalics@gmx.at>
12195
12196 * frame.c (Fraise_frame): On text-only terminals select frame in
12197 order to make it visible. (Bug#1061)
12198
121992008-10-08 Chong Yidong <cyd@stupidchicken.com>
12200
12201 * fontset.c (fontset_find_font): Check frame validity.
12202
122032008-10-07 Chong Yidong <cyd@stupidchicken.com>
12204
a9b555d3 12205 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12206 (xg_display_close): Allow Emacs to close all displays (bug#985).
12207
122082008-10-06 Andreas Schwab <schwab@suse.de>
12209
f5385255 12210 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12211
122122008-10-06 Chong Yidong <cyd@stupidchicken.com>
12213
f5385255 12214 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12215
a9b555d3 12216 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12217
12218 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12219 during initialization.
12220
122212008-10-04 Eli Zaretskii <eliz@gnu.org>
12222
12223 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12224 whole thing on MSDOS frames as well as on a TTY.
12225
12226 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12227 well as for TTY.
12228 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12229 well as on a TTY.
12230
12231 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12232 as well as for TTY.
12233
12234 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12235
12236 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12237 MSDOS frames as well.
12238
122392008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12240
12241 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12242 correct arguments.
b71ac3dd 12243 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12244
122452008-10-03 Glenn Morris <rgm@gnu.org>
12246
12247 * emacs.c (USAGE1): Add --daemon.
12248
122492008-10-02 Eli Zaretskii <eliz@gnu.org>
12250
12251 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12252 100, so it's in percents as advertised.
12253
122542008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12255
12256 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12257 (ns_output.current_cursor, ns_output.desired_cursor)
12258 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12259 (FRAME_NEW_CURSOR_COLOR): Remove.
12260
12261 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12262 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12263 enumeration (HOLLOW_BOX_CURSOR, etc.).
12264
12265 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12266 (draw_window_cursor): Simplify code.
f5385255
SM
12267 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12268 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12269 updates manually.
a9b555d3
JB
12270 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12271 Use core Emacs cursor types.
aac0c6e3 12272
b8ff72fa 12273 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12274
122752008-10-02 Martin Rudalics <rudalics@gmx.at>
12276
12277 * process.c (Faccept_process_output): Fix doc-string.
12278
122792008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12280
12281 * gmalloc.c (__sbrk): Also define for uClibc.
12282
12283 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12284 for uClibc.
12285
122862008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12287
12288 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12289 styles.
12290 (nsfont_open): Reenable the cache.
12291
122922008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12293
12294 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12295 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12296
122972008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12298
12299 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12300 a suspended terminal.
12301
123022008-09-30 Michael Albinus <michael.albinus@gmx.de>
12303
12304 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12305
123062008-09-30 Eli Zaretskii <eliz@gnu.org>
12307
12308 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12309
123102008-09-30 Chong Yidong <cyd@stupidchicken.com>
12311
12312 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12313 in a continued line coincides with a line beginning.
12314
123152008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12316
12317 * nsfont.m (nsfont_trait_distance): Fix bug.
12318 (nsfont_list): Return a list rather than a vector (syncs with Handa
12319 changes of 2008-05-14).
12320 (nsfont_open): Improve logging.
12321
123222008-09-29 Andreas Schwab <schwab@suse.de>
12323
12324 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12325
123262008-09-28 Martin Rudalics <rudalics@gmx.at>
12327
12328 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12329 name as char-resolve-modifiers.
12330 Reported by: Markus Triska <markus.triska@gmx.at>
12331
123322008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12333
12334 * dispnew.c (init_display): Return earlier when running as a daemon.
12335
123362008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12337
12338 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12339
123402008-09-27 Eli Zaretskii <eliz@gnu.org>
12341
12342 * composite.c (Fcomposition_get_gstring)
12343 (Fcompose_region_internal, Fcompose_string_internal)
12344 (Ffind_composition_internal): Doc fix.
12345 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12346 (syms_of_composite) <auto-composition-function>: Doc fix.
12347 (syms_of_composite) <composition-function-table>: Doc fix.
12348
123492008-09-25 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * search.c (wordify): New argument for lax word-ends.
12352 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12353
123542008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12355
12356 * lisp.h (is_daemon): Declare.
12357 * dispnew.c (init_display): Do not try to initialize the terminal
12358 when running as a daemon.
12359
123602008-09-22 Chong Yidong <cyd@stupidchicken.com>
12361
12362 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12363 x_display_pixel_height.
12364
123652008-09-22 Martin Rudalics <rudalics@gmx.at>
12366
12367 * undo.c (record_point): Don't call Fundo_boundary for first
12368 change. (Bug#731)
12369
123702008-09-22 Juanma Barranquero <lekktu@gmail.com>
12371
12372 * emacs.c (Fdaemonp): Doc fix.
12373
123742008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12375
12376 * emacs.c (main): Place #ifdef in the proper place.
12377
123782008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12379
12380 * emacs.c (standard_args): Add --daemon.
12381 (main): Disconnect from the terminal when --daemon is passed.
12382 (is_daemon): New variable.
12383 (Fdaemonp): New function.
12384 (syms_of_emacs): Defsubr it.
12385
123862008-09-20 Chong Yidong <cyd@stupidchicken.com>
12387
12388 * xdisp.c (get_next_display_element): Handle string display
12389 correctly when checking for the end of a box run.
12390
123912008-09-20 Glenn Morris <rgm@gnu.org>
12392
12393 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12394 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12395 (Frename_file): Avoid copying to trash if a rename involves
12396 a delete. (Bug#964).
12397
123982008-09-20 Eli Zaretskii <eliz@gnu.org>
12399
12400 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12401 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12402 frames as well as termcap frames.
12403 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12404 get_named_tty.
12405
124062008-09-19 Eli Zaretskii <eliz@gnu.org>
12407
12408 * process.c (procfs_system_process_attributes): Fix cmdline in
12409 case /proc/PID/cmdline is empty.
12410
12411 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12412 x_display_pixel_height.
12413
124142008-09-19 Juanma Barranquero <lekktu@gmail.com>
12415
12416 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12417
12418 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12419 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12420
124212008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12422
12423 * dispextern.h (struct it): Move line_wrap away from the middle of
12424 bitfields. Move voffset in struct iterator_stack_entry after the
12425 bitfields. Move tab_width near after another short.
12426
124272008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12428
12429 * frame.h (struct frame): Move alpha from the middle of bitfields.
12430
12431 * window.h (struct window): Move frozen_window_start_p after the
12432 rest of the bitfields to reduce padding.
12433
124342008-09-18 Chong Yidong <cyd@stupidchicken.com>
12435
12436 * xterm.h (x_display_info): Remove `height' and `width' members.
12437
12438 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12439
12440 * w32term.h (w32_display_info): Remove `height', `width',
12441 `height_in', and `width_in' members.
12442
b8ff72fa
SM
12443 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12444 New functions.
aac0c6e3
MR
12445 (x_calc_absolute_position): Use them.
12446 (x_term_init): Omit removed `height' and `width' members.
12447
b8ff72fa
SM
12448 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12449 New functions.
aac0c6e3
MR
12450 (w32_read_socket, x_calc_absolute_position): Use them.
12451 (w32_initialize_display_info, w32_term_init): Omit removed members
12452 of w32_display_info.
12453
b8ff72fa
SM
12454 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12455 New functions.
12456 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12457
b8ff72fa
SM
12458 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12459 New functions.
aac0c6e3
MR
12460 (x_calc_absolute_position): Use them.
12461 (x_term_init): Omit removed `height' and `width' members.
12462
12463 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12464 (compute_tip_xy):
12465 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12466 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12467 x_display_pixel_width.
12468
124692008-09-18 Kenichi Handa <handa@m17n.org>
12470
12471 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12472 (composition_compute_stop_pos): Fix handling of static composition.
12473 (Fcomposition_get_gstring): Check FROM and TO at first.
12474
124752008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12476
46e722a9 12477 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12478 mixup (YAILOM).
12479
124802008-09-17 Chong Yidong <cyd@stupidchicken.com>
12481
12482 * indent.c (Fvertical_motion): Use position reported by iterator
12483 instead of PT for determining screen motion (bug#943).
12484
124852008-09-17 Romain Francoise <romain@orebokech.com>
12486
12487 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12488
124892008-09-17 Kenichi Handa <handa@m17n.org>
12490
12491 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12492
12493 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12494 if necessary.
12495
124962008-09-16 Kenichi Handa <handa@m17n.org>
12497
12498 * coding.c (make_conversion_work_buffer): Avoid calling
12499 Fget_buffer_create if it is not necessary.
12500
125012008-09-15 Martin Rudalics <rudalics@gmx.at>
12502
12503 * window.c (Fselect_window): Don't update window_select_count and
12504 use_time when norecord is not nil.
12505
125062008-09-14 Kenichi Handa <handa@m17n.org>
12507
12508 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12509 specpdl_ptr.
12510
125112008-09-12 Kenichi Handa <handa@m17n.org>
12512
12513 * indent.c (scan_for_column): Don't handle automatic composition
12514 if the current buffer is not associated with a window.
12515
12516 * composite.c (composition_reseat_it): If the current buffer is
12517 not associated with a window, ignore the automatic composition.
12518 (find_automatic_composition): Likewise.
12519
125202008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12521
12522 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12523 (Fgpm_mouse_stop): Use it.
12524 * termhooks.h (close_gpm): Declare.
12525 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12526 connection if Gpm_GetEvent fails.
12527
12528 * window.c (set_window_buffer): Always preserve current-buffer.
12529
125302008-09-12 Glenn Morris <rgm@gnu.org>
12531
12532 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12533
125342008-09-11 Glenn Morris <rgm@gnu.org>
12535
12536 * charset.c (charset-map-path): Doc fix.
12537
125382008-09-10 Kenichi Handa <handa@m17n.org>
12539
12540 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12541
12542 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12543 compose a grapheme cluster with the preceding base glyph.
12544
12545 * composite.c (composition_compute_stop_pos): Fix previous change.
12546 Reset cmp_it->id to -1 at first.
12547
125482008-09-10 Glenn Morris <rgm@gnu.org>
12549
12550 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12551
125522008-09-09 Chong Yidong <cyd@stupidchicken.com>
12553
12554 * keyboard.c (read_key_sequence): Reapply translation maps when
12555 switching keyboards.
12556
125572008-09-09 Kenichi Handa <handa@m17n.org>
12558
12559 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12560 characters.
12561
12562 * composite.c (FORWARD_CHAR): Fix calculation
12563 of (POSITION).pos_byte.
12564 (composition_compute_stop_pos): Limit the search of composition to
12565 at most 500 characters ahead. If we reach the limit or find a
12566 newline, set cmp_it->ch to -2 and return 0.
12567 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12568
125692008-09-08 Kenichi Handa <handa@m17n.org>
12570
12571 * indent.c (Fvertical_motion): Be sure to set
12572 it_overshoot_expected if it.cmp_it.id is non-negative.
12573
125742008-09-07 Andreas Schwab <schwab@suse.de>
12575
12576 * callproc.c (Fcall_process): Don't hold references to string data
12577 across garbage collection. Move initialisation of new_argv down
12578 to avoid compiler bug.
12579
125802008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12581
12582 * process.c (Fsystem_process_attributes): Doc fix.
12583
125842008-09-07 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * callproc.c (Fcall_process): Canonicalize current directory name.
12587
12588 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12589 iterator advances to the next line if the current line ends in a
12590 continued tab.
12591
125922008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12593
12594 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12595 member to point to cmp_from.
12596
12597 * xdisp.c: Doc fix for references to gidx data member.
12598
125992008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12600
12601 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12602
126032008-09-07 Kenichi Handa <handa@m17n.org>
12604
12605 * composite.c (FORWARD_CHAR): Check STOP after
12606 incrementing (POSITION).pos.
12607
126082008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12609
12610 * process.c (Fsystem_process_attributes): Doc fix.
12611
126122008-09-06 Chong Yidong <cyd@stupidchicken.com>
12613
12614 * keyboard.c (Ftop_level): Doc fix.
12615
126162008-09-06 Eli Zaretskii <eliz@gnu.org>
12617
12618 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12619 minibuffer, don't let lower part of menu invade the echo area.
12620
12621 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12622 "char *q" to access menu text and advance through it. Revert the
12623 change that displayed ">" instead of ASCII character 0x10.
12624
126252008-09-05 Eli Zaretskii <eliz@gnu.org>
12626
12627 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12628 toggle boxes and radio buttons on MS-DOS as well.
12629
126302008-09-05 Kenichi Handa <handa@m17n.org>
12631
12632 * composite.c (autocmp_chars): Check lookback count.
12633 (composition_compute_stop_pos): Set cmp_it->lookback.
12634 (composition_reseat_it): Check lookback count.
12635 (struct position_record): New struct.
12636 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12637 (find_automatic_composition): New function.
12638 (composition_adjust_point): Use find_automatic_composition.
12639
12640 * dispextern.h (struct composition_it): New member lookback.
12641
126422008-09-02 Chong Yidong <cyd@stupidchicken.com>
12643
12644 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12645 if moving by a single line.
12646
126472008-09-02 Andreas Schwab <schwab@suse.de>
12648
12649 * xterm.c (x_delete_display): Fix merge error.
12650
12651 * fileio.c (Fexpand_file_name): Remove unused variables.
12652
126532008-09-02 Eli Zaretskii <eliz@gnu.org>
12654
12655 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12656 storage on all platforms, not just on DOS_NT.
12657
126582008-09-02 Jason Rumney <jasonr@gnu.org>
12659
b8ff72fa
SM
12660 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12661 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12662
126632008-09-01 Chong Yidong <cyd@stupidchicken.com>
12664
12665 * xfaces.c (Finternal_set_alternative_font_family_alist)
12666 (Finternal_set_alternative_font_registry_alist): Properly copy
12667 entire alist structure.
12668
126692008-09-01 Kenichi Handa <handa@m17n.org>
12670
d66c0241 12671 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12672 representative chars of the script is a vector.
d66c0241
JB
12673 (ftfont_list): Handle the case where the representative chars of
12674 the script is a vector.
aac0c6e3
MR
12675
12676 * character.c (syms_of_character): Docstring of
12677 script-representative-chars fixed.
12678
126792008-08-31 Eli Zaretskii <eliz@gnu.org>
12680
12681 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12682 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12683 the menu. Allocate larger buffer for `text', to account for
12684 possible ^C characters.
12685
126862008-08-31 Martin Rudalics <rudalics@gmx.at>
12687
12688 * xdisp.c (prepare_menu_bars): Don't call
12689 Vwindow_size_change_functions with arg Qt.
12690
126912008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12692
12693 * font.h (font_range):
12694 * fileio.c (report_file_error):
46e722a9
SM
12695 * composite.c (composition_update_it): Yet another int/Lisp_Object
12696 mixup (YAILOM).
aac0c6e3
MR
12697
126982008-08-30 Glenn Morris <rgm@gnu.org>
12699
12700 * data.c (Fmake_variable_frame_local): Doc fix.
12701
12702 * frame.c (Fmodify_frame_parameters): Doc fix.
12703
127042008-08-30 Eli Zaretskii <eliz@gnu.org>
12705
12706 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12707 needed by GetTokenInformation.
12708 (w32_system_process_attributes): Check return values of all system
12709 APIs.
12710
12711 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12712 only when the state changes.
12713 (IT_update_begin, IT_update_end): Add termscript trace.
12714
12715 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12716 clipboard is unavailable. Set dst to NULL if it doesn't point to
12717 malloc'ed data.
12718 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12719 passing random values to xfree.
12720
12721 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12722 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12723
127242008-08-29 Jason Rumney <jasonr@gnu.org>
12725
12726 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12727
127282008-08-29 Eli Zaretskii <eliz@gnu.org>
12729
12730 * composite.c (fill_gstring_body): Avoid compiler warnings.
12731
12732 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12733 LGLYPH_SET_CODE to avoid compiler warnings.
12734
2ae37cf0 12735 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12736
12737 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12738
12739 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12740 LGLYPH_SET_CODE.
12741
127422008-08-29 Kenichi Handa <handa@m17n.org>
12743
12744 * fileio.c (report_file_error): Don't downcase the first character
12745 of errstring if it is still unibyte.
12746
127472008-08-29 Kenichi Handa <handa@m17n.org>
12748
12749 These changes are to re-implement the automatic composition so
12750 that it doesn't use text properties.
12751
12752 * Makefile.in (ftfont.o): Depend on composite.h.
12753 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12754
12755 * character.h (Vunicode_category_table): Extern it.
12756
12757 * character.c (Vunicode_category_table): New variable.
12758 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12759
12760 * chartab.c (optimize_sub_char_table): Perform more greedy
12761 optimization.
12762
b8ff72fa
SM
12763 * composite.h (enum composition_method):
12764 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12765 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12766 (Vcomposition_function_table): Extern it.
12767 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12768 (composition_gstring_put_cache, composition_gstring_from_id)
12769 (composition_gstring_p, composition_gstring_width)
12770 (composition_compute_stop_pos, composition_reseat_it)
12771 (composition_update_it, composition_adjust_point): Extern them.
12772 (Fcomposition_get_gstring): EXFUN it.
12773
d66c0241 12774 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12775 (Vcomposition_function_table)
12776 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12777 (gstring_hash_table, gstring_work, gstring_work_headers):
12778 New variables.
aac0c6e3
MR
12779 (gstring_lookup_cache, composition_gstring_put_cache)
12780 (composition_gstring_from_id, composition_gstring_p)
12781 (composition_gstring_width, fill_gstring_header)
12782 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12783 (composition_reseat_it, composition_update_it)
b8ff72fa 12784 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12785 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12786 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12787 Defsubr composition_get_gstring.
aac0c6e3
MR
12788
12789 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12790 cmp_id.
12791 (struct glyph_string): Delete the member gidx. New members
12792 cmp_id, cmp_from, and cmp_to.
12793 (enum it_method): Delete GET_FROM_COMPOSITION.
12794 (struct composition_it): New struct.
12795 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12796 Delete c, len, cmp_id, cmp_len in u.comp.
12797
12798 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12799 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12800 (enum lglyph_indices): Likewise.
b8ff72fa 12801 (font_range): Adjust extern.
aac0c6e3
MR
12802 (font_fill_lglyph_metrics): Extern it.
12803
12804 * font.c (QCf): New variable.
12805 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12806 (font_prepare_composition): Delete this function.
12807 (font_range): Type and arguments changed.
12808 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12809 (font_fill_lglyph_metrics): New function.
b8ff72fa 12810 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12811 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12812 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12813 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12814
12815 * fontset.h (font_for_char): Extern it.
12816
12817 * fontset.c (font_for_char): New function.
12818
12819 * ftfont.c: Include composite.h.
12820 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12821 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12822
12823 * indent.c: Include composite.h and dispextern.h.
12824 (check_composition): Delete this function.
12825 (scan_for_column): Handle composition by
12826 composition_compute_stop_pos, composition_reseat_it, and
12827 composition_update_it.
12828 (compute_motion): Likewise.
12829 (Fvertical_motion): Fix checking of composition.
12830
12831 * keyboard.c (adjust_point_for_property): Check composition by
12832 composition_adjust_point.
12833
b8ff72fa 12834 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12835 struct glyph_string.
12836
b8ff72fa
SM
12837 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12838 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12839 struct glyph.
12840 (produce_composite_glyph): Likewise.
12841
b8ff72fa
SM
12842 * w32term.c (x_draw_composite_glyph_string_foreground):
12843 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12844 (x_draw_glyph_string): Likewise.
12845
12846 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12847 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12848
12849 * xdisp.c: Include font.h.
12850 (it_props): Delete the entry for Qauto_composed.
12851 (init_iterator): Initialize it->cmp_it.id to -1.
12852 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12853 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12854 (handle_auto_composed_prop): Delete it.
12855 (handle_composition_prop): Handle only static composition.
12856 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12857 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12858 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12859 (pop_it): Likewise.
12860 (get_next_element): Delete next_element_from_composition.
12861 (CHAR_COMPOSED_P): New macro.
12862 (get_next_display_element): For automatic composition, get a face
12863 from the font in the glyph-string.
12864 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12865 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12866 (next_element_from_string): Check if the character at the current
12867 position is composed by CHAR_COMPOSED_P.
12868 (next_element_from_buffer): Likewise.
d66c0241
JB
12869 (next_element_from_composition): Adjust for the change of struct it.
12870 Update it->cmp_it.
b8ff72fa
SM
12871 (dump_glyph): Adjust for the change of struct glyph.
12872 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12873 it and struct glyph. Don't handle automatic composition here.
12874 (fill_gstring_glyph_string): New function.
12875 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12876 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12877 (BUILD_GSTRING_GLYPH_STRING): New macro.
12878 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12879 automatic composition.
b8ff72fa 12880 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12881 struct glyph.
b8ff72fa 12882 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12883
b8ff72fa 12884 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12885 the change of struct glyph_string.
12886 (x_draw_glyph_string): Likewise.
12887
128882008-08-29 Glenn Morris <rgm@gnu.org>
12889
12890 * buffer.c (word-wrap): Doc fix.
12891 * xdisp.c (truncate-partial-width-windows): Doc fix.
12892 Increase default to 50.
12893
128942008-08-29 Chong Yidong <cyd@stupidchicken.com>
12895
12896 * xdisp.c (update_tool_bar_unwind): New function.
12897 (update_tool_bar): Temporarily set selected frame before building
12898 tool-bar items.
12899
129002008-08-28 Michael Albinus <michael.albinus@gmx.de>
12901
12902 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12903 snprintf, respectively.
12904 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12905
129062008-08-28 Chong Yidong <cyd@stupidchicken.com>
12907
12908 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12909 LDFLAGS to GNUstep CC invocation.
12910
129112008-08-27 Chong Yidong <cyd@stupidchicken.com>
12912
12913 * indent.c (Fvertical_motion): Revert last change. Handle the
12914 general case where we are moving forward, and PT spans multiple
12915 screen lines.
12916
12917 * eval.c (find_handler_clause): Temporarily increase
12918 max-lisp-eval-depth while printing the backtrace buffer, to
12919 guarantee that help-mode code can run.
12920
129212008-08-27 Eli Zaretskii <eliz@gnu.org>
12922
12923 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12924 colors under -rv.
12925 (IT_set_frame_parameters): Don't swap foreground and background
12926 colors if `(reverse . t)' is present in the frame properties.
12927 (internal_terminal_init): Call init_frame_faces only for the
12928 initial frame.
12929
129302008-08-27 Andreas Schwab <schwab@suse.de>
12931
12932 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12933
129342008-08-27 Andreas Schwab <schwab@suse.de>
12935
12936 * search.c (search_buffer): Set char_base to zero only at the end.
12937
129382008-08-27 Kenichi Handa <handa@m17n.org>
12939
b8ff72fa 12940 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12941
129422008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12943
12944 * xterm.c (x_term_init): Temporarily hide the partially
12945 initialized terminal while calling vendor-specific-keysyms.
12946
129472008-08-26 Eli Zaretskii <eliz@gnu.org>
12948
12949 * msdos.c (internal_terminal_init): Most initializations done only
12950 once, especially initial_screen_colors[] and termscript open.
12951
129522008-08-26 Chong Yidong <cyd@stupidchicken.com>
12953
12954 * eval.c (Fcondition_case): Doc fix.
12955
12956 * widgetprv.h (EmacsFramePart): Change font member to the new font
12957 struct.
12958
12959 * widget.c: Include character.h and font.h for XSETFONT.
12960 (setup_frame_gcs): Compute X font id from font struct, just once.
12961
129622008-08-26 Eli Zaretskii <eliz@gnu.org>
12963
12964 * term.c (get_named_tty): Fix last change.
12965
129662008-08-26 Chong Yidong <cyd@stupidchicken.com>
12967
12968 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12969 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12970
129712008-08-25 Eli Zaretskii <eliz@gnu.org>
12972
12973 * frame.c (do_switch_frame): Mark previously displayed frame as
12974 obscured for FRAME_MSDOS_P frames as well.
12975
129762008-08-24 Eli Zaretskii <eliz@gnu.org>
12977
12978 * frame.c (make_terminal_frame): Initialize f->terminal,
12979 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12980 Set the top frame to newly created frame.
12981 (Fmake_terminal_frame): Reuse the_only_display_info.
12982
12983 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12984 estimating available memory.
12985
b97439ce 129862008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12987
12988 * nsterm.m (ns_draw_window_cursor): Don't call
12989 NSDisableScreenUpdates and NSEnableScreenUpdates on
12990 non-NS_IMPL_COCOA systems.
12991
129922008-08-23 Andreas Schwab <schwab@suse.de>
12993
12994 * process.c (procfs_system_process_attributes): Fix use of
12995 uninitialized variables.
12996
129972008-08-23 Eli Zaretskii <eliz@gnu.org>
12998
12999 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13000
13001 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13002 calling tty-set-up-initial-frame-faces.
13003
b8ff72fa
SM
13004 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13005 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13006
13007 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13008 addition to output_termcap.
13009
13010 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13011
13012 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13013 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13014 highlight.
13015
13016 * process.c [!subprocesses]: Define QCname.
13017 (syms_of_process): Intern and staticpro it.
13018
13019 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13020 Adjust for changes in encoding/decoding routines.
13021 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13022 encode_coding and decode_coding.
13023
b8ff72fa 13024 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13025
13026 * dosfns.c: Include frame.h before termhooks.h.
13027 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13028 variable termscript.
13029
13030 * s/msdos.h (USER_FULL_NAME): Define.
13031 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13032
13033 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13034 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13035 pw->pw_gecos.
13036
13037 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13038 SELECTED_FRAME as additional (1st) argument.
13039 (tty_read_avail_input): Handle output_msdos_raw in
13040 addition to output_termcap.
13041
13042 * msdos.c: Include frame.h before termhooks.h.
13043 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13044 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13045 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13046 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13047 (IT_set_terminal_modes, IT_reset_terminal_modes)
13048 (IT_set_frame_parameters): Use tty->termscript instead of a global
13049 variable termscript.
13050 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13051 global variable terminal_coding. Don't refer to
13052 Vnonascii_translation_table.
13053 (internal_terminal_init): Set Vwindow_system in current_kboard.
13054 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13055 Announce date and time of session start, if termscript is open.
13056 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13057 term.c:init_tty). Open termscript only of not already open.
13058 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13059 here instead of dos_ttraw. Don't initialize display if this is an
13060 initial tty. Don't set FRAME_FONT.
13061 (Vwindow_system_version): Bump to 23.
13062 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13063 is available, set up mouse_position_hook.
13064 (dos_ttraw, IT_set_terminal_modes): If called with initial
13065 terminal, do nothing.
13066 (IT_set_frame_parameters): Handle the Qtty_type frame
13067 parameter by calling internal_terminal_init.
13068 (dos_set_window_size, show_mouse_face)
13069 (clear_mouse_face, IT_note_mode_line_highlight)
13070 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13071 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13072 (initialize_msdos_display): New function.
13073 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13074 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13075 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13076 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13077 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13078 (request_sigio, unrequest_sigio): Don't define, now defined on
13079 sysdep.c.
13080 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13081
13082 * term.c [MSDOS]: Include msdos.h.
13083 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13084 conditional to DOS_NT. Allow only one call to this function in a
13085 session. Don't allocate a new struct tty_display_info; instead,
13086 reuse the_only_display_info. Call get_tty_size to get screen
13087 dimensions. Call init_baud_rate to set bad_rate.
13088 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13089 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13090 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13091 (get_tty_terminal, get_named_tty, Ftty_type)
13092 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13093 output_termcap.
b8ff72fa
SM
13094 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13095 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13096 only when subprocesses are supported.
aac0c6e3
MR
13097
13098 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13099 f->output_data.x.
13100 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13101 terminal devices.
13102
5582fbc7 13103 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13104 x_output.
13105 (FRAME_FONT): Use output_data.tty.
13106 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13107 (struct x_display_info): Rename from display_info. Update all users in
13108 msdos.c.
aac0c6e3 13109 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13110 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13111 (dos_ttraw): Update prototype.
13112
13113 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13114 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13115
131162008-08-23 Jason Rumney <jasonr@gnu.org>
13117
13118 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13119 (fn_TIFFSetDirectory): New library function used.
13120 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13121 (tiff_load): Use :index to select among multiple images. Set count
13122 property when multiple images exist.
13123 (gif_format): Use :index, not :image.
13124
131252008-08-23 Chong Yidong <cyd@stupidchicken.com>
13126
13127 * xdisp.c (try_scrolling): Check INT_MAX instead of
13128 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13129 to obtain INT_MAX.
13130
131312008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13132
13133 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13134
131352008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13136
13137 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13138 GNUstep library location.
13139
131402008-08-21 Chong Yidong <cyd@stupidchicken.com>
13141
13142 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13143 before using it.
13144
13145 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13146
131472008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13148
13149 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13150 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13151 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13152 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13153 (EmacsApp-cursor_blink_handler): Remove declaration.
13154 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13155 match 01 Feb 2008 changes in xterm.c.
13156 (ns_read_socket): Add cast to avoid warning.
13157 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13158 GNUstep.
13159
131602008-08-20 Chong Yidong <cyd@stupidchicken.com>
13161
13162 * xselect.c (x_get_foreign_selection): Return nil if desired
13163 selection could not be obtained, instead of signalling an error.
13164
131652008-08-20 David Reitter <david.reitter@gmail.com>
13166
13167 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13168 * nsterm.m: Remove ns-specific code for cursor blinking.
13169 (ns_draw_window_cursor): Clear cursor properly rather than
13170 redrawing the area. Respect width of bar cursors.
13171 These changes enable the use of generic blink-cursor-mode and
13172 generic cursor types in NS and support smooth cursor movements (do
13173 not blink off after command).
13174 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13175 Nextstep, too.
13176
131772008-08-19 Kenichi Handa <handa@m17n.org>
13178
13179 * font.c (Vfont_log_deferred): New variable.
13180 (font_add_log): Check Vfont_log_deferred.
13181 (font_deferred_log): New function.
13182
13183 * font.h (font_deferred_log): Extern it.
13184
13185 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13186 for sorting.
13187 (face_for_char): Use deferred log.
13188
131892008-08-18 Kenichi Handa <handa@m17n.org>
13190
13191 * fontset.c (face_for_char): Add font log.
13192
13193 * font.c (font_add_log): Add the font properties :script, :lang,
13194 and :otf in the log.
13195
131962008-08-17 Chong Yidong <cyd@stupidchicken.com>
13197
13198 * xdisp.c: Remove dead code.
13199 (handle_invisible_prop, next_overlay_string): Defer call to
13200 setup_for_ellipsis.
13201 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13202
132032008-08-15 Chong Yidong <cyd@stupidchicken.com>
13204
13205 * xfaces.c (lookup_derived_face): Properly handle possible zero
13206 return value of get_lface_attributes.
13207 (merge_faces): Don't tell lookup_derived_face to signal an error
13208 if face is not found.
13209
13210 * dired.c (Fdirectory_files): Doc fix.
13211
13212 * process.c (make_process): Initialize kill_without_query struct
13213 member.
13214
132152008-08-15 Eli Zaretskii <eliz@gnu.org>
13216
13217 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13218 Alternative calculation of totphys for Visual Studio 6.
13219
13220 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13221
13222 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13223 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13224 All users changed.
13225 (stat): Only root directory passed to GetDriveType. Allow RAM
13226 disk as well as local fixed disk when w32-get-true-file-attributes
13227 is set to `local'.
13228 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13229 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13230 (w32_cached_id, w32_add_to_cache): New functions.
13231 (get_name_and_id): Look account names in the cache before calling
13232 lookup_account_sid.
13233 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13234 New initialization flags.
13235 (globals_of_w32): Initialize them to zero.
13236 (w32_system_process_attributes): Use w32_cached_id and
13237 w32_add_to_cache.
13238
132392008-08-14 Lawrence Mitchell <wence@gmx.li>
13240
13241 * lread.c (Fread_char, Fread_char_exclusive): If no character
13242 event is read before timeout is reached, return nil, rather than
13243 converting to a number.
13244
132452008-08-14 Chong Yidong <cyd@stupidchicken.com>
13246
13247 * fns.c (use_dialog_box): Doc fix.
13248
13249 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13250 on OS X.
13251
132522008-08-13 Chong Yidong <cyd@stupidchicken.com>
13253
13254 * frame.c (Qns_parse_geometry): New var.
13255 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13256
132572008-08-11 Chong Yidong <cyd@stupidchicken.com>
13258
13259 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13260 space character in calculating tabs.
13261
132622008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13263
13264 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13265
132662008-08-10 Glenn Morris <rgm@gnu.org>
13267
13268 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13269 silence gcc "limited range of data type" warnings in some
13270 make_fixnum_or_float calls.
13271
132722008-08-09 Eli Zaretskii <eliz@gnu.org>
13273
13274 * w32.c (w32_system_process_attributes): If the process does not
13275 exist, return nil.
13276
13277 * w32.c: Include thelp32.h, psapi.h and coding.h.
13278 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13279 declarations.
13280 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13281 (Process32Next_Proc): New typedefs.
13282 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13283 (g_b_init_process32_next, g_b_init_open_thread_token)
13284 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13285 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13286 (g_b_init_get_process_working_set_size)
13287 (g_b_init_global_memory_status_ex): New static variables.
13288 (globals_of_w32): Initialize them.
13289 (create_toolhelp32_snapshot, process32_first, process32_next)
13290 (open_thread_token, impersonate_self, revert_to_self)
13291 (get_process_memory_info, get_process_working_set_size)
13292 (global_memory_status, global_memory_status_ex): New wrapper
13293 functions.
13294 (w32_list_system_processes, w32_system_process_attributes)
13295 (enable_privilege, restore_privilege, ltime, process_times):
13296 New functions.
13297 (convert_time_raw): New function.
13298 (convert_time): Remove conversion of FILETIME into time in 100
13299 nsec units, call convert_time_raw instead.
13300
13301 * process.h (w32_list_system_processes, w32_system_process_attributes):
13302 Add prototypes.
13303 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13304 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13305 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13306 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13307
13308 * process.c (Fsystem_process_attributes): Doc fix.
13309
133102008-08-08 Chong Yidong <cyd@stupidchicken.com>
13311
13312 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13313 a continued multi-char glyph; if so, advance to the actual glyph.
13314
133152008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13316
13317 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13318
13319 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13320 (.m.o): Use it.
13321 * config.in: Regenerate.
13322
133232008-08-07 Chong Yidong <cyd@stupidchicken.com>
13324
13325 * xdisp.c (redisplay_window): Revert last change.
13326 (try_window): Check bottom scroll margin too.
13327
133282008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13329
13330 * config.in: Regenerate.
13331
13332 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13333 -list-load-path-shadows'.
13334 (nsgui.h): Reduce number of things depending on it.
13335
133362008-08-06 Chong Yidong <cyd@stupidchicken.com>
13337
13338 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13339 instead of window-end which does the wrong thing at eob.
13340 (try_cursor_movement): Minor optimization.
13341 (redisplay_window): If scroll margin is defined, don't assume
13342 window doesn't need scrolling.
13343
133442008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13345
13346 * config.in: Regenerate.
13347
13348 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13349 (mostlyclean): Don't delete *.d under NS.
13350
13351 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13352
133532008-08-06 Kenichi Handa <handa@m17n.org>
13354
13355 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13356
133572008-08-06 Andreas Schwab <schwab@suse.de>
13358
13359 * config.in: Regenerate.
13360
133612008-08-05 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13364 forcing a window start.
13365
13366 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13367 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13368
133692008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13370
13371 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13372 argument.
13373
133742008-08-05 Juanma Barranquero <lekktu@gmail.com>
13375
13376 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13377 <scroll-down-aggressively, before-change-functions>:
13378 <after-change-functions>: Reflow docstrings.
13379
133802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13381 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13382
13383 Dock menu customization, based on a patch by Ken Raeburn, plus some
13384 other fixes.
13385 * nsmenu.m (dockMenu): New variable.
13386 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13387
13388 * nsterm.h (dockMenu): Declare.
13389
13390 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13391 (ns_term_init): Initialize dockMenu.
13392 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13393 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13394 left.
13395
13396 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13397
133982008-08-04 Chong Yidong <cyd@stupidchicken.com>
13399
13400 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13401
13402 * config.in: Regenerate.
13403
134042008-08-04 Seiji Zenitani <zenitani@mac.com>
13405
13406 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13407
134082008-08-04 Chong Yidong <cyd@stupidchicken.com>
13409
13410 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13411
134122008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13413
13414 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13415
13416 * keyboard.h: Comment an #endif.
13417
13418 * lisp.h (have_menus_p): Adjust comment.
13419
13420 * menu.c (find_and_return_menu_selection): Fix comparison with
13421 client_data.
13422
13423 * nsmenu.m (popup_activated_flag): New variable.
13424 (popup_activated): New function.
13425 (menu-or-popup-active-p): New exported lisp definition.
13426 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13427 when popup done.
13428 (ns_popup_dialog): Set popup_activated_flag.
13429
13430 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13431 version for GNUstep (handled by conditional typedef in nsterm.m).
13432 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13433 in rgb.txt).
13434
13435 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13436
13437 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13438
13439 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13440
13441 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13442 shortcircuit if popup_activated like GTK and X toolkit.
13443
13444 * m/inter386.h: Change DARWIN to DARWIN_OS.
13445
13446 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13447 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13448 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13449 comment on NO_SOCK_SIGIO.
13450
134512008-08-03 Chong Yidong <cyd@stupidchicken.com>
13452
13453 * nsterm.m (windowDidResize): Remove stopModal call.
13454
134552008-08-03 Andreas Schwab <schwab@suse.de>
13456
13457 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13458 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13459
134602008-08-02 Chong Yidong <cyd@stupidchicken.com>
13461
13462 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13463 Don't use uninitialized pointer variable when using getrlimit.
13464
134652008-08-02 Jason Rumney <jasonr@gnu.org>
13466
13467 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13468
134692008-08-02 Eli Zaretskii <eliz@gnu.org>
13470
13471 * alloc.c (NSTATICS): Bump to 0x640.
13472
13473 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13474
13475 * lisp.h: Add prototype for directory_files_internal.
13476
13477 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13478 New functions.
13479 (syms_of_process): Defsubr them. Add initializations for various
13480 Q* symbols used in procfs_system_process_attributes.
13481 (procfs_list_system_processes, procfs_system_process_attributes)
13482 [HAVE_PROCFS]: New functions.
13483 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13484 (procfs_get_total_memory): New functions.
13485
134862008-08-01 Juanma Barranquero <lekktu@gmail.com>
13487
13488 * xfaces.c (Fx_load_color_file): Fix previous change;
13489 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13490
134912008-08-01 Michael Albinus <michael.albinus@gmx.de>
13492
13493 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13494
134952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13496
13497 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13498
134992008-08-01 Chong Yidong <cyd@stupidchicken.com>
13500
13501 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13502
13503 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13504 define NSApplicationDelegateReplySuccess.
13505 (EmacsView -converstationIdentifier): Use long instead of
13506 NSInteger for GNUstep, since it doesn't have NSInteger.
13507
13508 * xmenu.c: Revert last change.
13509
13510 * keyboard.h: Fix last change.
13511
135122008-08-01 Juanma Barranquero <lekktu@gmail.com>
13513
13514 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13515 on Windows.
13516
135172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13518
13519 Warning clearing and clean-up in NS port.
13520 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13521 Add prototypes.
13522 * nsgui.h (FACE_DEFAULT): Remove, unused.
13523 (XGCValues): Change colors to unsigned long.
13524 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13525 nsterm.m.
13526 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13527 (ns_list_fonts): Remove, unused.
13528 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13529 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13530 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13531 (nsfont_draw): Compare face colors to 0, not nil.
13532 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13533 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13534 (-addSubmenuWithTitle:): Use NSMenuItem class.
13535 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13536 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13537 (ns_clip_to_row): Make gc arg a BOOL.
13538 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13539 ns_clip_to_row() call.
13540 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13541 used). Cast FRAME_FONT assignments.
13542 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13543 (ns_string_to_lispmod): Change arg to const char.
13544 (ns_term_init): Use NSMenuItem class.
13545 (EmacsApp -openFile:): Move to different section of file.
13546 (EmacsApp -application:openFiles:): Don't return a value, call
13547 -replyToOpenOrPrint:.
13548 (EmacsView -keyDown:): Fix up cast.
13549 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13550 (EmacsView -menuDown:): Cast tag in call to
13551 find_and_call_menu_selection().
13552 (ns_list_fonts): Remove, unused.
13553 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13554 (ns_fontname_to_xlfd): Make static.
13555 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13556 Remove prototypes (now in keyboard.h).
13557 (next_menubar_widget_id): Remove, unused.
13558 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13559 Remove prototypes (now in keyboard.h).
13560 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13561
135622008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13563
13564 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13565 (floatfns.o): Depend on syssignal.h.
13566 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13567
13568 * systty.h: Fix previous change that removed BSD_TERMIOS.
13569 Add comments to #ifdefs.
13570
135712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13572
13573 * w32fns.c (w32-load-color-file): Remove.
13574 (x-open-connection): Use renamed Fx_load_color_file.
13575 * xfaces.c (x-load-color-file): Add.
13576 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13577 Emacs.clr.
13578 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13579
135802008-07-31 Michael Albinus <michael.albinus@gmx.de>
13581
13582 * dbusbind.c (Fdbus_call_method_asynchronously)
13583 (Fdbus_method_error_internal): New defuns.
13584 (xd_read_message): Handle also reply messages.
13585 (Vdbus_registered_functions_table): Extend docstring.
13586
135872008-07-31 Juanma Barranquero <lekktu@gmail.com>
13588
13589 * keyboard.c (gobble_input): Fix previous change.
13590
135912008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13592
13593 * bitmaps/README:
13594 * xfns.c:
13595 * termcap.c:
13596 * term.c:
13597 * syswait.h:
13598 * systty.h:
13599 * systime.h:
13600 * syssignal.h:
13601 * sysdep.c:
13602 * process.h:
13603 * process.c:
13604 * print.c:
13605 * ndir.h:
13606 * lread.c:
13607 * keyboard.c:
13608 * getpagesize.h:
13609 * floatfns.c:
13610 * fileio.c:
13611 * emacs.c:
13612 * doc.c:
13613 * dispnew.c:
13614 * dired.c:
13615 * data.c:
13616 * callproc.c:
13617 * buffer.c:
13618 * README:
13619 * Makefile.in:
13620 * s/template.h:
13621 * s/msdos.h:
13622 * m/vax.h: Remove VMS support.
13623 * s/vms.h:
13624 * vlimit.h:
13625 * uaf.h:
13626 * temacs.opt:
13627 * param.h:
13628 * ioctl.h: Remove file.
13629
136302008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13631
13632 * s/ms-w32.h (MULTI_KBOARD): Remove.
13633 * xterm.c:
13634 * xselect.c:
13635 * xfns.c:
13636 * window.c:
13637 * w32term.c:
13638 * w32fns.c:
13639 * terminal.c:
13640 * termhooks.h:
13641 * term.c:
13642 * sysdep.c:
13643 * keyboard.h:
13644 * keyboard.c:
13645 * frame.h:
13646 * frame.c:
13647 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13648 * config.in: Regenerate.
13649
136502008-07-30 Jason Rumney <jasonr@gnu.org>
13651
13652 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13653
13654 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13655 (w32font_open_internal): Get unicode version of textmetrics.
13656 Don't enable or disable glyph indices here.
13657 (w32font_open): Disable use of glyph indices.
13658
13659 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13660
136612008-07-30 Chong Yidong <cyd@stupidchicken.com>
13662
13663 * minibuf.c (Vread_buffer_function): Doc fix.
13664
136652008-07-30 John Paul Wallington <jpw@pobox.com>
13666
13667 * minibuf.c (read_buffer_completion_ignore_case): New var.
13668 (Fread_buffer): Use it.
13669
136702008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13671
13672 * systty.h (sensemode): Remove empty #if. Remove reference to
13673 BSD_TERMIOS, unused.
13674
13675 * sysdep.c: Remove reference to DGUX.
13676 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13677
13678 * config.in: Regenerate.
13679
136802008-07-30 Jason Rumney <jasonr@gnu.org>
13681
13682 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13683
136842008-07-29 Jason Rumney <jasonr@gnu.org>
13685
13686 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13687 is populated.
13688 (uniscribe_encode_char): Always use uniscribe.
13689 Avoid using context if cache is populated.
13690
136912008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13692
13693 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13694 open menu.
13695
13696 * gtkutil.c (menu_nav_ended): Remove.
13697 (create_menus): Remove signal connect for menu_nav_ended.
13698
136992008-07-28 Chong Yidong <cyd@stupidchicken.com>
13700
13701 * xdisp.c (redisplay_window): Check return value of
13702 compute_window_start_on_continuation_line before forcing a window
13703 start.
13704
137052008-07-28 Jason Rumney <jasonr@gnu.org>
13706
13707 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13708
13709 * w32term.c (w32_enable_unicode_output, cleartype_active):
13710 Remove obsolete display options.
13711 (x_draw_glyph_string_background): Don't use old cleartype_active
13712 workaround.
13713 (w32_initialize): Remove cleartype_active initialization.
13714 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13715
137162008-07-28 Andreas Schwab <schwab@suse.de>
13717
13718 * lisp.h (init_weak_hash_tables, syms_of_font)
13719 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13720 (remove_hash_entry): Don't declare.
13721 * eval.c (maybe_call_debugger): Make static and move before use.
13722 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13723 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13724 * xterm.h (x_set_frame_alpha): Declare.
13725
137262008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13727
13728 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13729 (create_menus): Connect selection-done to menu_nav_ended.
13730
137312008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13732
13733 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13734 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13735 parameter with read of 'alpha' one.
13736 (Qns_frame_parameter): Remove.
5582fbc7 13737 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13738 (next-selection-coding-system, Vselection_coding_system)
13739 (Vnext_selection_coding_system): Drop.
13740
137412008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13742
13743 * nsfns.m (do-applescript, do_applescript): Rename to
13744 ns-do-applescript, ns_do_applescript, and move within file.
13745
137462008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13747
13748 Remove support for Mac Carbon.
13749 * mactoolbox.c:
13750 * macterm.h:
13751 * macterm.c:
13752 * macselect.c:
13753 * macmenu.c:
13754 * macgui.h:
13755 * macfns.c:
13756 * mac.c: Remove file.
13757 * s/darwin.h:
13758 * m/intel386.h:
13759 * xfaces.c:
13760 * xdisp.c:
13761 * window.c:
13762 * tparam.c:
13763 * termhooks.h:
13764 * termcap.c:
13765 * term.c:
13766 * syssignal.h:
13767 * sysselect.h:
13768 * sysdep.c:
13769 * process.c:
13770 * lread.c:
13771 * lisp.h:
13772 * keyboard.c:
13773 * image.c:
13774 * fringe.c:
13775 * frame.h:
13776 * frame.c:
13777 * fontset.c:
13778 * font.h:
13779 * font.c:
13780 * fns.c:
13781 * fileio.c:
13782 * emacs.c:
13783 * dispnew.c:
13784 * dispextern.h:
13785 * config.in:
13786 * atimer.c:
2ae37cf0 13787 * Makefile.in: Remove code for Carbon.
aac0c6e3 13788
f0131492 137892008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13790
13791 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13792
137932008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13794
13795 * macterm.h (kCGBitmapByteOrder32Host): New define for
13796 non-universal SDKs.
13797
13798 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13799 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13800
13801 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13802 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13803
138042008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13805
13806 * w32inevt.c: Include dispextern.h.
13807
138082008-07-26 Andreas Schwab <schwab@suse.de>
13809
13810 * print.c (print_object): Fix off-by-one in last change.
13811
138122008-07-25 Juanma Barranquero <lekktu@gmail.com>
13813
13814 * term.c (syms_of_term): Don't initialize default_orig_pair,
13815 default_set_foreground and default_set_background on Windows.
13816
138172008-07-25 Jason Rumney <jasonr@gnu.org>
13818
13819 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13820 ScriptItemize. Clean up return value checking. Remove unused
13821 variables.
13822 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13823 shaping engine.
13824
13825 * w32font.c (w32font_has_char): Handle the case where we can't
13826 determine the script for a character.
13827
138282008-07-25 Chong Yidong <cyd@stupidchicken.com>
13829
13830 * term.c (syms_of_term): Initialize default_orig_pair,
13831 default_set_foreground, and default_set_background.
13832
13833 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13834 clash (bug#86).
13835 (getloadavg): Callers changed.
13836
13837 * image.c (svg_load_image): Fix last change.
13838 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13839 image size is valid. Use g_object_unref instead of deprecated
13840 rsvg_handle_free to free rsvg handle.
13841 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13842
138432008-07-25 Jason Rumney <jasonr@gnu.org>
13844
13845 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13846 surrogates before looking up glyph index.
13847 (w32font_text_extents): Encode as surrogates if falling back to
13848 functions that need UTF-16 wide chars.
13849
13850 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13851 BMP as surrogates before looking up glyph index.
13852
138532008-07-25 Chong Yidong <cyd@stupidchicken.com>
13854
13855 * image.c (svg_load_image): Check for failure in return value of
13856 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13857
138582008-07-25 Jason Rumney <jasonr@gnu.org>
13859
13860 * w32font.c (Fx_select_font): Reverse sense of second arg.
13861
138622008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13863
13864 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13865 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13866
13867 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13868 (PURESIZE): Use it.
13869
138702008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13871
13872 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13873 * m/alpha.h (TEXT_END):
13874 * m/ibmrs6000.h (TEXT_END):
13875 * m/macppc.h (TEXT_END):
13876 * s/darwin.h (TEXT_END):
13877 * s/msdos.h (TEXT_END): Remove, unused.
13878 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13879 * s/cygwin.h: Remove comment.
13880
13881 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13882 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13883 * m/intel386.h (DOT_GLOBAL_START):
13884 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13885 (USG): Remove, file not used on USG platforms.
13886
13887 * Makefile.in (HAVE_X11): Remove empty #else.
13888
138892008-07-24 Andreas Schwab <schwab@suse.de>
13890
13891 * fileio.c (Finsert_file_contents): Properly adjust undo list
13892 after format conversion.
13893
138942008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13895
13896 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13897 (menu_nav_ended): Remove.
13898 (create_menus): Remove signal connect for menu_nav_ended.
13899 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13900 create_menus.
13901 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13902
139032008-07-23 Jason Rumney <jasonr@gnu.org>
13904
13905 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13906 with opened font.
13907 (w32font_open): Set font type to gdi.
13908
13909 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13910
139112008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13912
13913 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13914 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13915 defines it.
13916 * unexec.c (ADDR_CORRECT): Define unconditionally.
13917
13918 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13919
13920 * unexec.c: Remove code depending on !COFF and USG, the file is
13921 not used for such systems.
13922
13923 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13924 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13925 (LD_SWITCH_SYSTEM_1): Remove, update users.
13926
13927 * s/darwin.h (DATA_END):
13928 * m/intel386.h (DATA_END):
13929 * m/ibmrs6000.h (DATA_END):
13930 * m/alpha.h (DATA_END): Remove, unused.
13931
13932 * config.in: Regenerate.
13933 * s/ms-w32.h (subprocesses): Define unconditionally.
13934 * s/template.h (subprocesses): Update comment.
13935 * s/vms.h (subprocesses):
13936 * s/usg5-4.h (subprocesses):
13937 * s/hpux10-20.h (subprocesses):
13938 * s/gnu-linux.h (subprocesses):
13939 * s/cygwin.h (subprocesses):
13940 * s/bsd-common.h (subprocesses):
13941 * s/aix4-2.h (subprocesses):
13942 * s/darwin.h (subprocesses): Do not define, defined by default now.
13943
13944 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13945 Remove all references.
13946 (temacs): Add GNUstep specific ld flags.
13947
13948 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13949 similarly to what X does.
13950
139512008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13952
13953 * nsfns.m (x-list-fonts): Remove.
13954 (syms_of_nsfns): Drop the x-list-fonts declaration.
13955 * nsterm.m: Get rid of remaining "//" comments.
13956
139572008-07-22 Chong Yidong <cyd@stupidchicken.com>
13958
13959 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13960
13961 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13962 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13963 (Fns_own_selection_internal, Fx_disown_selection_internal)
13964 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13965
13966 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13967 ... */' style of docstrings. Doc fixes.
13968
139692008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13970
13971 * terminfo.c (UP, BC, PC): Undo previous change.
13972
13973 * nsfns.m: Rename ns prefixed functions/variables to the
13974 corresponding x versions. Update references.
13975
139762008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13979
139802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13981
13982 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13983 Remove forwarding functions.
13984 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13985 non-static.
13986 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13987 non-static.
13988 (ns_frame_parm_handlers): Use the new names.
13989 (syms_of_nsfns): Move to the end of file.
13990
13991 * nsterm.m (syms_of_nsterm): Move to the end of file.
13992
13993 * dispnew.c (init_display): Remove code for X10.
13994
139952008-07-22 Jason Rumney <jasonr@gnu.org>
13996
13997 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13998 bare drive.
13999
140002008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14001
14002 * nsterm.m (syms_of_nsterm): Remove debugging println.
14003
140042008-07-22 David Reitter <david.reitter@gmail.com>
14005
14006 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14007 Carbon implementation of the same functionality: execute arbitrary
14008 AppleScript code.
14009
140102008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14011
14012 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14013 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14014 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14015 (Fx_display_mm_height, Fx_display_mm_width)
14016 (Fx_display_backing_store, Fx_display_visual_class)
14017 (Fx_display_save_under, Fx_open_connection)
14018 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14019 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14020 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14021 (Fx_display_pixel_width, Fx_display_pixel_height)
14022 (Fx_display_usable_bounds, Fx_display_planes)
14023 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14024 ... */' style of docstrings.
14025
140262008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14027
14028 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14029 on this platform.
14030 (mips):
14031 * m/iris4d.h (mips): Do not define.
14032 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14033
14034 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14035
14036 * image.c:
14037 * nsfns.m:
14038 * nsselect.m:
14039 * nsterm.h:
14040 * nsterm.m: Rename ns prefixed functions/variables to the
14041 corresponding x versions. Update references.
14042
14043 * m/ibms390x.h (NO_REMAP): Do not undefine.
14044
14045 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14046
140472008-07-21 Chong Yidong <cyd@stupidchicken.com>
14048
14049 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14050 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14051 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14052 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14053 (Fns_display_mm_height, Fns_display_mm_width)
14054 (Fns_display_backing_store, Fns_display_visual_class)
14055 (Fns_display_save_under, Fns_open_connection)
14056 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14057 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14058 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14059 (Fns_display_pixel_width, Fns_display_pixel_height)
14060 (Fns_display_usable_bounds, Fx_display_planes)
14061 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14062
140632008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14064
14065 * print.c (print_object): Check print_depth before searching for
14066 circularities.
14067
140682008-07-21 Michael Albinus <michael.albinus@gmx.de>
14069
14070 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14071 only sprintf.
14072
140732008-07-21 Kenichi Handa <handa@m17n.org>
14074
14075 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14076
140772008-07-20 Andreas Schwab <schwab@suse.de>
14078
14079 * syntax.c (find_start_pos, find_start_value)
14080 (find_start_value_byte, find_start_begv, find_defun_start)
14081 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14082
140832008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14084
14085 * s/sol2-3.h: Insert contents of s/sol2.h.
14086 (LD_SWITCH_SYSTEM): Remove redundant definition.
14087 * s/sol2.h: Remove, unused.
14088
140892008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14090
14091 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14092
140932008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14094
14095 * Makefile.in (ns_appdir): Fix typo in find command.
14096
140972008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14098
14099 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14100
14101 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14102 added not supported anymore.
14103
14104 * s/usg5-4-2.h (LIBS_SYSTEM):
14105 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14106
14107 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14108 * s/lynxos.h (GETPGRP_NO_ARG):
14109 * s/hpux10-20.h (NO_SIOCTL_H):
14110 * s/gnu.h (GETPGRP_NO_ARG):
14111 * s/gnu-linux.h (NO_SIOCTL_H):
14112 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14113 * s/cygwin.h (GETPGRP_NO_ARG):
14114 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14115 (C_DEBUG_SWITCH): Remove duplicate definition.
14116
14117 * m/ibms390.h: Remove boilerplate comments.
14118
14119 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14120
14121 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14122 (wait_reading_process_output): Remove code for SunOS, platform not
14123 supported anymore. Use SOLARIS2 instead of sun.
14124
141252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14126
14127 * font.c (font_open_by_name): Under NS, default lface height to zero.
14128 (font_open_for_lface): Under NS, set size based on frame fontsize.
14129 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14130 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14131
141322008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14133
14134 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14135 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14136 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14137 YES/NO.
14138 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14139 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14140 * Makefile.in (clean): Clear out build destination dir.
14141
141422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14143
14144 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14145 xterm, xselect.
14146 * lisp.h: Remove declaration of hash_remove.
14147 * nsgui.h: Remove redefinitions of hash_remove.
14148 * fns.c (hash_remove): Rename to hash_remove_from_table.
14149
141502008-07-19 Seiji Zenitani <zenitani@mac.com>
14151
14152 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14153 strdup() the family UTF8String before modifying it.
14154
141552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14156
14157 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14158 NS_FACE_BACKGROUND with 0 instead of nil.
14159 * nsfont.m (nsfont_draw): Same.
14160
141612008-07-19 Chong Yidong <cyd@stupidchicken.com>
14162
14163 * nsfns.m (ns_set_background_color): Fix crash.
14164
141652008-07-18 Chong Yidong <cyd@stupidchicken.com>
14166
14167 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14168
141692008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14170
14171 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14172
141732008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14174
14175 * gtkutil.c: Include <config.h> instead of "config.h".
14176
14177 * lisp.h (Foverlay_buffer): Add EXFUN.
14178
14179 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14180 child process to complete child_setup. Undo 2005-09-21 change.
14181
14182 * s/darwin.h: Mention setsid after vfork.
14183
141842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14185
14186 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14187 Depend on macgui.h.
14188
14189 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14190 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14191
14192 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14193 and f19.
14194 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14195
14196 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14197 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14198 Remove enumerators.
14199
14200 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14201 Check if FACE_FROM_ID returns NULL.
14202
142032008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14204
14205 * w32inevt.c (change_frame_size): Remove extern declaration.
14206 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14207 change_frame_size.
14208
142092008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14210
14211 * getloadavg.c: Revert last change (2008-07-15).
14212
142132008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14214
14215 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14216 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14217 from configure.
14218
142192008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14220
14221 * s/sol2.h:
14222 * s/sol2-4.h: Reorganize conditionals.
14223
14224 * ecrt0.c: Remove code depending on m68000, not used anymore.
14225
14226 * fns.c (hash_remove): Make static.
14227 * lisp.h (hash_remove): Don't prototype.
14228
14229 * m/ibmrs6000.h:
14230 * m/ibms390x.h:
14231 * m/macppc.h: Remove boilerplate comments.
14232
14233 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14234 Solaris, which does not need them.
14235
14236 * m/vax.h: Remove comments about unsupported systems.
14237
14238 * s/darwin.h: Reorganize ifdefs.
14239
142402008-07-17 Andreas Schwab <schwab@suse.de>
14241
14242 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14243
142442008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14245
14246 Use SDATA. Follow coding convention of placing operators at
14247 beginning of next line rather than end of previous line, and placing
14248 spaces around infix operators.
14249
14250 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14251 in case it was defined already.
14252 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14253 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14254 ns_default.
14255 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14256 Lisp_Objects.
14257 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14258 (ns_defined_color, ns_color_to_lisp): Declare.
14259 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14260 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14261 it's accepted even with USE_LISP_UNION_TYPE.
14262 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14263 (update_frame_tool_bar): Remove apparently obsolete tests for
14264 non-integerness of f->tool_bar_lines.
14265 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14266 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14267 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14268 (nsfont_open): Don't confuse NULL for Qnil.
14269 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14270 * menu.h (find_and_call_menu_selection):
14271 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14272 (find_and_return_menu_selection): Always return something.
14273 * frame.h: Include dispextern.h for Display_Info.
14274 (display_x_get_resource): Declare.
14275
142762008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14277
14278 * syntax.c: Remove stdio.h include accidentally introduced in
14279 Emacs.app commit.
14280 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14281 NS_IMPL_COCOA.
14282 * keyboard.c (handle_async_input, input_available_signal): Remove
14283 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14284
142852008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14286
14287 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14288 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14289 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14290 Use SDATA.
14291
14292 * keymap.c: Remove all NS-specific code.
14293 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14294 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14295 where_is_preferred_modifier, return a different value depending on how
14296 preferred is the binding.
14297 (where_is_internal): Adjust accordingly.
14298 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14299 Adjust to new preferred_sequence_p.
14300 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14301 * keyboard.c (parse_solitary_modifier): Not static any more.
14302 * keyboard.h (parse_solitary_modifier): Declare.
14303
143042008-07-16 Andreas Schwab <schwab@suse.de>
14305
14306 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14307 of easymenu.
14308
143092008-07-16 Chong Yidong <cyd@stupidchicken.com>
14310
14311 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14312 that we don't move off the line.
14313
143142008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14315
14316 * keyboard.c (Qsuper): Remove.
14317 (parse_menu_item): Don't call where_is_internal specially for NS.
14318
143192008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14320
14321 * s/gnu-linux.h: Remove boilerplate comments.
14322
14323 * m/alpha.h (__ELF__): Consolidate conditions.
14324
14325 * m/m68k.h (linux): Use GNU_LINUX instead.
14326 Remove boilerplate comments.
14327
14328 * m/intel386.h: Undo refactoring from previous change.
14329 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14330 too, remove dead code.
14331 (linux): Use GNU_LINUX instead.
14332
143332008-07-16 Jason Rumney <jasonr@gnu.org>
14334
14335 * w32gui.h: Repeat 26 June changes lost by last change.
14336
143372008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14338
14339 * systty.h: Remove code for Aix on 386, unsupported platform.
14340
14341 * s/ms-w32.h: Remove boilerplate comments.
14342 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14343
14344 * s/gnu-linux.h (TERM): Remove support.
14345 (HAVE_SYSVIPC): Remove, unused.
14346 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14347 for this system.
14348
14349 * process.c: Remove support for IRIS, unused.
14350 Remove support for TERM, not relevant anymore.
14351
14352 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14353 used with the definition.
14354
14355 * s/aix4-2.h (static): Do not undef.
14356
14357 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14358 only used on Aix.
14359 (HAVE_SYSVIPC): Remove, unused.
14360
14361 * m/hp800.h (CANNOT_DUMP): Do not undef.
14362
14363 * m/alpha.h: Fix comment.
14364
14365 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14366 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14367 used by this configuration.
14368 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14369 * unexec.c: Remove code depending on HPUX and
14370 USG_SHARED_LIBRARIES, not used with this file. Remove code
14371 depending on IRIS, unused. Remove if 0-ed code.
14372
14373 * s/template.h: Remove comments about static.
14374
14375 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14376 Remove if 0-ed code.
14377 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14378 were the same as the default.
14379 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14380 Remove boilerplate comments.
14381 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14382 (HAVE_SYSVIPC): Remove, unused.
14383 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14384
14385 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14386 Remove boilerplate comments.
14387 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14388 Remove boilerplate comments.
14389 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14390 Remove boilerplate comments.
14391 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14392
14393 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14394 USG systems which do not use DATA_SEG_BITS.
14395 Refactor code. Remove boilerplate comments.
14396
14397 * m/ibms390.h:
14398 * m/m68k.h:
14399 * s/bsd-common.h:
14400 * s/cygwin.h:
14401 * s/darwin.h:
14402 * s/freebsd.h:
14403 * s/gnu.h:
14404 * s/msdos.h: Remove boilerplate comments.
14405
14406 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14407 do not use this file.
aac0c6e3
MR
14408 (IRIS_4D): Remove, unused.
14409
14410 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14411 do not use this file.
aac0c6e3
MR
14412 (SIGN_EXTEND_CHAR):
14413 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14414 * unexmips.c: Remove file, unused.
14415
14416 * editfns.c (Fuser_full_name): Replace the only use of
14417 USER_FULL_NAME with its value.
14418 * config.in: Regenerate.
14419
144202008-07-16 David Reitter <david.reitter@gmail.com>
14421
14422 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14423 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14424
144252008-07-16 Glenn Morris <rgm@gnu.org>
14426
14427 * emacs.c (system-type): Doc fix.
14428
144292008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14430
14431 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14432 If the cache doesn't work, let's fix it, rather than work around it.
14433
144342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14435
14436 * Makefile.in: Correct additions for nsfont.o in last commit.
14437 * nsfont.m: New file (forgot last commit).
14438
144392008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14440
14441 * callproc.c (set_initial_environment): Initialize
14442 Vprocess_environment under CANNOT_DUMP (fixes crash when
14443 batch-compiling for bootstrap).
14444
144452008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14446 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14447
c4cc8b9a
JB
14448 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14449 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14450
144512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14452
14453 Changes and additions for NeXTstep windowing system (Cocoa and
14454 GNUstep) support.
14455
14456 * Makefile.in:
14457 * config.in: Support defines and build commands for NS port.
14458 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14459 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14460 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14461 windowing.
14462 (struct face): Add synth_ital field.
14463 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14464 (init_display): Initialize Vinitial_window_system to "ns" when so
14465 compiled.
14466 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14467 (display_arg): Use under NS.
14468 (main): Under NS, allocate autorelease pool and handle command line
14469 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14470 (standard_args): Add NS-specific args.
14471 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14472 * font.c (DEFAULT_ENCODING): New variable.
14473 (font_find_for_lface): Use it.
14474 (syms_of_font): Load syms_of_nsfont under NS.
14475 * font.h: Declare nsfont_driver when compiled under NS.
14476 * fontset.c: When compiling under NS, include nsterm.h.
14477 (fontset_from_font): Autoconstruct fontset under NS.
14478 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14479 symbol, document and use it.
14480 (do_switch_frame): When for_deletion under Cocoa, add
14481 Fraise_frame(Qnil).
14482 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14483 (x_get_arg): Allow "yes" and "no" as boolean values.
14484 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14485 Qright under Cocoa.
14486 (focus-follows-mouse): Default to 0 under NS.
14487 * frame.h (enum output_method): Add output_ns.
14488 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14489 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14490 (FRAME_WINDOW_P): NS-specific definition.
14491 * fringe.c (max_used_fringe_bitmap): Make public.
14492 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14493 (getloadavg): Use NeXT code under descendant OS's.
14494 * image.c (includes and header section, x_create_bitmap_from_data)
14495 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14496 (image_background_transparent, x_clear_image_1)
14497 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14498 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14499 (x_to_xcolors, x_from_xcolors, x_disable_image)
14500 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14501 other GUIs, including XPM support using code originally written for
14502 Carbon GUI.
14503 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14504 using NS API.
14505 (image_ascent): Use font metrics macros instead of direct struct field
14506 access.
14507 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14508 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14509 Also, handle NS as GTK for menu bar purposes.
14510 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14511 toolkit where they differ.
14512 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14513 use cachelist, still needed under NS.
14514 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14515 (struct widget_value): Define it here for menu.c.
14516 * keymap.c (includes): Include modifier internals.
14517 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14518 NS.
14519 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14520 support for preferring sequences using certain modifiers, specified by
14521 the FIRSTONLY argument.
14522 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14523 under NS GNUstep implementation.
14524 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14525 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14526 * menu.c: Include nsterm.h under NS.
14527 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14528 (free_menubar_widget_tree_value, update_submenu_strings)
14529 (find_and_call_menu_selection): Treat NS as X and NT.
14530 (find_and_return_menu_selection): New function, used for popup menus.
14531 * nsgui.h:
14532 * nsterm.h:
14533 * nsfns.m:
14534 * nsimage.m:
14535 * nsmenu.m:
14536 * nsselect.m:
14537 * nsterm.m: New files.
14538 * process.c (wait_reading_process_output): Under NS, call ns_select()
14539 instead of plain select().
14540 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14541 beginning of buffer.
14542 * sysselect.h (init_process): Rename when compiling under Cocoa to
14543 avoid name conflict.
14544 * termhooks.h (display_info): Add ns_display_info to union.
14545 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14546 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14547 COCOA environment.
14548 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14549 unexec() signature. (Note, this will dump, but the resulting file
14550 crashes; unexosx is used instead; keeping around for reference and
14551 possible aid in getting dump working under GNUstep.)
14552 * w32gui.h (button_type, widget_value): Remove definitions (now in
14553 keyboard.h).
14554 * window.c: Include nsterm.h when compiling under NS.
14555 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14556 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14557 other GUI windowing systems.
14558 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14559 GTK.
14560 (x_consider_frame_title): Under NS, set icon type and frame
14561 modified-state indicator; use ns_set_name_as_filename() when using
14562 formatted title.
14563 (update_window_cursor): Make public when compiling under NS.
14564 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14565 (hourglass_atimer, Vhourglass_delay
14566 * xfaces.c (header section, init_frame_faces, clear_font_table)
14567 (defined_color, unload_color, x_face_list_fonts)
14568 (prepare_face_for_display): Add NS support parallel to other GUIs.
14569 Emulate GCs like other non-X GUIs.
14570 (split_font_name): Don't lowercase font name under NS.
14571 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14572 under NS.
14573 * s/darwin.h: Add support for compilation under NS.
14574
145752008-07-15 Jason Rumney <jasonr@gnu.org>
14576
14577 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14578 (w32_show_hourglass): Rename from show_hourglass.
14579 (w32_hide_hourglass): Rename from hide_hourglass.
14580 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14581 (Vhourglass_delay): Declare extern.
14582 (hourglass_started): Remove.
14583
14584 * xdisp.c (Vhourglass_delay): Remove static.
14585 (hourglass_started, start_hourglass, cancel_hourglass):
14586 Don't include these versions on WINDOWSNT.
14587
145882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14589
14590 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14591 variables (formerly in xfns.c).
14592 (show_hourglass, hide_hourglass): New prototypes (same).
14593 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14594 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14595 in xfns.c).
14596 (syms_of_xdisp): Declare/initialize display-hourglass,
14597 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14598 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14599 formerly in xfns.c.
14600 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14601 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14602 (start_hourglass, cancel_hourglass): Remove.
14603 (show_hourglass, hide_hourglass): Remove prototypes and static
14604 modifiers.
14605 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14606 hourglass_atimer, hourglass_shown_p declaration/initialization.
14607 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14608 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14609 (start_hourglass, cancel_hourglass): Remove.
14610 (show_hourglass, hide_hourglass): Remove prototypes and static
14611 modifiers.
14612 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14613 hourglass_atimer, hourglass_shown_p declaration/initialization.
14614 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14615 (DEFAULT_HOURGLASS_DELAY): Remove.
14616 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14617 hourglass_shown_p declaration/initialization.
14618
146192008-07-14 Jason Rumney <jasonr@gnu.org>
14620
14621 * w32fns.c (w32_get_arg): Remove wrapper function.
14622 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14623 directly.
14624 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14625
146262008-07-14 Kenichi Handa <handa@m17n.org>
14627
14628 * xfont.c (xfont_open): Add workaround for X's bug.
14629
146302008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14631
14632 * fontset.c: Include <stdio.h> unconditionally.
14633
146342008-07-13 Michael Albinus <michael.albinus@gmx.de>
14635
14636 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14637 for filtering.
14638
146392008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14640
14641 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14642
14643 * m/macppc.h:
14644 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14645
c4cc8b9a 14646 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14647 (SPECIAL_EMACS_INT):
14648 * m/ia64.h (SPECIAL_EMACS_INT):
14649 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14650 * s/gnu.h (NLIST_STRUCT):
14651 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14652 * s/gnu-linux.h (LINUX):
14653 * s/msdos.h (HAVE_FACES):
14654 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14655
14656 * systty.h:
14657 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14658 anymore.
14659
146602008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14661
14662 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14663 always defined as int.
14664
14665 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14666 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14667 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14668 * s/freebsd.h (HAVE_WAIT_HEADER):
14669 * s/bsd-common.h (HAVE_UNION_WAIT):
14670 * s/aix4-2.h (HAVE_WAIT_HEADER):
14671 * m/mips.h (HAVE_UNION_WAIT):
14672 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14673 (COFF, static): Do not define, they are undefined later in the file.
14674
14675 * process.c (update_status): Don't use a union.
14676 (status_convert):
14677 (sigchld_handler): Use int instead of WAITTYPE.
14678
146792008-07-12 Chong Yidong <cyd@stupidchicken.com>
14680
14681 * indent.c (Fvertical_motion): Restore hscroll before moving to
14682 goal column.
14683
146842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14685
14686 * lisp.h: Remove left over code.
14687
146882008-07-11 Andreas Schwab <schwab@suse.de>
14689
14690 * lisp.h: Fix logic in last change.
14691
14692 * menu.h: New file.
14693 * menu.c: Include it.
14694 * xmenu.c: Likewise.
14695 * Makefile.in: Update dependencies.
14696
146972008-07-11 Kenichi Handa <handa@m17n.org>
14698
14699 * fontset.c (fontset_from_font): Cancel the previous change.
14700
147012008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14702
14703 * lisp.h:
14704 * w32heap.c:
14705 * emacs.c:
14706 * alloc.c: Replace all references of NO_UNION_TYPE with
14707 USE_LISP_UNION_TYPE.
14708
14709 * m/xtensa.h (NO_UNION_TYPE):
14710 * m/vax.h (NO_UNION_TYPE):
14711 * m/template.h (NO_UNION_TYPE):
14712 * m/sparc.h (NO_UNION_TYPE):
14713 * m/mips.h (NO_UNION_TYPE):
14714 * m/macppc.h (NO_UNION_TYPE):
14715 * m/m68k.h (NO_UNION_TYPE):
14716 * m/iris4d.h (NO_UNION_TYPE):
14717 * m/intel386.h (NO_UNION_TYPE):
14718 * m/ibms390x.h (NO_UNION_TYPE):
14719 * m/ibms390.h (NO_UNION_TYPE):
14720 * m/ibmrs6000.h (NO_UNION_TYPE):
14721 * m/ia64.h (NO_UNION_TYPE):
14722 * m/hp800.h (NO_UNION_TYPE):
14723 * m/arm.h (NO_UNION_TYPE):
14724 * m/amdx86-64.h (NO_UNION_TYPE):
14725 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14726 defining it the same.
14727
147282008-07-10 Chong Yidong <cyd@stupidchicken.com>
14729
14730 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14731
147322008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14733
14734 * fileio.c:
50426a04 14735 * sysdep.c:
aac0c6e3
MR
14736 * systty.h:
14737 * m/ibmrs6000.h:
14738 * m/iris4d.h:
14739 * s/aix4-2.h:
14740 * s/freebsd.h:
14741 * s/gnu-linux.h:
14742 * s/hpux10-20.h:
14743 * s/hpux11.h:
14744 * s/netbsd.h:
14745 * s/sol2-3.h:
14746 * s/sol2-4.h:
14747 * s/sol2.h:
14748 * s/usg5-4.h:
14749 * s/vms.h: Remove references to unused variables.
14750
147512008-07-10 Andreas Schwab <schwab@suse.de>
14752
14753 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14754 pattern before matching the generic family.
14755
147562008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14757
14758 * unexec.c:
14759 * s/vms.h:
14760 * s/usg5-4-2.h:
14761 * s/sol2-5.h:
14762 * s/freebsd.h:
14763 * s/darwin.h: Remove dead code.
14764
14765 * m/template.h:
14766 * m/sparc.h:
14767 * m/mips.h:
14768 * m/m68k.h:
14769 * m/iris4d.h:
14770 * m/intel386.h:
14771 * m/ibms390x.h:
14772 * m/ibms390.h:
14773 * m/ia64.h:
14774 * m/hp800.h:
14775 * m/arm.h:
14776 * m/amdx86-64.h: Remove dead code and references to unused
14777 and compiler defined symbols.
14778
14779 * unexmips.c:
14780 * unexelf.c: Remove references to desupported systems.
14781
14782 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14783
14784 * m/powermac.h: Remove boilerplate comments.
14785 (NO_REMAP): Remove unused definition.
14786
14787 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14788 define them.
14789
147902008-07-10 Kenichi Handa <handa@m17n.org>
14791
14792 * xfont.c (xfont_open): Log the reason of failure.
14793
147942008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14795
14796 * fontset.c (fontset_get_font_group):
14797 * font.c (font_check_otf): Specify argument types.
14798
147992008-07-09 Kenichi Handa <handa@m17n.org>
14800
14801 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14802 non-ASCII char is found.
14803
14804 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14805 (reorder_font_vector): Change the arg preferred_family to font.
14806 Prefer the spec matching with font.
14807 (fontset_get_font_group): New function.
14808 (fontset_find_font): Change the format of an element of a realized
14809 fontset. Use fontset_get_font_group.
14810 (fontset_font): Try the current fontset, the default fontset, the
14811 fallbacks of the current fontset, and the fallbacks of the default
14812 fontset in this order.
14813 (face_for_char): Delete the shortcut to use the current font.
14814 (fontset_from_font): Don't set fonts for Latin in the fontset.
14815
14816 * font.h (font_make_object, font_match_p): Adjust prototypes.
14817
14818 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14819
14820 * font.c (font_make_object): New arg entity and pixelsize.
14821 (font_check_otf_features, font_check_otf): New functions.
14822 (font_match_p): Check :lang, :script, and :otf properties.
14823
14824 * xfont.c (xfont_open): Adjust it for the change of
14825 font_make_object.
14826 (xfont_text_extents): Fix initial setting of metrics.
14827
14828 * ftfont.c (struct ftfont_info): New member index, delete member
14829 fc_charset_idx. Make the member order compatible with struct
14830 xftfont_info.
14831 (fc_charset_table): Change charset names to registry names.
14832 (ftfont_pattern_entity): Delete the args registry and
14833 fc_charset_idx. Change the value of :font-entity property
14834 to (FONTNAME . INDEX). Always set :registry property to
14835 `iso10646-1'.
14836 (struct ftfont_cache_data): New struct.
14837 (ftfont_lookup_cache): New arg for_face.
14838 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14839 (ftfont_driver): Set the member otf_capability.
14840 (ftfont_get_charset): Adjust it for the change of
14841 fc_charset_table.
14842 (OTF_TAG_SYM): New macro.
14843 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14844 for the change of fc_charset_table.
14845 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14846 ftfont_pattern_entity. Add FC_INDEX to objset.
14847 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14848 and ftfont_pattern_entity.
14849 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14850 font_make_object, struct ftfont_info.
14851 (ftfont_has_char): Use ftfont_get_fc_charset.
14852 (ftfont_otf_features, ftfont_otf_capability): New functions.
14853 (ftfont_shape): Use ftfont_get_otf.
14854 (ftfont_text_extents): Fix initial setting of metrics.
14855
14856 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14857 member order compatible with struct ftfont_info.
14858 (xftfont_open): Add FC_CHARSET to the pattern. Set
14859 xftfont_info->ft_size. Don't unlock the face. Check BDF
14860 properties if appropriate.
14861 (xftfont_close): Unlock the face.
14862 (xftfont_anchor_point, xftfont_shape): Deleted.
14863 (syms_of_xftfont): Don't set members anchor_point and shape of
14864 xftfont_driver.
14865
14866 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14867 font_make_object.
14868
14869 * w32font.c (w32font_open): Adjust it for the change of
14870 font_make_object.
14871 (w32font_open_internal): Don't set properties of font_object here.
14872
148732008-07-08 Chong Yidong <cyd@stupidchicken.com>
14874
14875 * macfns.c (x_create_tip_frame):
14876 * w32fns.c (x_create_tip_frame):
14877 * xfns.c (x_create_tip_frame): Pass parameter argument to
14878 face-set-after-frame-default.
14879
14880 * xfaces.c (Finternal_merge_in_global_face): Save merged
14881 attributes for the default face back into the face vector.
14882
148832008-07-08 Andreas Schwab <schwab@suse.de>
14884
14885 * fontset.h: Declare fontset_from_font. Don't declare
14886 new_fontset_from_font and fontset_from_font_name.
14887 * xterm.c: Include "fontset.h".
14888 * Makefile.in (xterm.o): Update dependencies.
14889
148902008-07-08 Glenn Morris <rgm@gnu.org>
14891
14892 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14893 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14894
148952008-07-07 Chong Yidong <cyd@stupidchicken.com>
14896
14897 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14898 (x_set_frame_parameters): Don't bind it.
14899
149002008-07-07 Juanma Barranquero <lekktu@gmail.com>
14901
14902 * w32fns.c (map_w32_filename): Declare extern.
14903
149042008-07-07 Jason Rumney <jasonr@gnu.org>
14905
14906 * w32term.c (WS_EX_LAYERED): Define if not already.
14907
149082008-07-06 Chong Yidong <cyd@stupidchicken.com>
14909
14910 * xfaces.c (set_font_frame_param): Don't try to set the font
14911 parameter if it is still unspecified in the lface.
14912
149132008-07-05 Chong Yidong <cyd@stupidchicken.com>
14914
14915 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14916 face if it didn't already exist.
14917
14918 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14919
149202008-07-05 Andreas Schwab <schwab@suse.de>
14921
14922 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14923
149242008-07-05 Chong Yidong <cyd@stupidchicken.com>
14925
14926 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14927 word-wrapping.
14928 (IT_DISPLAYING_WHITESPACE): New macro.
14929 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14930 when word-wrapping. Simplify word-wrapping logic. Use correct
14931 pixel positions when saving copies of the iterator.
14932 (display_line): Use proper wrap point if the last character on a
14933 line was preceded by whitespace.
14934
149352008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14936
14937 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14938
149392008-07-04 Kenichi Handa <handa@m17n.org>
14940
14941 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14942
14943 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14944
149452008-07-02 Jason Rumney <jasonr@gnu.org>
14946
14947 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14948 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14949
14950 * xdisp.c (next_element_from_display_vector): Move assignment out
14951 of if statement.
14952
149532008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14954
14955 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14956
14957 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14958 (syms_of_fileio): Initialize and export them.
14959 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14960
14961 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14962 (Fsystem_move_file_to_trash): New function.
14963 (syms_of_w32fns): Export it to lisp.
14964
149652008-07-01 Jason Rumney <jasonr@gnu.org>
14966
14967 * w32font.c (w32font_text_extents): Don't count overhang as part
14968 of width.
14969
149702008-06-30 Miles Bader <miles@gnu.org>
14971
14972 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14973 Add `avoid_cursor_p' field.
14974
14975 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14976 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14977 (append_glyph, append_composite_glyph, produce_image_glyph)
14978 (append_stretch_glyph): Initialize avoid_cursor_p.
14979 (get_it_property): Rename from `get_line_height_property'.
14980 (x_produce_glyphs): Use get_it_property.
14981 (handle_line_prefix, push_display_prop): New functions.
14982 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14983 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14984 New variables.
14985 (syms_of_xdisp): Initialize them.
14986
149872008-06-30 Kenichi Handa <handa@m17n.org>
14988
14989 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14990 XftDefaultSubstitute (they are called in XftFontMatch).
14991 (xftfont_open): Fix args to ftfont_font_format.
14992
14993 * ftfont.c (fc_charset_table): New member lang.
14994 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14995 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14996 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14997 (ftfont_open): Fix args to ftfont_font_format.
14998 (ftfont_font_format): New arg filename.
14999
150002008-06-30 Chong Yidong <cyd@stupidchicken.com>
15001
15002 * xfaces.c (Finternal_merge_in_global_face): If default face was
15003 modified, realize it again. Update the font face attribute.
15004
150052008-06-29 Jason Rumney <jasonr@gnu.org>
15006
15007 * w32term.c (x_set_frame_alpha): Fix logic.
15008
150092008-06-29 Kenichi Handa <handa@m17n.org>
15010
15011 * fontset.c (Finternal_char_font): Return font-object instead of
15012 font-name.
15013
15014 * composite.c (get_composition_id): Fix the width calculation for TAB.
15015
150162008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15017
15018 * indent.c (Fvertical_motion): Properly handle float column arg.
15019
150202008-06-28 Jason Rumney <jasonr@gnu.org>
15021
15022 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15023 (pfnSetLayeredWindowAttributes): New function pointer.
15024 (w32_initialize): Initialize it when supported.
15025 (x_set_frame_alpha): New function.
15026
15027 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15028 (w32_frame_parm_handlers): Set alpha handler.
15029
15030 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15031
150322008-06-27 Jason Rumney <jasonr@gnu.org>
15033
15034 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15035 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15036 (w32_to_x_charset, x_to_w32_charset)
15037 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15038 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15039 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15040 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15041 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15042 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15043 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15044 (Qw32_charset_unicode): Remove.
15045 (syms_of_w32fns): Update for above changes.
15046
15047 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15048 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15049 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15050 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15051 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15052 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15053 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15054 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15055 (syms_of_w32font): Update for above changes.
15056
150572008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15058
15059 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15060 removed #if.
15061 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15062
150632008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15064 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15065
15066 * makefile.w32-in (LOCAL_FLAGS):
15067 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15068
15069 * sysdep.c (_spawnlp, _getpid):
15070 Declare with explicit _cdecl instead of _CRTAPI1.
15071
15072 * editfns.c (Fget_internal_run_time):
15073 Check for WINDOWSNT with #ifdef, not #if.
15074
150752008-06-26 Jason Rumney <jasonr@gnu.org>
15076
15077 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15078
15079 * w32term.c (x_draw_glyph_string_foreground)
15080 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15081 Use FONT_HANDLE macro.
15082 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15083
15084 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15085 (uniscribe_encode_char): Use FONT_HANDLE macro.
15086
15087 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15088 (w32font_text_extents): Use precast w32_font.
15089 (w32font_close): Free cached metrics.
15090 (w32font_open_internal): Allocate space for name on stack.
15091
150922008-06-26 Chong Yidong <cyd@stupidchicken.com>
15093
15094 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15095
150962008-06-26 Jason Rumney <jasonr@gnu.org>
15097
15098 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15099 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15100
151012008-06-26 Juanma Barranquero <lekktu@gmail.com>
15102
15103 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15104
151052008-06-26 Jason Rumney <jasonr@gnu.org>
15106
15107 * w32bdf.c, w32bdf.h: Remove obsolete files.
15108
15109 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15110
15111 * w32gui.h: Don't include w32bdf.h.
15112 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15113 Remove obsolete font support.
15114
15115 * w32font.h (struct w32font_info): Remove compat_w32_font.
15116 Add hfont member.
15117 (FONT_COMPAT): Remove obsolete macro.
15118
15119 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15120 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15121 (w32font_open_internal): Remove compat code. Set new hfont member.
15122 (Fx_select_font): Use new hfont member.
15123
15124 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15125 (uniscribe_encode_char): Use new hfont member.
15126
15127 * w32term.c (x_draw_glyph_string_foreground)
15128 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15129 (x_draw_glyph_string): Use metrics in w32font_info.
15130
151312008-06-26 Kenichi Handa <handa@m17n.org>
15132
15133 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15134
151352008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15136
15137 * unexnext.c:
15138 * m/ews4800.h:
15139 * m/hp9000s300.h:
15140 * m/ibm370aix.h:
15141 * m/mips-siemens.h:
15142 * m/ncr386.h:
15143 * m/next.h:
15144 * m/pmax.h:
15145 * m/powerpcle.h:
15146 * m/tandem-s2.h:
15147 * s/386bsd.h:
15148 * s/bsd386.h:
15149 * s/bsd4-1.h:
15150 * s/bsd4-2.h:
15151 * s/bsdos2-1.h:
15152 * s/bsdos2.h:
15153 * s/bsdos3.h:
15154 * s/bsdos4.h:
15155 * s/nextstep.h:
15156 * s/ultrix4-3.h:
15157 * s/usg5-0.h:
15158 * s/usg5-2-2.h:
15159 * s/usg5-2.h:
15160 * s/usg5-4-3.h:
15161 * s/ux4800.h:
15162 * s/uxpds.h:
15163 * s/uxpv.h: Remove support for obsolete systems.
15164 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15165 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15166 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15167 Remove, insert contents in s/aix4-2.h.
15168 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15169 * s/bsd4-3.h: Rename to ...
15170 * s/bsd-common.h: ... this.
15171 * data.c:
15172 * doc.c:
15173 * ecrt0.c:
15174 * emacs.c:
15175 * fileio.c:
15176 * floatfns.c:
15177 * keyboard.c:
15178 * mem-limits.h:
15179 * print.c:
15180 * process.c:
15181 * sysdep.c:
15182 * syssignal.h:
15183 * systty.h:
15184 * syswait.h:
15185 * term.c:
15186 * unexec.c:
15187 * unexelf.c:
15188 * unexhp9k800.c:
15189 * m/hp800.h:
15190 * m/ibmrs6000.h:
15191 * m/mips.h:
15192 * m/vax.h:
15193 * s/darwin.h:
15194 * s/freebsd.h:
15195 * s/gnu.h:
15196 * s/ms-w32.h:
15197 * s/msdos.h:
15198 * s/netbsd.h:
15199 * s/template.h: Remove references to obsolete variables.
15200
15201 * Makefile.in: Add dependencies for all unexec files.
15202 (admindir): Remove unused variable.
15203 (UNEXEC_SRC): Remove references.
15204
152052008-06-25 Chong Yidong <cyd@stupidchicken.com>
15206
15207 * xfns.c (x_default_font_parameter): If Xft is available, first
15208 try Monospace-12 for the default font.
15209
152102008-06-25 Jason Rumney <jasonr@gnu.org>
15211
15212 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15213
152142008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15215
15216 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15217
15218 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15219
152202008-06-25 Juanma Barranquero <lekktu@gmail.com>
15221
15222 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15223 <scroll-conservatively>: Fix typo in docstring.
15224
15225 * xselect.c (Fx_send_client_event): Doc fix.
15226
152272008-06-25 Kenichi Handa <handa@m17n.org>
15228
15229 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15230
15231 * font.c (font_parse_fcname): Remove unused variables.
15232 (font_sort_entites): Delete the arg SPEC. Caller changed.
15233 Fix for the case of ! best_only.
15234 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15235
15236 * lisp.h (Fstring_to_unibyte): EXFUN it.
15237
15238 * character.h (str_to_unibyte): Extern it.
15239
15240 * character.c (str_to_unibyte): New function.
15241
15242 * fns.c (Fstring_to_unibyte): New function.
15243 (syms_of_fns): Defsubr it.
15244
152452008-06-24 Kenichi Handa <handa@m17n.org>
15246
15247 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15248 DPI too.
15249 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15250
152512008-06-24 Andreas Schwab <schwab@suse.de>
15252
15253 * Makefile.in (${lispsource}loaddefs.el): Rename from
15254 ../lisp/loaddefs.el.
15255 (bootstrap-clean): Do what distclean does but don't remove
15256 Makefile.
15257 (distclean): Depend on bootstrap-clean and remove Makefile.
15258
152592008-06-24 Chong Yidong <cyd@stupidchicken.com>
15260
15261 * buffer.h (struct buffer): New member word_wrap.
15262
15263 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15264 word-wrap.
15265 (init_buffer_once): Initialize them.
15266
15267 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15268 line_wrap enum possessing three possible values.
15269
15270 * termopts.h: Replace truncate_partial_width_windows with
15271 Vtruncate_partial_width_windows.
15272
15273 * dispnew.c (direct_output_for_insert): Avoid direct output when
15274 inserting a space with word wrap on.
15275
15276 * indent.c (compute_motion): Obey integer values of
15277 truncate-partial-width-windows.
15278
15279 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15280 replacing truncate_partial_width_windows.
15281 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15282 truncate only if the window width is below that integer.
15283 (start_display, resize_mini_window, produce_stretch_glyph)
15284 (display_string, move_it_in_display_line_to): Use line_wrap.
15285 (back_to_previous_visible_line_start, reseat_1): Reset
15286 string_from_display_prop_p.
15287 (display_line): Extend default face to end of line when wrapping.
15288
152892008-06-24 Kim F. Storm <storm@cua.dk>
15290
15291 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15292 to wrap continued lines at word boundaries.
15293
152942008-06-24 Jason Rumney <jasonr@gnu.org>
15295
15296 * font.c (Ffont_face_attributes): Multiply pixel size before point
15297 conversion to avoid multiplying rounding error.
15298
152992008-06-23 Jason Rumney <jasonr@gnu.org>
15300
15301 * w32term.c (x_draw_glyph_string_background)
15302 (x_draw_glyph_string): Remove old bdf font code.
15303
15304 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15305
153062008-06-22 Kenichi Handa <handa@m17n.org>
15307
15308 * font.c (font_find_for_lface): Try the adstyle specified in
15309 the property of LFACE_FONT of LFACE (if any).
15310
153112008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15312 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15313
15314 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15315
153162008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15317
15318 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15319 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15320 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15321 (witness-emacs): Remove.
15322 (lisp, shortlisp): Move loaddefs.el earlier.
15323 (mostlyclean): Forget about witness-emacs.
15324
153252008-06-22 Glenn Morris <rgm@gnu.org>
15326
15327 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15328 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15329
153302008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15331
15332 * Makefile.in (PRECOMP): Remove.
15333 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15334 (witness-emacs): Run `compile-first'.
15335 (.el.elc): Use the new compile-onefile target.
15336
153372008-06-21 Kenichi Handa <handa@m17n.org>
15338
15339 * xftfont.c (xftfont_open): Handle QCembolden only when
15340 FC_EMBOLDEN is defined.
15341
153422008-06-21 Andreas Schwab <schwab@suse.de>
15343
15344 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15345 (.el.elc): Likewise.
15346
153472008-06-21 Miles Bader <miles@gnu.org>
15348
15349 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15350 build dir, not the lisp source dir.
15351
153522008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15353
15354 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15355 (bootstrapclean): Remove.
15356 (.el.elc): New rule.
15357 (PRECOMP): New var.
15358 (../lisp/subdirs.el): Remove.
15359 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15360 (witness-emacs): New target.
15361 (mostlyclean): Remove witness-emacs as well.
15362 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15363 Add witness-emacs dependency.
15364
153652008-06-20 Chong Yidong <cyd@stupidchicken.com>
15366
15367 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15368 defined by the font.
15369
153702008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15371
15372 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15373 (bootstrap-clean): New target that keeps TAGS around.
15374 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15375 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15376
153772008-06-20 Jason Rumney <jasonr@gnu.org>
15378
15379 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15380 Remove obsolete font code.
15381
15382 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15383 to determine language support.
15384
153852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15386
15387 * sysdep.c (cfsetspeed): New fun extracted from the code.
15388 (cfmakeraw): Move before first use.
15389
153902008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15391
15392 * sysdep.c (cfmakeraw): Provide fallback implementation.
15393 (serial_configure): Provide fallback implementation of cfsetspeed.
15394
153952008-06-20 Kenichi Handa <handa@m17n.org>
15396
15397 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15398 the pattern.
15399
15400 * fontset.c (fontset_from_font): Copy font_spec before changing
15401 the elements.
15402
15403 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15404
154052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15406
15407 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15408 for explicit `font' parameters.
15409
15410 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15411
154122008-06-19 Kenichi Handa <handa@m17n.org>
15413
15414 * frame.c: Include <ctype.h>.
15415 (x_set_font_backend): Allow spacing characters in the X resource
15416 for FontBackend.
15417
154182008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15419
15420 * w32fns.c, xfns.c (Qfont_param): New var.
15421 (syms_of_w32fns): Initialize it.
15422 (x_default_font_parameter): Record explicit `font' into
15423 `font-parameter'.
15424
154252008-06-18 Kenichi Handa <handa@m17n.org>
15426
15427 * font.c (font_parse_xlfd): Fix previous change.
15428 (font_parse_fcname): Don't use :fc-unknown-spec.
15429 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15430 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15431 (font_add_log): Prepend the driver name to the resulting fonts.
15432
15433 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15434 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15435 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15436
15437 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15438 (QCembolden): New variables.
15439 (syms_of_xftfont): DEFSYM them.
15440 (xftfont_open): Call XftFontMatch. Don't trust the result of
15441 XftTextExtents8 if the pixel_size is less than 5.
15442
154432008-06-18 Andreas Schwab <schwab@suse.de>
15444
15445 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15446 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15447
154482008-06-18 Jason Rumney <jasonr@gnu.org>
15449
15450 * w32font.c (w32font_list, w32font_match): Add logging.
15451
15452 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15453
154542008-06-17 Chong Yidong <cyd@stupidchicken.com>
15455
15456 * font.c (font_parse_fcname): Store divider characters for
15457 unknown-spec list. For known key symbols, intern using correct
15458 symbol name.
15459
154602008-06-17 Kenichi Handa <handa@m17n.org>
15461
15462 * xfaces.c (realize_default_face): If the frame is not on window
15463 system, set the fontset of face to nil.
15464
154652008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15466
15467 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15468
154692008-06-16 Juanma Barranquero <lekktu@gmail.com>
15470
15471 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15472 (build_font_name_from_vector): Delete externs.
15473
15474 * xfaces.c (struct font_name): Don't declare.
15475
154762008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15477
15478 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15479
154802008-06-16 Chong Yidong <cyd@stupidchicken.com>
15481
15482 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15483
154842008-06-16 Juanma Barranquero <lekktu@gmail.com>
15485
15486 * font.c (Ffont_spec): Fix usage in docstring.
15487 (Ffont_face_attributes): Doc fix.
15488
154892008-06-16 Andreas Schwab <schwab@suse.de>
15490
15491 * font.c (Ffont_face_attributes): Fix definition.
15492
154932008-06-16 Jason Rumney <jasonr@gnu.org>
15494
15495 * font.h (font_style_symbolic_from_value): Remove.
15496
15497 * font.c (font_style_symbolic_from_value): Remove.
15498 (font_style_symbolic): Revert to pre 2008-06-13 version.
15499
15500 * w32font.c (w32_to_fc_weight): New function.
15501 (w32font_full_name, logfont_to_fcname): Use it.
15502
155032008-06-16 Kenichi Handa <handa@m17n.org>
15504
15505 * font.c (font_check_object): Delete it.
15506 (font_clear_cache): Check if a font-object is alive.
15507 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15508 font-object to nil.
15509 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15510 (font_at): Don't call font_check_object.
15511 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15512
155132008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15514
15515 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15516
155172008-06-16 Chong Yidong <cyd@stupidchicken.com>
15518
15519 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15520
155212008-06-15 Chong Yidong <cyd@stupidchicken.com>
15522
15523 * font.c (font_parse_fcname): Only one decimal point.
15524 (font_unparse_fcname): Handle data in family and foundry indices
15525 as symbols, not strings.
15526 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15527
15528 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15529
15530 * font.h (font_unparse_gtkname): Add prototype.
15531
155322008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15533
15534 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15535
155362008-06-15 Andreas Schwab <schwab@suse.de>
15537
15538 * font.c (font_update_drivers): Fix crash when no drivers match.
15539
155402008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15541
15542 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15543 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15544
155452008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15546
15547 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15548
155492008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15550
15551 * process.c (Fserial_process_configure, Fprocess_send_eof):
15552 Use EQ to compare Lisp_Objects.
15553
155542008-06-13 Jason Rumney <jasonr@gnu.org>
15555
15556 * w32fns.c (Fw32_select_font): Remove old font API function.
15557
15558 * w32font.c (logfont_to_fcname): New function.
15559 (Fx_select_font): New font dialog function compatible with
15560 GTK/fontconfig version.
15561
15562 * font.c (font_style_symbolic_from_value): New function.
15563 (font_style_symbolic): Use it.
15564
15565 * font.h (font_style_symbolic_from_value): Declare new function.
15566
155672008-06-13 Juanma Barranquero <lekktu@gmail.com>
15568
15569 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15570 <font-width-table>: Fix typos in docstrings.
15571
155722008-06-13 Daniel Engeler <engeler@gmail.com>
15573
15574 These changes add serial port access.
15575 * process.c: Add HAVE_SERIAL.
15576 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15577 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15578 (list_processes_1, select_wrapper, Fstop_process)
15579 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15580 (status_notify): Modify to handle serial processes.
15581 [HAVE_SERIAL] (Fserial_process_configure)
15582 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15583 New functions.
15584 * process.h (struct Lisp_Process): Add `type'.
15585 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15586 New functions.
15587 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15588 serial ports.
b71ac3dd 15589 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15590 * w32.h: Add FILE_SERIAL.
15591 (struct _child_process): Add ovl_read, ovl_write.
15592
155932008-06-13 Kenichi Handa <handa@m17n.org>
15594
15595 * dispextern.h (enum lface_attribute_index): New member
15596 LFACE_FOUNDRY_INDEX.
15597
15598 * font.c (font_score): Delete arg alternate_families. Check only
15599 weight, slant, width, and size. Ignore the difference of alias
15600 style symbols.
15601 (font_sort_entites): Adjust for the above change. Reflect the
15602 order of font-driver to scores.
15603 (font_list_entities): Don't check alternate_familes here.
15604 (font_clear_prop): Handle foundry.
15605 (font_update_lface): Don't parse "foundry-family" form here.
15606 Handle FONT_FOUNDRY_INDEX.
15607 (font_find_for_lface): Likewise. Handle alternate families here.
15608 If registry is nil, try iso8859-1 and ascii-0.
15609 (font_open_for_lface): Pay attention to size in ENTITY.
15610 (font_open_by_name): Simplify by calling font_load_for_lface.
15611 (free_font_driver_list): Delete it.
15612 (font_update_drivers): Preserve the order of backends.
15613 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15614 of font_score and font_sort_entites.
15615 (font_update_sort_order): Likewise.
15616
15617 * xfaces.c (LFACE_FOUNDRY): New macro.
15618 (check_lface_attrs): Check foundry.
15619 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15620 (merge_face_vectors): Check foundry.
15621 (merge_face_ref): Likewise.
15622 (Finternal_set_lisp_face_attribute): Likewise.
15623 (x_update_menu_appearance): Likewise.
15624 (Finternal_get_lisp_face_attribute): Likewise.
15625 (lface_hash): Likewise.
15626 (lface_same_font_attributes_p): Likewise.
15627 (x_supports_face_attributes_p): Likewise.
15628 (tty_supports_face_attributes_p): Likewise.
15629 (Finternal_set_alternative_font_family_alist): Intern strings.
15630 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15631 (realize_default_face): Set LFACE_FOUNDRY (lface).
15632
15633 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15634 font-driver at first.
15635
15636 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15637
156382008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15639
15640 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15641
156422008-06-12 Jim Meyering <meyering@redhat.com>
15643
15644 Make unexec_free handle NULL the same way free does.
15645 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15646
156472008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15648
15649 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15650 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15651 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15652 (WEAK_ALIAS): Simplify.
15653 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15654 when searching a unibyte buffer.
15655
156562008-06-12 Chong Yidong <cyd@stupidchicken.com>
15657
15658 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15659
156602008-06-12 Juanma Barranquero <lekktu@gmail.com>
15661
15662 * w32font.c: Include ctype.h.
15663
156642008-06-11 Jason Rumney <jasonr@gnu.org>
15665
15666 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15667 misreported as space.
15668 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15669 as aliases for registry iso10646-1.
15670
156712008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15672
15673 * buffer.c (clone_per_buffer_values): Skip `name'.
15674
156752008-06-11 Chong Yidong <cyd@stupidchicken.com>
15676
15677 * font.c (font_parse_fcname): Fix last change; accept decimal
15678 points in font size.
15679
156802008-06-10 Jason Rumney <jasonr@gnu.org>
15681
15682 * w32uniscribe.c (add_opentype_font_name_to_list):
15683 Skip non unicode fonts.
15684
156852008-06-10 Chong Yidong <cyd@stupidchicken.com>
15686
15687 * xfns.c (Fx_font_dialog): New function.
15688
15689 * gtkutil.c (xg_dialog_response_cb): Rename from
15690 xg_file_response_callback.
15691 (pop_down_dialog): Rename from pop_down_file_dialog.
15692 (xg_get_file_name): Callers changed.
15693 (xg_get_font_name): New function.
15694
15695 * gtkutil.h (xg_get_font_name): Insert prototype.
15696
156972008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15698
15699 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15700 x_underline_minimum_display_offset.
15701 (syms_of_xdisp): Declare it here rather than in xterm.c.
15702 * dispextern.h (underline_minimum_offset): Declare it.
15703 * w32term.c (x_draw_glyph_string): Use it.
15704 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15705 (syms_of_xterm): Don't declare it any more.
15706 (x_draw_glyph_string): Adjust to the new name.
15707
8719abec 157082008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15709
15710 * xterm.c (x_underline_minimum_display_offset): New var.
15711 (x_draw_glyph_string): Use it.
15712 (syms_of_xterm): Declare it.
15713
157142008-06-10 Chong Yidong <cyd@stupidchicken.com>
15715
15716 * font.c (font_parse_fcname): Accept GTK-style font names too.
15717
157182008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15719
15720 * dired.c (file_name_completion): Don't return t if the match is exact
15721 but with different capitalization.
15722 * minibuf.c (Ftry_completion): Simplify.
15723
15724 * window.c (Vwindow_point_insertion_type): New var.
15725 (set_window_buffer): Use it.
15726 (syms_of_window): Init and export it to Lisp.
15727
157282008-06-10 Kenichi Handa <handa@m17n.org>
15729
15730 * font.h (font_intern_prop): Prototype adjusted.
15731
15732 * font.c (font_intern_prop): New arg force_symbol.
15733 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15734 Adjust for the change of font_intern_prop.
15735
15736 * ftfont.c (ftfont_pattern_entity):
15737 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15738 (w32_registry):
15739 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15740 the change of font_intern_prop.
15741
157422008-06-09 Juanma Barranquero <lekktu@gmail.com>
15743
15744 * w32menu.c (digest_single_submenu): Declare extern.
15745
157462008-06-09 Jason Rumney <jasonr@gnu.org>
15747
15748 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15749
15750 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15751 (parse_single_submenu): Remove.
15752 (digest_single_submenu): Remove.
15753 (syms_of_w32menu): Don't initialise variables that have moved
15754 to menu.c.
15755 (set_frame_menubar): Sync with version in xmenu.c.
15756 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15757
15758 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15759 Make static again.
15760
157612008-06-09 Jason Rumney <jasonr@gnu.org>
15762
15763 Changes to w32 files related to the move of common menu code
15764 to menu.c on 2008-06-08 by Chong Yidong.
15765
15766 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15767 defs to w32gui.h.
15768 (single_keymap_panes, push_menu_item, push_menu_pane):
15769 Make globally visible.
15770
15771 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15772 (local_free, malloc_widget_value, free_widget_value)
15773 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15774 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15775 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15776 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15777 (menu_items, menu_items_allocated, menu_items_used)
15778 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15779 (init_menu_items, finish_menu_items, discard_menu_items)
15780 (grow_menu_items, push_submenu_start, push_submenu_end)
15781 (push_left_right_boundary, push_menu_pane, push_menu_item)
15782 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15783 (free_menubar_widget_tree_value, parse_single_submenu)
15784 (update_submenu_strings): Remove functions.
15785 (xmalloc_widget_value): Remove and declare extern.
15786
15787 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15788 (OBJ1): Build it.
15789
15790 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15791 (local_heap, local_alloc, local_free, malloc_widget_value)
15792 (free_widget_value): Define here.
15793
157942008-06-09 Kenichi Handa <handa@m17n.org>
15795
15796 * font.h (Qascii_0): Extern it.
15797
15798 * font.c (Qascii_0): New variable.
15799 (syms_of_font): DEFSYM it.
15800 (font_open_by_name): If the registry "iso8859-1" fails, try also
15801 "ascii-0".
15802
15803 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15804
158052008-06-08 Kenichi Handa <handa@m17n.org>
15806
15807 * .gdbinit (xfont): New command.
15808
158092008-06-08 Andreas Schwab <schwab@suse.de>
15810
15811 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15812 * Makefile.in (menu.o): Update dependencies.
15813
15814 * Makefile.in (obj): Always add menu.o.
15815 * emacs.c (main): Always call syms_of_menu.
15816 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15817
158182008-06-08 Chong Yidong <cyd@stupidchicken.com>
15819
15820 * Makefile.in: Compile menu.c.
15821
15822 * lisp.h: Declare syms_of_menu.
15823
15824 * emacs.c (main): Call syms_of_menu.
15825
15826 * keyboard.h: Relocate platform-independent menu definitions from
15827 xmenu.c.
15828
15829 * menu.c: New file. Relocate platform-independent menu
15830 definitions from xmenu.c. Suggested by Adrian Robert.
15831
15832 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15833 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15834 (menu_items_used, menu_items_n_panes)
15835 (menu_items_submenu_depth): Move to keyboard.h.
15836 (init_menu_items, finish_menu_items, unuse_menu_items)
15837 (discard_menu_items, restore_menu_items, save_menu_items)
15838 (grow_menu_items, push_submenu_start, push_submenu_end)
15839 (push_left_right_boundary, push_menu_pane, push_menu_item)
15840 (keymap_panes, single_keymap_panes, single_menu_item)
15841 (list_of_panes, list_of_items, find_and_call_menu_selection)
15842 (xmalloc_widget_value, free_menubar_widget_value_tree)
15843 (parse_single_submenu, digest_single_submenu)
15844 (update_submenu_strings): Move to menu.c.
15845
158462008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15847
15848 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15849
158502008-06-06 Miles Bader <miles@gnu.org>
15851
15852 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15853 face, not frame default.
15854
158552008-06-05 Martin Rudalics <rudalics@gmx.at>
15856
15857 * window.c (pop_up_windows, pop_up_frames)
15858 (display_buffer_reuse_frames, Vpop_up_frame_function)
15859 (Vdisplay_buffer_function, Veven_window_heights)
15860 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15861 (Vspecial_display_function, Vsame_window_buffer_names)
15862 (Vsame_window_regexps, split_height_threshold)
15863 (Vsplit_window_preferred_function): Move those vars to window.el.
15864 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15865 (Fdisplay_buffer): Move those functions to window.el.
15866 (syms_of_window): Remove corresponding declarations.
15867 (display_buffer): New function.
15868 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15869 * dispnew.c (Flast_nonminibuf_frame): New function.
15870 * buffer.c (Fpop_to_buffer): Move to window.el.
15871
158722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15873
15874 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15875
158762008-06-05 Kenichi Handa <handa@m17n.org>
15877
15878 * coding.c (detect_coding): Fix previous change.
15879 (detect_coding_system): Likewise.
15880
158812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15882
15883 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15884
15885 * keymap.c (Vminibuffer_local_filename_must_match_map):
15886 Rename from Vminibuffer_local_must_match_filename_map.
15887 (syms_of_keymap):
15888 * minibuf.c (Fcompleting_read): Adjust accordingly.
15889 * commands.h: Rename declaration as well.
15890
158912008-06-05 Kenichi Handa <handa@m17n.org>
15892
15893 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15894 family name.
15895 (Ffont_put): Likewise.
15896
15897 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15898 current font-spec.
15899
15900 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15901 is unspecified.
15902
15903 * xfaces.c (realize_x_face): If the font-related face attributes
15904 are the same as those of default face, realize a new fontset from
15905 default->fontset.
15906 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15907
159082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15909
15910 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15911 (move_it_in_display_line): New wrapper.
15912
15913 * window.c (window_scroll_pixel_based_preserve_x)
15914 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15915 (window_scroll_pixel_based, window_scroll_line_based):
15916 Use them to preserve column positions.
15917 (syms_of_window): Initialize them.
15918
15919 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15920 (HPOS . VPOS) pair.
15921
15922 * dispextern.h (move_it_in_display_line): Declare.
15923
159242008-06-05 Juanma Barranquero <lekktu@gmail.com>
15925
15926 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15927 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15928 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15929
159302008-06-04 Juanma Barranquero <lekktu@gmail.com>
15931
15932 * window.c (Fset_window_parameter): Doc fix.
15933 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15934
159352008-06-04 Joakim Verona <joakim@verona.se>
15936
15937 * window.h (struct window): Add new member window_parameters.
15938
15939 * window.c (Fwindow_parameters, Fwindow_parameter)
15940 (Fset_window_parameter): New defuns.
15941 (syms_of_window): Defsubr the new defuns.
15942 (make_window): Initialize window_parameters to nil.
15943
159442008-06-04 John Paul Wallington <jpw@pobox.com>
15945
15946 * eval.c (Fdefmacro): Doc fix.
15947
159482008-06-04 Kenichi Handa <handa@m17n.org>
15949
15950 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15951 Be sure to call setup_coding_system when we find a proper coding system.
15952 (detect_coding_system): Fix handling of coding->head_ascii.
15953
159542008-06-03 Andreas Schwab <schwab@suse.de>
15955
15956 * font.c (font_prop_validate_spacing): Fix last change.
15957
159582008-06-03 Kenichi Handa <handa@m17n.org>
15959
15960 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15961 (font_parse_fcname): Fix handling of unknown key.
15962
15963 * xfont.c (xfont_list): Try an alias.
15964
15965 * charset.c (char_charset): Return NULL if the arg charset_list is
15966 specified and C doesn't belong to any of them.
15967
159682008-06-02 Chip Coldwell <coldwell@redhat.com>
15969
15970 * font.c (font_pixel_size): Don't take cdr of an integer.
15971
159722008-06-02 Jim Meyering <meyering@redhat.com>
15973
15974 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15975 * alloc.c (xfree): Return right away for a NULL arg.
15976 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15977 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15978 * mac.c (create_apple_event_from_event_ref): Likewise.
15979 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15980 Likewise.
15981 * doprnt.c (doprnt1): Likewise.
15982 * frame.c (frame): Likewise.
15983 * keyboard.c (wipe_kboard): Likewise.
15984 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15985 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15986 * term.c (tty_default_color_capabilities, maybe_fatal)
15987 (delete_tty): Likewise.
15988 * w16select.c (string): Likewise.
15989 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15990 * w32bdf.c (w32_free_bdf_font): Likewise.
15991 * w32fns.c (w32_unload_font): Likewise.
15992 * w32font.c (w32font_close): Likewise.
15993 * window.c (size_window): Likewise.
15994 * xselect.c (receive_incremental_selection): Likewise.
15995 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15996 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15997 * w32.c (stat): Likewise.
15998
15999 Remove useless if-before-free tests.
16000 * editfns.c (Fset_time_zone_rule): Likewise.
16001 * lread.c (nosuffix): Likewise.
16002 * ralloc.c (get_bloc): Likewise.
16003 * regex.c (reg_free): Likewise.
16004 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16005 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16006 * xsmfns.c (smc_save_yourself_CB): Likewise.
16007
160082008-06-02 Kenichi Handa <handa@m17n.org>
16009
16010 * font.c (font_find_for_lface): Handle float font size.
16011 (font_open_for_lface): Likewise.
16012
16013 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16014 comparing the properties.
16015
160162008-06-01 Jason Rumney <jasonr@gnu.org>
16017
16018 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16019 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16020 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16021 Don't add empty script list.
16022 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16023
160242008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16025
16026 * Makefile.in (dot, dotdot): Remove, update users.
16027 ".." has been used elsewhere in the file for a long time.
16028 (LIBXT_STATIC): Remove conditional based on unused variable.
16029
160302008-06-01 Miles Bader <miles@gnu.org>
16031
16032 * xfaces.c (Vface_remapping_alist): New variable.
16033 (syms_of_xfaces): Initialize it.
16034 (enum named_merge_point_kind): New type.
16035 (struct named_merge_point): Add `named_merge_point_kind' field.
16036 (push_named_merge_point): Make cycle detection respect different
16037 named-merge-point kinds.
16038 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16039 Remove face-name alias resolution.
16040 (lface_from_face_name): New definition using
16041 `lface_from_face_name_no_resolve'.
16042 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16043 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16044 (get_lface_attributes): New definition that layers face-remapping on
16045 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16046 (lookup_basic_face): New function.
16047 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16048 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16049 `get_lface_attributes'.
16050 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16051 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16052 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16053
16054 * xdisp.c (init_iterator): Pass base_face_id through
16055 `lookup_basic_face' when we actually use it as a face-id.
16056 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16057 DEFAULT_FACE_ID.
16058
16059 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16060 lookup the initial face-id.
16061
16062 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16063
160642008-06-01 Juanma Barranquero <lekktu@gmail.com>
16065
16066 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16067 (Fremove_text_properties): Fix typos in docstrings.
16068
160692008-05-31 Kenichi Handa <handa@m17n.org>
16070
16071 * font.c (font_list_entities): Fix the car part of data to be
16072 stored in the cache.
16073
16074 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16075
160762008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16077
16078 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16079 Add a `test' argument so another predicate than `equal' can be used.
16080 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16081 (map_char_table): Remove unused vars `c' and `i'.
16082 * lisp.h (Foptimize_char_table): Adjust declaration.
16083 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16084
160852008-05-30 Kenichi Handa <handa@m17n.org>
16086
16087 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16088 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16089 defined.
16090
160912008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16092
16093 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16094 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16095 frame-local settings for the same variable.
16096
160972008-05-30 Kenichi Handa <handa@m17n.org>
16098
16099 * fontset.c (Ffont_info): Move to font.c.
16100 (syms_of_fontset): Delete defsubr of Sfont_info.
16101
16102 * font.c (font_style_to_value, font_score): Delete casting of the
16103 args to xstcasecmp.
16104 (register_font_driver): Increment num_font_drivers only when
16105 registering the driver globally.
16106 (Ffont_info): Move from fontset.c. Handle a font object too.
16107 (syms_of_font): Defsubr Sfont_info.
16108
161092008-05-29 Kenichi Handa <handa@m17n.org>
16110
16111 * coding.h (enum define_coding_utf8_arg_index): New enum.
16112 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16113 coding_attr_utf_bom.
16114 (enum utf_bom_type): Rename from utf_16_bom_type.
16115 (struct utf_16_spec): Adjust for the above change.
16116 (struct coding_system): Add utf_8_bom in `spec' union.
16117
16118 * coding.c (CODING_UTF_8_BOM): New macro.
16119 (enum coding_category): Delete coding_category_utf_8, add
16120 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16121 coding_category_utf_8_sig.
16122 (CATEGORY_MASK_UTF_8): Delete it.
16123 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16124 (CATEGORY_MASK_UTF_8_SIG): New macros.
16125 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16126 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16127 CATEGORY_MASK_UTF_8_SIG.
16128 (CATEGORY_MASK_UTF_8): New macro.
16129 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16130 (detect_coding_utf_8): Check BOM.
16131 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16132 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16133 (encode_coding_utf_16): Likewise.
16134 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16135 (detect_coding, detect_coding_system): Handle utf-8-auto.
16136 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16137 (syms_of_coding): Fix setting up of Vcoding_category_table.
16138
161392008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16140
16141 * process.c (Faccept_process_output): If `millisec' is non-nil,
16142 `seconds' default to 0.
16143 (wait_reading_process_output): Also return non-nil if we read output
16144 from a non-running process.
16145
161462008-05-29 Jason Rumney <jasonr@gnu.org>
16147
16148 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16149 `raster' specified.
16150 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16151 in the uniscribe backend, but disallow any font that has no
16152 unicode subrange support.
16153
161542008-05-29 Juanma Barranquero <lekktu@gmail.com>
16155
16156 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16157 Fix typos in docstrings.
16158
161592008-05-29 Kenichi Handa <handa@m17n.org>
16160
16161 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16162 (Fx_family_fonts): Set frame correctly.
16163
161642008-05-28 Jason Rumney <jasonr@gnu.org>
16165
16166 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16167
161682008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16169
16170 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16171 calling build_annotations.
16172
161732008-05-28 Juanma Barranquero <lekktu@gmail.com>
16174
16175 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16176 (Fencode_coding_string):
16177 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16178 <latin-extra-code-table>: Fix typos in docstrings.
16179 (syms_of_coding) <coding-system-alist>: Doc fix.
16180 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16181
161822008-05-28 Kenichi Handa <handa@m17n.org>
16183
16184 * fontset.c (Ffont_info): Don't call font_close_object.
16185
16186 * font.c (font_parse_family_registry): Use Ffont_put to validate
16187 foundry and family.
16188 (font_delete_unmatched): Don't check spacing.
16189 (font_list_entities): Add spacing to the spec to list fonts.
16190
16191 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16192 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16193
16194 * coding.c (encode_coding_raw_text): Fix previous change.
16195 (encode_coding_object): When the dst_object is a buffer and is
16196 different from src_object, move gap to PT.
16197
161982008-05-27 Chong Yidong <cyd@stupidchicken.com>
16199
16200 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16201
162022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16203
16204 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16205 all branches. Compute it differently.
16206
16207 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16208
162092008-05-27 Juanma Barranquero <lekktu@gmail.com>
16210
16211 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16212 into "else if () ... else ...".
16213
162142008-05-27 Jason Rumney <jasonr@gnu.org>
16215
16216 * w32font.c (w32font_open_internal): Determine if glyph indices
16217 are likely to work here.
16218
162192008-05-27 Chong Yidong <cyd@stupidchicken.com>
16220
16221 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16222 draw overlap glyphs with appropriate highlighting.
16223
162242008-05-27 Kenichi Handa <handa@m17n.org>
16225
16226 * xfont.c (xfont_open): Fix calculation of font->average_width.
16227
162282008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16229
16230 * casefiddle.c (casify_object): Try to guess better whether the
16231 argument is a byte or a char.
16232
162332008-05-26 Andreas Schwab <schwab@suse.de>
16234
16235 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16236 Always send multiples of format size.
16237
16238 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16239
162402008-05-26 Jason Rumney <jasonr@gnu.org>
16241
16242 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16243 (compute_metrics): Don't set failure if we just cleared the cache.
16244 (w32_weight_table): Remove unused variable.
16245 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16246 backwards compatibility.
16247
162482008-05-25 Kenichi Handa <handa@m17n.org>
16249
16250 * w32term.c (x_draw_glyph_string):
16251 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16252
16253 * xfaces.c: Delete unused function prototypes.
16254 (xstrlwr, font_frame): Delete them.
16255 (clear_face_cache): Delete unused variable.
16256
16257 * xftfont.c (xftfont_open): Delete unused variable.
16258 If underline_thickness is not 1, adjust underline_position.
16259
16260 * ftxfont.c (ftxfont_open): Delete unused variable.
16261
16262 * fontset.c (face_for_char): Optimize for the case of no charset
16263 property.
16264
16265 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16266 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16267 (otf_open, font_otf_capability, generate_otf_features)
16268 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16269 Comment out by surrounding "#if 0" and "#endif" for the moment.
16270 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16271 (syms_of_font): Codes for accessing above commented out.
16272
162732008-05-24 Eli Zaretskii <eliz@gnu.org>
16274
16275 * w32proc.c: Include dispextern.h.
16276
16277 * w32.c: Include dispextern.h.
16278
162792008-05-23 Juanma Barranquero <lekktu@gmail.com>
16280
16281 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16282 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16283 Fix typos in docstrings.
16284
162852008-05-23 Jason Rumney <jasonr@gnu.org>
16286
16287 * xsmfns.c: Remove includes that are already included by config.h.
16288
162892008-05-23 Kenichi Handa <handa@m17n.org>
16290
16291 * charset.c (Qemacs, charset_emacs): New variables.
16292 (char_charset): Fix for non-Unicode characters.
16293 (syms_of_charset): Define charset_emacs.
16294
16295 * w32term.c (x_draw_glyph_string): Be sure to update
16296 s->underline_thickness and s->underline_position. Be sure to draw
16297 underline within the current line area.
16298
16299 * xterm.c (x_draw_glyph_string): Be sure to update
16300 s->underline_thickness and s->underline_position. Be sure to draw
16301 underline within the current line area.
16302
16303 * fontset.c: Delete unused variables and add casting for char *
16304 throughout the file.
16305 (fontset_font): Try the fallback fonts of the current fontset
16306 before consulting the default fontset.
16307
16308 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16309
16310 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16311
163122008-05-22 Jason Rumney <jasonr@gnu.org>
16313
16314 * font.c: Don't include strings.h.
16315
16316 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16317
16318 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16319 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16320 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16321 to call xstrcasecmp.
16322
16323 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16324
16325 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16326
16327 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16328
16329 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16330
163312008-05-22 Kenichi Handa <handa@m17n.org>
16332
16333 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16334
16335 * font.c (font_prop_validate_style): Adjust for the format
16336 change of font_style_table.
16337
16338 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16339 two args.
16340
16341 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16342 two args.
16343
163442008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16345
16346 * minibuf.c (keys_of_minibuf): Delete.
16347 * lisp.h (keys_of_minibuf): Delete.
16348 * emacs.c (main): Don't call keys_of_minibuf.
16349
163502008-05-22 Kenichi Handa <handa@m17n.org>
16351
16352 * ftfont.c (ftfont_resolve_generic_family): Rename from
16353 ftfont_list_generic_family. Return a single family for each
16354 generic family.
16355 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16356 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16357 Call font_add_log.
16358 (ftfont_match): Call font_add_log.
16359
16360 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16361 (FONT_DEBUG): Define it.
16362 (font_add_log): Extern it.
16363 (font_assert): Rename from xassert.
16364
16365 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16366 (xfont_list_family): Call font_add_log.
16367 (xfont_match): Likewise.
16368 (memq_no_quit): Delete.
16369
16370 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16371 call of Ffont_xlfd_name.
16372
16373 * xfaces.c (struct table_entry, slant_table, weight_table)
16374 (swidth_table): Move to font.c.
16375
16376 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16377 xassert are changed to font_assert. Delete many unused variables.
16378 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16379 New variables.
16380 (struct table_entry): Move from xfaces.c and modified.
16381 (weight_table, slant_table, width_table): Move from xfaces.c and
16382 contents adjusted for the change of struct table_entry.
16383 (font_style_to_value, font_style_symbolic): Adjust for the
16384 format change of font_style_table.
16385 (font_parse_family_registry): Don't overwrite existing foundry and
16386 family of font_spec.
16387 (font_score): Fix calculation of diff for sizes.
16388 (font_sort_entites): Call font_add_log.
16389 (font_delete_unmatched): Return a newly created list.
16390 (font_list_entities): Fix previous change. Call font_add_log.
16391 (font_matching_entity, font_open_entity, font_close_entity):
16392 Call font_add_log.
16393 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16394 (Finternal_set_font_style_table): Delete.
16395 (BUILD_STYLE_TABLE): New macro.
16396 (build_style_table): New function.
16397 (Vfont_log, font_log_env_checked): New variables.
16398 (font_add_log): New function.
16399 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16400 Declare Lisp variables "font-weight-table", "font-slant-table",
16401 "font-width-table", and "font-log". Initialize font_style_table.
16402
164032008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16404
16405 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16406
164072008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16408 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16409
16410 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16411 (Vframe_alpha_lower_limit): New variable.
16412 (x_set_alpha): New function.
16413
16414 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16415
16416 * xfns.c (x-create-frame, Qalpha):
16417 Initialize the frame parameter `alpha'.
16418 * xterm.c (OPAQUE, OPACITY): New.
16419 (x_set_frame_alpha): New function.
16420 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16421
16422 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16423 * w32fns.c (w32_frame_parm_handlers): Likewise.
16424
164252008-05-20 Jason Rumney <jasonr@gnu.org>
16426
16427 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16428 truetype fonts to opentype list.
16429
164302008-05-20 Juanma Barranquero <lekktu@gmail.com>
16431
16432 * fontset.c (Ffontset_info): Doc fix.
16433 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16434 <ignore-relative-composition>: Fix typos in docstrings.
16435
16436 * font.c (syms-of-font) <font-encoding-alist>:
16437 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16438 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16439 (Ffont_otf_alternates): Doc fixes.
16440
164412008-05-20 Kenichi Handa <handa@m17n.org>
16442
16443 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16444 font.h through out the file.
16445 (FONT_DRIVERS): Rename from FONTOBJ.
16446 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16447 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16448
16449 * emacs.c (main): Call syms_of_font unconditionally.
16450
16451 * font.h (find_font_encoding): Extern it.
16452
16453 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16454 fontset.c.
194d44e7 16455 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16456 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16457 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16458 only when HAVE_WINDOW_SYSTEM is defined.
16459 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16460 when HAVE_WINDOW_SYSTEM is defined.
16461
16462 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16463 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16464
16465 * xfaces.c: Include font.h unconditionally.
16466 (merge_face_ref, merge_face_vectors)
16467 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16468
164692008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16470
16471 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16472 indirect_variable.
16473 * eval.c (lisp_indirect_variable): New fun.
16474 (Fuser_variable_p): Use it.
16475
164762008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16477
16478 * lisp.h (indirect_variable):
16479 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16480 Use Lisp_Symbol pointers rather than Lisp_Object.
16481 Adjust callers.
16482 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16483 To this end, change calling-convention.
16484
16485 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16486 if some non-hidden buffers are selected by string&pred.
16487
164882008-05-19 Chong Yidong <cyd@stupidchicken.com>
16489
16490 * process.c (wait_reading_process_output): Always check status
16491 when in batch mode.
16492
164932008-05-19 Kenichi Handa <handa@m17n.org>
16494
16495 * font.c (font_list_entities): Fix handling of cache.
16496 (font_matching_entity): Likewise.
16497
16498 * ftfont.c (cs_iso8859_1): Delete.
16499 (ft_face_cache): New variable.
16500 (struct ftfont_info): New member fc_charset_idx.
16501 (ftfont_build_basic_charsets): Delete.
16502 (fc_charset_table): New variable.
16503 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16504 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16505 Callers changed.
16506 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16507 (ftfont_spec_pattern): New argument fc_charset_idx.
16508 Check registry more rigidly. Change callers.
16509 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16510 change of :font-entity property of the font.
16511
16512 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16513 property of the font.
16514
165152008-05-18 Juanma Barranquero <lekktu@gmail.com>
16516
16517 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16518 (Funencodable_char_position, Fcheck_coding_systems_region)
16519 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16520 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16521 (Ffind_operation_coding_system, Fset_coding_system_priority)
16522 (Fcoding_system_eol_type): Doc fixes.
16523
165242008-05-17 Glenn Morris <rgm@gnu.org>
16525
16526 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16527
165282008-05-16 Eli Zaretskii <eliz@gnu.org>
16529
16530 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16531 and st_gid.
16532
16533 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16534 HAVE_WINDOW_SYSTEM is not defined.
16535
16536 * xfaces.c (merge_face_ref, merge_face_vectors)
16537 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16538 HAVE_WINDOW_SYSTEM is defined.
16539 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16540
165412008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16542
16543 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16544
165452008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16546
16547 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16548
165492008-05-15 Kenichi Handa <handa@m17n.org>
16550
16551 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16552 preference.
16553
165542008-05-15 Glenn Morris <rgm@gnu.org>
16555
16556 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16557
165582008-05-15 Chong Yidong <cyd@stupidchicken.com>
16559
16560 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16561 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16562
16563 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16564
165652008-05-15 Kenichi Handa <handa@m17n.org>
16566
16567 * ftfont.c (ftfont_list): Downcase family name to check generic
16568 families.
16569
16570 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16571 font-spec for QCfont value.
16572
16573 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16574 buffer. Check the return value of it.
16575
165762008-05-14 Jason Rumney <jasonr@gnu.org>
16577
16578 * w32term.c (w32_get_glyph_overhangs): Remove.
16579 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16580
165812008-05-14 Kenichi Handa <handa@m17n.org>
16582
16583 * font.c (font_prop_validate): Make nil a valid value.
16584 (font_clear_cache): Check if the cached vector of entities is nil
16585 or not.
16586
165872008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16588
16589 * emacs.c (main_thread): Conditionalize on
16590 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16591 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16592
16593 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16594 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16595 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16596
165972008-05-14 Kenichi Handa <handa@m17n.org>
16598
16599 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16600 has no corresponding coding system.
16601
166022008-05-14 Jason Rumney <jasonr@gnu.org>
16603
16604 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16605
16606 * w32font.h (w32font_open_internal): Update declaration.
16607
16608 * w32font.c (w32font_open_internal): Change last argument from
16609 w32font_info struct to font object. Fill in font object from
16610 font_entity. Get Outline metrics if possible. Use them to
16611 calculate underline position and thickness. Use xlfd name as name
16612 property. Don't set codepage.
16613 (w32font_open): Pass font_object to w32font_open_internal. Don't
16614 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16615 (w32font_draw): Use s->font.
16616 (clear_cached_metrics): Don't clear non-existent blocks.
16617
16618 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16619 font was not found.
16620 (x_draw_glyph_string): Use underline position and thickness from font.
16621
16622 * w32uniscribe.c (uniscribe_open): Pass font_object to
16623 w32font_open_internal.
16624
166252008-05-14 Kenichi Handa <handa@m17n.org>
16626
16627 These changes are to delete all legacy font-handling codes, and
16628 make Emacs use only font-backends.
16629
16630 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16631 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16632
16633 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16634
16635 * charset.h (Vcharset_non_preferred_head)
16636 (Vcurrent_iso639_language): Extern them.
16637
16638 * charset.c (Vcharset_non_preferred_head): New variable.
16639 (Vcurrent_iso639_language): New variable.
16640 (syms_of_charset): Declare it as a Lisp variable.
16641 (char_charset): Don't check non preferred charsets. As a last
16642 resort, return charset_unicode.
16643 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16644
16645 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16646 conditionals. Don't check enable_font_backend. Delete all codes
16647 used only when USE_FONT_BACKEND is not defined.
16648
16649 * dispextern.h (struct glyph_string): Change type of `font' to
16650 `struct font *'.
16651 (struct glyph_string): New member underline_position and
16652 underline_thickness.
16653 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16654 (struct face): Change type of `font' to `struct font *'. Remove
16655 members `font_name', `font_info_id'.
16656 (per_char_metric, encode_char): Delete externs.
16657 (calc_pixel_width_or_height): Adjust the prototype.
16658
16659 * emacs.c (enable_font_backend): Delete extern.
16660 (main): Don't set enable_font_backend. Don't check the command
16661 line argument "-disable-font-backend".
16662
16663 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16664 (enum font_property_index): New members FONT_DPI_INDEX,
16665 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16666 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16667 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16668 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16669 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16670 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16671 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16672 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16673 (struct font_spec, struct font_entity): New structs.
16674 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16675 (struct font): Many members from old "struct font_info" moved to
16676 here. Members font and entity deleted.
16677 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16678 the new font-related objects.
16679 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16680 (CHECK_FONT_GET_OBJECT): Likewise.
16681 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16682 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16683 (struct font_driver): New members case_sensitive anc check. Type
16684 of the member list and open changed.
16685 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16686 (font_symbolic_width, font_find_object, font_get_spec)
16687 (font_set_lface_from_name): Delete extern.
16688 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16689
16690 * font.c: Include <strings.h>.
16691 (enable_font_backend): Delete it.
16692 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16693 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16694 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16695 (null_string): Delete it.
16696 (null_vector): Make it static.
16697 (font_family_alist): Delete it.
16698 (Qnormal): Extern it.
16699 (QCextra, QClanguage): Delete it.
16700 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16701 (font_make_spec, font_make_entity, font_make_object)
16702 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16703 the string. Callers changed.
16704 (font_pixel_size): Adjusted for the format change of font-related
16705 objects.
16706 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16707 (font_style_to_value, font_style_symbolic): New function.
16708 (build_font_family_alist): Delete it.
16709 (font_registry_charsets): Use Fassoc_string instead of
16710 assq_no_quit.
16711 (font_prop_validate_symbol): Don't return null_string.
16712 (font_prop_validate_style): Adjusted for the change of
16713 style-related values in a font vector.
16714 (font_property_table): Delete entries for QClanguage and
16715 QCantialias, add entries for QCavgwidth.
16716 (get_font_prop_index): Delete the 2nd argument FROM.
16717 (font_prop_validate): Arguments changed.
16718 (font_put_extra): Adjusted for the change of font-related objects.
16719 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16720 (font_parse_fcname, font_unparse_fcname)
16721 (font_prepare_composition): Likewise.
16722 (font_parse_family_registry): Renamed from font_merge_old_spec.
16723 (otf_open): Delete the 1st arg entity.
16724 (font_otf_capability): Adjusted for the above change.
16725 (font_score): New arg alternate_families. Adjusted for the change
16726 of font-related objects.
16727 (font_sort_entites): New arg best_only.
16728 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16729 Delete them.
16730 (font_match_p): Check alternate families.
16731 (font_find_object): Delete it.
16732 (font_check_object): New function.
16733 (font_clear_cache): Adjusted for the change of font-related objects.
16734 (font_delete_unmatched): New arg.
16735 (font_list_entities): Call font_driver->list with a spec that
16736 doesn't specify style-related properties.
16737 (font_matching_entity): Arguments changed. Caller changed.
16738 (font_open_entity): Adjusted for the change of font-related objects.
16739 (font_close_object, font_has_char, font_encode_char)
16740 (font_get_name, font_get_spec): Likewise.
16741 (font_spec_from_name, font_clear_prop, font_update_lface):
16742 New functions.
16743 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16744 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16745 (font_at): Adjusted for the change of font-related objects.
16746 (font_range): New function.
16747 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16748 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16749 (Fcopy_font_spec, Fmerge_font_spec): New function.
16750 (Ffont_family_list): Renamed from list-families.
16751 (Finternal_set_font_style_table): Arguments changed.
16752 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16753 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16754 change of font-related objects.
16755 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16756
16757 * fontset.h (struct font_info): Delete it. Most members go to
16758 struct font.
16759 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16760 (enum FONT_SPEC_INDEX): Delete it.
16761 (font_info, list_fonts_func, load_font_func, query_font_func)
16762 (set_frame_fontset_func, find_ccl_program_func)
16763 (get_font_repertory_func, new_fontset_from_font_name): Delete
16764 externs.
16765 (fontset_from_font_name): Extern it.
16766 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16767 (FONT_INFO_FROM_FACE): Deleted.
16768 (face_for_font): Adjust prototype.
16769
16770 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16771 conditionals. Don't check enable_font_backend. Delete all codes
16772 used only when USE_FONT_BACKEND is not defined.
16773 (get_font_info_func, list_font_func, load_font_func)
16774 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16775 (get_font_repertory_func): Delete them.
16776 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16777 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16778 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16779 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16780 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16781 (fontset_compare_rfontdef): New function.
16782 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16783 rfont-defs by qsort. Adjusted for the change of font-group vector.
16784 (load_font_get_repertory): Deleted.
16785 (fontset_find_font): Use new macros to ref/set elements of
16786 font-def and rfont-def.
16787 (fontset_font): Fix the timing of remembering that no font for C.
16788 (free_face_fontset): Do nothing if the face has no fontset.
16789 (face_suitable_for_char_p): Use new macros to ref/set elements of
16790 rfont-def.
16791 (face_for_char): Likewise. Call face_for_char with font_object.
16792 (fs_load_font): Delete. Delete #pragma surrounding it.
16793 (fs_query_fontset): Use strcasecmp instead of strcmp.
16794 (generate_ascii_font_name): Adjusted for the format change of
16795 font-spec.
16796 (Fset_fontset_font): Likewise. Use new macros to set elements of
16797 font-def.
16798 (Fnew_fontset): Use font_unparse_xlfd to generate
16799 FONTSET_ASCII (fontset).
16800 (new_fontset_from_font_name): Deleted.
16801 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16802 a fontset is already created for the font. FIx updating of
16803 Vfontset_alias_alist.
16804 (fontset_ascii_font): Deleted.
16805 (Ffont_info): Adjusted for the format change of font-spec.
16806 (Finternal_char_font): Likewise.
16807 (Ffontset_info): Likewise.
16808 (syms_of_fontset): Don't check load_font_func.
16809
16810 * fns.c (internal_equal): Handle PREV_FONT.
16811
16812 * frame.h: Delete USE_FONT_BACKEND conditional.
16813
16814 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16815 conditionals. Don't check enable_font_backend. Delete all codes
16816 used only when USE_FONT_BACKEND is not defined.
16817 (x_set_font): Call x_new_font, not x_new_fontset2.
16818 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16819 already set for the frame.
16820
16821 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16822 a font-entity by font_make_entity. Use font_intern_prop instead
16823 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16824 font property. If a font is scalable, set avgwidth property to 0.
16825 Set font-entity property by font_put_extra.
16826 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16827 (ffont_driver): Adjusted for the change of struct font_driver.
16828 (ftfont_spec_pattern): New function.
16829 (ftfont_list): Return a list, not vector.
16830 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16831 (ftfont_list_family): Don't downcase names.
16832 (ftfont_free_entity): Deleted.
16833 (ftfont_open): Return a font-object. Adjusted for the change of
16834 struct font. Get underline_thickness and underline_position from
16835 font property. Don't update dpyinfo->smallest_font_height and
16836 dpyinfo->smallest_char_width.
16837 (ftfont_close): Don't free `struct font'.
16838 (ftfont_has_char): Adjusted for the format change of font-entity.
16839 (ftfont_encode_char, ftfont_text_extents): Likewise.
16840
16841 * ftxfont.c (ftxfont_list): Return a list, not vector.
16842 (ftxfont_open): Return a font-object. Adjusted for the change of
16843 struct font. Get underline_thickness and underline_position from
16844 font property. Don't update dpyinfo->smallest_font_height and
16845 dpyinfo->smallest_char_width.
16846 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16847 (ftxfont_draw): Adjusted for the change of struct font.
16848
16849 * image.c (image_ascent): Don't include "charset.h". Include
16850 "character.h" and "font.h".
16851
16852 * lisp.h (enum pvec_type): New member PREV_FONT.
16853 (Fassoc_string): EXFUN it.
16854
16855 * print.c: Include font.h.
16856 (print_object): Handle font-related objects.
16857
16858 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16859 conditionals. Don't check enable_font_backend. Delete all codes
16860 used only when USE_FONT_BACKEND is not defined.
16861 (handle_auto_composed_prop): Do nothing if it->f is not on a
16862 window system. Check how many following characters can be
16863 displayed by the same font.
16864 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16865 'struct font *'.
16866 (get_char_face_and_encoding): Assign the whole encoding task to
16867 the `encode-char' method of a font driver.
16868 (fill_composite_glyph_string): Adjusted for the change of `struct
16869 face' and `struct glyph_string'.
16870 (fill_glyph_string): Likewise.
16871 (get_per_char_metric): Arguments changed.
16872 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16873 and `struct glyph_string'.
16874 (produce_stretch_glyph, calc_line_height_property)
16875 (x_produce_glyphs): Likewise.
16876
16877 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16878 conditionals. Don't check enable_font_backend. Delete all codes
16879 used only when USE_FONT_BACKEND is not defined. Use
16880 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16881 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16882 (Qp): Extern them.
16883 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16884 Deleted.
16885 (struct font_name): Deleted.
16886 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16887 (compare_fonts_by_sort_order): New function.
16888 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16889 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16890 Deleted.
16891 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16892 compare_fonts_by_sort_order.
16893 (Fx_font_family_list): Call Ffont_family_list.
16894 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16895 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16896 (face_symbolic_slant, face_symbolic_swidth)
16897 (split_font_name_into_vector, build_font_name_from_vector)
16898 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16899 (font_rescale_ratio, split_font_name, build_font_name)
16900 (free_font_names, sort_fonts, x_face_list_fonts)
16901 (face_font_available_p, sorted_font_list, cmp_font_names)
16902 (font_list_1, concat_font_list, font_list, remove_duplicates):
16903 Deleted.
16904 (Fx_list_fonts): Use Ffont_list.
16905 (LFACE_AVGWIDTH): Deleted.
16906 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16907 by FONTP.
16908 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16909 (set_lface_from_font_name): Delete it.
16910 (set_lface_from_font): Renamed from
16911 set_lface_from_font_and_fontset. Caller changed. Don't set
16912 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16913 for face.
16914 (merge_face_vectors): Copy font-spec if necessary.
16915 Clear properties of the font-spec if necessary.
16916 (merge_face_ref): Clear properties of the font-spec if necessary.
16917 (Finternal_set_lisp_face_attribute): Likewise.
16918 (set_font_frame_param): Use font_load_for_lface to load a
16919 font-object, and call Fmodify_frame_parameters with it.
16920 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16921 font name by Ffont_xlfd_name.
16922 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16923 QCslant, and QCwidth.
16924 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16925 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16926 Compare fonts by EQ.
16927 (lookup_non_ascii_face): Deleted.
16928 (face_for_font): The 2nd argument changed.
16929 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16930 Check atomic font properties by case insensitive.
16931 (realize_non_ascii_face): Set face->overstrike correctly.
16932 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16933 (dump_realized_face): Get font name from
16934 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16935
16936 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16937 conditionals. Don't check enable_font_backend. Delete all codes
16938 used only when USE_FONT_BACKEND is not defined.
16939 (xic_create_xfontset): Original code deleted and renamed from
16940 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16941 (x_make_gc): Don't set GCFont in GCs.
16942 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16943 opened by "fixed".
16944 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16945 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16946 get_font_repertory_func.
16947
16948 * xfont.c: Include <stdlib.h> and "ccl.h".
16949 (struct xfont_info): New structure.
16950 (xfont_query_font): Deleted.
16951 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16952 moved from xterm.c.
16953 (xfont_driver): Adjusted for the change of struct font_driver.
16954 (compare_font_names): New function.
16955 (xfont_list_pattern): Sort font names case insensitively. Make
16956 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16957 (xfont_list): Return a list, not vector.
16958 (xfont_match): If the font doesn't have QCname property, generate
16959 a name from the other font properties.
16960 (xfont_open): Return a font-object. Adjusted for the change of
16961 struct font. Get underline_thickness and underline_position from
16962 font property. Don't update dpyinfo->smallest_font_height and
16963 dpyinfo->smallest_char_width.
16964 (xfont_close): Don't free struct font.
16965 (xfont_prepare_face): Adjusted for the change of struct font.
16966 (xfont_done_face): Deleted.
16967 (xfont_has_char): Adjusted for the change of struct font.
16968 (xfont_encode_char, xfont_draw): Likewise.
16969 (xfont_check): New function.
16970
16971 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16972 callback function.
16973 (xftfont_match): Adjusted for the format change of font-entity.
16974 (xftfont_open): Adjusted for the format change of font-entity and
16975 font-object. Adjusted for the change of struct font. Return a
16976 font-object. Don't update dpyinfo->smallest_font_height and
16977 dpyinfo->smallest_char_width.
16978 (xftfont_close): Block input while calling XftFontClose.
16979 (xftfont_prepare_face): Don't block input while calling
16980 xftfont_get_colors. Adjusted for the change of struct font.
16981 (xftfont_shape): Return value of error case fixed.
16982
16983 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16984
16985 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16986 conditionals.
16987 (FONT_WIDTH): Return (f)->max_width.
16988 (struct x_display_info): Delete member `font'.
16989 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16990 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16991 (struct x_output): Change type of `font' to `struct font *'.
16992
16993 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16994 conditionals. Don't check enable_font_backend. Delete all codes
16995 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16996 (x_per_char_metric, x_encode_char): Deleted.
16997 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16998 (x_compute_glyph_string_overhangs): Adjusted for the change of
16999 `struct face'.
17000 (x_draw_glyph_string_foreground)
17001 (x_draw_composite_glyph_string_foreground): Likewise.
17002 (x_draw_glyph_string): Likewise. Use font->underline_position and
17003 font->underline_thickness.
17004 (x_new_font): Renamed from x_new_fontset2.
17005 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17006 (x_check_font): Call `check' method of a font driver.
17007 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17008 (x_query_font, x_get_font_repertory): Deleted.
17009 (x_find_ccl_program): Renamed and moved to xfont.c.
17010 (x_redisplay_interface): Adjusted for the change of `struct
17011 redisplay_interface'.
17012
17013 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17014 conditionals. Don't check enable_font_backend. Delete all codes
17015 used only when USE_FONT_BACKEND is not defined. Surround non-used
17016 code by "#ifdef OLD_FONT" and "endif".
17017 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17018
17019 * w32font.h (struct w32font_info): New member.
17020 (FONT_COMPAT): New macro.
17021 (w32font_open_internal): Prototype adjusted.
17022
17023 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17024 OLD_FONT" and "endif".
17025
17026 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17027 conditionals. Don't check enable_font_backend. Delete all codes
17028 used only when USE_FONT_BACKEND is not defined.
17029 (w32font_open): Return a font-object. Make a font-object by
17030 font_make_object. Adjusted for the change of struct w32font_info.
17031 (w32font_close): Don't free struct font. Adjusted for the change
17032 of struct w32font_info.
17033 (w32font_encode_char, w32font_text_extents, w32font_draw):
17034 Adjusted for the change of struct w32font_info.
17035 (w32font_draw): Likewise.
17036 (w32font_list_internal): Return a list, not vector.
17037 (w32font_open_internal): Change the 4th arg to font-object.
17038 Adjusted for the change of struct w32font_info and font-object format.
17039 (add_font_name_to_list): Don't downcase names.
17040 (w32_enumfont_pattern_entity): Make a font-entity by
17041 font_make_entity. Adjusted for the format change of font-entity.
17042 Use FONT_SET_STYLE to set a style-related font property. If a
17043 font is scalable, set avgwidth property to 0. Set font-entity
17044 property by font_put_extra.
17045 (font_matches_spec): Adjusted for the format change of font-entity.
17046 (w32_weight_table, w32_decode_weight): New variables.
17047 (w32_encode_weight): New function.
17048 (fill_in_logfont): Adjusted for the format change of font-spec.
17049 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17050 weight value.
17051 (w32font_driver): Adjusted for the change of struct font_driver.
17052
17053 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17054 conditionals. Don't check enable_font_backend. Surround non-used
17055 code by "#ifdef OLD_FONT" and "endif".
17056 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17057 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17058
17059 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17060 conditionals. Don't check enable_font_backend. Delete all codes
17061 used only when USE_FONT_BACKEND is not defined. Surround non-used
17062 code by "#ifdef OLD_FONT" and "endif".
17063
17064 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17065 (uniscribe_open): Return value changed to font-object.
17066 Adjusted for the format change of font-object.
17067 (uniscribe_otf_capability): Adjusted for the change of struct font.
17068 (add_opentype_font_name_to_list): Don't downcase names.
17069 (uniscribe_font_driver): Adjusted for the change of struct
17070 font_driver.
17071
170722008-05-13 Chong Yidong <cyd@stupidchicken.com>
17073
17074 * dispnew.c (update_frame_1): Check if tty output is still valid
17075 before flushing it.
17076
170772008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17078
17079 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17080 to Gtk+ menus.
17081
170822008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17083
17084 * dired.c (file_name_completion): Tweak the code so as to always do it
17085 in a single pass. Tighten the scope of some variables.
17086
17087 * dired.c (Qdefault_directory): New var.
17088 (file_name_completion): Use it instead of Fexpand_file_name.
17089 (syms_of_dired): Initialize it.
17090
170912008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17092
17093 * fileio.c (double_dollars): Remove dead code.
17094
170952008-05-10 Eli Zaretskii <eliz@gnu.org>
17096
17097 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17098 Mention w32-get-true-file-attributes in doc string.
17099
17100 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17101
171022008-05-09 Glenn Morris <rgm@gnu.org>
17103
17104 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17105 2008-04-23.
17106
171072008-05-09 Eli Zaretskii <eliz@gnu.org>
17108
17109 Support for reporting owner and group of each file on MS-Windows:
17110 * dired.c (stat_uname, stat_gname): New functions, with special
17111 implementation for w32.
17112 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17113
17114 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17115 (dflt_group_name): New static variable.
17116 (dflt_group): Rename from the_group.
17117 (init_user_info): Init dflt_group fields. Get user's group name
17118 from LookupAccountSid.
17119 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17120 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17121 New initialization states.
17122 (globals_of_w32): Initialize them to zero. Initialize the default
17123 group name to "None".
17124 (GetFileSecurity_Name): New global var, the name of the function
17125 to call for GetFileSecurity.
17126 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17127 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17128 (get_file_security, get_security_descriptor_owner)
17129 (get_security_descriptor_group, is_valid_sid)
17130 (get_file_security_desc, get_rid, get_name_and_id)
17131 (get_file_owner_and_group): New functions.
17132 (stat): Use get_file_security_desc and get_file_owner_and_group to
17133 report the owner and primary group of each file. Don't ignore the
17134 high 32 bits of file's size, now that st_size is 64-bit wide.
17135 Fix test when to get true file attributes.
17136 (init_user_info): Use get_rid instead of equivalent inline code.
17137 (fstat): Don't ignore the high 32 bits of file's size.
17138
171392008-05-09 Chong Yidong <cyd@stupidchicken.com>
17140
17141 * image.c (png_load): Use correct bit-depth for setting background
17142 color.
17143
171442008-05-08 Eli Zaretskii <eliz@gnu.org>
17145
17146 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17147 epa-hook.elc.
17148
171492008-05-08 Juanma Barranquero <lekktu@gmail.com>
17150
17151 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17152
171532008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17154
17155 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17156 because the original parameters are in pure storage now.
17157 (mac_window): Remove unused params. Update callers.
17158
171592008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17160
17161 * lread.c (substitute_object_recurse): Use lower-level primitives.
17162 Don't signal errors when traversing sub-char-tables.
17163 Don't loop over all the possible characters when traversing char-tables.
17164
17165 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17166 just like we do in print.c.
17167
171682008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17169
17170 * minibuf.c (Ftry_completion): Remove code left over from when we used
17171 scmp instead of Fcompare_strings.
17172
171732008-05-04 Juanma Barranquero <lekktu@gmail.com>
17174
17175 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17176
171772008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17178
17179 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17180 Create bitmap context in native byte order.
17181
17182 * macterm.c (XDrawLine)
17183 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17184 context in native byte order.
17185
171862008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17187
17188 * config.in: Regenerate.
17189
17190 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17191 New definitions for Image I/O support.
17192 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17193 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17194 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17195 (mac_data_provider_release_data, image_load_image_io)
17196 [USE_MAC_IMAGE_IO]: New functions.
17197 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17198 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17199 (init_image_func_pointer) [MAC_OSX]: Remove function.
17200 (image_load_quartz2d) [MAC_OSX]: Check availability of
17201 CGImageCreateWithPNGDataProvider at compile time.
17202 Use lowercase `false' for boolean constant.
17203 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17204 Use image_load_image_io.
17205 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17206 Don't check MyCGImageCreateWithPNGDataProvider.
17207 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17208 Don't call init_image_func_pointer.
17209
17210 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17211
17212 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17213 Make variable non-static.
17214 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17215 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17216
17217 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17218 (RED_FROM_ULONG): Mask off higher bits.
17219 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17220
17221 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17222 Include AvailabilityMacros.h.
17223 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17224 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17225
172262008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17227
17228 * chartab.c (Fset_char_table_range): If range is t, really set all
17229 chars to that value.
17230
172312008-05-03 Eli Zaretskii <eliz@gnu.org>
17232
17233 * dired.c (Ffile_attributes): Don't allow the device number become
17234 negative.
17235
172362008-05-02 Daiki Ueno <ueno@unixuser.org>
17237
17238 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17239
172402008-05-02 Juri Linkov <juri@jurta.org>
17241
17242 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17243 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17244 DEFAULT argument as a list of default values in docstrings.
17245
172462008-05-01 Chong Yidong <cyd@stupidchicken.com>
17247
17248 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17249
172502008-05-01 Martin Rudalics <rudalics@gmx.at>
17251
17252 * dispnew.c (change_frame_size_1): Preserve small windows when
17253 shrinking frames by calling set_window_height|width with third
17254 arg 2.
17255
17256 * window.h (struct window): Replace field too_small_ok by field
17257 resize_proportionally.
17258
17259 * window.c (make_window): Initialize resize_proportionally.
17260 (enlarge_window): Temporarily set resize_proportionally to make
17261 sure that shrink_windows does scale the window proportionally.
17262 (shrink_windows): When window has resize_proportionally set try
17263 to shrink it proportionally by stealing from other windows.
17264 (struct saved_window, Fset_window_configuration)
17265 (compare_window_configurations): Handle resize_proportionally.
17266 (WINDOW_TOTAL_SIZE): New macro.
17267 (window_min_size, shrink_windows, size_window): Use it.
17268 (check_min_window_sizes): Remove. Invalid values of
17269 window-min-height|width are handled by window_min_size_2 now.
17270 (size_window, Fsplit_window, enlarge_window)
17271 (adjust_window_trailing_edge, grow_mini_window): Don't call
17272 check_min_window_sizes.
17273 (window_min_size_2, window_min_size_1, window_min_size):
17274 New argument safe_p for retrieving "safe" minimum sizes.
17275 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17276 (adjust_window_trailing_edge, grow_mini_window):
17277 Adjust arguments of window_min_size... functions.
17278 (shrink_windows): Argument min_size removed. New argument
17279 safe_p allows shrinking windows to their safe minimum sizes.
17280 Calculate minimum size and decide whether a window shall be
17281 deleted for each window individually.
17282 (size_window): When nodelete_p equals 2, tell shrink_windows to
17283 delete windows only if their new minimum size is no more safe.
17284 (shrink_window_lowest_first): Call window_min_size_1 to make
17285 sure to preserve modeline of bottom-most window when resizing
17286 the minibuffer.
17287 (Fset_window_configuration, Fcurrent_window_configuration)
17288 (compare_window_configurations): Do not handle
17289 window-min-height|width any more.
17290 (syms_of_window): Clarify window-min-height|width doc-strings.
17291
172922008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17293
17294 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17295 some more. Copy some of the code from Ftry_completions.
17296 Remove special case code that dates back to initial revision when the
17297 slash was only added when necessary and that can't trigger nowadays.
17298
172992008-04-27 Kenichi Handa <handa@m17n.org>
17300
17301 * font.c (font_prop_validate): Signal `error' instead of `font'.
17302
173032008-04-29 Jason Rumney <jasonr@gnu.org>
17304
17305 * w32fns.c (Fw32_battery_status): New defun.
17306 (syms_of_w32fns): Defsubr it.
17307
173082008-04-28 Andreas Schwab <schwab@suse.de>
17309
17310 * dired.c (file_name_completion): Fix another mixing of encoded
17311 and decoded names.
17312
173132008-04-28 Juanma Barranquero <lekktu@gmail.com>
17314
17315 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17316
173172008-04-27 Juanma Barranquero <lekktu@gmail.com>
17318
17319 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17320
173212008-04-27 Andreas Schwab <schwab@suse.de>
17322
17323 * dired.c (file_name_completion): Fix inappropriate mixing of
17324 encoded and decoded names.
17325
17326 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17327
17328 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17329
173302008-04-26 Eli Zaretskii <eliz@gnu.org>
17331
17332 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17333 2008-03-31, it's not needed anymore with `struct stat' definition
17334 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17335 for the same reasons.
17336
173372008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17338
17339 * m/sparc.h: Additional redefinitions for GNU/Linux.
17340
173412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17342
17343 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17344 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17345 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17346 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17347 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17348 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17349 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17350 Likewise.
17351
17352 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17353 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17354 (mac_ax_number_of_characters): Add externs.
17355 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17356 [USE_MAC_TSM]: Likewise.
17357 (mac_handle_text_input_event) [MAC_OSX]:
17358 Handle kEventTextInputOffsetToPos for no active input area case.
17359 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17360 (mac_handle_document_access_event)
17361 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17362 (install_application_handler) [MAC_OSX]: Register handlers for
17363 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17364 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17365 Register mac_handle_document_access_event.
17366
17367 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17368 Make functions non-static.
17369
173702008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17371
17372 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17373 (read_file_name_completion_ignore_case, insert_default_directory)
17374 (Qdefault_directory): Move to minibuffer.el.
17375 (Fread_file_name): Call the new `read-file-name' instead.
17376
173772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17378
17379 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17380 Make function non-static.
17381 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17382 Remove function.
17383 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17384 Move to mactoolbox.c.
17385 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17386
17387 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17388 (mac_rect_make): New macro.
17389
17390 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17391 instead of float.
17392 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17393 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17394 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17395 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17396 CGRectMake.
17397 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17398 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17399 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17400 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17401 instead of WindowRef in argument type.
17402 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17403 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17404 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17405 instead of DISPLAY. All uses changed.
17406 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17407 (x_calc_absolute_position): Simplify so as not to use
17408 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17409
17410 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17411 instead of WindowRef in argument type.
17412 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17413 [TARGET_API_MAC_CARBON]: Remove externs.
17414 (create_apple_event, mac_event_parameters_to_lisp)
17415 [TARGET_API_MAC_CARBON]: Add externs.
17416
17417 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17418 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17419 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17420 is clicked.
17421 (x_activate_menubar): Remove extern for saved_menu_event_location.
17422 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17423 Move from mac.c.
17424
174252008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17426
17427 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17428 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17429
174302008-04-23 Jason Rumney <jasonr@gnu.org>
17431
17432 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17433 attributes only for local files.
17434
17435 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17436 default to Qlocal.
17437
174382008-04-22 Juri Linkov <juri@jurta.org>
17439
17440 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17441 read-buffer-to-switch instead of using the letter "B".
17442
174432008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17444
17445 * fileio.c (Qdefault_directory): New variable.
17446 (Fread_file_name): Use it to pass `dir' to the completion functions.
17447
174482008-04-20 Chong Yidong <cyd@stupidchicken.com>
17449
17450 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17451
174522008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17453
17454 * keyboard.c (Vpre_help_message): Remove.
17455 (show_help_echo): Remove default C code.
17456
17457 * dired.c (directory_files_internal, file_name_completion):
17458 Only call ENCODE_FILE if the string is indeed decoded.
17459
174602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17461
17462 * Makefile.in (TOOLKIT_DEFINES): Remove.
17463 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17464
174652008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17466
17467 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17468 (mactoolbox.o): New target.
17469
17470 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17471 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17472
17473 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17474 Use mac_set_frame_window_background instead of XSetWindowBackground.
17475 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17476 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17477 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17478 instead of SetWindowTitleWithCFString.
17479 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17480 Move function to mactoolbox.c.
17481 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17482 Use mac_set_window_modified instead of SetWindowModified.
17483 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17484 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17485 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17486 FrontNonFloatingWindow. Use mac_activate_window instead of
17487 ActivateWindow. Use mac_active_non_floating_window instead of
17488 ActiveNonFloatingWindow.
17489 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17490 Use mac_show_hourglass and mac_hide_hourglass.
17491 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17492 instead of GetGlobalMouse.
17493 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17494 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17495 Use mac_bring_window_to_front instead of BringToFront.
17496 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17497 mactoolbox.c.
17498 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17499 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17500 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17501 mactoolbox.c.
17502
17503 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17504 (XtPointer): Move typedef from macmenu.c.
17505 (enum button_type): Move enum from macmenu.c.
17506 (widget_value): Move typedef from macmenu.c.
17507 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17508 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17509 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17510 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17511 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17512 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17513 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17514 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17515 (Selection): Move typedef from macselect.c.
17516 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17517 macterm.c.
17518 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17519 (mac_is_window_collapsed, mac_bring_window_to_front)
17520 (mac_send_window_behind, mac_hide_window, mac_show_window)
17521 (mac_collapse_window, mac_front_non_floating_window)
17522 (mac_active_non_floating_window, mac_activate_window)
17523 (mac_move_window_structure, mac_move_window, mac_size_window)
17524 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17525
17526 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17527 (enum mac_menu_kind): Move enum to mactoolbox.c.
17528 (min_menu_id): Move variable to mactoolbox.c.
17529 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17530 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17531 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17532 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17533 [TARGET_API_MAC_CARBON]: Likewise.
17534 (XtPointer): Move typedef to macgui.h.
17535 (enum button_type): Move enum to macgui.h.
17536 (widget_value): Move typedef to macgui.h.
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 to macgui.h.
17544 (popup_activated_flag): Make variable non-static.
17545 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17546 (add_menu_item, fill_menu, dispose_menus):
17547 Move functions to mactoolbox.c.
17548 (restore_show_help_function, menu_target_item_handler)
17549 (install_menu_target_item_handler, mac_handle_dialog_event)
17550 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17551 [TARGET_API_MAC_CARBON]: Likewise.
17552 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17553 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17554 (find_and_call_menu_selection, name_is_separator): Make function
17555 non-static.
17556 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17557 to mactoolbox.c.
17558 (set_frame_menubar): Don't call install_menu_quit_handler.
17559 (menu_item_selection): New variable.
17560 (mac_menu_show): Use create_and_show_popup_menu.
17561 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17562 selection but set variable menu_item_selection. All uses changed.
17563 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17564 Call install_menu_quit_handler. Move to mactoolbox.c.
17565
17566 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17567 (Selection): Move typedef to macgui.h.
17568 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17569 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17570 Make variables non-static.
17571 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17572 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17573 Make functions non-static.
17574 (Vmac_service_selection) [MAC_OSX]: Likewise.
17575 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17576 (mac_valid_selection_target_p, mac_clear_selection)
17577 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17578 (mac_put_selection_value, mac_selection_has_target_p)
17579 (mac_get_selection_value, mac_get_selection_target_list)
17580 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17581 Move functions to mactoolbox.c.
17582 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17583 Likewise.
17584 (copy_scrap_flavor_data, mac_handle_service_event)
17585 (install_service_handler) [MAC_OSX]: Likewise.
17586 (syms_of_macselect) <Vmac_dnd_known_types>:
17587 Use mac_dnd_default_known_types.
17588
17589 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17590 Move to mactoolbox.c.
17591 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17592 (Fx_selection_owner_p): Add EXFUN.
17593 (install_window_handler, remove_window_handler, XSetWindowBackground):
17594 Remove externs.
17595 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17596 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17597 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17598 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17599 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17600 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17601 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17602 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17603 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17604 (create_and_show_popup_menu, mac_get_selection_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): Add externs.
17609 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17610 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17611 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17612 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17613 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17614 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17615 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17616 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17617
17618 * mactoolbox.c: New file.
17619
176202008-04-18 Jason Rumney <jasonr@gnu.org>
17621
17622 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17623
176242008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17625
17626 * character.c (Fmultibyte_char_to_unibyte):
17627 Return latin1 chars unchanged.
17628
17629 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17630 relocated if it points to `name'.
17631
176322008-04-17 Kenichi Handa <handa@m17n.org>
17633
17634 * data.c (Faset): Allow setting a multibyte character in an
17635 ASCII-only unibyte string.
17636
17637 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17638
176392008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17640
17641 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17642 done in config.h.
17643
176442008-04-16 Juanma Barranquero <lekktu@gmail.com>
17645
17646 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17647 (Fchar_direction): Add usage in the docstring.
17648
176492008-04-15 Chong Yidong <cyd@stupidchicken.com>
17650
17651 * keyboard.c (read_key_sequence): Remove always-true checks.
17652
176532008-04-14 Jason Rumney <jasonr@gnu.org>
17654
17655 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17656 compatibility struct, for better underline positioning.
17657
176582008-04-13 David Hansen <david.hansen@gmx.net>
17659
17660 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17661 string.
17662
176632008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17664
17665 * m/hp800.h (XUINT, XSET): Remove.
17666
176672008-04-12 Juanma Barranquero <lekktu@gmail.com>
17668
17669 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17670 previous change.
17671
176722008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17673
17674 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17675 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17676
176772008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17678
17679 * keymap.h (map_keymap_canonical): Declare.
17680 * xmenu.c (single_keymap_panes): Use it.
17681
176822008-04-11 Glenn Morris <rgm@gnu.org>
17683
17684 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17685 set the target's value to that of the alias.
17686
176872008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17688
17689 * term.c (set_tty_color_mode): Left over typo.
17690
176912008-04-10 Michael Albinus <michael.albinus@gmx.de>
17692
17693 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17694 only after check for file name handler functions. Signal, when
17695 native functionality is not supported.
17696 (syms_of_fileio): Declare it unconditionally.
17697
176982008-04-10 Jason Rumney <jasonr@gnu.org>
17699
17700 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17701 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17702
17703 * w32.c (logon_network_drive): Also logon to remote drives that
17704 are mapped to drive letters.
17705
177062008-04-10 Glenn Morris <rgm@gnu.org>
17707
17708 * xdisp.c (truncate-partial-width-windows): Doc fix.
17709
177102008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17711
17712 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17713 Move functions to minibuffer.el.
17714 (syms_of_fileio): Don't declare them.
17715
177162008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17717
17718 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17719 (syms_of_minibuf): Remove its initialization.
17720
17721 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17722
177232008-04-09 Juanma Barranquero <lekktu@gmail.com>
17724
17725 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17726
177272008-04-09 Jason Rumney <jasonr@gnu.org>
17728
17729 * makefile.w32-in (distclean): Delete makefile too.
17730 (maintainer-clean): New target.
17731
17732 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17733
17734 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17735 for new font backend and composite cases.
17736
177372008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17738
17739 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17740 Most of the code moved to run_timers.
17741 (do_pending_atimers): Call run_timers.
17742 (run_timers): New function.
17743
17744 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17745 run atimers.
17746
17747 * process.c (wait_reading_process_output): The same as above.
17748
177492008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17750
17751 * minibuf.c (last_exact_completion): Remove variable.
17752 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17753 (complete_and_exit_1, complete_and_exit_2)
17754 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17755 (Fdisplay_completion_list, display_completion_list_1)
17756 (Fminibuffer_completion_help, Fself_insert_and_exit)
17757 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17758 minibuffer.el.
17759 (syms_of_minibuf): Remove corresponding initializations.
17760
17761 * keyboard.c (Qdeactivate_mark): New var.
17762 (command_loop_1): Use it to call `deactivate-mark'.
17763 (syms_of_keyboard): Initialize it.
17764
17765 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17766 to another frame.
17767 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17768 Don't call set_tty_color_mode.
17769 (store_frame_param): Reset previous_frame rather than call
17770 set_tty_color_mode.
17771 * term.c (set_tty_color_mode): Rewrite.
17772 * dispextern.h (set_tty_color_mode): New type.
17773 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17774
177752008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17776
17777 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17778 for generic chars, which do not exist any more in emacs-unicode.
17779
177802008-04-08 Michael Albinus <michael.albinus@gmx.de>
17781
17782 * coding.c (detect_coding_emacs_mule)
17783 (Ffind_operation_coding_system): Fix typo.
17784
177852008-04-08 Jason Rumney <jasonr@gnu.org>
17786
17787 * w32uniscribe.c (SNAME): Extract only symbol name.
17788
17789 * w32font.h (struct w32_metric_cache): New struct.
17790 (w32font_info): Use it.
17791 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17792 (CACHE_BLOCKSIZE): New constants.
17793
17794 * w32font.c (Qja, Qko, Qzh): New symbols.
17795 (syms_of_w32font): Initialise them.
17796 (font_matches_spec): Use them to filter by language.
17797 (recompute_cached_metrics): Remove function.
17798 (compute_metrics, clear_cached_metrics): New functions.
17799 (w32font_encode_char): Use them to manage metric cache.
17800 (w32font_text_extents): Cache metrics for all glyphs on demand.
17801 Delay converting glyph indices to WORD until needed.
17802 (w32font_open_internal): Initialize metric cache to empty.
17803 (registry_to_w32_charset): Charset should always be a symbol.
17804 (fill_in_logfont, list_all_matching_fonts): Family should
17805 always be a symbol.
17806
178072008-04-06 Jason Rumney <jasonr@gnu.org>
17808
17809 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17810 Give up if glyph indices not supported. Use uniscribe obtained
17811 ABC widths for individual metrics. Map glyph clusters back to
17812 characters using fClusterStart flag. Return number of glyphs
17813 produced, not chars processed.
17814 (uniscribe_shape): Map char at FROM to current glyph.
17815
178162008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17817
17818 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17819 Use SetMenuItemHierarchicalMenu.
17820
178212008-04-05 Jason Rumney <jasonr@gnu.org>
17822
17823 * image.c (pbm_load): Allow color values up to 65535.
17824 Throw an error if max_color_idx is outside the supported range.
17825 Report an error when image size is invalid.
17826 Read two bytes at a time when raw images have max_color_idx above 255.
17827
aac0c6e3
MR
178282008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17829
17830 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17831 append "CCL: Quitted" when the CCL program is quitted.
17832 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17833
17834 * ccl.h (struct ccl_program): New member quit_silently.
17835
178362008-04-05 Chong Yidong <cyd@stupidchicken.com>
17837
17838 * search.c (compile_pattern_1): Treat non-nil and non-string of
17839 search-spaces-regexp as nil.
17840
17841 * minibuf.c (Fassoc_string): Tweak docstring.
17842
178432008-04-05 Eli Zaretskii <eliz@gnu.org>
17844
17845 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17846 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17847 2008-03-14 to force inode be positive.
17848
17849 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17850 _S_* ones, since we now use our own sys/stat.h.
17851 (stat, fstat): Don't mangle the inode number.
17852 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17853
178542008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17855
17856 * frame.h (struct frame): Give one more bit to `visible' since we use
17857 values larger than 1 to indicate obscured frames on ttys.
17858
17859 * keymap.c (Qkeymap_canonicalize): New var.
17860 (Fmap_keymap_internal): New fun.
17861 (describe_map): Use keymap-canonicalize.
17862
17863 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17864 (Fundo_boundary): Set them.
17865 (syms_of_undo): Initialize them.
17866 (record_point): Use them instead of last_point_position*.
17867 (last_undo_buffer): Change type.
17868
178692008-04-04 Jason Rumney <jasonr@gnu.org>
17870
17871 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17872 (recompute_cached_metrics): Don't set ascent and descent per char.
17873
17874 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17875 (uniscribe_check_otf): Add GC protection before consing.
17876 Rearrange loop for counting features.
17877
178782008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17879
17880 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17881 buffer with byte-size of source buffer.
17882
178832008-04-03 Chong Yidong <cyd@stupidchicken.com>
17884
17885 * callint.c (Fcall_interactively): Handle temporary region even
17886 when shift-select-mode is off.
17887
178882008-04-03 Jason Rumney <jasonr@gnu.org>
17889
17890 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17891
178922008-04-03 Kenichi Handa <handa@m17n.org>
17893
17894 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17895 (CATEGORY_MASK_UTF_16): Likewise.
17896 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17897 binary file.
17898 (detect_coding): Add null-byte detection for a binary file.
17899 (detect_coding_system): Likewise.
17900
179012008-04-03 Jason Rumney <jasonr@gnu.org>
17902
17903 * w32uniscribe.c: New file.
17904
17905 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17906
17907 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17908
17909 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17910 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17911 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17912 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17913 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17914 (Qphonetic): New symbols.
17915 (syms_of_w32font): Initialize them.
17916 (font_supported_scripts): Use them.
17917 (w32font_list_family): List all charsets.
17918 (w32font_text_extents, recompute_cached_metrics): Fix metric
17919 calculations.
17920 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17921 Give opentype fonts their own format.
17922 (font_matches_spec): New arguments backend and logfont.
17923 Handle :otf spec for uniscribe backend.
17924 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17925 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17926
17927 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17928 font backend.
17929 (globals_of_w32fns): Initialize uniscribe font backend.
17930
17931 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17932 dependencies.
17933 (w32uniscribe.$(O)): New file to build.
17934 (FONT_OBJ): Include w32uniscribe.$(O).
17935 (LIBS): Add uniscribe libraries.
17936
17937 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17938
179392008-04-02 Chong Yidong <cyd@stupidchicken.com>
17940
17941 * callint.c (Vshift_select_mode): New var.
17942 (Finteractive): Document new ^ spec.
17943 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17944 is present.
17945
17946 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17947 (command_loop_1): Avoid running the direct display versions of
17948 forward-char and backward-char if shift-selection may occur.
17949 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17950 shift-translation takes place.
17951
17952 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17953 avoid clobbering by define-minor-mode.
17954
17955 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17956 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17957
17958 * syntax.c (Fforward_word): Add ^ interactive spec.
17959
17960 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17961 (Fscroll_right): Add ^ interactive spec.
17962
179632008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17964
17965 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17966
17967 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17968
17969 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17970
179712008-03-31 Juri Linkov <juri@jurta.org>
17972
17973 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17974
179752008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17976
17977 * gtkutil.c (xg_set_geometry): Fix indentation.
17978 (xg_resize_outer_widget): Remove.
17979 (x_wm_size_hint_off): Fix indentation.
17980 (xg_frame_set_char_size): Call flush_and_sync after
17981 gtk_window_resize.
17982 (x_wm_set_size_hint): Pass NULL as geometry window to
17983 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17984 Add menu bar and tool bar height to base height.
17985 (xg_update_frame_menubar, free_frame_menubar)
17986 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17987 (update_frame_tool_bar, free_frame_tool_bar):
17988 Change xg_resize_outer_widget to xg_frame_set_char_size.
17989
179902008-03-30 Michael Albinus <michael.albinus@gmx.de>
17991
17992 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17993 (Fdbus_call_method): New parameter TIMEOUT.
17994 (dbus-send-signal): Optimize UNGCPRO call.
17995
179962008-03-29 Juri Linkov <juri@jurta.org>
17997
17998 * window.c (Fdisplay_buffer): Move call to
17999 Vsplit_window_preferred_function out of conditions that check
18000 if window is eligible for vertical splitting.
18001 When Vsplit_window_preferred_function is non-nil, call it and use
18002 its non-nil return value as window. Otherwise, continue doing
18003 vertical splitting using Fsplit_window with arg horflag=nil.
18004 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18005 default value from `split-window' to nil.
18006
180072008-03-29 Juri Linkov <juri@jurta.org>
18008
18009 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18010 for interactive code letters 'b' and 'B'.
18011
180122008-03-29 Eli Zaretskii <eliz@gnu.org>
18013
18014 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18015 multibyte string.
18016
180172008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18018
18019 * keyboard.c (pending_funcalls): New var.
18020 (timer_check): Run it.
18021 (syms_of_keyboard): Initialize it.
18022 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18023 (Vdelete_terminal_functions): New vars.
18024 (syms_of_terminal): Initialize them.
18025 (Fdelete_terminal): Run delete-terminal-functions.
18026 * xdisp.c (safe_eval): Rewrite.
18027 (safe_call2): New fun.
18028 * frame.c (Qdelete_frame_functions): New var.
18029 (syms_of_frame): Initialize it.
18030 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18031 * lisp.h (safe_call2, pending_funcalls): Declare.
18032
180332008-03-28 Andreas Schwab <schwab@suse.de>
18034
18035 * indent.c (Fmove_to_column): Move declaration before statements.
18036
180372008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18038
18039 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18040 (struct frame): Use bit fields for boolean vars.
18041
18042 * process.c (server_accept_connection): Simplify naming.
18043 (emacs_get_tty_pgrp): Use SDATA.
18044
18045 * coding.c (decode_coding_object): Fix last change.
18046
180472008-03-27 Jason Rumney <jasonr@gnu.org>
18048
18049 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18050
180512008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18052
18053 * charset.c (Fdefine_charset_internal): Change the way of
18054 registering charsets in Vcharset_order_list.
18055 (syms_of_charset): Make the charset `eight-bit' supplementary.
18056
180572008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18058
18059 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18060 operations, to avoid having the difference between pointers
18061 overflow.
18062
180632008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18064
18065 * indent.c (check_display_width): New fun.
18066 (scan_for_column): Use it.
18067
18068 * data.c (syms_of_data): Mark most-positive-fixnum and
18069 most-negative-fixnum as constants.
18070
18071 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18072
18073 * indent.c (scan_for_column): Extract from current_column_1.
18074 Merge with the same code from Fmove_to_column.
18075 (current_column_1, Fmove_to_column): Use it.
18076
180772008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18078
18079 * keymap.c (map_keymap_internal): New fun.
18080 (map_keymap): Use it.
18081 (Fmap_keymap_internal): New fun.
18082 (Fmap_keymap): Remove left-out test from before make_save_value.
18083
18084 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18085
18086 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18087 Use XCAR/XCDR.
18088
18089 * process.h (struct Lisp_Process): Remove filter_multibyte.
18090 * process.c (QCfilter_multibyte): Remove.
18091 (setup_process_coding_systems): Don't use filter_multibyte.
18092 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18093 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18094 (Fset_process_filter_multibyte): Change the coding-system to
18095 approximate the previous behavior.
18096 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18097 coding-system.
18098
18099 * coding.c (decode_coding_object): When not decoding into a buffer,
18100 obey the coding system's preference of (uni|multi)byte.
18101
181022008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18103
18104 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18105 every char is changed and has a different byte-length.
18106 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18107 Fix int -> EMACS_INT.
18108
181092008-03-23 David Hansen <david.hansen@gmx.net>
18110
18111 * dbusbind.c (xd_read_message): Remove extra copying of message
18112 strings. Check for NULL `interface' or `member'.
18113
181142008-03-22 Eli Zaretskii <eliz@gnu.org>
18115
18116 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18117 cFileName a file name that includes `?' characters, use the 8+3
18118 alias in cAlternateFileName instead.
18119
181202008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18121
18122 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18123
181242008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18125
18126 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18127 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18128 work on current_buffer only instead (that was already the case
18129 for some of the code anyway).
18130 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18131 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18132 (SET_PT, SET_PT_BOTH): Adjust.
18133 * intervals.h (set_point, temp_set_point, set_point_both)
18134 (temp_set_point_both): Remove redundant declarations.
18135
181362008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18137
18138 * fileio.c (Finsert_file_contents):
18139 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18140 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18141 when buffer != current_buffer anyway.
18142
181432008-03-20 Andreas Schwab <schwab@suse.de>
18144
18145 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18146 as default.
18147
181482008-03-19 Jason Rumney <jasonr@gnu.org>
18149
18150 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18151 (syms_of_w32fns): Initialize them.
18152 (HOURGLASS_ID): New constant.
18153 (x_window_to_frame): Don't check hourglass_window.
18154 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18155 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18156 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18157 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18158 Only change the cursor if hourglass is not active.
18159 (Fx_create_frame): Initialize frame's current_cursor.
18160 (hourglass_atimer): Remove.
18161 (hourglass_started): New function.
18162 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18163 (show_hourglass): Adapt to w32, changing argument to frame.
18164
18165 * w32term.h (struct w32_output): Remove hourglass_window.
18166 Add current_cursor.
18167
18168 * eval.c (call_debugger, Fsignal):
18169 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18170 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18171 (Fexecute_extended_command, cancel_hourglass_unwind):
18172 * minibuf.c (read_minibuf):
18173 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18174
181752008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18176
18177 * window.c (run_funs): New fun.
18178 (run_window_configuration_change_hook): Use it to run the buffer-local
18179 and the global part of the hook.
18180
18181 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18182 (unwind_format_mode_line): Restore selected window.
18183 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18184
181852008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18186
18187 * editfns.c (Fchar_equal): Check they are valid characters.
18188
18189 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18190
181912008-03-17 Andreas Schwab <schwab@suse.de>
18192
18193 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18194 against a charset.
18195
18196 * lisp.h (Fbuffer_list): Declare.
18197
181982008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18199
aac0c6e3
MR
18200 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18201 handlebox_widget is != 0.
18202
182032008-03-16 Juri Linkov <juri@jurta.org>
18204
18205 * callint.c (Fcall_interactively): For interactive code letters
18206 'b' and 'B' put the buffer list into the list of default "future"
18207 values of the minibuffer.
18208
182092008-03-16 Andreas Schwab <schwab@suse.de>
18210
18211 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18212 modifiers.
18213
18214 * regex.c (re_match_2_internal): Correct matching of a charset
18215 against latin-1 characters.
18216
182172008-03-16 Kenichi Handa <handa@m17n.org>
18218
18219 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18220 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18221 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18222 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18223 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18224 CHAR_STRING_ADVANCE.
18225 (produce_chars): Fix for the case that the source and the
18226 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18227 instead of CHAR_STRING_ADVANCE.
18228 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18229 STRING_CHAR_ADVANCE.
18230
182312008-03-15 Andreas Schwab <schwab@suse.de>
18232
18233 * regex.c (re_match_2_internal): Correct matching of eight bit
18234 characters in unibyte strings.
18235
182362008-03-15 Martin Rudalics <rudalics@gmx.at>
18237
18238 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18239 at end of range when it coincides with the end of the buffer.
18240
182412008-03-14 Eli Zaretskii <eliz@gnu.org>
18242
18243 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18244
18245 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18246
182472008-03-14 Jason Rumney <jasonr@gnu.org>
18248
18249 * editfns.c (initial_tz): New variable.
18250 (syms_of_editfns): Initialize it.
18251 (Fset_time_zone_rule): Set it when first called.
18252 Use it when TZSTRING is nil.
18253
18254 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18255 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18256 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18257 (globals_of_w32fns): Initialize them.
18258 (compute_tip_xy): Use them to position tooltips.
18259
182602008-03-14 Glenn Morris <rgm@gnu.org>
18261
18262 * emacs.c (main): Revert previous change.
18263 (standard_args): Revert -internal-script back to -scriptload,
18264 and remove the long-option form.
18265
182662008-03-13 Glenn Morris <rgm@gnu.org>
18267
18268 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18269 Remove option -enable-font-backend.
18270
182712008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18272
18273 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18274
182752008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18276
18277 * xterm.c (x_connection_closed): For GTK: If this is the last
18278 terminal just exit without closing the display.
18279
182802008-03-11 Jason Rumney <jasonr@gnu.org>
18281
18282 * w32font.c (w32font_full_name): Use floor to round.
18283
f0131492 182842008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18285
18286 * sound.c (alsa_configure): Declare vol at beginning of block.
18287
18288 * fontset.c (Ffontset_info): Remove extra semicolon.
18289
182902008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18291
18292 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18293 size of resulting string.
18294
182952008-03-10 Jason Rumney <jasonr@gnu.org>
18296
18297 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18298
182992008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18300
18301 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18302 Don't pretend as if characters with display property haven't been
18303 consumed for string-replacing-string case.
18304
183052008-03-08 Kim F. Storm <storm@cua.dk>
18306
18307 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18308 (get_next_display_element, next_element_from_string)
18309 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18310
183112008-03-08 Andreas Schwab <schwab@suse.de>
18312
18313 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18314
183152008-03-06 Jason Rumney <jasonr@gnu.org>
18316
18317 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18318 when charset not specified. Only translate ANSI to unicode when
18319 font_type is truetype.
18320 (w32font_coverage_ok): New function.
18321 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18322
183232008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18324
18325 * lread.c (Fread_char): Resolve modifiers.
18326 (Fread_char_exclusive): Likewise.
18327
18328 * character.c (char_resolve_modifier_mask): New function.
18329 (char_string): Use char_resolve_modifier_mask.
18330 (Fchar_resolve_modifiers): New function.
18331 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18332 function.
18333
183342008-03-04 Jason Rumney <jasonr@gnu.org>
18335
18336 * makefile.w32-in: Always include w32font.c in the build.
18337 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18338
183392008-03-04 Andreas Schwab <schwab@suse.de>
18340
18341 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18342 (versionclean): Likewise.
18343
183442008-03-04 Juanma Barranquero <lekktu@gmail.com>
18345
18346 * .cvsignore: Add oo.
18347
183482008-03-03 Andreas Schwab <schwab@suse.de>
18349
18350 * coding.c (decode_coding_object): Inhibit gap shrinking while
18351 decoding in place.
18352
183532008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18354
18355 * w32term.c: Remove unused include "gnu.h".
18356 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18357
18358 * gnu.h: Rename to ...
18359 * emacs-icon.h: ... this.
18360 * xterm.c: Use emacs-icon.h instead of gnu.h.
18361 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18362
183632008-03-03 Juanma Barranquero <lekktu@gmail.com>
18364
18365 * w32font.c: Include math.h.
18366
183672008-03-03 Jason Rumney <jasonr@gnu.org>
18368
18369 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18370 Compute options separately.
18371 (w32font_open_internal): Set glyph_idx before caching metrics.
18372
18373 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18374 Define if system headers don't.
18375 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18376 (w32font_encode_char): Don't declare here.
18377
18378 * w32font.c (Quniscribe, QCformat): New symbols.
18379 (syms_of_w32font): Define them.
18380 (w32font_has_char): Indicate uncertainty.
18381 (w32font_encode_char): Encode as glyph point. Make static.
18382 (recompute_cached_metrics): New function.
18383 (w32font_open_internal): Use it. Set font to use glyph points
18384 initially. Set format based on type of font.
18385 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18386 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18387 on it. Set format based on information available here.
18388 (add_font_entity_to_list): Identify backend based on opentype_only.
18389
183902008-03-02 Andreas Schwab <schwab@suse.de>
18391
18392 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18393
18394 * coding.c (decode_coding_big5, produce_chars):
18395 Fix typos in last change.
18396
183972008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18398
18399 * gnu.h: New icon.
18400
184012008-03-02 Kenichi Handa <handa@m17n.org>
18402
18403 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18404 `dos', don't decode '\r' if that is the last in the source.
18405 (decode_coding_utf_16, decode_coding_emacs_mule)
18406 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18407 (decode_coding_raw_text, decode_coding_charset): Likewise.
18408 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18409
184102008-03-01 Jason Rumney <jasonr@gnu.org>
18411
18412 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18413
184142008-03-01 Kim F. Storm <storm@cua.dk>
18415
18416 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18417
184182008-03-01 Jason Rumney <jasonr@gnu.org>
18419
18420 * w32font.c (w32font_full_name): New function.
18421 (w32font_open_internal): Use it.
18422
184232008-03-01 Kim F. Storm <storm@cua.dk>
18424
18425 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18426
184272008-03-01 Jason Rumney <jasonr@gnu.org>
18428
18429 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18430
184312008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18432
18433 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18434 xg_frame_resized when the event is for the edit widget.
18435
18436 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18437
18438 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18439 set_char_size.
18440 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18441 operations on widgets here. Just set frame size if needed.
18442 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18443 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18444 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18445 the whole frame.
18446 (xg_create_tool_bar): Move attachment of the tool bar to
18447 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18448 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18449
184502008-03-01 Jason Rumney <jasonr@gnu.org>
18451
18452 * w32fns.c (w32_msg_pump): Disable debug code.
18453
184542008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18455
18456 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18457
184582008-02-29 Chong Yidong <cyd@stupidchicken.com>
18459
18460 * xdisp.c (next_overlay_string): Don't set
18461 overlay_strings_at_end_processed_p if we're currently reading from
18462 a display string.
18463
184642008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18465
18466 * xdisp.c (get_overlay_strings_1): Fix typo.
18467
184682008-02-29 Chong Yidong <cyd@stupidchicken.com>
18469
18470 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18471
184722008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18473
18474 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18475
18476 * xdisp.c (display_mode_element): Cancel the previous change.
18477 (decode_mode_spec): Likewise.
18478 (handle_auto_composed_prop): Don't make composition if it->string
18479 is a string.
18480
184812008-02-27 Kim F. Storm <storm@cua.dk>
18482
18483 * lisp.h (GLYPH): Change type from int to struct with separate char
18484 and face_id members.
18485 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18486 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18487 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18488 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18489 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18490 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18491 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18492 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18493 handle new Lisp glyph code encoding, either an integer or a cons.
18494
18495 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18496 (GLYPH_ALIAS): Delete.
18497 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18498 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18499 (GLYPH_FROM_CHAR): Replace macro by ...
18500 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18501
18502 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18503 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18504 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18505 (GLYPH_INVALID_P): New macro.
18506 (spec_glyph_lookup_face): Update prototype.
18507
18508 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18509 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18510 new glyph code encoding.
18511 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18512 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18513
18514 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18515 Adapt to new glyph type and new glyph code encoding.
18516
18517 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18518
18519 * indent.c (current_column, current_column_1, Fmove_to_column)
18520 (compute_motion): Adapt to new glyph code encoding.
18521
18522 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18523
185242008-02-27 Chong Yidong <cyd@stupidchicken.com>
18525
18526 * process.c (wait_reading_process_output): Check for window
18527 changes caused by timers.
18528 Suggested by Johan Bockgård.
18529
185302008-02-27 Glenn Morris <rgm@gnu.org>
18531
18532 * emacs.c (USAGE1): Add `--disable-font-backend'.
18533
185342008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18535
18536 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18537 is made to the buffer.
18538
185392008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18540
18541 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18542 (face_at_string_position):
18543 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18544 (face_at_string_position):
18545 * xdisp.c (display_string, next_overlay_change):
18546 * buffer.h (overlays_at):
18547 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18548 Update callers.
18549
185502008-02-26 Chong Yidong <cyd@stupidchicken.com>
18551
18552 * editfns.c (Fformat): Doc fix.
18553
185542008-02-26 Juanma Barranquero <lekktu@gmail.com>
18555
18556 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18557 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18558 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18559
185602008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 * buffer.c (Fbuffer_swap_text): New function.
18563 (syms_of_buffer): Defsubr it.
18564
185652008-02-25 Chong Yidong <cyd@stupidchicken.com>
18566
18567 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18568
185692008-02-25 Jason Rumney <jasonr@gnu.org>
18570
18571 * w32font.c (w32font_draw): Draw one character at a time when padding.
18572
185732008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18574
18575 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18576 Handle a nil arg. Use run_window_configuration_change_hook.
18577 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18578 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18579 Use run_window_configuration_change_hook.
18580
185812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18582
18583 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18584 1-pixel width.
18585
185862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18587
18588 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18589 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18590 if the glyph in the font is zero pixel with.
18591
18592 * dispextern.h (struct glyph_string): New member padding_p.
18593
18594 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18595
18596 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18597
18598 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18599
18600 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18601
18602 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18603
186042008-02-25 Jason Rumney <jasonr@gnu.org>
18605
18606 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18607
186082008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18609
18610 Allow fine-grained image-cache flushing.
18611 * dispextern.h (struct image): Add `dependencies' field.
18612 (clear_image_caches): Change arg to Lisp_Object.
18613 * image.c (make_image): Initialize `dependencies' field.
18614 (clear_image_cache): Change arg to allow fine-grained flushing.
18615 Perform the flush even if image-cache-eviction-delay is nil.
18616 (clear_image_caches): Change arg to Lisp_Object.
18617 (Fclear_image_cache): Expand meaning of the argument.
18618 (mark_image): Mark `dependencies' field.
18619 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18620 (lface_hash): Use XHASH rather than XFASTINT.
18621 (face_at_buffer_position): Fix int -> EMACS_INT position.
18622 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18623 (select_frame_for_redisplay): Remove code duplication.
18624 (redisplay_internal): Adapt arg to call to clear_image_caches.
18625
186262008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18627
18628 * s/vms4-0.h:
18629 * s/vms4-2.h:
18630 * s/vms4-4.h:
18631 * s/vms5-5.h: Remove, unused.
18632
18633 * s/irix5-2.h:
18634 * s/irix6-0.h:
18635 * s/riscos5.h:
18636 * s/mach-bsd4-3.h:
18637 * m/mips4.h: Remove files for obsolete systems.
18638
18639 * Makefile.in:
18640 * filelock.c:
18641 * unexmips.c:
18642 * m/hp9000s300.h:
18643 * m/iris4d.h:
18644 * s/aix3-1.h:
18645 * s/hpux.h:
18646 * s/msdos.h:
18647 * s/usg5-0.h:
18648 * s/usg5-2-2.h:
18649 * s/usg5-2.h:
18650 * s/usg5-3.h: Remove references to obsolete variables.
18651
18652 * s/irix5-0.h: Remove, move all the contents ...
18653 * s/irix6-5.h: ... here. Simplify.
18654 * config.in: Regenerate.
18655
186562008-02-24 Jason Rumney <jasonr@gnu.org>
18657
18658 * w32term.c (x_draw_glyph_string_background): Clear the background
18659 manually when cleartype is in use.
18660 (x_draw_glyph_string_foreground): Draw text transparently when
18661 cleartype is in use.
18662
18663 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18664 a font into it unless we have to.
18665
186662008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18667
18668 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18669 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18670
aac0c6e3
MR
186712008-02-18 Jason Rumney <jasonr@gnu.org>
18672
18673 * w32fns.c (Fw32_shell_execute): Encode parameters.
18674
186752008-02-09 Eli Zaretskii <eliz@gnu.org>
18676
18677 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18678
186792008-02-05 Juanma Barranquero <lekktu@gmail.com>
18680
18681 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18682
186832008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18684
18685 * xterm.c (x_set_offset): Don't change the gravity if
18686 CHANGE_GRAVITY is -1.
18687
186882008-02-23 Chong Yidong <cyd@stupidchicken.com>
18689
18690 * fileio.c (auto_save_error_occurred): New var.
18691 (auto_save_error): Set it.
18692 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18693 error occurred.
18694
186952008-02-23 Eli Zaretskii <eliz@gnu.org>
18696
18697 * w32.c (globals_of_w32): Add initializations for
18698 g_b_init_get_sid_sub_authority and
18699 g_b_init_get_sid_sub_authority_count.
18700
187012008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18702
18703 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18704 (font_parse_xlfd): Use them for sanity check.
18705 (Finternal_set_font_style_table): Make sure the table is bijective.
18706
18707 Consolidate the image_cache to the terminal struct.
18708 * termhooks.h (P_): Remove redundant def.
18709 (struct terminal): New field `image_cache'.
18710 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18711 of FRAME_X_IMAGE_CACHE.
18712 * xterm.h (struct x_display_info): Remove image_cache field.
18713 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18714 * w32term.h (struct w32_display_info): Remove image_cache field.
18715 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18716 * macterm.h (struct mac_display_info): Remove image_cache field.
18717 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18718 * xterm.c (x_term_init):
18719 * w32term.c (w32_term_init):
18720 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18721 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18722 Remove declarations.
18723 (clear_image_caches, mark_image_cache): New declarations.
18724 * xfaces.c (clear_face_cache):
18725 * xdisp.c (redisplay_internal): Use clear_image_caches.
18726 * image.c (clear_image_cache): Don't check that a frame is on
18727 a window-system before checking if it shares the same cache.
18728 (clear_image_caches): New function.
18729 (Fclear_image_cache): Use it.
18730 (mark_image): Move from allo.c.
18731 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18732 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18733 (mark_object): Don't call mark_image_cache for frames.
18734 (mark_terminals): Call mark_image_cache.
18735
18736 * lisp.h (Fdelete_terminal): Declare.
18737
18738 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18739 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18740 wrong_type_argument.
18741
187422008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18743
18744 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18745 malayalam.el, and tamil.el. Add sinhala.el.
18746
187472008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18748
18749 * xterm.c (x_connection_closed): Consolidate identical tests.
18750 (x_delete_terminal): Don't crash if called via x_connection_closed.
18751
187522008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18753
18754 * xdisp.c (decode_mode_spec): New arg string.
18755 (display_mode_element): Adjust for the above change.
18756
187572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18758
18759 * callint.c (Fcall_interactively): Use AREF.
18760
187612008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18762
18763 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18764
187652008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18766
18767 * xfns.c (Fx_show_tip): Set string to " " if empty.
18768
187692008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18770
18771 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18772 with Qt.
18773
187742008-02-17 Kenichi Handa <handa@m17n.org>
18775
18776 * ftfont.c (ftfont_shape): Return Lispy number.
18777
18778 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18779 for GCs.
18780 (Finternal_set_font_selection_order): Call font_update_sort_order
18781 only when enable_font_backend is set.
18782 (realize_x_face): Set face->font_info to that of default face only
18783 when enable_font_backend is set.
18784
18785 * xdisp.c (handle_composition_prop): Set it->c to the fist
18786 character of the composed region.
18787 (fill_composite_glyph_string): Set base_face->font_info to
18788 s->font_info. Get a face for ascii from base_face->ascii_face.
18789 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18790 with a face already decided.
18791 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18792 non-negative.
18793 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18794 call font_prepare_composition unconditionally.
18795
18796 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18797
18798 * xterm.h (struct x_display_info): New member font.
18799
18800 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18801 (x_set_mouse_face_gc, x_new_font): Likewise.
18802 (x_term_init): Setup display_info->font.
18803 (x_delete_terminal): Free display_info->font.
18804
18805 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18806
18807 * ftxfont.c (ftxfont_default_fid): Delete it.
18808 (ftxfont_open): Set xfont->fid to 0.
18809 (ftxfont_end_for_frame): Clear data specific to the frame and the
18810 font-driver.
18811
18812 * xftfont.c (xftfont_default_fid): Delete it.
18813 (xftfont_open): Set xfont->fid to 0.
18814
18815 * fontset.c (FONTSET_OBJLIST): New macro.
18816 (fontset_find_font): Update font-object list of the fontset.
18817 (free_realized_fontset): New function.
18818 (free_face_fontset): Call free_realized_fontset.
18819 (Ffont_info): Call font_close_object only when enable_font_backend
18820 is set.
18821
18822 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18823 [HAVE_NTGUI]: Include w32term.h.
18824 [MAC_OS]: Include macterm.ch.
18825 (font_otf_ValueRecord): Use make_number.
18826 (font_finish_cache): Fix handling of reference count.
18827 (font_clear_cache): Update num_fonts.
18828 (font_open_entity): Update smallest_char_width and
18829 smallest_font_height of the frame.
18830 (font_close_object): Update num_fonts.
18831 (Fclear_font_cache): Fix finding the target cache data.
18832
188332008-02-16 Glenn Morris <rgm@gnu.org>
18834
18835 * fontset.c (Finternal_char_font): Fix compilation warning.
18836
188372008-02-16 Eli Zaretskii <eliz@gnu.org>
18838
18839 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18840 instead of char arrays. Enlarge the size of array passed to
18841 get_token_information.
18842
18843 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18844 warnings.
18845
188462008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18847
18848 * .gdbinit: Don't set `args', it breaks gdb --args.
18849
188502008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18851
18852 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18853 within a narrowed buffer.
18854
188552008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18856
18857 * coding.c (decode_coding_object, encode_coding_object):
18858 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18859
188602008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18861
18862 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18863 hardcoding 1.
18864 (detect_coding_system):
18865 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18866 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18867 * insdel.c (insert_from_gap):
18868 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18869 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18870 (string_to_multibyte):
18871 * character.c (chars_in_text, multibyte_chars_in_text):
18872 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18873
18874 * character.h (FETCH_STRING_CHAR_ADVANCE)
18875 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18876 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18877 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18878
18879 * casefiddle.c (casify_region): Only call after-change and composition
18880 functions on the part of the region that was changed.
18881
18882 * keyboard.c (read_avail_input):
18883 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18884
188852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18886
18887 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18888 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18889
188902008-02-11 Juanma Barranquero <lekktu@gmail.com>
18891
18892 * w32menu.c (push_submenu_start, push_submenu_end)
18893 (push_left_right_boundary, push_menu_pane, push_menu_item):
18894 * keyboard.c (read_key_sequence): Don't pass args with side effects
18895 to AREF, it fails when compiling with -DENABLE_CHECKING.
18896
188972008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18898
18899 * Makefile.in (${lispsource}international/charprop.el):
18900 Delete this target.
18901
18902 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18903 emacs-unicode-2.
18904
189052008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18906
18907 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18908
189092008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18910
18911 * frame.c (Qnoelisp): New symbol.
18912 (syms_of_frame): Initialize it.
18913 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18914 harmless Elisp code, from a strong `force' from x_connection_closed.
18915 * frame.h (Qnoelisp): Declare.
18916 * xterm.c (x_connection_closed): Pass `noelisp'.
18917
18918 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18919 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18920 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18921 rather than `int' for the type of `type'.
18922
189232008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18924
18925 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18926
18927 * Makefile.in (GNUC): Remove support for gcc-1.x.
18928
189292008-02-10 Richard Stallman <rms@gnu.org>
18930
18931 * lisp.h (ASET): Use AREF, not ASLOT.
18932
189332008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18934
18935 * lisp.h (ASET): Check bounds.
18936
189372008-02-10 Glenn Morris <rgm@gnu.org>
18938
18939 * buffer.c (mode-name): Doc fix.
18940
189412008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18942
18943 * Makefile.in:
18944 * emacs.c:
18945 * gmalloc.c:
18946 * keyboard.c:
18947 * lisp.h:
18948 * m/ibm370aix.h:
18949 * process.c:
18950 * regex.c:
18951 * s/hpux.h:
18952 * sysdep.c:
18953 * sysselect.h:
18954 * systty.h:
18955 * unexec.c:
18956 * w32term.c:
18957 * xsmfns.c:
18958 * xterm.c: Remove code that deals with obsolete variables.
18959
18960 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18961
18962 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18963 nothing else needs it anymore.
18964
189652008-02-09 Eli Zaretskii <eliz@gnu.org>
18966
18967 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18968 instead of unibyte_char_to_multibyte.
18969
189702008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18971
18972 * s/gnu-linux.h: Remove commented out code.
18973
18974 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18975
18976 * Makefile.in: Update what RMS says about using autoconf.
18977 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18978 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18979 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18980 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18981
189822008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18983
18984 * keymap.c (Fkey_description): Move side effect outside of macro call.
18985
18986 * xfaces.c (Finternal_make_lisp_face):
18987 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18988
18989 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18990 (syms_of_fontset): Use ASET.
18991
18992 * fns.c (concat): Move side effect outside of macro call.
18993 (hash_clear): Use ASET.
18994
189952008-02-08 Richard Stallman <rms@gnu.org>
18996
18997 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18998 If FORCE, and frame has a surrogate minibuffer for another frame,
18999 delete the other frame first.
19000
190012008-02-07 Timo Savola <timo.savola@iki.fi>
19002
19003 * xterm.c (x_detect_focus_change): Handle embed client message.
19004 (handle_one_xevent): Ditto.
19005 (handle_one_xevent): If embedded and we get a button press/release,
19006 request focus.
19007 (xembed_set_info, xembed_send_message): New functions.
19008 (x_make_frame_visible): Call xembed_set_info if embedded.
19009 (x_make_frame_invisible): Call xembed_set_info if embedded.
19010 (x_term_init): Initialize Xatom_XEMBED.
19011 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19012 (x_iconify_frame): Ditto.
19013
19014 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19015 (enum xembed_info, enum xembed_message, enum xembed_focus)
19016 (enum xembed_modifier, enum xembed_accelerator): New.
19017 (xembed_set_info, xembed_send_message): Declare.
19018 (FRAME_X_EMBEDDED_P): New.
19019
19020 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19021 gtk_plug_new.
19022
19023 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19024 window ID of a frame.
19025 (x_window): Reparent frame if embedded.
19026 (Fx_create_frame): Don't set border width if embedded.
19027
19028 * emacs.c (USAGE3): Add --parent-id.
19029 (standard_args): Ditto.
19030
190312008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19032
19033 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19034
190352008-02-07 Jim Meyering <meyering@redhat.com>
19036
19037 Use "do...while (0)", not "if (1)...else" in macro definitions.
19038 The latter provokes a warning from gcc about the empty else, when
19039 followed by ";". Also, without that trailing semicolon, it would
19040 silently swallow up any following statement.
19041 * syntax.h (SETUP_SYNTAX_TABLE)
19042 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19043 * buffer.h (DECODE_POSITION): Likewise.
19044 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19045 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19046 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19047 (FETCH_CHAR_ADVANCE): Likewise.
19048 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19049
190502008-02-07 Jim Meyering <meyering@redhat.com>
19051
19052 * lread.c [lint]: Don't include <sys/inode.h>.
19053
190542008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19055
19056 * xselect.c (x_handle_dnd_message):
19057 * xmenu.c (digest_single_submenu, xmenu_show):
19058 * xdisp.c (with_echo_area_buffer_unwind_data)
19059 (format_mode_line_unwind_data, unwind_format_mode_line)
19060 (display_menu_bar):
19061 * eval.c (Ffetch_bytecode):
19062 * doc.c (store_function_docstring):
19063 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19064 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19065 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19066
190672008-02-07 Kenichi Handa <handa@m17n.org>
19068
19069 * ftxfont.c (ftxfont_open): Don't set
19070 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19071
19072 * ftfont.c (ftfont_open): Fix previous change.
19073
190742008-02-06 Jason Rumney <jasonr@gnu.org>
19075
19076 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19077 Use cached metrics for ASCII characters.
19078 (w32font_open_internal): Don't set font's owning_frame.
19079 Cache metrics for ASCII characters.
19080
19081 * w32font.h (struct w32font_info): Add ascii_metrics.
19082 Remove owning_frame.
19083
190842008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19085
19086 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19087 to negative value.
19088
19089 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19090
19091 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19092
19093 * charset.c (syms_of_charset): Set QCtest and Qeq.
19094
190952008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19096
19097 * process.c (Fstart_process):
19098 * callproc.c (Fcall_process): Handle the case where
19099 Funhandled_file_name_directory returns nil.
19100
19101 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19102 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19103 * font.c (check_gstring): Use them and AREF to access the vector before
19104 we know it's really a gstring.
19105 (Ffont_shape_text): Fix typo.
46e722a9 19106 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19107
19108 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19109 Declare.
19110
19111 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19112
191132008-02-05 Jason Rumney <jasonr@gnu.org>
19114
19115 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19116 Set smallest_font_height and smallest_char_width in display info.
19117
191182008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19119
19120 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19121
191222008-02-05 Miles Bader <miles@gnu.org>
19123
19124 * xfaces.c (get_lface_attributes, merge_named_face)
19125 (lookup_named_face, lookup_derived_face, realize_named_face):
19126 Revert 2008-02-01 change by cyd@stupidchicken.com.
19127
191282008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19129
19130 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19131 fallback fonts.
19132 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19133
191342008-02-04 Jason Rumney <jasonr@gnu.org>
19135
19136 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19137 set full_name.
19138 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19139
191402008-02-03 Jason Rumney <jasonr@gnu.org>
19141
19142 * makefile.w32-in (OBJ1): Include font.o here.
19143 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19144
191452008-02-02 Jason Rumney <jasonr@gnu.org>
19146
19147 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19148
191492008-02-01 Jason Rumney <jasonr@gnu.org>
19150
19151 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19152
19153 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19154
191552008-02-01 Andreas Schwab <schwab@suse.de>
19156
19157 * Makefile.in (shortlisp, lisp): Update for rename of
19158 ../lisp/language/myanmar.el.
19159
191602008-02-01 Chong Yidong <cyd@stupidchicken.com>
19161
19162 * xfaces.c (get_lface_attributes): Delete function.
19163 (merge_named_face, lookup_named_face, lookup_derived_face)
19164 (realize_named_face): Call lface_from_face_name directly, and use
19165 the fact that merge_face_vectors does not alter its FROM argument.
19166
191672008-02-01 Jason Rumney <jasonr@gnu.org>
19168
19169 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19170 input in the default locale. Handle non-Unicode multibyte input.
19171
191722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19173
19174 * fontset.c (reorder_font_vector): Exclude nil elements from the
19175 font group. Don't try multiple fonts.
19176 (fontset_font): Adjust for the above change.
19177 (Finternal_char_font): Return nil if the found font doesn't
19178 contain the character ch.
19179
19180 * Makefile.in (lisp, shortlisp): Add cham.el.
19181
191822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19183
19184 * font.h (FONTP): Make it return 1 also for a font-object.
19185
19186 * .gdbinit (xfontset): New function.
19187
19188 * font.c (font_find_for_lface): Check if the character C is
19189 supported or not only for the first font.
19190
19191 * fontset.c (reorder_font_vector): Fix typo.
19192 (fontset_find_font): Don't add a font-spec specifying a script.
19193 Use 0 (not Qt) for the indication of empty font-group. Change the
19194 format of RFONT-DEF. Return Qt if no font in the font-group
19195 support the character.
19196 (fontset_font): Adjust for the above change. If no font was
19197 found the character, remember that.
19198 (face_for_char): Adjust for the change of RFONT-DEF.
19199 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19200 no font for the target.
19201 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19202
192032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19204
19205 * font.c (font_load_for_face): Handle the case that the font in
19206 face->lface is a string.
19207
192082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19209
19210 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19211
192122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19213
19214 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19215 Fix previous change. If the frame is not on a window system,
19216 signal an error.
19217
192182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19219
19220 * coding.c (decode_coding_object, encode_coding_object): Adjust
19221 marker positions after conversion.
19222
19223 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19224
192252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19226
19227 * font.c (font_find_for_lface): Fix the handling of the return
19228 value of font_has_char.
19229 (Ffont_shape_text): Fix previous change.
19230
19231 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19232 (fontset_ref_and_range): Delete it.
19233 (fontset_find_font): Call char_table_ref_and_range instead of
19234 FONTSET_REF_AND_RANGE.
19235 (make_fontset): Don't setup font groups of Latin here.
19236 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19237 (new_fontset_from_font): Make the specified font the default for
19238 all Latin characters.
19239
192402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19241
19242 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19243 is on a window system before accessing the fontset of the frame.
19244
192452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19246
19247 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19248
19249 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19250 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19251
19252 * font.c (Ffont_shape_text): If the font driver doesn't have a
19253 shaper function, make zero-width glyphs to have at least one-pixel
19254 width. Fix setting of `to' field of glyphs.
19255
192562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19257
19258 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19259 glyphs.
19260
19261 * font.h (struct font_driver): Improve docstring of member `shape'.
19262
192632008-02-01 Kenichi Handa <handa@m17n.org>
19264
19265 * composite.c (syms_of_composite): Fix docstring of
19266 auto-composition-function.
19267
19268 * font.h (LGLYPH_SIZE): New macro.
19269
19270 * font.c (Ffont_fill_gstring): Stop filling when a character not
19271 supported by the font is found.
19272 (Ffont_shape_text): When a shape callback function returns nil,
19273 try at most two more times with larger gstring.
19274 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19275
19276 * xdisp.c (handle_auto_composed_prop): Change the argument to
19277 auto-composition-function.
19278
19279 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19280 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19281 Lispy glyph and store it in the lgstring.
19282
19283 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19284
19285 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19286
192872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19288
19289 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19290
19291 * fontset.c (Vfont_encoding_charset_alist): New variable.
19292 (syms_of_fontset): DEFVAR it.
19293 (reorder_font_vector, fontset_find_font): Optimize for the case of
19294 no need of reordering.
19295 (face_for_char): Map the charset property by
19296 Vfont_encoding_charset_alist.
19297
192982008-02-01 Jason Rumney <jasonr@gnu.org>
19299
19300 * w32font.c (logfonts_match): Don't check adstyle here.
19301 (font_matches_spec): Check here against physical font instead.
19302 (add_font_entity_to_list): Avoid some substitutions.
19303
19304 * font.c (font_parse_fcname): Default weight and slant to normal.
19305 (font_score): Prefer normal fonts if weight or slant unspecified.
19306 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19307 match freetype scores.
19308
193092008-02-01 Jason Rumney <jasonr@gnu.org>
19310
19311 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19312 font, as it may have been deleted.
19313 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19314 most common hyphenless variation.
19315 (logfonts_match): Check generic family.
19316 (font_matches_spec): Don't check generic family here.
19317 (fill_in_logfont): Set generic family based on adstyle.
19318
19319 * w32font.h (w32font_get_cache): Update declaration.
19320
193212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19322
19323 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19324
19325 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19326 If none of the new drivers are available, call font_update_drivers
19327 with the old drivers.
19328
19329 * w32font.c (w32font_get_cache): Adjust the argument type.
19330
19331 * xfont.c (xfont_get_cache): Adjust the argument type.
19332
19333 * font.h (struct font_driver): Change argument type of get_cache.
19334
19335 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19336
19337 * font.c (Ffont_get): Fix arguments to Fassoc.
19338 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19339 (font_clear_cache): New function.
19340 (font_list_entities, font_matching_entity): Use font_get_cache.
19341 (font_update_drivers): Call font_clear_cache when finishing a driver.
19342
19343 * fontset.c (fontset_find_font): Fix previous change.
19344
193452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19346
19347 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19348 dpyinfo->font_table.
19349 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19350 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19351
19352 * font.c (font_at): Handle the case that the arg C is negative.
19353 Handle the unibyte case.
19354 (Ffont_at): Call font_at with the arg C -1.
19355
19356 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19357 the position here, and call font_at with the arg C -1.
19358 Don't check the range of the existing composition at the point.
19359
193602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19361
19362 * fontset.c (fontset_add): New args charset_id and family.
19363 Change caller.
19364 (load_font_get_repertory, fontset_find_font): Assume that
19365 font_spec is always a font-spec object.
19366 (Fset_fontset_font): Always store a font-spec object in a fontset.
19367
19368 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19369 instead of get_property_and_range.
19370
193712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19372
19373 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19374 (xftfont_open): Don't keep locking face.
19375 (xftfont_close): Don't unlock face.
19376 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19377
19378 * fontset.c (fontset_find_font): Don't prefer a font of
19379 supplementary charset.
19380
193812008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19384 script, langsys_tag to langsys, new member script.
19385 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19386 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19387 listing to the script specified in that property. Fix arg to
19388 OTF_check_features.
19389
193902008-02-01 Jason Rumney <jasonr@gnu.org>
19391
19392 * w32font.h: New file.
19393
19394 * w32font.c: Include it.
19395 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19396 (w32font_open): Set owning_frame.
19397 (w32font_text_extents): Use owning_frame.
19398 (struct font_callback_data): Add opentype_only field.
19399 (add_font_entity_to_list): Use it to filter fonts.
19400 Don't check against full name.
19401 (w32font_list_internal): New function.
19402 (w32font_list): Use it.
19403 (w32font_match_internal): New function.
19404 (w32font_match): Use it.
19405 (w32font_open_internal): New function.
19406 (w32font_open): Use it.
19407 (w32font_get_cache, w32font_close, w32font_has_char)
19408 (w32font_encode_char, w32font_text_extents, w32font_draw):
19409 Make non-static.
19410
19411 * makefile.w32-in (w32font.o): Depend on w32font.h.
19412
194132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19414
19415 * charset.c (Fdefine_charset_internal): Record a supplementary
19416 charset at the tail of Vcharset_order_list.
19417
19418 * font.c (Ffont_shape_text): Fix the return value.
19419
19420 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19421
19422 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19423
194242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19425
19426 * ftfont.c (struct OpenTypeSpec): New struct.
19427 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19428 (ftfont_get_open_type_spec): New function.
19429 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19430
19431 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19432
194332008-02-01 Jason Rumney <jasonr@gnu.org>
19434
19435 * w32font.c (add_font_entity_to_list): Compare only the beginning
19436 of full name.
19437
194382008-02-01 Kenichi Handa <handa@m17n.org>
19439
19440 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19441 Never return HANDLED_RECOMPUTE_PROPS.
19442
194432008-02-01 Kenichi Handa <handa@m17n.org>
19444
19445 * font.c (font_gstring_produce): Delete it.
19446
19447 * composite.h (COMPOSITION_METHOD):
19448 Handle COMPOSITION_WITH_GLYPH_STRING.
19449
194502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19451
19452 * xfont.c (Qx): Delete.
19453 (syms_of_xfont): Don't initialize Qx.
19454
19455 * composite.h (enum composition_method):
19456 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19457
194582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19459
19460 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19461 (choose_face_font): Accept new form of font-spec.
19462
19463 * frame.h (font_driver_list): Declare it unconditionally.
19464 (struct frame): Define members font_driver_list and font_data_list
19465 unconditionally.
19466
19467 * fontset.c: Include "font.h" unconditionally.
19468 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19469 (Fset_fontset_font): Accept a font-spec object.
19470
19471 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19472 PIXEL_SIZE part a wild card.
19473
19474 * dispextern.h (struct glyph_string): Define members clip and
19475 num_clips unconditionally.
19476 (struct face): Define members font_info and extra unconditionally.
19477
19478 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19479 ftfont_info only when HAVE_LIBOTF is defined.
19480
194812008-02-01 Andreas Schwab <schwab@suse.de>
19482
19483 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19484 and end.
19485
194862008-02-01 Jason Rumney <jasonr@gnu.org>
19487
19488 * w32font.c (w32font_driver): Add new fields.
19489
194902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19491
19492 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19493 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19494 (LIBES): Add @M17N_FLT_CFLAGS@.
19495
19496 * composite.c (compose_text): Don't treat the new style
19497 composition specially.
19498
19499 * emacs.c (main): Call syms_of_font unconditionally.
19500
19501 * font.h (FONT_ENTITY_NOT_LOADABLE)
19502 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19503 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19504 (struct font_driver): New member shape.
19505 (font_registry_charsets): Extern it.
19506 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19507 (font_otf_capability, font_drive_otf): Delete their externs.
19508
19509 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19510 (font_charset_alist, font_registry_charsets): Move from xfont.c
19511 and rename.
19512 (font_prop_validate_otf): New function.
19513 (font_property_table): Register it for QCotf.
19514 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19515 (font_drive_otf): Delete.
19516 (font_prepare_composition): New arg F. Adjust for the change of
19517 lispy gstring.
19518 (font_find_for_lface): New arg C.
19519 (font_load_for_face): Adjust for the change of font_find_for_lface.
19520 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19521 lispy gstring.
19522 (Ffont_shape_text): New function.
19523 (Fopen_font): If the font size is not given, use 12-pixel.
19524 (Ffont_at): New arg STRING.
40b1a3a9 19525 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19526 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19527 conditionally.
19528
19529 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19530 fonts of the same font-spec. Change the format of RFONT-DEF.
19531 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19532 Adjust for the change of RFONT-DEF.
19533 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19534
19535 * ftfont.h: New file.
19536
19537 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19538 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19539 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19540 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19541 font_otf_capability and font_drive_otf, set ftfont_shape.
19542 (ftfont_list): Adjust for the change of :otf property value.
19543 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19544 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19545 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19546 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19547 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19548 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19549
19550 * w32term.c (x_draw_composite_glyph_string_foreground):
19551 Adjust for the change of lispy gstring.
19552
19553 * xdisp.c (handle_composition_prop): Adjust for the change of
19554 lispy gstring. Call a function for auto-composition with the
19555 third arg it->window.
19556 (fill_composite_glyph_string): Adjust for the change of lispy string.
19557 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19558
19559 * xfaces.c (set_font_frame_param): Adjust for the change of
19560 font_find_for_lface.
19561
19562 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19563 (xfont_registry_charsets): Likewise. Change caller.
19564 (syms_of_xfont): Don't handle x_font_charset_alist.
19565
19566 * xftfont.c: Include "ftfont.h".
19567 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19568 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19569 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19570 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19571 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19572 Set xftfont_driver.shape to xftfont_shape.
19573
19574 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19575 the change of lispy gstring.
19576
195772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19578
19579 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19580
195812008-02-01 Jason Rumney <jasonr@gnu.org>
19582
19583 * w32font.c (w32font_draw): Fill background manually.
19584
195852008-02-01 Jason Rumney <jasonr@gnu.org>
19586
19587 * font.c (Qfontp): Remove unused symbol.
19588 (QCantialias): New symbol.
19589 (syms_of_font): Define it.
19590 (font_property_table): Set a validator for QCantialias.
19591
19592 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19593 Define if not already.
19594 (QCfamily): Share with xfaces.c.
19595 (Qstandard, Qsubpixel, Qnatural): New symbols.
19596 (syms_of_w32font): Define them. Don't define QCfamily here.
19597 (w32_antialias_type, lispy_antialias_type): New functions.
19598 (w32_enumfont_pattern_entity): New arg requested_font.
19599 Set antialias parameter if non-default was requested.
19600 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19601
196022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19603
19604 * lread.c (read1): Undo the previous change.
19605
196062008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19607
19608 * frame.c (Fdelete_frame): Call font_update_drivers only when
19609 USE_FONT_BACKEND is defined.
19610
196112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19612
19613 * font.h (struct font_bitmap): New member bits_per_pixel.
19614 (struct font_driver): New members start_for_frame and end_for_frame.
19615 (struct font_data_list): New struct.
19616 (font_put_frame_data, font_get_frame_data): Extern them.
19617
19618 * frame.h (struct frame): New member font_data_list.
19619
19620 * font.c (font_update_drivers): Call driver->start_for_frame and
19621 driver->end_for_frame at proper timings.
19622 (font_put_frame_data, font_get_frame_data): New functions.
19623 (Ffont_spec): Add usage in the docstring.
19624
19625 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19626 (Fdelete_frame): Call font_update_drivers.
19627
19628 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19629 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19630 (xftfont_get_xft_draw): New function.
19631 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19632 (xftfont_end_for_frame): New function.
19633 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19634
19635 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19636 Change argument. Cache GCs in the per-frame data.
19637 (struct ftxfont_frame_data): New struct.
19638 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19639 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19640 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19641 (ftxfont_end_for_frame): New function.
19642 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19643
19644 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * xselect.c (Vselection_coding_system)
19649 (Vnext_selection_coding_system): Delete them.
19650 (syms_of_xselect): Don't declare selection-coding-system and
19651 next-selection-coding-system. They are declared in select.el.
19652
196532008-02-01 Jason Rumney <jasonr@gnu.org>
19654
19655 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19656
19657 * w32fns.c: Include imm.h.
19658 (get_composition_string_fn, get_ime_context_fn): New optional
19659 system functions.
19660 (globals_of_w32fns): Load them from imm32.dll.
19661 (ignore_ime_char): New flag.
19662 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19663 WM_IME_ENDCOMPOSITION messages.
19664
19665 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19666 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19667
196682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19669
19670 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19671 (READCHAR_REPORT_MULTIBYTE): New macro.
19672 (readchar): New 2nd arg MULTIBYTE.
19673 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19674 Make symbol's name multibyte according to the multibyteness of the
19675 source.
19676
196772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19678
19679 * xfaces.c (face_for_overlay_string): Call lookup_face with
19680 correct arguments (fix of synching with the trunk).
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19685 (font_prop_validate_non_neg, font_prop_validate_spacing):
19686 Delete argument prop_index.
19687 (font_property_table): Change arguments to validater. Change Callers.
19688 (font_lispy_object): Delete.
19689 (font_at): Use font_find_object instead fo font_lispy_object.
19690
196912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19692
19693 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19694 and file names.
19695
196962008-02-01 Jason Rumney <jasonr@gnu.org>
19697
19698 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19699 (font_matches_spec): Remove debug output.
19700 (add_font_entity_to_list): Avoid using substituted fonts.
19701
197022008-02-01 Jason Rumney <jasonr@gnu.org>
19703
19704 * doc.c (Fsnarf_documentation):
19705 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19706
197072008-02-01 Miles Bader <miles@gnu.org>
19708
19709 * dispextern.h (struct glyph_row): Only define "clip" field if
19710 HAVE_WINDOW_SYSTEM is defined.
19711
197122008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19713
19714 Fix up multi-tty merge.
19715
19716 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19717 and indentation.
19718
19719 * xfaces.c (free_realized_face, clear_face_gcs):
19720 Include font_done_for_face in the input_blocked section, just in case.
19721
19722 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19723 (get_char_face_and_encoding): Undo last change and remove the *other*
19724 duplicate definition (i.e. keep the one that's better scoped and that
19725 includes code for the font-backend).
19726
19727 * terminal.c (create_terminal): Default keyboard_coding to
19728 `no-conversion' and terminal_coding to `undecided'.
19729
19730 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19731
19732 * fontset.c (free_realized_fontsets): Check that the table entry does
19733 contain a fontset before trying to compare it to `base'.
19734
19735 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19736 syms_of_charset, and syms_of_coding earlier because init_window_once
19737 now needs Vcoding_system_hash_table to be setup.
19738
19739 * coding.h (default_buffer_file_coding): Remove.
19740
19741 * coding.c (default_buffer_file_coding): Remove.
19742 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19743 than ->symbol, and use the terminal-local coding system.
19744 (syms_of_coding): Don't setup the coding-systems that are not
19745 terminal-local.
19746 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19747
19748 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19749 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19750
19751 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19752 in chartab.c and were re-added here by mistake.
19753 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19754
19755 * doc.c (Fsnarf_documentation):
19756 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19757 src to etc.
19758
19759 * ChangeLog.10: Add mistakenly removed entry.
19760
197612008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19762
19763 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19764
197652008-02-01 Miles Bader <miles@gnu.org>
19766
19767 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19768 Add extra args to FACE_FOR_CHAR.
19769
197702008-02-01 Kenichi Handa <handa@m17n.org>
19771
19772 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19773 in sequence.
19774
19775 * chartab.c (map_sub_char_table, map_char_table): If the range
19776 contains just one character, call the function with that character
19777 even if the depth is not 3.
19778
197792008-02-01 Jason Rumney <jasonr@gnu.org>
19780
19781 * w32font.c (w32font_text_extents): Calculate metrics for the
19782 whole string.
19783
197842008-02-01 Jason Rumney <jasonr@gnu.org>
19785
19786 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19787
197882008-02-01 Jason Rumney <jasonr@gnu.org>
19789
19790 * w32term.c (x_set_glyph_string_clipping): Use
19791 get_glyph_string_clip_rects.
19792 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19793 Adjust for the change of struct glyph_string.
19794
19795 * w32font.c (w32font_draw): Do clipping here.
19796
197972008-02-01 Kenichi Handa <handa@m17n.org>
19798
19799 * xftfont.c (xftfont_draw): Adjust for the change of struct
19800 glyph_string.
19801
19802 * xterm.c (x_set_glyph_string_clipping): Use
19803 get_glyph_string_clip_rects.
19804 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19805 Adjust for the change of struct glyph_string.
19806
19807 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19808 the resulting clip(s}.
19809 (expose_overlaps): Add arg r. Change callers. Set it to
19810 row->clip temporarily.
19811 (expose_window): Redraw rows overlapping the exposed area.
19812
19813 * dispextern.h (struct glyph_row): New member clip.
19814 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19815 clip_height, new member clip, and num_clips.
19816
198172008-02-01 Kenichi Handa <handa@m17n.org>
19818
19819 * data.c (Fchar_or_string_p): Fix docstring.
19820
198212008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19824 create a temporary XftDraw object.
19825
198262008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * font.c (Ffontp): Fix docstring.
19829
19830 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19831 strong evidence of ISO-2022.
19832
198332008-02-01 Kenichi Handa <handa@m17n.org>
19834
19835 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19836 SYNTAX_ENTRY_FOLLOW_PARENT.
19837
198382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19839
19840 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19841 its type.
19842 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19843 Update to the new type of weak_hash_tables and next_weak.
19844
19845 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19846 a plain C pointer to Lisp_Hash_Table.
19847
19848 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19849 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19850 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19851 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19852 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19853 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19854 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19855 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19856 (GC_EQ): Remove since they've been identical to their non-GC_
19857 alter-egos ever since the markbit was eradicated.
19858
19859 * alloc.c:
19860 * buffer.c:
19861 * buffer.h:
19862 * data.c:
19863 * fileio.c:
19864 * filelock.c:
19865 * fns.c:
19866 * frame.h:
19867 * lisp.h:
19868 * macterm.c:
19869 * print.c:
19870 * process.c:
19871 * w32fns.c:
19872 * w32menu.c:
19873 * w32term.c:
19874 * xfns.c:
19875 * xmenu.c:
19876 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19877
198782008-02-01 Kenichi Handa <handa@m17n.org>
19879
19880 * chartab.c (map_sub_char_table): Make it work for the top-level
19881 char-table. Fix handling of parent char-table.
19882 (map_char_table): Adjust for the above change.
19883
198842008-02-01 Jason Rumney <jasonr@gnu.org>
19885
19886 * w32font.c (Qgdi): Rename from Qw32.
19887
198882008-02-01 Jason Rumney <jasonr@gnu.org>
19889
19890 * w32bdf.c (get_quoted_string): Make function static.
19891
198922008-02-01 Kenichi Handa <handa@m17n.org>
19893
19894 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19895 bigger ascent and descent than those of the font, use them as
19896 font's ascent and descent.
19897
198982008-02-01 Kenichi Handa <handa@m17n.org>
19899
19900 * Makefile.in (${lispsource}international/charprop.el): Move this
19901 target within "#ifdef HAVE_UNIDATA" and "#endif".
19902
199032008-02-01 Kenichi Handa <handa@m17n.org>
19904
19905 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19906 (shortlisp): Add ../lisp/language/tai-viet.el.
19907
199082008-02-01 Ulrich Mueller <ulm@gentoo.org>
19909
19910 * Makefile.in (${lispsource}international/charprop.el): Depend on
19911 temacs${EXEEXT}.
19912
199132008-02-01 Jason Rumney <jasonr@gnu.org>
19914
19915 * w32font.c (w32font_close): Delete the GDI font object.
19916
19917 * w32menu.c: Include character.h.
19918
19919 * w32proc.c: Likewise.
19920
19921 * w32select.c: Likewise.
19922
19923 * makefile.w32-in (w32proc.o): Depend on character.h.
19924
199252008-02-01 Jason Rumney <jasonr@gnu.org>
19926
19927 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19928
19929 * w32menu.c (syms_of_w32menu): Likewise.
19930
19931 * w32proc.c (syms_of_ntproc): Likewise.
19932
19933 * w32select.c (syms_of_w32select): Likewise.
19934
19935 * w32term.c (syms_of_w32term): Likewise.
19936
199372008-02-01 Jason Rumney <jasonr@gnu.org>
19938
19939 * w32font.c (w32font_draw): Delete brush after using it.
19940
199412008-02-01 Jason Rumney <jasonr@gnu.org>
19942
19943 * w32font.c (w32font_open): Don't set font_idx.
19944 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19945 to font settings.
19946 (w32font_draw): Fill background explicitly.
19947
199482008-02-01 Jason Rumney <jasonr@gnu.org>
19949
19950 * w32term.c (w32_initialize): Don't call w32font_initialize.
19951
19952 * w32font.c (w32font_info): Remove subranges.
19953 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19954 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19955 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19956 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19957 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19958 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19959 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19960 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19961 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19962 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19963 New symbols.
19964 (font_callback_data): New struct.
19965 (w32font_list, w32font_match): Use it.
19966 (w32font_open): Don't populate subranges.
19967 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19968 (w32font_encode_char): Always return unicode code-point as-is.
19969 (w32font_text_extents): Supply a transformation matrix to
19970 GetGlyphOutline. Never look up by glyph index. Avoid looping
19971 twice. Use unicode version of GetTexExtentPoint32 instead of
19972 glyph index version.
19973 (set_fonts_frame): Remove.
19974 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19975 set frame parameter. Use backward compatible fake foundries.
19976 Save generic family in extra slot under QCfamily. Make width slot
19977 constant. Save QCspacing value. Save list of scripts instead of
19978 binary subranges.
19979 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19980 (add_font_entity_to_list): Use font_callback_data struct. Filter
19981 unwanted fonts.
19982 (add_one_font_entity_to_list): Use font_callback_data struct.
19983 (w32_registry): Default to iso10646_1.
19984 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19985 string font registries. Don't fill in font name if it is a generic
19986 family name, fill family instead. Use spacing, family and script
19987 extra info to fill pitch, family and charset fields.
19988 (list_all_matching_fonts): Use font_callback_data struct.
19989 (unicode_range_for_char): Remove.
19990 (font_supported_scripts): New function.
19991 (w32font_initialize): Remove.
19992 (syms_of_w32font): Update which symbols are defined.
19993
199942008-02-01 Jason Rumney <jasonr@gnu.org>
19995
19996 * font.c (font_pixel_size): Reverse assq_no_quit args.
19997
19998 * w32term.h (FONT_WIDTH): Report max width, not average.
19999 (FONT_MAX_WIDTH): Remove.
20000 (FONT_AVG_WIDTH): New macro.
20001
20002 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20003 redefinition of FONT_WIDTH.
20004
20005 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20006 (w32_cache_char_metrics): Use FONT_WIDTH.
20007
20008 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20009
200102008-02-01 Jason Rumney <jasonr@gnu.org>
20011
20012 * w32font.c (w32font_open): Make lfHeight negative.
20013
20014 * w32fns.c (x_default_font_parameter): Use new style font name.
20015 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20016
200172008-02-01 Jason Rumney <jasonr@gnu.org>
20018
20019 * w32font.c (QCsubranges): New symbol.
20020 (w32font_open, w32font_has_char): Get subranges from subproperty
20021 of extra.
20022 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20023 (syms_of_w32font): Define :subranges symbol.
20024
20025 * font.c (font_put_extra): Expose externally.
20026
20027 * font.h (font_put_extra): Move declaration from font.c.
20028
20029 * font.c (Ffont_get): Use font driver to determine otf capability.
20030 (adjust_anchor): Check if driver defines anchor_point before using.
20031
20032 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20033 (w32font_draw): Use options.
20034 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20035 Fix detection of truetype fonts.
20036 (registry_to_w32_charset): Handle charsets other than iso8859-1
20037 expressed as lisp symbols.
20038 (w32_registry): Express charset as lisp symbol.
20039 (fill_in_logfont): Reverse pixel and point height logic.
20040 Don't set width here. Set quality to default.
20041
20042 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20043 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20044
20045 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20046 Remove redundant loop and allocation.
20047
20048 * makefile.w32-in (font.o, w32font.o): New objects.
20049 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20050 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20051
20052 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20053 STORE_XCHARB a valid l-value.
20054
20055 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20056 calculations for non-Truetype fonts.
20057 (x_draw_glyph_string): Sync with xterm.c.
20058 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20059 Remove redundant code.
20060 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20061
20062 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20063 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20064
20065 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20066 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20067
20068 * w32font.c: New file for w32 font backend.
20069
200702008-02-01 Kenichi Handa <handa@m17n.org>
20071
20072 * term.c: Don't include "buffer.h" twice.
20073
200742008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * character.c (Funibyte_string): New function.
20077 (syms_of_character): Defsubr it.
20078
200792008-02-01 Jason Rumney <jasonr@gnu.org>
20080
20081 * w32term.c [USE_FONT_BACKEND]:
20082 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20083 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20084 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20085 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20086 (x_free_frame_resources): Sync with xterm.c.
20087
200882008-02-01 Andreas Schwab <schwab@suse.de>
20089
20090 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20091 char-table size.
20092
200932008-02-01 Kenichi Handa <handa@m17n.org>
20094
20095 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20100 font_otf_gpos, add font_drive_otf.
20101
20102 * fontset.c (fontset_find_font): Pay attention to font size
20103 specified for a font.
20104 (reorder_font_vector): Check contents of font_def.
20105
20106 * font.c (struct otf_list): Delete it.
20107 (otf_list): Make it a lisp variable.
20108 (otf_open): Use lispy otf_list.
20109 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20110 (check_otf_features): New function.
20111 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20112 New functions.
20113 (font_drive_otf): New function merging font_otf_gsub and
20114 font_otf_gpos.
20115 (font_open_for_lface): New arg spec. Change argument order.
20116 (font_load_for_face): Adjust for the change of font_open_for_lface.
20117 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20118 Ffont_otf_gpos.
20119 (syms_of_font): Staticpro otf_list. Delete defsubr of
20120 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20121
20122 * xfaces.c (set_font_frame_param): Adjust for the change of
20123 font_open_for_lface.
20124
20125 * font.h (font_open_for_lface): Adjust prototype.
20126 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20127 member otf_drive.
20128 (font_otf_gsub, font_otf_gpos): Delete externs.
20129 (font_drive_otf): Extern it.
20130
201312008-02-01 Kenichi Handa <handa@m17n.org>
20132
20133 * font.c (font_at): If the window W is not on a window system,
20134 return Qnil.
20135
20136 * coding.c (produce_chars, encode_coding): Don't call
20137 insert_from_gap if no characters to produce.
20138
201392008-02-01 Kenichi Handa <handa@m17n.org>
20140
20141 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20142 Fclear_face_cache.
20143
20144 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20145
201462008-02-01 Miles Bader <miles@gnu.org>
20147
20148 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20149 Parse "--disable-font-backend" option.
20150 (standard_args): Add "--disable-font-backend" option.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * fontset.c (fontset_find_font): New function.
20155 (fontset_font): Use fontset_find_font.
20156 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20157 Register the specified font for all Latin characters.
20158 (new_fontset_from_font): Register the specified font for all Latin
20159 characters.
20160 (dump_fontset): For a realized fontset, include the base fontset
20161 name in the returned vector.
20162
201632008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * character.h (CHAR_STRING): Cast C to unsigned on calling
20166 char_string.
20167
20168 * character.c (char_string): Type of arg C changed to unsigned.
20169 Signal an error if C is an invalid character code.
20170
20171 * editfns.c (general_insert_function, Fchar_to_string):
20172 Use CHARACTERP, not INTEGERP.
20173
201742008-02-01 Kenichi Handa <handa@m17n.org>
20175
20176 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20177 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20178
20179 * regex.c (analyse_first): Fix for multibyte characters in "case
20180 charset:" and "case categoryspec:".
20181
201822008-02-01 Andreas Schwab <schwab@suse.de>
20183
20184 * Makefile.in (LIBES): Move standard libraries to the end.
20185
201862008-02-01 Kenichi Handa <handa@m17n.org>
20187
20188 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20189 nonzero, don't shrink the buffer nextb.
20190
20191 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20192
20193 * coding.c (coding_alloc_by_making_gap): New arg offset.
20194 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20195 offset.
20196 (decode_coding_iso_2022): Update coding->safe_charsets.
20197 (decode_coding_gap): Temporarily set
20198 current_buffer->text->inhibit_shrinking to 1.
20199
202002008-02-01 Kenichi Handa <handa@m17n.org>
20201
20202 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20203 indexing into elements of s->cmp and s->char2b.
20204
202052008-02-01 Juanma Barranquero <lekktu@gmail.com>
20206
20207 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20208
202092008-02-01 Kenichi Handa <handa@m17n.org>
20210
20211 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20212 target_multibyte instead of multibyte.
20213 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20214 (bcmp_translate): Change the argument name from multibyte to
20215 target_multibyte.
20216
202172008-02-01 Kenichi Handa <handa@m17n.org>
20218
20219 These changes are to compile a regexp into a pattern that can be
20220 used both for multibyte and unibyte targets.
20221
20222 * Makefile.in (search.o): Depend on charset.h.
20223
20224 * character.c (multibyte_char_to_unibyte_safe): New function.
20225
20226 * search.c: Include "charset.h".
20227 (compile_pattern_1): Delete argument multibyte. Don't set
20228 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20229 (compile_pattern): Don't compare cp->buf.target_multibyte.
20230 Compare cp->buf.charset_unibyte.
20231 (compile_pattern): Set cp->buf.target_multibyte.
20232
20233 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20234
20235 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20236
20237 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20238 multibyte. Change callers.
20239 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20240 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20241 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20242 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20243 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20244 (regex_compile): Make the compiled pattern usable both for
20245 multibyte and unibyte targets.
20246 (analyse_first): Make the fastmap usable both for multibyte and
20247 unibyte targets.
20248 (TRANSLATE_VIA_MULTIBYTE): Delete.
20249 (re_match_2_internal): Pay attention to the case that the
20250 multibyteness of bufp and target may be different.
20251
202522008-02-01 Kenichi Handa <handa@m17n.org>
20253
20254 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20255 empty box occupy at least one column width.
20256
202572008-02-01 Miles Bader <miles@gnu.org>
20258
20259 * Makefile.in: Remove redundant HAVE_XFT clause.
20260
202612008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20264
202652008-02-01 Kenichi Handa <handa@m17n.org>
20266
20267 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20268 being nil.
20269
202702008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20273
202742008-02-01 Kenichi Handa <handa@m17n.org>
20275
20276 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * search.c (simple_search): Fix previous change.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * xftfont.c (ftfont_font_format): Extern declaration.
20285
20286 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20287
20288 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20289 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20290
20291 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20292 (ftfont_font_format): Fix previous change.
20293
20294 * font.h (Ffont_xlfd_name): EXFUN it.
20295
20296 * font.c (font_parse_xlfd): Fix the array size of `f'.
20297 (register_font_driver): Use EQ to compare driver->type.
20298
20299 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20300 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20301 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20302
203032008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20306 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20307
203082008-02-01 Kenichi Handa <handa@m17n.org>
20309
20310 * xfont.c (xfont_open): Set font->format.
20311
20312 * xftfont.c (xftfont_open): Set font->format.
20313
20314 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20315 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20316 (ftfont_open): Set font->format.
20317 (ftfont_font_format): New function.
20318
20319 * font.h (struct font): New member format.
20320
20321 * font.c (Qopentype): New variable.
20322 (syms_of_font): Defsym it.
20323 (Fquery_font): Change the format of the last element of the return
20324 value.
20325
203262008-02-01 Kenichi Handa <handa@m17n.org>
20327
20328 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20329 last resort.
20330
203312008-02-01 Kenichi Handa <handa@m17n.org>
20332
20333 * coding.c (detect_coding_charset): Fix detection of multi-byte
20334 charset.
20335
203362008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20337
20338 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20339
203402008-02-01 Kenichi Handa <handa@m17n.org>
20341
20342 * xdisp.c (get_next_display_element): Set it->face_id for the
20343 first component of a composition.
20344 (x_produce_glyphs): Check if the font is changed or not for composition.
20345
203462008-02-01 Kenichi Handa <handa@m17n.org>
20347
20348 * fontset.c (Qlatin): New variable.
20349 (syms_of_fontset): Define it as a lisp symbol.
20350 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20351
203522008-02-01 Kenichi Handa <handa@m17n.org>
20353
20354 * font.c (font_unparse_fcname): Pay attention to the case that
20355 some of font property is a null string.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * term.c: Include "composite.h".
20360 (encode_terminal_code): Output all components of composition.
20361 Check the size of encode_terminal_src.
20362 (produce_glyphs): For composition, call produce_composite_glyph.
20363 (append_composite_glyph, produce_composite_glyph): New functions.
20364
20365 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20366 is not found, get font_info from the current ascii face.
20367
203682008-02-01 Kenichi Handa <handa@m17n.org>
20369
20370 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20371 buffer-file-name to Qnil before calling insert_from_buffer.
20372
20373 * font.c (font_unparse_fcname): Pay attention to the case that
20374 foundry is a null string.
20375
203762008-02-01 Kenichi Handa <handa@m17n.org>
20377
20378 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20379
20380 * font.c (Qunicode_sip): New variable.
20381 (syms_of_font): Declare it as a Lisp symbol.
20382
20383 * font.h (Qunicode_sip): Extern it.
20384
203852008-02-01 Kenichi Handa <handa@m17n.org>
20386
20387 * composite.c (get_composition_id): Pay attention to TAB component.
20388
20389 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20390 TAB. Adjust for the change of s->char2b which always points to
20391 the first element of allocated memory.
20392
20393 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20394
20395 * xdisp.c (handle_composition_prop): Set it->c to the first
20396 non-TAB component.
20397 (fill_composite_glyph_string): Change argument.
20398 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20399 (x_produce_glyphs): Fix handling of left/right padding.
20400
204012008-02-01 Kenichi Handa <handa@m17n.org>
20402
20403 * coding.c (detect_coding_system): Fix for handling off
20404 inhibit_iso_escape_detection. Fix for the case that no coding
20405 system is defined for a specific coding category.
20406
204072008-02-01 Kenichi Handa <handa@m17n.org>
20408
20409 * font.c (font_matching_entity): Delete unused local var.
20410
20411 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20412 opening a font.
20413
20414 * fileio.c (Finsert_file_contents): On recovering a file, assume
20415 Unix-like eol.
20416 (choose_write_coding_system): On auto-saving a file, force
20417 Unix-like eol.
20418
20419 * coding.c (setup_coding_system): Fix setting of
20420 coding->common_flags based on eol_type.
20421 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20422 inherit from it.
20423
204242008-02-01 Kenichi Handa <handa@m17n.org>
20425
20426 * alloc.c (NSTATICS): Increas to 0x600.
20427
204282008-02-01 Kenichi Handa <handa@m17n.org>
20429
20430 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20431 (ftfont_list): Don't check :name property.
20432 (ftfont_match): New function.
20433 (ftfont_pattern_entity): If the pattern doesn't contain
20434 FC_SPACING, don't assume FC_MONO.
20435
20436 * font.h (struct font_driver): New member `match'.
20437 (font_update_drivers): Adjust prototype.
20438
20439 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20440 property of FONT.
20441 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20442 them unconditionally.
20443 (font_matching_entity): New function.
20444 (font_open_by_name): Try font_matching_entity if exact match is
20445 not found.
20446 (font_update_drivers): Delete the arg FONT. Return a list of
20447 actually used backends. Don't free faces, font caches here.
20448 Don't store data in frame parameters. Don't call x_set_font.
20449 (Ffont_spec): Store :name property as is.
20450 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20451 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20452 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20453 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20454 Call font->driver->otf_gsub instead of font_otf_gsub.
20455
20456 * frame.c (x_set_font_backend): Do more works that were done in
20457 font_update_drivers before.
20458
20459 * xfont.c (xfont_match): New function.
20460 (xfont_driver): Set xfont_driver.match to xfont_match.
20461 (xfont_draw): Set font in GC if necessary.
20462
20463 * ftxfont.c (ftxfont_match): New function.
20464 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20465
20466 * xftfont.c (xftfont_match): New function.
20467 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20468
204692008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * font.h (struct font): New member scalable.
20472 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20473 (font_otf_gsub): Adjust prototype.
20474
20475 * font.c (font_otf_capability): Fix handling of the default langsys.
20476 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20477 Check the contents of SPEC.
20478 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20479 (check_gstring): New function.
20480 (REPLACEMENT_CHARACTER): New macro.
20481 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20482 glyph codes of GSTRING.
20483 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20484 (font_prepare_composition): Set cmp->glyph_len.
20485 (font_open_entity): Set font->scalable.
20486 (Ffont_get): Handle :otf property.
20487 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20488 functions.
20489 (Fquery_font): Use font->font.full_name.
20490 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20491 Sfont_otf_alternates.
20492
20493 * ftfont.c (ftfont_open): Set font->font.full_name and
20494 font->font.name properly. Fix calculation of font->font.height
20495 and font->min_width.
20496
20497 * ftxfont.c (ftxfont_create_gcs): New function.
20498 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20499 (ftxfont_draw_backgrond): Fix filling region.
20500 (ftxfont_default_fid): New function.
20501 (ftxfont_open): Set xfont->fid to the return value of
20502 ftxfont_default_fid.
20503 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20504 (ftxfont_done_face): Free only GCs that are created by
20505 ftxfont_create_gcs.
20506 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20507
20508 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20509 Clip to src->width, etc (not src->clip_XXX).
20510
20511 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20512 FontBackend frame parameter.
20513
205142008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * font.h (struct font_driver_list): New member `on'.
20517 (Fclear_font_cache): EXFUN it.
20518 (font_update_drivers): Extern it.
20519
20520 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20521 (font_list_entities): Check driver_list->on.
40b1a3a9 20522 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20523 (font_update_drivers): New function.
20524 (Fclear_font_cache): Check driver_list->on.
20525
20526 * frame.h (Qfont_backend): Extern it.
20527 (x_set_font_backend): Extern it.
20528
20529 * frame.c (Qfont_backend): New variable.
20530 (frame_parms): New element for font-backend.
20531 (x_set_font_backend): New function.
20532
20533 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20534 FontBackend frame parameter.
20535 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20536 x_set_font_backend.
20537
20538 * xfont.c (xfont_list): Don't try listing by :name property if the
20539 name is not for XLFD.
20540
205412008-02-01 Kenichi Handa <handa@m17n.org>
20542
20543 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20544 (LGLYPH_SET_TO): New macros.
20545 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20546 element of G is vector or not.
20547 (font_at): Extern it.
20548
20549 * font.c: Include window.h.
20550 (font_lispy_object): New function.
20551 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20552 end of valid glyph.
20553 (font_close_object): Fix getting (struct font *).
20554 (font_at): New function.
20555 (Ffont_get): If FONT is a font-object, get entity from it.
20556 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20557 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20558 range check.
20559 (Ffont_at): New function.
20560 (syms_of_font): Defsubr Sfont_at.
20561
20562 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20563 before the entry for Qcomposition.
20564 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20565 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20566 the font in gstring.
20567 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20568 LGLYPH_FORM (g) to detect the end of valid glyph.
20569 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20570 we are composing with gstring.
20571
20572 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20573 Check if adjustment is vector or not.
20574
20575 * Makefile.in (font.o): Make it depends on window.h.
20576
205772008-02-01 Kenichi Handa <handa@m17n.org>
20578
20579 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20580 adjustment is vector or not.
20581
205822008-02-01 Miles Bader <miles@gnu.org>
20583
20584 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20585
205862008-02-01 Kenichi Handa <handa@m17n.org>
20587
20588 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20589 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20590 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20591
20592 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20593 (DEVICE_DELTA): Fix typo.
20594 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20595 LGLYPH format.
20596
20597 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20598 the change of LGLYPH format.
20599
206002008-02-01 Kenichi Handa <handa@m17n.org>
20601
20602 * ftfont.c (ftfont_list): Fix typo.
20603 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20604
206052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20606
20607 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20608
20609 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20610 xftface_info is non-NULL.
20611
206122008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20613
20614 * ftfont.c (ftfont_list): Move misplaced #endif.
20615
206162008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * ftfont.c (ftfont_list): Pay attention to the case that
20619 FC_CAPABILITY is not defined.
20620
206212008-02-01 Kenichi Handa <handa@m17n.org>
20622
20623 * xftfont.c (xftfont_open): Set charset related members to -1.
20624
20625 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20626 QCname.
20627 (ftfont_open): Set charset related members to -1.
20628
20629 * fontset.c (Votf_script_alist): New variable.
20630 (syms_of_fontset): Initialize it.
20631 (fontset_font): Delete unused variable.
20632
20633 * fontset.h (Votf_script_alist): Extern it.
20634
20635 * font.c (font_find_for_lface): Optimize code.
20636
20637 * font.h (font_close_object, font_merge_old_spec): Extern them.
20638
206392008-02-01 Kenichi Handa <handa@m17n.org>
20640
20641 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20642 (syms_of_font): Initialize them.
20643 (font_pixel_size): Allow float value in dpi.
20644 (font_prop_validate_type): Delete.
20645 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20646 Change caller.
20647 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20648 (font_prop_validate_extra): Delete.
20649 (font_prop_validate_spacing): New function.
20650 (font_property_table): Add elements for all known properties.
20651 (get_font_prop_index): Rename from check_font_prop_name. New
20652 argument FROM. Change caller.
20653 (font_prop_validate): Validate all known properties.
20654 (font_put_extra): Delete argument force. Change caller.
20655 (font_expand_wildcards): Make it static. Fix the way of shrinking
20656 the possible range.
20657 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20658 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20659 Change caller.
20660 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20661 (font_parse_fcname): Delete argument merge. Fix parsing of point
20662 size. Don't validate properties values here. Change caller.
20663 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20664 (font_open_by_name): Delete unused variable.
20665 (Ffont_spec): Likewise. Validate property values.
20666 (Ffont_match_p): New function.
20667
20668 * font.h (QCscalable): Extern it.
20669 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20670
20671 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20672
20673 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20674 (xfont_list_pattern): New function.
20675 (xfont_list): Use xfont_list_pattern.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * font.h (Flist_fonts): EXFUN it.
20680
206812008-02-01 Jason Rumney <jasonr@gnu.org>
20682
20683 * w32term.c (w32_initialize): Add back smoothing_type and
20684 smoothing_enabled definitions.
20685
206862008-02-01 Kenichi Handa <handa@m17n.org>
20687
20688 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20689 s->face->font on determining underline position.
20690
206912008-02-01 Kenichi Handa <handa@m17n.org>
20692
20693 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20694 (font_has_char): Accept font-object too.
20695 (font_find_for_lface): Try at first with a size specified in face.
20696
206972008-02-01 Kenichi Handa <handa@m17n.org>
20698
20699 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20700 font_open_by_name.
20701
207022008-02-01 Kenichi Handa <handa@m17n.org>
20703
20704 * font.h (QCspacing, QCdpi): Extern them.
20705 (enum font_spacing): New enum.
20706 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20707
20708 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20709 (QCspacing, QCdpi): New variables.
20710 (syms_of_font): Initialize them.
20711 (font_pixel_size): New function.
20712 (font_put_extra): New function.
20713 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20714 in FONT_EXTRA.
20715 (font_parse_fcname): Handle enumerated values (e.g. bold).
20716 Fix handling font size. Add QCname property that contains only
20717 unknown properties.
20718 (font_score): Change argument. Change caller. Pay attention to
20719 FONT_PIXEL_SIZE_QUANTUM.
20720 (font_sort_entites, font_list_entities, font_find_for_lface)
20721 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20722 (Ffont_spec): Add QCname property that contains only unknown properties.
20723
20724 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20725 include weight in listing pattern, instead check weight of each
20726 listed font. Don't include scalable in pattern. Pay attention to
20727 FONT_PIXEL_SIZE_QUANTUM.
20728
207292008-02-01 Kenichi Handa <handa@m17n.org>
20730
20731 * font.c (font_parse_fcname): Fix parsing of point-size.
20732 (font_unparse_fcname): Produce symbolic names for style properties.
20733 (font_list_entities): Handle float size correctly.
20734 (font_open_by_name): Prefer `normal' property values if the name
20735 doesn't specify them.
20736
20737 * fontset.c (Finternal_char_font): Use font_get_name, not
20738 Ffont_xlfd_name.
20739
20740 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20741 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20742 pattern. Don't force scalable.
20743
20744 * xftfont.c (xftfont_open): For generating a name, start from
20745 96-byte buffer.
20746
207472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20748
20749 * frame.h (x_new_fontset2): Fix prototype.
20750
207512008-02-01 Kenichi Handa <handa@m17n.org>
20752
20753 * font.h (struct font_driver): Delete member parse_name.
20754 (font_match_p, font_get_spec, font_parse_fcname)
20755 (font_unparse_fcname): Extern them.
20756 (font_get_name): Adjust prototype.
20757
20758 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20759 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20760 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20761 unnecessary checks for weight, slant, and swidth.
20762 (font_parse_fcname): New function.
20763 (font_unparse_fcname): New function.
20764 (font_parse_name): New function.
20765 (font_match_p): New function.
20766 (font_get_name): Change return value to Lisp string.
20767 (font_get_spec): New function.
20768 (Qunspecified, Qignore_defface): Don't extern them.
20769 (font_find_for_lface): Assume that LFACE is fully specified.
20770 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20771 object, use it for FACE.
20772 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20773 driver->parse_name.
20774 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20775
20776 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20777 prototype.
20778
20779 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20780 argument F. Don't call Fnew_fontset. Instead, directly call
20781 make_fontset.
20782
20783 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20784
20785 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20786 of x_new_fontset2.
20787
20788 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20789 (Qsans__serif): New variables.
20790 (ftfont_generic_family_list): New variable.
20791 (syms_of_ftfont): Initialize the above variables.
20792 (ftfont_pattern_entity): Delete argument NAME.
20793 (ftfont_list_generic_family): New function.
20794 (ftfont_parse_name): Delete this function.
20795 (ftfont_list): Try generic family only when FcFontList found no font.
20796 (ftfont_list_family): Fix args to FcObjectSetBuild.
20797
20798 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20799 object in attrs[LFACE_FONT_INDEX].
20800 (set_lface_from_font_name): Cancel all changes for font-backend.
20801 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20802 function.
20803 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20804 font object in QCfont attribute.
20805 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20806 (realize_default_face) [USE_FONT_BACKEND]: Call
20807 set_lface_from_font_and_fontset.
20808
20809 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20810 "fixed", and signal error here if no suitable font was found.
20811
20812 * xfont.c (xfont_parse_name): Delete this function.
20813
20814 * xftfont.c (xftfont_open): Change coding style of error
20815 handling. Generate fontconfig's fontname pattern.
20816
20817 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20818 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20819
20820 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20821 Both args FONTSET and FONT_OBJECT must be existing ones.
20822
208232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20824
20825 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20826
208272008-02-01 Kenichi Handa <handa@m17n.org>
20828
20829 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20830
20831 * font.h (struct font): Fix typo.
20832
20833 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20834 XLFD_XXX_INDEX.
20835 (enum xlfd_field_mask): New enum.
20836 (intern_font_field): Changed argument. Change caller. If digits
20837 are followed by non-digits, return a symbol.
20838 (font_expand_wildcards): New function.
20839 (font_parse_xlfd): Fix wildcard handling.
20840 (Ffont_spec): If :name is specified, reflect the info in the other
20841 properties.
20842
20843 * ftfont.c (ftfont_pattern_entity): Fix typo.
20844 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20845 locale.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20850
20851 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20852 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20853 registry doesn't specify encoding part.
20854 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20855 (font_open_by_name): At first try parsing the name.
20856 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20857 as Lisp symbols.
20858
20859 * fontset.c (reorder_font_vector): Pay attention to the case that
20860 the 3rd element of font_def is nil.
20861 (fontset_font): For the default fontset, append one more fontset
20862 elements for a script-based font specification. Don't add script
20863 attribute on finding a font.
20864 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20865 font name.
20866 (fontset_ascii_font): If a font can't be opened, return nil.
20867
20868 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20869 (ftfont_pattern_entity): New function.
20870 (ftfont_get_cache): Assume that freetype_font_cache is already
20871 initialized.
20872 (ftfont_list): Handle the case that a file is specified in font
20873 name. Use ftfont_pattern_entity to generate entities.
20874 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20875 (syms_of_ftfont): Initialize freetype_font_cache.
20876
20877 * xftfont.c (xftfont_open): Make the font name fontconfig's
20878 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20879 (xftfont_close): Free font->font.name if not NULL.
20880
20881 * xfont.c (xfont_list): If script is specified for a font, return
20882 null_vector.
20883 (xfont_list_family): Declare argument type.
20884
20885 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20886 name, set LFACE_FONT (lface) to nil.
20887
20888 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20889 return Qnil.
20890
208912008-02-01 Kenichi Handa <handa@m17n.org>
20892
20893 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20894 (standard_args): Add "-enable-font-backend".
20895
208962008-02-01 Kenichi Handa <handa@m17n.org>
20897
20898 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20899 (struct xftdraw_list, xftdraw_list): Delete them.
20900 (register_xftdraw, check_xftdraw): Delete them.
20901 (xftfont_prepare_face): Don't call register_xftdraw.
20902 (xftfont_done_face): Don't call check_xftdraw.
20903 (xftfont_draw): Get background color only when with_background is
20904 nonzero.
20905
20906 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20907
209082008-02-01 Kenichi Handa <handa@m17n.org>
20909
20910 These changes are for the new font handling codes.
20911
20912 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20913 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20914 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20915 (FONTSRC, FONTOBJ): New variables.
20916 (obj): Add $(FONTOBJ).
20917 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20918 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20919 @LIBOTF_LIBS@.
20920 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20921 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20922
20923 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20924
20925 * character.h (Vscript_representative_chars): Extern it.
20926
20927 * character.c (Vscript_representative_chars): New variable.
20928 (syms_of_character): Declare it as a Lisp variable.
20929
20930 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20931 enable_font_backend is nonzero, accept the composition method
20932 COMPOSITION_WITH_GLYPH_STRING.
20933
20934 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20935 enumeration COMPOSITION_WITH_GLYPH_STRING.
20936
20937 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20938 members clip_x, clip_y, clip_width, and clip_height.
20939 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20940
20941 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20942 --enable-font-backend. Call syms_of_font.
20943
20944 * fns.c (assoc_no_quit): New function.
20945
20946 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20947 (face_for_font, new_fontset_from_font)
20948 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20949
20950 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20951 (fontset_font, fontset_ascii, face_for_char)
20952 (make_fontset_for_ascii_face, Ffont_info)
20953 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20954 is nonzero, use font-backend mechanism.
20955 (find_font_encoding): Make it non-static.
20956 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20957 New functions.
20958
20959 * frame.h (struct frame): New members resx and resy.
20960 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20961 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20962
20963 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20964 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20965
20966 * lisp.h (assoc_no_quit): Extern it.
20967
20968 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20969 Through out the file, use FONT_INFO_FROM_FACE instead of
20970 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20971 rif->per_char_metric.
20972 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20973 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20974 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20975 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20976 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20977 nonzero, use font-backend mechanism.
20978 (get_per_char_metric): New function.
20979
20980 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20981 (set_lface_from_font_name)
20982 (set_font_frame_param, free_realized_face)
20983 (prepare_face_for_display, clear_face_gcs)
20984 (Finternal_set_font_selection_order, realize_x_face)
20985 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20986 font-backend mechanism.
20987 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20988 (load_face_font) [USE_FONT_BACKEND]: Abort.
20989 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20990 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20991
20992 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20993 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20994 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20995 nonzero, register all available font drivers. Call
20996 x_default_font_parameter for deciding a font.
20997 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20998
20999 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21000 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21001 (x_set_glyph_string_clipping_exactly)
21002 (x_compute_glyph_string_overhangs)
21003 (x_draw_glyph_string_foreground)
21004 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21005 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21006 enable_font_backend is nonzero, use font-backend mechanism.
21007 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21008
210092008-02-01 Kenichi Handa <handa@m17n.org>
21010
21011 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21012 system_eol_type.
21013 (syms_of_coding): Initialize system_eol_type.
21014
21015 * process.c (Fset_process_coding_system): Inherit system's eol
21016 format if necessary.
21017
210182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21019
21020 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21021
210222008-02-01 Kenichi Handa <handa@m17n.org>
21023
21024 * coding.c (decode_eol): Pay attention to buffer relocation in
21025 del_range_2.
21026 (decode_coding): Call decode_eol before restoring undo_list.
21027
210282008-02-01 Kenichi Handa <handa@m17n.org>
21029
21030 * charset.c (Fdefine_charset_internal): Fix setting of
21031 emacs_mule_bytes.
21032
210332008-02-01 Kenichi Handa <handa@m17n.org>
21034
21035 * keyboard.c (read_char): Check if C is a character or not before
21036 looking up Vkeyboard_translate_table.
21037
210382008-02-01 Kenichi Handa <handa@m17n.org>
21039
21040 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21041 condition to terminate the loop.
21042
210432008-02-01 Kenichi Handa <handa@m17n.org>
21044
21045 * coding.c (produce_composition): Compare charbuf[i] instead of
21046 args[i] against 0.
21047 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21048
210492008-02-01 Kenichi Handa <handa@m17n.org>
21050
21051 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21052 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21053 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21054 detect_coding.
21055 (emacs_mule_char): Handle old style (Emacs 20) component character
21056 of a composition.
21057 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21058 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21059 composition rule.
21060 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21061
210622008-02-01 Kenichi Handa <handa@m17n.org>
21063
21064 * coding.c (encode_coding_ccl): Allocate destination dynamically
21065 when necessary.
21066
210672008-02-01 Kenichi Handa <handa@m17n.org>
21068
21069 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21070 the loop. When quitted, show a proper error message.
21071
210722008-02-01 Kenichi Handa <handa@m17n.org>
21073
21074 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21075 src->clip_head and src->clip_tail temporarily instead of src->hl.
21076
21077 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21078 character sequence.
21079 (Fccl_execute_on_string): Use ASET, not XSET.
21080
210812008-02-01 Kenichi Handa <handa@m17n.org>
21082
21083 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21084
210852008-02-01 Kenichi Handa <handa@m17n.org>
21086
21087 * coding.c (decode_coding): Fix the condition of terminating the
21088 decoding loop.
21089
210902008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * data.c (Faset): On setting a character bigger than 255 in a
21093 unibyte string, signal an error instead of make the string multibyte.
21094
210952008-02-01 Kenichi Handa <handa@m17n.org>
21096
21097 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21098 made by a mapping table.
21099
211002008-02-01 Kenichi Handa <handa@m17n.org>
21101
21102 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21103 not.
21104 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21105 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21106
21107 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21108 s->face is NULL or not.
21109
211102008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21113 (x_draw_glyph_string): Fix drawing of right_overhang and
21114 left_overhang around/on cursor.
21115
21116 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21117
211182008-02-01 Kenichi Handa <handa@m17n.org>
21119
21120 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21121
211222008-02-01 Kenichi Handa <handa@m17n.org>
21123
21124 * coding.c (Fdefine_coding_system_internal)
21125 (Fdefine_coding_system_alias): Avoid a duplicated element in
21126 Vcoding_system_alist.
21127
211282008-02-01 Kenichi Handa <handa@m17n.org>
21129
21130 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21131
21132 * coding.c (Qcoding_system_define_form): New variable.
21133 (syms_of_coding): Intern and staticpro it.
21134 (Fcoding_system_p): Check Qcoding_system_define_form.
21135 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21136
21137 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21138 Fcoding_system_p.
21139 (CHECK_CODING_SYSTEM): If ID is not available, call
21140 Fcheck_coding_system.
21141 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21142 Try also Fcheck_coding_system.
21143
211442008-02-01 Kenichi Handa <handa@m17n.org>
21145
21146 * coding.c (code_conversion_restore): GCPRO arg.
21147
211482008-02-01 Kenichi Handa <handa@m17n.org>
21149
21150 * character.c (lisp_string_width): Check multibyteness of STRING.
21151
211522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21153
21154 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21155 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21156 (decode_mac_font_name): Use decode_coding_c_string instead of
21157 decode_coding.
21158 (x_load_font): Initialize fontp->fontset to -1. Set
21159 fontp->encoding_type.
21160
211612008-02-01 Kenichi Handa <handa@m17n.org>
21162
21163 * search.c (search_buffer): Give up BM search on case-fold-search
21164 if one of a target character has a case-equivalence of different
3b59c351 21165 byte length even if that target character is an ASCII.
aac0c6e3
MR
21166 (simple_search): Fix calculation of byte length of matched text.
21167 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21168
211692008-02-01 Kenichi Handa <handa@m17n.org>
21170
21171 * coding.c (decode_coding): Fix handling of invalid bytes.
21172
211732008-02-01 Kenichi Handa <handa@m17n.org>
21174
21175 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21176 Unicode characters.
21177
211782008-02-01 Kenichi Handa <handa@m17n.org>
21179
21180 * coding.c (encode_coding_object): If a pre-write-conversion
21181 function makes a new buffer, kill it.
21182
211832008-02-01 Kenichi Handa <handa@m17n.org>
21184
21185 * coding.c (QCascii_compatible_p): New variable.
21186 (syms_of_coding): Initialize it.
21187 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21188 calling string_char.
21189 (record_conversion_result): Add `default:' case.
21190 (coding_charset_list): Delete unused variable `coding_type'.
21191 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21192 property in the plist of the coding system.
21193 (Fcoding_system_put): Check QCascii_compatible_p.
21194
211952008-02-01 Miles Bader <miles@gnu.org>
21196
21197 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21198 removed calculation of frame `f', as it's now used.
21199
212002008-02-01 Kenichi Handa <handa@m17n.org>
21201
21202 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21203 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21204 (UNIDATA): New variable.
21205 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21206 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21207 $(RUN_TEMACS) unconditionally.
21208
212092008-02-01 Kenichi Handa <handa@m17n.org>
21210
21211 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21212 (admindir): New variable.
21213 ($(lispsource)international/charprop.el): New target.
21214
212152008-02-01 Miles Bader <miles@gnu.org>
21216
21217 * character.c (chars-in-region): Remove obsolete function.
21218 (syms_of_character): Remove its initialization.
21219
212202008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21221
21222 * w32select.c (validate_coding_system)
21223 (setup_windows_coding_system): New functions.
21224 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21225 setup_windows_coding_system.
21226 (setup_config, Fw32_get_clipboard_data): Use
21227 validate_coding_system.
21228 (Fx_selection_exists): Move call to setup_config to a place
21229 where signals are allowed.
21230
21231 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21232 (Fcheck_coding_system): Add declarations.
21233
212342008-02-01 Kenichi Handa <handa@m17n.org>
21235
21236 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21237
212382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21239
21240 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21241 string as the second argument for x_new_fontset.
21242
212432008-02-01 Kenichi Handa <handa@m17n.org>
21244
21245 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21246 (encode_coding_object): Use safe_call instead of call2.
21247
212482008-02-01 Kenichi Handa <handa@m17n.org>
21249
21250 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21251
21252 * Makefile.in (lisp): Include charprop.el.
21253
212542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21255
21256 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21257 Not sure if it's unnecessary.
21258
212592008-02-01 Steven Tamm <steventamm@mac.com>
21260
21261 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21262 some possibly unnecessary fontset checking code that crashed
21263 when creating a new frame.
21264
212652008-02-01 Kenichi Handa <handa@m17n.org>
21266
21267 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21268 lookup_face.
21269
21270 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21271
21272 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21273
212742008-02-01 Kenichi Handa <handa@m17n.org>
21275
21276 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21277 (coding_charset_list): New function.
21278
21279 * coding.h (coding_charset_list): Extern it.
21280
212812008-02-01 Kenichi Handa <handa@m17n.org>
21282
21283 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21284 concatenation of family and registry.
21285
212862008-02-01 Kenichi Handa <handa@m17n.org>
21287
21288 * character.h (BYTE8_STRING): Fix typo.
21289
21290 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21291 string to multibyte (sync to HEAD).
21292
21293 * casefiddle.c (casify_region): Handle changes in byte-length
21294 using replace_range_2 (sync to HEAD).
21295
212962008-02-01 Andreas Schwab <schwab@suse.de>
21297
21298 * chartab.c (map_char_table): GCPRO table and arg.
21299
213002008-02-01 Kenichi Handa <handa@m17n.org>
21301
21302 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21303 already at limit.
21304
213052008-02-01 Kenichi Handa <handa@m17n.org>
21306
21307 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21308 instead of fast_c_string_match_ignore_case.
21309 (find_font_encoding): Change argument to Lisp_Object. Use
21310 fast_string_match_ignore_case instead of
21311 fast_c_string_match_ignore_case. Change caller.
21312
213132008-02-01 Kenichi Handa <handa@m17n.org>
21314
21315 * xdisp.c (get_next_display_element): In unibyte case, decide to
21316 display in octal form by checking a character by
21317 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21318
21319 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21320
21321 * character.c (unibyte_has_multibyte_table): New variable.
21322
21323 * character.h (unibyte_has_multibyte_table): Extern it.
21324 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21325
213262008-02-01 Kenichi Handa <handa@m17n.org>
21327
21328 * coding.c (encode_coding_iso_2022): Fix handling of charset
21329 annotation.
21330
213312008-02-01 Kenichi Handa <handa@m17n.org>
21332
21333 * coding.c (setup_coding_system): If coding_system is nil, use
21334 Qundecided.
21335 (Fterminal_coding_system): Return nil if terminal coding system is
21336 `undecided'.
21337 (syms_of_coding): Define coding-system `undecided' here. Setup
21338 terminal_coding as `undecided'.
21339
213402008-02-01 Kenichi Handa <handa@m17n.org>
21341
21342 * xdisp.c (message_dolog, set_message_1): Call
21343 unibyte_char_to_multibyte with arg type int.
21344
21345 * lread.c (read1): Fix reading of a char-table.
21346
21347 * print.c (print_object): Include sub char-table in circularities
21348 detection.
21349
213502008-02-01 Kenichi Handa <handa@m17n.org>
21351
21352 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21353 Append the found sequences in car of ARGS instead of prepending.
21354
213552008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * fileio.c (report_file_error): Make a unibyte string from
21358 strerror (errorno).
21359 (Fsubstitute_in_file_name): Fix the arg to
21360 unibyte_char_to_multibyte. It is evaluated twice.
21361
213622008-02-01 Kenichi Handa <handa@m17n.org>
21363
21364 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21365
213662008-02-01 Kenichi Handa <handa@m17n.org>
21367
21368 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21369 BOM is not found.
21370 (detect_coding, detect_coding_system): Optimization for ISO-2022
21371 when no 8-bit data is found.
21372
213732008-02-01 Jason Rumney <jasonr@gnu.org>
21374
21375 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21376
213772008-02-01 Kenichi Handa <handa@m17n.org>
21378
21379 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21380 CHARS.
21381
213822008-02-01 Steven Tamm <steventamm@mac.com>
21383
21384 * macterm.c (mac_encode_char): Add charset argument and update
21385 to use encoding_type.
21386 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21387 switch to pure fontset.
21388 (decode_mac_font_name): Temporarily remove decoding.
21389 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21390 (x_load_font): Temporarily remove encoding.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * xfaces.c (Fface_font): If frame is not on a window system,
21395 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21396 refer to face->font.
21397 (split_font_name_into_vector, build_font_name_from_vector)
21398 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21399 when HAVE_WINDOW_SYSTEM is defined.
21400
214012008-02-01 Kenichi Handa <handa@m17n.org>
21402
21403 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21404 (x_produce_glyphs): Fix setting of members of cmp in case
21405 cmp->glyph_len is zero.
21406
21407 * fontset.c (Fset_fontset_font): Fix docstring.
21408 (Ffontset_info): Make it backward compatible. New arg ALL.
21409
214102008-02-01 Kim F. Storm <storm@cua.dk>
21411
21412 * process.c (read_process_output): Grow decoding_buf when needed;
21413 this could cause a crash in allocate_string and compact_small_strings.
21414
214152008-02-01 Kenichi Handa <handa@m17n.org>
21416
21417 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21418
214192008-02-01 Kenichi Handa <handa@m17n.org>
21420
21421 * coding.c (setup_coding_system): Set coding->common_flags
21422 correctly for raw-text.
21423 (consume_chars): On encoding unibyte text by raw-text, don't check
21424 multibyte form.
21425 (encode_coding): On encoding by raw-text, never use translation tables.
21426
21427 * fileio.c (e_write): Short cut for the case of no encoding.
21428
214292008-02-01 Kenichi Handa <handa@m17n.org>
21430
21431 * coding.c (detect_coding, detect_coding_system): Delete unused
21432 variables.
21433
214342008-02-01 Kenichi Handa <handa@m17n.org>
21435
21436 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21437 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21438
214392008-02-01 Kenichi Handa <handa@m17n.org>
21440
21441 * coding.c (Ffind_coding_systems_region_internal): Include
21442 raw-text and no-conversion in the result.
21443
214442008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21447 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21448 FONT_DEF.
21449 (font_def_arg, add_arg, from_arg, to_arg): New args.
21450 (set_fontset_font): Change argument.
21451 (Fset_fontset_font): Fix for the case that TARGET is a script
21452 name and charset name.
21453 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21454
214552008-02-01 Kenichi Handa <handa@m17n.org>
21456
21457 * fontset.c (fontset_font): Rename from fontset_face. Change return
21458 value.
21459 (face_suitable_for_char_p, face_for_char): Adjust for the change
21460 of fontset_font.
21461 (make_fontset_for_ascii_face): Fix setting of the fontset element
21462 for ASCII.
21463 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21464 to get a font name.
21465 (Ffontset_info): Adjust for the change of fontset_font.
21466
21467 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21468
21469 * character.h (LEADING_CODE_LATIN_1_MIN)
21470 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21471
214722008-02-01 Kenichi Handa <handa@m17n.org>
21473
21474 * editfns.c (check_translation): New function.
21475 (Ftranslate_region_internal): Handle M:N mapping.
21476
214772008-02-01 Kenichi Handa <handa@m17n.org>
21478
21479 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21480
214812008-02-01 Kenichi Handa <handa@m17n.org>
21482
21483 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21484 goto invalid_code.
21485 (decode_coding_iso_2022): Fix handling of invalid designation.
21486
21487 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21488 after calling code_conversion_save.
21489
214902008-02-01 Kenichi Handa <handa@m17n.org>
21491
21492 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21493
21494 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21495
21496 * fontset.c: Include "intervals.h".
21497 (fontset_face): Fix comparing of Lisp_Objects.
21498 (free_face_fontset, new_fontset_from_font_name): Fix
21499 Lisp_Object/int mixup.
21500
21501 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21502
21503 * coding.c: Add many prototypes for static functions.
21504 (get_translation_table): Allow max_lookup to be NULL.
21505 (decode_coding, Ffind_coding_systems_region_internal)
21506 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21507 get_translation_table with max_lookup NULL.
21508
215092008-02-01 Kenichi Handa <handa@m17n.org>
21510
21511 * coding.c (get_translation_table): Declare it as Lisp_Object.
21512 (LOOKUP_TRANSLATION_TABLE): New macro.
21513 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21514 instead of CHAR_TABLE_REF.
21515
215162008-02-01 Kenichi Handa <handa@m17n.org>
21517
21518 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21519 annotation data format.
21520 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21521 Change arguments FROM and TO to single argument NCHARS. Change caller.
21522 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21523 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21524 (decode_coding_ccl, decode_coding_charset): Pay attention to
21525 coding->charbuf_used.
21526 (get_translation): New function.
21527 (produce_chars): New arguments translation_table and last_block.
21528 Translate characters here. Return number of carryover chars.
21529 Change caller.
21530 (produce_composition): New argument pos. Change caller.
21531 Adjust for the change of annotation data format.
21532 (produce_charset, produce_annotation): Likewise.
21533 (decode_coding, encode_coding): Don't call translate_chars.
21534 (consume_chars): New arg translation_table. Change caller.
21535 (translate_chars): Delete.
21536 (syms_of_coding): Make translation-table's number of extra slots 2.
21537
215382008-02-01 Kenichi Handa <handa@m17n.org>
21539
21540 * search.c (simple_search): Fix setting this_pos_byte in backward
21541 search.
21542
21543 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21544 byte sequence.
21545 (detect_coding_ccl): Fix setting of the variable valids.
21546
215472008-02-01 Kenichi Handa <handa@m17n.org>
21548
21549 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21550
21551 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21552
21553 * editfns.c (Ftranslate_region_internal): Rename from
21554 Ftranslate_region. Accept a char-table in TABLE.
21555 (syms_of_editfns): Defsubr Stranslate_region_internal.
21556
21557 * xfaces.c (set_lface_from_font_name): If a font is specified for
21558 a frame, generate a fontset from the font.
21559 (build_scalable_font_name): If the scalable font is requested for
21560 a specific size, don't change that size.
21561 (try_font_list): Try a scalable font also in the case that a
21562 pattern string is specified.
21563
215642008-02-01 Kenichi Handa <handa@m17n.org>
21565
21566 * xfaces.c (Fface_font): New optional arg CHARACTER.
21567
215682008-02-01 Kenichi Handa <handa@m17n.org>
21569
21570 * charset.h (CHARSET_OFFSET): New macro.
21571
215722008-02-01 Kenichi Handa <handa@m17n.org>
21573
21574 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21575
21576 * fontset.c (fontset_face): Handle the case that repertory is a
21577 char-table.
21578 (find_font_encoding): Return nil for unknown encoding.
21579 (Fset_fontset_font): Ignore a font of unknown encoding.
21580
215812008-02-01 Kenichi Handa <handa@m17n.org>
21582
21583 * keymap.c (describe_vector): Handle default value of a char table.
21584
21585 * fontset.c (fontset_face): Handle fallback fonts correctly.
21586 (Ffontset_info): Return infomation about fallback fonts.
21587
215882008-02-01 Kenichi Handa <handa@m17n.org>
21589
21590 * fontset.c (FONTSET_DEFAULT): New macro.
21591 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21592 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21593 the case that it is nil.
21594 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21595 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21596
21597 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21598 subset or superset.
21599
216002008-02-01 Kenichi Handa <handa@m17n.org>
21601
21602 * emacs.c (main): Call init_charset after syms_of_XXX.
21603
21604 * charset.c (Vcharset_map_directory): Delete.
21605 (Vcharset_map_path): New variable.
21606 (load_charset_map_from_file): Use Vcharset_map_path instead.
21607 (init_charset): Initialize Vcharset_map_path.
21608 (syms_of_charset): Delete declaration of "charset-map-directory",
21609 add declaration of "charset-map-path".
21610
216112008-02-01 Kenichi Handa <handa@m17n.org>
21612
21613 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21614 ASCII only string.
21615
21616 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21617
21618 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21619 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21620
216212008-02-01 Kenichi Handa <handa@m17n.org>
21622
21623 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21624
21625 * coding.c (QCmnemonic, QCdefalut_char)
21626 (QCdecode_translation_table, QCencode_translation_table)
21627 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21628 (get_translation_table): Return a list of translation tables if
21629 necessary.
21630 (decode_coding): Call get_translation_table with ENCODEP 0.
21631 (char_encodable_p): If translation_table is non-nil, always call
21632 translate_char.
21633 (Fdefine_coding_system_internal): Accept list of translation
21634 tables as :encode-translation-table and :decode-translation-table.
21635 (Fcoding_system_put): New function.
21636 (syms_of_coding): Declare new symbols. Defsubr
21637 Scoding_system_put.
21638 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21639 typically JISX0212.
21640
21641 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21642 when the charset is superset type.
21643
21644 * character.c (translate_char): Accept list of translation tables.
21645
216462008-02-01 Kenichi Handa <handa@m17n.org>
21647
21648 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21649 (CODING_ATTR_TRANS_TBL): New macro.
21650
21651 * coding.c (get_translation_table): New function.
21652 (translate_chars): Fix the bug of skipping annotation data.
21653 (decode_coding, encode_coding): Utilize get_translation_table.
21654 (char_encodable_p, Funencodable_char_position): Translate char if
21655 necessary.
21656 (Ffind_coding_systems_region_internal)
21657 (Fcheck_coding_systems_region): Setup translation table for encode
21658 in a coding system attribute vector in advance.
21659 (Fdefine_coding_system_internal): Allow a symbol as translation
21660 table. For shift-jis type coding system, allow 4th charset.
21661
216622008-02-01 Kenichi Handa <handa@m17n.org>
21663
21664 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21665
21666 * xdisp.c (get_next_display_element): Pass -1 as POS to
21667 FACE_FOR_CHAR if displaying a C-string.
21668
216692008-02-01 Kenichi Handa <handa@m17n.org>
21670
21671 * composite.c (get_composition_id): Handle xoff and yoff in a
21672 composition rule.
21673
21674 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21675 (struct composition): New member lbearing and rbearing.
21676
21677 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21678 (x_get_glyph_overhangs): Handle a composition glyph.
21679 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21680
21681 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21682 composition glyph.
21683
216842008-02-01 Kenichi Handa <handa@m17n.org>
21685
21686 * print.c: Include charset.h.
21687 (Vprint_charset_text_property): New variable.
21688 (Qdefault): Extern it.
21689 (PRINT_STRING_NON_CHARSET_FOUND)
21690 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21691 (print_check_string_result): New variable.
21692 (print_check_string_charset_prop): New function.
21693 (print_prune_charset_plist): New variable.
21694 (print_prune_string_charset): New function.
21695 (print_object): Call print_prune_string_charset if
21696 Vprint_charset_text_property is not t.
21697 (print_interval): Print nothing if interval->plist is nil.
21698 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21699 variable. Init and staticpro print_prune_charset_plist.
21700
217012008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * fontset.c (new_fontset_from_font_name): Use the specified font
21704 for all characters in the new fontset.
21705
21706 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21707 OBJECT args.
21708
21709 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21710 OBJECT args for composition too.
21711
21712 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21713 OBJECT args.
21714
217152008-02-01 Kenichi Handa <handa@m17n.org>
21716
21717 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21718
21719 * fontset.c (reorder_font_vector): Adjust for the change of
21720 FONT_DEF format.
21721 (fontset_face): New arg id. Change caller.
21722 (face_for_char): New args pos and object.
21723 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21724 (fs_query_fontset): Check NAME by Fassoc too.
21725 (Fset_fontset_font): Allow non-XLFD font name.
21726 (Ffontset_info): Adjust for the change of FONT_DEF format.
21727
21728 * fontset.h (face_for_char): Adjust prototype.
21729
21730 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21731 (append_space, extend_face_to_end_of_line)
21732 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21733 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21734
21735 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21736 POS and OBJECT args.
21737
21738 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21739 POS and OBJECT args.
21740
217412008-02-01 Jason Rumney <jasonr@gnu.org>
21742
21743 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21744 of GlobalAlloc'ed memory.
21745
217462008-02-01 Kenichi Handa <handa@m17n.org>
21747
21748 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21749
21750 * charset.h (charset_table_used): Delete extern.
21751
21752 * charset.c (charset_table_used): Make it static.
21753 (map_charset_chars): Fix args to c_function with.
21754
21755 * chartab.c (map_sub_char_table_for_charset): Fix args to
21756 c_function with.
21757
21758 * coding.h (enum coding_result_code): Delete
21759 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21760
21761 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21762 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21763 (Vlast_code_conversion_error): New variables.
21764 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21765 (ONE_MORE_BYTE): Record error if any instead of signaling an
21766 error. If non-ASCII multibyte char is found, return the negative
21767 value of the code. All callers changed to check it.
21768 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21769 (record_conversion_result): New function. Change all codes setting
21770 coding->result to call this function.
21771 (detect_coding_utf_8, decode_coding_utf_8)
21772 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21773 Don't use the local variable incomplete.
21774 (emacs_mule_char): Change the second arg to `const'.
21775 (decode_coding): Fix of flushing out unprocessed data.
21776 (make_conversion_work_buffer): Fix making of a work buffer.
21777 (decode_coding_object): Return coding->dst_object.
21778
21779 * fontset.c (set_fontset_font): Fix args.
21780
21781 * lisp.h (CHARACTERBITS): Define as 22.
21782
21783 * process.c (send_process): Be sure to set coding->src_multibyte.
21784
21785 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21786
217872008-02-01 Kenichi Handa <handa@m17n.org>
21788
21789 * xdisp.c (handle_auto_composed_prop): Give limit to
21790 Fnext_single_char_property_change.
21791
217922008-02-01 Kenichi Handa <handa@m17n.org>
21793
21794 * composite.c (syms_of_composite): Don't make the composition hash
21795 table weak.
21796
21797 * fontset.c (Fset_fontset_font): Fix docstring.
21798
21799 * lisp.h (detect_coding_system): Adjust prototype.
21800
21801 * fileio.c (kill_workbuf_unwind): Delete this function.
21802 (Finsert_file_contents): Adjust the call of detect_coding_system.
21803 Get conversion_buffer by code_conversion_save. Use the macro
21804 CODING_MAY_REQUIRE_DECODING. After decoding, update
21805 coding_system.
21806
21807 * coding.h (make_conversion_work_buffer): Delete extern.
21808 (code_conversion_save): Extern it.
21809
21810 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21811 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21812 (decode_coding_utf_8): Don't do eol converion.
21813 (detect_coding_utf_16): Check coding->src_chars, not
21814 coding->src_bytes. Add heuristics for those that have no signature.
21815 (decode_coding_emacs_mule, decode_coding_iso_2022)
21816 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21817 Don't do eol converion.
21818 (adjust_coding_eol_type): Return a new coding system.
21819 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21820 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21821 each change.
21822 (decode_coding): Pay attention to undo_list. Do eol conversion for
21823 all types of coding-systems (if necessary).
21824 (Vcode_conversion_work_buf_list): Delete it.
21825 (Vcode_conversion_reused_workbuf): Rename from
21826 Vcode_conversion_reused_work_buf.
21827 (Vcode_conversion_workbuf_name): New variable.
21828 (reused_workbuf_in_use): New variable.
21829 (make_conversion_work_buffer): Delete the arg DEPTH.
21830 (code_conversion_restore): Change argument to cons.
21831 (code_conversion_save): Delete the argument BUFFER. Change callers.
21832 (detect_coding_system): New argument src_chars. Change callers.
21833 Fix for utf-16 detection.
21834 (init_coding_once): Don't use ISO_carriage_return.
21835 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21836 reused_workbuf_in_use.
21837
218382008-02-01 Kenichi Handa <handa@m17n.org>
21839
21840 * keymap.c (store_in_keymap): Pay attention to the case that idx
21841 is a cons specifying a character range.
21842
218432008-02-01 Kenichi Handa <handa@m17n.org>
21844
21845 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21846 HANDLED_RECOMPUTE_PROPS.
21847
21848 * coding.c (Fdefine_coding_system_internal): Fix checking of
21849 ascii compatibility.
21850
218512008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * charset.c (find_charsets_in_text): Delete unused locale variable.
21854 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21855
21856 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21857 Resync charset_list to Vemacs_mule_charset_list.
21858
21859 * keymap.c (store_in_keymap): Pay attention to the case that idx
21860 is a cons specifying a character range.
21861
218622008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * composite.c (update_compositions): Bind inhibit-read-only, etc
21865 to t before calling remove-list-of-text-properties.
21866
21867 * print.c (print_object): Always print ASCII chars as is.
21868
218692008-02-01 Kenichi Handa <handa@m17n.org>
21870
21871 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21872
21873 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21874 is a char table.
21875
218762008-02-01 Kenichi Handa <handa@m17n.org>
21877
21878 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21879
218802008-02-01 Kenichi Handa <handa@m17n.org>
21881
21882 * xfaces.c (set_lface_from_font_name): Fix for the case that
21883 FONTNAME is not fontset name.
21884
218852008-02-01 Kenichi Handa <handa@m17n.org>
21886
21887 * fns.c (base64_encode_1): Fix previous change.
21888
218892008-02-01 Kenichi Handa <handa@m17n.org>
21890
21891 * fontset.c (set_fontset_font): New function.
21892 (Fset_fontset_font): If a font is specified for a charset, use
21893 map_charset_chars to store the font spec in a fontset.
21894
218952008-02-01 Kenichi Handa <handa@m17n.org>
21896
21897 * fontset.c (fontset_face): Create a fallback fontset on demand.
21898 (make_fontset): Don't create a fallback fontset here.
21899 (free_face_fontset): Free a fallback fontset (if any) too.
21900 (n_auto_fontsets): Delete this variable.
21901 (auto_fontset_alist): New variable.
21902 (new_fontset_from_font_name): Check auto_fontset_alist.
21903 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21904 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21905 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21906 Defsubr Sfontset_list_all.
21907
219082008-02-01 Kenichi Handa <handa@m17n.org>
21909
21910 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21911
219122008-02-01 Kenichi Handa <handa@m17n.org>
21913
21914 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21915
219162008-02-01 Kenichi Handa <handa@m17n.org>
21917
21918 * editfns.c (Fgoto_char): Fix docstring.
21919
219202008-02-01 Kenichi Handa <handa@m17n.org>
21921
21922 * insdel.c (insert_from_gap): Adjust intervals correctly.
21923
219242008-02-01 Jason Rumney <jasonr@gnu.org>
21925
21926 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21927 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21928 (w32_initialize): Try to load it.
21929 (x_get_font_repertory): Use it if available.
21930 (w32_encode_char): Add shortcut for unicode output.
21931
21932 * w32fns.c (w32_load_system_font): Default charset to -1.
21933 (x_to_w32_charset): Match all fonts for unicode.
21934 (w32_to_x_charset): New parameter matching. Don't return partial
21935 or wildcard charsets.
21936 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21937 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21938 (w32_to_x_font): Match charset to real charset.
21939 (enum_font_cb2): Always list unicode versions.
21940
21941 * makefile.w32-in (temacs): Increase EMHEAP.
21942
219432008-02-01 Jason Rumney <jasonr@gnu.org>
21944
21945 * w32term.c (w32_encode_char): New charset parameter.
21946 font_info.encoding becomes encoding_type.
21947 (x_get_font_repertory): New function. Warning: stub only!
21948 (x_new_font): Return quickly if font already set.
21949 (x_new_fontset): fontsetname parameter is Lisp_Object.
21950 Use new fs_query_fontset. Try new_fontset_from_font_name.
21951 Use fontset_name for return value.
21952
21953 * w32term.h: Declare x_get_font_repertory.
21954
21955 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21956 place of find_charset_in_text. Use encode_coding_object in place
21957 of encode_coding.
21958 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21959 decode_coding.
21960
21961 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21962 of x_new_fontset.
21963 (w32_load_system_font): Initialize charset as unicode.
21964 font_info.encoding becomes encoding_type.
21965 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21966 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21967 (syms_of_w32fns): Set get_font_repertory_func.
21968
21969 * w32console.c: Include character.h. Use terminal_encode_buffer
21970 from term.c.
21971 (write_glyphs): Use new version of encode_terminal_code. Use
21972 encode_coding_object in place of encode_coding.
21973
21974 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21975 encoding becomes encoding_type.
21976
21977 * term.c (terminal_encode_buffer): Make externally visible.
21978
21979 * makefile.w32-in: Add character.h dependancies.
21980 (character.o, chartab.o): New targets.
21981
219822008-02-01 Kenichi Handa <handa@m17n.org>
21983
21984 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21985 CODING_ID_EOL_TYPE.
21986
219872008-02-01 Andreas Schwab <schwab@suse.de>
21988
21989 * coding.c (produce_chars): Revert last change.
21990
219912008-02-01 Kenichi Handa <handa@m17n.org>
21992
21993 * charset.h (charset_unicode): Extern it.
21994
21995 * charset.c (string_xstring_p): Check by (C >= 0x100).
21996 (find_charsets_in_text): Change format of the arc CHARSETS. New
21997 arg MULTIBYTE.
21998 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21999 change of find_charsets_in_text.
22000 (Fsplit_char): Fix doc. Never return unknown.
22001
22002 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22003
22004 * coding.c (Fdefine_coding_system_alias): Update
22005 Vcoding_system_list.
22006
22007 * fontset.c (load_font_get_repertory): Pay attention to the case
22008 that ENCODING of a font is specified by a char-table.
22009
22010 * xterm.c (x_get_font_repertory): Handle the case that the
22011 encoding of font is other than Unicode.
22012
220132008-02-01 Kenichi Handa <handa@m17n.org>
22014
22015 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22016 if a character is encodable by the terminal coding system. If
22017 not, produces proper number of `?'s. Update
22018 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22019 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22020
220212008-02-01 Kenichi Handa <handa@m17n.org>
22022
22023 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22024 variables.
22025 (encode_terminal_code): Change argument. Encode multiple
22026 characters at once. Store the result of encoding in
22027 terminal_encode_buffer.
22028 (write_glyphs, insert_glyphs): Adjust for the change of
22029 encode_terminal_code.
22030 (term_init): Initialize terminal_encode_buffer and
22031 terminal_encode_buf_size.
22032
22033 * coding.c (consume_chars): If coding->src_object is nil, don't
22034 check annotation.
22035
220362008-02-01 Kenichi Handa <handa@m17n.org>
22037
22038 * character.c (char_string): Use ASCII_CHAR_P instead of
22039 SINGLE_BYTE_CHAR_P.
22040
220412008-02-01 Kenichi Handa <handa@m17n.org>
22042
22043 * xdisp.c (handle_auto_composed_prop): Check if the last
22044 characters of auto-composed region is newly composed with the
22045 following characters.
22046 (handle_composition_prop): Fix checking of point being inside
22047 composition.
22048
220492008-02-01 Kenichi Handa <handa@m17n.org>
22050
22051 * fns.c (concat): Don't change multibyteness of the result by
22052 concatenating an 8-bit character.
22053
22054 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22055 multibyteness of the result when newelt is an 8-bit character.
22056
220572008-02-01 Dave Love <fx@gnu.org>
22058
22059 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22060 EMACS_INT.
22061
22062 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22063
22064 * xfaces.c (face_numeric_value): Declare dim size_t.
22065 (Finternal_lisp_face_equal_p): Remove unused f.
22066
22067 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22068 (MATRIX_ROW): Remove unused vars.
22069 (draw_glyphs, x_insert_glyphs, fast_find_position)
22070 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22071 byte/char counts.
22072
22073 * regex.c (regex_compile): Remove unused var.
22074
22075 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22076
22077 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22078 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22079
22080 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22081
22082 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22083
22084 * fileio.c (Fwrite_region): Remove unused var.
22085
22086 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22087 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22088
22089 * composite.c (Fremove_list_of_text_properties): Declare.
22090
22091 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22092 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22093 (coding_inherit_eol_type): Remove unused attrs.
22094 (detect_coding): Cast arg of detect_eol.
22095
22096 * charset.c (syms_of_charset): Remove unused var p.
22097 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22098 byte/char counts.
22099
22100 * casetab.c (set_case_table): Remove unused var.
22101
22102 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22103 unused vars.
22104
221052008-02-01 Dave Love <fx@gnu.org>
22106
22107 * xterm.c (x_bitmap_mask): Declare.
22108
221092008-02-01 Dave Love <fx@gnu.org>
22110
22111 * xterm.c (x_term_init): Fix type error.
22112
22113 * lisp.h: Add Funibyte_char_to_multibyte.
22114
22115 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22116 (Fset_coding_system_priority): Doc fix.
22117
22118 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22119
22120 * indent.c (check_composition): Make start and end EMACS_INT.
22121
22122 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22123
22124 * xdisp.c (handle_composition_prop, check_point_in_composition):
22125 Make buffer positions EMACS_INT.
22126
22127 * composite.c (find_composition, run_composition_function)
22128 (update_compositions, Ffind_composition_internal): Make buffer
22129 positions EMACS_INT.
22130
22131 * composite.h (find_composition, update_compositions): Make
22132 position args EMACS_INT.
22133
22134 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22135
22136 * intervals.c (get_property_and_range):
22137 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22138
22139 * unexalpha.c: Don't include varargs.h.
22140
221412008-02-01 Dave Love <fx@gnu.org>
22142
22143 * coding.h (ENCODE_UTF_8): New.
22144
22145 * Makefile.in (gtkutil.o): Depend on coding.h.
22146
22147 * coding.c (Fset_coding_system_priority): Doc fix.
22148
221492008-02-01 Kenichi Handa <handa@m17n.org>
22150
22151 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22152 the case of auto saving.
22153
221542008-02-01 Andreas Schwab <schwab@suse.de>
22155
22156 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22157 `range' from GC.
22158
221592008-02-01 Kenichi Handa <handa@m17n.org>
22160
22161 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22162
221632008-02-01 Kenichi Handa <handa@m17n.org>
22164
22165 * fileio.c (choose_write_coding_system): Return a decided coding system.
22166 (Fwrite_region): Set Vlast_coding_system_used to the return value
22167 of choose_write_coding_system.
22168
221692008-02-01 Kenichi Handa <handa@m17n.org>
22170
22171 * charset.c (Fset_charset_priority): Pay attention to duplicated
22172 arguments.
22173
22174 * coding.c (QCcategory): New variable.
22175 (syms_of_coding): Defsym it. Set all elements of
22176 Vcoding_category_table and their symbol values.
22177 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22178 coding-category-XXX, and coding-category-list.
22179 (Fdefine_coding_system_internal): Add category in the plist.
22180
221812008-02-01 Kenichi Handa <handa@m17n.org>
22182
22183 * callproc.c (Fcall_process): Handle carryover correctly.
22184
22185 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22186 (raw_text_coding_system): Check NILP (coding_system).
22187 (coding_inherit_eol_type): Check NILP (coding_system) and
22188 NILP (parent).
22189 (consume_chars): Fix for the case of raw-text.
22190
22191 * process.c (read_process_output): Handle carryover correctly.
22192
221932008-02-01 Dave Love <fx@gnu.org>
22194
22195 * regex.c (re_search_2): Fix last change.
22196
221972008-02-01 Kenichi Handa <handa@m17n.org>
22198
22199 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22200 target_multibyte. Even in a unibyte case, return a converted
22201 multibyte char.
22202 (GET_CHAR_AFTER): New macro.
22203 (PATFETCH): Translate via multibyte char.
22204 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22205 (SETUP_MULTIBYTE_RANGE): New macro.
22206 (regex_compile): Setup compiled code so that its multibyteness
22207 matches that of a target. Fix the handling of "[X-YZ]" using
22208 SETUP_MULTIBYTE_RANGE.
22209 (analyse_first) <charset>: For filling fastmap for all multibyte
22210 characters, don't check by BASE_LEADING_CODE_P.
22211 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22212 the same as RE_MULTIBYTE_P (bufp) now.
22213 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22214 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22215 (TRANSLATE_VIA_MULTIBYTE): New macro.
22216 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22217 It is the same as RE_MULTIBYTE_P (bufp) now.
22218 <exactn>: Translate via multibyte.
22219 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22220 translate it.
22221 <charset, charset_not>: Fetch a character by
22222 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22223 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22224 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22225 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22226 by GET_CHAR_AFTER.
22227 (bcmp_translate): Likewise.
22228
22229 * search.c (compile_pattern): Check the member target_multibyte,
22230 not the member multibyte of buf.
22231
22232 * lread.c (read1): While reading a string, set force_singlebyte
22233 and force_multibyte correctly.
22234
22235 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22236 up of unibyte_to_multibyte_table.
22237
222382008-02-01 Kenichi Handa <handa@m17n.org>
22239
22240 * coding.c (setup_coding_system): If coding has
22241 post-read-conversion or pre-write-conversion, set
22242 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22243 respectively.
22244 (decode_coding_gap): Run post-read-conversion if any.
22245
22246 * fileio.c (Finsert_file_contents): Even if we read into a
22247 unibyte buffer, check if we must decode the result or not.
22248
222492008-02-01 Kenichi Handa <handa@m17n.org>
22250
22251 * coding.c (make_conversion_work_buffer): Change the work buffer
22252 name to the same one as that of Emacs 21.
22253
222542008-02-01 Kenichi Handa <handa@m17n.org>
22255
22256 * coding.h (make_conversion_work_buffer): Adjust prototype.
22257 (code_conversion_restore): Don't extern it.
22258
22259 * coding.c (detected_mask): Delete unused variable.
22260 (decode_coding_iso_2022): Pay attention to the byte sequence of
22261 CTEXT extended segment, and retain those bytes as is.
22262 (decode_coding_ccl): Delete unused variable `valids'.
22263 (setup_coding_system): Delete unused variable `category'.
22264 (consume_chars): Delete unused variable `category'. Make it work
22265 for non-multibyte case.
22266 (make_conversion_work_buffer): Change argument.
22267 (saved_coding): Delete unused variable.
22268 (code_conversion_restore): Don't check saved_coding->destination.
22269 (code_conversion_save): New function.
22270 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22271 instead of record_unwind_protect.
22272 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22273 (detect_coding_system): Delete unused variable `mask'.
22274 (Fdefine_coding_system_internal): Delete unused variable id.
22275
22276 * fileio.c (kill_workbuf_unwind): New function.
22277 (Finsert_file_contents): On replacing, call
22278 make_conversion_work_buffer with correct args, and call
22279 record_unwind_protect with the first arg kill_workbuf_unwind.
22280
22281 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22282
222832008-02-01 Kenichi Handa <handa@m17n.org>
22284
22285 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22286 (fontset_add): Fix for the case that TO is less than TO1.
22287 (Ffontset_info): Don't use fallback fontset on checking the
22288 default fontset.
22289 (dump_fontset): New function for debugging.
22290
22291 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22292 coding_type is Qcharset.
22293
222942008-02-01 Kenichi Handa <handa@m17n.org>
22295
22296 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22297 (map_char_table): Don't inherit the value from the parent on
22298 initializing VAL. Adjust for the above change.
22299
223002008-02-01 Kenichi Handa <handa@m17n.org>
22301
22302 * coding.c (Qsignature, Qendian): Delete these variables.
22303 (syms_of_coding): Don't initialize them.
22304 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22305 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22306 detect_info->found.
22307 (decode_coding_utf_16): Don't detect BOM here.
22308 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22309 is NOT utf_16_without_bom.
22310 (setup_coding_system): For a coding system of type utf-16, check
22311 if the attribute :endian is Qbig or not (not nil or not), and set
22312 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22313 (detect_coding): If coding type is utf-16 and BOM detection is
22314 required, detect it.
22315 (Fdefine_coding_system_internal): For a coding system of type
22316 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22317
223182008-02-01 Kenichi Handa <handa@m17n.org>
22319
22320 * coding.c (coding_set_source): Fix for the case that the current
22321 buffer is different from coding->src_object.
22322 (decode_coding_object): Don't use the conversion work buffer if
22323 DST_OBJECT is a buffer.
22324
223252008-02-01 Dave Love <fx@gnu.org>
22326
22327 * lread.c (read_emacs_mule_char) [len==2]: Index
22328 emacs_mule_charset correctly.
22329
223302008-02-01 Dave Love <fx@gnu.org>
22331
22332 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22333 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22334 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22335 treated specially.)
22336 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22337 (detected_mask): Remove Big5 bits.
22338
223392008-02-01 Kenichi Handa <handa@m17n.org>
22340
22341 The following changes are to make the font rescaling facility
22342 compatible with Emacs 21.
22343
22344 * xfaces.c (Vface_font_rescale_alist): Rename from
22345 Vface_resizing_fonts.
22346 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22347 (font_rescale_ratio): Rename from font_resizing_ratio.
22348 (split_font_name): Set font->rescale_ratio.
22349 (better_font_p): Pay attention to font->rescale_ratio.
22350 (build_scalable_font_name): Likewise. Change RESX, and RESY
22351 fields.
22352 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22353
223542008-02-01 Kenichi Handa <handa@m17n.org>
22355
22356 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22357 (Qutf_16_le): Remove these variables.
22358 (syms_of_coding): Don't DEFSYM them.
22359 (decode_coding_utf_16): Fix handling of BOM.
22360 (encode_coding_utf_16): Fix handling of BOM.
22361
223622008-02-01 Kenichi Handa <handa@m17n.org>
22363
22364 * fileio.c (Finsert_file_contents): On replacing, before decoding
22365 the file into the work buffer, set point of the work buffer to the end.
22366
223672008-02-01 Dave Love <fx@gnu.org>
22368
22369 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22370
223712008-02-01 Dave Love <fx@gnu.org>
22372
22373 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22374 and fix C types.
22375
223762008-02-01 Kenichi Handa <handa@m17n.org>
22377
22378 * xdisp.c (SKIP_GLYPHS): New macro.
22379 (set_cursor_from_row): Pay attention to string display properties.
22380
22381 * category.c (copy_category_entry): Fix for the case that RANGE
22382 is an integer.
22383
22384 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22385
22386 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22387
223882008-02-01 Kenichi Handa <handa@m17n.org>
22389
22390 * charset.c (Fcharset_id_internal): New function.
22391 (syms_of_charset): Defsubr it.
22392
22393 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22394 with the last arg charset_list acquired from coding.
22395 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22396 the attribute coding_attr_ccl_valids.
22397
22398 * coding.h (enum define_coding_ccl_arg_index): Set the first
22399 member coding_arg_ccl_decoder to coding_arg_max.
22400
22401 * ccl.h (ccl_driver): Adjust prototype.
22402
22403 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22404 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22405 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22406 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22407 last arg Qnil.
22408
224092008-02-01 Kenichi Handa <handa@m17n.org>
22410
22411 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22412 call encode_char.
22413
22414 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22415
224162008-02-01 Dave Love <fx@gnu.org>
22417
22418 * composite.c (syms_of_composite): Make composition_hash_table weak.
22419
224202008-02-01 Kenichi Handa <handa@m17n.org>
22421
22422 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22423 (font_name_registry): Don't extern them.
22424 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22425
22426 * fontset.h (Qfontset): Don't extern it.
22427 (new_fontset_from_font_name): Extern it.
22428
22429 * fontset.c: Give 8 extra slots to fontset objects.
22430 (Qfontset_info): New variable.
22431 (syms_of_fontset): Defsym it.
22432 (FONTSET_FALLBACK): New macro.
22433 (fontset_face): Try also the default fontset.
22434 (make_fontset): Realize a fallback fontset from the default fontset.
22435 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22436 using split_font_name_into_vector and build_font_name_from_vector.
22437 (Fset_fontset_font): Access the elements of font_spec by enum
22438 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22439 name by using split_font_name_into_vector.
22440 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22441 generate a proper font name from the fontset name. Update
22442 Vfontset_alias_alist.
22443 (n_auto_fontsets): New variable.
22444 (new_fontset_from_font_name): New function.
22445 (Ffont_info): Store the information about fonts generated from the
22446 default fontset in the first extra slot of the returned char-table.
22447
22448 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22449 (font_name_registry): Delete function.
22450 (split_font_name_into_vector): New function.
22451 (build_font_name_from_vector): New function.
22452 (font_list): The argument REGISTRY is now a list of registry names.
22453 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22454 specifies an explicit font name, return the name as is. Make a
22455 list of registy names.
22456
22457 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22458 of x_new_fontset.
22459 (Fx_create_frame): Don't call x_new_fontset here. Just use
22460 x_list_fonts to check the existence of fonts.
22461
22462 * xterm.h (x_new_fontset): Adjust prototype.
22463
22464 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22465 string. Use new_fontset_from_font_name to create a fontset from a
22466 font name.
22467
224682008-02-01 Kenichi Handa <handa@m17n.org>
22469
22470 * syntax.c (Vfind_word_boundary_function_table): New name for
22471 Vnext_word_boundary_function_table.
22472 (find-word-boundary-function-table): New name for
22473 next-word-boundary-function-table.
22474
224752008-02-01 Dave Love <fx@gnu.org>
22476
22477 * Makefile.in: Fix some dependencies.
22478
22479 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22480 set it to nil before returning.
22481
22482 * composite.c (update_compositions): Fix type error.
22483
22484 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22485
224862008-02-01 Kenichi Handa <handa@m17n.org>
22487
22488 * xterm.c (x_new_font): Optimize for the case that the font is
22489 already set for the frame.
22490
224912008-02-01 Kenichi Handa <handa@m17n.org>
22492
22493 * chartab.c (char_table_ascii): Check if the char table contents
22494 is sub-char-table or not.
22495 (char_table_set, char_table_set_range): Fix argument to
22496 char_table_ascii.
22497
22498 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22499 (detect_coding_utf_8, detect_coding_utf_16)
22500 (detect_coding_emacs_mule, detect_coding_iso_2022)
22501 (detect_coding_sjis, detect_coding_big5)
22502 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22503 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22504 sequence is valid in this coding system. Change callers.
22505 (MAX_ANNOTATION_LENGTH): New macro.
22506 (ADD_ANNOTATION_DATA): New macro.
22507 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22508 ADD_ANNOTATION_DATA. Change the format of annotation data.
22509 (ADD_CHARSET_DATA): New macro.
22510 (emacs_mule_char): New argument ID. Change callers.
22511 (decode_coding_emacs_mule, decode_coding_iso_2022)
22512 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22513 Produce charset annotation data in coding->charbuf.
22514 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22515 to charset annotation data in coding->charbuf.
22516 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22517 coding->common_flags if the coding system is iso-2022 based and
22518 uses designation.
22519 (produce_composition): Adjust for the new annotation data format.
22520 (produce_charset): New function.
22521 (produce_annotation): Handle charset annotation.
22522 (handle_composition_annotation, handle_charset_annotation): New
22523 functions.
22524 (consume_chars): Handle charset annotation. Utilize the above two
22525 functions.
22526 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22527 buffer, get the deleted text as a string and set
22528 coding->src_object to that string.
22529 (detect_coding, detect_coding_system): Use the new struct
22530 coding_detection_info.
22531
22532 * coding.h (struct coding_detection_info): New structure.
22533 (struct coding_system): Adjust prototype of the member `detector'.
22534 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22535
225362008-02-01 Kenichi Handa <handa@m17n.org>
22537
22538 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22539
225402008-02-01 Dave Love <fx@gnu.org>
22541
22542 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22543 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22544 to new local and nullify apropos_accumulate before returning.
22545 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22546
225472008-02-01 Kenichi Handa <handa@m17n.org>
22548
22549 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22550 correctly.
e3eea1fc 22551
aac0c6e3
MR
225522008-02-01 Dave Love <fx@gnu.org>
22553
22554 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22555
225562008-02-01 Kenichi Handa <handa@m17n.org>
22557
22558 The following changes are to make character composition happen
22559 automatically on displaying.
22560
22561 * Makefile.in (lisp, shortlisp): Add composite.elc.
22562
22563 * composite.h (Qauto_composed, Vauto_composition_function)
22564 (Qauto_composition_function): Extern them.
22565
22566 * composite.c (Vcomposition_function_table)
22567 (Qcomposition_function_table): Delete variables.
22568 (Qauto_composed, Vauto_composition_function)
22569 (Qauto_composition_function): New variables.
22570 (run_composition_function): Don't call
22571 compose-chars-after-function.
22572 (update_compositions): Clear `auto-composed' text property.
22573 (compose_chars_in_text): Delete this function.
22574 (syms_of_composite): Staticpro Qauto_composed and
22575 Qauto_composition_function. Declare Vauto_composition_function as
22576 a Lisp variable.
22577
22578 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22579
22580 * xdisp.c (it_props): Add an entry for Qauto_composed.
22581 (handle_auto_composed_prop): New function.
22582
22583 * xselect.c (selection_data_to_lisp_data): Don't call
22584 compose_chars_in_text.
22585
225862008-02-01 Dave Love <fx@gnu.org>
22587
22588 * keyboard.c (read_char): Modify checking around use of
22589 Vkeyboard_translate_table.
22590
22591 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22592 and fix C types.
22593
225942008-02-01 Kenichi Handa <handa@m17n.org>
22595
22596 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22597 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22598 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22599 the case that the last byte is '\r' correctly.
22600 (decode_coding): Flush out the unprocessed data correctly.
22601 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22602
226032008-02-01 Dave Love <fx@gnu.org>
22604
22605 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22606 Add XK_ISO... case.
22607 (xaw_scroll_callback): Revert last change.
22608
226092008-02-01 Kenichi Handa <handa@m17n.org>
22610
22611 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22612
226132008-02-01 Kenichi Handa <handa@m17n.org>
22614
22615 * xfaces.c (Vface_resizing_fonts): New variable.
22616 (struct font_name): New member `resizing_ratio'.
22617 (font_resizing_ratio): New function.
22618 (split_font_name): Set font->resizing_ratio.
22619 (better_font_p): Pay attention to font->resizing_ratio.
22620 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22621 RESX, and RESY fields.
22622 (try_alternative_families): Try scalable fonts if
22623 Vscalable_fonts_allowed is not Qt.
22624 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22625
226262008-02-01 Dave Love <fx@gnu.org>
22627
22628 * xterm.c (xaw_scroll_callback): Cast correctly.
22629
226302008-02-01 Dave Love <fx@gnu.org>
22631
22632 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22633 (lispy_kana_keys): Comment out.
22634 (make_lispy_event) [XK_kana_A]: Comment out.
22635
22636 * xterm.c (xaw_scroll_callback): Cast call_data.
22637 (XTread_socket): Deal with ASCII keysyms.
22638 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22639
226402008-02-01 Dave Love <fx@gnu.org>
22641
22642 * xterm.c (Vx_keysym_table): New.
22643 (syms_of_xterm): Initialize it.
22644 (XTread_socket): Use it.
22645 From head: Eliminate incorrect optimization that tried to avoid
22646 decoding the output of X*LookupString.
22647 (x_get_font_repertory): Delete charset declaration.
22648
226492008-02-01 Kenichi Handa <handa@m17n.org>
22650
22651 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22652 return 0.
22653 (Fdefine_coding_system_internal): Setup
22654 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22655
226562008-02-01 Dave Love <fx@gnu.org>
22657
22658 * coding.c (Fcheck_coding_system): Doc fix.
22659
22660 * editfns.c (Finsert_byte): Return a proper value.
22661
226622008-02-01 Kenichi Handa <handa@m17n.org>
22663
22664 * coding.c (decode_coding): Fix args to translate_chars. Pay
22665 attention to Vstandard_translation_table_for_decode.
22666 (encode_coding): Fix args to translate_chars. Pay attention to
22667 Vstandard_translation_table_for_encode.
22668
22669 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22670 SINGLE_BYTE_CHAR_P.
22671
22672 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22673 not by SINGLE_BYTE_CHAR_P.
22674
22675 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22676 SINGLE_BYTE_CHAR_P.
22677
22678 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22679 SINGLE_BYTE_CHAR_P.
22680
22681 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22682 by SINGLE_BYTE_CHAR_P.
22683
22684 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22685 SINGLE_BYTE_CHAR_P.
22686
226872008-02-01 Dave Love <fx@gnu.org>
22688
22689 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22690
226912008-02-01 Dave Love <fx@gnu.org>
22692
22693 * fns.c (Flanginfo): Fix typo.
22694
22695 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22696
226972008-02-01 Kenichi Handa <handa@m17n.org>
22698
22699 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22700 (detect_coding_emacs_mule, detect_coding_iso_2022)
22701 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22702 incomplete byte sequence. Don't update *mask when correctly detected.
22703 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22704 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22705 (detect_coding, detect_coding_system): Adjust for the changes above.
22706
227072008-02-01 Kenichi Handa <handa@m17n.org>
22708
22709 * character.c (char_string): Rename from
22710 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22711 (string_char): Rename from string_char.
22712
22713 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22714 if C is greater than MAX_3_BYTE_CHAR.
22715 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22716 string_char instead of string_char_with_unification.
22717
227182008-02-01 Dave Love <fx@gnu.org>
22719
22720 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22721
227222008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * keymap.c (push_key_description): Pay attention to force_multibyte.
22725
22726 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22727
227282008-02-01 Dave Love <fx@gnu.org>
22729
22730 * charset.c (define_charset_internal): Rename `supprementary'.
22731
22732 * Makefile.in (lisp, shortlisp): Remove latin-N.
22733
227342008-02-01 Dave Love <fx@gnu.org>
22735
22736 * xfns.c (x_window, x_window): Use use_xim.
22737
22738 * xterm.c (use_xim): Initialize.
22739 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22740 (x_term_init): Maybe set use_xim.
22741
22742 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22743
227442008-02-01 Kenichi Handa <handa@m17n.org>
22745
22746 * search.c (search_buffer): Fix case-fold-search of multibyte
22747 characters.
22748 (boyer_moore): Rename the last argument to char_high_bits.
22749
227502008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * xdisp.c (display_string): Fix for the case of zero width glyph.
22753
22754 * xfns.c (x_set_font): Change the error message of the case that
22755 x_new_fontset returns Qt.
22756
22757 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22758 (Finternal_set_lisp_face_attribute): Use signal_error for the
22759 error of invalid fontset.
22760
22761 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22762 fontset, return Qt.
22763
227642008-02-01 Dave Love <fx@gnu.org>
22765
22766 * unexelf.c (unexec): Make .got handling not SGI-specific.
22767
22768 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22769
22770 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22771
22772 * keyboard.c (read_key_sequence): Fix type error.
22773
22774 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22775 type error.
22776
22777 * fontset.c (fontset_add): Return Lisp_Object.
22778
227792008-02-01 Dave Love <fx@gnu.org>
22780
22781 * charset.h (charset_ordered_list_tick): Declare extern.
22782
227832008-02-01 Kenichi Handa <handa@m17n.org>
22784
22785 The following changes (and some of 2008-02-01 changes of mine) are
22786 for handling syntax, category, and case conversion for unibyte
22787 characters by converting them to multibyte on the fly. With these
22788 changes, we don't have to setup syntax and case tables for unibyte
22789 characters in each language environment.
22790
22791 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22792 multibyte if necessary.
22793
22794 * bytecode.c (Fbyte_code): Likewise.
22795
22796 * character.h (LEADING_CODE_LATIN_1_MIN)
22797 (LEADING_CODE_LATIN_1_MAX): New macros.
22798 (unibyte_to_multibyte_table): Extern it.
22799 (unibyte_char_to_multibyte): New macro.
22800 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22801 (CHAR_LEADING_CODE): New macro.
22802 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22803
22804 * character.c (unibyte_to_multibyte_table): New variable.
22805 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22806 (multibyte_char_to_unibyte): If C is an eight-bit character,
22807 convert it to the corresponding byte value.
22808
22809 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22810 not 1, signals an error. Update the elements of
22811 unibyte_to_multibyte_table.
22812 (init_charset_once): Initialize unibyte_to_multibyte_table.
22813 (syms_of_charset): Define the charset `iso-8859-1'.
22814
22815 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22816 as is without converting it to unibyte. In a unibyte buffer,
22817 convert C to multibyte before checking the syntax.
22818
22819 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22820
22821 * minibuf.c (Fminibuffer_complete_word): Use the macro
22822 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22823
22824 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22825
22826 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22827 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22828 that is zero, convert an eight-bit char to multibyte.
22829 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22830 non-emacs case.
22831 (PATFETCH): Convert an eight-bit char to multibyte.
22832 (HANDLE_UNIBYTE_RANGE): New macro.
22833 (regex_compile): Setup the compiled pattern for multibyte chars
22834 even if the given regex string is unibyte. Use PATFETCH_RAW
22835 instead of PATFETCH in many places. To handle `charset'
22836 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22837 only for ASCII chars.
22838 (analyse_first) <exactn>: Simplify because the compiled pattern
22839 is multibyte.
22840 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22841 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22842 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22843 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22844 multibyte always 1.
22845 (re_search_2): In emacs, set the locale variable multibyte to 1,
22846 otherwise to 0. New local variable target_multibyte. Check it
22847 to decide the multibyteness of STR1 and STR2. If
22848 target_multibyte is zero, convert unibyte chars to multibyte
22849 before translating and checking fastmap.
22850 (TARGET_CHAR_AND_LENGTH): New macro.
22851 (re_match_2_internal): In emacs, set the locale variable multibyte
22852 to 1, otherwise to 0. New local variable target_multibyte. Check
22853 it to decide the multibyteness of STR1 and STR2. Use
22854 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22855 <charset, charset_not>: If multibyte is nonzero, check fastmap
22856 only for ASCII chars. Call bcmp_translate with
22857 target_multibyte, not with multibyte.
22858 <begline>: Declare the local variable C as `unsigned'.
22859 (bcmp_translate): Change the last arg name to target_multibyte.
22860
22861 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22862 the regexp pattern and the matching target. Set cp->buf.multibyte
22863 to the multibyteness of the regexp pattern. Set
22864 cp->but.target_multibyte to the multibyteness of the matching target.
22865 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22866 FETCH_STRING_CHAR_ADVANCE.
22867 (Freplace_match): Convert unibyte chars to multibyte.
22868
22869 * syntax.c (char_quoted, back_comment, scan_words)
22870 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22871 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22872 unibyte chars to multibyte.
22873 (skip_chars): Delete the arg syntaxp, and move the code for
22874 handling syntaxes to skip_syntaxes. Change callers.
22875 Fix the case that the multibyteness of STRING and the current
22876 buffer doesn't match.
22877 (skip_syntaxes): New function.
22878 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22879 SINGLE_BYTE_CHAR_P.
22880
228812008-02-01 Kenichi Handa <handa@m17n.org>
22882
22883 * xfaces.c (QCfontset): New variable.
22884 (LFACE_FONTSET): New macro.
22885 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22886 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22887 (Finternal_set_lisp_face_attribute)
22888 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22889 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22890 check also LFACE_FONTSET_INDEX.
22891 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22892 attrs[LFACE_FONT_INDEX].
22893 (syms_of_xfaces): Intern and staticpro QCfontset.
22894
22895 * dispextern.h (enum lface_attribute_index): New member
22896 LFACE_FONTSET_INDEX.
22897
22898 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22899
229002008-02-01 Kenichi Handa <handa@m17n.org>
22901
22902 * coding.c (coding_set_destination): Fix coding->destination for
22903 the case converting a region.
22904 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22905 (encode_coding_object): Fix coding->dst_pos and
22906 coding->dst_pos_byte for the case converting a region.
22907
22908 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22909
22910 * character.h (BYTE8_STRING): New macro.
22911
22912 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22913
229142008-02-01 Kenichi Handa <handa@m17n.org>
22915
22916 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22917 characters by octal form.
22918
22919 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22920
22921 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22922 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22923 _fetch_multibyte_char_len.
22924 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22925
22926 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22927
22928 * casefiddle.c (casify_object): Simplify. Handle the case that
22929 the case conversion change the byte length.
22930 (casify_region): Likewise.
22931
22932 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22933
22934 * character.c (_fetch_multibyte_char_len): Delete this variable.
22935 (syms_of_character): Setup Vprintable_chars.
22936
22937 * editfns.c (Fchar_equal): Fix for the unibyte case.
22938 (Finsert_byte): New function.
22939 (syms_of_editfns): Defsubr it.
22940
22941 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22942 of direct code 0x3ffff.
22943
22944 * search.c (Freplace_match): Fix for the unibyte case.
22945
229462008-02-01 Kenichi Handa <handa@m17n.org>
22947
22948 * lread.c (safe_to_load_p): Fix the logic.
22949
22950 * syntax.c (scan_words): Don't treat characters belonging to
22951 different scripts as constituting a word.
22952
22953 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22954
22955 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22956
22957 * emacs.c (main): In the case of --unibyte, instead of aborting on
22958 finding non-empty buffer, make it unibyte.
22959
229602008-02-01 Kenichi Handa <handa@m17n.org>
22961
22962 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22963 to create a fontset.
22964
229652008-02-01 Dave Love <fx@gnu.org>
22966
22967 * character.c (Funibyte_char_to_multibyte): Doc fix.
22968
22969 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22970
229712008-02-01 Kenichi Handa <handa@m17n.org>
22972
22973 * fontset.c (fontset_add): Make the type `int'.
22974 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22975
22976 * character.c (unibyte_char_to_multibyte)
22977 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22978 charset_unibyte, not charset_primary.
22979
22980 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22981
22982 * charset.c (charset_unibyte): Rename from charset_primary.
22983 (Funibyte_charset): Rename from Fprimary_charset.
22984 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22985 (syms_of_charset): Adjust for the above changes.
22986
22987 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22988 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22989 it->multibyte_p is zero.
22990
22991 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22992 Delete extern.
22993
229942008-02-01 Kenichi Handa <handa@m17n.org>
22995
22996 * coding.c (Fdefine_coding_system_internal): Fix category setting
22997 for a coding system of type iso-2022.
22998
229992008-02-01 Kenichi Handa <handa@m17n.org>
23000
23001 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23002
230032008-02-01 Kenichi Handa <handa@m17n.org>
23004
23005 * syntax.c (Vnext_word_boundary_function_table): New variable.
23006 (next-word-boundary-function-table): Declare it as a Lisp variable
23007 in syms_of_syntax.
23008 (scan_words): Call functions in Vnext_word_boundary_function_table
23009 if any.
23010
23011 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23012
23013 * fontset.c (fs_load_font): If fontp->charset is not negative,
23014 return fontp without setting its members.
23015
230162008-02-01 Dave Love <fx@gnu.org>
23017
23018 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23019
23020 * m/sparc.h (HAVE_ALLOCA): Delete.
23021
23022 * s/irix6-5.h: Don't include strings.h.
23023 (bcopy, bzero, bcmp): Don't undef.
23024
23025 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23026
23027 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23028 (TIOCSIGSEND): Don't test IRIX6.
23029 (bcopy, bzero, bcmp): Define conditionally.
23030
230312008-02-01 Kenichi Handa <handa@m17n.org>
23032
23033 * buffer.c (Qas, Qmake, Qto): New variables.
23034 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23035 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23036
23037 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23038 we are inserting a process output into a multibyte buffer.
23039
23040 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23041 multibyte_char_to_unibyte.
23042
23043 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23044 by the primary charset, make it eight-bit char.
23045 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23046
23047 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23048 (charset_8_bit__control, charset_8_bit_graphic)
23049 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23050 (define_charset_internal): New function.
23051 (syms_of_charset): Call define_charset_internal for pre-defined
23052 charsets.
23053
23054 * charset.h (charset_8_bit): Extern it.
23055
23056 * coding.c (make_conversion_work_buffer): Adjust for the change
23057 of Fset_buffer_multibyte.
23058 (encode_coding_raw_text): Increment p0 in the loop.
23059
23060 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23061
23062 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23063 for the change of Fset_buffer_multibyte.
23064
23065 * fns.c (Fstring_to_multibyte): New function.
23066 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23067
230682008-02-01 Dave Love <fx@gnu.org>
23069
23070 * xfns.c (x_put_x_image): Declare args.
23071
23072 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23073 (try_font_list): Declare an arg.
23074
23075 * xdisp.c (message2_nolog, set_message): Declare an arg.
23076
23077 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23078
23079 * syntax.c (scan_sexps_forward): Declare an arg.
23080
23081 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23082 Declare an arg.
23083
23084 * lisp.h (Fnew_fontset): Declare.
23085
23086 * keymap.c (push_key_description): Call CHARACTERP correctly.
23087
23088 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23089 (face_for_char): Delete unused vars.
23090 (Fset_fontset_font): Doc fix. Delete unused vars.
23091
23092 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23093
23094 * composite.c (update_compositions): Declare arg.
23095
23096 * cm.c (calccost, cmgoto): Declare args.
23097
23098 * charset.c: Remove `emacs' conditional. Doc fixes.
23099 (map_char_table_for_charset): Declare.
23100
23101 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23102
23103 * ccl.c: Remove `emacs' conditional.
23104
231052008-02-01 Kenichi Handa <handa@m17n.org>
23106
23107 The following changes are to allow specifying multiple font
23108 patterns for a character range (specified by script or charset).
23109
23110 * Makefile.in (abbrev.o): Depend on syntax.h.
23111 (xfaces.o): Depend on charset.h.
23112
23113 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23114 SINGLE_BYTE_CHAR_P.
23115
23116 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23117
23118 * character.h (Vchar_script_table): Extern it.
23119
23120 * character.c (Vscript_alist): Delete.
23121 (Vchar_script_table, Qchar_script_table): New variable.
23122 (syms_of_character): Declare Vchar_script_table as a lisp variable
23123 and initialize it.
23124
23125 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23126 have property char-table-extra-slots, make no extra slot.
23127
23128 * dispextern.h (struct face): Delete member `charset'.
23129 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23130 SINGLE_BYTE_CHAR_P.
23131 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23132 Add prototypes.
23133 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23134 (generate_ascii_font_name): Rename from generate_ascii_font.
23135
23136 * fontset.h (get_font_repertory_func): New prototype.
23137 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23138 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23139
23140 * fontset.c (Qprepend, Qappend): New variables.
23141 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23142 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23143 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23144 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23145 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23146 (load_font_get_repertory): New functions.
23147 (fontset_set): Delete.
23148 (fontset_face): New arg FACE. Return face ID, not face.
23149 Complete re-write to handle new fontset structure. Change caller.
23150 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23151 (face_for_char): Don't call lookup_face.
23152 (make_fontset_for_ascii_face): New arg FACE.
23153 (fs_load_font): New arg CHARSET_ID. Don't check
23154 Vfont_encoding_alist here.
23155 (find_font_encoding): New function.
23156 (list_fontsets): Use STRINGP, not ! NILP.
23157 (accumulate_script_ranges): New function.
23158 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23159 re-written to handle new fontset structure.
23160 (Ffontset_font): Return a copy of element.
23161 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23162 docstring of font-encoding-alist.
23163
23164 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23165 (Fset_fotset_font): Fix arguments to 5.
23166
23167 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23168
23169 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23170 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23171 (highlight_trailing_whitespace): Adjust for the change of
23172 lookup_named_face.
23173
23174 * xfaces.c: Include charset.h.
23175 (load_face_font): Delete argument C. Change caller.
23176 (generate_ascii_font_name): Rename from generate_ascii_font.
23177 (font_name_registry): New function.
23178 (cache_face): Store ascii faces before non-ascii faces in buckets.
23179 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23180 Lookup only ascii faces.
23181 (lookup_non_ascii_face): New function.
23182 (lookup_named_face): Delete argument C. Change caller.
23183 (lookup_derived_face): Delete argument C. Change caller.
23184 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23185 a string, just call font_list with it.
23186 (choose_face_font): Delete arguments FACE and C. New arg
23187 FONT_SPEC. Change caller.
23188 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23189 Change caller.
23190 (realize_non_ascii_face): New function.
23191 (realize_x_face): Call load_face_font here.
23192 (realize_tty_face): Delete argument C. Change caller.
23193 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23194 get a face ID.
23195 (dump_realized_face): Don't print charset of FACE.
23196
23197 * xfns.c (x_set_font): Always call x_new_fontset and
23198 store_frame_parameter.
23199 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23200 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23201
23202 * xterm.h (x_get_font_repertory): Extern it.
23203
23204 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23205 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23206 it->multibyte_p is zero.
23207 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23208 (x_new_fontset): If FONTSETNAME doesn't match any existing
23209 fontsets, create a new one.
23210 (x_get_font_repertory): New function.
23211
232122008-02-01 Kenichi Handa <handa@m17n.org>
23213
23214 * coding.c (Ffind_coding_systems_region_internal): Detect an
23215 ASCII only string correctly.
23216
23217 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23218 version is 0.
23219
232202008-02-01 Kenichi Handa <handa@m17n.org>
23221
23222 * lread.c: Include "coding.h".
23223 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23224 (load_each_byte, unread_char): New variables.
23225 (readchar_backlog): Delete.
23226 (readchar): Return a character unless load_each_byte is nonzero.
23227 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23228 cons. If unread_char is not -1, simply return it.
23229 (unreadchar): Handle the case that readcharfun is
23230 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23231 (read_multibyte): Delete.
23232 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23233 (read_emacs_mule_char): New functions.
23234 (Fload): Even if the file doesn't have the extension ".elc", if
23235 safe_to_load_p returns a positive version number, assume that the
23236 file contains bytecompiled code. If the version is less than 22,
23237 load the file while decoding multibyte sequences by emacs-mule.
23238 (readevalloop): Don't use readchar_backlog.
23239 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23240 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23241 (read_escape): Delete the arg BYTEREP.
23242 (read1): Set load_each_byte to 1 temporarily while handling
23243 #@NUMBER. Don't call read_multibyte.
23244 (read_vector): Call Fread with a cons. If readcharfun is
23245 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23246 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23247 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23248 and Qload_force_doc_strings.
23249
232502008-02-01 Kenichi Handa <handa@m17n.org>
23251
23252 * xdisp.c (face_before_or_after_it_pos): Call
23253 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23254
232552008-02-01 Kenichi Handa <handa@m17n.org>
23256
23257 * character.h (TRAILING_CODE_P): New macro.
23258 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23259 (string_char_with_unification): Fix prototype.
23260 (Vscript_alist): Extern it.
23261
23262 * character.c (Vscript_alist): New variable.
23263 (string_char_with_unification, str_as_unibyte)
23264 (string_escape_byte8): Add `const' to local variables.
23265 (syms_of_character): Declare script-alist as a Lisp variable.
23266
23267 * charset.h (Vcharset_ordered_list): Extern it.
23268 (charset_ordered_list_tick): Extern it.
23269 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23270 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23271 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23272 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23273 (Funify_charset): Adjust for the change of Funify_charset.
23274
23275 * charset.c (charset_ordered_list_tick): New variable.
23276 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23277 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23278 deunify instead of unify a charset.
aac0c6e3
MR
23279 (string_xstring_p): Add `const' to local variables.
23280 (find_charsets_in_text): Add `const' to arguments and local variables.
23281 (encode_char): Adjust for the change of Funify_charset. Fix
23282 detecting of invalid code.
23283 (Fset_charset_priority): Increment charset_ordered_list_tick.
23284 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23285 and TO_CODE.
23286
23287 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23288 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23289 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23290 (decode_coding_ccl, consume_chars)
23291 (Ffind_coding_systems_region_internal)
23292 (Fcheck_coding_systems_region): Add `const' to local variables.
23293
23294 * print.c (print_object): Use octal form for printing the
23295 contents of a bool vector.
23296
232972008-02-01 Dave Love <fx@gnu.org>
23298
23299 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23300 <version == 20>: Refuse to load.
23301
233022008-02-01 Dave Love <fx@gnu.org>
23303
23304 * fns.c: Move coding.h.
23305 (Qcodeset, Qdays, Qmonths): New.
23306 (concat): Use CHARACTERP instead of INTEGERP.
23307 (Flocale_codeset): Delete.
23308 (Flanginfo): New function.
23309 (syms_of_fns): Change accordingly.
23310
23311 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23312
233132008-02-01 Dave Love <fx@gnu.org>
23314
23315 * casetab.c (init_casetab_once, init_casetab_once): Fix
23316 CHAR_TABLE_SET call.
23317
23318 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23319
23320 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23321
23322 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23323 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23324 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23325
23326 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23327
23328 * coding.c (ENCODE_DESIGNATION, decode_eol)
23329 (make_conversion_work_buffer, code_conversion_restore)
23330 (Fdefine_coding_system_internal): Convert Lisp types.
23331 (code_conversion_restore): Use EQ, not ==.
23332 (Fencode_coding_string): Fix code_convert_string call.
23333
23334 * coding.h (code_convert_region): Fix prototype.
23335
23336 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23337
23338 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23339 (Ffontset_info): Convert Lisp types.
23340
23341 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23342
23343 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23344
23345 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23346
23347 * chartab.c: Include "...h", not <...h> in some cases.
23348
23349 * callproc.c (Fcall_process): Remove unused variables.
23350
233512008-02-01 Dave Love <fx@gnu.org>
23352
23353 * coding.c (Fset_coding_system_priority): Allow null arg list.
23354
233552008-02-01 Dave Love <fx@gnu.org>
23356
23357 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23358 (Fself_insert_and_exit): Use CHARACTERP.
23359
23360 * callproc.c (Fcall_process): Remove unused vars.
23361
23362 * xterm.c (XTread_socket): Add extra dead keysyms.
23363
23364 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23365
23366 * dispextern.h: Remove prototypes for redraw_frame,
23367 redraw_garbaged_frames.
23368
23369 * cmds.c (Fself_insert_command): Use CHARACTERP.
23370
23371 * chartab.c (make_sub_char_table): Remove unused var.
23372 (Fset_char_table_default, Fmap_char_table): Doc fix.
23373
23374 * keymap.c (access_keymap): Remove generic char code.
23375 (push_key_description): Use CHARACTERP.
23376
233772008-02-01 Dave Love <fx@gnu.org>
23378
23379 * charset.c: Doc fixes.
23380 (Funify_charset): Extra checking.
23381
233822008-02-01 Dave Love <fx@gnu.org>
23383
23384 * lread.c: Remove some unused variables.
23385 (safe_to_load_p): If safe, return the magic number version byte.
23386 (Fload): Maybe use load-with-code-conversion.
23387
233882008-02-01 Kenichi Handa <handa@m17n.org>
23389
23390 * category.c (Fmodify_category_entry): Don't modify the contents
23391 of category_set for characters out of the range. Avoid
23392 unnecessary modification.
23393
23394 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23395 Vchar_unify_table. The default value of the table is now nil.
23396
23397 * character.c (syms_of_character): Setup Vchar_width_table for
23398 eight-bit-control and raw-byte chars.
23399
23400 * charset.h (enum define_charset_arg_index): Delete
23401 charset_arg_parents and add charset_arg_subset and
23402 charset_arg_superset.
23403 (enum charset_attr_index): Delete charset_parents and add
23404 charset_subset and charset_superset.
23405 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23406 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23407 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23408 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23409 (CHARSET_SUPERSET): New macros.
23410 (charset_work): Extern it.
23411 (ENCODE_CHAR): Use charset_work.
23412 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23413 (map_charset_chars): Extern it.
23414
23415 * charset.c (load_charset_map): Set the default value of encoder
23416 and deunifier char-tables to nil.
23417 (map_charset_chars): Change argument. Change callers. Use
23418 map_char_table_for_charset instead of map_char_table.
23419 (Fmap_charset_chars): New optional args from_code and to_code.
23420 (Fdefine_charset_internal): Adjust for the change of
23421 `define-charset' (:parents -> :subset or :superset).
23422 (charset_work): New variable.
23423 (encode_char, syms_of_charset): Adjust for the change of
23424 Fdefine_charset_internal.
23425 (Ffind_charset_string): Setup the vector `charsets' correctly.
23426
23427 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23428 the previous change.
23429 (char_table_ref_and_range): Adjust for the above change.
23430 (map_sub_char_table_for_charset): New function.
23431 (map_char_table_for_charset): New function.
23432
23433 * keymap.c (describe_vector): Handle a char-table directly here.
23434 (describe_char_table): Delete.
23435
23436 * lisp.h (map_charset_chars): Delete.
23437
234382008-02-01 Dave Love <fx@gnu.org>
23439
23440 * fns.c (count_combining): Comment out (unused).
23441 (Flocale_codeset): New.
23442 (syms_of_fns): Defsubr it.
23443
23444 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23445 (size_t): Remove.
23446
234472008-02-01 Dave Love <fx@gnu.org>
23448
23449 * Makefile.in (chartab.o): Depend on charset.h.
23450
234512008-02-01 Kenichi Handa <handa@m17n.org>
23452
23453 * character.c (syms_of_character): Set the default value of
23454 Vprintable_chars to Qnil.
23455
234562008-02-01 Dave Love <fx@gnu.org>
23457
23458 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23459
234602008-02-01 Kenichi Handa <handa@m17n.org>
23461
23462 * charset.c (load_charset_map): Handle the case that from < to
23463 correctly.
23464
23465 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23466 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23467 Pay attention to raw-8-bit chars.
23468
234692008-02-01 Kenichi Handa <handa@m17n.org>
23470
23471 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23472 It is not bytecompiled now.
23473
23474 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23475 (charset_jisx0208): New variables.
23476 (Fdefine_charset_internal): Setup them if appropriate.
23477 (init_charset_once): Initialize them to -1.
23478
23479 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23480 (charset_jisx0208): Extern them.
23481
23482 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23483 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23484 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23485 (setup_iso_safe_charsets): Fix arguments to Fassq.
23486 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23487 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23488 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23489 (encode_coding_iso_2022): Change the 1st arg to
23490 ENCODE_ISO_CHARACTER to a variable.
23491
234922008-02-01 Kenichi Handa <handa@m17n.org>
23493
23494 * charset.h (enum define_charset_arg_index): New enums
23495 charset_arg_min_code and charset_arg_max_code.
23496 (struct charset): New member char_index_offset.
23497
23498 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23499 Take charset->char_index_offset into account.
23500 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23501 args[charset_arg_max_code]. Setup charset.char_index_offset.
23502 (syms_of_charset): Fix args to Fdefine_charset_internal.
23503
235042008-02-01 Dave Love <fx@gnu.org>
23505
23506 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23507
235082008-02-01 Dave Love <fx@gnu.org>
23509
23510 * coding.c: Doc fixes.
23511 (Fcoding_system_aliases): Fix return value.
23512 (Qmac): Remove (duplicated) definition.
23513
235142008-02-01 Dave Love <fx@gnu.org>
23515
362654a6
JB
23516 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23517 New functions.
aac0c6e3
MR
23518
23519 * character.c (Fstring): Doc fix.
23520
23521 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23522
362654a6 23523 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23524 (font-encoding-alist): Doc fix.
23525
235262008-02-01 Dave Love <fx@gnu.org>
23527
23528 * term.c (costs_set): Declare static, non-initialized for pcc.
23529 (encode_terminal_code): Remove unused var.
23530
23531 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23532 for K&R.
23533
23534 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23535
23536 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23537 (suffixes): Move out of make_subsidiaries for K&R.
23538
23539 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23540
23541 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23542
235432008-02-01 Dave Love <fx@gnu.org>
23544
23545 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23546
23547 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23548
235492008-02-01 Yong Lu <lyongu@asia-infonet.com>
23550
23551 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23552
23553 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23554
235552008-02-01 Kenichi Handa <handa@m17n.org>
23556
23557 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23558 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23559
235602008-02-01 Kenichi Handa <handa@m17n.org>
23561
23562 * coding.c (decode_coding_charset): Adjust for the change of
23563 Fdefine_coding_system_internal.
23564 (Fdefine_coding_system_internal): For a coding system of
23565 `charset' type, store a list of charset IDs in
23566 `charset_attr_charset_valids' element of coding attributes.
23567
235682008-02-01 Kenichi Handa <handa@m17n.org>
23569
23570 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23571 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23572 caller. Handle 2-byte and 3-byte charsets correctly.
23573 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23574 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23575 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23576 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23577 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23578 sequence.
23579 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23580 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23581 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23582 and alt&rule composition.
23583 (decode_coding_iso_2022): Handle composition correctly.
23584 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23585
23586 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23587 re-defining a charset. If the charset has :emacs-mule-id, setup
23588 emacs_mule_bytes.
23589 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23590
235912008-02-01 Kenichi Handa <handa@m17n.org>
23592
23593 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23594 (encode_coding_big5, encode_coding_charset): If coding requires safe
23595 encoding, produce a character specified by
23596 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23597
235982008-02-01 Dave Love <fx@gnu.org>
23599
23600 * xterm.c (XSetIMValues): Declare.
23601
23602 * process.c: Conditionally include sys/wait.h, pty.h.
23603
23604 * print.c (print_object): Fix print format for 64-bit systems.
23605
23606 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23607
23608 * buffer.c (emacs_strerror): Declare.
23609
23610 * fontset.c (Fclear_face_cache): Declare.
23611 (accumulate_font_info): Comment-out (unused).
23612 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23613 variables.
23614
23615 * character.h (string_escape_byte8): Declare.
23616
23617 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23618 unused vars.
23619 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23620 (Fmap_charset_chars): Doc fix.
23621
23622 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23623 (Fset_coding_system_priority, Fset_coding_system_priority)
23624 (Fdefine_coding_system_internal): Doc fix.
23625
236262008-02-01 Dave Love <fx@gnu.org>
23627
23628 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23629
236302008-02-01 Kenichi Handa <handa@m17n.org>
23631
23632 * character.c (string_escape_byte8): Make multibyte string with
23633 correct size.
23634
23635 * charset.c (Fmake_char): Delete unnecessary code.
23636
236372008-02-01 Kenichi Handa <handa@m17n.org>
23638
23639 * xfns.c (x_encode_text): Allocate coding.destination here, and
23640 call encode_coding_object with dst_object Qnil.
23641
23642 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23643 multibyte form correctly.
23644
23645 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23646 against Vfont_encoding_alist.
23647
23648 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23649 handling of charset list.
23650 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23651 (decode_coding_object): Move point to coding->dst_pos before
23652 calling post-read-conversion function.
23653 (encode_coding_object): Give correct arguments to
23654 pre-write-conversion. Ignore the return value of
23655 pre-write-conversion function. Pay attention to the case that
23656 pre-write-conversion changes the current buffer. If dst_object is
23657 Qt, even if coding->src_bytes is zero, allocate at least one byte
23658 to coding->destination.
23659
23660 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23661
23662 * charset.c (Fmake_char): Make it more backward compatible.
23663 (Fmap_charset_chars): Fix docstring.
23664
236652008-02-01 Dave Love <fx@gnu.org>
23666
23667 * coding.c: Doc fixes.
23668 (Fdefine_coding_system_alias): Use names, not symbols, in
23669 coding-system-alist.
23670
236712008-02-01 Kenichi Handa <handa@m17n.org>
23672
23673 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23674 of calling free_realized_face.
23675
236762008-02-01 Yong Lu <lyongu@asia-infonet.com>
23677
23678 * charset.c (read_hex): Don't treat SPC as a comment starter.
23679 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23680 (Fdecode_char): Fix typo.
23681
236822008-02-01 Kenichi Handa <handa@m17n.org>
23683
23684 * charset.h (struct charset): New member `code_space_mask'.
23685
23686 * coding.c (coding_set_source): Delete the local variable beg_byte.
23687 (encode_coding_charset, Fdefine_coding_system_internal):
23688 Delete the local variable charset.
23689 (Fdefine_coding_system_internal): Setup
23690 attrs[coding_attr_charset_valids] correctly.
23691
23692 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23693 member to check if CODE is valid or not.
23694 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23695 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23696 is within the range of charset->min_code and carset->max_code.
23697
236982008-02-01 Dave Love <fx@gnu.org>
23699
23700 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23701
23702 * dispextern.h (generate_ascii_font): Fix return type.
23703
23704 * xfaces.c (generate_ascii_font): Fix arg declaration.
23705
23706 * coding.c (coding_inherit_eol_type)
23707 (Fset_terminal_coding_system_internal)
23708 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23709
237102008-02-01 Kenichi Handa <handa@m17n.org>
23711
23712 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23713 multiple charsets correctly.
23714
237152008-02-01 Kenichi Handa <handa@m17n.org>
23716
23717 * search.c (boyer_moore): Fix handling of multibyte character
23718 translation.
23719
23720 * xdisp.c (display_mode_element): When the variable `elt' is
23721 changed, update `this' and `lisp_string'.
23722
237232008-02-01 Kenichi Handa <handa@m17n.org>
23724
23725 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23726
23727 * callproc.c (Fcall_process): Be sure to give the current buffer
23728 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23729
23730 * charset.c (struct charset_map_entries): New struct.
23731 (load_charset_map): Rename from parse_charset_map. New args
23732 entries and n_entries. Change caller.
23733 (load_charset_map_from_file): Rename from load_charset_map.
23734 Change caller. New arg control_flag. Call load_charset_map at
23735 the tail.
23736 (load_charset_map_from_vector): New function.
23737 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23738 (encode_char): If the charset is compact, change a character index
23739 to a code point.
23740
23741 * coding.c (coding_alloc_by_making_gap): Check the case that the
23742 source and destination are the same correctly.
23743 (decode_coding_raw_text): Set coding->consumed_char and
23744 coding->consumed to 0.
23745 (produce_chars): If coding->chars_at_source is nonzero, update
23746 coding->consumed_char and coding->consumed before calling
23747 alloc_destination.
23748 (Fdefine_coding_system_alias): Register ALIAS in
23749 Vcoding_system_alist.
23750 (syms_of_coding): Define `no-conversion' coding system at the tail.
23751
23752 * fileio.c (Finsert_file_contents): Set coding_system instead of
23753 val. If the current buffer is multibyte, always call
23754 decode_coding_gap.
23755
23756 * xfaces.c (try_font_list): Give higher priority to fontset's
23757 family than face's family.
23758
237592008-02-01 Kenichi Handa <handa@m17n.org>
23760
23761 * callproc.c (Fcall_process): Be sure to give the current buffer
23762 to decode_coding_c_string.
23763
23764 * xfaces.c (try_font_list): Give a family specified in a fontset
23765 higher priority than a family specified in a face.
23766
237672008-02-01 Kenichi Handa <handa@m17n.org>
23768
23769 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23770 Fix arguments to insert_from_buffer.
23771
23772 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23773
237742008-02-01 Kenichi Handa <handa@m17n.org>
23775
23776 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23777 (decode_coding_gap): Set coding->dst_multibyte correctly.
23778
237792008-02-01 Kenichi Handa <handa@m17n.org>
23780
23781 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23782 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23783 (encode_coding_utf_16): Substitute coding->default_char for
23784 non-Unicode characters.
23785 (decode_coding): Don't call record_insert here.
23786 (setup_coding_system): Initialize `surrogate' of
23787 coding->spec.utf_16 to 0.
23788 (EMIT_ONE_BYTE): Fix for multibyte case.
23789
23790 * insdel.c (insert_from_gap): Call record_insert.
23791
237922008-02-01 Kenichi Handa <handa@m17n.org>
23793
23794 * casefiddle.c (casify_region): Fix multibyte case.
23795
23796 * character.c (c_string_width): Add return type `int'.
23797 (char_string_with_unification): Delete arg ADVANCED.
23798
23799 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23800 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23801 (CHAR_STRING_ADVANCE): Make it do-while statement.
23802
23803 * chartab.c (sub_char_table_set_range): Optimize for the case
23804 DEPTH == 3. Add workaround code for a GCC optimization bug.
23805
23806 * charset.c (parse_charset_map): Remove an unused variable.
23807
23808 * coding.c: Delete unused variables.
23809
23810 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23811 earlier. If inserted is zero and the coding system doesn't
23812 require flushing, don't call decode_coding_gap.
23813
23814 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23815
238162008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 The following changes are for using Unicode as an internal
23819 character model, and use UTF-8 format for buffer/string
23820 representation.
23821
23822 * .gdbinit (xchartable): Adjust for the change of char table structure.
23823 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23824
23825 * Makefile.in (obj): Add character.o and chartab.o.
23826 (lisp, shortlisp): Remove utf-8.elc.
23827 (*.o): For many files, change dependency on charset.h to
23828 character.h, and add dependency on character.h.
23829 (character.o, chartab.o): New targets.
23830
23831 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23832 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23833 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23834 of "charset.h".
23835
23836 * dired.c, filelock.c: Include "character.h".
23837
23838 * alloc.c: Include "character.h" instead of "charset.h".
23839 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23840 (syms_of_alloc): Remove defsubr for Smake_char_table.
23841
23842 * buffer.c: Include "character.h" instead of "charset.h", don't
23843 include "coding.h".
23844 (Fset_buffer_multibyte): Adjust for UTF-8.
23845
23846 * buffer.h: EXFUN Fbuffer_live_p.
23847
23848 * callproc.c: Include "character.h" instead of "charset.h".
23849 (Fcall_process): Big change for the new code-conversion APIs.
23850
23851 * casetab.c: Include "character.h" instead of "charset.h".
23852 (set_canon, set_identity, shuffle): Adjust for the new
23853 map_char_table spec.
23854 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23855 accessing the char table structure.
23856
23857 * chartab.c: New file that implements char table.
23858
23859 * category.c: Include "character.h".
23860 (copy_category_entry): New function.
23861 (copy_category_table): Call map_char_table and copy_category_entry.
23862 (Fmake_category_table): Initialize all top-level slots.
23863 (char_category_set): New function.
23864 (modify_lower_category_set): Delete.
23865 (Fmodify_category_entry): Call char_table_ref_and_range.
23866
23867 * category.h (CATEGORY_SET): Just call char_category_set.
23868
23869 * ccl.c: Include "character.h".
23870 (Qccl, Qcclp): New variables.
23871 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23872 it's less than 256.
23873 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23874 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23875 and DST type.
23876 (ccl_driver): Change types of argument, adjust code accordingly.
23877 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23878 ccl_driver.
23879 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23880
23881 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23882 New members src_multibyte, dst_multibyte, consumed, and produced.
23883 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23884 (CODING_SPEC_CCL_PROGRAM): New macro.
23885 (ccl_driver): Update prototype.
23886 (Qccl, Qcclp, Fccl_program_p): Extern them.
23887 (CHECK_CCL_PROGRAM): New macro.
23888
23889 * character.c, character.h, chartab.c: New files.
23890
23891 * charset.c: Mostly re-written. Move character and multibyte sequence
23892 handling codes to character.c.
23893
23894 * charset.h: Mostly re-written. Move character and multibyte sequence
23895 handling codes to character.h.
23896
23897 * coding.c, coding.h: Mostly re-written.
23898
23899 * composite.c: Include "character.h" instead of "charset.h".
23900 (CHAR_WIDTH): Move to character.h.
23901 (HASH_KEY, HASH_VALUE): Delete.
23902
23903 * composite.h (enum composition_method): Change order of enumeration
23904 symbols.
23905
23906 * data.c: Include "character.h" instead of "charset.h".
23907 (Faref): Call CHAR_TABLE_REF for a char table.
23908 (Faset): Call CHAR_TABLE_SET for a char table.
23909
23910 * dispextern.h (free_realized_face, check_face_attribytes)
23911 (generate_ascii_font): Extern them.
23912 (free_realized_multibyte_face): Delete extern.
23913
23914 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23915 table structure.
23916
23917 * editfns.c: Include "character.h" instead of "charset.h".
23918 (Fchar_to_string): Always call CHAR_STRING.
23919
23920 * emacs.c (main): Call init_charset_once, init_charset,
23921 syms_of_chartab, and syms_of_character.
23922
23923 * fileio.c: Include "character.h" instead of "charset.h".
23924 (Finsert_file_contents): Big change for the new code-conversion API.
23925 (choose_write_coding_system, Fwrite_region): Likewise.
23926 (build_annotations_2): Delete.
23927 (e_write): Big change for the new code-conversion API.
23928
23929 * fns.c: Include "character.h" instead of "charset.h".
23930 (copy_sub_char_table): Move to chartab.c.
23931 (Fcopy_sequence): Call copy_char_table for a char table.
23932 (concat): Delete codes calling count_multibyte.
23933 (string_char_to_byte, string_byte_to_char): Adjust for the new
23934 multibyte form.
23935 (internal_equal): Adjust for the change of char table structure.
23936 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23937 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23938 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23939 (char_table_translate, optimize_sub_char_table)
23940 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23941 chartab.c.
23942 (char_table_ref_and_index): Delete.
23943 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23944 (Fmd5): Call preferred_coding_system instead of accessing
23945 Vcoding_category_list. Adjust for the new code-conversion API.
23946 (syms_of_fns): Move defsubr for char table related functions to
23947 chartab.c.
23948
23949 * fontset.c: Mostly re-written.
23950
23951 * fontset.h (struct font_info): Change type of the member encoding_type.
23952 (enum FONT_SPEC_INDEX): New enum.
23953 (fontset_font_pattern, fs_load_font): Update prototype.
23954 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23955
23956 * indent.c: Include "character.h" instead of "charset.h".
23957 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23958
23959 * insdel.c: Include "character.h" instead of "charset.h".
23960 (copy_text): Don't refer to Vnonascii_translation_table.
23961 (insert_from_gap): New function.
23962
23963 * keyboard.c: Include "character.h" instead of "charset.h".
23964 (command_loop_1): Never call direct_output_forward_char before
23965 a non-ASCII character.
23966 (read_char): If Vkeyboard_translate_table is a char table, always
23967 translate a character.
23968
23969 * keymap.c: Include "character.h".
23970 (store_in_keymap): Handle the case that IDX is a cons.
23971 (Fdefine_key): Handle the case that KEY is a cons and the car part
23972 is also a cons (range).
23973 (push_key_description): Adjust for the new character code.
23974 (describe_vector): Call describe_char_table for a char table.
23975 (describe_char_table): New function.
23976
23977 * keymap.h (describe_char_table): Extern it.
23978
23979 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23980 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23981 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23982 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23983 Delete.
23984 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23985 structure.
23986 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23987 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23988 (CHARTAB_SIZE_BITS_3): New macros.
23989 (chartab_size): Extern it.
23990 (struct Lisp_Char_Table): Re-design.
23991 (struct Lisp_Sub_Char_Table): New structure.
23992 (HASH_KEY, HASH_VALUE): Move from fns.c.
23993 (CHARACTERBITS): Define as 22.
23994 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23995 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23996 (GC_SUB_CHAR_TABLE_P): New macro.
23997 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23998 (code_convert_string_norecord): Deleted extern.
23999 (init_character_once, syms_of_character, init_charset)
24000 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24001
24002 * lread.c: Include "character.h".
24003 (read_multibyte): New arg NBYTES.
24004 (read_escape): Change the meaning of returned *BYTEREP.
24005 (to_multibyte): Delete.
24006 (read1): Adjust the handling of char table and string.
24007
24008 * print.c: Include "character.h" instead of "charset.h".
24009 (print_string): Convert 8-bit raw bytes to octal form by
24010 string_escape_byte8.
24011 (print_object): Adjust for the new multibyte form. Print 8-bit
24012 raw bytes always in octal form. Handle sub char table correctly.
24013
24014 * process.c: Include "character.h" instead of "charset.h".
24015 (read_process_output, send_process): Adjust for the new
24016 code-conversion API.
24017
24018 * puresize.h (BASE_PURESIZE): Increase.
24019
24020 * regex.c: Include "character.h" instead of "charset.h".
24021 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24022 (regex_compile): Accept a range whose starting and ending
24023 character have different leading bytes.
24024 (analyse_first): Adjust for the above change.
24025
24026 * search.c: Include "character.h" instead of "charset.h".
24027 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24028 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24029
24030 * syntax.c: Include "character.h" instead of "charset.h".
24031 (syntax_parent_lookup): Delete.
24032 (Fmodify_syntax_entry): Accept a cons as CHAR.
24033 (skip_chars): Adjust for the new multibyte form.
24034 (init_syntax_once): Call char_table_set_range instead of directly
24035 accessing the structure of a char table.
24036
24037 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24038 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24039 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24040 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24041
24042 * term.c: Include "buffer.h" and "character.h".
24043 (encode_terminal_code, write_glyphs): Adjust for the new
24044 code-conversion API.
24045 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24046
24047 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24048
24049 * xdisp.c: Include "character.h".
24050 (get_next_display_element): Adjust for the new multibyte form.
24051 (disp_char_vector): Adjust for the new char table structure.
24052 (decode_mode_spec_coding): Adjust for the new structure of
24053 coding system.
24054 (decode_mode_spec): Adjust for the new code-conversion API.
24055
24056 * xfaces.c: Include "character.h" instead of "charset.h".
24057 (load_face_font): Adjust for the change of choose_face_font and
24058 FS_LOAD_FONT.
24059 (generate_ascii_font): New function.
24060 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24061 (set_font_frame_param): Adjust for the change of choose_face_font.
24062 (free_realized_face): Make it public.
24063 (free_realized_faces_for_fontset): Rename from
24064 free_realized_multibyte_face. Free also faces realized for ASCII.
24065 (choose_face_font): Change arguments. Adjust for the change of
24066 fontset_font_pattern and FS_LOAD_FONT.
24067
24068 * xfns.c: Include "character.h".
24069 (x_encode_text): Adjust for the new code-conversion API.
24070
24071 * xselect.c: Don't include "charset.h".
24072 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24073
24074 * xterm.c: Include "character.h".
24075 (x_encode_char): New argument CHARSET. Change caller.
24076 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24077 Call ENCODE_CHAR instead of SPLIT_CHAR.
24078 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24079 CHAR_WIDTH instead of CHARSET_WIDTH.
24080 (XTread_socket): Adjust for the new code-conversion API.
24081 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24082 (x_load_font): Adjust for the change of struct font.
24083
240842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24085
24086 * xfaces.c (face_at_buffer_position): Remove unused vars.
24087
240882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24089
24090 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24091 Fix overflow checking.
24092
240932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24094
24095 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24096 Cancel previous change.
24097
240982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24099
24100 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24101 ccl->eight_bit_control. Fix check for buffer overflow.
24102 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24103 (ccl_driver): Initialize extra_bytes to 0.
24104
241052008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24106
24107 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24108 return it ORed with ctrl_modifier.
24109
241102008-01-29 Miles Bader <miles@gnu.org>
24111
24112 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24113
241142008-01-28 Jason Rumney <jasonr@gnu.org>
24115
24116 * w32.c (stat): Don't double check for networked drive.
24117
241182008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24119
24120 * window.c (run_window_configuration_change_hook): New function.
24121 Code extracted from set_window_buffer. Set the selected frame.
24122 (set_window_buffer): Use it.
24123 * window.h (run_window_configuration_change_hook): Declare.
24124 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24125
24126 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24127
241282008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24129
24130 * Makefile.in: Remove references to unused macros.
24131
241322008-01-26 Eli Zaretskii <eliz@gnu.org>
24133
24134 * w32.c (g_b_init_get_sid_sub_authority)
24135 (g_b_init_get_sid_sub_authority_count): New static variables.
24136 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24137 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24138 (init_user_info): Use them to retrieve uid and gid.
24139 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24140 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24141 st_uid and st_gid of the file.
24142
241432008-01-26 Jason Rumney <jasonr@gnu.org>
24144
24145 * w32.c (logon_network_drive): New function.
24146 (stat): Use it.
24147
241482008-01-26 Chong Yidong <cyd@stupidchicken.com>
24149
24150 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24151 invisible text covered with an ellipsis.
24152
241532008-01-25 Richard Stallman <rms@gnu.org>
24154
24155 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24156 jump back to beginning. Move some other initializations after that.
24157 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24158 New variables.
24159 (syms_of_xdisp): Init them.
24160
24161 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24162
24163 * buffer.c (reset_buffer_local_variables):
24164 Implement `permanent-local-hook'.
24165 (Qpermanent_local_hook): New variable.
24166 (syms_of_buffer): Init and staticpro it.
24167
241682008-01-25 Michael Albinus <michael.albinus@gmx.de>
24169
24170 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24171
241722008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24173
24174 * fns.c (Fclrhash): Return TABLE.
24175
241762008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24177
24178 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24179 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24180 is set even without positional changes.
24181 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24182
24183 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24184
241852008-01-23 Jason Rumney <jasonr@gnu.org>
24186
24187 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24188
24189 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24190 the unicode range available in MULE by locale-coding-system.
24191 Improve dbcs lead byte detection. Set event timestamp and modifiers
24192 earlier.
24193
241942008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24195
24196 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24197 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24198 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24199 when used on child processes.
24200
242012008-01-21 Michael Albinus <michael.albinus@gmx.de>
24202
24203 * dbusbind.c (Fdbus_method_return_internal): Rename from
24204 Fdbus_method_return.
24205 (Fdbus_unregister_object): Move to dbus.el.
24206 (Fdbus_call_method, Fdbus_method_return_internal)
24207 (Fdbus_send_signal): Improve debug messages.
24208
242092008-01-20 Martin Rudalics <rudalics@gmx.at>
24210
24211 * undo.c (undo_inhibit_record_point): New variable.
24212 (syms_of_undo): Initialize it.
24213 (record_point): Don't record point when undo_inhibit_record_point
24214 is set.
24215
242162008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24217
24218 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24219
24220 * xdisp.c (Qauto_hscroll_mode): New var.
24221 (syms_of_xdisp): Initialize it.
24222 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24223 window's buffer.
24224 (hscroll_windows): Don't check automatic_hscrolling_p here.
24225
24226 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24227 vscroll if we're setting window-buffer to the value it already has.
24228
242292008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24230
24231 * m/intel386.h: Remove references to XENIX.
24232
242332008-01-17 Andreas Schwab <schwab@suse.de>
24234
24235 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24236 instead of HAVE_X86_64_LIB64_DIR.
24237 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24238
242392008-01-17 Glenn Morris <rgm@gnu.org>
24240
24241 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24242 to HAVE_X86_64_LIB64_DIR.
24243
242442008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24245
24246 * s/irix3-3.h:
24247 * s/irix4-0.h:
24248 * s/386-ix.h:
24249 * s/domain.h:
24250 * s/hpux9-x11r4.h:
24251 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24252
24253 * sysdep.c: Remove code containing references to symbols defined
24254 by unsupported systems.
24255
242562008-01-16 Glenn Morris <rgm@gnu.org>
24257
24258 * coding.c (select-safe-coding-system-function): Doc fix.
24259
242602008-01-15 Glenn Morris <rgm@gnu.org>
24261
24262 * config.in: Revert 2008-01-13 change: this is a generated file.
24263
242642008-01-13 Tom Tromey <tromey@redhat.com>
24265
24266 * lisp.h: Fix typo.
24267
242682008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24269
24270 * m/sequent-ptx.h:
24271 * m/sequent.h:
24272 * s/ptx.h:
24273 * s/ptx4-2.h:
24274 * s/ptx4.h: Remove files for systems no longer supported.
24275
24276 * callproc.c (Fcall_process): Fix previous change.
24277
242782008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24279
24280 * unexsunos4.c: Remove file, system not supported anymore.
24281
24282 * m/mips.h:
24283 * m/intel386.h:
24284 * callproc.c:
24285 * config.in:
24286 * ecrt0.c:
24287 * emacs.c:
24288 * fileio.c:
24289 * frame.c:
24290 * getpagesize.h:
24291 * keyboard.c:
24292 * lread.c:
24293 * process.c:
24294 * puresize.h:
24295 * sysdep.c:
24296 * systty.h:
24297 * syswait.h:
24298 * unexec.c:
24299 * xdisp.c:
24300 * alloc.c: Remove code containing references to symbols defined by
24301 unsupported systems.
24302
243032008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24304
24305 * coding.c (detect_coding_mask): Fix previous change.
24306
243072008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24308
24309 * coding.c (detect_coding_iso2022): New arg
24310 latin_extra_code_state. Allow Latin extra codes only
24311 when *latin_extra_code_state is nonzero.
24312 (detect_coding_mask): If there is a NULL byte, detect the encoding
24313 as UTF-16 or binary. If Latin extra codes exist, detect the
24314 encoding as ISO-2022 only when there's no other proper encoding is
24315 found.
24316
243172008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24318
24319 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24320 #ifdef MAC_OS.
24321
243222008-01-08 Richard Stallman <rms@gnu.org>
24323
24324 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24325
243262008-01-06 Nick Roberts <nickrob@snap.net.nz>
24327
24328 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24329 menu bar in parentheses.
24330
243312008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24332
24333 * m/7300.h:
24334 * m/acorn.h:
24335 * m/alliant-2800.h:
24336 * m/alliant.h:
24337 * m/alliant1.h:
24338 * m/alliant4.h:
24339 * m/altos.h:
24340 * m/amdahl.h:
24341 * m/apollo.h:
24342 * m/att3b.h:
24343 * m/aviion-intel.h:
24344 * m/aviion.h:
24345 * m/celerity.h:
24346 * m/clipper.h:
24347 * m/cnvrgnt.h:
24348 * m/convex.h:
24349 * m/cydra5.h:
24350 * m/delta88k.h:
24351 * m/dpx2.h:
24352 * m/dual.h:
24353 * m/elxsi.h:
24354 * m/f301.h:
24355 * m/gould-np1.h:
24356 * m/gould.h:
24357 * m/i860.h:
24358 * m/ibmps2-aix.h:
24359 * m/ibmrt-aix.h:
24360 * m/ibmrt.h:
24361 * m/irist.h:
24362 * m/is386.h:
24363 * m/isi-ov.h:
24364 * m/mega68.h:
24365 * m/mg1.h:
24366 * m/news-r6.h:
24367 * m/news-risc.h:
24368 * m/news.h:
24369 * m/nh3000.h:
24370 * m/nh4000.h:
24371 * m/ns16000.h:
24372 * m/ns32000.h:
24373 * m/nu.h:
24374 * m/orion.h:
24375 * m/orion105.h:
24376 * m/paragon.h:
24377 * m/pfa50.h:
24378 * m/plexus.h:
24379 * m/pyramid.h:
24380 * m/pyrmips.h:
24381 * m/sh3el.h:
24382 * m/sps7.h:
24383 * m/sr2k.h:
24384 * m/stride.h:
24385 * m/sun1.h:
24386 * m/sun2.h:
24387 * m/sun3-68881.h:
24388 * m/sun3-fpa.h:
24389 * m/sun3-soft.h:
24390 * m/sun3.h:
24391 * m/sun386.h:
24392 * m/symmetry.h:
24393 * m/tad68k.h:
24394 * m/tahoe.h:
24395 * m/targon31.h:
24396 * m/tek4300.h:
24397 * m/tekxd88.h:
24398 * m/tower32.h:
24399 * m/tower32v3.h:
24400 * m/ustation.h:
24401 * m/wicat.h:
24402 * m/xps100.h:
24403 * s/cxux.h:
24404 * s/cxux7.h:
24405 * s/dgux.h:
24406 * s/dgux4.h:
24407 * s/dgux5-4-3.h:
24408 * s/dgux5-4r2.h:
24409 * s/esix.h:
24410 * s/esix5r4.h:
24411 * s/hiuxmpp.h:
24412 * s/hiuxwe2.h:
24413 * s/iris3-5.h:
24414 * s/iris3-6.h:
24415 * s/isc2-2.h:
24416 * s/isc3-0.h:
24417 * s/isc4-0.h:
24418 * s/isc4-1.h:
24419 * s/newsos5.h:
24420 * s/newsos6.h:
24421 * s/osf1.h:
24422 * s/osf5-0.h:
24423 * s/riscix1-1.h:
24424 * s/riscix12.h:
24425 * s/sco4.h:
24426 * s/sco5.h:
24427 * s/sunos4-0.h:
24428 * s/sunos4-1.h:
24429 * s/sunos413.h:
24430 * s/sunos4shr.h:
24431 * s/umax.h:
24432 * s/unipl5-2.h:
24433 * s/xenix.h:
24434 * cxux-crt0.s:
24435 * unexapollo.c:
24436 * unexconvex.c:
24437 * unexenix.c:
24438 * unexsni.c: Remove files for systems no longer supported.
24439
24440 * m/intel386.h: Remove references to unsupported systems.
24441
24442 * w32.c (get_emacs_configuration): Remove reference to i860.
24443
24444 * sysdep.c: Remove dead code.
24445
244462008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24447
24448 * s/rtu.h:
24449 * m/masscomp.h: Remove files. Platform is obsolete.
24450
244512008-01-04 Michael Albinus <michael.albinus@gmx.de>
24452
24453 * dbusbind.c (Fdbus_method_return): New function.
24454 (xd_read_message): Add the serial number to the event.
24455 (Fdbus_register_method): Activate the function.
24456
244572008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24458
24459 * keyboard.c (read_key_sequence): Fix typo.
24460
244612008-01-03 Michael Albinus <michael.albinus@gmx.de>
24462
24463 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24464 (xd_signature, xd_append_arg): Handle element type detection for
24465 empty arrays.
24466 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24467 SDATA () calls; this must be solved more general.
24468 (Fdbus_register_signal): Use SBYTES instead of strlen.
24469
244702008-01-03 Magnus Henoch <magnus@zemdatav>
24471
24472 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24473 unsigned int for byte values (necessary for big-endian platform).
24474 (Fdbus_call_method): Handle the case of no returned arguments.
24475
244762007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24477
24478 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24479
244802007-12-31 Magnus Henoch <mange@freemail.hu>
24481
24482 * dbusbind.c (xd_signature): Signature of variant is just "v".
24483
244842007-12-30 Michael Albinus <michael.albinus@gmx.de>
24485
24486 * dbusbind.c: Fix several errors and compiler warnings.
24487 Reported by Tom Tromey <tromey@redhat.com>.
24488 (XD_ERROR, XD_DEBUG_MESSAGE)
24489 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24490 (xd_append_arg): Part for basic D-Bus types rewritten.
24491 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24492 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24493 appropriate.
24494 (xd_read_message): Return Qnil. Don't signal an error; it is not
24495 useful during event reading.
24496 (Fdbus_register_signal): Signal an error if the check for
24497 FUNCTIONP fails.
24498 (Fdbus_register_method): New function. The implementation is not
24499 complete, the call of the function signals an error therefore.
24500 (Fdbus_unregister_object): New function, renamed from
24501 Fdbus_unregister_signal. The initial check signals an error, if
24502 the object is not well formed.
24503
245042007-12-30 Richard Stallman <rms@gnu.org>
24505
24506 * textprop.c (get_char_property_and_overlay):
24507 Signal error if POSITION is out of range in a buffer.
24508
245092007-12-29 Martin Rudalics <rudalics@gmx.at>
24510
24511 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24512 because the original parameters are in pure storage now.
24513
245142007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24515
24516 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24517
245182007-12-22 Eli Zaretskii <eliz@gnu.org>
24519
24520 * callint.c (syms_of_callint) <command-history>: Add reference to
24521 history-length in the doc string.
24522
245232007-12-17 Jason Rumney <jasonr@gnu.org>
24524
24525 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24526 before passing as wParam.
24527
245282007-12-22 Michael Albinus <michael.albinus@gmx.de>
24529
24530 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24531 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24532 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24533 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24534 as number.
24535 (Fdbus_call_method): Fix docstring.
24536
245372007-12-21 Michael Albinus <michael.albinus@gmx.de>
24538
24539 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24540 New macros.
24541 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24542 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24543 Simplify.
24544 (xd_signature): New function.
24545 (xd_append_arg): Compute also signatures. Major rewrite.
24546 (xd_retrieve_arg): Make debug messages friendly.
24547 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24548 Check for signatures of arguments.
24549
245502007-12-19 Michael Albinus <michael.albinus@gmx.de>
24551
24552 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24553 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24554 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24555 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24556 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24557 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24558 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24559 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24560 (xd_retrieve_value): Remove. Functionality included in ...
24561 (xd_append_arg): New function.
24562 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24563
245642007-12-16 Michael Albinus <michael.albinus@gmx.de>
24565
24566 * dbusbind.c (top): Include <stdio.h>.
24567 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24568 dbus_message_new_method_call and dbus_message_new_signal.
24569 (Fdbus_register_signal): Rename unique_name to uname.
24570 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24571 non-existing unique name. Fix typos in matching rule. Return an
24572 object which is useful in Fdbus_unregister_signal.
24573 (Fdbus_unregister_signal): Reimplementation, in order to remove
24574 only the corresponding entry.
24575 (Vdbus_registered_functions_table): Change the order of entries.
24576 Apply these changes in xd_read_message and Fdbus_register_signal.
24577
245782007-12-16 Andreas Schwab <schwab@suse.de>
24579
24580 * fileio.c (Finsert_file_contents): Fix overflow check to not
24581 depend on undefined integer overflow.
24582
245832007-12-14 Jason Rumney <jasonr@gnu.org>
24584
24585 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24586 for characters above 127.
24587
245882007-12-13 Jason Rumney <jasonr@gnu.org>
24589
24590 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24591 before dereferencing array.
24592 (lookup_vk_code): Remove zero comparison.
24593
245942007-12-14 Michael Albinus <michael.albinus@gmx.de>
24595
24596 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24597 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24598 Use `unsigned int' instead of `uint'.
24599 (xd_read_message, Fdbus_register_signal): Split expressions into
24600 multiple lines before operators "&&" and "||", according to the
24601 GNU Coding Standards.
24602
246032007-12-14 Eli Zaretskii <eliz@gnu.org>
24604
24605 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24606
246072007-12-12 Juri Linkov <juri@jurta.org>
24608
24609 * buffer.c (Frename_buffer): In interactive spec replace
24610 `read-buffer' with `read-string' that uses `buffer-name-history'
24611 as history, and the current buffer's name as default.
24612
246132007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24614
24615 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24616 manipulating the backtrace manually.
24617 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24618 (struct backtrace, backtrace_list): Remove.
24619 (command_loop_1): Remove dead var `no_direct'.
24620
24621 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24622 preserve non-built-in buffer-local variables.
24623 (Fkill_all_local_variables): Don't re-create&re-set permanent
24624 buffer-local variables.
24625
246262007-12-09 Juri Linkov <juri@jurta.org>
24627
24628 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24629 Lisp code that uses `read-buffer' with current buffer as default.
24630
246312007-12-08 Michael Albinus <michael.albinus@gmx.de>
24632
24633 * dbusbind.c (xd_read_message): Generate an event for every
24634 registered handler. There might be several handlers registered
24635 for the same signal.
24636 (Fdbus_register_signal): Don't overwrite a registration for the
24637 same signal. Add a new registration if handlers are different.
24638 (Vdbus_registered_functions_table): Rework doc string.
24639
246402007-12-07 Michael Albinus <michael.albinus@gmx.de>
24641
24642 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24643 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24644 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24645 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24646 Unify argument lists.
24647 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24648 arguments and hash table keys. Use unique name for service.
24649 (Fdbus_unregister_signal): Remove checks.
24650 (Vdbus_registered_functions_table): Fix doc string.
24651
246522007-12-05 Magnus Henoch <mange@freemail.hu>
24653
24654 * process.c (make_process): Initialize pty_flag to 0.
24655
246562007-12-05 Jason Rumney <jasonr@gnu.org>
24657
24658 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24659 specified XBMs.
24660
246612007-12-05 Richard Stallman <rms@gnu.org>
24662
24663 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24664
246652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24666
24667 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24668 New variable.
24669 (mac_try_close_socket) [MAC_OSX]: New function.
24670 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24671 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24672
24673 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24674 Use mac_try_close_socket.
24675
246762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24677
24678 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24679 reloc_base.
24680 (copy_dysymtab): Compute relocation base here.
24681 (rebase_reloc_address) [__ppc64__]: New function.
24682 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24683 changed.
24684
246852007-12-05 Jason Rumney <jasonr@gnu.org>
24686
24687 * w32proc.c (sys_spawnve): Quote args with wildcards.
24688
246892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24690
24691 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24692 __objc_* sections.
24693 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24694
246952007-12-05 Michael Albinus <michael.albinus@gmx.de>
24696
24697 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24698 Move check for Vdbus_registered_functions_table to
24699 xd_read_queued_messages.
24700 (xd_read_queued_messages): Protect xd_read_message calls by
24701 internal_condition_case_1.
24702
247032007-12-04 Michael Albinus <michael.albinus@gmx.de>
24704
24705 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24706 Qdbus_system_bus and Qdbus_session_bus, respectively.
24707 (Vdbus_intern_symbols): Remove.
24708 (Vdbus_registered_functions_table): New hash table.
24709 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24710 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24711 Rewrite in order to manage registered functions by hash table
24712 Vdbus_registered_functions_table.
24713
247142007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24715
24716 * xterm.c: Update URL to Window Manager Specification in comment.
24717
247182007-12-02 Michael Albinus <michael.albinus@gmx.de>
24719
24720 * config.in (HAVE_DBUS): Add.
24721
24722 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24723 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24724 (obj): Add $(DBUS_OBJ).
24725 (LIBES): Add $(DBUS_LIBS).
24726 (dbusbind.o): New target.
24727
24728 * dbusbind.c: New file.
24729
24730 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24731
24732 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24733 (Qdbus_event): New Lisp symbol.
24734 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24735 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24736 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24737
24738 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24739
247402007-12-01 Richard Stallman <rms@gnu.org>
24741
24742 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24743
247442007-11-30 Jason Rumney <jasonr@gnu.org>
24745
24746 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24747 (w32con_reset_terminal_modes): Clear screen buffer.
24748 (w32_face_attributes): Don't use color indexes that are out of range.
24749 Only reverse the default colors.
24750
24751 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24752 WINDOWSNT.
24753
24754 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24755
247562007-11-29 Jason Rumney <jasonr@gnu.org>
24757
24758 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24759 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24760 if the terminal colors are initialized.
24761 (unspecified_fg, unspecified_bg): Remove unused declarations.
24762
247632007-11-29 Andreas Schwab <schwab@suse.de>
24764
24765 * keyboard.c (apply_modifiers): Fix typo.
24766
247672007-11-29 Richard Stallman <rms@gnu.org>
24768
24769 * keymap.c (Fcurrent_local_map): Doc fix.
24770
247712007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24772
24773 * s/gnu-kfreebsd.h: New file.
24774
247752007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24776
24777 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24778 Don't cast redundantly.
24779
24780 * keyboard.c (KEY_TO_CHAR): New macro.
24781 (parse_modifiers, apply_modifiers): Accept integer arguments.
24782 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24783 for chars and symbol keys.
24784 After doing such remapping, apply function-key-map again.
24785
247862007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24787
24788 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24789 compiled anymore.
24790
247912007-11-26 Andreas Schwab <schwab@suse.de>
24792
24793 * process.c (list_processes_1): Fix indentation level of the
24794 command column.
24795
247962007-11-23 Andreas Schwab <schwab@suse.de>
24797
24798 * editfns.c (Fformat): Handle %c specially since it requires the
24799 argument to be of type int.
24800
248012007-11-23 Markus Triska <markus.triska@gmx.at>
24802
24803 * emacs.c (main): Call init_editfns before init_process, since
24804 init_process sets Vprocess_connection_type depending on OS release.
24805
248062007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24807
24808 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24809 (find_symbol_value): Use do_symval_forwarding.
24810
24811 * data.c (set_internal): Set the value in the `cons-cell' (for
24812 Buffer_Local_values) not only for frame-local variables.
24813
248142007-11-22 Andreas Schwab <schwab@suse.de>
24815
24816 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24817 values to sprintf.
24818 * keymap.c (Fsingle_key_description): Likewise.
24819 * print.c (print_object): Likewise.
24820
248212007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24822
24823 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24824 file for image is nil.
24825
248262007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24827
24828 * term.c: Include stdarg.h.
24829 (fatal): Implement using varargs.
24830 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24831
248322007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24835 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24836 Update call to buffer_slot_type_mismatch.
24837 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24838 (buffer_slot_type_mismatch): Update.
24839 * buffer.c (buffer_local_types): Remove.
24840 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24841 (defvar_per_buffer): Set the type in the buffer_objfwd.
24842
248432007-11-21 Jason Rumney <jasonr@gnu.org>
24844
24845 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24846 CreateFileMapping returns NULL on failure.
24847
248482007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24849
24850 * search.c (Fset_match_data): Remove the `evaporate' feature.
24851 (unwind_set_match_data): Don't use the `evaporate' feature.
24852
248532007-11-21 Jason Rumney <jasonr@gnu.org>
24854
24855 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24856
24857 * w32console.c (w32con_write_glyphs): Remove unused variables.
24858
248592007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24860
24861 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24862
24863 * s/darwin.h (MULTI_KBOARD): Remove.
24864
24865 * macfns.c (x_create_tip_frame, Fx_create_frame)
24866 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24867
248682007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24869
24870 * buffer.c (Fbuffer_local_value): Remove redundant test.
24871 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24872 than in `current-buffer' to match the comment.
24873 Do the swap using swap_in_global_binding.
24874
24875 * data.c (store_symval_forwarding, set_internal):
24876 * eval.c (specbind): Remove dead code.
24877
24878 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24879 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24880 Since we do not want to see internal Lisp_*fwd objects here.
24881
248822007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24883
24884 * sysdep.c (init_system_name): Use getaddrinfo if available.
24885
24886 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24887 (x_scroll_bar_note_movement): start, end, with, height in struct
24888 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24889
248902007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24891
24892 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24893
248942007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24895
24896 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24897 This undoes Richard's change of 14-Oct-2002.
24898
24899 * alloc.c (allocate_other_vector):
24900 * lisp.h (allocate_other_vector): Remove.
24901
24902 * window.c (struct save_window_data): Move non-lisp data to the end
24903 and make it `int' rather than Lisp_Object.
24904 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24905 Done wrap/unwrap integer values.
24906 (Fset_window_configuration, compare_window_configurations):
24907 Update use of fields to their new types.
24908
24909 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24910 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24911 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24912 (SET_SCROLL_BAR_X_WINDOW): Remove.
24913 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24914 Access the new x_window field directly.
24915 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24916 Don't wrap/unwrap integers into Lisp_Objects.
24917 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24918 (x_scroll_bar_report_motion):
24919 Don't wrap/unwrap integers into Lisp_Objects.
24920 (x_term_init): Use SDATA.
24921 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24922 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24923 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24924 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24925 * xfns.c (x_set_background_color):
24926 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24927 Access the new x_window field directly.
24928
24929 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24930 (allocate_pseudovector): Make non-static.
24931
24932 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24933 (allocate_pseudovector): Declare.
24934 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24935
249362007-11-15 Andreas Schwab <schwab@suse.de>
24937
24938 * editfns.c (Fformat): Correctly format EMACS_INT values.
24939 Also take precision into account when formatting an integer.
24940
24941 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24942
249432007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24944
24945 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24946 (syms_of_keyboard): Defsubr it.
24947
24948 * data.c (swap_in_global_binding): Fix longstanding bug where
24949 store_symval_forwarding was not called with the right second argument,
24950 thus causing objfwd-ing from being dropped.
24951
249522007-11-14 Juanma Barranquero <lekktu@gmail.com>
24953
24954 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24955 (Fx_display_pixel_height, Fx_display_planes)
24956 (Fx_display_color_cells, Fx_server_max_request_size)
24957 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24958 (Fx_display_visual_class, Fx_display_save_under):
24959 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24960 (Fx_display_pixel_height, Fx_display_planes)
24961 (Fx_display_color_cells, Fx_server_max_request_size)
24962 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24963 (Fx_display_mm_height, Fx_display_mm_width)
24964 (Fx_display_backing_store, Fx_display_visual_class)
24965 (Fw32_select_font, Fx_display_save_under):
24966 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24967 (Fx_display_pixel_height, Fx_display_planes)
24968 (Fx_display_color_cells, Fx_server_max_request_size)
24969 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24970 (Fx_display_save_under): Fix typos in docstrings.
24971
249722007-11-14 Juanma Barranquero <lekktu@gmail.com>
24973
24974 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24975 corresponding to deleted entries; they are an implementation detail.
24976 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24977 Remove variables.
24978 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24979 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24980 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24981 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24982 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24983 (Fw32_define_rgb_color, Fw32_load_color_file)
24984 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24985 Fix typos in docstrings.
24986 (Fx_server_version): Reflow docstring.
24987 (Fw32_shell_execute): Doc fixes.
24988
249892007-11-13 Juanma Barranquero <lekktu@gmail.com>
24990
24991 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24992 if w32_parse_hot_key returned nil.
24993
249942007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24995
24996 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24997
249982007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24999
aac0c6e3
MR
25000 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25001
25002 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25003
25004 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25005 Remove W32_SCROLL_BAR_CLICK_EVENT.
25006
25007 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25008 Add MULTIMEDIA_KEY_EVENT.
25009
25010 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25011 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25012 (make_lispy_event) [WINDOWSNT]: Use it to translate
25013 MULTIMEDIA_KEY_EVENT.
25014
25015 * w32term.h (WM_APPCOMMAND): Define if not already.
25016 (GET_APPCOMMAND_LPARAM): Likewise.
25017
25018 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25019 WM_APPCOMMAND.
25020
25021 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25022 (syms_of_w32fns): Export and initialize it.
25023 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25024
250252007-11-09 Chong Yidong <cyd@stupidchicken.com>
25026
25027 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25028 twice.
25029
25030 * xdisp.c (handle_face_prop): Fix last change.
25031
250322007-11-09 Richard Stallman <rms@gnu.org>
25033
25034 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25035 not just for after-strings and before-strings.
25036 Call face_for_overlay_string and pass the overlay to it.
25037 (handle_display_prop): Determine whether property came from an overlay.
25038 Pass OVERLAY arg to handle_single_display_spec.
25039 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25040 (load_overlay_strings): Fill in it->string_overlays.
25041 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25042
25043 * xfaces.c (face_for_overlay_string): Function renamed from
25044 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25045
25046 * dispextern.h (struct it): New elt string_overlays.
25047 New elt from_overlay, also in stack.
25048 Rearrange a few elements.
25049 (face_for_overlay_string): Decl renamed from
25050 face_at_buffer_position_no_overlays, and add argument.
25051
250522007-11-09 Richard Stallman <rms@gnu.org>
25053
25054 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25055 to get the base face for an overlay string.
25056
25057 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25058
25059 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25060
25061 * xdisp.c (handle_stop): Move some code out of loop.
25062
250632007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25064
25065 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25066 Fix conversion from Lisp object to ATSUFontID.
25067
250682007-11-09 Jason Rumney <jasonr@gnu.org>
25069
25070 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25071
250722007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25073
25074 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25075 Don't assume regions are aligned to page boundary.
25076 (print_load_command_name): Add LC_UUID if defined.
25077
250782007-11-09 Richard Stallman <rms@gnu.org>
25079
25080 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25081
250822007-11-07 Jason Rumney <jasonr@gnu.org>
25083
25084 * s/windows95.h: Remove.
25085
250862007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25087
25088 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25089 abort with a message on unhandled store_type values.
25090
250912007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25092
25093 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25094 Remove HAVE_X11R5 and HAVE_X11R4.
25095
250962007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25097
25098 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25099
251002007-11-01 Johan Bockgård <bojohan@gnu.org>
25101
25102 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25103 Don't set s->stippled_p here, since it has already been set by
25104 x_set_glyph_string_gc from x_draw_glyph_string.
25105
251062007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25107
25108 * sunfns.c: Remove file.
25109
25110 * m/sun386.h:
25111 * m/sun2.h:
25112 * m/sparc.h: Remove Sun windows code.
25113
251142007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25115
25116 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25117 (init_keyboard): Set current_kboard's window-system to nil.
25118 (tty_read_avail_input): Typo.
25119 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25120
251212007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25122
25123 * s/usg5-4.h:
25124 * s/usg5-3.h:
25125 * s/ptx.h:
25126 * m/is386.h:
25127 * m/ibmps2-aix.h:
25128 * Makefile.in: Remove all mentions of X10.
25129
25130 * dispnew.c (syms_of_display): Don't mention version 10.
25131
251322007-10-28 Juanma Barranquero <lekktu@gmail.com>
25133
25134 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25135 ($(BLD)/abbrev.$(O)): Remove.
25136
251372007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25138
25139 Rewrite abbrev.c in Elisp.
25140 * image.c (Qcount): Don't declare as extern.
25141 (syms_of_image): Initialize and staticpro `Qcount'.
25142 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25143 * emacs.c (main): Don't call syms_of_abbrev.
25144 * Makefile.in (obj): Remove abbrev.o.
25145 (abbrev.o): Remove.
25146 * abbrev.c: Remove.
25147
251482007-10-26 Martin Rudalics <rudalics@gmx.at>
25149
25150 * window.c (window_min_size_2): Don't count header-line.
25151
251522007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25153
25154 * frame.h (struct frame): Move all bit fields after the first bit
25155 field to take advantage of the available space. Group all the
25156 chars together to reduce wasted space due to padding.
25157
251582007-10-26 Juanma Barranquero <lekktu@gmail.com>
25159
25160 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25161
25162 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25163 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25164 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25165 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25166 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25167 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25168 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25169 (last_marked, mark_object_loop_halt): Make static.
25170
25171 * frame.c (syms_of_frame) <delete-frame-functions>:
25172 Fix typo in docstring.
25173
251742007-10-25 Juanma Barranquero <lekktu@gmail.com>
25175
25176 * w32.c (init_environment): Fix tiny memory leak.
25177 (w32_get_resource): Remove unused variable `ok'.
25178
251792007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25180
25181 Make `window-system' into a keyboard-local variable (rather than
25182 frame-local as done originally by multi-tty).
25183
25184 * keyboard.h (struct kboard): Add Vwindow_system.
25185 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25186 (mark_kboards): Mark Vwindow_system.
25187
25188 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25189 (init_display): Don't set the obsolete `window-system' frame-param.
25190
25191 * xterm.c (x_term_init):
25192 * w32term.c (w32_create_terminal):
25193 * term.c (init_tty): Set Vwindow_system.
25194 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25195 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25196
25197 * xfns.c (Fx_create_frame, x_create_tip_frame):
25198 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25199 * macfns.c (Fx_create_frame):
25200 Don't set the obsolete `window-system' frame-param.
25201
25202 * frame.h (Qwindow_system): Remove.
25203 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25204 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25205
252062007-10-24 Richard Stallman <rms@gnu.org>
25207
25208 * frame.c (x_figure_window_size): For fullscreen case,
25209 set USPosition | PPosition without clobbering rest of window_prompting.
25210
25211 * keyboard.c (Fcurrent_idle_time): Doc fix.
25212
25213 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25214
252152007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25216
25217 * process.c (unwind_request_sigio): Only define if __ultrix__.
25218
25219 * callproc.c (child_setup): Remove spurious *.
25220
25221 * lisp.h (Fget_text_property): Declare.
25222 (have_menus_p): Declare it here rather than in sys-dep header files.
25223 * macterm.h (have_menus_p):
25224 * msdos.h (have_menus_p):
25225 * xterm.h (have_menus_p): Remove.
25226
25227 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25228 (Fmake_variable_frame_local): Just check the variable's const-ness
25229 rather than checking nil or t.
25230
252312007-10-22 Jason Rumney <jasonr@gnu.org>
25232
25233 * w32fns.c: Include math.h.
25234 (w32_abort): Declaration moved to nt/config.nt.
25235
25236 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25237 (abort): Redefinition moved to nt/config.nt.
25238
25239 * m/windowsnt.h: Remove.
25240
252412007-10-22 Juanma Barranquero <lekktu@gmail.com>
25242
25243 * emacs.c (Fdump_emacs): Fix typo in message.
25244 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25245 <installation-directory>: Reflow docstring.
25246
252472007-10-22 Juri Linkov <juri@jurta.org>
25248
25249 * minibuf.c: Allow minibuffer default to be a list of default values.
25250 With empty input use the first element of this list as returned default.
25251 (string_to_object)
25252 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25253 (read_minibuf): If defalt is cons, set histstring to its car.
25254 (Fread_string): If default_value is cons, set val to its car.
25255 (Fread_buffer): If def is cons, use its car.
25256 (Fcompleting_read): If defalt is cons, set val to its car.
25257
252582007-10-21 Michael Albinus <michael.albinus@gmx.de>
25259
25260 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25261
252622007-10-20 Juanma Barranquero <lekktu@gmail.com>
25263
25264 * doc.c (Fdocumentation): Check for advice in all cases.
25265
252662007-10-19 Chong Yidong <cyd@stupidchicken.com>
25267
25268 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25269
252702007-10-19 Richard Stallman <rms@gnu.org>
25271
25272 * doc.c (Fdocumentation): Check for and handle an advised function.
25273
252742007-10-19 Juanma Barranquero <lekktu@gmail.com>
25275
25276 * process.c (Fset_process_filter): Doc fix.
25277
252782007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25279
25280 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25281 which caused key-translation-map to applied repeatedly (thus breaking
25282 double-mode).
25283
252842007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25285
25286 * xselect.c (x_own_selection, x_handle_selection_clear)
25287 (x_clear_frame_selections):
25288 * w32menu.c (list_of_panes, list_of_items):
25289 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25290 * textprop.c (validate_plist, interval_has_all_properties)
25291 (interval_has_some_properties, interval_has_some_properties_list)
25292 (add_properties, text_property_list):
25293 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25294 * minibuf.c (Fassoc_string):
25295 * macselect.c (x_own_selection, x_clear_frame_selections)
25296 (Fx_disown_selection_internal):
25297 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25298 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25299
253002007-10-17 Chong Yidong <cyd@stupidchicken.com>
25301
25302 * process.c: Link to libs for calling res_init() if available.
25303 (Fmake_network_process): Call res_init() before getaddrinfo or
25304 gethostbyname, if possible.
25305
253062007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25307
25308 * lread.c (read1): Set pvectype for char_tables.
25309
25310 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25311 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25312 Add type checks.
25313 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25314
25315 * alloc.c (free_misc): Use XMISCTYPE.
25316 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25317
253182007-10-17 Glenn Morris <rgm@gnu.org>
25319
25320 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25321 (syms_of_minibuf): Add Qcompletion_ignore_case.
25322 * dired.c (Qcompletion_ignore_case): Change to external.
25323 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25324 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25325 (Fread_file_name): Use it rather than intern'ing.
25326
25327 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25328 (Fread_coding_system): Ignore case of user input.
25329
253302007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25331
25332 * xdisp.c (handle_display_prop): Ignore display specs after
25333 replacing one when string text is being replaced.
25334 (handle_single_display_spec): Pretend as if characters with display
25335 property haven't been consumed only when buffer text is being replaced.
25336
253372007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25338
25339 * xfns.c (Fx_create_frame, Fx_display_list):
25340 * window.c (window_fixed_size_p, enlarge_window)
25341 (shrink_window_lowest_first):
25342 * macterm.c (init_font_name_table):
25343 * macfns.c (Fx_create_frame, Fx_display_list):
25344 * lread.c (close_load_descs):
25345 * keyboard.c (read_char_x_menu_prompt):
25346 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25347 * coding.c (code_convert_region_unwind): Test the type of an object
25348 rather than just !NILP before extracting data from it.
25349
25350 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25351
25352 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25353 (XMISCANY): New macro.
25354 (XMISCTYPE): Use it.
25355 (struct Lisp_Misc_Any): New type.
25356 (union Lisp_Misc): Use it.
25357 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25358 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25359 (find_symbol_value, set_internal, default_value, Fset_default)
25360 (Fmake_variable_buffer_local, Fmake_local_variable)
25361 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25362 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25363 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25364 * alloc.c (allocate_buffer): Set the size and tag.
25365 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25366 Use XMISCANY.
25367 (die): Follow the GNU convention for error messages.
25368 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25369 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25370 tag any more.
25371 (set_buffer_internal_1):
25372 * frame.c (store_frame_param):
25373 * eval.c (specbind):
25374 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25375
25376 * doc.c (Fsnarf_documentation): Simplify.
25377
253782007-10-14 Juanma Barranquero <lekktu@gmail.com>
25379
25380 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25381 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25382
253832007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25384
25385 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25386
253872007-10-14 Juanma Barranquero <lekktu@gmail.com>
25388
25389 * eval.c (do_autoload): Don't save autoloads.
25390
25391 * data.c (Ffset): Save autoload of the function being set.
25392
253932007-10-07 John Paul Wallington <jpw@pobox.com>
25394
25395 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25396 parameter before setting up faces.
25397
253982007-10-13 Eli Zaretskii <eliz@gnu.org>
25399
25400 * ccl.c (Fregister_code_conversion_map):
25401 * keyboard.c (append_tool_bar_item): Reformat last change.
25402
25403 * lisp.h (eabs): Rename from `abs'. All callers changed.
25404
254052007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25406
25407 * buffer.c (add_overlay_mod_hooklist):
25408 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25409 * fontset.c (make_fontset):
25410 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25411 (append_tool_bar_item):
25412 * macmenu.c (grow_menu_items):
25413 * w32menu.c (grow_menu_items):
25414 * xmenu.c (grow_menu_items): Use larger_vector.
25415
254162007-10-13 Eli Zaretskii <eliz@gnu.org>
25417
25418 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25419 selected frame'' on MSDOS).
25420
254212007-10-12 Martin Rudalics <rudalics@gmx.at>
25422
25423 * frame.c (Qexplicit_name): New variable.
25424 (x_report_frame_params): Report it in parameter alist.
25425 (syms_of_frame): Intern and staticpro it.
25426
254272007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25428
25429 * macfns.c (x_create_tip_frame): Set terminal for frame.
25430
254312007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25432
25433 * frame.c (Qenvironment): Remove.
25434 (syms_of_frame) <Qenvironment>: Don't initialize.
25435 (Fdelete_frame): Don't treat the `environment' param specially.
25436 * frame.h (Qenvironment): Don't declare.
25437 * callproc.c (set_initial_environment): Don't set unused frame param.
25438
25439 * frame.c (Fframe_with_environment): Remove.
25440 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25441
25442 * lisp.h (Fframe_with_environment): Don't declare.
25443
254442007-10-10 Juanma Barranquero <lekktu@gmail.com>
25445
25446 * indent.c (indent_tabs_mode, last_known_column)
25447 (last_known_column_modified): Make static.
25448 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25449
254502007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25451
25452 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25453
254542007-10-09 Jason Rumney <jasonr@gnu.org>
25455
25456 * w32term.c (x_set_window_size): Disable code that attempts to tell
25457 Lisp code about a size change before it actually happens.
25458
254592007-10-09 Richard Stallman <rms@gnu.org>
25460
25461 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25462 return HANDLED_RETURN.
25463
254642007-10-08 Martin Rudalics <rudalics@gmx.at>
25465
25466 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25467 when there's an unread command event.
25468
25469 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25470 window autoselection act appropriately when leaving selected frame.
25471 (syms_of_frame): Initialize focus_follows_mouse.
25472 * frame.h (focus_follows_mouse): Extern it.
25473 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25474 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25475 * msdos.c (dos_rawgetc): Likewise.
25476 * w32term.c (w32_read_socket): Likewise.
25477 * xterm.c (handle_one_xevent): Likewise.
25478 * xdisp.c (syms_of_xdisp): In doc-string of
25479 mouse-autoselect-window mention focus-follows-mouse.
25480
254812007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25482
25483 * macterm.c (mac_load_query_font): Fix missing return value.
25484 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25485 Add BLOCK_INPUT.
25486
254872007-10-08 Richard Stallman <rms@gnu.org>
25488
25489 * xdisp.c (get_window_cursor_type): Implement documented behavior
25490 for cursor-in-non-selected-windows = t.
25491
254922007-10-08 Jason Rumney <jasonr@gnu.org>
25493
25494 * w32.c (w32_get_resource): Always close registry keys.
25495
254962007-10-08 Jason Rumney <jasonr@gnu.org>
25497
25498 * makefile.w32-in (LIBS): Add COMCTL32.
25499
25500 * w32fns.c (globals_of_w32fns): Init common controls.
25501
255022007-10-08 Richard Stallman <rms@gnu.org>
25503
25504 * image.c (our_memory_buffer): Rename from omfib_buffer.
25505
255062007-10-08 Richard Stallman <rms@gnu.org>
25507
25508 * buffer.c (Foverlays_at): Doc fix.
25509
255102007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25511
25512 * fns.c (Fplist_put): Preserve uneven tail data.
25513
255142007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25515
25516 * termhooks.h (enum event_kind): Remove trailing comma.
25517
25518 * frame.h (enum): Remove trailing comma.
25519
255202007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25521
25522 * w32proc.c (delete_child): Don't terminate threads of zombies.
25523
255242007-10-08 Martin Rudalics <rudalics@gmx.at>
25525
25526 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25527
25528 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25529 last-repeatable-command.
25530 (init_kboard): Initialize Vlast_repeatable_command.
25531 (command_loop_1): Set it to real_this_command unless that was
25532 bound to an input event.
25533 (mark_kboards): Mark it.
25534
255352007-10-08 Richard Stallman <rms@gnu.org>
25536
25537 * eval.c (condition-case): Doc fix.
25538
255392007-10-08 Masatake YAMATO <jet@gyve.org>
25540
25541 * xfaces.c (tty_supports_face_attributes_p): Fix code
25542 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25543 was copied and not edited.
25544
255452007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25546
25547 Add new `input-decode-map' keymap and use it for terminal
25548 escape sequences.
25549 * keyboard.h (struct kboard): Add Vinput_decode_map.
25550 Remove Vlocal_key_translation_map.
25551 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25552 (init_kboard): Init input-decode-map.
25553 Replace local-key-translation-map back with key-translation-map.
25554 (syms_of_keyboard): Declare input-decode-map.
25555 Remove local-key-translation-map. Update docstrings.
25556 (mark_kboards): Mark Vinput_decode_map.
25557 Don't mark Vlocal_key_translation_map.
25558 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25559 Replace local-key-translation-map back with key-translation-map.
25560 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25561 Bind in input-decode-map rather than function-key-map.
25562
25563 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25564 This was made redundant by the previous introduction of XSETPVECTYPE.
25565
255662007-10-09 Richard Stallman <rms@gnu.org>
25567
25568 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25569
255702007-09-29 Richard Stallman <rms@gnu.org>
25571
25572 * eval.c (internal_condition_case_2, internal_condition_case_1)
25573 (internal_condition_case): Reenable abort if x_catching_errors ()
25574 to see if that really happens and why.
25575
255762007-10-06 Andreas Schwab <schwab@suse.de>
25577
25578 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25579
255802007-10-04 Juanma Barranquero <lekktu@gmail.com>
25581
25582 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25583
255842007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25585
25586 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25587
255882007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25589
25590 * window.h (struct window):
25591 * window.c (struct save_window_data, struct saved_window):
25592 * termhooks.h (struct terminal):
25593 * process.h (struct Lisp_Process):
25594 * frame.h (struct frame):
25595 * buffer.h (struct buffer):
25596 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25597 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25598 The size field of (pseudo)vectors is now unsigned.
25599 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25600
25601 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25602 Turn `count' into an integer.
25603
25604 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25605 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25606 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25607 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25608 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25609
25610 * alloc.c (allocate_pseudovector): New fun.
25611 (ALLOCATE_PSEUDOVECTOR): New macro.
25612 (allocate_window, allocate_terminal, allocate_frame)
25613 (allocate_process): Use it.
25614 (mark_vectorlike): New function.
25615 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25616 (mark_terminals): Use it.
25617 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25618 (Fmake_byte_code): Use XSETPVECTYPE.
25619
25620 * frame.c (Fframe_parameters): Minor simplification.
25621
25622 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25623
25624 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25625
25626 * buffer.c (Fget_buffer_create, init_buffer_once):
25627 * lread.c (defsubr):
25628 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25629
25630 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25631 defined differently in the m/*.h files.
25632 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25633 (XSETPVECTYPE): New macro.
25634 (XSETPSEUDOVECTOR): Use it.
25635
25636 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25637 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25638
25639 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25640 * lread.c (defvar_per_buffer):
25641 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25642
25643 * window.c (candidate_window_p): Only consider as visible frames that
25644 are on the same terminal.
25645
25646 * m/ibms390x.h (MARKBIT): Remove unused macro.
25647
256482007-10-01 Juanma Barranquero <lekktu@gmail.com>
25649
25650 * lread.c (Fload): Fix typo in docstring.
25651
256522007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25653
25654 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25655 of a non-zero value can't yield zero.
25656
256572007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25658
25659 * term.c (term_clear_mouse_face, term_mouse_highlight)
25660 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25661
25662 * print.c (safe_debug_print): Use XHASH.
25663
25664 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25665 Lisp elements such as tags.
25666 (XHASH): New macro.
25667 (EQ): Use it.
25668 (SREF, SSET, STRING_COPYIN): Use SDATA.
25669 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25670
25671 * alloc.c (mark_terminal): Remove left-over declaration.
25672 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25673 (allocate_vectorlike): Remove type argument. Adjust callers.
25674 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25675 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25676
25677 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25678 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25679 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25680 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25681 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25682 Use them.
25683
25684 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25685 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25686 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25687
256882007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25689
25690 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25691 loaded by default.
25692
256932007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25694
25695 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25696 on this tty.
25697 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25698
25699 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25700 Update all users.
25701 (handle_one_term_event): Use Gpm_DrawPointer.
25702 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25703 Signal errors instead of returning nil. Always return nil.
25704 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25705 Make it a noop if gpm-mouse was not activated.
25706 (syms_of_term): Update names.
25707
257082007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25709
25710 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25711 (init_sys_modes): Check that gpm_tty is the current tty.
25712
25713 * alloc.c (allocate_terminal): Set the vector size to only count the
25714 lisp fields. Initialize those to nil.
25715 (mark_object): Don't treat terminals specially.
25716 (mark_terminal): Remove.
25717 (mark_terminals): Use mark_object instead.
25718
25719 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25720 the GC to the beginning.
25721
25722 * indent.h:
25723 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25724
25725 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25726
257272007-09-25 Jason Rumney <jasonr@gnu.org>
25728
25729 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25730
25731 * w32console.c (create_w32cons_output): Remove.
25732
25733 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25734
25735 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25736 (reset_sys_modes): Use reset_terminal_modes_hook.
25737
257382007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25739
25740 * eval.c (do_autoload): Don't output any message.
25741
257422007-09-24 Juri Linkov <juri@jurta.org>
25743
25744 * emacs.c (standard_args): Change priority of "--no-splash"
25745 from 40 to 3. Add "--no-desktop" with the same priority.
25746
257472007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25748
25749 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25750 and optimize the case where they are all 1.
25751
257522007-09-23 Johannes Weiner <hannes@saeurebad.de>
25753
25754 * lisp.h (abs): Define if not defined.
25755 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25756 Don't define `abs', since it's defined in lisp.h.
25757
257582007-09-22 Eli Zaretskii <eliz@gnu.org>
25759
25760 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25761 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25762 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25763 (init_tty): Use DEV_TTY instead of "/dev/tty".
25764 [WINDOWSNT]: No need to protect from NAME arg being null.
25765
257662007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25767
25768 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25769 up the tty state.
25770
257712007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25772
25773 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25774 (gpm_tty): Change its type.
25775 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25776 (gpm_tty): Change its type and initialize it.
25777 (Fterm_open_connection): Check the frame is indeed a tty.
25778 Use the new gpm_tty.
25779 (Fterm_close_connection): Use the new gpm_tty.
25780 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25781 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25782
257832007-09-21 Juanma Barranquero <lekktu@gmail.com>
25784
25785 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25786 underline_color, to draw strike-through.
25787
257882007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25789
25790 * lisp.h (allocate_terminal): Declare.
25791
25792 * window.c (candidate_window_p): Consider frames that are being placed
25793 by the user as somewhere between visible and iconified.
25794 (window_loop): Prefer windows on the current frame.
25795 (Fselect_window): Move the use of select-frame to the beginning so we
25796 can just delegate all the work (it'll call us back anyway).
25797
25798 * frame.c (Qdisplay_environment_variable):
25799 * frame.h (Qdisplay_environment_variable): Delete.
25800
25801 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25802 of the first arg, since that value may be a union.
25803
25804 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25805 parameter rather than Qdisplay_environment_variable. If all else
25806 fails, look for DISPLAY in initial-environment.
25807
258082007-09-21 Glenn Morris <rgm@gnu.org>
25809
25810 * Makefile.in (emacstool): Remove target.
25811 (lisp, shortlisp): Remove termdev.elc.
25812
258132007-09-21 Markus Triska <markus.triska@gmx.at>
25814
25815 * xterm.c (x_delete_display): Compile session management conditionally.
25816
258172007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25818
25819 * callproc.c (getenv_internal_1): New function.
25820 (getenv_internal): Use it.
25821 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25822
25823 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25824 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25825 (Fset_terminal_parameter): Work with dead terminals as well.
25826 (Fmodify_terminal_parameters): Remove.
25827
25828 * terminal.c (get_terminal): Handle terminals.
25829 Make sure the terminal returned is live.
25830 (create_terminal): Use allocate_terminal.
25831 (mark_terminals): Move to alloc.c.
25832 (delete_terminal): Use terminal->name as liveness status.
25833 NULL out fields after freeing their contents.
25834 Don't deallocate the object.
25835 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25836 rather than an int.
25837 (Fterminal_live_p): Accept non-integer arguments.
25838 (Fterminal_list): Return terminal objects rather than an ints.
25839
25840 * alloc.c (enum mem_type): New member for `terminal' objects.
25841 (allocate_terminal): New function.
25842 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25843 Handle terminals.
25844 (mark_terminal): New fun.
25845 (mark_terminals): Move from terminal.c.
25846
25847 * term.c (get_tty_terminal): Don't treat output_initial specially.
25848 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25849 (delete_tty): Use terminal->name as liveness status.
25850
25851 * termhooks.h (struct terminal): Make it into a pseudovector.
25852 Remove `deleted' replaced by checking `name's nullness.
25853
25854 * print.c (print_object): Handle terminals.
25855
25856 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25857 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25858
25859 * frame.c (make_terminal_frame):
25860 * keyboard.c (tty_read_avail_input):
25861 * w32term.c (x_delete_terminal):
25862 * xfns.c (Fx_create_frame, x_create_tip_frame):
25863 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25864
258652007-09-20 Glenn Morris <rgm@gnu.org>
25866
25867 * process.c (Fmake_network_process): Doc fix.
25868
258692007-09-19 Jason Rumney <jasonr@gnu.org>
25870
25871 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25872
258732007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25874
25875 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25876 Fix a C warning regarding variable constness.
25877
25878 * xterm.c (handle_one_xevent): Fix a C warning.
25879
258802007-09-18 Jason Rumney <jasonr@gnu.org>
25881
25882 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25883
258842007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25885
25886 * gtkutil.c (gdpy_def): New variable.
25887 (xg_initialize): Initialize gdpy_def.
25888 (xg_display_close): If no other display exists, set gdpy_def to a
25889 new connection.
25890
258912007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25892
25893 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25894 when we have no file name for the icon.
25895 (xg_tool_bar_expose_callback): Remove.
25896 (xg_create_tool_bar): Don't connect expose signal to
25897 xg_tool_bar_expose_callback.
25898 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25899
259002007-09-16 Andreas Schwab <schwab@suse.de>
25901
25902 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25903 values instead of zapping them.
25904
259052007-09-14 Glenn Morris <rgm@gnu.org>
25906
25907 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25908 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25909 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25910 scope and rename to omfib_buffer for clarity.
25911 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25912
259132007-09-14 Kenichi Handa <handa@m17n.org>
25914
25915 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25916
259172007-09-13 Jason Rumney <jasonr@gnu.org>
25918
25919 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25920
25921 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25922
25923 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25924 (mac_term_init): Call here instead, passing rif.
25925
259262007-09-13 Glenn Morris <rgm@gnu.org>
25927
25928 * s/hpux.h: No longer define `static' as nothing.
25929
259302007-09-13 Johan Bockgård <bojohan@gnu.org>
25931
25932 * callint.c (Fcall_interactively): Remove unused var `fun'.
25933
259342007-09-12 Romain Francoise <romain@orebokech.com>
25935
25936 * window.c (prefer_window_split_horizontally, display_buffer):
25937 Revert 2007-09-08 change.
25938
259392007-09-12 Glenn Morris <rgm@gnu.org>
25940
25941 * alloca.c: Remove file.
25942 * Makefile.in (alloca): Do not undef.
25943 (allocaobj, alloca.o): Remove.
25944 (otherobj): Remove allocaobj.
25945 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25946 * regex.c (C_ALLOCA): Remove all references and code that was only
25947 used when this was defined.
25948 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25949 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25950 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25951
25952 * Makefile.in (SOURCES, unlock, relock): Delete.
25953
25954 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25955 (menu_grab_callback): All uses changed.
25956
25957 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25958 (x_reply_selection_request): All uses changed.
25959
259602007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25961
25962 * lread.c (load_warn_old_style_backquotes): Change message to look
25963 better when it appears in the middle of byte-compiler messages.
25964
259652007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25966
25967 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25968
25969 * xterm.c (x_create_terminal): Add comment.
25970
25971 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25972
259732007-09-10 Richard Stallman <rms@gnu.org>
25974
25975 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25976
259772007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25978
25979 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25980 (DEFUN): Document `intspec', use it instead of `prompt'.
25981
25982 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25983
25984 * data.c (Finteractive_form): If the interactive specification starts
25985 with a `(', use it as a Lisp form.
25986
25987 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25988 name and file modes.
25989
25990 * callint.c (Fcall_interactively): Comment fixes.
25991
259922007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25993
25994 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25995 and compiled functions.
25996
259972007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25998
25999 * window.c (prefer_window_split_horizontally): New variable.
26000 (display_buffer): Consider splitting window horizontally depending
26001 on prefer_window_split_horizontally.
26002
260032007-09-08 Eli Zaretskii <eliz@gnu.org>
26004
26005 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26006
260072007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26008
26009 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26010
26011 * frame.c (x_set_frame_parameters): Check number is positive before
26012 using XFASTINT.
26013
26014 * window.c (freeze_window_start): Don't presume selected_window holds
26015 a window object.
26016 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26017
260182007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26019
26020 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26021
260222007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26023
26024 * window.c (Vsplit_window_preferred_function): New var.
26025 (Fdisplay_buffer): Use it.
26026 (syms_of_window): Export, and initialize it.
26027
260282007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26029
26030 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26031
260322007-09-06 Glenn Morris <rgm@gnu.org>
26033
26034 * gtkutil.c (menu_grab_callback) <cnt>:
26035 * xselect.c (x_reply_selection_request) <cnt>: Move static
26036 variable to file scope.
26037
260382007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26039
26040 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26041 consistent values of selected_frame and selected_window.
26042
260432007-09-04 Jason Rumney <jasonr@gnu.org>
26044
26045 * w32console.c (initialize_w32_display): Zero unused hooks.
26046
260472007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26048
26049 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26050 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26051
260522007-09-04 Jason Rumney <jasonr@gnu.org>
26053
26054 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26055 in w32console.c. Set up input. Remove XXX comments that have been
26056 confirmed as correct.
26057
26058 * s/ms-w32.h (MULTI_KBOARD): Define.
26059
26060 * w32console.c (one_and_only_w32cons): Remove.
26061 (initialize_w32_display): Take terminal argument.
26062
26063 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26064 initialize_w32_display.
26065 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26066
26067 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26068
26069 * keyboard.c (discard_mouse_events): Discard it.
26070 (make_lispy_event): Translate it to a lisp event.
26071 (lispy_wheel_names): Add wheel-left and right events.
26072 (syms_of_keyboard): Enlarge wheel_syms.
26073
26074 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26075 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26076
26077 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26078
26079 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26080 from WM_MOUSEHWHEEL.
26081 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26082
26083 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26084 terminal.
26085
26086 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26087 keyboard for the terminal.
26088
260892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26090
26091 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26092 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26093 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26094 and resume-tty-function to resume-tty-hook.
26095 (Fsuspend_tty, Fresume_tty): Use new names.
26096
260972007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26098
26099 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26100 if it starts with "n:".
26101
261022007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26103
26104 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26105
261062007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26107
26108 * frame.h:
26109 * frame.c (Qterm_environment_variable): Remove.
26110 (syms_of_frame): Don't init and staticpro it.
26111
26112 * callproc.c (getenv_internal): Remove special case for $TERM.
26113
26114 * callproc.c (Vinitial_environment): New variable.
26115 (set_initial_environment): Initialize it.
26116 (syms_of_callproc): Declare it.
26117 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26118 TERM under which a process runs is never related to the TERM in which
26119 Emacs is running.
26120
261212007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26122
26123 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26124 * s/darwin.h: ... do it here.
26125
261262007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26127
26128 * lisp.h (set_initial_environment): Rename from set_global_environment.
26129
26130 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26131 removed by mistake on the multi-tty branch.
26132
26133 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26134 (Fmodify_frame_parameters): Return a value.
26135
26136 * image.c (png_load): Comment-out var only used in commented-out code.
26137
26138 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26139 before passing it to mark_object.
26140
26141 * xfaces.c (internal_resolve_face_name): Return a value.
26142 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26143
26144 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26145 (x_icon): Comment-out var only used in commented-out code.
26146
261472007-08-29 Romain Francoise <romain@orebokech.com>
26148
26149 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26150 QUIT hasn't been provided.
26151
261522007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26153
26154 * callproc.c (child_setup, getenv_internal): Use the
26155 display-environment-variable and term-environment-variable frame params.
26156 (set_initial_environment): Initialise Vprocess_environment.
26157
26158 * config.in: Disable multi-keyboard support on a mac.
26159
26160 * frame.c (Qterm_environment_variable)
26161 (Qdisplay_environment_variable): New variables.
26162 (syms_of_frame): Intern and staticpro them.
26163 (Fmake_terminal_frame): Disable output method test.
26164
26165 * frame.h: Declare them here.
26166
26167 * macfns.c (x_set_mouse_color): Get rif from the frame.
26168 (x_set_tool_bar_lines): Don't use updating_frame.
26169 (mac_window): Add 2 new parameters for consistency with other systems.
26170 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26171 frame parameters following what is done in X11 and w32. Don't use
26172 FRAME_MAC_DISPLAY_INFO.
26173 (Fx_open_connection, start_hourglass): Remove window-system check.
26174 (x_create_tip_frame): Get the keyboard from the terminal.
26175
26176 * macmenu.c: Reorder includes.
26177 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26178
26179 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26180 terminal parameter.
26181 (x_clear_frame): Add a frame parameter.
26182 (note_mouse_movement): Get rif from the frame.
26183 (mac_term_init): Initialize the terminal.
26184 (mac_initialize): Make static and move terminal initialization ...
26185 (mac_create_terminal): ... to this new function.
26186
26187 * macterm.h (struct mac_display_info): Add terminal.
26188 (mac_initialize): Delete declaration.
26189
26190 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26191
26192 * sysdep.c: Comment out text after #endif.
26193
26194 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26195 is defined. Better initialize ttys in windows. Use terminal
26196 specific mouse_position_hook.
26197
26198 * termhooks.h (union display_info): Add mac_display_info.
26199
26200 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26201 Set the default minibuffer frame, window_system and the rest of the
26202 frame parameters following what is done in X11.
26203
26204 * w32term.c (w32_initialize): Make static.
26205
26206 * xselect.c (x_handle_selection_clear): Only access
26207 terminal->kboard when MULTI_KBOARD is defined.
26208
26209 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26210 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26211
262122007-08-29 Jason Rumney <jasonr@gnu.org>
26213
26214 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26215 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26216
26217 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26218 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26219
26220 * keyboard.c (restore_kboard_configuration): Only define when
26221 MULTI_KBOARD defined.
26222
26223 * makefile.w32-in: Update dependancies from Makefile.in.
26224 (OBJ1): Add terminal.$(O)
26225
26226 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26227 Don't define function body.
26228 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26229
26230 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26231
26232 * w32.c (request_sigio, unrequest_sigio): Remove.
26233
26234 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26235 (w32con_clear_frame, w32con_clear_end_of_line)
26236 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26237 (w32con_delete_glyphs, w32con_set_terminal_window)
26238 (scroll_line, w32_sys_ring_bell): Add frame arg.
26239 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26240 Add terminal arg.
26241 (PICK_FRAME): Remove.
26242 (w32con_write_glyphs): Use frame specific terminal coding.
26243 (one_and_only_w32cons): New global variable.
26244 (initialize_w32_display): Use it for storing hooks.
26245 (create_w32cons_output): New function.
26246
26247 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26248 arg a frame.
26249
26250 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26251 Set window_system.
26252 (x_set_tool_bar_lines): Don't use updating_frame.
26253 (Fx_create_frame): Set terminal and ref count.
26254 (Fx_open_connection): Remove window-system check.
26255
26256 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26257
26258 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26259 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26260 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26261 Add frame arg.
26262 (x_delete_terminal, w32_create_terminal): New functions.
26263 (w32_term_init): Create a terminal.
26264 (w32_initialize): Move terminal specific initialization to
26265 w32_create_terminal.
26266
26267 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26268 (w32_clear_rect, w32_clear_area): Use background from frame.
26269 (w32_display_info): Add terminal.
26270 (w32_sys_ring_bell, x_delete_display): Declare here.
26271
26272 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26273
26274 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26275
262762007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26277
26278 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26279 Fix get_named_tty calls for the controlling tty.
26280
262812007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26282
194d44e7 26283 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26284
262852007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26286
26287 * term.c (tty_insert_glyphs): Add missing first parameter.
26288
262892007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26290
26291 * buffer.c (Fbuffer_list, Fbury_buffer):
26292 Take frame->buried_buffer_list into account.
26293
26294 * cm.c (current_tty): New variable, for cmputc().
26295 (cmputc): Use it.
26296 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26297 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26298 (cmgoto): Add tty parameter. Pass it on to calccost().
26299 Use emacs_tputs() instead of tputs().
26300
26301 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26302 tputs().
26303 (current_tty): New variable, for cmputc().
26304 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26305
26306 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26307 (internal_condition_case, internal_condition_case_1)
26308 (internal_condition_case_2): Don't abort when x_catching_errors.
26309
26310 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26311 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26312 prevent crashes caused by bogus longjmps in read_char.
26313
26314 * keymap.h (Fset_keymap_parent): Add EXFUN.
26315
26316 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26317 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26318 Remove redundant definition.
26319
26320 * macfns.c (x_set_mouse_color, x_make_gc):
26321 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26322
26323 * w32term.c (x_free_frame_resources):
26324 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26325 (w32_initialize): Use the accessor macros for terminal characteristics.
26326
26327 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26328 Use the accessor macros for terminal characteristics.
26329 * msdos.c (internal_terminal_init): Use the accessor macros for
26330 terminal characteristics.
26331 (ScreenVisualBell, internal_terminal_init):
26332 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26333
26334 * termopts.h (no_redraw_on_reenter): Declare.
26335
26336 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26337 (mark_terminals, mark_ttys): Declare.
26338 (Fgarbage_collect): Call them.
26339 (mark_object): Mark buried_buffer_list.
26340
26341 * prefix-args.c: Include stdlib.h for exit.
26342
26343 * syssignal.h: Add comment.
26344
26345 * indent.c: Include stdio.h.
26346
26347 * window.h (Vinitial_window_system): Declare.
26348 (Vwindow_system): Delete declaration.
26349
26350 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26351
26352 * image.c (lookup_image): Don't initialize `c' until the xasserts
26353 have been run.
26354
26355 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26356 FRAME_FOREGROUND_PIXEL.
26357
26358 * print.c (print_preprocess): Don't lose print_depth levels while
26359 iterating.
26360
26361 * widget.c (update_from_various_frame_slots):
26362 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26363
26364 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26365 frames.
26366 (window_internal_height): Remove bogus make_number call.
26367 (init_window_once): Call make_terminal_frame with two zero parameters.
26368
26369 * fileio.c (Fread_file_name): Update comment.
26370
26371 * callint.c (Fcall_interactively):
26372 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26373 Make sure it is correctly unwound.
26374
26375 * xsmfns.c (x_session_close): New function.
26376
26377 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26378 Delete declarations.
26379
26380 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26381 (x_output): Remove background_pixel and foreground_pixel fields.
26382 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26383 (x_delete_device, x_session_close): Declare.
26384
26385 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26386 (read_filtered_event): Call `read_char' with a local
26387 `wrong_kboard_jmpbuf'.
26388
26389 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26390 Don't call single_kboard_state. Use FRAME_RIF.
26391
26392 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26393 systems.
26394
26395 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26396 (Fframe_with_environment, Fset_input_meta_mode)
26397 (Fset_quit_char): EXFUN.
26398 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26399 (init_sys_modes, reset_sys_modes): Update prototypes.
26400 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26401
26402 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26403 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26404 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26405 Delete declarations.
26406 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26407 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26408 New declarations.
26409
26410 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26411 already does that during init_display(). Call syms_of_keymap
26412 before syms_of_keyboard. Call `syms_of_terminal'.
26413 Call set_initial_environment, not set_process_environment.
26414 (shut_down_emacs): Call reset_all_sys_modes() instead of
26415 reset_sys_modes().
26416
26417 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26418 (internal_resolve_face_name, resolve_face_name_error): New functions.
26419 (resolve_face_name): Protect against loops and errors thrown by Fget.
26420 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26421 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26422
26423 * scroll.c: Replace CURTTY() with local variables throughout the
26424 file (where applicable).
26425 (calculate_scrolling, calculate_direct_scrolling)
26426 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26427 characteristics.
26428
26429 * keymap.c (Vfunction_key_map): Remove.
26430 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26431 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26432 (Vkey_translation_map): Remove.
26433 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26434 (Fdescribe_buffer_bindings)
26435 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26436 Update for terminal-local key-translation-map.
26437
26438 * Makefile.in (callproc.o): Update dependencies.
26439 (lisp, shortlisp): Add termdev.elc.
26440 (obj): Add terminal.o.
26441 (terminal.o): Add dependencies.
26442 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26443 (data.o, fns.o): Add termhooks.h dependency.
26444 (SOME_MACHINE_LISP): Add dnd.elc.
26445 (minibuf.o): Fix typo.
26446 Update dependencies.
26447
26448 * data.c (do_symval_forwarding, store_symval_forwarding)
26449 (find_symbol_value): Use the selected frame's keyboard, not
26450 current_kboard.
26451
26452 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26453 Vwindow_system.
26454
26455 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26456 Fmenu_bar_open.
26457 (syms_of_xmenu): Update defsubr.
26458 (mouse_position_for_popup, Fx_popup_menu)
26459 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26460 (set_frame_menubar, free_frame_menubar)
b97439ce 26461 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26462 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26463 an X frame.
26464
26465 * xselect.c (x_own_selection): Abort if not an X frame.
26466 (some_frame_on_display): Check if it is an X frame.
26467 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26468
26469 * coding.c: Include frame.h and termhooks.h.
26470 (terminal_coding, keyboard_coding): Delete.
26471 (Fset_terminal_coding_system_internal)
26472 (Fset_keyboard_coding_system_internal)
26473 (Fkeyboard_coding_system)
26474 (Fterminal_coding_system): Add a terminal parameter.
26475 Get terminal_coding from the terminal.
26476 (init_coding_once): Don't call setup_coding_system here.
26477
26478 * dispextern.h (set_scroll_region, turn_off_insert)
26479 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26480 (tty_clear_end_of_line, tty_setup_colors)
26481 (delete_tty, updating_frame)
26482 (produce_special_glyphs, produce_glyphs, write_glyphs)
26483 (insert_glyphs): Remove.
26484 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26485 (tty_turn_off_highlight, get_tty_size): Add declaration.
26486 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26487
26488 * frame.h (enum output_method): Add output_initial.
26489 (struct x_output): Delete.
26490 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26491 Access foreground_pixel and background_pixel directly from the frame.
26492 (tty_display): Delete.
26493 (struct frame): Add buried_buffer_list, foreground_pixel,
26494 background_pixel and terminal. Delete kboard.
26495 (union output_data): Add tty.
26496 (FRAME_KBOARD): Get the kboard from the terminal.
26497 (FRAME_INITIAL_P): New macro.
26498 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26499 (Qterm_environment_variable, Qdisplay_environment_variable)
26500 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26501 New declarations.
26502
26503 * termchar.h (tty_output, tty_display_info): New structures.
26504 (tty_list): Declare.
26505 (FRAME_TTY, CURTTY): New macros.
26506 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26507 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26508 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26509 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26510
26511 * callproc.c: Include frame.h and termhooks.h, for terminal
26512 parameters.
26513 (add_env): New function.
26514 (child_setup): Use it.
26515 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26516 (getenv_internal): Fix get_terminal_param call.
26517 (Fgetenv_internal, egetenv): Update doc.
26518 (syms_of_callproc): Initialize Vprocess_environment to nil.
26519 Register and initialize them. Remove obsolete defvars. Update doc
26520 strings.
26521 (child_setup): Handle Vlocal_environment_variables.
26522 (getenv_internal): Add terminal parameter.
26523 Handle Vlocal_environment_variables.
26524 (Fgetenv_internal): Add terminal parameter.
26525 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26526 environment in a frame (not terminal) parameter. Update doc strings.
26527 (set_initial_environment): Rename from set_global_environment.
26528 Store Emacs environment in initial frame parameter.
26529
26530 * xdisp.c (redisplay_internal): Update references to
26531 `previous_terminal_frame'.
26532 (display_mode_line, Fformat_mode_line): Replace calls to
26533 `push_frame_kboard' with `push_kboard'.
26534 (get_glyph_string_clip_rects): Add extra parentheses and
26535 braces to prevent compiler warnings.
26536 (calc_pixel_width_or_height): Add xassert to check that the
26537 frame is alive. Don't call `lookup_image' on a termcap frame.
26538 (message2_nolog, message3_nolog, redisplay_internal)
26539 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26540 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26541 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26542 (Fx_display_pixel_width, Fx_display_pixel_height)
26543 (Fx_display_planes, Fx_display_color_cells)
26544 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26545 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26546 (Fx_display_backing_store, Fx_display_visual_class)
26547 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26548 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26549
26550 * xfns.c (x_set_foreground_color x_set_background_color)
26551 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26552 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26553 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26554 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26555 terminal that is being deleted.
26556 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26557 frame parameter, and make sure it overrides any user-supplied setting.
26558 (Fx_close_connection, Fx_synchronize): Unify argument names with
26559 the rest of the DEFUNs.
26560
26561 * dispnew.c (Fsend_string_to_terminal): Update call to
26562 `get_tty_terminal'.
26563 (Fredraw_frame, Fsend_string_to_terminal)
26564 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26565 FRAME_TERMCAP_P and FRAME_TTY.
26566 (window_change_signal): Don't believe width/height values that are
26567 impossibly small.
26568 (Vinitial_window_system): Rename from Vwindow_system.
26569 (termscript, Wcm, rif): Delete.
26570
26571 * termhooks.h (struct terminal): New struct containing the
26572 previously global text display hooks and new members NAME,
26573 DELETED and PARAM_ALIST.
26574 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26575 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26576 (FRAME_RIF): New macros.
26577 (get_terminal_param, get_device): New declarations.
26578 (termscript): Delete declaration.
26579
26580 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26581 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26582 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26583 FRAME_FOREGROUND_PIXEL.
26584 (x_fully_uncatch_errors): Disable definition.
26585 (x_scroll_bar_expose): Fix reference to foreground pixel.
26586 (XTread_socket): Disable loop on all X displays.
26587 (x_delete_terminal): Don't set terminal->deleted and let
26588 delete_terminal delete the frames on the terminal.
26589 (x_delete_display): Doc update to reflect changes in
26590 delete_terminal.
26591 (x_display_info) <terminal>: Move member earlier in the struct.
26592 (deleting_tty): Remove old variable.
26593 (Fsuspend_tty): Call clear_tty_hooks.
26594 (Fresume_tty, init_tty): Call set_tty_hooks.
26595 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26596 errors on X frames.
26597 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26598 (handle_one_xevent): Initialize `f' to NULL.
26599 (x_delete_terminal, x_create_terminal): New functions.
26600 (XTset_terminal_modes, XTreset_terminal_modes)
26601 (XTread_socket, x_connection_closed, x_term_init)
26602 (x_term_init, x_delete_display): Add terminal parameter.
26603 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26604 X connections.
26605
26606 * frame.c: Include termchar.h.
26607 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26608 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26609 (Qdisplay_environment_variable): New vars.
26610 (Fframep): Deal with output_initial.
26611 (Fframe-live-p): Doc fix.
26612 (Fwindow-system): New function.
26613 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26614 (make_terminal_frame): Don't create frames on a terminal that is
26615 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26616 (store_frame_param): Check for found_for_frame before calling XFRAME.
26617 (Fmake_terminal_frame): Handle NULL tty names correctly.
26618 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26619 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26620 frames to refer to a deleted frame in their 'environment parameter.
26621 (Fframe_with_environment): New function.
26622 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26623 (get_future_frame_param): New function.
26624 (Fmake_terminal_frame): Use it.
26625 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26626
26627 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26628 * sysdep.c (reset_sys_modes): Update for renames.
26629
26630 * keyboard.c (tty_read_avail_input): New function.
26631 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26632 (syms_of_keyboard): Defsubr them.
26633 (Fset_input_meta_mode, Fset_quit_char): New functions.
26634 (Fset_input_mode): Split to above functions.
26635 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26636 parameter. Use it in call to `read_char'.
26637 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26638 Set wrong_kboard_jmpbuf correctly in recursive calls.
26639 Use current_kboard to access Vkeyboard_translate_table.
26640 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26641 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26642 Update longjmp invocations. Remember the original current_kboard,
26643 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26644 changes it. Comment out unnecessary calls to
26645 `record_single_kboard_state' and `any_kboard_state'.
26646 Update recursive calls.
26647 (wrong_kboard_jmpbuf): Remove global variable.
26648 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26649 Handle deleted interrupted_kboards correctly; that is a legal
26650 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26651 and read_char calls. Abort if interrupted_kboard died in read_char.
26652 (any_kboard_state, single_kboard_state)
26653 (push_frame_kboard): Remove function.
26654 (pop_kboard): Switch out of single_kboard mode if the kboard has
26655 been deleted. Remove unused variable. Help debugging by not
26656 changing current_kboard unnecessarily. Set current_kboard to the
26657 kboard of the selected frame when the stored kboard object has
26658 been deleted before pop_kboard.
26659 (temporarily_switch_to_single_kboard): Change first parameter to a
26660 frame pointer. Throw an error when caller wants to change kboards
26661 while in single_kboard mode. Don't push_kboard if we weren't in
26662 single kboard state. Don't pop_kboard if we popped into any
26663 kboard state.
26664 (restore_kboard_configuration): Abort if pop_kboard changed the
26665 kboard in single_kboard mode. Call pop_kboard only after setting
26666 up single_kboard mode.
26667 (Frecursive_edit): Switch to single_kboard mode only in nested
26668 command loops.
26669 (cmd_error, command_loop, command_loop_1, timer_check):
26670 Comment out unnecessary call to `any_kboard_state' and
26671 `record_single_kboard_state'.
26672 (delete_kboard): Exit single_kboard mode if we have just deleted
26673 that kboard. Use FRAME_KBOARD.
26674 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26675 `fatal_error_signal'.
26676 (record_single_kboard_state): Don't push_kboard if we weren't in
26677 single kboard state. Don't pop_kboard if we popped into any
26678 kboard state.
26679 (push_frame_kboard): Rename to push_kboard.
26680 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26681 (read_avail_input): Read input from all terminals.
26682 (mark_kboards): Also mark Vkeyboard_translate_table.
26683 (kbd_buffer_store_event_hold): Simplify condition.
26684 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26685 (Vkeyboard_translate_table): Move to struct kboard.
26686 (init_kboard): Initialize Vkeyboard_translate_table.
26687 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26688 Vkeyboard_translate_table. Update doc strings. Update docs of
26689 local-function-key-map and function-key-map.
26690
26691 * terminal.c: New file.
26692
26693 * term.c: Include errno.h.
26694 (Vring_bell_function, device_list, initial_device)
26695 (next_device_id, ring_bell, update_begin, update_end)
26696 (set_terminal_window, cursor_to, raw_cursor_to)
26697 (clear_to_end, clear_frame, clear_end_of_line)
26698 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26699 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26700 (syms_of_term): Move their initialization to terminal.c.
26701 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26702 (Ftty_display_color_cells)
26703 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26704 (clear_tty_hooks, set_tty_hooks)
26705 (init_tty, maybe_fatal): New functions.
26706 (Ftty_type): Return nil if terminal is not on a tty instead of
26707 throwing an error. Doc update.
26708 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26709 Doc update. Initialize new subrs and variables.
26710 (delete_tty): Use terminal->deleted.
26711 (tty_set_terminal_modes): Rename from set_terminal_modes.
26712 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26713 (set_scroll_region): Rename to `tty_set_scroll_region'.
26714 (turn_on_insert): Rename to `tty_turn_on_insert'.
26715 (turn_off_insert): Rename to `tty_turn_off_insert'.
26716 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26717 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26718 (toggle_highligh): Rename to `tty_toggle_highlight'.
26719 (background_highlight): Rename to `tty_background_highlight'.
26720 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26721 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26722 (tty_set_scroll_region, tty_background_highlight)
26723 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26724 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26725 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26726 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26727 Add static modifier.
26728 (tty_reset_terminal_modes, tty_set_terminal_window)
26729 (tty_set_scroll_region, tty_background_highlight)
26730 (tty_highlight_if_desired, tty_cursor_to)
26731 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26732 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26733 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26734 renames.
26735
267362007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26737
26738 * keyboard.c: Qrtl is new.
26739 (parse_tool_bar_item): Handle :rtl keyword.
26740 (syms_of_keyboard): Intern :rtl keyword.
26741
26742 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26743
26744 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26745 so no Lisp code is executed.
26746 (file_for_image, find_rtl_image): New functions.
26747 (xg_get_image_for_pixmap): Use file_for_image.
26748 (update_frame_tool_bar): If direction is RTL, use RTL image if
26749 defined. Use Gtk stock images if defined.
26750
267512007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26752
26753 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26754 for nonexistent or zero-width glyph in composition glyph.
26755
267562007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26757
26758 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26759
26760 * xdisp.c (Finvisible_p): New function.
26761 (syms_of_xdisp): defsubr it.
26762
267632007-08-24 Juanma Barranquero <lekktu@gmail.com>
26764
26765 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26766 Doc fixes.
26767
267682007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26769
26770 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26771
267722007-08-24 Martin Rudalics <rudalics@gmx.at>
26773
26774 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26775 whether decoding has modified buffer contents.
26776
267772007-08-24 Jason Rumney <jasonr@gnu.org>
26778
26779 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26780 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26781 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26782 (init_svg_functions) [HAVE_NTGUI]: New function.
26783 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26784 (svg_load_image): Use them.
26785 (svg_load_image) [HAVE_NTGUI]: Implement background.
26786
267872007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26788
26789 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26790 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26791 (LIBX): Remove @RSVG_LIBS@.
26792 (LIBES): Add $(RSVG_LIBS).
26793
26794 * image.c (svg_load_image): Blend with specified background if exists.
26795 Use IMAGE_BACKGROUND. Add Mac OS Support.
26796
26797 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26798 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26799 Remove macros.
26800 [MAC_OSX] (socket_callback): Do nothing.
26801 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26802 ReceiveNextEvent.
26803 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26804 socket_callback.
26805 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26806
268072007-08-22 Glenn Morris <rgm@gnu.org>
26808
26809 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26810
268112007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26812
26813 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26814
26815 * image.c: Add support for SVG images. Some additional comments
26816 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26817 (svg_image_p): New function to test for SVG image.
26818 (svg_load): New function to load SVG image.
26819 (svg_load_image): New function, helper for svg_load.
26820 (Qsvg): New Lisp_object.
26821 (svg_keyword_index): New enum.
26822 (svg_format): New static `image_keyword' struct.
26823 (svg_type): New static `image_type' struct.
26824 (librsvg/rsvg.h): Include it.
26825
268262007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26827
26828 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26829
268302007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26831
26832 * lread.c (Qold_style_backquotes): New var.
26833 (syms_of_lread): Init and staticpro it.
26834 (load_warn_old_style_backquotes): New fun.
26835 (Fload): Use them to warn about old style backquotes.
26836 (end_of_file_error, Fload): Remove unused vars.
26837
26838 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26839
26840 * lread.c (Vold_style_backquotes): New var.
26841 (syms_of_lread): Init and export it to Elisp.
26842 (read1): Set it when we find an old-style (back)quote.
26843
268442007-08-22 Jason Rumney <jasonr@gnu.org>
26845
26846 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26847
268482007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26849
26850 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26851
268522007-08-19 Richard Stallman <rms@gnu.org>
26853
26854 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26855
268562007-08-19 Andreas Schwab <schwab@suse.de>
26857
26858 * alloc.c (pure): Round PURESIZE up.
26859
268602007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26861
26862 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26863 active frame.
26864
268652007-08-16 Richard Stallman <rms@gnu.org>
26866
26867 * eval.c (Fcommandp): Add parens to clarify.
26868
26869 * minibuf.c (Fall_completions): Use enum for type of table.
26870
26871 * emacs.c (USAGE2): Improve text.
26872
268732007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26874
26875 * term.c (tty_default_color_capabilities): Declare static
26876 variables in file scope, to avoid HPUX compiler problem.
26877
268782007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26879
26880 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26881 to gtk_toolbar_insert.
26882
268832007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26884
26885 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26886
26887 * insdel.c (reset_var_on_error): New fun.
26888 (signal_before_change, signal_after_change):
26889 Use it to reset (after|before)-change-functions to nil in case of error.
26890 Bind inhibit-modification-hooks to t.
26891 Don't bind (after|before)-change-functions to nil while they run.
26892
268932007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26894
26895 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26896 filling pixmap with stippled background.
26897
268982007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26899
26900 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26901 Don't use invisible frame as parent window for repositioning.
26902
269032007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26904
26905 * print.c (new_backquote_output): Rename from old_backquote_output.
26906 (print): Inverse its logic (according to its name) so as to match the
26907 behavior of new_backquote_flag in lread.c.
26908
269092007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26910
26911 * gmalloc.c (posix_memalign): New function.
26912
26913 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26914 ActivateControl/DeactivateControl here.
26915 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26916 frame-notice-user-settings is non-nil.
26917 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26918 for kEventParamFMFontStyle.
26919 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26920 mac_pass_command_to_system and mac_pass_control_to_system here.
26921 (XTread_socket): Call ActivateControl/DeactivateControl here.
26922 (XTread_socket) [TARGET_API_MAC_CARBON]:
26923 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26924 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26925 for window repositioning.
26926
269272007-08-08 Glenn Morris <rgm@gnu.org>
26928
26929 * Replace `iff' in doc-strings and comments.
26930
269312007-08-07 Chong Yidong <cyd@stupidchicken.com>
26932
26933 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26934
269352007-08-07 Martin Rudalics <rudalics@gmx.at>
26936
26937 * fileio.c (Finsert_file_contents): Run format-decode and
26938 after_insert_file_functions on entire buffer when REPLACE is
26939 non-nil and inhibit modification_hooks and point_motion_hooks.
26940 For consistency, run after_insert_file_functions iff something
26941 got inserted. Move signal_after_change and update_compositions
26942 after code running after_insert_file_functions. Make sure that
26943 undo_list doesn't record intermediate steps of the decoding process.
26944
269452007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26946
26947 * emacs.c (main)
26948 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26949 Call malloc_enable_thread on interactive startup.
26950
26951 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26952 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26953 [USE_PTHREAD]: Conditionalize with it.
26954 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26955 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26956 New functions.
26957
269582007-08-06 Chong Yidong <cyd@stupidchicken.com>
26959
26960 * xdisp.c (redisplay_window): When restoring original buffer
26961 position, make sure it is still valid.
26962
26963 * image.c (png_load): Ignore png-supplied background color.
26964
269652007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26966
26967 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26968 Use kCFAbsoluteTimeIntervalSince1970.
26969
26970 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26971 New variable.
26972 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26973 event loop should be quit.
26974 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26975 Quit dialog event loop if quit_dialog_event_loop is set.
26976
26977 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26978 (Selection): New typedef. Use instead of ScrapRef.
26979 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26980 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26981 (mac_clear_selection): Rename from clear_scrap.
26982 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26983 scrap_has_target_type. All uses changed.
26984 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26985 (mac_selection_has_target_p): New functions.
26986 (mac_put_selection_value): Rename from put_scrap_string.
26987 (mac_get_selection_value): Rename from get_scrap_string.
26988 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26989 (put_scrap_private_timestamp, scrap_has_target_type)
26990 (get_scrap_private_timestamp): Remove functions.
26991 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26992 (x_own_selection, x_get_local_selection):
26993 Use mac_valid_selection_value_p.
26994 (x_own_selection): Don't use put_scrap_private_timestamp.
26995 Record OWNERSHIP-INFO into Vselection_alist instead.
26996 (x_get_local_selection): Don't check type if request is local.
26997 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26998 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26999
270002007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27001
27002 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27003 add comment explaining why.
27004
270052007-08-03 Richard Stallman <rms@gnu.org>
27006
27007 * fileio.c (Fvisited_file_modtime): Use make_time.
27008
270092007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27010
27011 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27012 build.
27013
270142007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27015
27016 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27017
270182007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27019
27020 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27021
270222007-07-30 Richard Stallman <rms@gnu.org>
27023
27024 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27025
270262007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27027
27028 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27029
270302007-07-28 Nick Roberts <nickrob@snap.net.nz>
27031
27032 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27033 remote default-directory.
27034
27035 * buffer.c (mode-line-format): Update doc string.
27036
270372007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27038
27039 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27040 scroll bar gap.
27041 (x_scroll_bar_create): Set bar->fringe_extended_p.
27042 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27043 on frame edge. Check fringe background extension. Don't clear
27044 extended fringe background area.
27045
27046 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27047 (w32_fill_area): Enclose multiple statements with do ... while (0).
27048
27049 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27050 Extend fringe background to scroll bar gap.
27051 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27052 Set bar->fringe_extended_p.
27053 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27054 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27055 background extension. Don't clear extended fringe background area.
27056
27057 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27058 New member fringe_extended_p.
27059
270602007-07-25 Glenn Morris <rgm@gnu.org>
27061
27062 * Relicense all FSF files to GPLv3 or later.
27063
27064 * COPYING: Switch to GPLv3.
27065
270662007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27067
27068 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27069
27070 * data.c (Finteractive_form): Check for the presence of an
27071 `interactive-form' symbol property more thoroughly.
27072
27073 * data.c (Finteractive_form): Use an `interactive-form' property if
27074 present, analogous to the function-documentation property.
27075
270762007-07-24 Jason Rumney <jasonr@gnu.org>
27077
27078 * w32fns.c (x_real_positions): Get real position from OS instead of
27079 calculating it.
27080
270812007-07-23 Jason Rumney <jasonr@gnu.org>
27082
27083 * filelock.c (current_lock_owner): Allow for @ sign in username.
27084
270852007-07-22 Nick Roberts <nickrob@snap.net.nz>
27086
27087 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27088 remote default-directory.
27089
27090 * buffer.c (mode-line-format): Describe above case in doc string.
27091
270922007-07-20 Eli Zaretskii <eliz@gnu.org>
27093
27094 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27095 Define if not defined.
27096
270972007-07-18 Jason Rumney <jasonr@gnu.org>
27098
27099 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27100
271012007-07-18 Richard Stallman <rms@gnu.org>
27102
27103 * data.c (Fsetq_default): Doc fix.
27104
27105 * eval.c (Fsetq): Doc fix.
27106
271072007-07-18 Juanma Barranquero <lekktu@gmail.com>
27108
27109 * coding.c (Ffind_operation_coding_system):
27110 * eval.c (For, Fand): Doc fixes.
27111 Reported by Johan Bockgård.
27112
271132007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27114
27115 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27116
27117 * xterm.h: Declare x_ewmh_activate_frame.
27118
27119 * xterm.c (x_ewmh_activate_frame): New function.
27120 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27121
271222007-07-17 Martin Rudalics <rudalics@gmx.at>
27123
27124 * window.c (Fdisplay_buffer): If largest or LRU window is the
27125 only window, split it even if it is not eligible for splitting.
27126 This restores the original behavior broken by the 2007-07-15
27127 change.
27128
271292007-07-17 Glenn Morris <rgm@gnu.org>
27130
27131 * abbrev.c (abbrev_check_chars): New function.
27132 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27133 Call abbrev_check_chars to check abbrev characters are word
27134 constituents. Doc fix.
27135
271362007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27137
27138 * process.c (Fstart_process, Fmake_network_process)
27139 (read_process_output): Fix up last changes.
27140
271412007-07-16 Eli Zaretskii <eliz@gnu.org>
27142
27143 * makefile.w32-in (clean): Don't delete *~.
27144
271452007-07-16 Andreas Schwab <schwab@suse.de>
27146
27147 * window.c (Fdisplay_buffer): Use NILP.
27148 (Fset_window_scroll_bars): Likewise.
27149
271502007-07-15 Martin Rudalics <rudalics@gmx.at>
27151
27152 * window.c (window_min_size_2): New function.
27153 (window_min_size_1, size_window, Fdisplay_buffer)
27154 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27155 windows without mode- or header-lines when window-min-height is
27156 too small.
27157 (size_window): Reset nodelete_p after testing it, following an
27158 earlier note by Kim F. Storm.
27159 (display_buffer): Do not set split_height_threshold to twice the
27160 value of window_min_height to avoid changing the value of a
27161 customizable variable. Rather explicitly check whether the
27162 height of the window that shall be splitted is at least as large
27163 as split_height_threshold.
27164 (Fwindow_full_width_p): New defun.
27165 (syms_of_window): Defsubr it.
27166
27167 * window.h: Add EXFUN for Fwindow_full_width_p.
27168
271692007-07-14 Jason Rumney <jasonr@gnu.org>
27170
27171 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27172
271732007-07-14 Richard Stallman <rms@gnu.org>
27174
27175 * eval.c (maybe_call_debugger): New function.
27176 (find_handler_clause): Use maybe_call_debugger.
27177 Call it when the handler says `debug'.
27178 Eliminate DEBUGGER_VALUE_PTR.
27179 (Fsignal): Eliminate debugger_value.
27180 (Qdebug): New variable.
27181 (syms_of_eval): Initialize it.
27182
271832007-07-14 Juanma Barranquero <lekktu@gmail.com>
27184
27185 * eval.c (Fprogn):
27186 * keyboard.c (Ftrack_mouse):
27187 * print.c (Fwith_output_to_temp_buffer):
27188 * window.c (Fsave_window_excursion): Doc fix.
27189
271902007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27191
27192 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27193
271942007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27195
27196 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27197 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27198 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27199 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27200 Remove unused encoding_carryover.
27201 * process.c: Adjust all functions accordingly.
27202
272032007-07-12 Richard Stallman <rms@gnu.org>
27204
27205 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27206
272072007-07-11 Jason Rumney <jasonr@gnu.org>
27208
27209 * makefile.w32-in (LIBS): Include OLE32.
27210
27211 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27212 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27213
272142007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27215
27216 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27217 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27218 from a Lisp_Object into a bare pointer.
27219 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27220 Adjust the code correspondingly.
27221
27222 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27223
27224 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27225 (term_show_mouse_face): Remove unused var `j'.
27226 (handle_one_term_event): Remove unused vars `i' and `j'.
27227 Don't cast return value of ttyname since it's not necessary.
27228
272292007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27230
27231 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27232 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27233
27234 * fns.c (map_char_table): Use an array of int for `indices' rather than
27235 an array of Lisp_Objects (which are only ever integers anyway).
27236 (Fmap_char_table): Update caller.
27237 * lisp.h: Update prototype.
27238 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27239 * fontset.c (Ffontset_info):
27240 * casetab.c (set_case_table): Update callers.
27241
27242 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27243
27244 * keymap.c (struct accessible_keymaps_data)
27245 (struct where_is_internal_data): New structures.
27246 (accessible_keymaps_1, where_is_internal_1): Use them to change
27247 interface to adhere to the one used by map_keymap.
27248 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27249 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27250
27251 * keymap.h (map_keymap_function_t): More informative prototype.
27252
272532007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27254
27255 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27256 (looking_at_1): Don't change search_regs and last_thing_searched
27257 if `inhibit-changing-match-data' is non-nil.
27258 (string_match_1, search_buffer, set_search_regs): Likewise.
27259 (syms_of_search): Add Lisp level definition for
27260 `inhibit-changing-match-data' and set it to nil.
27261 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27262 start and end of the match, instead of using values in search_regs.
27263
272642007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27265
27266 * minibuf.c (Fcompleting_read): New value `confirm-only'
27267 for `require-match'.
27268
272692007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27270
27271 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27272 part of the 2007-06-27 change to syms_of_fileio.
27273
272742007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27275
27276 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27277 Check WINDOWP before using XWINDOW. Consolidate return statements.
27278
272792007-06-27 Richard Stallman <rms@gnu.org>
27280
27281 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27282
272832007-06-27 Juanma Barranquero <lekktu@gmail.com>
27284
27285 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27286
272872007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27288
27289 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27290 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27291 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27292 (_free_internal, memalign): Use them.
27293 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27294 Initialize to PTHREAD_MUTEX_INITIALIZER.
27295 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27296 (morecore_nolock): Rename from morecore. All uses changed.
27297 Use only nolock versions of internal allocation functions.
27298 (_malloc_internal_nolock, _realloc_internal_nolock)
27299 (_free_internal_nolock): New functions created from
27300 _malloc_internal, _realloc_internal, and _free_internal.
27301 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27302 Copy hook value to automatic variable before its use.
27303 (memalign): Copy hook value to automatic variable before its use.
27304
273052007-06-26 Kenichi Handa <handa@m17n.org>
27306
27307 * coding.c (Ffind_operation_coding_system): Docstring improved.
27308 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27309
273102007-06-25 David Kastrup <dak@gnu.org>
27311
27312 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27313 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27314 cater for additional parameter.
27315
27316 * keymap.h: Adjust number of parameters to `current-active-maps'.
27317
27318 * doc.c (Fsubstitute_command_keys): Adjust call of
27319 `current-active-maps'.
27320
273212007-06-25 David Kastrup <dak@gnu.org>
27322
27323 * callint.c (Fcall_interactively): Make the parsing of interactive
27324 specs somewhat more readable.
27325
273262007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27327
27328 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27329 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27330 if extended background has already been filled.
27331
273322007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27333
27334 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27335 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27336
27337 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27338 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27339 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27340 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27341 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27342 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27343 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27344 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27345 Run timers during dialog popup.
27346 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27347
273482007-06-21 Jason Rumney <jasonr@gnu.org>
27349
27350 * image.c (convert_mono_to_color_image): Swap fore and background.
27351
273522007-06-20 Jason Rumney <jasonr@gnu.org>
27353
27354 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27355 (w32_free_bdf_font): Unmap memory not handle.
27356
273572007-06-20 Sam Steingold <sds@gnu.org>
27358
27359 * gmalloc.c (__morecore): Fix the declaration to comply with the
27360 definition.
27361
273622007-06-20 Juanma Barranquero <lekktu@gmail.com>
27363
27364 * w32term.c (w32_delete_display): Remove leftover declaration.
27365 (w32_define_cursor, w32_initialize): Make static.
27366
27367 * w32.c (_wsa_errlist): Fix typo in error message.
27368 (init_environment): Ignore any environment variable from the
27369 registry having a null value.
27370
273712007-06-20 Glenn Morris <rgm@gnu.org>
27372
27373 * Makefile.in (LIBGIF): Default to -lgif.
27374
273752007-06-17 Jason Rumney <jasonr@gnu.org>
27376
27377 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27378 unicode strings.
27379
273802007-06-16 Juanma Barranquero <lekktu@gmail.com>
27381
27382 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27383 Fix typo in docstring.
27384
273852007-06-16 Eli Zaretskii <eliz@gnu.org>
27386
27387 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27388 and their keybindings.
27389
273902007-06-15 Chong Yidong <cyd@stupidchicken.com>
27391
27392 * composite.c (update_compositions): Fix last fix.
27393
273942007-06-14 Jason Rumney <jasonr@gnu.org>
27395
27396 * w32.c (get_process_times_fn): New function pointer.
27397 (globals_of_w32): Intialize it if present in kernel32.dll.
27398 (w32_get_internal_run_time): New function.
27399
27400 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27401
274022007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27403
27404 * composite.c (update_compositions): Check the validness of
27405 compositions.
27406
274072007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27408
27409 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27410 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27411
27412 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27413 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27414
27415 * macgui.h (USE_MAC_TOOLBAR): New define.
27416
27417 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27418 Return immediately unless popup is activated.
27419
27420 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27421 background to scroll bar gap.
27422 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27423 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27424 scroll bars on frame edge. Check fringe background extension.
27425 Don't clear extended fringe background area.
27426 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27427 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27428 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27429 [USE_MAC_TOOLBAR]: New macros.
27430 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27431 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27432 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27433 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27434 [USE_MAC_TOOLBAR]: New functions.
27435 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27436 manually if previous repositioning has failed.
27437 (mac_handle_keyboard_event): Use precomputed event kind.
27438 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27439 as tool bar item click. Handle mouse movement over tool bar items.
27440
27441 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27442 toolbar_win_gravity.
27443 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27444 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27445 Add externs.
27446
27447 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27448 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27449
274502007-06-14 Chong Yidong <cyd@stupidchicken.com>
27451
27452 * image.c (search_image_cache): Remove unused variable.
27453
274542007-06-13 Chong Yidong <cyd@stupidchicken.com>
27455
27456 * xfns.c, xmenu.c: Link to xaw3d if available.
27457
274582007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27459
27460 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27461 frame_foreground and frame_background.
27462
27463 * image.c (lookup_image): Save frame foreground and background colors.
27464 (search_image_cache): Check if saved and current frame colors match.
27465
274662007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27467
27468 * regex.c (regex_compile): Remove the `regnum' counter.
27469 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27470
274712007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27472
27473 * term.c: Include intervals.h to declare Fget_text_property.
27474
274752007-06-10 Jason Rumney <jasonr@gnu.org>
27476
27477 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27478
274792007-06-08 Juanma Barranquero <lekktu@gmail.com>
27480
27481 * callint.c (Fcall_interactively):
27482 * editfns.c (Fdelete_and_extract_region):
27483 * fileio.c (Fread_file_name):
27484 * fns.c (Fmapconcat):
27485 * keyboard.c (cmd_error_internal):
27486 * keymap.c (Fkey_description):
27487 * lread.c (openp):
27488 * minibuf.c (read_minibuf):
27489 * search.c (wordify):
27490 * sunfns.c (sel_read):
27491 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27492 * xfns.c (x_default_scroll_bar_color_parameter):
27493 * xmenu.c (menu_help_callback):
27494 * xselect.c (Fx_get_atom_name):
27495 * xterm.c (x_term_init): Use empty_unibyte_string.
27496
274972007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27498
27499 * alloc.c (init_strings): Initialize canonical empty strings.
27500 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27501 canonical empty string when the requested size is 0.
27502
27503 * emacs.c (empty_unibyte_string): Rename from empty_string.
27504 (empty_multibyte_string): New canonical empty string.
27505 (syms_of_emacs): Don't initialize empty_string.
27506
27507 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27508 string, if appropriate.
27509 (empty_unibyte_string, empty_multibyte_string): New externs.
27510 (empty_string): Remove extern.
27511
27512 * lread.c (syms_of_lread): Use empty_unibyte_string.
27513
275142007-06-07 Jason Rumney <jasonr@gnu.org>
27515
27516 * s/ms-w32.h: Don't define HAVE_TZNAME.
27517
27518 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27519
275202007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27521
27522 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27523
27524 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27525 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27526
27527 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27528 Don't call next handler.
27529 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27530 Remove argument. Install handler to application.
27531 (set_frame_menubar): Don't change deep_p.
27532 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27533 FRAME_OUTER_TO_INNER_DIFF_Y.
27534 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27535 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27536 [HAVE_DIALOGS]: New macros.
27537 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27538 Use them.
27539 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27540
27541 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27542 init_service_handler. All callers changed. Return OSStatus value.
27543
27544 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27545 All callers changed so as not to call SetPortWindowPort.
27546 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27547 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27548 mac_draw_string_common.
27549 (mac_draw_image_string_qd): Likewise.
27550 (mac_draw_string_common): Use them. Add INLINE.
27551 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27552 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27553 GetGlobalMouse.
27554 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27555 and FRAME_OUTER_TO_INNER_DIFF_Y.
27556 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27557 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27558 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27559 repositioning window to mac_handle_window_event.
27560 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27561 saving window location to mac_handle_window_event
27562 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27563 (install_menu_target_item_handler): Remove argument in extern.
27564 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27565 Also accept command events.
27566 (do_keystroke): New function created from XTread_socket.
27567 (init_command_handler): Remove functions.
27568 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27569 and save window location by kEventWindowShowing and kEventWindowHiding
27570 handlers here. Don't call next handler for window state change and
27571 focus events.
27572 (mac_handle_application_event, mac_handle_keyboard_event)
27573 [TARGET_API_MAC_CARBON]: New functions.
27574 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27575 kEventWindowShowing and kEventWindowHiding events. Move installation
27576 of mouse, font, text input and menu target item handlers to
27577 install_application_handler.
27578 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27579 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27580 New function.
27581 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27582 Register it.
27583 (XTread_socket) [TARGET_API_MAC_CARBON]:
27584 Consolidate SendEventToEventTarget calls.
27585 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27586 Move application activation handler to mac_handle_application_event.
27587 Move keyboard handler to mac_handle_keyboard_event.
27588 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27589 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27590 init_command_handler. Call install_application_handler.
27591
27592 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27593 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27594
275952007-06-07 Glenn Morris <rgm@gnu.org>
27596
27597 * emacs.c (main): Use `emacs-copyright' in --version output.
27598
275992007-06-06 Chong Yidong <cyd@stupidchicken.com>
27600
27601 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27602
276032007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27604
27605 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27606
27607 * macgui.h: Replace WindowPtr with WindowRef.
27608
27609 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27610 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27611 Replace ControlHandle with ControlRef.
27612 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27613
27614 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27615 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27616 Replace ControlHandle with ControlRef.
27617 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27618 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27619
27620 * macterm.h (struct scroll_bar): Rename member control_handle_low
27621 and control_handle_high to control_ref_low and control_ref_high.
27622 All uses changed.
27623 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27624 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27625 respectively. All uses changed.
27626 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27627 (install_window_handler, remove_window_handler): Replace WindowPtr
27628 with WindowRef in externs.
27629
276302007-06-05 Juanma Barranquero <lekktu@gmail.com>
27631
27632 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27633
276342007-06-03 Nick Roberts <nickrob@snap.net.nz>
27635
27636 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27637
27638 * frame.c (Fmouse_position, Fmouse_pixel_position):
27639 Condition on HAVE_GPM too.
27640
27641 * term.c (term_mouse_highlight): Remove unused variables.
27642 (Fterm_open_connection): Set gpm_zerobased to 1.
27643 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27644 Use zero based co-ordinates.
27645 (handle_one_term_event): Report a drag as mouse movement too.
27646
27647 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27648
276492007-06-03 Chong Yidong <cyd@stupidchicken.com>
27650
27651 * image.c (search_image_cache): New function. Require background
27652 color match if background color is unspecified in the image spec.
27653 (uncache_image, lookup_image): Use it.
27654
276552007-06-01 Juanma Barranquero <lekktu@gmail.com>
27656
27657 * window.c (Fshrink_window): Reflow docstring.
27658
276592007-06-02 Chong Yidong <cyd@stupidchicken.com>
27660
27661 * Version 22.1 released.
27662
276632007-06-01 Richard Stallman <rms@gnu.org>
27664
27665 * xfns.c (x_encode_text): Add GCPRO.
27666
276672007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27668
27669 * xfns.c (x_set_name_internal): Save encoded name before
27670 x_encode_text in case string data is relocated.
27671
276722007-05-31 Richard Stallman <rms@gnu.org>
27673
27674 * buffer.c (syms_of_buffer): Doc fix.
27675
276762007-05-30 Nick Roberts <nickrob@snap.net.nz>
27677
27678 * sysdep.c (init_sys_modes): Add rather than replace with
27679 O_NONBLOCK.
27680
27681 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27682 term_mouse_moveto.
27683
27684 * termhooks.h (term_mouse_moveto): New extern.
27685
27686 * term.c (mouse_face_window): Rename...
27687 (Qmouse_face_window): ...to this.
27688 (term_show_mouse_face, term_clear_mouse_face)
27689 (term_mouse_highlight): Use Qmouse_face_window.
27690 (term_mouse_moveto): New function.
27691 (term_mouse_position): Make it work.
27692 (syms_of_term): Uncomment assignment to mouse_position_hook.
27693 Staticpro Qmouse_face_window.
27694
276952007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27696
27697 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27698 around current_column call.
27699
277002007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27701
27702 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27703 * xdisp.c (next_element_from_buffer):
27704 * window.c (delete_window):
27705 * term.c (term_mouse_highlight):
27706 * msdos.c (getdefdir):
27707 * macterm.c (mac_create_bitmap_from_bitmap_data)
27708 (init_font_name_table):
27709 * fns.c (Fsxhash):
27710 * data.c (Fmake_local_variable):
27711 * ccl.c (ccl_driver): Likewise.
27712
277132007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27714
27715 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27716 Call mac_wakeup_from_rne on window size change.
27717
277182007-05-25 Chong Yidong <cyd@stupidchicken.com>
27719
27720 * image.c (uncache_image): Fix typo.
27721
277222007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27723
27724 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27725
277262007-05-22 Richard Stallman <rms@gnu.org>
27727
27728 * xterm.c (x_connection_closed): Remove NO_RETURN.
27729
277302007-05-22 Martin Rudalics <rudalics@gmx.at>
27731
27732 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27733
277342007-05-21 Chong Yidong <cyd@stupidchicken.com>
27735
27736 * image.c (uncache_image): New function.
27737 (Fimage_refresh): New function.
27738
277392007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27740
27741 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27742
277432007-05-20 Nick Roberts <nickrob@snap.net.nz>
27744
27745 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27746 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27747
277482007-05-20 Nick Roberts <nickrob@snap.net.nz>
27749
27750 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27751 conditional on [HAVE_GPM_H].
27752
277532007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27754
27755 * syntax.c (skip_chars): Update syntax-table only after we checked that
27756 the new location is valid.
27757
277582007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27759
27760 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27761 mac_get_window_bounds.
27762
277632007-05-20 Nick Roberts <nickrob@snap.net.nz>
27764
27765 * Makefile.in (LIBGPM): Allow it to be set from configure.
27766 If set then link Emacs with it.
27767
27768 * config.in: Regenerate.
27769
27770 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27771 New externs.
27772
27773 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27774 Include gpm.h.
27775 (handle_one_term_event, term_gpm): New externs.
27776
27777 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27778 and allow it to be interrupted by SIGIO.
27779
27780 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27781 (wait_reading_process_output): Wait on gpm_fd too.
27782 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27783 (add_gpm_wait_descriptor_called_flag): New variable.
27784 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27785
27786 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27787 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27788 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27789 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27790 (make_lispy_event): Add case GPM_CLICK_EVENT.
27791 (read_avail_input): Handle mouse input.
27792
27793 * term.c (write_glyphs_with_face): New function.
27794 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27795 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27796 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27797 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27798 (last_mouse_x, last_mouse_y): New variables.
27799 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27800 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27801 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27802 (Fterm_close_connection): New functions.
27803 (term_init): Initialise mouse_face_window.
27804
278052007-05-19 Chong Yidong <cyd@stupidchicken.com>
27806
27807 * xdisp.c (redisplay_window): If first window line is a
27808 continuation line, recompute the new window start instead of
27809 recentering.
27810
278112007-05-18 Glenn Morris <rgm@gnu.org>
27812
27813 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27814 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27815
278162007-05-17 Glenn Morris <rgm@gnu.org>
27817
27818 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27819
278202007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27821
27822 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27823 dead key repeat and up events.
27824
278252007-05-14 Chong Yidong <cyd@stupidchicken.com>
27826
27827 * image.c (pbm_load): Check image size for monochrome pbm.
27828
278292007-05-13 Chong Yidong <cyd@stupidchicken.com>
27830
27831 * xterm.c (XTread_socket): Revert last change.
27832
278332007-05-12 Chong Yidong <cyd@stupidchicken.com>
27834
27835 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27836
27837 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27838
278392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27840
27841 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27842 mixup (YAILOM).
27843
278442007-05-07 Andreas Schwab <schwab@suse.de>
27845
27846 * keymap.c (Flookup_key): Fix typo in last change.
27847
278482007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27849
27850 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27851 mapping for unibyte strings.
27852
278532007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27854
27855 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27856 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27857
278582007-04-29 Richard Stallman <rms@gnu.org>
27859
27860 * insdel.c (replace_range): For undo, record insertion first.
27861
278622007-04-29 Andreas Schwab <schwab@suse.de>
27863
27864 * lisp.h (VECSIZE): Use OFFSETOF.
27865
278662007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27867
27868 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27869 disabled lines.
27870
278712007-04-28 Richard Stallman <rms@gnu.org>
27872
27873 * lread.c (read_escape): In a string, \s is always space.
27874
278752007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27876
27877 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27878
27879 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27880 submenu for menu bar items.
27881
27882See ChangeLog.10 for earlier changes.
27883
27884;; Local Variables:
27885;; coding: utf-8
27886;; add-log-time-zone-rule: t
aac0c6e3
MR
27887;; End:
27888
e3eb1dae 27889 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27890
27891 This file is part of GNU Emacs.
27892
27893 GNU Emacs is free software: you can redistribute it and/or modify
27894 it under the terms of the GNU General Public License as published by
27895 the Free Software Foundation, either version 3 of the License, or
27896 (at your option) any later version.
27897
27898 GNU Emacs is distributed in the hope that it will be useful,
27899 but WITHOUT ANY WARRANTY; without even the implied warranty of
27900 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27901 GNU General Public License for more details.
27902
27903 You should have received a copy of the GNU General Public License
27904 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27905
27906;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40