shr.el (shr-tag-li): Get <li> indentation right.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c1ae068b
LMI
12010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2
3 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4
5 * gnutls.c: Add property list symbol holders.
6 (emacs_gnutls_handshake): Clarify how sockets are passed to
7 GnuTLS.
8 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
9 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
10 and keyfiles to be a list of file names. Default to "NORMAL" for
11 the priority string. Improve logging.
12
e2afe435
GM
132010-10-03 Glenn Morris <rgm@gnu.org>
14
15 * fileio.c (Vdirectory_sep_char): Remove.
16
dd5ecd6b
DN
172010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
18
b5437a05
DN
19 * termhooks.h: Remove #ifdef CONSP.
20
4777478a
DN
21 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
22
a3d5088d
DN
23 Include <fcntl.h> unconditionally.
24 * termcap.c:
25 * sysdep.c:
26 * lread.c:
27 * keyboard.c:
28 * filelock.c:
29 * fileio.c:
30 * doc.c:
31 * callproc.c:
32 * alloc.c: Remove include guards for <fcntl.h>, process.c already
33 does it.
34
82719735
DN
35 * process.c: Do not include <sys/wait.h>, syswait.h does it.
36
9de940b5
DN
37 * sysdep.c (flush_pending_output): Remove code, does not do
38 anything on any platform.
39
57507bf8
DN
40 Remove unused code.
41 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
42 select emulation, all systems support select.
43 (set_exclusive_use): Remove, the only user is in an #if 0 block.
44 * process.c (create_process): Remove #if 0 code.
45
dd5ecd6b
DN
46 Remove unused arguments for unexec.
47 The third one is never used, and the last two are always passed as zero.
48 * emacs.c (unexec): Add declaration.
49 (Fdump_emacs): Only pass the first two arguments to unexec.
50 Simplify #ifdef.
51 * unexw32.c (unexec):
52 * unexsol.c (unexec):
53 * unexhp9k800.c (unexec):
54 * unexcw.c (unexec): Remove the last 3 arguments, unused.
55 * unexelf.c (unexec): Remove the last 3 arguments, unused.
56 (find_section): Use const.
57 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
58 (unexec_error): Declare it NO_RETURN.
59 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
60 it as an argument, remove data_start and entry_address arguments, unused.
61 (unexec): Remove bss_start, data_start and
62 entry_address arguments.
63 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
64 it as an argument, remove data_start and entry_address arguments, unused.
65 (unexec): Remove bss_start, data_start and
66 entry_address arguments.
67
74f1829d
JB
682010-10-03 Juanma Barranquero <lekktu@gmail.com>
69
7f467e14
JB
70 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
71
74f1829d
JB
72 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
73 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
74 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
75 Fix typos in docstrings.
76 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
77 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
78
6926550f
CY
792010-10-03 Chong Yidong <cyd@stupidchicken.com>
80
81 * keyboard.c (command_loop_1): Make sure the mark is really alive
82 before using it (Bug#7044).
83
54b65f7b
JB
842010-10-02 Juanma Barranquero <lekktu@gmail.com>
85
86 * makefile.w32-in (tags): Rename target to full-tags.
87
383ebd15
EZ
882010-10-02 Eli Zaretskii <eliz@gnu.org>
89
90 * emacs.c (main): Remove !WINDOWSNT conditional.
91 (Fkill_emacs): Don't mention exemption on MS-Windows.
92
9c524fcb
GM
932010-10-02 Glenn Morris <rgm@gnu.org>
94
3226d6ca
GM
95 * character.c (Fchar_bytes): Remove obsolete function.
96 (syms_of_character): Remove Schar_bytes.
97
9c524fcb
GM
98 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
99 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
100 in batch-mode.
101 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
102 (kill-emacs-hook): Doc fix.
103
1b217849
LMI
1042010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
105
106 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
107 (parse_region): Reworked to take regions instead of strings, and
108 renamed to reflect that these are the libxml functions.
109
54cc6a83
EZ
1102010-10-01 Eli Zaretskii <eliz@gnu.org>
111
0ebf79de
EZ
112 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
113 screen dimensions in tty->Wcm.
114
54cc6a83
EZ
115 * xdisp.c (set_cursor_from_row): When the row is truncated and
116 point is outside the range of displayed characters, position the
117 cursor inside the scroll margin. (Bug#6349)
118
321401d1
DN
1192010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
120
4cacd822
DN
121 Do not include stdlib.h and string.h, config.h does it.
122 * xfont.c:
123 * w32term.c:
124 * w32reg.c:
125 * w32inevt.c:
126 * w32heap.c:
127 * w32console.c:
128 * w16select.c:
129 * unexsol.c:
130 * term.c:
131 * sound.c:
132 * scroll.c (m):
133 * gtkutil.c:
134 * font.c:
135 * filelock.c:
136 * fileio.c:
137 * dosfns.c:
138 * dbusbind.c:
139 * bidi.c:
140 * callproc.c:
141 * process.c:
142 * msdos.c:
143 * charset.c: Do not include stdlib.h and string.h, config.h does it.
144
0781e7ab
DN
145 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
146
9bf58201
DN
147 * process.c: Move #include <pty.h> earlier.
148 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
149 (pty_name): Move definition later.
150
088dcc3e
DN
151 * nsselect.m (syms_of_nsselect):
152 * nsmenu.m (syms_of_nsmenu):
153 * nsfns.m (syms_of_nsfns):
154 * msdos.c (syms_of_msdos):
4cacd822 155
088dcc3e
DN
156 * image.c (syms_of_image):
157 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
158
321401d1
DN
159 * point.h: Remove, unused.
160
73077a9a
EZ
1612010-10-01 Eli Zaretskii <eliz@gnu.org>
162
163 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
164 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
165 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
166
55e572ef
DN
1672010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
168
169 * xml.c (parse_string): Use const.
170
d4b6d95d
LMI
1712010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
172
173 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
174 only override Vprint_level if it isn't already bound, and increase
175 the level to 8 to produce more useful backtraces for bug reports.
176
e4b6db12
DN
1772010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
178
179 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
180
1becef93
JB
1812010-09-30 Juanma Barranquero <lekktu@gmail.com>
182
183 * w32console.c (vga_stdcolor_name): Remove unused function;
184 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
185
df7fcaff
LMI
1862010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
187
bac5cef8
LMI
188 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
189 (Fgnutls_boot): Start the handshake.
190 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
191 (Fgnutls_boot): Remove some debugging messages.
192 Change indentation throughout to use the Emacs style.
193 (emacs_gnutls_handshake): Cast the fds to something that's
194 possibly the expected length.
195 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 196
df7fcaff
LMI
197 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
198
199 * process.c (make_process): Set the gnutls_p field to zero by
200 default.
201 (read_process_output): Always call the gnutls_read function if the
202 stream is a gnutls stream.
203 (send_process): Ditto for writes.
204
205 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
206 or write anything until the state is GNUTLS_STAGE_READY.
207 (Fgnutls_boot): Mark the stream as being a gnutls stream.
208
d585695f
EZ
2092010-09-29 Eli Zaretskii <eliz@gnu.org>
210
af7ef32d
EZ
211 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
212 NEUTRAL_DIR.
213 (handle_invisible_prop, iterate_out_of_display_property)
214 (next_element_from_buffer): If bidi_it.first_elt is set, call
215 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
216 (Bug#7128)
217
d585695f
EZ
218 * print.c (print_object): Fix format string and argument types for
219 printing a Lisp_Misc_Marker.
220
221 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
222 (load_overlay_strings, get_overlay_strings_1)
223 (get_overlay_strings, forward_to_next_line_start)
224 (back_to_previous_visible_line_start, reseat, reseat_to_string)
225 (get_next_display_element, next_element_from_string)
226 (next_element_from_c_string, next_element_from_buffer)
227 (move_it_vertically_backward, move_it_by_lines, add_to_log)
228 (message_dolog, message_log_check_duplicate, message2_nolog)
229 (message3, message3_nolog, vmessage, set_message, set_message_1)
230 (hscroll_window_tree, text_outside_line_unchanged_p)
231 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
232 (find_last_unchanged_at_beg_row)
233 (find_first_unchanged_at_end_row, row_containing_pos)
234 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
235 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
236 EMACS_INT for buffer and string positions.
237
238 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
239 (row_containing_pos): Adjust prototype.
240
241 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
242 (message2_nolog, set_message): Adjust prototypes.
243
a6f3211f
SM
2442010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
245
246 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
247 (Fgnutls_boot): Use SDATA.
248 (Fgnutls_handshake): Remove unused var `max_log_level'.
249
e0720500
MA
2502010-09-27 Michael Albinus <michael.albinus@gmx.de>
251
11a5af7c 252 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
253 (Bug#7113)
254
d8a4b27a
J
2552010-09-27 Jan Djärv <jan.h.d@swipnet.se>
256
42d3022b
J
257 * xgselect.c (xg_select): Clear file descriptors not set from
258 rfds and wfds.
259
d8a4b27a
J
260 * process.c (wait_reading_process_output): Add missing FD_CLR
261 for write_mask (must mirror connect_wait_mask).
262
8ed70bf3
LMI
2632010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
264
265 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
266 prefix.
267 (Fgnutls_boot): Use changed process members. Use log level with a
268 function parameter to set it. Bring back Emacs-level debugging
269 messages at log level 1 and 2.
270
271 * process.c (make_process): Initialize gnutls_log_level.
272
273 * process.h: Add gnutls_log_level and rename x509_cred and
274 anon_cred to have the gnutls_ prefix for consistency.
275
276 * gnutls.h (GNUTLS_LOG): Add convenience macro.
277
bedf4aab
JB
2782010-09-27 Juanma Barranquero <lekktu@gmail.com>
279
280 * w32.c (g_b_init_get_sid_identifier_authority)
281 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
282 Remove, not used.
283 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
284 (init_winsock): Remove useless assignment.
285 (open_process_token, get_token_information, lookup_account_sid)
286 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
287 (get_security_descriptor_owner, get_security_descriptor_group)
288 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
289 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
290 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
291 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
292 (unc_volume_file_attributes, convert_from_time_t)
293 (create_toolhelp32_snapshot, process32_first, process32_next)
294 (open_thread_token, impersonate_self, revert_to_self)
295 (get_process_memory_info, get_process_working_set_size)
296 (global_memory_status, global_memory_status_ex, socket_to_fd)
297 (shutdown_handler): Make static.
298
08609ffd
MA
2992010-09-27 Michael Albinus <michael.albinus@gmx.de>
300
301 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
302 (xd_pending_messages): Functions removed.
303 (xd_read_queued_messages): Add parameters fd, *data, for_read in
304 order to be compatible with add_read_fd. Determine bus from data,
305 and call xd_read_message just for this bus.
306 (xd_add_watch): Use xd_read_queued_messages as callback function.
307 Add data.
308
309 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
310
d2e9d0bb
LMI
3112010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
312
313 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 314 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 315
4be9765d
KH
3162010-09-27 Kenichi Handa <handa@m17n.org>
317
318 These changes are to remove restriction on the number of glyphs in
319 one composition.
320
321 * dispextern.h (struct glyph): Change the member "slice" to union.
322 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
323 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
324
325 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
326 instead of glyph->slice.
327 (marginal_area_string): Likewise.
328
329 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
330 glyph->u.cmp.
331 (append_composite_glyph): Likewise.
332
333 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
334 glyph->u.cmp.
335 (fill_gstring_glyph_string, x_get_glyph_overhangs)
336 (append_composite_glyph): Likewise.
337 (fill_image_glyph_string): Use glyph->slice.img instead of
338 glyph->slice.
339 (append_glyph, produce_image_glyph, append_stretch_glyph)
340 (note_mouse_highlight): Likewise.
341
3fad2ad2
J
3422010-09-26 Jan Djärv <jan.h.d@swipnet.se>
343
bf05eed6
J
344 * process.c (add_keyboard_wait_descriptor)
345 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
346 (wait_reading_process_output): Don't pass write_mask to select
347 if SELECT_CANT_DO_WRITE_MASK is defined.
348 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 349
3fad2ad2
J
350 * process.h (add_read_fd, delete_read_fd, add_write_fd)
351 (delete_write_fd): Declare.
352
353 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
354 (write_mask): New variable.
355 (max_input_desc): Renamed from max_keyboard_desc.
356 (fd_callback_info): New variable.
70e31436
JB
357 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
358 New functions.
3fad2ad2
J
359 (Fmake_network_process): FD_SET write_mask.
360 (deactivate_process): FD_CLR write_mask.
361 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
362 check_connect removed. check_write is new. Remove references to gpm.
363 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
364 NON_BLOCKING_CONNECT) instead of Connecting.
365 Loop over file descriptors and call callbacks in fd_callback_info
366 if file descriptor is ready for I/O.
367 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
368 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
369 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
370 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
371 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
372 (init_process): Initialize write_mask and fd_callback_info.
373
374 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
375
376 * dbusbind.c: Include process.h.
377 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
378 (xd_read_message_1): New functions.
70e31436
JB
379 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
380 Handle watch for both read and write.
3fad2ad2
J
381 (Fdbus_init_bus): Also register xd_toggle_watch.
382 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
383 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
384 to dbus_connection_flush.
70e31436 385 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
386 Call xd_read_message_1 until status is COMPLETE.
387
dce4c2ac
DN
3882010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
389
390 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
391 (init_tty): Reorder code to reduce the number of #ifdefs.
392 No code changes.
dce4c2ac 393
8af55556
TZ
3942010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
395
396 * process.h: Set up GnuTLS support.
397
398 * process.c (make_process, Fstart_process)
399 (read_process_output, send_process): Set up GnuTLS support for
400 process input/output file descriptors.
401
402 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
403
404 * gnutls.c: The source code for GnuTLS support in Emacs.
405
406 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
407
408 * config.in: Set up GnuTLS support.
409
410 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
411 (obj, LIBES): Set up GnuTLS support.
412
83e245c4
JB
4132010-09-26 Juanma Barranquero <lekktu@gmail.com>
414
415 * w32.c (get_emacs_configuration_options): Fix previous change.
416
d24ec09a
CY
4172010-09-25 Chong Yidong <cyd@stupidchicken.com>
418
419 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
420 alive before using it (Bug#6977).
421
b7bdc47c
LMI
4222010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
423
a952d5f3
LMI
424 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
425
426 * dispextern.h: EMACS_INT/int fixup.
427
428 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
429 fixup.
430
b7bdc47c
LMI
431 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
432
41118bd3
EZ
4332010-09-25 Eli Zaretskii <eliz@gnu.org>
434
2452438f
EZ
435 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
436 (Fselect_window, window_scroll_pixel_based)
437 (window_scroll_line_based, Frecenter, Fset_window_configuration):
438 Use EMACS_INT for buffer positions.
439
440 * textprop.c (validate_interval_range, interval_of)
441 (property_change_between_p, Fadd_text_properties)
442 (set_text_properties_1, Fremove_text_properties)
443 (Fremove_list_of_text_properties, Ftext_property_any)
444 (Ftext_property_not_all, copy_text_properties)
445 (text_property_list, extend_property_ranges)
446 (verify_interval_modification): Use EMACS_INT for buffer
447 positions.
448
f877c546
EZ
449 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
450 for buffer positions.
451
452 * process.c (read_process_output, send_process)
453 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
454 and string positions and size.
455
da43f021
EZ
456 * print.c (print_object, print_string, strout): Use EMACS_INT for
457 string indices.
458
459 * minibuf.c (string_to_object): Use EMACS_INT for string position
460 and size.
461
462 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
463
464 * lread.c <read_from_string_index, read_from_string_index_byte>
465 <read_from_string_limit, readchar_count>: Define EMACS_INT.
466 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
467 buffer positions and string length.
468
41118bd3
EZ
469 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
470 EMACS_INT.
471 (echo_truncate, adjust_point_for_property, read_char)
472 (gen_help_event, make_lispy_event, modify_event_symbol)
473 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
474 for buffer positions and string length.
475
476 * keyboard.h (gen_help_event): Adjust prototype.
477
478 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
479
480 * commands.h <last_point_position>: Declare EMACS_INT.
481
482 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
483 (truncate_echo_area): Accept EMACS_INT argument.
484
485 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
486
487 * lisp.h (truncate_echo_area): Adjust prototype.
488
489 * composite.c (composition_adjust_point): Return EMACS_INT.
490
491 * composite.h (composition_adjust_point): Adjust prototype.
492
ba3033ee
JB
4932010-09-25 Juanma Barranquero <lekktu@gmail.com>
494
495 * process.c (Fmake_network_process): When arg :host is 'local,
496 use address 127.0.0.1, not name "localhost". (Bug#6781)
497
4f3a2f8d
EZ
4982010-09-24 Eli Zaretskii <eliz@gnu.org>
499
5816888b
EZ
500 * indent.c (Fcurrent_indentation, indented_beyond_p)
501 (compute_motion): Use EMACS_INT for buffer position variables.
502
503 * lisp.h (indented_beyond_p): Adjust prototype.
504
505 * buffer.c (overlay_strings): Return EMACS_INT.
506
507 * buffer.h (overlay_strings): Adjust prototype.
508
509 * region-cache.c (pp_cache): Adjust format to arguments.
510
511 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
512 (call_debugger): Use EMACS_INT for specpdl_size related variables.
513 (verror): Use EMACS_INT for size of allocated buffer.
514
ace1712c
EZ
515 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
516 positions.
517
518 * xdisp.c (redisplay_internal, try_window_id)
519 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
520 EMACS_INT for buffer positions.
521
f5276b75 522 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
523
524 * dispnew.c (increment_matrix_positions)
525 (increment_row_positions, copy_glyph_row_contents)
526 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
527 positions.
528
529 * dispextern.h (mode_line_string, marginal_area_string)
530 (increment_matrix_positions, increment_row_positions): Adjust
531 prototypes.
532
533 * data.c (Faref, Faset): Use EMACS_INT for string length and
534 positions.
535
536 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
537 characters to insert.
538
539 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
540 position and size.
541
4f3a2f8d
EZ
542 * syntax.c (scan_words, update_syntax_table)
543 (prev_char_comend_first, back_comment, skip_chars)
544 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
545 EMACS_INT for buffer and string positions.
546
547 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
548
549 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
550 positions.
551
db063399
LMI
5522010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
553
f0812d35
LMI
554 * scroll.c (calculate_scrolling, line_ins_del)
555 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
556 conversion.
557
f5c7fc27
LMI
558 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
559 (region_cache_backward, region_cache_forward)
560 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
561 conversion.
562
db063399
LMI
563 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
564
565 * eval.c (verror): Fix EMACS_INT/int conversion.
566
07914cd0 567 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
568 (print_preprocess, print_check_string_charset_prop)
569 (print_object): Fix EMACS_INT/int conversion.
570
571 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
572
e6d4aefa
EZ
5732010-09-24 Eli Zaretskii <eliz@gnu.org>
574
69481da7
EZ
575 * callproc.c (Fcall_process): Use EMACS_INT for count of
576 characters read from the subprocess.
577
61bfec98
EZ
578 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
579 positions.
580 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
581 positions.
582
145582a0
EZ
583 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
584 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
585 length.
586 (advance_to_char_boundary, Fset_buffer_multibyte)
587 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
588 (overlay_touches_p, record_overlay_string, overlay_strings)
589 (recenter_overlay_lists, fix_start_end_in_overlays)
590 (modify_overlay, Fmove_overlay, report_overlay_modification)
591 (evaporate_overlays): Use EMACS_INT for buffer positions.
592
593 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
594 prototypes.
595
446470a9
EZ
596 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
597 positions.
598
e6d4aefa
EZ
599 * fns.c (Fcompare_strings, Fstring_lessp, concat)
600 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
601 (Fsubstring_no_properties, substring_both, Ffillarray)
602 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
603 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
604 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
605 (Fmd5): Use EMACS_INT for buffer and string positions and length
606 variables and arguments.
607
608 * lisp.h (substring_both): Adjust prototype.
609
eb652396
JB
6102010-09-24 Juanma Barranquero <lekktu@gmail.com>
611
612 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
613 * w32fns.c (clipboard_sequence_fn): Don't declare.
614 (globals_of_w32fns): Don't initialize it.
615
266a86bd 6162010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
617
618 * syntax.c (back_comment): Detect the case where a 1-char comment
619 starter is also the 2nd char of a 2-char comment ender.
620
266a86bd 6212010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
622
623 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
624
40283062
LMI
6252010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
626
db063399
LMI
627 * eval.c (verror): EMACS_INT/int cleanup.
628
faf8b5bc
LMI
629 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
630 unwind_protect more than 2GB worth of functions.
631
632 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
633
40283062
LMI
634 * lisp.h: Have oblookup take EMACS_INT to allow interning big
635 string and avoid compiler warnings.
636 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
637 all users.
638
639 * lread.c (oblookup): EMACS_INT/int cleanup.
640
641 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
642
fe3537c3
EZ
6432010-09-23 Eli Zaretskii <eliz@gnu.org>
644
645 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
646
647 * lisp.h (clip_to_bounds): Adjust prototype.
648
649 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
650
0350982f
LMI
6512010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
652
84c9ce05
LMI
653 * lisp.h: doprnt.c EMACS_INT/int cleanup.
654
655 * doprnt.c (doprnt): EMACS_INT/int cleanup.
656
657 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
658 cleanup.
659
0350982f
LMI
660 * lisp.h: Change the definition of all marker.c functions that
661 take and return buffer stuff to be EMACS_INT instead of int.
662
663 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
664 (buf_charpos_to_bytepos, bytepos_to_charpos)
665 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
666 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
667 for all buffer positions.
668
c50bd0d2
CY
6692010-09-23 Chong Yidong <cyd@stupidchicken.com>
670
671 * intervals.c (traverse_intervals, rotate_right, rotate_left)
672 (split_interval_right, find_interval, next_interval)
673 (delete_node, delete_interval, interval_deletion_adjustment)
674 (adjust_intervals_for_deletion, merge_interval_right)
675 (merge_interval_left, graft_intervals_into_buffer)
676 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
677
678 * intervals.h (traverse_intervals): Update prototype.
679
14162469
EZ
6802010-09-23 Eli Zaretskii <eliz@gnu.org>
681
c098fdb8
EZ
682 * indent.c (compute_motion): Use EMACS_INT for arguments to
683 region_cache_forward.
684
685 * region-cache.c (struct boundary, struct region_cache): Use
686 EMACS_INT for positions.
687 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
688 (delete_cache_boundaries, set_cache_region)
689 (invalidate_region_cache, know_region_cache)
690 (region_cache_forward, region_cache_backward, pp_cache): Use
691 EMACS_INT for buffer positions.
692
693 * region-cache.h (know_region_cache, invalidate_region_cache)
694 (region_cache_forward, region_cache_backward): Adjust prototypes.
695
696 * search.c (string_match_1, fast_c_string_match_ignore_case)
697 (looking_at_1, scan_buffer, scan_newline)
698 (find_next_newline_no_quit, find_before_next_newline)
699 (search_command, trivial_regexp_p, search_buffer, simple_search)
700 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
701 and string positions and length.
702
caefdbe7
EZ
703 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
704 (find_before_next_newline): Adjust prototypes.
c098fdb8 705
29cdc13e
EZ
706 * editfns.c (transpose_markers, update_buffer_properties)
707 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
708 (get_pos_property, Fconstrain_to_field)
709 (Fline_beginning_position, Fline_end_position, Fprevious_char)
710 (Fchar_after, Fchar_before, Finsert_char)
711 (Finsert_buffer_substring, Fcompare_buffer_substrings)
712 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
713 EMACS_INT for buffer and string position variables.
c098fdb8 714 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
715
716 * lisp.h (clip_to_bounds): Adjust prototype.
717
e79123aa
EZ
718 * intervals.c (traverse_intervals, rotate_right, rotate_left)
719 (balance_an_interval, split_interval_right, split_interval_left)
720 (find_interval, next_interval, update_interval)
721 (adjust_intervals_for_insertion, delete_node, delete_interval)
722 (interval_deletion_adjustment, adjust_intervals_for_deletion)
723 (offset_intervals, merge_interval_right, merge_interval_left)
724 (graft_intervals_into_buffer, adjust_for_invis_intang)
725 (move_if_not_intangible, get_local_map, copy_intervals)
726 (copy_intervals_to_string, compare_string_intervals)
727 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 728 and for interval tree size.
e79123aa
EZ
729
730 * intervals.h (traverse_intervals, split_interval_right)
731 (split_interval_left, find_interval, offset_intervals)
732 (graft_intervals_into_buffer, copy_intervals)
733 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
734 (update_interval): Adjust prototypes.
735
579c18d0
EZ
736 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
737 Use EMACS_INT for buffer position variables and arguments.
738
739 * composite.c (get_composition_id, find_composition)
740 (run_composition_function, compose_text)
741 (composition_gstring_width, autocmp_chars)
742 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
743 for buffer positions and string length variables and arguments.
744
745 * composite.h (get_composition_id, find_composition, compose_text)
746 (composition_gstring_width): Adjust prototypes.
747
748 * editfns.c (Fformat): Use EMACS_INT for string size variables.
749
750 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
751 EMACS_INT for string positions.
752
753 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
754 position arguments.
755
756 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
757
758 * character.c (parse_str_as_multibyte, str_as_multibyte)
759 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
760 (string_count_byte8, string_escape_byte8, c_string_width)
761 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
762 EMACS_INT for string length variables and arguments.
14162469
EZ
763
764 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
765 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
766 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
767 prototypes.
768
579c18d0
EZ
769 * font.c (font_intern_prop): Use EMACS_INT for string length
770 variables.
771
772 * font.c (font_intern_prop): Use EMACS_INT for string length
773 variables.
774
14162469
EZ
775 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
776 variables.
777
778 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
779 (Fmake_string): Protect against too large strings.
780 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
781 (live_misc_p): Use ptrdiff_t instead of int for pointer
782 differences.
783 (string_bytes, check_sblock, check_string_free_list)
784 (allocate_string_data, compact_small_strings, Fmake_string)
785 (Fmake_bool_vector, make_string, make_unibyte_string)
786 (make_multibyte_string, make_string_from_bytes)
787 (make_specified_string_string, Fmake_list, Fmake_vector): Use
788 EMACS_INT for string length variables and arguments.
789 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
790 (Fpurecopy): Use EMACS_INT for string size.
791 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
792 for vector size.
793
794 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
795 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
796 (make_pure_string, string_bytes, check_point_in_composition):
797 Adjust prototypes.
14162469 798
c8a66ab8
EZ
7992010-09-22 Eli Zaretskii <eliz@gnu.org>
800
801 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
802 (check_translation): Use EMACS_INT for buffer positions and
803 length.
804
805 * undo.c (record_marker_adjustment, record_delete)
806 (record_change, record_point, record_insert)
807 (record_property_change, Fprimitive_undo): Use EMACS_INT for
808 buffer positions.
809
810 * lisp.h (record_marker_adjustment, record_delete)
811 (record_change, record_point, record_insert)
812 (record_property_change, Fprimitive_undo): Adjust prototypes.
813
38c54d9d
JB
8142010-09-22 Juanma Barranquero <lekktu@gmail.com>
815 Eli Zaretskii <eliz@gnu.org>
816
817 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
818
413d18e7
EZ
8192010-09-22 Eli Zaretskii <eliz@gnu.org>
820
821 * minibuf.c (Fminibuffer_contents)
822 (Fminibuffer_contents_no_properties)
823 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
824 positions.
825
826 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
827 mark.
828
829 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
830 (allocate_string_data): Accept EMACS_INT for string length.
831
832 * editfns.c (Ffield_string, Ffield_string_no_properties)
833 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
834 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
835 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
836 (Ffield_end): Use EMACS_INT for buffer positions.
837
838 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
839 point with mark.
840
841 * lisp.h (allocate_string_data, make_uninit_string)
842 (make_uninit_multibyte_string, make_buffer_string)
843 (make_buffer_string_both): Adjust prototypes.
844
4b9832a6
CY
8452010-09-22 Chong Yidong <cyd@stupidchicken.com>
846
847 * xml.c: Switch to GNU indentation.
848 (make_dom): Change parse tree format to match xml.el.
849 (Fxml_parse_html_string_internal): Rename from html-parse-string.
850 (Fxml_parse_string_internal): Rename from xml-parse-string.
851
86282aab
KH
8522010-09-22 Kenichi Handa <handa@m17n.org>
853
854 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
855 only if we are not at a composition.
856 (set_iterator_to_next): Give it->end_charpos to
857 composition_compute_stop_pos.
858 (set_iterator_to_next, next_element_from_buffer): Likewise.
859
860 * dispnew.c (buffer_posn_from_coords): Fix position when the
861 current display element is a grapheme cluster in bidi-reordered
862 region.
863
840b985a
AR
8642010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
865
866 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
867 the regions may overlap.
868
5bc88f4b
JB
8692010-09-21 Juanma Barranquero <lekktu@gmail.com>
870
871 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
872
92bc9a36
DN
8732010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
874
d19e096e
DN
875 * emacs.c: Do not include sys/ioctl.h, not needed.
876
92bc9a36
DN
877 * doprnt.c: Do not include stdlib.h, config.h does it.
878 Move #include before macro definition.
879
15f844ac
DN
8802010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
881
48e24408
DN
882 * Makefile.in (temacs): Link using $(CC) not $(LD).
883 (LD_FIRSTFLAG): Define using autoconf.
884 (LD): Remove.
885
65539506
DN
886 Remove HAVE_TERMIOS definitions.
887 * s/usg5-4-common.h (HAVE_TERMIOS):
888 * s/template.h (HAVE_TERMIOS):
889 * s/gnu-linux.h (HAVE_TERMIOS):
890 * s/darwin.h (HAVE_TERMIOS):
891 * s/cygwin.h (HAVE_TERMIOS):
892 * s/bsd-common.h (HAVE_TERMIOS):
893 * s/aix4-2.h (HAVE_TERMIOS):
894 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
895 defined on all non-MS platforms.
896 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
897
15f844ac
DN
898 * xterm.c (xt_action_hook): Use const.
899
7d701334
JB
9002010-09-20 Juanma Barranquero <lekktu@gmail.com>
901
902 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
903 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
904 (gethostname) [!HAVE_SOCKETS]: Remove.
905 (SOCK_REPLACE_HANDLE): Remove macro.
906 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
907 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
908 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
909 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
910
f3ec267a
EZ
9112010-09-18 Eli Zaretskii <eliz@gnu.org>
912
913 * deps.mk (xml.o): Add dependencies.
914
93acd23d
JB
915 * xdisp.c (Fcurrent_bidi_paragraph_direction):
916 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
917
918 * bidi.c (bidi_paragraph_init): Accept an additional argument
919 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
920 search back until a paragraph with a strong directional character
921 is found, and use that to determine paragraph's base direction.
922
923 * dispextern.h (bidi_paragraph_init): Update prototype.
924
69e847be
EZ
9252010-09-17 Eli Zaretskii <eliz@gnu.org>
926
927 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
928 of w32api >= 3.15. (Bug#6989)
929
283357a7
LMI
9302010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
931
932 * process.c (wait_reading_process_output): Don't message about
933 accept-process-output unless the time limit really is zero.
934
4ddb20d6
SM
9352010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
936
937 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
938 int/Lisp_Object mixup).
939
e24ad6dd
J
9402010-09-17 Jan Djärv <jan.h.d@swipnet.se>
941
942 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
943 not HELP.
944
fb0cf781
J
9452010-09-17 Stephen Berman <stephen.berman@gmx.net>
946
947 * frame.c (Ftool_bar_pixel_width): New function to expose tool
948 bar's pixel width to Lisp (Bug#7048).
949
4ddb20d6
SM
9502010-09-14 Juanma Barranquero <lekktu@gmail.com>
951
952 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 953
318a04c6
J
9542010-09-17 Jan Djärv <jan.h.d@swipnet.se>
955
956 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
957 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
958
78a21772
KH
9592010-09-17 Kenichi Handa <handa@m17n.org>
960
961 * ftfont.c (ftfont_check_otf): Fix previous change.
962
fa3f6039
KH
9632010-09-14 Kenichi Handa <handa@m17n.org>
964
965 * ftfont.c (ftfont_check_otf): Fix the case of checking just
966 existence of GSUB or GPOS.
967
2b5491fa
JB
9682010-09-14 Juanma Barranquero <lekktu@gmail.com>
969
970 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
971
c97c655f
LMI
9722010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
973
2b5491fa 974 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
975 what it does.
976 (parse_string): Return nil when the document can't be parsed.
977
6664fc59 9782010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
979
980 * xterm.c (get_current_vm_state): New function.
981 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
982 want_fullscreen so set_wm_state calls are few (Bug#7013).
983 (x_handle_net_wm_state): Move code to get_current_vm_state and
984 call that function.
985
6664fc59 9862010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
987
988 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
989
6664fc59 9902010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
991
992 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
993 we may use designation or locking-shift.
994
6664fc59 9952010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
996
997 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
998 sequence when the source is multibyte.
999
1da70e99
AS
10002010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1001
6664fc59
JB
1002 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1003 Don't make first argument optional. Doc fix.
1da70e99 1004
26632d8d
LMI
10052010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1006
1007 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1008 parameters for the doc string.
1009
21fa8e37
LMI
10102010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1011
1012 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1013
5616cc54
SM
10142010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1015
1016 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1017 (syms_of_fns): Don't defsubr Sy_or_n_p.
1018 * lisp.h: Don't declare Fy_or_n_p.
1019 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1020
381408e2
LMI
10212010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1022
1023 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1024
10252010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1026
1027 * xml.c: New file.
1028 (Fhtml_parse_buffer): New function to interface to the libxml2
1029 html parsing function.
1030
733946e7
JB
10312010-09-05 Juanma Barranquero <lekktu@gmail.com>
1032
1033 * biditype.h: Regenerate.
1034
7574650a
AS
10352010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1036
1037 * nsimage.m (ns_load_image): Check argument types.
1038
1039 * image.c: Remove all uses of gcpro.
1040 (xpm_load): Check all lisp types.
1041 (pbm_load): Likewise.
1042 (png_load): Likewise.
1043 (jpeg_load): Likewise.
1044 (tiff_load): Likewise.
1045 (gif_load): Likewise.
1046 (imagemagick_load_image): Likewise.
1047 (imagemagick_load): Likewise.
1048 (svg_load): Likewise.
1049 (gs_load): Likewise.
1050
6e6b8e25
EZ
10512010-09-04 Eli Zaretskii <eliz@gnu.org>
1052
1053 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1054 try to reorder grapheme clusters, since LGSTRING should always
1055 hold them in the logical order.
1056 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1057 return glyph codes in the logical order.
1058
dbfe4532
AS
10592010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1060
1061 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 1062 (imagemagick_load_image): Fix type mismatch.
5e5992c2 1063 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 1064
6d7cc563
JD
10652010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1066
1067 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1068
1069 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1070
1071 * xselect.c: Remove declaration of cut-buffer objects and functions.
1072 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1073 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1074 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1075 (Fx_rotate_cut_buffers_internal): Remove.
1076 (syms_of_xselect): Remove defsubr of above.
1077 Remove intern of QCUT_BUFFERn.
1078
8f4e9110
SM
10792010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1080
1081 * cmds.c (Vblink_paren_function): Remove.
1082 (internal_self_insert): Make it insert N chars at a time.
1083 Don't call blink-paren-function.
1084 (Fself_insert_command): Adjust accordingly.
1085 (syms_of_cmds): Don't declare blink-paren-function.
1086
d419e1d9
KH
10872010-08-31 Kenichi Handa <handa@m17n.org>
1088
1089 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1090 characters.
1091
1092 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
1093 (produce_glyphs): Don't set it->char_to_display here.
1094 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
1095 (produce_special_glyphs): Set temp_it.char_to_display before
1096 calling produce_glyphs.
1097
1098 * xdisp.c (get_next_display_element): Set it->char_to_display
1099 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1100 characters.
1101 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1102 calling PRODUCE_GLYPHS.
1103 (append_space_for_newline): Save and store it->char_to_display.
1104 Set it->char_to_display before calling PRODUCE_GLYPHS.
1105 (extend_face_to_end_of_line): Set it->char_to_display before
1106 calling PRODUCE_GLYPHS.
1107 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1108 character to its byte value.
1109 (get_char_glyph_code): New function.
1110 (produce_stretch_glyph): Set it2.char_to_display too before
1111 calling x_produce_glyphs.
1112 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1113 non-ASCII characters. Don't set it->char_to_display here.
1114 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1115 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1116
b819f760
SM
11172010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1118
1119 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1120
07fa68a7
CY
11212010-08-31 Chong Yidong <cyd@stupidchicken.com>
1122
1123 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1124
cd196f12
SM
11252010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1126
1127 * marker.c (Fcopy_marker): Make the first arg optional.
1128
49a752bb
KH
11292010-08-30 Kenichi Handa <handa@m17n.org>
1130
1131 * composite.c (composition_update_it): Fix computing of
1132 cmp_it->width.
1133
769ae9e1
KH
11342010-08-29 Kenichi Handa <handa@m17n.org>
1135
9e69cb05 1136 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1137 corresponding bytes.
9e69cb05 1138
4520b858
J
11392010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1140
1141 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1142
fe50eb41
KH
11432010-08-26 Kenichi Handa <handa@m17n.org>
1144
1145 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1146 on calling composition_compute_stop_pos.
1147
f6aa6ec6
KH
11482010-08-25 Kenichi Handa <handa@m17n.org>
1149
9dfdbc0a
KH
1150 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1151 :otf.
1152
f6aa6ec6
KH
1153 * composite.c (composition_compute_stop_pos): Don't break
1154 composition at PT.
1155 (composition_reseat_it): Likewise. Fix calculation of character
1156 position starting a composition.
1157 (Fcomposition_get_gstring): Don't limit the number of components
1158 for automatic composition.
1159
ff94e32c
KH
11602010-08-25 Kenichi Handa <handa@m17n.org>
1161
1162 * composite.c (composition_compute_stop_pos): In forward search,
1163 pay attention to the possibility that some character after ENDPOS
1164 will be composed with charactrs before ENDPOS.
1165
1c409d0b
CY
11662010-08-24 Chong Yidong <cyd@stupidchicken.com>
1167
1168 * keyboard.c (command_loop_1): Don't clobber primary selection
1169 during handle-switch-frame (Bug#6872).
1170
0c372655
MA
11712010-08-23 Michael Albinus <michael.albinus@gmx.de>
1172
1173 * dbusbind.c: Accept UNIX domain sockets as bus address.
1174 (Fdbus_close_bus): New function.
1175 (Vdbus_registered_buses): New variable.
1176 (xd_initialize): Implement string as bus address.
1177 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1178 (Fdbus_get_unique_name, Fdbus_call_method)
1179 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1180 (Fdbus_method_error_internal, Fdbus_send_signal)
1181 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1182 check. This is done in xd_initialize_bus. Adapt doc string, if
1183 necessary.
1184 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1185 Vdbus_registered_buses.
1186 (Vdbus_registered_objects_table): Create hash.
1187
7133b7ee
JL
11882010-08-22 Juri Linkov <juri@jurta.org>
1189
1190 * keyboard.c (Fexecute_extended_command): Move reading a command name
1191 with `completing-read' to a new Elisp function `read-extended-command'.
1192 Call it to read a command to `function' (bug#5364, bug#5214).
1193
198a7a97
CY
11942010-08-22 Chong Yidong <cyd@stupidchicken.com>
1195
1196 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1197
b0126eac 11982010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1199
1200 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1201 instead of SAFE_ALLOCA.
1202
b0126eac 12032010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1204
1205 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1206 (Bug#6214).
1207
b0126eac 12082010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1209
1210 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1211
b0126eac
CY
12122010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1213
1214 * doc.c (Fsnarf_documentation): Initialize skip_file before
1215 build-files test.
1216
692f3ddc 12172010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1218
692f3ddc
JB
1219 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1220 New definitions.
b0126eac
CY
1221 (HAVE_TERMIO): Remove.
1222
5f2f0bc1
EZ
12232010-08-22 Eli Zaretskii <eliz@gnu.org>
1224
b613941b
EZ
1225 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1226
a583bbef
EZ
1227 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1228 for w32.
1229
1230 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1231 it's done in nt/config.nt.
1232
1233 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1234
5f2f0bc1
EZ
1235 * unexcoff.c (report_error, make_hdr, write_segment)
1236 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1237 Convert argument lists and prototypes to ANSI C.
1238 (make_hdr, write_segment): Remove unused variables.
1239 (unexec): Remove commented-out line. Initialize `new' to shut up
1240 compiler warnings.
1241
a7ebc409
DN
12422010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1243
1244 Simplify termio code.
1245 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1246 HAVE_TERMIO code is obsolete.
1247 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1248 * systty.h: Do not define HAVE_TCATTR.
1249 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1250 Do not define EMACS_HAVE_TTY_PGRP. Only define
1251 EMACS_GET_TTY_PGRP for !DOS_NT.
1252 * sysdep.c: Include sysselect.h unconditionally. Do not include
1253 sys/ioctl.h and termios.h, systty.h does it. Use
1254 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1255 (init_baud_rate): Remove HAVE_TERMIO code.
1256 (child_setup_tty): Remove HAVE_TERMIO code.
1257 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1258 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1259 (new_ltchars, new_tchars): Remove, unused.
1260 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1261 code. Remove special casing for __mips__, it was a no-op. Remove
1262 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1263 (init_sys_modes): Remove HPUX special case.
1264 * process.c: Include stdlib.h unconditionally. Do not include
1265 fcntl.h, systty.h does it. Remove conditional code for
1266 HAVE_SERIAL, it is always true.
1267 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1268 always true when SIGNALS_VIA_CHARACTERS is true.
1269 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1270 !WINDOWSNT means HAVE_TERMIOS.
1271 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1272 conditional, which is true for all HAVE_TERMIOS systems.
1273 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1274 instead of HAVE_TERMIOS.
1275 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1276 EMACS_HAVE_TTY_PGRP.
1277 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1278 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1279 anyway.
1280
40629f17
EZ
12812010-08-21 Eli Zaretskii <eliz@gnu.org>
1282
1283 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1284 mirroring pixel positions.
1285
d931da8c
DN
12862010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1287
b5c76d0c
DN
1288 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1289 write only.
1290 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1291 malloc_sbrk_used, nothing uses them.
1292
74815588
DN
1293 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1294 defined, unconditionally defined in lisp.h.
1295
f5817d1c
DN
1296 * term.c: Do not include <termios.h>, systty.h does it.
1297
d931da8c
DN
1298 * s/unixware.h (HAVE_TCATTR):
1299 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1300 systty.h defines it when HAVE_TERMIOS is defined.
1301
ff2de6d2 13022010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1303
b43c883c 1304 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1305 terminals: add one-character offset for R2L lines.
b43c883c 1306
491a1546
EZ
1307 * emacs.c <emacs_version>: Add a comment regarding
1308 msdos/mainmake.v2's dependency on the syntax of this declaration.
1309
2396cbba
EZ
13102010-08-20 Eli Zaretskii <eliz@gnu.org>
1311
1312 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1313 position for R2L lines by mirroring the pixel position wrt the
1314 text are box. Improve commentary.
1315
7df6150a
AS
13162010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1317
1318 * image.c (imagemagick_clear_image): Remove debugging output.
1319
a2e5caf7
SM
13202010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1321
1322 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1323 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1324 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1325 self-insert-face.
1326 (syms_of_cmds): Initialize the new vars.
1327
20d60baf
JR
13282010-08-19 Jason Rumney <jasonr@gnu.org>
1329
cc477da7
JR
1330 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1331
20d60baf
JR
1332 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1333
2c0ac867
J
13342010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1335
1336 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1337
93352106
EZ
13382010-08-18 Eli Zaretskii <eliz@gnu.org>
1339
1340 * xterm.c (x_draw_bar_cursor):
1341 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1342 R2L, draw the bar cursor on its right rather than on its left.
1343
c785836d
SM
13442010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1345
0193499f
SM
1346 * eval.c (Fdefmacro): Only obey one declaration.
1347
c785836d
SM
1348 * casefiddle.c (casify_region): Setup gl_state.
1349
9cb728a5
J
13502010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1351
1352 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1353
e1e18511
J
13542010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1355
1d77b63e 1356 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1357
64cb6c78
J
13582010-08-18 David De La Harpe Golden <david@harpegolden.net>
1359
1360 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1361 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1362 QPRIMARY => NXPrimaryPboard.
1363 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1364 NXPrimaryPboard => QPRIMARY.
1365 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1366 NXSecondaryPboard = SecondarySelection.
1367 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1368
0c9b8993
GM
13692010-08-18 Joakim Verona <joakim@verona.se>
1370
1371 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1372 defined:
1373 (imagemagick_image_p): New function to test for ImageMagic image.
1374 (imagemagick_load): New function to load ImageMagick image.
1375 (imagemagick_load_image): New function, helper for imagemagick_load.
1376 (imagemagick-types): New function.
1377 (Qimagemagick): New Lisp_object.
1378 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1379
c3554f68
SM
13802010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1381
1382 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1383 is a string.
1384
1ff2e434
J
13852010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1386
1387 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1388 x_set_tool_bar_position handler.
1389
0cc56427
EZ
13902010-08-17 Eli Zaretskii <eliz@gnu.org>
1391
1392 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1393 x_set_tool_bar_position handler, needed to support changes from
1394 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1395
e45a249b
JD
13962010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1397
921242c6
J
1398 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1399 declaration (Bug#6863).
573d150b 1400 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1401
e45a249b
JD
1402 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1403
1404 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1405
7c23dd44
CY
14062010-08-16 Chong Yidong <cyd@stupidchicken.com>
1407
1408 * keyboard.c (command_loop_1): Avoid setting selection twice,
1409 since it's done in deactivate-mark as well.
1410 (Vselect_active_regions): Change default to t. Replace `lazy'
1411 with non-default value `only', meaning only set PRIMARY for
1412 temporarily active regions.
1413
1414 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1415 select-active-regions.
1416
0005830c
J
14172010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1418
1419 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1420 isn't a string.
1421
603dfc72
AS
14222010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1423
1424 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1425
c25ce9d0
J
14262010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1427
c3554f68
SM
1428 * keyboard.c (parse_tool_bar_item): malloc buf.
1429 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1430 new_lbl (Bug#6855).
c25ce9d0 1431
5872c762
EZ
14322010-08-14 Eli Zaretskii <eliz@gnu.org>
1433
b236615c
EZ
1434 * xterm.c (x_draw_stretch_glyph_string):
1435 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1436 the cursor on the right edge of the stretch glyph.
1437
c3554f68
SM
1438 * xdisp.c (window_box_right_offset, window_box_right):
1439 Fix commentary.
b236615c 1440
5872c762
EZ
1441 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1442 direction when point is inside a run of whitespace characters.
1443
1444 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1445
e66f9a1b
JR
14462010-08-14 Jason Rumney <jasonr@gnu.org>
1447
1448 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1449
79d6f59e
CY
14502010-08-14 Chong Yidong <cyd@stupidchicken.com>
1451
1452 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1453
1c9b4129
JR
14542010-08-13 Jason Rumney <jasonr@gnu.org>
1455
1456 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1457 (MessageBoxW_Proc): New function typedef.
1458 (unicode-message-box): New function pointer.
1459 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1460
2b4e6277
J
14612010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1462
1463 * frame.h (Qtool_bar_position): Declare.
1464
1465 * xfns.c (Fx_create_frame): Call x_default_parameter for
1466 Qtool_bar_position.
1467
94c97d85
EZ
14682010-08-13 Eli Zaretskii <eliz@gnu.org>
1469
8ee81892
EZ
1470 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1471 (report_error, report_error_1): Ditto.
1472 (write_segment): Remove "#if 0" unused code.
1473 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1474 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1475 (start_of_text): Remove unused function (was used only if NO_REMAP
1476 was NOT defined).
1477
891ef8f7
EZ
1478 * msdos.c (IT_set_face): Fix format string to match argument
1479 types.
1480 (IT_write_glyphs, IT_note_mode_line_highlight)
1481 (IT_set_frame_parameters): Remove unused variables.
1482 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1483 (IT_set_terminal_modes): Disambiguate expression in if clause.
1484 (Fmsdos_remember_default_colors): Return Qnil.
1485 (IT_set_frame_parameters): Add parens to disambiguate boolean
1486 expression for logging the cursor type to termscript.
1487 (keyboard_layout_list, keypad_translate_map)
1488 (grey_key_translate_map): Add braces in inner initializers.
1489 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1490 (dos_rawgetc): Remove unused label.
1491 (XMenuActivate): Add braces to remove ambiguous `else'.
1492 (dos_ttraw): Always return a value.
1493 (spawnve): Declare.
1494 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1495
1496 * dosfns.h (x_set_title): Declare.
1497
1498 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1499 Remove unused variables.
1500
1501 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1502 variables.
1503 (init_dosfns): Declare get_lim_data.
1504 (system_process_attributes): Declare Fget_internal_run_time.
1505
38e41e0e
EZ
1506 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1507 list to be consistent with menu.h.
1508
94c97d85
EZ
1509 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1510 warnings due to mixing of "char *" and "const char *".
1511
c5683ceb
SM
15122010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 Introduce a new comment style "c" flag.
1515 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1516 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1517 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1518 (syntax_prefix_flag_p): New function.
1519 (Fstring_to_syntax): Understand new "c" flag.
1520 (Finternal_describe_syntax_value): Recognize new flag; use the
1521 SYNTAX_FLAGS_* macros.
1522 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1523 comment style to accomodate the new styles.
1524 (back_comment, forw_comment, Fforward_comment, scan_lists)
1525 (scan_sexps_forward): Update code to obey the new comment style flag.
1526
1527 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1528
1529 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1530
7aee76f4
J
15312010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1532
3a46642b
J
1533 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1534 first.
94dff98f 1535 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1536
1537 * gtkutil.h (xg_check_special_colors): Declare.
1538
1539 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1540 (xg_create_frame_widgets): Connect theme name changes to
1541 style_changed_cb.
1542
42ca4633
J
1543 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1544 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1545 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1546 string literal. file is const char*.
42ca4633
J
1547
1548 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1549 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1550 props. Free them at the end.
1551
1552 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1553
c5683ceb
SM
1554 * xrdb.c (get_system_app): Make path const and use char *p for
1555 non-const char.
42ca4633
J
1556
1557 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1558 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1559 char *.
1560 (button_names): Is const char *.
1561 (xdialog_show): error_name and pane_string is const.
1562
1563 * process.h (synch_process_death): Is const char*.
1564
1565 * w32menu.c (w32_menu_show):
1566 * nsmenu.m (ns_menu_show): error parameter is const char **.
1567
1568 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1569 is const char **.
1570
1571 * menu.c (Fx_popup_menu): error_name is const.
1572
1573 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1574 with unsigned char and XtPointer with void *.
1575
1576 * gtkutil.h: Replace widget_value with struct _widget_value.
1577 (enum button_type, struct _widget_value): Remove and use the one from
1578 keyboard.h.
1579
1580 * gtkutil.c (get_utf8_string): Always return an allocated string.
1581 Parameter is const.
1582 (create_dialog, xg_create_one_menuitem, create_menus)
1583 (xg_item_label_same_p, xg_update_menu_item): Free result from
1584 get_utf8_string.
1585 (xg_separator_p, xg_item_label_same_p): label is const.
1586
1587 * font.h (font_open_by_name): Make name const.
1588
1589 * font.c (font_open_by_name): Make name const.
1590
1591 * floatfns.c (matherr): Use a const char* variable for x->name.
1592
1593 * emacs.c (main): Pass char[] to putenv instead of literal.
1594
1595 * callproc.c (synch_process_death): Make const.
1596 (Fcall_process): Make signame const.
1597
9c5bd55a
J
1598 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1599 (addDisplayItemWithImage): Use const char*.
1600
1601 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1602 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1603
1604 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1605
1606 * keyboard.h (_widget_value): name, value and key are const char*.
1607
7aee76f4
J
1608 * unexmacosx.c (unexec_error): Use const char *.
1609
09d93395
DN
16102010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1611
1612 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1613 (font_parse_name, font_open_by_name):
09d93395 1614 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1615 (font_parse_name, font_open_by_name): Remove const.
09d93395 1616
671d409f
AS
16172010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1618
1619 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1620 definition.
1621
1622 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1623 * m/amdx86-64.h: Likewise.
1624 * m/arm.h: Likewise.
1625 * m/hp800.h: Likewise.
1626 * m/ia64.h: Likewise.
1627 * m/ibmrs6000.h: Likewise.
1628 * m/ibms390.h: Likewise.
1629 * m/intel386.h: Likewise.
1630 * m/iris4d.h: Likewise.
1631 * m/m68k.h: Likewise.
1632 * m/macppc.h: Likewise.
1633 * m/mips.h: Likewise.
1634 * m/sh3.h: Likewise.
1635 * m/sparc.h: Likewise.
1636 * m/template.h: Likewise.
1637 * m/vax.h: Likewise.
1638 * m/xtensa.h: Likewise.
1639 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1640 WORDS_BIG_ENDIAN.
1641 * lisp.h: Likewise.
1642 * md5.c: Likewise.
1643 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1644
8ea90aa3
DN
16452010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1646
1647 Use const char* instead of char*.
1648 Reduce the number of warnings with -Wwrite-strings.
1649 * xrdb.c (get_environ_db, get_system_name):
1650 * unexelf.c (find_section):
1651 * term.c (string_cost, string_cost_one_line, per_line_cost)
1652 (get_named_tty, init_tty):
1653 * sysdep.c (sys_subshell):
1654 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1655 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1656 * search.c (Freplace_match):
1657 * process.c (Fmake_network_process, send_process, init_process):
1658 * lread.c (Fload, init_lread):
1659 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1660 * keyboard.c (parse_tool_bar_item, struct event_head):
1661 * gtkutil.h (xg_get_font_name):
1662 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1663 (make_widget_for_menu_item, make_menu_item, create_menus)
1664 (xg_make_tool_item):
1665 * font.c (parse_matrix, font_parse_name):
1666 * floatfns.c (rounding_driver, float_error_fn_name):
1667 * filelock.c (get_boot_time_1, lock_file_1):
1668 * fileio.c (barf_or_query_if_file_exists, check_writable):
1669 * editfns.c (get_system_name, get_operating_system_release)
1670 (Fencode_time, Fset_time_zone_rule):
1671 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1672 * buffer.c (defvar_per_buffer): Use const.
1673
7815fe19 16742010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1675
692f3ddc 1676 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1677 (struct charset_sort_data): New struct.
1678 (charset_compare): New function.
692f3ddc 1679 (Fsort_charsets): New function.
7a84eee5
KH
1680 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1681
1682 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1683 number in CTEXT extended segment.
1684
7815fe19 16852010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1686
1687 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1688 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1689
7815fe19 16902010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1691
1692 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1693 (Fhash_table_size): Fix typos in docstrings.
1694 (Fmake_hash_table): Doc fix.
1695
7815fe19 16962010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1697
1698 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1699 Doc fix (bug#5625).
1700
7815fe19 17012010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1702
1703 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1704 the MSDOS definition.
1705
1b6d8cf0
DN
17062010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1707
675e2c69
DN
1708 Use const char* instead of char*.
1709 * xterm.c (x_create_toolkit_scroll_bar):
1710 * xfont.c (xfont_list_pattern):
1711 * xfns.c (x_default_scroll_bar_color_parameter)
1712 (xic_create_fontsetname, x_default_font_parameter)
1713 (x_screen_planes):
1714 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1715 (store_mode_line_string, decode_mode_spec, display_string):
1716 * menu.c (digest_single_submenu):
1717 * keymap.h (initial_define_key, initial_define_lispy_key):
1718 * keymap.c (initial_define_key, initial_define_lispy_key):
1719 * image.c (image_error, image_keyword):
1720 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1721 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1722 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1723 (ftfont_list, ftfont_match):
1724 * frame.c (frame_parm_table):
1725 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1726 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1727 (font_add_log, font_deferred_log):
1728 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1729 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1730 (font_add_log, font_deferred_log):
1731 * emacs.c (argmatch):
1732 * dispextern.h (struct it):
1733 * coding.c (ENCODE_DESIGNATION):
1734 * charset.c (define_charset_internal): Use const.
1735
25717ca1
DN
1736 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1737
c5683ceb
SM
1738 * xrdb.c: Remove include guard.
1739 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1740 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1741 realloc->xrealloc instead of using #defines.
1742
efb41e21
EZ
17432010-08-08 Eli Zaretskii <eliz@gnu.org>
1744
cd21226d 1745 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1746 * editfns.c (Fline_beginning_position, Fline_end_position):
1747 State in the doc strings that start and end of line are in the
1748 logical order.
cd21226d 1749
efb41e21
EZ
1750 * xdisp.c (display_line): Move the handling of overlay arrow after
1751 the call to find_row_edges. (Bug#6699)
1752
746812d9
CY
17532010-08-07 Chong Yidong <cyd@stupidchicken.com>
1754
1755 * keyboard.c (command_loop_1):
1756 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1757
9852377f
CY
17582010-08-07 Chong Yidong <cyd@stupidchicken.com>
1759
1760 * insdel.c (prepare_to_modify_buffer): Save active region text to
1761 Vsaved_region_selection.
1762
1763 * xselect.c (QPRIMARY): Move to keyboard.c.
1764
1765 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1766 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1767 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1768
0e9c8657
JB
17692010-08-07 Juanma Barranquero <lekktu@gmail.com>
1770
1771 * alloc.c (lisp_malloc):
1772 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1773 * charset.h (emacs_mule_charset):
1774 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1775 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1776 (bitch_at_user):
1777 * lisp.h (Fcheck_coding_system, Fget_text_property)
1778 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1779 Remove duplicate declarations.
1780
648801d1
DN
17812010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1782
32bc6709
DN
1783 * process.c: Simplify include logic.
1784
3ef1d108
DN
1785 * keyboard.h (quit_char): Add declaration.
1786 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1787 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1788 Add declarations.
3ef1d108
DN
1789 * sysdep.c:
1790 * w32.c: Remove the above declarations.
1791
97ec208f
DN
1792 Remove extern declarations in .c files, .h files have them.
1793 * xterm.c:
1794 * xdisp.c:
97ec208f
DN
1795 * msdos.c:
1796 * image.c:
1797 * gtkutil.c:
1798 * fileio.c:
1799 * eval.c: Remove declarations.
1800
94eed851
DN
1801 * frame.c (frame_params): Make const.
1802
36e053eb
DN
1803 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1804
0e843971
DN
1805 * emacs.c (emacs_copyright, emacs_version): Make static.
1806 (Vinitial_window_system, Vauto_save_list_file_name)
1807 (Vinhibit_redisplay): Remove declarations.
1808 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1809 for AIX.
1810
648801d1
DN
1811 Use const for some arrays and functions.
1812 * xterm.h (xg_set_icon_from_xpm_data):
1813 * xfns.c (xg_set_icon_from_xpm_data):
1814 * term.c (fkeys):
1815 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1816 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1817 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1818 (frame.c frame_parms):
1819 * emacs-icon.h (gnu_xpm_bits):
1820 * callint.c (callint_argfuns): Use const.
1821
8646d999
J
18222010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1823
1824 * sysdep.c: Move include term.h last of includes (Bug#6812).
1825
cb4545ad
EZ
18262010-08-06 Eli Zaretskii <eliz@gnu.org>
1827
1828 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1829
1830 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1831
1832 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1833
da7e2be6
JB
18342010-08-06 Juanma Barranquero <lekktu@gmail.com>
1835
1836 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1837
3d608a86
J
18382010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1839
7908fb60
J
1840 * xterm.h (x_get_focus_frame): Declare.
1841
1842 * keyboard.h (poll_for_input_1): Unconditionally declare.
1843
4094bf36
J
1844 * nsterm.h (x_set_menu_bar_lines): Declare.
1845
1846 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1847
3d608a86
J
1848 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1849
1850 * window.c: Include menu.h.
1851
1852 * unexmacosx.c (print_region_list, print_regions)
1853 (build_region_list, find_emacs_zone_regions)
1854 (unexec_regions_merge, read_load_commands, dump_it)
1855 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1856
1857 * term.c: Check HAVE_SYS_IOCTL_H.
1858
686b968e 1859 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1860
686b968e 1861 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1862
1863 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1864 (ns_ring_bell, ns_defined_color, hide_hourglass)
1865 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1866 Convert to ANSI C prototypes.
1867 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1868 before code.
1869
1870 * nsterm.h : Include sysselect.h.
1871 (x_sync, x_get_focus_frame, x_set_mouse_position)
1872 (x_set_mouse_pixel_position, x_make_frame_visible)
1873 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1874 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1875 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1876 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1877 Declare.
3d608a86
J
1878
1879 * nsmenu.m (popup_activated, name_is_separator)
1880 (syms_of_nsmenu): Convert to ANSI C prototypes.
1881 (runMenuAt): Prototypes and move declarations before code.
1882
1883 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1884
1885 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1886 prototypes.
1887
1888 * nsfns.m (have_menus_p, ns_display_info_for_name)
1889 (x_set_cursor_type, ns_appkit_version_str)
1890 (ns_appkit_version_int, ns_do_applescript)
1891 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1892 (syms_of_nsfns): Convert to ANSI C prototypes.
1893
1894 * menu.h (x_set_menu_bar_line): Declare.
1895 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1896
1897 * lisp.h (fmod_float): Declare.
1898
1899 * image.c (xpm_scan, xpm_make_color_table_v)
1900 (xpm_put_color_table_v, xpm_get_color_table_v)
1901 (xpm_make_color_table_h, xpm_put_color_table_h)
1902 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1903 (xpm_load): Convert to ANSI C prototypes.
1904
1905 * emacs.c: Include nsterm.h if HAVE_NS.
1906
1907 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1908
fce70521
DN
19092010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1910
1911 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1912 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1913 (socket_options): Use const char* for name.
1914
a11889ab
JB
19152010-08-06 Juanma Barranquero <lekktu@gmail.com>
1916
1917 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1918
1919 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1920 Don't declare xmalloc_widget_value and digest_single_submenu.
1921
1922 * w32font.c (Qlatin): Remove declaration.
1923
1924 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1925
c95b508f 1926 * dired.c (compile_pattern): Restore declaration.
a11889ab 1927
6254cdda
DN
19282010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1929
04bab72c
DN
1930 Remove extern declarations in .c files, .h files have them.
1931 * data.c:
1932 * dired.c:
1933 * editfns.c:
1934 * filelock.c:
1935 * fns.c:
1936 * font.c:
1937 * fontset.c:
1938 * frame.c:
1939 * fringe.c:
1940 * ftfont.c:
1941 * gtkutil.c:
1942 * indent.c:
1943 * keyboard.c:
1944 * keymap.c:
1945 * lread.c:
1946 * menu.c:
1947 * print.c:
1948 * search.c:
1949 * sound.c:
1950 * window.c:
1951 * xdisp.c:
1952 * xfaces.c:
1953 * xfns.c:
1954 * xfont.c:
1955 * xftfont.c:
1956 * xmenu.c:
1957 * xterm.c: Remove declarations.
1958
dff94ed5
DN
1959 Cleanup syssignal.h.
1960 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1961 (main_thread): Move down to remove #ifdef.
1962 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1963 Remove conditional definition following unconditional ones.
1964
99f3388e
DN
1965 * lisp.h: Remove HAVE_SHM code, unused.
1966 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1967 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1968 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1969 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1970 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1971 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1972 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1973 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1974 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1975 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1976 (Qwindow_scroll_functions, Vafter_load_alist)
1977 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1978 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1979 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1980 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1981 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1982 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1983 (initial_argv, last_nonmenu_event, load_in_progress)
1984 (noninteractive_need_newline, scroll_margin): Add declarations.
1985
1986 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1987 declarations, menu.h has them.
1988 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1989 (Vinput_method_function, Qinput_method_function)
1990 (Qevent_symbol_element_mask, last_event_timestamp):
1991 * dispextern.h (Voverflow_newline_into_fringe):
1992 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1993 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1994 (syms_of_w32font, syms_of_nsfont):
1995 * fontset.h (find_font_encoding, Qlatin):
1996 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1997 (Vtool_bar_mode, set_frame_menubar):
1998 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1999 * xterm.h (Qx_gtk_map_stock):
2000 * keymap.h (meta_prefix_char): Add declarations.
2001
9f5dd6f2
DN
2002 * term.c: Remove dead code.
2003
6254cdda
DN
2004 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2005 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2006 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2007 which is what was there before BSD_PGRPS was removed.
2008
29cf3e20
EZ
20092010-08-05 Eli Zaretskii <eliz@gnu.org>
2010
2011 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2012
2013 * unexcoff.c: Renamed from unexec.c.
2014
aaa0a19a
SM
20152010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2016
2017 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2018
8d1d9587
JB
20192010-08-03 Johan Bockgård <bojohan@gnu.org>
2020
2021 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 2022 (Bug#6744)
8d1d9587 2023
9a747ba6
JD
20242010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2025
4d464ae4
JD
2026 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2027 to TRUE if depth of screen is < 16.
2028
ac01763e
JD
2029 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2030 USE_GTK_TOOLTIP.
e0d62a9b
JB
2031 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2032 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 2033 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
2034 USE_GTK_TOOLTIP.
2035 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2036
2037 * xterm.h (USE_GTK_TOOLTIP): New define.
2038 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2039
9a747ba6
JD
2040 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2041 to Control-D (Bug#6771).
2042
7b0815ba
JB
20432010-08-02 Juanma Barranquero <lekktu@gmail.com>
2044
2045 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2046 Wording by Drew Adams <drew.adams@oracle.com>.
2047
aa1859f5
J
20482010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2049
2050 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2051 ttip_lbl.
2052
2053 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2054 calling gtk_widget_queue_draw.
2055 (x_free_frame_resources): Call xg_free_frame_widgets.
2056
2057 * xfns.c (x_gtk_use_system_tooltips): New variable.
2058 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2059 new gtkutil tooltip functions to show the tooltip.
2060 (Fx_hide_tip): Call xg_hide_tooltip.
2061 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2062
2063 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2064 (xg_show_tooltip, xg_hide_tooltip): Declare.
2065
2066 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
2067 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2068 New functions.
aa1859f5
J
2069 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2070 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2071 Remove code that is commented out.
2072
76417ef4
SM
20732010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2074
2075 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2076
16041401
CY
20772010-07-31 Chong Yidong <cyd@stupidchicken.com>
2078
2079 * xselect.c (x_own_selection): Use list4.
2080
2c09a58f
DN
20812010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2082
2083 * buffer.c (Qwindow): Do not define, already defined in data.c.
2084 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2085
59df9fdd 20862010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 2087
59df9fdd
JB
2088 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2089 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2090 * config.in: Undef HAVE_DIRENT_H.
1c97e857 2091 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 2092 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 2093
1b231651
DN
20942010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2095
2096 Rename s/usg5-4.h -> s/usg5-4-common.h.
2097 * s/usg5-4.h: Rename file to ...
2098 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2099 * s/unixware.h:
2100 * s/sol2-6.h:
2101 * s/irix6-5.h: Update includes accordingly.
2102
bfeabdc3
JD
21032010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2104
2ebf1083
J
2105 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2106
bfeabdc3 2107 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
2108 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2109 Remove toolbar_height.
2110 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
2111 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2112 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2113 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2114
2115 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2116
2117 * xfns.c (x_set_tool_bar_position): New function.
2118 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2119 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2120 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2121
2122 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2123 and FRAME_TOOLBAR_LEFT_WIDTH.
2124
2125 * gtkutil.h (xg_change_toolbar_position): Declare.
2126
2127 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2128 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2129 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2130 (xg_create_frame_widgets): Create a hobox for placing widgets
2131 vertically. Use gtk_box_pack_start.
2132 (xg_height_or_width_changed): Renamed from xg_height_changed.
2133 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2134 (xg_update_frame_menubar, free_frame_menubar): Change to
2135 xg_height_or_width_changed.
2136 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2137 size correctly. Remove hardcoded 4, instead use handlebox size -
2138 toolbar size.
2139 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2140 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2141 (xg_pack_tool_bar): POS is a new parameter.
2142 Set orientation of tool bar based on pos.
2143 Only make handlebox_widget if NULL.
2144 Check if tool bar goes to vbox or hbox depending on pos.
2145 (xg_update_tool_bar_sizes): New function.
686b968e 2146 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2147 height, call xg_update_tool_bar_sizes instead.
2148 (free_frame_tool_bar): Remove from hbox or vbox depending on
2149 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2150 (xg_change_toolbar_position): New function.
2151
2152 * frame.h (struct frame): Add tool_bar_position.
2153 (Qbottom): Declare.
2154
2155 * frame.c (Qtool_bar_position): New variable.
2156 (make_frame): Set tool_bar_position to Qtop.
2157 (frame_parms): Add tool-bar-position.
2158 (x_report_frame_params): Store tool_bar_position.
2159 (x_set_fringe_width): Reset wm size hint after fringe changes.
2160
26469a38
DN
21612010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2162
2163 Make lisp_time_argument declaration work on all systems.
2164 * lisp.h (lisp_time_argument): Move declaration ...
2165 * systime.h (lisp_time_argument): ... here
2166 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2167
8848b728
JD
21682010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2169
2170 * vm-limit.c (POINTER): Add typedef for it.
2171 (start_of_data): Change return type from POINTER to char *.
2172
2173 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2174 HAVE_WINDOW_SYSTEM.
2175
76fd1ee9
DN
21762010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2177
0441987e
DN
2178 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2179 Remove reference to __osf__, unused.
2180
56a000c7
DN
2181 * mem-limits.h: Remove duplicated includes.
2182 (NULL): Remove definition, unused.
2183 (POINTER): Remove definition.
2184 (start_of_data): Use char* in prototype, as the function
2185 definition does.
2186
e6cba650
DN
2187 Remove extern declarations from .c files, and them to .h files.
2188 * keyboard.h (Qhelp_echo, waiting_for_input)
2189 (input_available_clear_time, ignore_mouse_drag_p)
2190 (Vdouble_click_time, real_this_command, Vthis_original_command):
2191 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2192 (Voverriding_local_map_menu_flag):
2193 * lisp.h (Qinteractive_form, use_file_dialog)
2194 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2195 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2196 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2197 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2198 (Qfunction, debug_on_next_call, Qfield)
2199 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2200 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2201 (Qfile_directory_p, Qinsert_file_contents)
2202 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2203 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2204 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2205 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2206 (Qminibuffer_prompt)
2207 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2208 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2209 (gray_bitmap_bits, xic_create_fontsetname):
2210 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2211
2212 * xsmfns.c (Vuser_login_name):
2213 * xrdb.c (Vdouble_click_time):
2214 * xfaces.c (xic_create_fontsetname):
2215 * w32select.c (waiting_for_input):
2216 * print.c (minibuffer_auto_raise):
2217 * msdos.c (Qhelp_echo):
2218 * macros.c (real_this_command):
2219 * keymap.c (Voverriding_local_map):
2220 * xterm.c (poll_for_input_1, gray_bitmap_width)
2221 (gray_bitmap_height, gray_bitmap_bits;
2222 * xmenu.c ( Voverriding_local_map)
2223 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2224 (use_file_dialog, Xt_app_con):
2225 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2226 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2227 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2228 (Qtool_bar_lines, ignore_mouse_drag_p):
2229 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2230 (Qrear_nonsticky, nconc2):
2231 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2232 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2233 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2234 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2235 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2236 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2237 (gc_in_progress):
2238 * doc.c (Voverriding_local_map, Qremap):
2239 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2240 (Vcompletion_regexp_list):
2241 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2242 (Qcompletion_ignore_case):
2243 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2244 (Vhistory_length, Vthis_original_command, real_this_command)
2245 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2246 * image.c (Qrisky_local_variable):
2247 * fontset.c (QCname):
2248 * fns.c (minibuffer_auto_raise, QCname):
2249 * dispnew.c (char_ins_del_cost):
2250 * composite.c (font_fill_lglyph_metrics):
2251 * cmds.c (Qface, Vtranslation_table_for_input):
2252 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2253 * ccl.c (charset_unicode):
2254 * callproc.c (Vtemporary_file_directory):
2255 * buffer.c (emacs_strerror): Remove extern declarations.
2256
2257 * data.c (Qwindow): Make non-static, used from other files too.
2258 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2259
76fd1ee9
DN
2260 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2261 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2262 * s/usg5-4.h (COFF):
2263 * s/template.h:
2264 * s/msdos.h (COFF, NO_REMAP):
2265 * s/ms-w32.h (NO_REMAP):
2266 * s/hpux10-20.h (NO_REMAP):
2267 * m/sparc.h (SEGMENT_MASK):
2268 * m/m68k.h (NO_REMAP):
2269 * m/intel386.h (SEGMENT_MASK):
2270 * m/arm.h (NO_REMAP):
2271 * m/alpha.h (COFF):
2272 * m/template.h: Remove references to unused defines.
2273
8a52f00a
JD
22742010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2275
2276 * xsettings.c (Ftool_bar_get_system_style): Also check for
2277 Qtext_image_horiz.
2278
2279 * xdisp.c (Qtext_image_horiz): Define.
2280 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2281 to documentation of tool-bar-style.
8a52f00a
JD
2282
2283 * lisp.h (Qtext_image_horiz): Declare.
2284
2285 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2286 style text_image_horiz.
2287
89dc303e
DN
22882010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2289
60799703
DN
2290 * emacs.c (Fkill_emacs): Remove return statement.
2291
37254dc1
DN
2292 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2293 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2294 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2295 local extern declarations.
2296
71c7345a
DN
2297 * xmenu.c: Do not included lwlib.h, not needed.
2298
6ba577cb
DN
2299 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2300
fdb183d6
DN
2301 * process.c: Move definitions earlier to minimize #ifdefs.
2302
2303 * xterm.h (x_get_customization_string, x_load_resources)
2304 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2305 (x_check_errors, x_property_data_to_lisp, defined_color)
2306 (xic_set_xfontset, x_defined_color): Use const.
2307
2308 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2309 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2310
2311 * xselect.c (selection_data_to_lisp_data)
2312 (x_property_data_to_lisp):
2313 * xrdb.c (x_get_string_resource, file_p)
2314 (x_get_customization_string, magic_file_p, search_magic_path)
2315 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2316 (x_get_string_resource): Use const.
2317
2318 * xfns.c: Include xlwmenu.h when USE_LUCID.
2319 (x_defined_color, xic_set_xfontset): Use const.
2320 (Fx_hide_tip): Remove local extern declaration.
2321
2322 * xfaces.c (Qmouse_face): Remove declaration.
2323 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2324 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2325
2326 * xdisp.c (do_mouse_tracking): Remove declaration.
2327 (add_to_log): Use const.
2328
2329 * minibuf.c (Qmouse_face): Remove declaration.
2330
2331 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2332
2333 * keyboard.h (do_mouse_tracking): Add declaration.
2334
2335 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2336 (QCdata, QCtype, Qcenter): Remove declarations.
2337
2338 * frame.c (x_get_resource_string, x_get_string_resource)
2339 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2340 (x_default_parameter): Use const.
2341
2342 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2343 (QCheight, QCsize, QCname): Remove declarations.
2344
2345 * emacs.c (main): Remove local extern declaration.
2346
2347 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2348 declarations.
2349
2350 * dispnew.c: Remove duplicate #include <unistd.h>.
2351 (update_window, update_frame_1, init_display): Remove local extern
2352 declarations.
2353
2354 * dispextern.h (add_to_log): Remove declaration.
2355 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2356 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2357
2358 * dired.c (scmp): Add const.
2359 (directory_files_internal): Remove local extern declaration.
2360
2361 * data.c (Finteractive_form): Use const.
2362
2363 * composite.c (syms_of_composite): Remove local extern declarations.
2364
2365 * charset.c (add_to_log): Remove declaration.
2366
2367 * character.c (strwidth, parse_str_to_multibyte): Add const.
2368
2369 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2370
2371 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2372
89dc303e 2373 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2374 (Lisp_Subr): Make doc and intspec constant.
2375 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2376 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2377 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2378 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2379 (display_arg): Add declarations.
89dc303e 2380
0ed082fe 23812010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2382
2383 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2384
0ed082fe
JB
2385 * window.c (Fwindow_height): Doc fix (bug#6518).
2386
23872010-07-27 Juanma Barranquero <lekktu@gmail.com>
2388
2389 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2390
ccaf0336
DN
23912010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2392
977105dc
DN
2393 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2394 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2395 functions.
2396
f5ada890
DN
2397 * frame.h (Qtty_color_mode): Add declaration.
2398
ccaf0336
DN
2399 * lisp.h (Ftop_level, Fexit_recursive_edit)
2400 (Fabort_recursive_edit): Mark as NO_RETURN.
2401
dfe3c90f
KH
24022010-07-26 Kenichi Handa <handa@m17n.org>
2403
2404 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2405 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2406
7d383292
JB
24072010-07-26 Juanma Barranquero <lekktu@gmail.com>
2408
2409 * lread.c (unreadpure, mapatoms_1): Make static.
2410
da31e629
JB
24112010-07-25 Juanma Barranquero <lekktu@gmail.com>
2412
2413 * terminfo.c (tparam): Fix prototype of tparm.
2414
7bfa6d77
AS
24152010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2416
dcc19aac
AS
2417 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2418 find start of text segment.
2419 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2420 is defined.
2421
7bfa6d77
AS
2422 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2423
63f9a672
KB
24242010-07-25 Ken Brown <kbrown@cornell.edu>
2425
2426 * vm-limit.c (check_memory_limits): Fix previous change;
2427 accidentally reverted an earlier change.
2428
24933075
KB
24292010-07-25 Ken Brown <kbrown@cornell.edu>
2430
2431 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2432 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2433
361358ea
JB
24342010-07-25 Juanma Barranquero <lekktu@gmail.com>
2435
2436 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2437 * dired.c (opendir, readdir): Fix prototypes.
2438 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2439 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2440 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2441 (telldir): Remove declaration.
2442 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2443 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2444 * syssignal.h (strsignal): Fix prototype.
2445 * term.c (tparam): Fix prototype.
2446 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2447 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2448 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2449 and __morecore.
2450 * w32gui.h (XParseGeometry): Fix prototype.
2451 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2452 * w32term.c (my_set_focus): Declare inside #if 0.
2453 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2454 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2455 (drain_message_queue, get_next_msg, post_msg, parse_button)
2456 (ClipboardSequence_Proc): Fix prototypes.
2457 (wait_for_sync): Remove declaration.
2458
630b9592
JB
24592010-07-24 Juanma Barranquero <lekktu@gmail.com>
2460
2461 * w32fns.c (w32_to_x_color): Remove, unused.
2462
6a0d6611
AS
24632010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2464
2465 * lisp.h: Remove leftover P_.
2466
4e8608ff
DN
24672010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2468
2469 * ecrt0.c, unexalpha.c: Remove files, unused.
2470
c8197983
AS
24712010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2472
2473 * cmds.c (internal_self_insert): Make static.
2474 * lisp.h (internal_self_insert): Remove declaration.
2475
97b372d7
JB
24762010-07-23 Juanma Barranquero <lekktu@gmail.com>
2477
33ac0414
JB
2478 * alloc.c (free_float):
2479 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2480 * frame.c (delete_frame_handler):
2481 * ralloc.c (reorder_bloc):
2482 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2483 Remove unused static functions.
2484
94da8397
JB
2485 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2486 it is called only from NS code.
2487
2e6c8532
JB
2488 * w32term.c (my_set_focus): #ifdef away; it is called only from
2489 "#ifdef 0" code.
2490
97b372d7
JB
2491 * w32fns.c (x_edge_detection):
2492 * xfaces.c (may_use_scalable_font_p):
2493 Remove obsolete static declarations.
2494
7c3320d8
JB
24952010-07-20 Juanma Barranquero <lekktu@gmail.com>
2496
2497 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2498 (emacs_blocked_realloc, uninterrupt_malloc):
2499 * fringe.c (w32_reset_fringes):
2500 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2501 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2502 * sound.c (be2hs, do_play_sound):
2503 * vm-limit.c (get_lim_data, ret_lim_data):
2504 * w32term.c (x_free_frame_resources):
2505 * xfaces.c (x_create_gc, x_free_gc):
2506 Convert definitions to standard C.
2507
d5273788
SM
25082010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2509
2510 * eval.c (Feval, Ffuncall): Use the new names.
2511
2512 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2513 (DEFUN): Add braces around the union initialisation and use ## to
2514 specify the right union alternative and avoid a cast.
2515
8d16a259
JB
25162010-07-18 Juanma Barranquero <lekktu@gmail.com>
2517
2518 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2519
3b8eff32
CY
25202010-07-17 Chong Yidong <cyd@stupidchicken.com>
2521
2522 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2523
499322ce
J
25242010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2525
2526 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2527 is related to the menu bar (Bug#6499).
a628ad9d 2528 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2529
f6003da5 25302010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2531
2532 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2533
2534 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2535
2536 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2537 i.e. don't put back ButtonRelease (Bug#6608).
2538
2539 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2540 instead of Window. Call xg_event_is_for_menubar when
2541 USE_GTK (Bug#6499).
2542
2543 * gtkutil.h (xg_event_is_for_menubar): Declare.
2544
2545 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2546
f6003da5 25472010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2548
2549 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2550 when it's the same as the old foreground. (Bug#6609)
2551
23243f29
J
25522010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2553
2554 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2555 widget is non-null (Bug#6645).
2556
2b23d2a6
AS
25572010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2558
01b564ff
AS
2559 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2560 Convert old-style definition.
2561
2b23d2a6
AS
2562 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2563 timestamp argument.
2564
c4affd2c
EZ
25652010-07-15 Eli Zaretskii <eliz@gnu.org>
2566
2567 * fringe.c (update_window_fringes): Restore mistakenly reverted
2568 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2569
cf28cebc
J
25702010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2571
2572 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2573 (SET_SAVED_KEY_EVENT): Remove (not used).
2574 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2575 remove size parameter.
2576 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2577 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2578 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2579 ButtonRelease.
6b2c4bd9
J
2580 (x_set_window_size_1): scroll_bar_actual_width is always
2581 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2582
2583 * xdisp.c (pending_menu_activation): Remove extern declaration.
2584 (prepare_menu_bars): Remove setting of pending_menu_activation.
2585
2586 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2587 (x_activate_menubar): Set popup_activated_flag for Xt also.
2588 Remove setting of pending_menu_activation.
cf28cebc
J
2589 (set_frame_menubar): Remove check of pending_menu_activation.
2590 Declare menubar_size before code. Correct spelling in comment.
2591
f6c1c771
KH
25922010-07-14 Kenichi Handa <handa@m17n.org>
2593
2594 * font.c (font_open_entity): Cancel previous change.
2595 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2596
20477505
EZ
25972010-07-13 Eli Zaretskii <eliz@gnu.org>
2598
77defa9a
EZ
2599 Remove subprocesses #ifdefs.
2600 * process.c <inhibit_sentinels>: Move to the common part.
2601 (Fwaiting_for_user_input_p): Move to the common part; return nil
2602 if async subprocesses aren't supported.
2603 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2604 MS-DOS. Remove "#ifdef subprocesses".
2605 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2606 (gettimeofday): Remove "#ifdef subprocesses".
2607 (wait_without_blocking): Remove function.
2608 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2609 Remove "#ifdef subprocesses".
2610 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2611 compiled on MS-DOS.
2612 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2613 wait_for_termination on MS-DOS.
2614 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2615 initialization of inhibit_sentinels.
2616 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2617 subprocesses" conditional.
2618 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2619 wait_for_termination, since `buffer' cannot be an integer when
2620 async subprocesses are not supported
2621 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2622 for ifdefing away the call to Fprocess_status.
2623
20477505
EZ
2624 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2625 away the entire body of the function.
2626
b3ffc17c
DN
26272010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2628
01faa934
DN
2629 Remove subprocesses #ifdefs from term.c.
2630 * process.c (add_keyboard_wait_descriptor)
2631 (delete_keyboard_wait_descriptor): Move to common section, do
2632 nothing when subprocesses is not defined.
a628ad9d
JB
2633 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2634 Remove subprocesses #ifdefs.
01faa934 2635
b3ffc17c
DN
2636 Convert maybe_fatal to standard C.
2637 * lisp.h (verror): Declare.
2638 * eval.c (verror): New function containing the code from ...
2639 (error): ... this. Call verror.
2640 * term.c (vfatal): New function containing the code from ...
2641 (fatal): ... this. Call vfatal.
2642 (maybe_fatal): Convert to standard C, use variable number of
2643 arguments. Declare as non-return.
2644 (init_tty): Fix maybe_fatal call.
2645
0521f580
DN
26462010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2647
2648 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2649 (_scroll_bar_note_movement): Convert definitions to standard C.
2650 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2651 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2652
ebd15611
DN
26532010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2654
2655 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2656 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2657 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2658 (xaw_jump_callback, xaw_scroll_callback)
2659 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2660 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2661 definitions to standard C.
2662 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2663 (popup_activate_callback, popup_deactivate_callback)
2664 (menu_highlight_callback, menubar_selection_callback)
2665 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2666 (free_frame_menubar, popup_selection_callback, as)
2667 (create_and_show_popup_menu, dialog_selection_callback)
2668 (create_and_show_dialog):
2669 * xfns.c (hack_wm_protocols, x_window):
2670 * xfaces.c (x_update_menu_appearance):
2671 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2672 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2673 (set_frame_size, update_wm_hints, setup_frame_gcs)
2674 (update_various_frame_slots, update_from_various_frame_slots)
2675 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2676 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2677 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2678
de06a2dd
AS
26792010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2680
a628ad9d 2681 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2682
fc549af9
EZ
26832010-07-12 Eli Zaretskii <eliz@gnu.org>
2684
2685 * process.c (setup_process_coding_systems): Move to the part
2686 shared by non-subprocesses systems, and make its body empty when
2687 subprocesses is not defined.
2688 (close_process_descs): Move to the part shared by non-subprocesses
2689 systems.
1408902e
EZ
2690 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2691 ANSI C.
fc549af9 2692
d5a3eaaf
AS
26932010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2694
2695 * editfns.c (transpose_markers): Convert old-style definition.
2696 * emacs.c (abort, shut_down_emacs, fixup_locale)
2697 (synchronize_system_time_locale)
2698 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2699 * floatfns.c (extract_float, matherr, init_floatfns)
2700 (syms_of_floatfns): Likewise.
2701 * fns.c (make_hash_table): Likewise.
2702 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2703 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2704 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2705 (ftfont_variation_glyphs): Likewise.
2706 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2707 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2708 * lread.c (read_filtered_event): Likewise.
2709 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2710 * process.c (wait_reading_process_output): Likewise.
2711 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2712 * search.c (search_buffer, boyer_moore): Likewise.
2713 * syntax.c (scan_sexps_forward): Likewise.
2714 * xdisp.c (try_scrolling): Likewise.
2715 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2716 (face_at_string_position): Likewise.
2717 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2718 * xselect.c (x_get_window_property, receive_incremental_selection)
2719 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2720 Likewise.
2721 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2722
6f704c76
DN
27232010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2724
ded80a25
DN
2725 * callproc.c (child_setup): Remove subprocesses conditional.
2726 Remove code dealing with SET_EMACS_PRIORITY, unused.
2727
49d937f4 2728 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2729 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2730
2731 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2732 (__do_global_dtors, __main): Use void in definition.
2733 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2734 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2735 the only users from ...
2736 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2737 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2738 (HAVE_VOLATILE): Remove, unused.
2739
6f704c76
DN
2740 Convert more function definitions to standard C.
2741 * xdisp.c (window_box_edges, handle_single_display_spec)
2742 (display_string): Convert definition to standard C.
2743 * scroll.c (do_direct_scrolling, scrolling_1):
2744 * dispnew.c (allocate_matrices_for_frame_redisplay)
2745 (mirrored_line_dance):
2746 * coding.c (code_convert_string):
2747 * charset.c (map_charset_chars):
2748 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2749 (Fregister_ccl_program, Fregister_code_conversion_map):
2750 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2751 (head_table): Make static and const.
2752
e6cfa7c3
AS
27532010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2754
2755 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2756 (PROFILING_LDFLAGS): Set from substitution.
2757 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2758 CFLAGS last.
2759
892dd565
KH
27602010-07-12 Kenichi Handa <handa@m17n.org>
2761
6f2cdcd1
KH
2762 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2763 (shortlisp): Likewise.
2764
892dd565
KH
2765 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2766
2767 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2768 of FONT_ENTITY_INDEX.
2769 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2770 property, get the property value dynamically.
2771 (Ffont_put): Accept font-entity and font-object too.
2772 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2773 return value changed.
2774 (syms_of_font): Adjusted for the above change.
2775
ae96d47a
AS
27762010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2777
c8fc18ee
AS
2778 * blockinput.h: Remove obsolete comment.
2779
89887d67
AS
2780 * lisp.h: Include <stddef.h>.
2781 (OFFSETOF): Don't define.
2782 (VECSIZE): Use offsetof instead of OFFSETOF.
2783 (PSEUDOVECSIZE): Likewise.
2784 * process.c (conv_sockaddr_to_lisp): Likewise.
2785 * alloc.c: Don't include <stddef.h>.
2786 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2787
ae96d47a
AS
2788 * process.c: Remove obsolete comment.
2789
635c0aa1
CY
27902010-07-11 Chong Yidong <cyd@stupidchicken.com>
2791
2792 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2793
a64df650
AS
27942010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2795
8966b757
AS
2796 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2797 index, rindex.
2798 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2799 * editfns.c (Fuser_full_name, Fformat): Likewise.
2800 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2801 * fileio.c (Ffile_symlink_p): Likewise.
2802 * filelock.c (current_lock_owner): Likewise.
2803 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2804 * fontset.c (fontset_pattern_regexp): Likewise.
2805 * lread.c (read1): Likewise.
2806 * sysdep.c (init_system_name): Likewise.
2807 * xfns.c (select_visual): Likewise.
2808 * s/hpux10-20.h (index, rindex): Don't define.
2809 * s/ms-w32.h (index): Likewise.
2810 * s/usg5-4.h: Likewise.
2811
cf237e27
AS
2812 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2813
a8fe7202
AS
2814 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2815 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2816 (egetenv): Likewise.
2817 * doprnt.c (doprnt): Likewise.
2818 * editfns.c (set_time_zone_rule, format2): Likewise.
2819 * emacs.c (decode_env_path): Likewise.
2820 * eval.c (signal_error, error): Likewise.
2821 * insdel.c (replace_range_2): Likewise.
2822 * keyboard.c (cmd_error_internal): Likewise.
2823 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2824 * print.c (write_string, write_string_1, print_error_message):
2825 Likewise.
2826 * vm-limit.c (warn_function, memory_warnings): Likewise.
2827 * xdisp.c (message1, message1_nolog, message_with_string)
2828 (vmessage, message, message_nolog): Likewise.
2829 * emacs.c: Remove duplicate declaration.
2830 * keyboard.h: Likewise.
2831 * lisp.h: Update prototypes.
2832
bb8e180f
AS
2833 * eval.c: Fix indentation problem.
2834
83380e65
AS
2835 * keyboard.c: Include "process.h"
2836
a64df650
AS
2837 * eval.c: Remove obsolete noinline declaration.
2838 * fns.c: Likewise.
2839
6a8033e1
KR
28402010-07-11 Ken Raeburn <raeburn@raeburn.org>
2841
2842 * doprnt.c (doprnt): Take a va_list argument instead of count and
2843 pointer.
2844 * eval.c (error): Change to a standard-C variadic function.
2845 * xdisp.c (vmessage): Renamed from message, made static, and
2846 changed to take a va_list argument.
2847 (message): New variadic wrapper.
2848 (message_nolog): Now a variadic function, calling vmessage.
2849 * lisp.h: Include stdarg.h for va_list.
2850 (doprnt, error, message, message_nolog): Decls updated.
2851
462aa963
EZ
28522010-07-11 Eli Zaretskii <eliz@gnu.org>
2853
2854 * process.c (syms_of_process) <delete-exited-processes>: Define
2855 even if !subprocesses.
2856 (delete_exited_processes): Ditto.
2857
2858 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2859 (delete_exited_processes): Don't define.
2860
48104462
CY
28612010-07-10 Chong Yidong <cyd@stupidchicken.com>
2862
2863 * frame.c (make_frame): Initialize menu_bar_lines and
2864 tool_bar_lines members.
2865 (make_initial_frame, make_terminal_frame): Initialize
2866 menu_bar_lines using value of menu-bar-mode.
2867
2868 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2869
f388c88a
EZ
28702010-07-10 Eli Zaretskii <eliz@gnu.org>
2871
2872 * process.c: Reshuffle #include's. Condition some of the global
2873 and static variables on `subprocesses'.
2874 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2875 Leave only one implementation.
2876 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2877 (kill_buffer_processes, Flist_system_processes)
2878 (Fprocess_attributes, init_process, syms_of_process): Unify the
2879 implementations for with subprocesses and without them.
2880
723f5a07
J
28812010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2882
2883 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2884 correct size for Motif.
2885 (free_frame_menubar): Call x_set_window_size to update frame size.
2886
2887 * xfns.c (x_window): Set borderWidth to 0 for pane and
2888 EmacsFrame. Frame size calculation is wrong otherwise.
2889
2536a4b7
MA
28902010-07-09 Michael Albinus <michael.albinus@gmx.de>
2891
2892 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2893 allows to suppress errors when polling in Emacs' main loop.
2894 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2895 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2896 (Fdbus_method_error_internal, Fdbus_send_signal)
2897 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2898 (Fdbus_register_method): Use it. (Bug#6579)
2899
5842a27b
DN
29002010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2901
2902 * alloc.c: Convert DEFUNs to standard C.
2903 * buffer.c:
2904 * bytecode.c:
2905 * callint.c:
2906 * callproc.c:
2907 * casefiddle.c:
2908 * casetab.c:
2909 * category.c:
2910 * character.c:
2911 * charset.c:
2912 * chartab.c:
2913 * cmds.c:
2914 * coding.c:
2915 * composite.c:
2916 * data.c:
2917 * dbusbind.c:
2918 * dired.c:
2919 * dispnew.c:
2920 * doc.c:
2921 * dosfns.c:
2922 * editfns.c:
2923 * emacs.c:
2924 * eval.c:
2925 * fileio.c:
2926 * filelock.c:
2927 * floatfns.c:
2928 * fns.c:
2929 * font.c:
2930 * fontset.c:
2931 * frame.c:
2932 * fringe.c:
2933 * image.c:
2934 * indent.c:
2935 * insdel.c:
2936 * keyboard.c:
2937 * keymap.c:
2938 * lread.c:
2939 * macros.c:
2940 * marker.c:
2941 * menu.c:
2942 * minibuf.c:
2943 * msdos.c:
2944 * nsfns.m:
2945 * nsmenu.m:
2946 * nsselect.m:
2947 * print.c:
2948 * process.c:
2949 * search.c:
2950 * sound.c:
2951 * syntax.c:
2952 * term.c:
2953 * terminal.c:
2954 * textprop.c:
2955 * undo.c:
2956 * w16select.c:
2957 * w32console.c:
2958 * w32fns.c:
2959 * w32font.c:
2960 * w32menu.c:
2961 * w32proc.c:
2962 * w32select.c:
2963 * window.c:
2964 * xdisp.c:
2965 * xfaces.c:
2966 * xfns.c:
2967 * xmenu.c:
2968 * xselect.c:
2969 * xsettings.c:
2970 * xsmfns.c: Likewise.
2971
d568829b
EZ
29722010-07-08 Eli Zaretskii <eliz@gnu.org>
2973
2974 * process.c (kbd_is_on_hold, hold_keyboard_input)
2975 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2976
52214050
J
29772010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2978
2979 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2980 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2981 unless USE_LUCID.
2982
313d9eb2
DN
29832010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2984
a628ad9d
JB
2985 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2986 declaration.
d8825aa3 2987
295d0d8f
DN
2988 Clean up include guards.
2989 * tparam.c: Remove include guards for config.h, string.h and code
2990 that assumes #ifndef emacs.
2991 * termcap.c:
2992 * unexalpha.c:
2993 * sysdep.c:
2994 * filemode.c:
2995 * filelock.c:
2996 * bidi.c: Likewise.
2997
49d9e6b0
DN
2998 Remove prefix-args.c
2999 * prefix-args.c: Remove file.
3000 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3001 * Makefile.in (temacs${EXEEXT}): Remove references to
3002 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3003 (mostlyclean): Remove reference to prefix-args.
3004 (prefix-args): Remove.
3005
313d9eb2
DN
3006 Simplify cstart_of_data, start_of_code and related code.
3007 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3008 (start_of_data): Merge into start_of_data function.
3009 * sysdep.c (start_of_text): Remove. Move simplified versions of
3010 it in the only users: unexaix.c and unexec.c.
3011 (read_input_waiting): Remove local declaration of quit_char.
3012 (start, etext): Remove declarations.
3013 (start_of_data): Merge with the version in mem-limits.h and move
3014 to vm-limits.c.
3015 * vm-limit.c (start_of_data): Merged and simplified version of the
3016 code formerly in mem-limits.h and sysdep.c.
3017 * unexec.c (start): New declaration, moved from sysdep.c.
3018 (start_of_text): Simplified version of the code formerly in sysdep.c.
3019 * unexaix.c (start_of_text): Simplified version of the code
3020 formerly in sysdep.c.
3021 * m/alpha.h (HAVE_TEXT_START): Remove.
3022 (TEXT_START): Move ...
3023 * unexalpha.c (TEXT_START): ... here.
3024 * s/hpux10-20.h (TEXT_START): Remove.
3025 * s/darwin.h (TEXT_START):
3026 * m/mips.h (TEXT_START):
3027 * m/macppc.h (HAVE_TEXT_START):
3028 * m/m68k.h (TEXT_START):
3029 * m/iris4d.h (TEXT_START):
3030 * m/intel386.h (TEXT_START):
3031 * m/ibmrs6000.h (TEXT_START):
3032 * m/ia64.h (HAVE_TEXT_START):
3033 * s/msdos.h (TEXT_START): Likewise.
3034
72af86bd
AS
30352010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3036
3037 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3038 (overrun_check_free, xstrdup, allocate_string)
3039 (allocate_string_data, compact_small_strings, Fmake_string)
3040 (make_unibyte_string, make_multibyte_string)
3041 (make_string_from_bytes, make_specified_string, make_float)
3042 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3043 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3044 memcpy, memmove, memset, memcmp.
3045 * atimer.c (start_atimer, set_alarm): Likewise.
3046 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3047 (mmap_realloc, init_buffer_once): Likewise.
3048 * callint.c (Fcall_interactively): Likewise.
3049 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3050 (getenv_internal_1): Likewise.
3051 * casefiddle.c (casify_object): Likewise.
3052 * ccl.c (ccl_driver): Likewise.
3053 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3054 * charset.c (load_charset_map_from_file)
3055 (load_charset_map_from_file, load_charset_map_from_vector)
3056 (Fdefine_charset_internal): Likewise.
3057 * cm.c (Wcm_clear): Likewise.
3058 * coding.c (decode_eol, decode_coding_object)
3059 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3060 * data.c (Faset): Likewise.
3061 * dired.c (directory_files_internal, file_name_completion_stat):
3062 Likewise.
3063 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3064 (clear_glyph_row, copy_row_except_pointers)
3065 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3066 (save_current_matrix, restore_current_matrix)
3067 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3068 (mirror_line_dance, scrolling_window): Likewise.
3069 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3070 Likewise.
3071 * doprnt.c (doprnt): Likewise.
3072 * editfns.c (Fuser_full_name, make_buffer_string_both)
3073 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3074 * emacs.c (sort_args): Likewise.
3075 * eval.c (Fapply, Ffuncall): Likewise.
3076 * fileio.c (Ffile_name_directory, make_temp_name)
3077 (Fexpand_file_name, search_embedded_absfilename)
3078 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3079 (auto_save_error): Likewise.
3080 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3081 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3082 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3083 (Fmake_hash_table): Likewise.
3084 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3085 * ftfont.c (ftfont_text_extents): Likewise.
3086 * getloadavg.c (getloadavg): Likewise.
3087 * image.c (define_image_type, make_image, make_image_cache)
3088 (x_create_x_image_and_pixmap, xbm_image_p)
3089 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3090 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3091 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3092 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3093 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3094 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3095 Likewise.
3096 * indent.c (scan_for_column, compute_motion): Likewise.
3097 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3098 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3099 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3100 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3101 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3102 (store_user_signal_events, menu_bar_items, tool_bar_items)
3103 (process_tool_bar_item, append_tool_bar_item)
3104 (read_char_minibuf_menu_prompt, read_key_sequence)
3105 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3106 Likewise.
3107 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3108 Likewise.
3109 * lisp.h (STRING_COPYIN): Likewise.
3110 * lread.c (Fload, read1, oblookup): Likewise.
3111 * msdos.c (Frecent_doskeys): Likewise.
3112 * nsfns.m (Fx_create_frame): Likewise.
3113 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3114 Likewise.
3115 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3116 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3117 Likewise.
3118 * nsmenu.m (ns_update_menubar): Likewise.
3119 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3120 * print.c (print_unwind, printchar, strout, print_string)
3121 (print_error_message): Likewise.
3122 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3123 (Fmake_network_process, Fnetwork_interface_list)
3124 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3125 (init_process): Likewise.
3126 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3127 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3128 Likewise.
3129 * scroll.c (do_scrolling, do_direct_scrolling)
3130 (scrolling_max_lines_saved): Likewise.
3131 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3132 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3133 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3134 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3135 (emacs_set_tty): Likewise.
3136 * term.c (encode_terminal_code, calculate_costs)
3137 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3138 Likewise.
3139 * termcap.c (tgetst1, gobble_line): Likewise.
3140 * termhooks.h (EVENT_INIT): Likewise.
3141 * tparam.c (tparam1): Likewise.
3142 * unexalpha.c (unexec): Likewise.
3143 * unexec.c (write_segment): Likewise.
3144 * unexmacosx.c (unexec_write_zero): Likewise.
3145 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3146 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3147 * w32font.c (w32font_list_family, w32font_text_extents)
3148 (w32font_list_internal, w32font_match_internal)
3149 (w32font_open_internal, compute_metrics, Fx_select_font):
3150 Likewise.
3151 * w32menu.c (set_frame_menubar, add_menu_item)
3152 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3153 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3154 * w32uniscribe.c (uniscribe_list_family): Likewise.
3155 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3156 * window.c (make_window, replace_window, set_window_buffer)
3157 (Fsplit_window): Likewise.
3158 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3159 (add_to_log, message3, x_consider_frame_title)
3160 (append_space_for_newline, extend_face_to_end_of_line)
3161 (decode_mode_spec_coding, init_glyph_string): Likewise.
3162 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3163 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3164 (face_attr_equal_p, make_realized_face, make_face_cache)
3165 (free_realized_faces, lookup_named_face, smaller_face)
3166 (face_with_height, lookup_derived_face)
3167 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3168 (Finternal_set_font_selection_order, realize_default_face)
3169 (compute_char_face, face_at_buffer_position)
3170 (face_for_overlay_string, face_at_string_position, merge_faces):
3171 Likewise.
3172 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3173 (Fx_window_property, x_create_tip_frame)
3174 (Fx_backspace_delete_keys_p): Likewise.
3175 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3176 (xfont_text_extents): Likewise.
3177 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3178 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3179 * xselect.c (x_queue_event, x_get_window_property)
3180 (receive_incremental_selection): Likewise.
3181 * xsmfns.c (x_session_check_input): Likewise.
3182 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3183 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3184 Likewise.
3185 * character.h (BCOPY_SHORT): Removed.
3186 * config.in: Regenerate.
3187 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3188 * emacs.c (main) [PROFILING]: Don't declare
3189 dump_opcode_frequencies.
3190 * lisp.h (safe_bcopy): Remove declaration.
3191 (memset) [!HAVE_MEMSET]: Declare.
3192 (memcpy) [!HAVE_MEMCPY]: Likewise.
3193 (memmove) [!HAVE_MEMMOVE]: Likewise.
3194 (memcmp) [!HAVE_MEMCMP]: Likewise.
3195 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3196 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3197 Don't define.
3198 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3199 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3200 (BCOPY_DOWNWARD_SAFE): Don't define.
3201 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3202 (memcpy) [!HAVE_MEMCPY]: Define.
3203 (memmove) [!HAVE_MEMMOVE]: Define.
3204 (memcmp) [!HAVE_MEMCMP]: Define.
3205
cb768704
J
32062010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3207
3208 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3209 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3210 New functions.
cb768704
J
3211 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3212 select on empty input mask.
3213 (init_process): Initialize kbd_is_on_hold to 0.
3214
3215 * process.h (hold_keyboard_input, unhold_keyboard_input)
3216 (kbd_on_hold_p): Declare.
3217
3218 * keyboard.c (input_available_signal): Declare.
3219 (kbd_buffer_nr_stored): New function.
3220 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3221 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3222 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3223 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3224 (tty_read_avail_input): If input is on hold, return.
3225 Don't read more that free slots in kbd_buffer (Bug#6571).
3226
3a8ce822
EZ
32272010-07-07 Eli Zaretskii <eliz@gnu.org>
3228
3229 * msdos.h:
3230 * msdos.c:
3231 * dosfns.c:
3232 * w16select.c: Convert function definitions to ANSI C.
3233
a628ad9d
JB
3234 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3235 Remove unused prototypes.
3a8ce822 3236
cf84bb53
JB
32372010-07-07 Juanma Barranquero <lekktu@gmail.com>
3238
3239 * coding.c, sysdep.c: Convert some more functions to standard C.
3240
1a4990fb
JB
32412010-07-07 Juanma Barranquero <lekktu@gmail.com>
3242
3243 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3244 (encode_coding_object): Use SPECPDL_INDEX.
3245 (syms_of_coding): Use DOS_NT.
3246
c0f2f16b
DN
32472010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3248
48fb6855
DN
3249 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3250
c0f2f16b
DN
3251 Make the function member of Lisp_Subr use standard C prototypes.
3252 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3253 (DECL_ALIGN): Add a cast for the function.
3254 * eval.c (Feval, Ffuncall): Use the proper type for each type
3255 function call.
3256
67aecef9
CY
32572010-07-06 Chong Yidong <cyd@stupidchicken.com>
3258
3259 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3260 fringe face id, so face-remapping-alist works (Bug#6091).
3261
b56ceb92
JB
32622010-07-06 Juanma Barranquero <lekktu@gmail.com>
3263
3264 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3265 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3266 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3267
7af07b96
AS
32682010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3269
3270 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3271 * lisp.h: Declare x_get_keysym_name.
3272 * keyboard.c (modify_event_symbol): Don't declare
3273 x_get_keysym_name here.
3274
69e24e34
DN
32752010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3276
3277 * ecrt0.c: Revert conversion to standard C.
3278
d3da34e0 32792010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3280
3281 * vm-limit.c (memory_warnings):
3282 * keyboard.c (modify_event_symbol):
3283 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3284 (round2, emacs_rint):
3285 * process.c (send_process, old_sigpipe): Convert function
3286 definitions and declarations to standard C.
3287
32882010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3289
3290 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3291 * xdisp.c: Convert function definitions to standard C.
3292
3293 * cm.c (cmputc): Arg C is now int, not char.
3294 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3295
00be444c
J
32962010-07-05 James Cloos <cloos@jhcloos.com>
3297
3298 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3299
3300 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3301 _NET_WM_ICON_NAME atoms.
3302
3303 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3304 and _NET_WM_ICON_NAME properties, too, matching what is
3305 done in the Gtk+ case.
3306
e4c8d29a
J
33072010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3308
ff919460
J
3309 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3310
e4c8d29a
J
3311 * xsmfns.c (SSDATA): New macro.
3312 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3313 passed to strlen/strcpy/strcat.
3314 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3315 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3316
3317 * xsettings.c (something_changedCB, parse_settings)
3318 (apply_xft_settings): Reformat prototype.
3319 (something_changedCB, init_gconf): Remove unused variable i.
3320 (read_settings): Remove unused variable long_len.
3321
3322 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3323 (xg_get_image_for_pixmap, create_dialog)
3324 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3325 (menuitem_highlight_callback, make_menu_item)
3326 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3327 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3328 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3329 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3330 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3331 (xg_tool_bar_item_expose_callback): Reformat prototype.
3332 (xg_update_menubar): GList *group => GSList *group.
3333 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3334 before use.
3335 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3336 to GTK_IMAGE (wimage).
3337
dd4c5104
DN
33382010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3339
898b4c5c
DN
3340 * atimer.c: Use "" instead of <> for local includes for
3341 consistency with the rest of the code.
3342
dd4c5104
DN
3343 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3344 * xrdb.c (get_system_name):
3345 * window.c (shrink_windows):
3346 * syntax.c (forw_comment):
3347 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3348 (ins_del_costs):
3349 * mem-limits.h (start_of_data):
3350 * lread.c (readevalloop):
3351 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3352 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3353 * frame.c (x_get_focus_frame):
3354 * floatfns.c (fmod_float):
3355 * fileio.c (choose_write_coding_system):
3356 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3357 (malloc_initialize_hook, sort_args, synchronize_locale):
3358 * doprnt.c (doprnt):
3359 * dired.c (compile_pattern):
3360 * data.c (fmod_float):
3361 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3362 (map_char_table_for_charset):
3363 * charset.c (define_charset_internal):
3364 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3365 to standard C.
3366
9a39b306 33672010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3368 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3369
3370 * lread.c (read1): Fix up last change to not mess up `c'.
3371
e6cb2cbb
JB
33722010-07-04 Juanma Barranquero <lekktu@gmail.com>
3373
3374 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3375
438105ed
JB
33762010-07-04 Juanma Barranquero <lekktu@gmail.com>
3377
3378 Fix prototypes.
3379
e5447b22 3380 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3381 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3382 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3383 arg, as required by internal_condition_case_1.
dcc7404b 3384 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3385 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3386 (analyse_first): Fix "const const".
e5447b22 3387 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3388 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3389 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3390
971de7fb
DN
33912010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3392
3393 * alloc.c: Convert function definitions to standard C.
3394 * atimer.c:
3395 * bidi.c:
3396 * bytecode.c:
3397 * callint.c:
3398 * callproc.c:
3399 * casefiddle.c:
3400 * casetab.c:
3401 * category.c:
3402 * ccl.c:
3403 * character.c:
3404 * charset.c:
3405 * chartab.c:
3406 * cmds.c:
3407 * coding.c:
3408 * composite.c:
3409 * data.c:
3410 * dbusbind.c:
3411 * dired.c:
3412 * dispnew.c:
3413 * doc.c:
3414 * doprnt.c:
3415 * ecrt0.c:
3416 * editfns.c:
3417 * fileio.c:
3418 * filelock.c:
3419 * filemode.c:
3420 * fns.c:
3421 * font.c:
3422 * fontset.c:
3423 * frame.c:
3424 * fringe.c:
3425 * ftfont.c:
3426 * ftxfont.c:
3427 * gtkutil.c:
3428 * indent.c:
3429 * insdel.c:
3430 * intervals.c:
3431 * keymap.c:
3432 * lread.c:
3433 * macros.c:
3434 * marker.c:
3435 * md5.c:
3436 * menu.c:
3437 * minibuf.c:
3438 * prefix-args.c:
3439 * print.c:
3440 * ralloc.c:
3441 * regex.c:
3442 * region-cache.c:
3443 * scroll.c:
3444 * search.c:
3445 * sound.c:
3446 * strftime.c:
3447 * syntax.c:
3448 * sysdep.c:
3449 * termcap.c:
3450 * terminal.c:
3451 * terminfo.c:
3452 * textprop.c:
3453 * tparam.c:
3454 * undo.c:
3455 * unexelf.c:
3456 * window.c:
3457 * xfaces.c:
3458 * xfns.c:
3459 * xfont.c:
3460 * xftfont.c:
3461 * xgselect.c:
3462 * xmenu.c:
3463 * xrdb.c:
3464 * xselect.c:
3465 * xsettings.c:
3466 * xsmfns.c:
3467 * xterm.c: Likewise.
3468
ae492bec
EZ
34692010-07-03 Eli Zaretskii <eliz@gnu.org>
3470
76ea4cc9
EZ
3471 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3472 frames other than the initial one. Fix reversal of colors when
3473 `reverse' is specified in the frame parameters. Call
3474 update_face_from_frame_parameter instead of
3475 internal-set-lisp-face-attribute. Initialize screen colors from
3476 initial_screen_colors[] when f->default_face_done_p is zero,
3477 instead of depending on being called with default-frame-alist as
3478 the alist argument.
3479
3480 * xfaces.c (update_face_from_frame_parameter): Move out of
3481 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3482 with HAVE_WINDOW_SYSTEM.
3483
1e6255ae
EZ
3484 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3485 to menu-bar-mode, if not set in the frame parameters or in
3486 default-frame-alist.
3487
ae492bec
EZ
3488 * w32console.c (sys_tputs): Adjust argument list to prototype in
3489 term.c.
3490
3a35a84c
JB
34912010-07-03 Juanma Barranquero <lekktu@gmail.com>
3492
3493 * lisp.h (memory_warnings): Fix prototype.
3494
3495 * cm.h (evalcost): Fix prototype.
3496
3497 * cm.c (evalcost): Fix arg type.
3498
c532d349
DN
34992010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3500
3501 * term.c (term_clear_mouse_face, Fidentity):
3502 * syssignal.h (signal_handler_t):
3503 * lisp.h (memory_warnings):
3504 * coding.h (preferred_coding_system):
3505 * cm.h (evalcost):
3506 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3507
c0b36d46
EZ
35082010-07-02 Eli Zaretskii <eliz@gnu.org>
3509
3510 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3511 from prototypes.
3512
3513 * msdos.h (load_pixmap): Don't define away.
3514
383e0970
J
35152010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3516
f57e2426
J
3517 * lisp.h:
3518 * atimer.h: Remove define for P_.
3519
3520 * alloc.c: Remove __P and P_ from .c and .m files.
3521 * atimer.c:
3522 * buffer.c:
3523 * callint.c:
3524 * category.c:
3525 * charset.c:
3526 * chartab.c:
3527 * cm.c:
3528 * coding.c:
3529 * composite.c:
3530 * data.c:
3531 * dired.c:
3532 * dispnew.c:
3533 * doc.c:
3534 * editfns.c:
3535 * emacs.c:
3536 * eval.c:
3537 * fileio.c:
3538 * filelock.c:
3539 * fns.c:
3540 * font.c:
3541 * fontset.c:
3542 * frame.c:
3543 * ftfont.c:
3544 * ftxfont.c:
3545 * gmalloc.c:
3546 * gtkutil.c:
3547 * image.c:
3548 * indent.c:
3549 * intervals.c:
3550 * keyboard.c:
3551 * keymap.c:
3552 * lread.c:
3553 * marker.c:
3554 * menu.c:
3555 * minibuf.c:
3556 * print.c:
3557 * process.c:
3558 * scroll.c:
3559 * search.c:
3560 * sound.c:
3561 * strftime.c:
3562 * syntax.c:
3563 * sysdep.c:
3564 * term.c:
3565 * terminal.c:
3566 * textprop.c:
3567 * unexalpha.c:
3568 * w32console.c:
3569 * w32fns.c:
3570 * w32font.c:
3571 * w32menu.c:
3572 * w32term.c:
3573 * w32uniscribe.c:
3574 * window.c:
3575 * xdisp.c:
3576 * xfaces.c:
3577 * xfns.c:
3578 * xfont.c:
3579 * xftfont.c:
3580 * xmenu.c:
3581 * xselect.c:
3582 * xterm.c: Likewise.
3583
383e0970 3584 Remove P_ and __P macros.
f57e2426
J
3585 * atimer.h: Remove P_ and __P macros.
3586 * buffer.h:
383e0970
J
3587 * category.h:
3588 * ccl.h:
3589 * character.h:
3590 * charset.h:
3591 * cm.h:
3592 * coding.h:
3593 * composite.h:
3594 * dispextern.h:
3595 * disptab.h:
9e892c8d 3596 * dosfns.h:
383e0970
J
3597 * font.h:
3598 * fontset.h:
3599 * frame.h:
3600 * gtkutil.h:
3601 * indent.h:
3602 * intervals.h:
3603 * keyboard.h:
3604 * keymap.h:
3605 * lisp.h:
3606 * macros.h:
3607 * md5.h:
3608 * menu.h:
3609 * msdos.h:
3610 * nsterm.h:
3611 * puresize.h:
3612 * region-cache.h:
3613 * syntax.h:
3614 * syssignal.h:
3615 * systime.h:
3616 * termhooks.h:
9e892c8d 3617 * w32font.h:
383e0970
J
3618 * w32term.h:
3619 * widget.h:
3620 * window.h:
3621 * xgselect.h:
3622 * xsettings.h:
3623 * xterm.h: Likewise.
3624
98601119
DN
36252010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3626
d9170db5
DN
3627 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3628
98601119
DN
3629 Cleanup old code.
3630 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3631 * syssignal.h: Remove code for Lynx, not supported anymore.
3632 * vm-limit.c: Remove unused code the depends on emacs not being
3633 defined and NO_LIM_DATA being defined.
3634 * mem-limits.h: Remove dead code.
3635
1f984e12
J
36362010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3637
c49d071a
J
3638 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3639
9d5405ec
J
3640 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3641 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3642
7a18115b
J
3643 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3644 parameters, they are already absolute.
3645
a628ad9d
JB
3646 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3647 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3648
a628ad9d 3649 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3650
a628ad9d
JB
3651 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3652 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3653
a628ad9d
JB
3654 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3655 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3656
c1ef4455
CY
36572010-06-30 Chong Yidong <cyd@stupidchicken.com>
3658
3659 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3660 check default-frame-alist.
3661
ce8f5a9a
AS
36622010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3663
3664 * process.c (create_process): Avoid using invalid file descriptors.
3665
3666 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3667
bf935339
J
36682010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3669
3670 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3671 Improve documentation. Return font regardless of use_system_font.
3672 (syms_of_xsettings): Improve documentation for font-use-system-font.
3673
7c33a057
CY
36742010-07-10 Chong Yidong <cyd@stupidchicken.com>
3675
2ec1b5ee
CY
3676 * xfaces.c (realize_face): Garbage the frame if a face is removed
3677 (Bug#6593).
3678
36792010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3680
3681 * keyboard.c: Remove duplicate <setjmp.h>.
3682 (read_key_sequence): Remove volatile qualifiers.
3683
36842010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3685
3686 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3687 (struct glyph_row): New members left_fringe_offset and
3688 right_fringe_offset.
3689
3690 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3691 specially.
3692 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3693 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3694
3695 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3696 Take account of bitmap offset.
2ec1b5ee
CY
3697 (draw_window_fringes): Take account of window vscroll.
3698 (update_window_fringes): Likewise. Extend top-aligned top indicator
3699 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3700 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3701 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3702
37032010-07-04 Juanma Barranquero <lekktu@gmail.com>
3704
3705 * w32fns.c (Qtooltip): Declare.
3706 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3707
37082010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3709
3710 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3711 grab on just Press (Bug#6499).
3712
37132010-07-02 Chong Yidong <cyd@stupidchicken.com>
3714
3715 * frame.c (Qtooltip): New var.
3716 (delete_frame): Use it. Fix faulty if statement. Don't update
3717 mode line for tooltip frames. Suggested by Martin Rudalics.
3718
3719 * xfns.c (x_create_tip_frame):
3720 * w32fns.c (x_create_tip_frame): Use it.
3721
37222010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3723
3724 * xftfont.c (xftfont_open): Check font width one by one also when
3725 spacing is dual.
3726
3727 * ftfont.c (ftfont_open): Ditto.
3728
6259c2ec
GM
37292010-06-30 Glenn Morris <rgm@gnu.org>
3730
a46007e9
GM
3731 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3732
6259c2ec
GM
3733 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3734
3735 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3736 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3737 * s/darwin.h (SYSTEM_MALLOC):
3738 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3739
5d1d3d04
J
37402010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3741
3742 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3743 (ns_get_screen): Don't assign integer to f.
3744 (Fx_display_color_cells): Declarations before statements.
3745
e547b051
J
37462010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3747
5fc8e5bc
J
3748 * xfns.c (x_default_font_parameter): Remove got_from_system
3749 (Bug#6526).
3750
e547b051
J
3751 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3752 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3753 defines based on what configure finds.
3754
3755 * xterm.c (XTflash): Use gtk_widget_get_window.
3756 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3757 gtk_adjustment_get_page_size.
3758 (handle_one_xevent): Use gtk_widget_get_mapped.
3759 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3760 messages.
3761
3762 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3763
3764 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3765 HAVE_GTK_FILE_SELECTION_NEW.
3766
3767 * gtkutil.c (xg_display_open, xg_display_close): Remove
3768 HAVE_GTK_MULTIDISPLAY, it is always defined.
3769 (xg_display_open): Return type is void.
3770 (gtk_widget_set_has_window)
3771 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3772 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3773 (gtk_adjustment_set_page_increment)
3774 (gtk_adjustment_get_step_increment): #define these if not found
3775 by configure.
3776 (remove_submenu): New define based on Gtk+ version.
3777 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3778 gtk_widget_get_window.
3779 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3780 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3781 (create_dialog): Use gtk_dialog_get_action_area and
3782 gtk_dialog_get_content_area.
3783 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3784 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3785 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3786 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3787 g_object_ref and g_object_unref.
3788 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3789 gtk_widget_get_sensitive.
3790 (xg_update_submenu): Use remove_submenu.
3791 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3792 properties instead to get old x and y position.
3793 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3794 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3795 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3796 (xg_get_tool_bar_widgets): New function.
3797 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3798 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3799 (toolbar_set_orientation): New #define based on if configure
3800 finds gtk_orientable_set_orientation.
3801 (xg_create_tool_bar): Call toolbar_set_orientation.
3802 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3803 instead of gtk_box_pack_start_defaults.
3804
b9229673
CY
38052010-06-28 Chong Yidong <cyd@stupidchicken.com>
3806
3807 * cmds.c (Fdelete_backward_char): Move into Lisp.
3808
bbc803b0
DN
38092010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3810
3811 * s/freebsd.h (BSD4_2): Remove redundant definition.
3812 bsd-common.h defines it already.
3813
6431f2e6
CY
38142010-06-27 Chong Yidong <cyd@stupidchicken.com>
3815
3816 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3817 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3818 tool-bar-mode, which are now set using these X resources at
3819 startup, to determine the defaults (Bug#2249).
3820
3821 * w32fns.c (Fx_create_frame):
3822 * nsfns.m (Fx_create_frame): Likewise.
3823
3824 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3825
8c079ebb
JB
38262010-06-24 Juanma Barranquero <lekktu@gmail.com>
3827
3828 * gtkutil.c (xg_update_scrollbar_pos):
3829 Avoid C99 mid-block variable declaration.
3830
e9b7ab96
JD
38312010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3832
bc869eca
JD
3833 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3834
2b7e356a 3835 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3836
3837 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3838 if height is less than scroll bar min size.
3839 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3840
e9b7ab96
JD
3841 * xfns.c (x_default_font_parameter): Try to open font from system
3842 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3843
a628ad9d 38442010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3845
3846 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3847
70c4cfbb
EZ
38482010-06-20 Eli Zaretskii <eliz@gnu.org>
3849
3850 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3851 most-positive-fixnum, be extra accurate when scrolling window
3852 start, to avoid missing the cursor line.
3853
ad5a12b5
EZ
38542010-06-19 Eli Zaretskii <eliz@gnu.org>
3855
3856 * xdisp.c (try_scrolling): Compute the limit for searching point
3857 in forward scroll from scroll_max, instead of an arbitrary limit
3858 of 10 screen lines. See
3859 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3860 and
3861 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3862 for details.
3863
2a64315a 38642010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3865
3866 * editfns.c (Fbyte_to_string): Pacify compiler.
3867
288cf4e9
SM
38682010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3869
3870 * lread.c (read1): Phase out old-style backquotes a bit more.
3871
6e6e5760
EZ
38722010-06-12 Eli Zaretskii <eliz@gnu.org>
3873
cbc4fd20
EZ
3874 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3875 bidimirror.h.
3876
3877 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3878
317fbf33
EZ
3879 * bidi.c (bidi_initialize): Remove explicit initialization of
3880 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3881 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3882 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3883
3884 * biditype.h: New file.
3885
cbc4fd20
EZ
3886 * bidimirror.h: New file.
3887
6e6e5760
EZ
3888 * window.c (syms_of_window): Doc fix (bug#6409).
3889
4176cba2
RF
38902010-06-12 Romain Francoise <romain@orebokech.com>
3891
3892 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3893 ediff-hook.
3894
cb4bfcb5
GM
38952010-06-10 Glenn Morris <rgm@gnu.org>
3896
64c60c2f
GM
3897 * editfns.c (Fbyte_to_string): Pacify compiler.
3898
cb4bfcb5
GM
3899 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3900
2ec1b5ee
CY
39012010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3902
3903 * alloc.c (Fmake_byte_code): Don't access undefined argument
3904 (Bug#6517).
3905
39062010-06-25 Chong Yidong <cyd@stupidchicken.com>
3907
3908 * xdisp.c (next_element_from_image): Ensure that after-strings are
3909 read the next time we hit handle_stop (Bug#1336).
3910
39112010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3912
3913 * lread.c (read1): Signal error if #s is not followed by paren.
3914
39152010-06-19 Chong Yidong <cyd@stupidchicken.com>
3916
3917 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3918
3919 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3920
39212010-06-15 Glenn Morris <rgm@gnu.org>
3922
3923 * editfns.c (Fbyte_to_string): Pacify compiler.
3924
e454a4a3
SM
39252010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3926
3927 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3928 Check `object's type before accessing its guts.
3929
c1b1acc2
DN
39302010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3931
3932 * s/usg5-4.h: Fix previous change.
3933 Suggested by Lawrence Mitchell <wence@gmx.li>
3934
657d4c0b
AS
39352010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3936
3937 * minibuf.c (Fall_completions): Add more checks.
3938
9b27fd9f
JB
39392010-06-08 Juanma Barranquero <lekktu@gmail.com>
3940
3941 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3942
a99ebb40
DN
39432010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3944
d7c5d87d
DN
3945 * lread.c (X_OK): Remove, unused.
3946
0263a941
DN
3947 * dispnew.c: Remove obsolete comment.
3948
a99ebb40
DN
3949 Remove INCLUDED_FCNTL.
3950 * xterm.c (INCLUDED_FCNTL):
3951 * callproc.c (INCLUDED_FCNTL):
3952 * alloc.c (INCLUDED_FCNTL):
3953 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3954 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3955
13b5221f
MR
39562010-06-07 Martin Rudalics <rudalics@gmx.at>
3957
3958 * window.c (Fselect_window): Move `record_buffer' up to the
3959 beginning of this function, so the buffer gets recorded
3960 even if the selected window does not change.
3961 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3962
5220357f
JB
39632010-06-07 Juanma Barranquero <lekktu@gmail.com>
3964
3965 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3966 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3967
3085237c
DN
39682010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3969
3970 Remove BSTRING related code, all platforms define it.
3971 * s/usg5-4.h (BSTRING): Remove definition.
3972 * s/template.h (BSTRING):
3973 * s/msdos.h (BSTRING):
3974 * s/ms-w32.h (BSTRING):
3975 * s/hpux10-20.h (BSTRING):
3976 * s/gnu-linux.h (BSTRING):
3977 * s/darwin.h (BSTRING):
3978 * s/cygwin.h (BSTRING):
3979 * s/bsd-common.h (BSTRING):
3980 * s/aix4-2.h (BSTRING): Likewise.
3981 * sysdep.c: Remove code depending on BSTRING not being defined.
3982
409f2919
JB
39832010-06-05 Juanma Barranquero <lekktu@gmail.com>
3984
3985 Remove obsolete macro BASE_LEADING_CODE_P.
3986 * character.h (BASE_LEADING_CODE_P): Remove.
3987 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3988 * buffer.c (Fset_buffer_multibyte):
3989 * indent.c (scan_for_column, compute_motion):
3990 * insdel.c (count_combining_before, count_combining_after):
3991 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3992
087fc47a
JB
39932010-06-04 Juanma Barranquero <lekktu@gmail.com>
3994
3995 Turn `directory-sep-char' into a noop.
3996
3997 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3998 (DIRECTORY_SEP): Define unconditionally.
3999
4000 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4001
4002 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4003 call dostounix_filename directly.
4004
4005 * fileio.c (CORRECT_DIR_SEPS): Remove.
4006 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4007 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4008 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4009 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4010
4011 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4012 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4013
0eb7675e
AS
40142010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4015
a628ad9d
JB
4016 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4017 (Bug#6346)
0eb7675e 4018
78edd3b7
JB
40192010-06-03 Juanma Barranquero <lekktu@gmail.com>
4020
4021 * ccl.c (Fccl_program_p): Fix typo in docstring.
4022
eb697db5
DN
40232010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4024
4025 Move UNEXEC definition to autoconf.
4026 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4027 * s/sol2-10.h (UNEXEC):
4028 * s/irix6-5.h (UNEXEC):
4029 * s/hpux10-20.h (UNEXEC):
4030 * s/gnu-linux.h (UNEXEC):
4031 * s/darwin.h (UNEXEC):
4032 * s/cygwin.h (UNEXEC):
4033 * s/bsd-common.h (UNEXEC):
4034 * s/aix4-2.h (UNEXEC):
4035 * m/alpha.h (UNEXEC): Likewise.
4036 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4037
aa3830c4
JB
40382010-06-03 Juanma Barranquero <lekktu@gmail.com>
4039
4040 Remove obsolete pre-unicode2 macros.
4041 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4042 * composite.c (composition_reseat_it):
4043 * data.c (Faset):
4044 * fns.c (Ffillarray):
4045 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4046 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4047
d234d13e
JL
40482010-06-03 Juri Linkov <juri@jurta.org>
4049
4050 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4051 (Fswitch_to_buffer): Remove unused variable `err'.
4052
0d4bcf4d
GM
40532010-06-03 Glenn Morris <rgm@gnu.org>
4054
e23dc1e2
GM
4055 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4056
05b09564
GM
4057 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4058 now that AH_BOTTOM does it.
4059
824e2978
GM
4060 * m/hp800.h (HAVE_ALLOCA):
4061 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4062
0d4bcf4d
GM
4063 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4064 Remove NOT_C_CODE tests, it is always true now.
4065
c55d2abf
DN
40662010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4067
08a494a3
DN
4068 Fix config.h includes.
4069 * xsettings.c:
4070 * xgselect.c:
4071 * nsterm.m:
4072 * nsselect.m:
4073 * nsimage.m:
4074 * nsfont.m:
4075 * nsfns.m:
4076 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4077 other files do.
4078
75934b1d
DN
4079 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4080
9f32a766
DN
4081 * s/sol2-6.h: Remove obsolete comments.
4082
c55d2abf
DN
4083 Remove unnecessary alloca.h includes.
4084 * keymap.c: Do not include alloca.h, config.h does that.
4085 * sysdep.c: Likewise. Do not define fwrite, not used.
4086
06ac62b4
SM
40872010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4088
4089 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4090 the HAVE_TERMIO where it belongs (bug#6149).
4091
1ab8293c
SM
40922010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4093
4094 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4095 of bug#6305).
4096
6dcfd253
EZ
40972010-05-30 Eli Zaretskii <eliz@gnu.org>
4098
4099 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4100 state is always cached (bug#6306).
4101
6d26bbb2
EZ
41022010-05-29 Eli Zaretskii <eliz@gnu.org>
4103
06fa4a23
EZ
4104 Fix cursor motion in bidi-reordered continued lines.
4105 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4106 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
4107 over continuation lines in bidi-reordered buffers. Return
4108 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4109 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4110
f5783df3
MA
41112010-05-28 Michael Albinus <michael.albinus@gmx.de>
4112
4113 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4114
7d56b2dd
KH
41152010-05-28 Kenichi Handa <handa@m17n.org>
4116
4117 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4118 Don't sheck SPEC if it is nil.
4119 (font_list_entities): Call font_delete_unmatched if
b925d231 4120 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4121
e58d4ff7
GM
41222010-05-28 Glenn Morris <rgm@gnu.org>
4123
4124 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4125
f1a5d776
CY
41262010-05-27 Chong Yidong <cyd@stupidchicken.com>
4127
4128 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4129 whether to trash.
4130 (internal_delete_file, Frename_file): Callers changed.
4131 (delete_by_moving_to_trash): Doc fix.
4132 (Fdelete_directory_internal): Don't move to trash.
4133
4134 * callproc.c (delete_temp_file):
4135 * buffer.c (Fkill_buffer): Callers changed.
4136
4137 * lisp.h: Update prototype.
4138
f44a59e6
CY
41392010-05-27 Chong Yidong <cyd@stupidchicken.com>
4140
4141 * xdisp.c (redisplay_window): After redisplay, check if point is
4142 still valid before setting it (Bug#6177).
4143
81ac4f35
GM
41442010-05-27 Glenn Morris <rgm@gnu.org>
4145
4146 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4147 Convert comments to Makefile format.
4148
4149 * Makefile.in (bootstrap-clean): No more Makefile.c.
4150
ccd89fb3
GM
41512010-05-26 Glenn Morris <rgm@gnu.org>
4152
90278cb6
GM
4153 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4154 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4155
ccd89fb3
GM
4156 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4157 Remove.
4158 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4159
b7050583
KH
41602010-05-26 Kenichi Handa <handa@m17n.org>
4161
4162 * composite.c (composition_compute_stop_pos): Fix condition for
4163 backward scanning.
4164
e5458003
GM
41652010-05-25 Glenn Morris <rgm@gnu.org>
4166
c345fe90
GM
4167 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4168 Move before TEMACS_LDFLAGS.
4169 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4170 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4171
2e0689ab
GM
4172 * Makefile.in (NOT_C_CODE): No longer define.
4173 (config.h): No longer include.
4174
8009a5e8
GM
4175 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4176 variables it may reference.
4177
e5458003
GM
4178 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4179 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4180
10f72a37
KH
41812010-05-25 Kenichi Handa <handa@m17n.org>
4182
4183 * dispextern.h (struct composition_it): New members rule_idx and
4184 charpos.
4185
4186 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4187 that the character positions of IT point the last character of the
4188 current grapheme cluster.
4189 (next_element_from_composition): Don't change character positions
4190 of IT.
4191 (append_composite_glyph): Set glyph->charpos to
4192 it->cmp_it.charpos.
4193
4194 * composite.c (autocmp_chars): Change the first argument to RULE,
4195 and try composition with RULE only.
4196 (composition_compute_stop_pos): Record the index number of the
4197 composition rule in CMP_IT->rule_idx.
4198 (composition_reseat_it): Call autocmp_chars repeatedly until the
4199 correct rule of the composition is found.
4200 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4201 is at the last character of the current grapheme cluster when
4202 CMP_IT->reversed_p is nonzero.
4203
171eda53 42042010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4205
171eda53
SM
4206 * editfns.c (Fbyte_to_string): New function.
4207
66a9f7f4
SM
42082010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4209
4210 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4211 Suggested by Masatake YAMATO <yamato@redhat.com>.
4212
d8c315d1
EZ
42132010-05-23 Eli Zaretskii <eliz@gnu.org>
4214
171eda53 4215 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4216
f5b416d2 42172010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4218
4219 * s/netbsd.h: If terminfo is found, use it in preference to
4220 termcap. (Bug#6190) [Backport from trunk]
4221
0416466c
EZ
42222010-05-19 Eli Zaretskii <eliz@gnu.org>
4223
11117830 4224 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4225
4226 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4227 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4228 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4229 and maxpos members instead of start.pos and end.pos, respectively.
4230
4231 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4232 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4233 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4234 (try_window_reusing_current_matrix, try_window_id):
4235 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4236 (init_from_display_pos, init_iterator): Use EMACS_INT for
4237 character and byte positions.
66a9f7f4 4238 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4239 arguments for minimum and maximum buffer positions seen by
4240 display_line for this row. Don't use iterator to find the
4241 position following the maximum one; instead, increment the
11117830
EZ
4242 position found by display_line directly. Fix logic; eol_pos
4243 should be tested before the rest. Handle the case of characters
4244 delivered from display vector (bug#6036). Fix tests related to
4245 it->method. Handle the truncated_on_right_p rows.
4246 (RECORD_MAX_MIN_POS): New macro.
4247 (display_line): Use it to record the minimum and maximum buffer
4248 positions for glyphs in the row being assembled. Record the
4249 position of the newline that terminates the line. If word wrap is
4250 in effect, restore minimum and maximum positions seen up to the
4251 wrap point, when iterator returns to it.
4252 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4253 row and cursor not already at point. Restore original pre-bidi
4254 code for unidirectional buffers.
d36fe237
EZ
4255
4256 * dispnew.c (increment_row_positions, check_matrix_invariants):
4257 Increment and check row->start.pos and row->end.pos, in addition
4258 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4259
11117830
EZ
4260 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4261 Display truncated_on_left_p and truncated_on_right_p flags.
4262 Formatting fixes.
4263 (pmtxrows): Display the ordinal number of each row. Don't display
4264 rows beyond the last one.
4265
4266 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4267 it is not copied by bidi_copy_it.
4268
6e83d800
EZ
42692010-05-22 Eli Zaretskii <eliz@gnu.org>
4270
4271 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4272 (Bug#6237)
4273
110683ad
CY
42742010-05-22 Chong Yidong <cyd@stupidchicken.com>
4275
4276 * image.c (Fimage_flush): Rename from image-refresh.
4277
98fe5161
CY
42782010-05-21 Chong Yidong <cyd@stupidchicken.com>
4279
4280 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4281 just one window.
4282
4283 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4284 (clear_image_cache): If the number of cached images is unusually
4285 large, decrease the cache eviction delay (Bug#6230).
4286
e8752c66
GM
42872010-05-21 Glenn Morris <rgm@gnu.org>
4288
66dbf213
GM
4289 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4290 Move these rules to ns.mk.
4291 * ns.mk: New file.
4292
04384b2d
GM
4293 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4294
e8752c66
GM
4295 * Makefile.in (CANNOT_DUMP): New, set by configure.
4296 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4297
2e2bbddb
JL
42982010-05-20 Juri Linkov <juri@jurta.org>
4299
4300 * fileio.c (Fdelete_file): Change interative spec to use
4301 `read-file-name' like in `find-file-read-args' where the default
4302 value is `default-directory' instead of `buffer-file-name'.
4303 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4304
31c4aaf6
KR
43052010-05-20 Kevin Ryde <user42@zip.com.au>
4306
4307 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4308 (Voverriding_terminal_local_map, Vsystem_key_alist)
4309 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4310
9d5cf9b6
GM
43112010-05-20 Glenn Morris <rgm@gnu.org>
4312
4313 * Makefile.in (DEPDIR): New constant.
4314 (DEPFLAGS): Set with configure, not cpp.
4315 (MKDEPDIR): New, set by configure.
4316 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4317 (clean): Use $DEPDIR.
4318 (deps_frag): Include from configure.
4319 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4320 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4321
ead6f8f5
EZ
4322 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4323 reallocation of the cache. (Bug#6210)
4324
7f34aec3
GM
43252010-05-19 Glenn Morris <rgm@gnu.org>
4326
d494e8f2
GM
4327 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4328
c1d0dcfd
GM
4329 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4330 (GNULIB_VAR): Remove.
4331 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4332
4333 * m/ibms390x.h (LINKER):
4334 * m/macppc.h (LINKER) [GNU_LINUX]:
4335 * s/aix4-2.h (ORDINARY_LINK):
4336 * s/cygwin.h (LINKER):
4337 * s/darwin.h (ORDINARY_LINK):
4338 * s/gnu.h (ORDINARY_LINK):
4339 * s/netbsd.h (LINKER):
4340 * s/usg5-4.h (ORDINARY_LINK):
4341 Move to configure.
4342
7f34aec3
GM
4343 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4344
754790b6
CY
43452010-05-18 Chong Yidong <cyd@stupidchicken.com>
4346
4347 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4348 prevent stack overflow if number of arguments is too large
4349 (Bug#6214).
4350
161e44d1
JB
43512010-05-18 Juanma Barranquero <lekktu@gmail.com>
4352
4353 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4354
be4ff9da
GM
43552010-05-18 Glenn Morris <rgm@gnu.org>
4356
9539dc5d
GM
4357 * s/gnu-linux.h: Combine two conditionals.
4358
4359 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4360 $(POST_ALLOC_OBJ).
4361
40dc6bf4
GM
4362 * Makefile.in (RALLOC_OBJ): New, set by configure.
4363 (rallocobj): Replace with the previous variable.
4364 (otherobj): Use $RALLOC_OBJ.
4365
4366 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4367 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4368
be4ff9da
GM
4369 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4370 (gmallocobj, vmlimitobj): Replace with previous two variables.
4371 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4372
16455a85
GM
43732010-05-17 Glenn Morris <rgm@gnu.org>
4374
4375 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4376 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4377
5fdb7468
GM
43782010-05-16 Glenn Morris <rgm@gnu.org>
4379
7ca1f3f9
GM
4380 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4381
7541dad5
GM
4382 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4383
da53fab9
GM
4384 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4385 trailing "/".
4386
b02a6645
GM
4387 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4388 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4389
8877ca0f
GM
4390 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4391 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4392 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4393 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4394 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4395
5fdb7468
GM
4396 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4397 Remove ${STARTFLAGS}, nothing ever sets it.
4398
95adb4b1
DN
43992010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4400
4401 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4402
676b6304
GM
44032010-05-16 Glenn Morris <rgm@gnu.org>
4404
9beab9ce
GM
4405 * Makefile.in (LIBX_BASE): Always define.
4406
8a95f0e7
GM
4407 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4408
676b6304
GM
4409 * Makefile.in (LIBXT): Always define.
4410
6e546d18
GM
44112010-05-15 Glenn Morris <rgm@gnu.org>
4412
4235ca47 4413 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4414
6e546d18
GM
4415 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4416 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4417
8c5ff6dd
KR
44182010-05-15 Ken Raeburn <raeburn@raeburn.org>
4419
560bb7ae 4420 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4421 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4422
8b4eb796
KR
4423 * emacs.c (main): Initialize initial-environment and
4424 process-environment before generating from env, not after.
4425
8c5ff6dd
KR
4426 Handle --version reasonably in CANNOT_DUMP configuration.
4427 * emacs.c (emacs_version, emacs_copyright): New string variables.
4428 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4429 (syms_of_emacs): Defvar them, and initialize them from the C
4430 string variables.
4431 (main): If initialization hasn't been done, print initial version
4432 info from the C strings, instead of starting an interactive session.
4433
dbd3f723
EZ
44342010-05-15 Eli Zaretskii <eliz@gnu.org>
4435
d20e1419
EZ
4436 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4437 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4438 (bidi_paragraph_init): Remove redundant assertion that we are at
4439 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4440
4441 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4442 (syms_of_xdisp): Defsubr it.
4443
d36fe237
EZ
4444 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4445
dbd3f723
EZ
4446 * Makefile.in: Fix MSDOS-related comments.
4447
02be533b
GM
44482010-05-15 Glenn Morris <rgm@gnu.org>
4449
1a82cca9
GM
4450 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4451 (really-lwlib, really-oldXMenu): Always define.
4452 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4453
3df7b338
GM
4454 * Makefile.in: Simplify cpp conditional.
4455
2b5f541b
GM
4456 * Makefile.in (${ns_appdir}): Simplify using umask.
4457
02be533b
GM
4458 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4459
4e2db1fe
SM
44602010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4461
4462 * eval.c (specbind): Remove left-over duplicate test.
4463 Disallow let-binding frame-local vars. Add comment.
4464
4b292a22
EZ
44652010-05-14 Eli Zaretskii <eliz@gnu.org>
4466
2fe72643 4467 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4468 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4469 (bidi_init_it): Call it.
4470 (bidi_cache_iterator_state): Enlarge the cache if needed.
4471
4e2db1fe 4472 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4473 bidi_get_next_char_visually. All callers changed.
4474
82ebc97b
KH
44752010-05-14 Kenichi Handa <handa@m17n.org>
4476
4477 * dispextern.h (struct composition_it): New member reversed_p.
4478
4479 * composite.c (composition_compute_stop_pos): Search backward if
4480 ENDPOS < CHARPOS.
4481 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4482 Set CMP_IT->reversed_p.
b4b6e17e 4483 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4484
4e2db1fe
SM
4485 * xdisp.c (set_iterator_to_next):
4486 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4487 scanning backward. Call composition_compute_stop_pos if scan
4488 direction is changed.
4489 (next_element_from_buffer): Call composition_compute_stop_pos with
4490 negative ENDPOS if we are scanning backward.
4491 (next_element_from_composition): Pay attention to
4492 IT->cmp_it.reversed_p.
4493
0e5d7800
KH
44942010-05-14 Kenichi Handa <handa@m17n.org>
4495
560bb7ae 4496 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4497
cb027b32
GM
44982010-05-14 Glenn Morris <rgm@gnu.org>
4499
177b0288
GM
4500 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4501
fbc00890
GM
4502 * Makefile.in (mktime, X11, register): Move undefs to configure.
4503
f14d1dfd
GM
4504 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4505 (MSDOS_X_OBJ): New variable.
4506 (MSDOS_SUPPORT_REAL): New constant.
4507 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4508 (obj): Use MSDOS_X_OBJ.
4509 (lisp): Use MSDOS_SUPPORT as a variable.
4510
11842bd8
GM
4511 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4512 (GPM_MOUSE_SUPPORT): Now it's a constant.
4513 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4514 not cpp.
4515
489d31a4 4516 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4517 (ns_appresdir): Remove, unused.
e20f1f07 4518
489d31a4
GM
4519 * Makefile.in (SHELL): Move outside cpp section.
4520
cb027b32
GM
4521 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4522
5a903aa9
GM
45232010-05-13 Glenn Morris <rgm@gnu.org>
4524
3369c79f
GM
4525 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4526 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4527
d5e982a6
GM
4528 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4529 HAVE_WINDOW_SYSTEM must be too.
4530
6192e163
GM
4531 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4532 (lisp): Remove WINNT_SUPPORT.
4533
472c5d6b
GM
4534 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4535 Let configure set these variables (to empty) in this case as well.
4536
0116466b
GM
4537 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4538 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4539
5a903aa9
GM
4540 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4541 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4542 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4543 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4544 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4545 the values output by configure.
5a903aa9
GM
4546 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4547
1a0d7c06
GM
45482010-05-12 Glenn Morris <rgm@gnu.org>
4549
b5457f14
GM
4550 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4551 (LINKER_WAS_SPECIFIED): Remove.
4552
1a0d7c06
GM
4553 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4554 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4555 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4556 * s/cygwin.h (LIB_GCC):
4557 * s/freebsd.h (LIB_GCC):
4558 * s/gnu-linux.h (LIB_GCC):
4559 * s/msdos.h (LIB_GCC):
4560 * s/netbsd.h (LIB_GCC):
4561 Move to configure.
4562
3ffd4615 45632010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4564
4565 * ftfont.c: Fix incorrect parentheses of #if condition for
4566 definining M17N_FLT_USE_NEW_FEATURE.
4567
acddf8ae
GM
45682010-05-11 Glenn Morris <rgm@gnu.org>
4569
4570 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4571 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4572
ae5e04fa
EZ
45732010-05-10 Eli Zaretskii <eliz@gnu.org>
4574
4575 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4576 unibyte buffers. See
4577 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4578
7490175b
GM
45792010-05-10 Glenn Morris <rgm@gnu.org>
4580
97efb629
GM
4581 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4582 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4583 (LIBES): Use LIBS_SYSTEM as a variable.
4584 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4585 * s/aix4-2.h (LIBS_SYSTEM):
4586 * s/freebsd.h (LIBS_SYSTEM):
4587 * s/hpux10-20.h (LIBS_SYSTEM):
4588 * s/sol2-6.h (LIBS_SYSTEM):
4589 * s/unixware.h (LIBS_SYSTEM):
4590 Move to configure.
4591
7490175b
GM
4592 * s/aix4-2.h (MAIL_USE_LOCKF):
4593 * s/bsd-common.h (MAIL_USE_FLOCK):
4594 * s/darwin.h (MAIL_USE_FLOCK):
4595 * s/gnu-linux.h (MAIL_USE_FLOCK):
4596 * s/irix6-5.h (MAIL_USE_FLOCK):
4597 * s/template.h (MAIL_USE_FLOCK):
4598 Move to configure.
4599
0235128c 46002010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4601
4602 * Version 23.2 released.
4603
0235128c 46042010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4605
4606 * composite.c (autocmp_chars): Save point as marker before calling
4607 auto-composition-function (Bug#5984).
4608
4609 * lisp.h (restore_point_unwind): Add prototype.
4610
4611 * fileio.c (restore_point_unwind): Remove static attribute.
4612
0235128c 46132010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4614
4615 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4616 new feature of libotf and m17n-flt.
0235128c
SM
4617 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4618 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4619 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4620 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4621 that OUT is NULL. Use OTF_drive_gsub_with_log and
4622 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4623 OTF_drive_gpos.
4624 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4625 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4626 Setup mflt_enable_new_feature and mflt_try_otf.
4627
4721152c
J
46282010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4629
4630 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4631
4632 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4633 box and toolbar (Bug #6139).
4634 (xg_create_tool_bar): Remove comment (Bug #6139).
4635 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4636 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4637
ee0a16cf
JB
46382010-05-08 Juanma Barranquero <lekktu@gmail.com>
4639
4640 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4641 Update dependencies.
4642
96d79611
EZ
46432010-05-08 Eli Zaretskii <eliz@gnu.org>
4644
4645 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4646 R2L lines.
4647
40c17879
GM
46482010-05-08 Glenn Morris <rgm@gnu.org>
4649
7b42b29f
GM
4650 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4651
40c17879
GM
4652 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4653 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4654 (termcapobj): Replace with TERMCAP_OBJ.
4655 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4656 (LIBES): Use LIBS_TERMCAP as a variable.
4657
4658 * s/freebsd.h (osreldate.h): No longer include, since this file
4659 does not use __FreeBSD_version any more.
4660
4661 * s/aix4-2.h (TERMINFO):
4662 * s/cygwin.h (TERMINFO):
4663 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4664 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4665 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4666 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4667 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4668 * s/irix6-5.h (TERMINFO):
4669 * s/netbsd.h (LIBS_TERMCAP):
4670 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4671 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4672 * s/usg5-4.h (TERMINFO):
4673 Move to configure.
4674
94b612ad
SM
46752010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4676
4677 * eval.c (unbind_to): Don't unbind a local binding into the global
4678 binding when the local binding disappeared. Inversely, don't unbind
4679 a global binding into a newly created local binding.
4680 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4681 can specify the frame to use, when applicable. Adjust callers.
4682
15e12598 46832010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4684 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4685
4686 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4687
f724825e
EZ
46882010-05-07 Eli Zaretskii <eliz@gnu.org>
4689
5cba3209
EZ
4690 * w32fns.c: Include w32.h.
4691 (Fw32_shell_execute): Decode the error message before passing it
4692 to `error'. (Bug#6126)
4693
d16bdfc3
EZ
4694 * msdos.c (dos_set_window_size):
4695 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4696 instead of `XSYMBOL (foo)->value'.
4697
59d93e87
EZ
46982010-05-07 Eli Zaretskii <eliz@gnu.org>
4699
9fdec8bc
EZ
4700 Fix the MS-DOS build, broken by autoconfiscation.
4701
4702 * Makefile.in: Don't use Make-style comments past the "start of
4703 cpp stuff" line.
4704 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4705
4706 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4707 edited directly by msdos/sed1v2.inp).
f724825e 4708
2f86b22b
GM
47092010-05-07 Glenn Morris <rgm@gnu.org>
4710
4711 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4712 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4713 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4714 move out of cpp section.
4715 * s/freebsd.h (LD_SWITCH_SYSTEM):
4716 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4717 * s/netbsd.h (LD_SWITCH_SYSTEM):
4718 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4719
49ebbd65
DN
47202010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4721
4722 Define LIB_STANDARD and START_FILES using autoconf.
4723 * s/usg5-4.h (LIB_STANDARD):
4724 * s/netbsd.h (START_FILES):
4725 * s/irix6-5.h (LIB_STANDARD):
4726 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4727 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4728 * s/freebsd.h (START_FILES):
4729 * s/darwin.h (START_FILES):
4730 * s/cygwin.h (START_FILES):
4731 * s/aix4-2.h (LIB_STANDARD):
4732 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4733 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4734 autoconf, not cpp.
4735
d43c06d6
DN
47362010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4737
28823648
DN
4738 Remove NEED_BSDTTY and NEED_UNISTD_H.
4739 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4740 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4741 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4742 <sys/ptyio.h> and <unistd.h>.
4743
aca00430
DN
4744 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4745
d43c06d6
DN
4746 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4747 * s/gnu.h (START_FILES): Remove empty definition.
4748
3e56b11d
JD
47492010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4750
4751 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4752
e3cf0cde
GM
47532010-05-06 Glenn Morris <rgm@gnu.org>
4754
4755 * Makefile.in (CPP, LN_S): Remove unused variables.
4756
774b9a60
SM
47572010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4758
4759 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4760
4ab92842
LM
47612010-05-05 Lawrence Mitchell <wence@gmx.li>
4762
4763 * m/sparc.h: Fix typo in earlier change.
4764
178f2507
SM
47652010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4766
4767 Misc tweaks.
4768 * eval.c (Fdefvaralias): Remove unintended nested if.
4769 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4770
80f00217 47712010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4772
4773 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4774
ef03a4e6
DN
47752010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4776
58eb6cf0
DN
4777 Remove BSD_PGRPS.
4778 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4779 * s/gnu-linux.h (BSD_PGRPS): Remove.
4780 * term.c (dissociate_if_controlling_tty):
4781 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4782 (init_sys_modes, reset_sys_modes):
4783 * emacs.c (main):
4784 * callproc.c (Fcall_process, child_setup): Remove code depending
4785 on BSD_PGRPS.
4786
ef03a4e6
DN
4787 Remove POSIX_SIGNALS.
4788 * s/usg5-4.h (POSIX_SIGNALS):
4789 * s/netbsd.h (POSIX_SIGNALS):
4790 * s/msdos.h (POSIX_SIGNALS):
4791 * s/ms-w32.h (POSIX_SIGNALS):
4792 * s/hpux11.h (POSIX_SIGNALS):
4793 * s/gnu.h (POSIX_SIGNALS):
4794 * s/gnu-linux.h (POSIX_SIGNALS):
4795 * s/freebsd.h (POSIX_SIGNALS):
4796 * s/darwin.h (POSIX_SIGNALS):
4797 * s/cygwin.h (POSIX_SIGNALS):
4798 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4799 * s/unixware.h:
4800 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4801 * process.c (create_process):
4802 * syssignal.h:
4803 * sysdep.c (wait_for_termination, init_signals):
4804 * process.c (create_process):
4805 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4806 remove all code that assumes the contrary.
4807
49628785
GM
48082010-05-04 Glenn Morris <rgm@gnu.org>
4809
27a2cdfc
GM
4810 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4811 variable.
4812 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4813 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4814 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4815 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4816 LD_SWITCH_SYSTEM_tmp.
4817 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4818 New variables, set by configure.
4819
eb21eab5
GM
4820 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4821 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4822 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4823 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4824 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4825
49628785
GM
4826 * s/aix4-2.h (C_SWITCH_SYSTEM):
4827 * m/alpha.h (C_SWITCH_MACHINE):
4828 Move to configure.in.
4829 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4830 New variables, set by configure.
4831 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4832 $c_switch_machine and $c_switch_system.
4833
7dff330b
DN
48342010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4835
4836 * s/hpux10-20.h (LIB_STANDARD): New definition.
4837 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4838 on it, not used anymore.
4839
53967e09
CY
48402010-05-03 Chong Yidong <cyd@stupidchicken.com>
4841
4842 * eval.c (internal_condition_case_n): Rename from
4843 internal_condition_case_2.
4844 (internal_condition_case_2): New function.
4845
4846 * xdisp.c (safe_call): Use internal_condition_case_n.
4847
4848 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4849 (internal_delete_file, Frename_file): Callers changed.
4850
4851 * buffer.c (Fkill_buffer):
4852 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4853
4854 * lisp.h: Update prototypes.
4855
3dee6fdb
GM
48562010-05-03 Glenn Morris <rgm@gnu.org>
4857
4858 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4859 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4860 (LIBXT): Set with configure, not cpp.
4861 (LIBX): Remove.
4862 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4863
a101e0fb
DN
48642010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4865
4866 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4867 The FreeBSD is not needed, the default works, Solaris version is
4868 not needed, and the remaining case is not supported by configure.
4869
f63d0028
JD
48702010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4871
4872 * xsmfns.c (CHDIR_OPT): New define.
4873 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4874 restarting emacs.
4875
4876 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4877 shut_down_emacs.
4878
4879 * emacs.c (USAGE1): Mention --chdir.
4880 (main): Handle --chdir.
4881 (standard_args): Add --chdir.
4882 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4883 #5552).
4884
e4814a9f
DN
48852010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4886
cd03c74a
DN
4887 Remove LD_SWITCH_MACHINE.
4888 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4889 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4890
c3a398a1
DN
4891 Clean up IRIX code.
4892 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4893 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4894
87e7285c
DN
4895 Clean up AIX code.
4896 * m/ibmrs6000.inp: Remove file, unused.
4897 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4898 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4899 definition ...
4900 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4901
80f00217
JB
4902 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4903 unused.
e4814a9f 4904
59ca28de
EZ
49052010-05-01 Eli Zaretskii <eliz@gnu.org>
4906
197daef4
EZ
4907 Emulate POSIX_SIGNALS on MS-Windows.
4908
4909 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4910 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4911
4912 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4913 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4914 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4915
80f00217
JB
4916 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4917 New stubs.
197daef4 4918
af7c7572
EZ
4919 Miscellaneous fixes of bidi display.
4920
59ca28de
EZ
4921 * xdisp.c (find_row_end): New function, refactored from display_line.
4922 (display_line): Use it.
017ea819
EZ
4923 (extend_face_to_end_of_line): In almost-filled rows, extend only
4924 if the row is R2L and not continued.
166e930d 4925 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4926 Preserve overlay and string info in row->end.
166e930d
EZ
4927 (insert_left_trunc_glyphs): Support addition of left truncation
4928 glyphs to R2L rows.
b47e0dcf 4929 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4930 glyph between adjacent windows. Fix a crash when a display string
4931 is continued to the next line. Don't return zero if cursor was
4932 found by `cursor' property of a display string.
b47e0dcf
EZ
4933 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4934 test for that explicitly.
59ca28de 4935
7acac9f4
GM
49362010-05-01 Glenn Morris <rgm@gnu.org>
4937
4938 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4939 for clarity.
4940 (OTHER_OBJ): Remove.
4941 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4942 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4943
45841e65
KK
49442010-05-01 Karel Klíč <kklic@redhat.com>
4945
4946 * fileio.c (Ffile_selinux_context): Context functions may return null.
4947
afc61943
DN
49482010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4949
80f00217 4950 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4951
5a1bb006
GM
49522010-04-30 Glenn Morris <rgm@gnu.org>
4953
4954 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4955 (OTHER_OBJ): Define as a separate variable, for clarity.
4956
210af043
J
49572010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4958
4959 * xsettings.c: include limits.h and update file comment.
4960
0a7df391
GM
49612010-04-30 Glenn Morris <rgm@gnu.org>
4962
d5096f16
GM
4963 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4964 Set with configure, not cpp.
4965 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4966
7eb1ac33
GM
4967 * Makefile.in (mallocobj): Remove.
4968 (otherobj): Simplify using @OTHER_OBJ@.
4969
517d086b
GM
4970 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4971 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4972 Don't bother making nsgui.h dependency platform-specific.
4973
0a7df391
GM
4974 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4975
d6d23852
SM
49762010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4977
d2630aef
SM
4978 * process.c (read_process_output, exec_sentinel): Don't burp if the
4979 sentinel/filter kills the current buffer (bug#6060).
4980
f9dddf52 4981 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4982 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4983 Remove unused var `args'.
4984 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4985 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4986 * doc.c (store_function_docstring): Use XSETCAR.
4987
f1e3642a
GM
49882010-04-28 Glenn Morris <rgm@gnu.org>
4989
faf535f8
GM
4990 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4991 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4992
c40f9449
GM
4993 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4994
658f86ca
GM
4995 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4996 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4997
bc0b5f61
GM
4998 * Makefile.in (FONT_OBJ): New, set by configure.
4999 (FONT_DRIVERS): Use $FONT_OBJ.
5000
294c50a0
GM
5001 * Makefile.in (LIBXMU): Set with configure, not cpp.
5002 * s/aix4-2.h (LIBXMU):
5003 * s/hpux10-20.h (LIBXMU):
5004 Remove definition, now set in configure.
5005
e6ec4e99
GM
5006 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5007
f1e3642a
GM
5008 * m/amdx86-64.h [i386]: Move this test to configure.in.
5009
c6ea2936
GM
50102010-04-27 Glenn Morris <rgm@gnu.org>
5011
8fdac2c3
GM
5012 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5013 * s/unixware.h (NEED_LIBW): Remove definition.
5014
986fb647
GM
5015 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5016 (TOOLKIT_LIBW): New, set by configure.
5017 (@X_TOOLKIT_TYPE@): No longer define it.
5018
c6ea2936
GM
5019 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5020 (MOTIF_LIBW): Set with configure, not cpp.
5021 * s/aix4-2.h (LIB_MOTIF):
5022 * s/gnu-linux.h (LIB_MOTIF):
5023 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5024
aaa36002
DN
50252010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5026
5027 Reduce CPP usage.
5028 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5029 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
5030 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5031 definitions and undefs. Inline definitions in the only user.
5032 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 5033
b678dd8b
GM
50342010-04-27 Glenn Morris <rgm@gnu.org>
5035
76cda504
GM
5036 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5037 since the defaults (set by the system file) are fine in most cases.
5038 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5039 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5040 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5041 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5042 Remove definitions, since they are set correctly in s/gnu-linux.h.
5043 * s/freebsd.h (START_FILES, LIB_STANDARD):
5044 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5045 * s/hpux10-20.h (START_FILES):
5046 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5047 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5048
b678dd8b
GM
5049 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5050 (MOTIF_LIBW): Use $LIBXP.
5051 (otherobj): Use $WIDGET_OBJ.
5052
9452ded1
DN
50532010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5054
7e10844c
DN
5055 * Makefile.in (LIBS_MACHINE): Remove, unused.
5056
9452ded1
DN
5057 Use autoconf instead of cpp for LIB_MATH.
5058 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5059 * s/cygwin.h (LIB_MATH): Likewise.
5060 * Makefile.in (LIB_MATH): Do not define with cpp.
5061 (LIBES): Use autoconf for LIB_MATH.
5062
fcebfc6a
KH
50632010-04-26 Kenichi Handa <handa@m17n.org>
5064
5065 * composite.c (Ffind_composition_internal): Fix the return value
5066 for an automatic composition.
5067
39e2ad1b
DN
50682010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 Remove all NO_ARG_ARRAY uses.
5071 * fns.c (concat2, concat3, nconc2):
5072 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5073 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5074 * m/xtensa.h (NO_ARG_ARRAY):
5075 * m/template.h (NO_ARG_ARRAY):
5076 * m/sparc.h (NO_ARG_ARRAY):
5077 * m/sh3.h (NO_ARG_ARRAY):
5078 * m/mips.h (NO_ARG_ARRAY):
5079 * m/macppc.h (NO_ARG_ARRAY):
5080 * m/iris4d.h (NO_ARG_ARRAY):
5081 * m/intel386.h (NO_ARG_ARRAY):
5082 * m/ibms390x.h (NO_ARG_ARRAY):
5083 * m/ibms390.h (NO_ARG_ARRAY):
5084 * m/ibmrs6000.h (NO_ARG_ARRAY):
5085 * m/ia64.h (NO_ARG_ARRAY):
5086 * m/hp800.h (NO_ARG_ARRAY):
5087 * m/arm.h (NO_ARG_ARRAY):
5088 * m/amdx86-64.h (NO_ARG_ARRAY):
5089 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5090
adf4f59c
EZ
50912010-04-25 Eli Zaretskii <eliz@gnu.org>
5092
6bdf5d65
EZ
5093 * xdisp.c (display_line): Don't assume 2nd call to
5094 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
5095 (iterate_out_of_display_property): New function, body from pop_it.
5096 (pop_it): Use it.
adf4f59c 5097
dfbbda83
GM
50982010-04-24 Glenn Morris <rgm@gnu.org>
5099
5100 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5101 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5102 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5103 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5104
2d4018aa
EZ
51052010-04-24 Eli Zaretskii <eliz@gnu.org>
5106
a49884a6
EZ
5107 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5108 use `get_next_display_element' and `set_iterator_to_next' to
5109 advance to the next character, when looking for the character that
5110 begins the next row.
5111
76db6fcc 5112 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5113 definition of "struct Lisp_Symbol".
5114
70eab5c1
GM
51152010-04-24 Glenn Morris <rgm@gnu.org>
5116
5117 * Makefile.in (CRT_DIR): New variable, set by configure.
5118 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5119 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5120
1ad4cc3d
DN
51212010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5122
e769f484
DN
5123 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5124
4196ff33
DN
5125 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5126
879b0ee4
DN
5127 Remove redundant flags.
5128 * s/freebsd.h (C_SWITCH_SYSTEM):
5129 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5130 * s/netbsd.h (C_SWITCH_SYSTEM):
5131 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5132 of these.
5133
03cbbcb8
DN
5134 Simplify m/intel386.h.
5135 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5136 user: ecrt0.c.
5137 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5138 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5139 the only user: s/unixware.h.
5140 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5141 from m/intel386.h.
5142 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5143 moved here from m/intel386.h.
5144
1ad4cc3d
DN
5145 * m/mips.h: Remove #if 0 code.
5146
8785b888
EZ
51472010-04-23 Eli Zaretskii <eliz@gnu.org>
5148
728588cc
EZ
5149 Fix display of composed characters from L2R scripts in bidi buffers.
5150 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5151 After advancing IT past the composition, resync the bidi iterator
5152 with IT's position. (Bug#5977)
5153
a63f80b4
DN
51542010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5155
5156 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5157 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5158
ff5dec5c
SM
51592010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5160
5161 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5162
8785b888
EZ
51632010-04-23 Eli Zaretskii <eliz@gnu.org>
5164
58ccf243 5165 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5166 * xdisp.c (pop_it): When the stack is popped after displaying
5167 from a string, bidi-iterate to exit from the text portion covered
5168 by the `display' property or overlay. (Bug#5988, bug#5920)
5169
feeb1604
DN
51702010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5171
8e324eb6
DN
5172 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5173 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5174
809fcaba
DN
5175 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5176 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5177
ed710380
DN
5178 Simplify STARTFILES definition.
5179 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5180 relying on Makefile.in to define it.
5181 * s/cygwin.h (START_FILES): Likewise.
5182 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5183
feeb1604
DN
5184 Clean up Solaris code.
5185 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5186 (LIB_MOTIF): Remove, configure takes care of this.
5187 (NOT_USING_MOTIF): Remove, unused.
5188 * xrdb.c: Remove #if 0-ed #include.
5189 (SYSV): Remove conditional for old SysV.
5190 * sysdep.c (closedir): Remove conditional code for Solaris,
5191 Solaris has closedir.
5192
a0d0b563
JD
51932010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5194
5195 * xsettings.c (read_and_apply_settings): Check if current_font is
5196 NULL before strcmp (Bug#6001).
5197
56bae7c7
DN
51982010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5199
5200 Clean up HP-UX files.
5201 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5202 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5203 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5204 * s/hpux10-20.h: ... to the only user, here.
5205
372b7a95
EZ
52062010-04-21 Eli Zaretskii <eliz@gnu.org>
5207
5208 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5209 use buffer-local values of paragraph-start and paragraph-separate.
5210 <paragraph_start_re, paragraph_separate_re>: Rename from
5211 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5212 (Bug#5992)
5213
f904c0f9
JD
52142010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5215
5216 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5217 current_tool_bar_style are new.
5218 (store_config_changed_event): Rename from store_font_changed_event.
5219 (XSETTINGS_TOOL_BAR_STYLE): New define.
5220 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5221 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5222 HAVE_XFT.
5223 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5224 store_config_changed_event.
f904c0f9
JD
5225 (parse_settings): Rename from parse_xft_settings. Read
5226 non-xft xsettings outside #ifdef HAVE_XFT.
5227 (read_settings): Renamed from read_xft_settings.
5228 (apply_xft_settings): Take current settings as parameter. Do not
5229 call read_(xft)_settings.
5230 (read_and_apply_settings): New function.
5231 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5232 read_and_apply_settings if there are settings to be read.
5233 (init_xsettings): Renamed from init_xfd_settings.
5234 Call read_and_apply_settings unconditionally.
5235 (xsettings_initialize): Call init_xsettings.
5236 (Ftool_bar_get_system_style): New function.
5237 (syms_of_xsettings): Define Qmonospace_font_name and
5238 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5239 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5240 dynamic-setting.
31a01b90 5241 Move misplaced HAVE_GCONF
f904c0f9
JD
5242
5243 * xsettings.h (Ftool_bar_get_system_style): Declare.
5244
5245 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5246 Qtext, Qboth, Qboth_horiz are new.
5247 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5248 Vtool_bar_style, tool_bar_max_label_size.
5249
5250 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5251
5252 * keyboard.c: QClabel is new.
5253 (parse_tool_bar_item): Take out QClabel from tool bar items.
5254 Try to construct a label if ther is no QClabel.
5255 (syms_of_keyboard): Intern :label as QClabel.
5256
5257 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5258 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5259 New.
5260
5261 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5262 dynamic-setting.el.
5263
5264 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5265 (xg_make_tool_item, xg_show_toolbar_item): New function.
5266 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5267 Call xg_make_tool_item to make a tool bar item.
5268 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5269
5270 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5271 into account for toolbars.
5272
c632dfda
JD
52732010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5274
5275 * data.c (make_blv): Declarations before code (Bug#5993).
5276
10efe302
GM
52772010-04-21 Glenn Morris <rgm@gnu.org>
5278
5279 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5280 Define using autoconf, not cpp.
5281 (LIBXSM): New variable, set by autoconf.
5282 (LIBXT): Use $LIBXSM.
5283
4285ac5a
DN
52842010-04-21 Dan Nicolaescu <local_user@dannlt>
5285
3ec759e7
DN
5286 Remove NOMULTIPLEJOBS, unused.
5287 * s/template.h (NOMULTIPLEJOBS):
5288 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5289
4285ac5a
DN
5290 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5291 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5292 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5293 detects -znocombreloc and passes it to the linker
5294 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5295
2807228d
GM
52962010-04-21 Glenn Morris <rgm@gnu.org>
5297
5298 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5299
574c05e2
KK
53002010-04-21 Karel Klíč <kklic@redhat.com>
5301
5302 * Makefile.in (LIBSELINUX_LIBS): New.
5303 (LIBES): Add $LIBSELINUX_LIBS.
5304 * eval.c, lisp.h (call7): New function.
5305 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5306 (Ffile_selinux_context, Fset_file_selinux_context):
5307 New functions.
5308 (Fcopy_file): New parameter preserve-selinux-context.
5309 (Frename_file): Preserve selinux context when renaming by copy-file.
5310
91eac4bb 53112010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5312 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5313
50426a04
JB
5314 Don't depend on cm.c or termcap.c on Windows, use stubs.
5315 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5316 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5317 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5318 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5319 (sys_tputs, sys_tgetstr): New stubs.
5320 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5321 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5322
938efb77
JB
53232010-04-20 Juanma Barranquero <lekktu@gmail.com>
5324
5325 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5326
b4bf28b7
SM
53272010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5328
8b1e1112
SM
5329 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5330 Just signal a warning rather than an error when inside a let.
5331 (Fmake_variable_frame_local): Add the same test.
5332
933ac235
SM
5333 * font.c (syms_of_font): Make the style table vars read-only.
5334
b4bf28b7
SM
5335 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5336 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5337
5338 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5339
93d68d0c
EZ
53402010-04-20 Eli Zaretskii <eliz@gnu.org>
5341
5342 Fix R2L paragraph display on TTY.
5343
5344 * xdisp.c (unproduce_glyphs): New function.
5345 (display_line): Use it when produced glyphs are discarded from R2L
5346 glyph rows.
5347 (append_composite_glyph): In R2L rows, prepend the glyph rather
5348 than appending it.
5349
5350 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5351 rather than append it. Set up the resolved_level and bidi_type
5352 attributes of the appended glyph.
283ccc18
EZ
5353 (produce_special_glyphs): Mirror the backslash continuation
5354 character in R2L lines.
93d68d0c 5355
283ccc18 5356 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5357
283ccc18
EZ
5358 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5359 append_stretch_glyph.
5360 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5361 off-by-one error in computing x at end of text in the row.
5362 (append_stretch_glyph): In reversed row, prepend the glyph rather
5363 than append it. Set resolved_level and bidi_type of the glyph.
5364 (extend_face_to_end_of_line): If the row is reversed, prepend a
5365 stretch glyph whose width is such that the rightmost glyph will be
5366 drawn at the right margin of the window. Fix off-by-one error on
5367 TTY frames in testing whether a line needs face extension. Fix
5368 face extension at ZV. If this is the last glyph row, use
5369 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5370 region face.
5371 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5372 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5373 row->continuation_lines_width.
283ccc18
EZ
5374 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5375 are at ZV. Fixes a crash when reseated to ZV by
5376 try_window_reusing_current_matrix.
45903529
EZ
5377 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5378 which happens with R2L glyph rows. Fixes a crash when inserting a
5379 character at end of an R2L line.
283ccc18
EZ
5380 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5381 treat them as having zero-width characters. Improve comments.
5382 Don't reverse pos_before and pos_after for reversed glyph rows.
5383 Set cursor.x to negative value when the cursor might be on the
5384 left fringe.
5385 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5386 left fringe, not the right one.
f951a506
EZ
5387 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5388 (erase_phys_cursor): For reversed cursor_row, support cursor on
5389 the left fringe.
5390
283ccc18
EZ
5391 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5392 of continuation indicators on the fringes.
5393 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5394 left fringe.
5395
f951a506
EZ
5396 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5397 draw cursor on the left fringe.
5398
5399 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5400 cursor on the left fringe.
5401
f951a506
EZ
5402 * dispnew.c (update_text_area): Handle reversed desired rows when
5403 the cursor is on the left fringe.
5404 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5405 below, not by 0, for when the cursor is on the left fringe.
5406
3bb49aaf
JD
54072010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5408
5409 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5410 widget is a scrollbar.
5411
c0be27fd
KH
54122010-04-20 Kenichi Handa <handa@m17n.org>
5413
5414 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5415 only when the arg CHARSET_LIST is nil.
5416
ce5b453a
SM
54172010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5418
5419 Make variable forwarding explicit rather the using special values.
5420 Basically, this makes the structure of buffer-local values and object
5421 forwarding explicit in the type of Lisp_Symbols rather than use
5422 special Lisp_Objects for that. This tends to lead to slightly more
5423 verbose code, but is more C-like, simpler, and makes it easier to make
5424 sure we handled all cases, among other things by letting the compiler
5425 help us check it.
5426 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5427 Removing forwarding objects.
5428 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5429 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5430 explicit rather than hiding them inside Lisp_Object "values".
5431 (XFWDTYPE): New macro.
5432 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5433 (XBUFFER_LOCAL_VALUE): Remove.
5434 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5435 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5436 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5437 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5438 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5439 Remove the Lisp_Misc_* header.
5440 (struct Lisp_Buffer_Local_Value): Redefine.
5441 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5442 (struct Lisp_Misc_Any): Add filler to get the right size.
5443 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5444 Lisp_Intfwd.
5445 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5446 (DEFVAR_KBOARD): Allocate a forwarding object.
5447 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5448 (let_shadows_global_binding_p): New function.
5449 (union Lisp_Val_Fwd): New type.
5450 (make_blv): New function.
5451 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5452 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5453 (swap_in_symval_forwarding, find_symbol_value, Fset)
5454 (let_shadows_buffer_binding_p, set_internal, default_value)
5455 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5456 (Fkill_local_variable, Fmake_variable_frame_local)
5457 (Flocal_variable_p, Flocal_variable_if_set_p)
5458 (Fvariable_binding_locus):
5459 * xdisp.c (select_frame_for_redisplay):
5460 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5461 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5462 * frame.c (store_frame_param):
5463 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5464 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5465 value structure.
5466 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5467 (clone_per_buffer_values): Only adjust markers into the current buffer.
5468 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5469 (Fbuffer_local_value, set_buffer_internal_1)
5470 (swap_out_buffer_local_variables):
5471 Adapt to the new symbol value structure.
5472 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5473 (defvar_per_buffer): Take a new arg for the fwd object.
5474 (buffer_lisp_local_variables): Return a proper alist (different fix
5475 for bug#4138).
5476 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5477 (Fgarbage_collect): Don't handle buffer_defaults specially.
5478 (mark_object): Handle new symbol value structure rather than the old
5479 special Lisp_Misc_* objects.
5480 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5481 * term.c (set_tty_color_mode):
5482 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5483 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5484 a buffer_local_flags.
5485 * print.c (print_object): Get rid of impossible forwarding objects.
5486
fd3998ff
EZ
54872010-04-19 Eli Zaretskii <eliz@gnu.org>
5488
5489 * bidi.c (bidi_get_type, bidi_get_category)
5490 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5491 (bidi_type_of_next_char, bidi_level_of_next_char):
5492 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5493
e42cd1a7
JB
54942010-04-19 Juanma Barranquero <lekktu@gmail.com>
5495
5496 * dired.c (Ffile_attributes): Fix typo in docstring.
5497
6e104790 54982010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5499
5500 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5501 NSInteger (Bug#5811).
5502
6e104790 55032010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5504
5505 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5506 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5507
6e104790 55082010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5509
5510 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5511
6e104790
SM
55122010-04-19 Chong Yidong <cyd@stupidchicken.com>
5513
5514 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5515 terminal frames (Bug#5837).
5516
37dcfea0
EZ
55172010-04-19 Eli Zaretskii <eliz@gnu.org>
5518
d1da276f
EZ
5519 * .gdbinit (xsubchartable): New command.
5520
37dcfea0
EZ
55212010-04-19 Eli Zaretskii <eliz@gnu.org>
5522
5523 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5524 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5525 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5526 and
5527 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5528
e9515805
SM
55292010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5530
5531 * alloc.c (Fpurecopy): Hash-cons if requested.
5532 (syms_of_alloc): Update purify-flag docstring.
5533
22aa44a8
JD
55342010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5535
5536 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5537 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5538
ebb5722e
EZ
55392010-04-17 Eli Zaretskii <eliz@gnu.org>
5540
5541 Fix a crash when an NSM character is inserted at BEGV.
5542
5543 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5544 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5545 NEUTRAL_B or UNKNOWN_BT.
5546
0f4442ef
EZ
55472010-04-16 Eli Zaretskii <eliz@gnu.org>
5548
5549 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5550 other rows with cursor unless they are different from this row and
5551 this row is part of a continued line. (Bug#5943)
5552
7d4e45f8
DN
55532010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5554
5555 * s/freebsd.h: Restore osreldate.h include.
5556 Suggested by Naohiro Aota.
5557
5ba5ec85
J
55582010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5559
5560 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5561
20af301d
CY
55622010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5563
5564 * s/cygwin.h: Avoid linking against static libgcc.
5565
a4b000fb
JL
55662010-04-15 Juri Linkov <juri@jurta.org>
5567
5568 * window.c: Add Qscroll_command.
5569 Remove Vscroll_preserve_screen_position_commands.
5570 (window_scroll_pixel_based, window_scroll_line_based): Check the
5571 `scroll-command' property on the last command instead of searching
5572 the last command in Vscroll_preserve_screen_position_commands.
5573 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5574 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5575 (scroll-preserve-screen-position): Doc fix.
5576 (Vscroll_preserve_screen_position_commands): Remove variable.
5577
bc319ba4
DN
55782010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5579
6bb24457
DN
5580 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5581
19d4c244
DN
55822010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5583
5584 Reduce cpp use in Makefile.in.
5585 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5586 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5587 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5588 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5589 (CRT0_COMPILE): Remove, inline it in the only user.
5590
32129746
JL
55912010-04-14 Juri Linkov <juri@jurta.org>
5592
5593 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5594 `scroll-up-command' and `M-v' from `scroll-down' to
5595 `scroll-down-command'.
5596
9013a7f8
JL
55972010-04-14 Juri Linkov <juri@jurta.org>
5598
5599 * window.c (Vscroll_preserve_screen_position_commands): New variable
5600 with the default value as the list of Qscroll_down and Qscroll_up.
5601 (window_scroll_pixel_based, window_scroll_line_based): Search the
5602 last command in the list Vscroll_preserve_screen_position_commands
5603 instead of comparing with Qscroll_up and Qscroll_down.
5604
4bef8d26
JD
56052010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5606
92848133
JD
5607 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5608 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5609 does that.
5610
4bef8d26
JD
5611 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5612 to zero.
5613
58b963f7
SM
56142010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5615
84164a0d
SM
5616 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5617
2b0a91e7
SM
5618 Try to solve the problem of spurious EOF chars in long lines of text
5619 sent to interactive subprocesses.
5620 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5621 (system_process_attributes): Remove unused var `ttotal'.
5622 * process.c (send_process): Don't bother breaking long line with EOF
5623 chars when talking to ttys any more.
5624 (wait_reading_process_output): Output a warning when called in such
5625 a way that it could block without being interruptible.
5626
58b963f7
SM
5627 Try to detect file modification within the same second.
5628 * buffer.h (struct buffer): New field modtime_size.
5629 * buffer.c (reset_buffer): Initialize it.
5630 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5631 (Fverify_visited_file_modtime): Check it.
5632 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5633 (Fset_visited_file_modtime): Set (or clear) it.
5634
01f5787b
SM
56352010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5636
5637 * process.c (status_notify): Remove unused var `ro'.
5638
83725342
JD
56392010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5640
5641 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5642 more than one visual (Bug#5938).
5643
b9465836
DN
56442010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5645
50426a04
JB
5646 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5647 Undefine.
b9465836 5648
8d9c8ece
DN
56492010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5650
b1f52161
DN
5651 Remove C_SWITCH_SYSTEM_TEMACS.
5652 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5653 (malloc, realloc, free): Use emacs, not temacs for conditional
5654 definition.
5655
5656 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5657 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5658
8d9c8ece
DN
5659 Use autoconf, not cpp for some variables.
5660 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5661 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5662 (ALL_CFLAGS): Use them as make variables.
5663 (really-lwlib, really-oldXMenu): Do not pass them.
5664
1ecb2d3f
JD
56652010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5666
5667 * xmenu.c (apply_systemfont_to_dialog): New.
5668 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5669
3a4fa2f2
SM
56702010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5671
97e53006
SM
5672 * process.c (exec_sentinel): Preserve current-buffer.
5673
3a4fa2f2
SM
5674 * process.c (read_process_output): Move the save-current-buffer to
5675 apply to both the filter and the non-filter branches.
5676
88df7221
DN
56772010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5678
5679 * s/msdos.h (UNEXEC): New definition.
5680
5634ff85
YM
56812010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5682
6eff5c3d
YM
5683 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5684 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5685
5686 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5687 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5688 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5689 TRY_WINDOW_CHECK_MARGINS.
5690
5691 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5692 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5693 width only when it is for padding.
5634ff85 5694
b13aef54
J
56952010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5696
5697 * xfns.c (Fx_show_tip): Call try_window in a loop until
5698 fonts_changed_p is zero (Bug#2423).
5699
21d28484
EZ
57002010-04-08 Eli Zaretskii <eliz@gnu.org>
5701
5702 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5703 the end of TEXT_AREA. (Bug#5856)
5704
0269ef77
JD
57052010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5706
5707 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5708 HAVE_GCONF.
5709
5930fe97
EZ
57102010-04-08 Eli Zaretskii <eliz@gnu.org>
5711
5712 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5713 prev.orig_type, for resolving type of NSM. (Bug#5858)
5714
99852628
JD
57152010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5716
5717 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5718 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5719 in current_font.
5720 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5721 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5722 New functions.
5723 (syms_of_xsettings): Initialize current_font.
5724 defsubr Sfont_get_system_normal_font.
99852628 5725
686b968e
JB
5726 * xsettings.h (Ffont_get_system_normal_font)
5727 (xsettings_get_system_normal_font): Declare.
99852628
JD
5728
5729 * xfns.c (extern xlwmenu_default_font): Remove.
5730 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5731 to xlwmenu.c.
5732
5733 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5734 menu items in UTF-8.
5735
5736 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5737 (apply_systemfont_to_menu): New function.
5738 (set_frame_menubar, create_and_show_popup_menu): Call
5739 apply_systemfont_to_menu.
5740
7fc874c4
J
57412010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5742
5743 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5744 FRAME_LINE_TO_PIXEL_Y.
5745
5746 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5747 pixelwidth/height.
5748
863bf481
DN
57492010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5750
5e5a3b92
DN
5751 Simplify code for HP machines.
5752 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5753 for GNU_LINUX, not needed.
5754 (UNEXEC, NEED_BSDTTY): Move definitions...
5755 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5756
863bf481
DN
5757 * m/iris4d.h (UNEXEC): Move definition ...
5758 * s/irix6-5.h (UNEXEC): ... here.
5759
3e6bec3b
JD
57602010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5761
5762 * xfns.c (set_machine_and_pid_properties): New function.
5763 (Fx_create_frame): Call set_machine_and_pid_properties.
5764
2912322b
SM
57652010-04-03 Eli Zaretskii <eliz@gnu.org>
5766
1502b819
EZ
5767 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5768 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5769 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5770
2912322b
SM
5771 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5772 in this function. (Bug#5703)
5773
57742010-04-03 Chong Yidong <cyd@stupidchicken.com>
5775
5776 * nsterm.h: Fix last change.
5777
c435b432
DN
57782010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5779
a568f507
DN
5780 * m/intel386.h (NO_REMAP): Move definition ...
5781 * s/msdos.h (NO_REMAP): ... here.
5782
4cd9f6c2
DN
5783 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5784
c435b432
DN
5785 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5786 used on those platforms.
5787
42a2c622
DN
57882010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5789
5790 Remove extern errno declarations.
5791 * xterm.c:
5792 * xrdb.c:
5793 * w32term.c:
5794 * unexec.c:
5795 * unexaix.c:
5796 * sysdep.c:
5797 * process.c:
5798 * lread.c:
5799 * keyboard.c:
5800 * floatfns.c:
5801 * filelock.c:
5802 * fileio.c:
5803 * emacs.c (main):
5804 * ecrt0.c:
5805 * dispnew.c:
5806 * callproc.c:
5807 * buffer.c: Remove errno extern declarations.
5808 * s/netbsd.h (NEED_ERRNO): Remove.
5809
8224f93d
DN
58102010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5811
5812 Remove all uses of LIBX11_SYSTEM.
5813 * Makefile.in (LIBX11_SYSTEM): Remove.
5814 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5815 instead.
5816
814062c7
EZ
58172010-04-01 Eli Zaretskii <eliz@gnu.org>
5818
ed68db4d
EZ
5819 Remove support for DJGPP v1.x (bug#5813).
5820
5821 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5822 * s/msdos.h:
5823 * unexec.c (make_hdr, copy_text_and_data):
5824 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5825 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5826 (IT_set_terminal_modes, __write, _rename, gethostname)
5827 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5828 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5829 the value of __DJGPP__.
ed68db4d
EZ
5830 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5831 compatibility code.
8224f93d
DN
5832 * lread.c:
5833 * gmalloc.c (memalign):
5834 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5835 * emacs.c (main):
5836 * dosfns.c (init_dosfns):
ed68db4d
EZ
5837 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5838
52f4d8d5
EZ
58392010-04-01 Eli Zaretskii <eliz@gnu.org>
5840
814062c7
EZ
5841 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5842 string with `cursor' property comes from an `after-string'
5843 overlay. (Bug#5816)
5844
0dc2e11d
GM
58452010-04-01 Glenn Morris <rgm@gnu.org>
5846
5847 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5848 Define as Makefile variables.
5849 (LIBX): Use above variables rather than directly using autoconf.
5850
1d29df59
DN
58512010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5852
5853 Clean up BSD_SYSTEM use.
5854 * xterm.c:
5855 * process.c:
5856 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5857 for including <sys/ioctl.h>.
5858 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5859 code is only used for MSDOS.
5860
1546c559
JL
58612010-03-31 Juri Linkov <juri@jurta.org>
5862
5863 * image.c: Add `Qextension_data'.
5864 (syms_of_image): Initialize and staticpro `Qextension_data'.
5865 (Fimage_metadata): Rename from `Fimage_extension_data'.
5866 (gif_load): Put GIF extension data to the property
5867 `Qextension_data'.
5868
6521c534
CY
58692010-03-31 Chong Yidong <cyd@stupidchicken.com>
5870
5871 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5872 * nsterm.h: Fix prototype.
5873
52c30783
EZ
58742010-03-31 Eli Zaretskii <eliz@gnu.org>
5875
5876 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5877 trailing whitespace in right-to-left rows.
5878
855a0da7
SM
58792010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5880
5881 Get rid of the direct_output optimizations.
5882 * keyboard.c (nonundocount): Remove extern declaration.
5883 (command_loop_1): Remove brittle optimisation for cheap and
5884 common operations.
5885 * xdisp.c (redisplay_internal): Don't bother checking
5886 redisplay_performed_directly_p any more.
5887 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5888 any more.
5889 * dispnew.c (redisplay_performed_directly_p)
5890 (direct_output_for_insert, direct_output_forward_char):
5891 * dispextern.h (redisplay_performed_directly_p)
5892 (direct_output_for_insert, direct_output_forward_char): Remove.
5893 * cmds.c (nonundocount): Make it static.
5894
85738751 58952010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5896
5897 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5898
85738751 58992010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5900
5901 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5902 invisible (Bug#5766).
5903
85738751 59042010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5905
855a0da7
SM
5906 * xdisp.c (x_consider_frame_title, update_window_cursor):
5907 Remove HAVE_NS conditionals.
194d44e7 5908 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5909
5910 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5911 filename for the title.
5912 (ns_set_doc_edited): Do nothing if the selected window is a
5913 minibuffer window.
5914
5915 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5916 ns_set_doc_edited.
5917
5918 * nsterm.m: Remove unneeded prototype.
5919
85738751 59202010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5921
5922 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5923 in the DOC file. (Bug#5336)
5924
85738751 59252010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5926
5927 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5928
75d1428c
SM
59292010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5930
5931 * window.c (keys_of_window): Remove redundant/overridden bindings.
5932
82043cfb
EZ
59332010-03-30 Eli Zaretskii <eliz@gnu.org>
5934
5935 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5936 Restore original behavior when the iterator is not bidi_p.
5937
b5dd0ae7
DN
59382010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5939
5940 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5941
bd924a5d
EZ
59422010-03-30 Eli Zaretskii <eliz@gnu.org>
5943
5944 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5945 are outside the range of cached character positions.
5946
3580374b
JB
59472010-03-30 Juanma Barranquero <lekktu@gmail.com>
5948
5949 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5950
a7b02820
EZ
59512010-03-30 Eli Zaretskii <eliz@gnu.org>
5952
5953 Initial support for bidirectional editing.
5954
5955 * Makefile.in (obj): Include bidi.o.
5956 (bidi.o): New target.
5957
5958 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5959 ($(BLD)/bidi.$(O)): New target.
5960
5961 * bidi.c: New file.
5962
5963 * buffer.h (struct buffer): New members bidi_display_reordering
5964 and bidi_paragraph_direction.
5965
5966 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5967 and bidi_paragraph_direction.
5968 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5969 and bidi-paragraph-direction.
5970 (Fbuffer_swap_text): Swap the values of
5971 bidi_display_reordering and bidi_paragraph_direction.
5972
5973 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5974 (bidi_type_t, bidi_dir_t): New types.
5975 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5976 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5977 prev_stop, base_level_stop, and eol_pos.
5978 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5979 (IT_STACK_SIZE): Enlarge to 5.
5980 (struct glyph_row): New member reversed_p.
5981 <string_buffer_position>: Update prototype.
5982 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5983 glyph_row if bidi_it.paragraph_dir == R2L.
5984 (struct glyph): New members resolved_level and bidi_type.
5985
5986 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5987 processing or buffer's direction is right-to-left.
5988 (prepare_desired_row): Preserve the reversed_p flag.
5989 (row_equal_p): Compare the reversed_p attributes as well.
5990
5991 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5992 bidi_init_it and set it->paragraph_embedding from the current
5993 buffer's value of bidi_paragraph_direction.
5994 (reseat_1): Initialize bidi_it.first_elt.
5995 (set_iterator_to_next, next_element_from_buffer): Use the value of
5996 paragraph_embedding to determine the paragraph direction.
5997 (set_iterator_to_next): Under bidi reordering, call
5998 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5999 new_paragraph flag is set in the bidi iterator.
6000 (next_element_from_buffer): If bidi_it.first_elt is set,
6001 initialize paragraph direction and find the first character to
6002 display in the visual order. If reseated to a middle of a line,
6003 prime the bidi iterator starting at the line's beginning. Handle
6004 the situation where we overstepped stop_charpos due to
6005 non-linearity of the bidi iteration. Likewise for when we back up
6006 beyond the previous stop_charpos. When moving across stop_charpos,
6007 record it in prev_stop.
6008 (display_line): Set row->end and it->start for the next row to the
6009 next character in logical order. Always extend reversed_p rows to
6010 the end of line, even if they end at ZV. Copy the reversed_p flag
6011 to the next glyph row. Keep calling set_cursor_from_row for
6012 bidi-reordered rows even if we already have a possible candidate
6013 for cursor position. Set row_end after all the row's glyphs have
6014 been produced, by looping over the glyphs. Record the position
6015 after EOL in it->eol_pos, and use it to set end_pos of the last
6016 row produced for a continued line.
6017 <Qright_to_left, Qleft_to_right>: New variables.
6018 (syms_of_xdisp): Initialize and staticpro them.
6019 (string_buffer_position_lim): New function.
6020 (string_buffer_position): Most of code moved to
6021 string_buffer_position_lim. Last argument and return value are
6022 now EMACS_INT; all callers changed.
6023 (set_cursor_from_row): Rewritten to support bidirectional text and
6024 reversed glyph rows.
6025 (text_outside_line_unchanged_p, try_window_id): Disable
6026 optimizations if we are reordering bidirectional text and the
6027 paragraph direction can be affected by the change.
6028 (append_glyph, append_composite_glyph)
6029 (produce_image_glyph, append_stretch_glyph): Set the
6030 resolved_level and bidi_type members of each glyph.
6031 (append_glyph): If the glyph row is reversed, prepend the glyph
6032 rather than appending it.
6033 (handle_stop_backwards): New function.
6034 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6035 (reseat): call handle_stop_backwards to recompute prev_stop and
6036 base_level_stop for the new position.
6037 (handle_invisible_prop): Under bidi iteration, skip invisible text
6038 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6039 paragraph direction. Update IT->prev_stop after skipping
6040 invisible text.
6041 (move_it_in_display_line_to): New variables prev_method
6042 and prev_pos. Compare for strict equality in
6043 BUFFER_POS_REACHED_P.
6044 (try_cursor_movement): Examine all the candidate rows that occlude
6045 point, to return the best match. If rows are bidi-reordered
6046 and point moved backwards, back up to the row that is not a
6047 continuation line, and start looking for a suitable row from
6048 there.
6049
6050 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6051 rather than appending, if the glyph_row's reversed_p flag is set.
6052 Set the resolved_level and bidi_type members of each glyph.
6053
6054 * .gdbinit (pbiditype): New command.
6055 (pgx): Use it to display bidi level and type of the glyph.
6056 (pitx): Display some bidi information about the iterator.
6057 (prowlims, pmtxrows): New commands.
6058
32a8894e
DN
60592010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6060
6061 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6062 * s/usg5-4.h (LIBS_DEBUG):
6063 * s/irix6-5.h (C_DEBUG_SWITCH):
6064 * s/gnu-linux.h (LIBS_DEBUG):
6065 * s/darwin.h (LIBS_DEBUG):
6066 * s/bsd-common.h (LIBS_DEBUG):
6067 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6068 * m/iris4d.h (LIBS_DEBUG):
6069 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6070
6071 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6072 (LIBS_DEBUG): Remove definition.
6073
649dbf36
CY
60742010-03-27 Chong Yidong <cyd@stupidchicken.com>
6075
6076 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6077 Windows.
6078
cad4261f
YM
60792010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6080
6081 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6082 `connect' (Bug#5723).
6083
cd591dbc
HE
60842010-03-25 Helmut Eller <eller.helmut@gmail.com>
6085
6086 * process.c (Fmake_network_process): Call `select' for interrupted
6087 `connect' rather than creating new socket (Bug#5173).
6088
e867cb5d 60892010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
6090
6091 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6092
6093 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6094
6095 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6096
e867cb5d 60972010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
6098
6099 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6100 XLoadQueryFont.
6101
e867cb5d 61022010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
6103
6104 * coding.c (decode_coding_ccl): Fix previous change for the
6105 multibyte case.
fb608df3
KH
6106 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6107 case that the output buffer is fullfilled.
6108 (encode_coding): Setup ccl program here.
fbdc1721 6109
5845f0ed
DN
61102010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6111
814fb708
DN
6112 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6113
5845f0ed
DN
6114 Simplify LIBS_MACHINE definitions.
6115 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6116 * m/iris4d.h (LIBS_MACHINE): Likewise.
6117 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6118 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6119 * s/netbsd.h: Remove commented out code.
5845f0ed 6120
b7064064
DN
61212010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6122
df7734b2
DN
6123 Remove dead code dealing with POSIX_SIGNALS.
6124 * atimer.c (set_alarm): Remove dead code, all USG systems define
6125 POSIX_SIGNALS.
6126 * data.c (arith_error): Likewise.
6127 * keyboard.c (input_available_signal, handle_user_signal)
6128 (interrupt_signal): Likewise.
6129 * process.c (sigchld_handler): Likewise.
6130 (create_process): Remove if 0 code. Remove HPUX conditional when
6131 !defined (POSIX_SIGNALS), it cannot be true.
6132 * syssignal.h: Remove USG5_4 and USG conditionals when
6133 !POSIX_SIGNALS, they cannot be true.
6134
b7064064
DN
6135 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6136 NO_SOCK_SIGIO, not used anymore.
6137
55da5ee3
DN
61382010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6139
0be96e3a
DN
6140 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6141 support vax on BSDs.
6142
55da5ee3
DN
6143 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6144 * s/aix4-2.h (ORDINARY_LINK): ... here.
6145
c0282183
AS
61462010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6147
82c3d67a
AS
6148 * Makefile.in (abs_builddir): Define.
6149 (bootstrap_exe): Use it.
6150 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6151
3613edce
SM
61522010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6153
6154 * Makefile.in (bootstrap_exe): Use an absolute name.
6155
7f110ddc
DN
61562010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6157
22e87574
DN
6158 Remove support for old GNU/Linux using libc version 5.
6159 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6160 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6161
05a670e6
DN
6162 Consolidate redundant definitions in s/bsd-common.h.
6163 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6164 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6165 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6166 doing it in all files that include this one.
6167 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6168 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6169 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6170 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6171 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6172 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6173 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6174 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6175 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6176
2968f561
DN
6177 Consolidate redundant definitions.
6178 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6179 it's undefined in all files that include this one.
6180 (POSIX_SIGNALS): Define here instead of doing it in all files that
6181 include this one.
6182 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6183 (POSIX_SIGNALS): Do not define.
6184 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6185 (POSIX_SIGNALS): Do not define.
6186 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6187 (POSIX_SIGNALS): Do not define.
6188
15d25dc0
DN
6189 Remove support for old UNIX System V systems.
6190 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6191 * s/usg-5-4-2.h: Remove.
6192
07e339e4
DN
6193 Remove support for Solaris on PPC and for old versions.
6194 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6195 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6196 that cancel each other.
6197 * s/sol2-3.h:
6198 * s/sol2-4.h:
6199 * s/sol2-5.h: Remove.
6200 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6201 (NO_REMAP): Remove, unused.
6202 (UNEXEC): Move definition ...
6203 * s/aix4-2.h (UNEXEC): ... here.
6204
7f110ddc
DN
6205 * s/openbsd.h: Remove support for non-ELF and for systems that do
6206 not support shared libraries.
6207 * s/netbsd.h:
6208 * s/freebsd.h: Likewise.
6209
605f35cd
DN
62102010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6211
6212 Remove non-working support for lynxos 3.0.
6213 * s/lynxos.h: Remove file.
6214
6215 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6216 COFF_BSD_SYMBOLS, nothing defines it anymore.
6217
aed71cf4
DN
62182010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6219
6220 Remove obsolete uses of HAVE_SHM.
6221 * emacs.c (standard_args):
6222 (Fdump_emacs):
6223 (syms_of_emacs): Remove code depending on HAVE_SHM.
6224
6225 * alloc.c: Remove HAVE_SHM dependent definition.
6226
6227 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6228
aded53ff
GM
62292010-03-18 Glenn Morris <rgm@gnu.org>
6230
17284745
GM
6231 * emacs.c (USAGE4): Hard-code bug address.
6232 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6233 (bug_reporting_address): Remove.
6234 (main): Don't call bug_reporting_address.
6235
aded53ff
GM
6236 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6237 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6238
303500aa
CY
62392010-03-15 Chong Yidong <cyd@stupidchicken.com>
6240
6241 * xfns.c (Fx_create_frame):
6242 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6243 on left.
6244
cef3058f
CY
62452010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6246
6247 * editfns.c (Fformat): Account for string precision when computing
6248 field width (Bug#5710).
6249
a647d59d
CY
62502010-03-12 Chong Yidong <cyd@stupidchicken.com>
6251
4fa42018
CY
6252 * xfns.c (Fx_create_frame): Set default to Qright.
6253
a647d59d
CY
6254 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6255 all window systems.
6256
6da23aaa
EZ
62572010-03-12 Eli Zaretskii <eliz@gnu.org>
6258
a96f6398 6259 These changes remove termcap.c from the build on Posix platforms.
83d02def 6260 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6261 (MSDOS_OBJ): ...to here.
6262 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6263 now identical to when LIBS_TERMCAP is defined.
6264
6265 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6266
6267 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6268
a96f6398 6269 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6270
288f9fc0
CY
62712010-03-10 Chong Yidong <cyd@stupidchicken.com>
6272
6273 * Branch for 23.2.
6274
d48cd3f4
SM
62752010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6276
6277 Cleanup setup of gl_state in various parts of the code.
6278 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6279 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6280 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6281 (skip_chars):
6282 * regex.c (regex_compile): Use it.
6283 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6284 it's now set in regex_compile when/if we need it.
6285
618db430
SM
62862010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6287
c0335e02
SM
6288 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6289 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6290 (QUIT): Use it to consolidate code and remove redundancy.
6291 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6292
254c06a8
SM
6293 * regex.c (regex_compile): Setup gl_state as well.
6294
618db430
SM
6295 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6296 (in_classes): Use CONSP before XCAR/XCDR.
6297
233f0c9f
CY
62982010-03-03 Chong Yidong <cyd@stupidchicken.com>
6299
6300 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6301 definitions, so that keyboard macros are correctly handled
6302 (Bug#5481).
6303
75f80e63
EZ
63042010-03-02 Eli Zaretskii <eliz@gnu.org>
6305
6306 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6307 text that could be relocated inside the call to emacs_mule_char.
6308 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6309 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6310
dcfb9bc4
KH
63112010-03-02 Kenichi Handa <handa@m17n.org>
6312
fc9a17bc
KH
6313 * character.c (parse_str_as_multibyte): Fix handling of the
6314 multibyte form of raw-bytes.
6315 (str_as_multibyte): Likewise.
6316
dcfb9bc4
KH
6317 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6318 form of raw-bytes.
6319
412c01b6
CY
63202010-02-28 Chong Yidong <cyd@stupidchicken.com>
6321
6322 * charset.c (load_charset_map_from_file)
6323 (load_charset_map_from_vector): Zero out allocated
6324 charset_map_entries before using them.
6325
df7e1ea0
AS
63262010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6327
6328 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6329
fe69a722
CY
63302010-02-27 Chong Yidong <cyd@stupidchicken.com>
6331
4ed28cf4
CY
6332 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6333 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6334
7379cfce
KH
63352010-02-26 Kenichi Handa <handa@m17n.org>
6336
f88cc4d6
KH
6337 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6338
7379cfce
KH
6339 * xdisp.c (reseat_to_string): Fix previous change.
6340
cf2fdcfb
CY
63412010-02-26 David Reitter <david.reitter@gmail.com>
6342
6343 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6344 Lisp_Object (Bug#4736).
6345
cc6c7c75
KH
63462010-02-25 Kenichi Handa <handa@m17n.org>
6347
6348 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6349
32e737d7
JD
63502010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6351
6352 * xterm.c (XTflash): Move declarations before statements.
6353
6354 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6355 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6356 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6357 (xg_create_tool_bar): Remove unused variables.
6358 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6359 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6360
676cae9f
CY
63612010-02-21 Chong Yidong <cyd@stupidchicken.com>
6362
6363 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6364
886cc2b8
SM
63652010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6366
6367 * term.c (fatal): Add a final \n if needed (bug#5596).
6368
ddb2d8e2
CY
63692010-02-18 Chong Yidong <cyd@stupidchicken.com>
6370
6371 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6372
2a4f8d3d
GM
63732010-02-18 Glenn Morris <rgm@gnu.org>
6374
6375 * callint.c (Finteractive): Doc fix.
6376
ebaf11b6
KH
63772010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6378
886cc2b8
SM
6379 * coding.c (record_conversion_result):
6380 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6381 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6382 memory allocation error.
6383
d0396581
KH
63842010-02-17 Kenichi Handa <handa@m17n.org>
6385
886cc2b8
SM
6386 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6387 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6388 (decode_coding): Setup ccl program here. Keep looping when the
6389 decoder stopped because the output buffer is
6390 fullfilled (bug#5534).
6391
6392 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6393
98599f74
JD
63942010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6395
471e4f04 6396 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6397 bug #5571.
886cc2b8 6398 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6399 overdrawn.
98599f74 6400
182659ae
JD
64012010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6402
6403 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6404 doing_interact here.
6405 (ice_connection_closed): New function.
6406 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6407 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6408 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6409 returns I/O error.
6410 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6411 bug #5512.
6412
9be32c4e 64132010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6414
6415 * nsfont.m (nsfont_open): The system's value for the font descent
6416 is negative, so round it down to avoid clipping.
6417
a2f3eb19
CY
64182010-02-06 Chong Yidong <cyd@stupidchicken.com>
6419
6420 * charset.c (load_charset_map_from_file)
6421 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6422 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6423
3088147c
CY
64242010-02-05 Chong Yidong <cyd@stupidchicken.com>
6425
6426 * charset.c (load_charset_map_from_file): Allocate large
6427 charset_map_entries structure on the heap rather than the stack.
6428 (Bug#5526).
6429
b57d9029
KH
64302010-01-31 Kenichi Handa <handa@m17n.org>
6431
6432 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6433 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6434
c67d885b
CY
64352010-01-31 Chong Yidong <cyd@stupidchicken.com>
6436
6437 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6438 <deactivated@gmail.com> (Bug#3605).
6439
8fab2362
CY
64402010-01-31 David De La Harpe Golden <david@harpegolden.net>
6441
6442 * fileio.c (Frename_file): Correctly rename symlinks to
6443 directories (Bug#5496).
6444
cb2a62f2
CY
64452010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6446
6447 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6448
944c7a26
AS
64492010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6450
6451 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6452
c024ac08
CY
64532010-01-29 Chong Yidong <cyd@stupidchicken.com>
6454
6455 * frame.c (DEFAULT_ROWS): Change default to 35.
6456
6457 * xfns.c (x_default_font_parameter): Change default XFT font to
6458 monospace-10 (Bug#3643).
6459
af93af83
EZ
64602010-01-29 Eli Zaretskii <eliz@gnu.org>
6461
6462 * w32inevt.c (key_event): Remove unnecessary comparison of
6463 event->uChar.AsciiChar with 128.
6464
ca0eb708
CY
64652010-01-28 Chong Yidong <cyd@stupidchicken.com>
6466
b242dbfc
CY
6467 * fileio.c (Frename_file): Fix last change (Bug#5487).
6468
ca0eb708
CY
6469 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6470
6471 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6472
45d45af5
JD
64732010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6474
6475 * xfns.c (Fx_create_frame): Remove window size matching code from
6476 2010-01-15.
a73f9c9d 6477 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6478
7e233730
JR
64792010-01-27 Jason Rumney <jasonr@gnu.org>
6480
6481 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6482 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6483
86e893e3
KH
64842010-01-27 Kenichi Handa <handa@m17n.org>
6485
6486 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6487 pattern string (Bug#4209).
86e893e3 6488
8719abec
CY
64892010-01-27 David De La Harpe Golden <david@harpegolden.net>
6490
6491 * fileio.c (Frename_file): Call copy-directory and
6492 delete-directory for directories, in order to handle cross-device
6493 renaming (Bug#3353).
6494
844794c8
JD
64952010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6496
aa3e13b5 6497 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6498 sizes 24 and 10. Bug #3643.
844794c8 6499
bd4b5750
SM
65002010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6501
8dc1adf6 6502 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6503 * keymap.c (shadow_lookup): Add `remap' arg.
6504 (describe_map, describe_vector): Update calls to shadow_lookup.
6505 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6506 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6507 perform remapping during shadow_lookup check of remapped_sequences.
6508
285d07e2
CY
65092010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6510
6511 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6512 png_check_sig, which has been removed in libpng 1.4.
6513
c6d09b8d
CY
65142010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6515
6516 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6517 lacks this header file).
6518
3d782998
YM
65192010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6520
6521 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6522 as in Emacs 22.
6523
2aff7c53
YM
65242010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6525
6526 * lisp.h (make_pure_string): String pointer arg now points to const.
6527
6528 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6529 args now point to const.
6530
74327f7a
EZ
65312010-01-22 Eli Zaretskii <eliz@gnu.org>
6532
6533 * lread.c (Fload): Don't treat files without .elc extension as
6534 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6535 them. (bug#5303)
6536
4d1e6632
KH
65372010-01-20 Kenichi Handa <handa@m17n.org>
6538
6539 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6540 treat the source as actual byte sequence.
6541
1fdede8f
AM
65422010-01-19 Alan Mackenzie <acm@muc.de>
6543
6544 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6545 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6546 `signal_after_change_p' to `coherent_change_p', and make the
6547 invocation of `modify_region' conditional on it.
6548
67477f30
JD
65492010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6550
6551 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6552 for debug purpose.
6553 (syms_of_xsettings): Declare xft-settings.
6554
244b023e
CY
65552010-01-18 Chong Yidong <cyd@stupidchicken.com>
6556
6557 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6558
617364fe
CY
65592010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6560
6561 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6562
4fe22cdf
CY
65632010-01-16 Chong Yidong <cyd@stupidchicken.com>
6564
6565 * emacs.c (standard_args): Adjust arg priorities to reflect how
6566 they are processed in startup.el.
6567
e118d2be
AS
65682010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6569
6570 * Makefile.in (lisp, shortlisp): Update.
6571
523ae620
SM
65722010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6573
6574 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6575 code, link the new kboard into all_kboard before running Lisp code,
6576 and protect the new terminal with GCPRO (Bug#5365).
6577 (x_term_init): Remove unused var `atom'.
6578 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6579
f0d13888
JD
65802010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6581
6582 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6583 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6584 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6585 this. Bug #3643.
f0d13888 6586
cc320f07
KH
65872010-01-15 Kenichi Handa <handa@m17n.org>
6588
6589 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6590
7ffdf101
CY
65912010-01-15 Chong Yidong <cyd@stupidchicken.com>
6592
6593 * nsterm.m (Qnone): Define.
6594
6595 * nsfns.m (Qnone): Move definition to nsterm.m.
6596
d12bd917
KH
65972010-01-14 Kenichi Handa <handa@m17n.org>
6598
6599 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6600 systems.
6601
d9a7c140
KH
66022010-01-14 Kenichi Handa <handa@m17n.org>
6603
6604 Make auto-composition work on all buffers even if they are
6605 fundamental mode.
6606
6607 * composite.c (Vauto_composition_mode): New variable.
6608 (composition_compute_stop_pos): Check Vauto_composition_mode
6609 instead of Vauto_composition_function.
6610 (composition_adjust_point, Ffind_composition_internal): Likewise.
6611 (syms_of_composite): Declare Lisp variable
6612 "auto-composition-mode" here.
6613
63286bb2
CY
66142010-01-13 Chong Yidong <cyd@stupidchicken.com>
6615
6616 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6617 during call to vendor-specific-keysyms (Bug#5365).
6618
c2623ee7
YM
66192010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6620
6621 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6622 Call SIGNAL_THREAD_CHECK (Bug#5333).
6623
6624 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6625 Call SIGNAL_THREAD_CHECK.
6626
0b5397c2
SM
66272010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6628
6629 Try to fix bug#5314. This is probably not the final word, tho.
6630 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6631 recent-auto-save-p as a side-effect.
6632 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6633 * buffer.c (Fkill_buffer, reset_buffer):
6634 * editfns.c (Fsubst_char_in_region):
6635 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6636 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6637
dc954cb2
KH
66382010-01-13 Kenichi Handa <handa@m17n.org>
6639
6640 Display buffer name, etc. in mode line by composing correctly.
6641
6642 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6643 STRING is not nil.
0b5397c2 6644 (display_mode_element): Adjust for the change of
dc954cb2
KH
6645 decode_mode_spec and display_line.
6646 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6647 (display_string): Handle the case that STRING is non-null and
6648 LISP_STRING is not nil.
6649
0b5397c2
SM
6650 * xterm.c (x_draw_composite_glyph_string_foreground):
6651 Pay attention to s->face->overstrike.
dc954cb2
KH
6652
6653 * composite.c (composition_reseat_it): Don't check PT if STRING is
6654 non nil.
6655
4a00eaca
YM
66562010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6657
6658 * keyboard.c (read_char): Don't apply previous change when current
6659 buffer is unchanged by command execution.
6660
60abb287
JD
66612010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6662
6663 * keyboard.c (read_char): Return after executing from special map.
6664
893db5bc
GM
66652010-01-12 Glenn Morris <rgm@gnu.org>
6666
6667 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6668 bug-gnu-emacs rather than emacs-pretest-bug.
6669
4d03ece0
CY
66702010-01-11 Chong Yidong <cyd@stupidchicken.com>
6671
6672 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6673 initializing the Lisp variables that depend on them.
6674
1df47e38
YM
66752010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6676
6677 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6678 Clear areas that will not be updated after change of menu bar lines.
6679 Clear the menu bar window's current matrix when the window gets empty.
6680
2f1c6384
CY
66812010-01-09 Chong Yidong <cyd@stupidchicken.com>
6682
e398c61c
CY
6683 * intervals.h, textprop.c (extend_property_ranges): Return value
6684 and args changed. Discard properties that begin at or after the
6685 new end (Bug#5306).
6686
6687 * editfns.c (Fformat): Caller changed.
6688
e5a29a10
CY
6689 * nsterm.m (ns_set_default_prefs): Delete function.
6690 (syms_of_nsterm): Initialize ns_command_modifier,
6691 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6692 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6693
2f1c6384
CY
6694 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6695 position (Bug#4040).
6696
d427a9fa
EZ
66972010-01-09 Eli Zaretskii <eliz@gnu.org>
6698
6699 * editfns.c (Ffloat_time): Doc fix.
6700
21b9df2f
JD
67012010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6702
6703 * xfns.c (Fx_create_frame): Don't create frame larger than display
6704 by default bug#3643.
6705
4b00d3b1
YM
67062010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6707
6708 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6709 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6710 windows above internal border.
6711
6712 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6713 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6714 windows above internal border.
6715
6716 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6717 tool bar windows specially.
6718
6719 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6720
6721 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6722 specially.
6723 (XTflash): Take account of menu bar height.
6724
6725 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6726 specially.
6727
5075d853
JD
67282010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6729
ac146f82 6730 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6731 also be true before we can return early (bug #5339).
6732
474217c8
CY
67332010-01-06 David Reitter <david.reitter@gmail.com>
6734
6735 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6736 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6737 (Bug#3233).
6738
c0e6d47d
JD
67392010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6740
d0cf45b7
JD
6741 * font.c (font_open_entity): Enable chache and call cached_font_ok
6742 for the driver if defined.
6743 (QCuser_spec): New symbol.
6744 (font_spec_from_name): Save name as user-spec.
6745 (font_load_for_lface): Keep user-spec instead of name.
6746 (font_open_by_name): Save name as user-spec.
6747 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6748 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6749
6750 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6751 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6752 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6753
6754 * font.h (struct font_driver): Add cached_font_ok.
6755
c0e6d47d
JD
6756 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6757
7c583cd8
JD
67582010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6759
6760 * xterm.c (x_new_font): Move code for setting rows/cols before
6761 resizing ...
ac146f82 6762 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6763
6764 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6765 (xg_frame_resized, xg_frame_set_char_size):
6766 Call xg_clear_under_internal_border.
7c583cd8 6767 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6768
03f77f0a
CY
67692010-01-05 Chong Yidong <cyd@stupidchicken.com>
6770
6771 * keyboard.c (read_key_sequence): Catch keyboard switch after
6772 making a new tty frame (Bug#5095).
6773
2a1ef5be
KH
67742010-01-05 Kenichi Handa <handa@m17n.org>
6775
6776 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6777
e3eb1dae
SM
67782010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6779
6780 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6781 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6782 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6783
777013f2
MA
67842010-01-03 Michael Albinus <michael.albinus@gmx.de>
6785
6786 * dbusbind.c (xd_add_watch): Improve debug message.
6787 (xd_remove_watch): Improve debug message. If DATA is the session
6788 bus, unset D-Bus session environment.
6789 (Fdbus_init_bus): Pass the bus as argument to
6790 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6791
8932b1c2
CY
67922010-01-01 Chong Yidong <cyd@stupidchicken.com>
6793
87231e2c
CY
6794 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6795
4801c5fa
CY
6796 * lread.c (syms_of_lread): Make it clearer that these are the
6797 names of loaded files (Bug#5068).
6798
8932b1c2
CY
6799 * eval.c (run_hook_with_args): Handle the case where the global
6800 value has the obsolete single-function form (Bug#5026).
6801
11e3c684
CY
68022009-12-27 Chong Yidong <cyd@stupidchicken.com>
6803
6804 * minibuf.c (Fall_completions): Minor optimization.
6805
5b28ce35
EZ
68062009-12-26 Eli Zaretskii <eliz@gnu.org>
6807
5ce6e4f4
JB
6808 * .gdbinit (pgx): Fix display of composite glyphs.
6809 Display cmp.from and cmp.to as well.
6810 (pitx): Fix last change.
5b28ce35 6811
bcffff46
KH
68122009-12-25 Kenichi Handa <handa@m17n.org>
6813
6814 * composite.h (composition_adjust_point): Update prototype.
6815
6816 * composite.c (composition_reseat_it): Don't make a composition
6817 spanning over point.
6818 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6819 composable characters.
6820 (composition_adjust_point): New arg NEW_PT. Callers changed.
6821
6822 * keyboard.c (command_loop_1): Force redisplay if the last point
6823 was within a composition.
6824 (adjust_point_for_property): Don't adjust point for automatic
6825 composition when called after buffer modification.
6826
3f670e9a
EZ
68272009-12-19 Eli Zaretskii <eliz@gnu.org>
6828
5ce6e4f4
JB
6829 * .gdbinit (pitx): Don't use enum names, use their values.
6830 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6831 (pgx): Don't use enum names, use their values.
6832 (pitmethod): New helper command.
6833 (pitx): Use it to display iteration method.
6834 (pgrowit): New command.
6835
ad903955
EZ
6836 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6837
3f670e9a
EZ
6838 Update dependencies in Makefile.in.
6839
6840 * Makefile.in (alloc.o): Depend on termhooks.h.
6841 (atimer.o): Depend on blockinput.h.
6842 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6843 and frame.h.
6844 (callint.o): Depend on systime.h, coding.h, and composite.h.
6845 (callproc.o): Depend on buffer.h.
6846 (casefiddle.o): Don't depend on charset.h.
6847 (casetab.o): Depend on character.h.
6848 (ccl.o): Depend on composite.h.
6849 (chartab.o): Depend on ccl.h.
6850 (cm.o): Depend on dispextern.h.
6851 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6852 (coding.o): Don't depend on $(INTERVALS_H).
6853 (composite.o): Don't depend on dispextern.h explicitly (it's in
6854 $(INTERVALS_H)). Depend on ccl.h.
6855 (data.o): Depend on systime.h, coding.h, composite.h,
6856 dispextern.h, font.h, and ccl.h.
6857 (dired.o): Depend on composite.h.
6858 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6859 composite.h (it's in $(INTERVALS_H)).
6860 (doc.o): Depend on systime.h, coding.h, and composite.h.
6861 (editfns.o): Don't depend explicitly on dispextern.h.
6862 (emacs.o): Depend on frame.h and coding.h.
6863 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6864 (fileio.o): Depend on frame.h and commands.h. Don't depend
6865 explicitly on dispextern.h.
6866 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6867 composite.h.
6868 (fns.o): Don't depend on termhooks.h.
6869 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6870 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6871 coding.h, $(INTERVALS_H), window.h, xterm.h.
6872 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6873 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6874 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6875 fontset.h, ccl.h, and ftfont.h.
6876 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6877 (gtkutil.o): Depend on dispextern.h and composite.h.
6878 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6879 termhooks.h, and ccl.h.
6880 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6881 (intervals.o): Depend on systime.h and coding.h.
6882 (keyboard.o): Depend on composite.h and coding.h.
6883 (keymap.o): Depend on coding.h and frame.h.
6884 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6885 (macros.o): Depend on systime.h, coding.h, and composite.h.
6886 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6887 and atimer.h.
6888 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6889 dispextern.h explicitly.
0b5397c2
SM
6890 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6891 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6892 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6893 (regex.o): Don't depend on charset.h.
6894 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6895 (search.o): Don't depend explicitly on composite.h.
6896 (sound.o): Depend on atimer.h and systime.h.
6897 (syntax.o): Don't depend explicitly on composite.h.
6898 (sysdep.o): Depend on coding.h and composite.h.
6899 (term.o): Depend on xterm.h and buffer.h.
6900 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6901 (textprop.o): Don't depend on dispextern.h explicitly.
6902 (undo.o): Depend on dispextern.h.
6903 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6904 dispextern.h and composite.h explicitly.
6905 (xdisp.o): Depend on ccl.h.
6906 (xfaces.o): Depend on coding.h and ccl.h.
6907 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6908 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6909 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6910 ftfont.h.
6911 (xgselect.o): New dependency.
6912 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6913 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6914 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6915 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6916 (xsmfns.o): Depend on frame.h and dispextern.h.
6917 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6918 sysselect.h.
6919
7a6f7fea
AS
69202009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6921
6922 * font.c (Fclear_font_cache): Pass correct cache argument to
6923 font_clear_cache.
6924
f4c21026
AS
69252009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6926
6927 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6928 twice.
6929
f7ab0997
CY
69302009-12-15 Chong Yidong <cyd@stupidchicken.com>
6931
6932 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6933 calling file-remote-p. Reported by Jim Meyering.
6934
fa8e045a
MA
69352009-12-15 Michael Albinus <michael.albinus@gmx.de>
6936
6937 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6938 avoid compiler warnings. (Bug #5217)
fa8e045a 6939
a63dba42
KH
69402009-12-14 Kenichi Handa <handa@m17n.org>
6941
6942 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6943 in 8-bit encoding.
6944
5ce6e4f4 69452009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6946
6947 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6948 tooltip windows.
6949
223e5fc6
JD
69502009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6951
36acb2a7
JD
6952 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6953 Xatom_net_window_type.
6954
6955 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6956 Xatom_net_window_type.
6957
b8f00677
JD
6958 * xterm.c (my_log_handler): New function.
6959 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6960 so we can filter out buggy messages. (Bug #5120).
b8f00677 6961
e5f0bc9a
JD
6962 * xterm.c (xg_scroll_callback): Parameter list changed,
6963 use parameter GtkScrollType to determine scroll/line/page.
6964 Only allow dragging if a button < 4 is grabbed (bug #5177).
6965 (xg_end_scroll_callback): New function.
6966 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6967 xg_create_scroll_bar.
6968
6969 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6970 (scroll_end_callback): Remove.
6971 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6972 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6973 bug #5177.
e5f0bc9a
JD
6974 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6975 bug #5177.
6976
6977 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6978 (xg_create_scroll_bar): Add GCallback end_callback.
6979
223e5fc6
JD
6980 * xftfont.c (QClcdfilter): New variable.
6981 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6982 (syms_of_xftfont): Initialize QClcdfilter.
6983
3c055b77
JD
69842009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6985
6986 * xsettings.c (struct xsettings): Add member seen.
6987 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6988 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6989 (apply_xft_settings): Only update Xft settings with what member seen
6990 indicates as new.
6991
05fe33ff
EZ
69922009-12-12 Eli Zaretskii <eliz@gnu.org>
6993
c4cc8b9a 6994 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6995 (struct glyph): Use EMACS_INT for charpos.
6996 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6997 region_beg_charpos, region_end_charpos,
6998 redisplay_end_trigger_charpos, and also for
6999 iterator_stack_entry.end_charpos and
7000 iterator_stack_entry.stop_charpos.
7001
e8d7886a
JD
70022009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7003
5ce6e4f4 7004 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
7005 (xg_create_scroll_bar): Call scroll_end_callback on button release
7006 event (bug #5177).
7007 (xg_event_is_for_scrollbar): != replaced with ==.
7008
d0db2ec8
KH
70092009-12-12 Kenichi Handa <handa@m17n.org>
7010
7011 * ftfont.c (struct ftfont_info): New member matrix.
7012 (ftfont_open): Setup xftfont_info->matrix.
7013 (MFLTFontFT): New member matrix.
7014 (FLOOR, CEIL, ROUND): New macros.
7015 (ftfont_get_metrics): Handle matrix transformation.
7016 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7017
7018 * xftfont.c (struct xftfont_info): New member matrix.
7019 (xftfont_open): Setup xftfont_info->matrix.
7020
70212009-12-10 Kenichi Handa <handa@m17n.org>
7022
7023 * xdisp.c (append_space_for_newline): Consider face-remapping.
7024
2cc7b62f
AS
70252009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7026
b87dd913
AS
7027 * xsettings.c: Include "keyboard.h".
7028
eba5eb94
AS
7029 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7030
2cc7b62f
AS
7031 Fix implicit function declarations.
7032 * cmds.c: Include "frame.h".
7033 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7034 * frame.h: Move declaration of delete_frame outside of
7035 HAVE_WINDOW_SYSTEM.
7036
a4ef73c8
CY
70372009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7038
7039 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7040
7041 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7042 GTK builds.
7043
944a300c
AS
70442009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7045
7046 * unexelf.c (unexec): Don't search for .data twice.
7047
022eef62
CY
70482009-12-05 Chong Yidong <cyd@stupidchicken.com>
7049
426ac949
CY
7050 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7051 if push failed.
7052 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7053 of push_display_prop (Bug#5000).
7054
022eef62
CY
7055 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7056 value of font_list_entities (Bug#5085).
7057
be95bee9
JB
70582009-12-04 Juanma Barranquero <lekktu@gmail.com>
7059
7060 Fix `string-to-number' to deal consistently with integers and floats.
7061 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7062 trailing characters, not just whitespace.
7063 (read1): Pass new arg 0 to keep old behavior.
7064 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7065 trailing chars, as it is already done for integers. Doc fixes.
7066 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7067
24c2d7ce
EZ
70682009-12-04 Eli Zaretskii <eliz@gnu.org>
7069
0b5397c2
SM
7070 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7071 Delete unused enumeration value.
24c2d7ce 7072
7e694795
EZ
70732009-12-03 Eli Zaretskii <eliz@gnu.org>
7074
7075 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7076
84b31826
SM
70772009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7078
7079 * process.c (Fmake_network_process): Fix up the tests for
7080 "connectionless socket", so they DTRT for seqpacket sockets as well.
7081
f00c449b
SM
70822009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7083
7084 * process.c (Qseqpacket): New symbol.
7085 (HAVE_SEQPACKET): New macro.
7086 (Fmake_network_process): Accept new :type `seqpacket'.
7087 (init_process): Add `seqpacket' feature when applicable.
7088 (syms_of_process): Initialize Qseqpacket.
7089
8096a0ff
YM
70902009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7091
7092 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7093 if entity is Qnil.
7094
3e0de07f
SM
70952009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7096
7097 * print.c (print_preprocess): Preprocess the key_and_value table of
7098 hashtables, even tho they're "hidden" (bug#5082).
7099
abeafb2a
JD
71002009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7101
7102 * frame.c (frame_make_pointer_invisible)
7103 (frame_make_pointer_visible): Declare f before statements.
7104
4bf47195
EZ
71052009-11-28 Eli Zaretskii <eliz@gnu.org>
7106
7107 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7108 omitted dependencies on lisp.h.
7109
c525b3f2
JD
71102009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7111
ece2d4ed
JD
7112 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7113 is NULL.
7114
7115 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7116
7117 * frame.c (frame_make_pointer_invisible)
3e0de07f 7118 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7119 frame.
7120
c525b3f2
JD
7121 * search.c (simple_search): Remove warning by making *p const.
7122
2f00e299
DN
71232009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7124
7125 * xdisp.c (power_letter): Remove duplicate const.
7126
084b049b
JD
71272009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7128
a1fadc6f
JD
7129 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7130
5ce6e4f4 7131 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7132 defaults (bug #5025).
7133
28259cac
SM
71342009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7135
7136 * insdel.c (adjust_markers_for_delete): Move it in the
7137 right direction! (bug#4803)
7138
e8e14166
YM
71392009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7140
7141 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7142
7143 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7144
86677b58
GM
71452009-11-24 Glenn Morris <rgm@gnu.org>
7146
7147 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7148
581e51e8
JD
71492009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7150
cfc86c7a
JD
7151 * Makefile.in: Must create deps for ecrt0.o in its rule.
7152
581e51e8
JD
7153 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7154 because that is what Gtk+ font dialog understands.
7155
7156 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7157 of Fcopy_sequence.
7158 (font_open_by_name): Put name given into QCname for font-object returned.
7159
7160 * frame.c (x_set_font): Save original font name as frame parameter
7161 font-parameter.
7162
7163 * xsettings.c (set_default_xft_settings): New function.
7164 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7165 is found.
7166
8b264ecb
AS
71672009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7168
7169 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7170 searching backwards through multibyte buffer.
7171
872870b2
JD
71722009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7173
7174 * xterm.c: #include xgselect.h.
7175 (x_initialize): Call xgselect_initialize.
7176
7177 * xsettings.c (something_changedCB): C++ comments => C comments.
7178 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7179 does that now.
7180
7181 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7182 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7183 (scroll_bar_button_cb): Remove.
5ce6e4f4 7184 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7185 event.
7186 (xg_create_scroll_bar): Don't bind button-press-event and
7187 button-release-event.
7188
7189 * process.c: Include xgselect.h if defined (USE_GTK) ||
7190 defined (HAVE_GCONF).
7191 (wait_reading_process_output): Call xg_select for the same condition.
7192
7193 * xgselect.c (xg_select): New function to better integrate with
7194 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7195
7196 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7197
7198 * Makefile.in (XOBJ): Add xgselect.o.
7199
62a6e103
AS
72002009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7201
0b5397c2
SM
7202 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7203 Remove ignored second argument. All callers changed.
62a6e103
AS
7204 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7205 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7206 * xdisp.c (string_char_and_length): Likewise.
7207
b0ca0f33
DN
72082009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7209
7210 * xterm.c (x_new_font):
7211 * print.c (print_object):
7212 * cmds.c (Fself_insert_command): Move declarations before statements.
7213
dd5a6279
CY
72142009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7215
7216 * s/cygwin.h: Remove unneeded linker flags.
7217
4a8e097d
JD
72182009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7219
0d1d0d26
JD
7220 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7221
7222 * xsettings.h: Declare xsettings_get_system_font.
7223
7224 * xsettings.c (xsettings_get_system_font): New function.
7225 (init_gconf): No use initiating gconf unless we have Xft also.
7226 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7227 HAVE_GCONF.
7228
4a8e097d
JD
7229 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7230 add a blank entry so it doesn't collapse into nothing.
7231
8ab1650e
SM
72322009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7233
7234 * lread.c (Funintern): Comment out last change.
7235
82c602f0
RS
72362009-11-19 Richard Stallman <rms@gnu.org>
7237
7238 * lread.c (Funintern): Error if symbol is t or nil.
7239
87e32266
SM
72402009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7241
7242 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7243 representation of Lisp integers.
7244 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7245
1b9ac145
AS
72462009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7247
7248 * lisp.h: Remove declaration of Ffont_get_system_font.
7249 * xfns.c: Move include of "xsettings.h".
7250 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7251
dfb3c4c6
JD
72522009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7253
87e32266
SM
7254 * xsettings.c (something_changedCB, Ffont_get_system_font):
7255 Check use_system_font.
dfb3c4c6
JD
7256 (syms_of_xsettings): DEFVAR font-use-system-font.
7257
9370c1d8
AS
72582009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7259
25fe851a
AS
7260 * xfns.c (x_default_font_parameter): Remove dead assignment.
7261
9370c1d8
AS
7262 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7263
637fa988
JD
72642009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7265
87e32266 7266 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7267 not have FC_LCD_*. #define them if not there.
a6eb20d8 7268
87e32266 7269 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7270
637fa988
JD
7271 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7272
7273 * xterm.c (handle_one_xevent): Call xft_settings_event for
7274 ClientMessage, PropertyNotify and DestroyNotify.
7275 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7276 Call xsettings_initialize.
7277
7278 * xftfont.c (xftfont_fix_match): New function.
7279 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7280 Call xftfont_fix_match after XftFontMatch.
7281
7282 * xfont.c (xfont_driver): Initialize all members.
7283
87e32266
SM
7284 * xfns.c (x_default_font_parameter):
7285 Try font from Ffont_get_system_font.
637fa988
JD
7286 Do not get font from x_default_parameter if we got one from
7287 Ffont_get_system_font.
87e32266 7288 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7289
7290 * w32font.c (w32font_driver): Initialize all members.
7291
7292 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7293
7294 * lisp.h: Declare syms_of_xsettings.
7295
87e32266
SM
7296 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7297 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7298
7299 * ftfont.c (ftfont_filter_properties): New function.
7300
7301 * frame.c (x_set_font): Remove unused variable lval.
7302
87e32266 7303 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7304
7305 * font.c (font_put_extra): Don't return if val is nil, it means
7306 boolean option is off.
7307 (font_parse_fcname): Collect all extra properties in extra_props
7308 and call filter_properties for all drivers with extra_props and
7309 font as parameter.
87e32266
SM
7310 (font_open_entity): Do not use cache, it does not pick up new
7311 fontconfig settings like hinting.
637fa988
JD
7312 (font_load_for_lface): If spec had a name in it, store it in entity.
7313
a73f9c9d 7314 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7315
7316 * config.in: HAVE_GCONF is new.
7317
7318 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7319 xsettings.o is new.
7320
5a942932
KH
73212009-11-17 Kenichi Handa <handa@m17n.org>
7322
7323 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7324 back to the default font in case that no suitable font is found.
7325
b7c7a4d1
SM
73262009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7327
7328 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7329 Suggested by Chad Brown <yandros@mit.edu>.
7330 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7331
072f1e39
JD
73322009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7333
7334 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7335
5d1e70a2
AS
73362009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7337
87e32266 7338 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7339
a53cfbe5
JD
73402009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7341
473a99b7
JD
7342 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7343 has a parent.
7344
a53cfbe5 7345 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7346 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7347
7348 * config.in: Generated (AUTO_DEPEND).
7349
f04bb9b2
MA
73502009-11-13 Michael Albinus <michael.albinus@gmx.de>
7351
b7c7a4d1 7352 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7353 Vdbus_registered_functions_table, because it contains also
7354 properties. Fix docstring.
b7c7a4d1 7355 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7356
8f11f7ec
SM
73572009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7358
7359 * alloc.c (mark_object): Don't reprocess marked strings.
7360 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7361 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7362
8a605fe8
KH
73632009-11-13 Kenichi Handa <handa@m17n.org>
7364
8f11f7ec 7365 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7366 semantics of Vword_combining_categories.
7367 (Vword_combining_categories): Describe the slight change of the
7368 semantics.
7369
241c4680
EZ
73702009-11-13 Eli Zaretskii <eliz@gnu.org>
7371
7372 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7373
7374 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7375
5d58e44c
SM
73762009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7377
7378 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7379
5e13f9d3
JB
73802009-11-12 Juanma Barranquero <lekktu@gmail.com>
7381
7382 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7383
cf54c754
DR
73842009-11-11 David Reitter <david.reitter@gmail.com>
7385
7386 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7387 variables to fix 2009-11-09 change.
7388
a4ada374
DN
73892009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7390
91433552
DN
7391 * process.c (ifflag_def): Make flag_sym constant.
7392 (Fnetwork_interface_info): Use a constant pointer.
7393 (ifflag_table):
7394 * xfns.c (cursor_bits):
7395 * xdisp.c (power_letter):
7396 * termcap.c (speeds, esctab):
7397 * sysdep.c (baud_convert):
7398 * keyboard.c (lispy_accent_codes, modifier_names):
7399 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7400 (jpeg_format, tiff_format, gif_format, svg_format)
7401 (interlace_start, interlace_increment, gs_format):
7402 * gtkutil.c (separator_names):
7403 * fringe.c (swap_nibble):
7404 * fns.c (base64_value_to_char, base64_char_to_value):
7405 * fileio.c (make_temp_name_tbl):
7406 * coding.c (suffixes): Make constant.
7407
f4265f6c
DN
7408 * frame.c (make_initial_frame):
7409 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7410 build_string.
7411 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7412
04420943
DN
7413 * s/freebsd.h:
7414 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7415
0a5d24ae
DN
7416 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7417 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7418
a4ada374
DN
7419 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7420 * xterm.c (syms_of_xterm):
7421 * xfaces.c (syms_of_xfaces):
7422 * xdisp.c (syms_of_xdisp):
7423 * lread.c (syms_of_lread):
7424 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7425 build_string.
91433552 7426
a4ada374
DN
7427 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7428
af98fc7f
SM
74292009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7430
8ab1650e 7431 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7432
e90292a9
JD
74332009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7434
7435 * keyboard.h: Declare timer_check.
7436
7437 * keyboard.c (timer_check_2): New function that does what the old
7438 timer_check did.
7439 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7440 returned, i.e. don't return -1 with timers pending.
7441
7442 * process.c: Remove extern declaration of timer_check.
7443
7444 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7445 even if timer_check returned -1.
7446
af98fc7f
SM
7447 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7448 xg_dialog_data.
e90292a9
JD
7449 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7450 the event loop.
7451 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7452 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7453 Destroy the dialog after xg_dialog_run.
7454
045b83c0
SM
74552009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7456
7457 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7458
1fb99a3a
JD
74592009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7460
7461 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7462
04e452cb
JB
74632009-11-09 Juanma Barranquero <lekktu@gmail.com>
7464
7465 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7466
ef7417fd
SM
74672009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7468
7469 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7470 w32menu.c, and nsmenu.m.
7471 Simplify the obsolete case where position is nil.
7472 (cleanup_popup_menu): New function, moved from nsmenu.m.
7473 (struct skp): Remove slot `notreal'.
7474 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7475 adjust callers.
7476 (single_menu_item): Adjust call to parse_menu_item.
7477 (syms_of_menu): Defsubr x-popup-menu.
7478 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7479 (keymap_panes): Don't export any more.
7480 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7481 (xmenu_show): Declare.
7482 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7483 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7484 * keyboard.h (parse_menu_item): Update declaration.
7485 * xmenu.c (Fx_popup_menu): Remove.
7486 (syms_of_xmenu): Don't defsubr x-popup-menu.
7487 * w32menu.c (Fx_popup_menu): Remove.
7488 (syms_of_w32menu): Don't defsubr x-popup-menu.
7489 * nsmenu.m (cleanup_popup_menu): Remove.
7490 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7491 moved to menu.c's Fx_popup_menu.
7492 (Fx_popup_menu): Remove.
7493 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7494 menu_items (it's done in menu.c already).
7495
424d6179
SM
74962009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7497
7498 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7499 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7500
c0df13a6 75012009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7502
7503 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7504 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7505 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7506 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7507
2de9f71c
SM
75082009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7509
7510 Let integers use up 2 tags to give them one extra bit and thus double
7511 their range.
7512 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7513 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7514 New macros.
7515 (enum Lisp_Type): Use them. Give explicit values.
7516 (Lisp_Type_Limit): Remove.
7517 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7518 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7519 Pay attention to USE_2_TAGS_FOR_INTS.
7520 (INTEGERP): Use LISP_INT_TAG_P.
7521 * fns.c (internal_equal): Simplify the default case.
7522 (sxhash): Use case_Lisp_Int.
7523 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7524 any more.
7525 (Ftype_of): Use case_Lisp_Int.
7526 (store_symval_forwarding): Take into account the fact that Ints can
7527 now have more than one tag.
7528 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7529 (buffer_slot_type_mismatch):
2de9f71c
SM
7530 * xfaces.c (face_attr_equal_p):
7531 * print.c (print_object):
7532 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7533 Use case_Lisp_Int.
7534
323637a2
EZ
75352009-11-06 Eli Zaretskii <eliz@gnu.org>
7536
7ac65b38
EZ
7537 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7538
323637a2
EZ
7539 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7540 warning.
7541
e511451f
JD
75422009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7543
7544 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7545
7546 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7547
7548 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7549 ButtonPressRelease and MotionNotify (bug#4870).
7550
5e2327cf
DN
75512009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7552
5adc433e
DN
7553 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7554
d67b4f80
DN
7555 * xterm.c (syms_of_xterm):
7556 * xselect.c (syms_of_xselect):
7557 * xmenu.c (syms_of_xmenu):
7558 * xfns.c (syms_of_xfns):
7559 * xfaces.c (syms_of_xfaces):
7560 * xdisp.c (syms_of_xdisp):
7561 * window.c (syms_of_window):
7562 * w32fns.c (syms_of_w32fns):
7563 * undo.c (syms_of_undo):
7564 * textprop.c (syms_of_textprop):
7565 * terminal.c (syms_of_terminal):
7566 * syntax.c (syms_of_syntax):
7567 * sound.c (syms_of_sound):
7568 * search.c (syms_of_search):
7569 * print.c (syms_of_print):
7570 * minibuf.c (syms_of_minibuf):
7571 * macros.c (syms_of_macros):
7572 * keymap.c (syms_of_keymap, initial_define_key)
7573 (initial_define_lispy_key):
7574 * keyboard.c (syms_of_keyboard):
7575 * insdel.c (syms_of_insdel):
7576 * image.c (syms_of_image):
7577 * fringe.c (syms_of_fringe):
7578 * frame.c (syms_of_frame):
7579 * fontset.c (syms_of_fontset):
7580 * fns.c (syms_of_fns):
7581 * fns.c (syms_of_fns):
7582 * fileio.c (syms_of_fileio):
7583 * fileio.c (syms_of_fileio):
7584 * eval.c (syms_of_eval):
7585 * doc.c (syms_of_doc):
7586 * dispnew.c (syms_of_display):
7587 * dired.c (syms_of_dired):
7588 * dbusbind.c (syms_of_dbusbind):
7589 * data.c (syms_of_data):
7590 * composite.c (syms_of_composite):
7591 * coding.c (syms_of_coding):
7592 * cmds.c (syms_of_cmds):
7593 * charset.c (define_charset_internal, syms_of_character):
7594 * ccl.c (syms_of_ccl):
7595 * category.c (syms_of_category, init_category_once):
7596 * casetab.c (syms_of_casetab):
7597 * casefiddle.c (syms_of_casefiddle):
7598 * callint.c (syms_of_callint):
7599 * bytecode.c (syms_of_bytecode):
7600 * buffer.c (keys_of_buffer, syms_of_buffer):
7601 * alloc.c (syms_of_alloc):
7602 * process.c (syms_of_process, init_process):
7603 * lread.c (syms_of_lread, init_obarray):
7604 * font.c (build_style_table):
7605 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7606 intern_c_string, calls to make_pure_string with
7607 make_pure_c_string. Use pure_cons instead of Fcons.
7608
5e2327cf
DN
7609 * process.c (socket_options): Make it const.
7610 (set_socket_option, init_process): Use a const pointer.
7611
7612 * lread.c (intern_c_string): New function.
7613 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7614 (defvar_int): Uset it. Make the name const char*.
7615
7616 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7617 (defvar_int): Update prototypes.
7618 (DEFUN, EXFUN): Support for prototypes is now required.
7619 (intern_c_string): New prototype.
7620 (struct Lisp_Subr): Make symbol_name constant.
7621
7622 * font.c (struct table_entry): Remove unused member. Make NAMES
7623 constant.
7624 (weight_table, slant_table, width_table): Make constant.
7625
7626 * emacs.c (struct standard_args): Make name and longname constant.
7627
7628 * character.h (DEFSYM): Use intern_c_string.
7629
a56eaaef
DN
76302009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7631
7632 * alloc.c (make_pure_c_string): New function.
7633
7634 * eval.c (Fautoload): Purecopy all arguments.
7635
f6a07420
KH
76362009-11-05 Kenichi Handa <handa@m17n.org>
7637
7638 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7639 the buffer in case of replace.
7640
5d28d4b1
DN
76412009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7642
7643 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7644
b349d111
SM
76452009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7646
d528b1ce
SM
7647 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7648 when applicable (bug#4851).
7649
b349d111
SM
7650 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7651 (P_): Support for prototypes is now required.
7652
c38eb027
CY
76532009-10-31 Chong Yidong <cyd@stupidchicken.com>
7654
7655 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7656 (Bug#4827).
7657
0405f8d9
EZ
76582009-10-30 Eli Zaretskii <eliz@gnu.org>
7659
d528b1ce 7660 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7661
ca0a881a
DN
76622009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7663
7664 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7665
d528b1ce
SM
7666 * lread.c (Fload): Purecopy the file name when building
7667 Vpreloaded_file_list.
ca0a881a 7668
47e0e0e4
JR
76692009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7670
7671 * w32fns.c (syms_of_w32fns): Change default value of
7672 w32-scroll-lock-modifier to nil. (Bug#2827)
7673
057bce6f
JB
76742009-10-26 Juanma Barranquero <lekktu@gmail.com>
7675
782a943e 7676 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7677
242bc74c
AS
76782009-10-26 Andreas Schwab <schwab@redhat.com>
7679
7680 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7681
522d013a
JB
76822009-10-26 Juanma Barranquero <lekktu@gmail.com>
7683
7684 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7685 For delta < 0, skip check that only makes sense when the mini-window
7686 is going to be enlarged. (Bug#4534)
7687
18060980
CY
76882009-10-25 Chong Yidong <cyd@stupidchicken.com>
7689
7690 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7691 string in menu maps (Bug#4471).
7692
fec8f0fe
CY
76932009-10-24 Chong Yidong <cyd@stupidchicken.com>
7694
7695 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7696 FRAME_NS_VIEW on terminal frames (Bug#4765).
7697
10d66ec0
AS
76982009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7699
1cae01f7
AS
7700 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7701 DBUS_TYPE_UINTnn separately to get proper sign extension.
7702
58a12889
AS
7703 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7704 can properly handle unsigned types.
d528b1ce 7705 (make_uid, make_gid): Remove.
58a12889 7706
987c9327
AS
7707 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7708 types again.
7709
522d013a 7710 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7711 (system_process_attributes): Likewise.
7712
905a9ed3
DN
77132009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7714
7715 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7716
7717 * eval.c (Fautoload): Purecopy the filename. Simplify.
7718
7719 * category.c (Fdefine_category): Purecopy docstring.
7720
a599b3e8
AS
77212009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7722
7b792fc9
AS
7723 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7724
a599b3e8
AS
7725 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7726
b35ac83e
CY
77272009-10-23 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7730 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7731 (Bug#4775).
7732
e8903e00
SM
77332009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7734
7735 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7736 (init_fileio_once):
7737 * lisp.h (init_fileio_once): Remove.
7738 * emacs.c (main): Don't call init_fileio_once.
7739
8f43cbf3
DN
77402009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7741
7742 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7743
26898943
AS
77442009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7745
7746 * doprnt.c (doprnt): Fix overflow check.
7747
5c646d5a
JD
77482009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7749
3132a7ea
JD
7750 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7751
5c646d5a
JD
7752 * xterm.h (x_wait_for_event): Declare it.
7753
7754 * xterm.c (pending_event_wait): New variable.
7755 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7756 see pending_event_wait.eventtype.
7757 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7758 (x_new_font): Call change_frame_size with new rows/columns before we
7759 try to resize the frame.
5c646d5a 7760 (x_wait_for_event): New function.
d528b1ce
SM
7761 (x_set_window_size_1): Don't change gravity unless change_gravity
7762 is set.
5c646d5a
JD
7763 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7764 don't change frame size, instead wait for the ConfigureNotify.
7765 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7766 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7767 (x_initialize): Initialize pending_event_wait.
7768
7769 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7770 size.
7771
7772 * widget.c (EmacsFrameSetValues): Add comment.
7773 (EmacsFrameSetCharSize): Just call x_set_window_size.
7774
7775 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7776 x_wait_for_event.
d528b1ce 7777 (flush_and_sync): Remove again.
5c646d5a
JD
7778 (xg_get_font_name): Suggest monospace if no previous font is known.
7779
e9c1637d
SM
77802009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7781
7782 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7783 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7784
5a72cccb
YM
77852009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7786
7787 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7788 processing pending events when event is filtered for input method.
ab04798f 7789 (Bug#3681)
5a72cccb 7790
2629aa37
JB
77912009-10-20 Juanma Barranquero <lekktu@gmail.com>
7792
7793 * fns.c: Add #endif accidentally removed in previous change.
7794
c3417a74
DN
77952009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 * fns.c: Remove code for unsupported system: MAC_OS.
7798 * image.c: Likewise. Include setjmp.h.
7799
9685cef2
JD
78002009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7801
7802 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7803 pixel -1 (bug #4742).
7804
d7306fe6
DN
78052009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7806
019d2c4c
DN
7807 * process.c (create_pty): Remove conditionals for no longer
7808 supported systems: UNIPLUS and RTU.
7809
ee6bacd4
DN
7810 * xterm.c:
7811 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7812
d7306fe6
DN
7813 * alloc.c: Do not define struct catchtag.
7814 * eval.c: Move struct catchtag definition ...
7815 * lisp.h: ... here.
7816
7817 * image.c: Move png.h #include earlier to avoid warnings.
7818
7819 * xterm.c:
7820 * xsmfns.c:
7821 * xselect.c:
7822 * xrdb.c:
7823 * xmenu.c:
7824 * xftfont.c:
7825 * xfont.c:
7826 * xfns.c:
7827 * xfaces.c:
7828 * xdisp.c:
7829 * window.c:
7830 * widget.c:
7831 * w32xfns.c:
7832 * w32uniscribe.c:
7833 * w32term.c:
7834 * w32select.c:
7835 * w32reg.c:
7836 * w32proc.c:
7837 * w32menu.c:
7838 * w32inevt.c:
7839 * w32heap.c:
7840 * w32font.c:
7841 * w32fns.c:
7842 * w32console.c:
7843 * w32.c:
7844 * w16select.c:
7845 * vm-limit.c:
7846 * unexsol.c:
7847 * unexec.c:
7848 * unexcw.c:
7849 * unexaix.c:
7850 * undo.c:
7851 * tparam.c:
7852 * textprop.c:
7853 * terminfo.c:
7854 * terminal.c:
7855 * termcap.c:
7856 * term.c:
7857 * syntax.c:
7858 * sound.c:
7859 * sheap.c:
7860 * search.c:
7861 * scroll.c:
7862 * region-cache.c:
7863 * regex.c:
7864 * ralloc.c:
7865 * process.c:
7866 * print.c:
b024548b
DN
7867 * nsterm.m:
7868 * nsselect.m:
7869 * nsmenu.m:
7870 * nsimage.m:
7871 * nsfont.m:
7872 * nsfns.m:
d7306fe6
DN
7873 * msdos.c:
7874 * minibuf.c:
7875 * menu.c:
7876 * marker.c:
7877 * macros.c:
7878 * keymap.c:
7879 * keyboard.c:
7880 * intervals.c:
7881 * insdel.c:
7882 * indent.c:
7883 * gtkutil.c:
7884 * ftxfont.c:
7885 * ftfont.c:
7886 * fringe.c:
7887 * frame.c:
7888 * fontset.c:
7889 * font.c:
7890 * fns.c:
7891 * floatfns.c:
7892 * filelock.c:
7893 * fileio.c:
7894 * emacs.c:
7895 * editfns.c:
7896 * dosfns.c:
7897 * doprnt.c:
7898 * doc.c:
7899 * dispnew.c:
7900 * dired.c:
7901 * dbusbind.c:
7902 * data.c:
7903 * composite.c:
7904 * coding.c:
7905 * cmds.c:
7906 * cm.c:
7907 * chartab.c:
7908 * charset.c:
7909 * character.c:
7910 * ccl.c:
7911 * category.c:
7912 * casetab.c:
7913 * casefiddle.c:
7914 * callproc.c:
7915 * callint.c:
7916 * bytecode.c:
7917 * buffer.c:
7918 * atimer.c: Include setjmp.h. (Bug#4643)
7919
fd5f21e6
SM
79202009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7921
4c0354d7
SM
7922 Remove leftover table unibyte_to_multibyte_table.
7923 * character.c (unibyte_to_multibyte_table): Remove.
7924 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7925 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7926 * character.h (UNIBYTE_TO_CHAR): New macro.
7927 (MAKE_CHAR_MULTIBYTE): Use it.
7928 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7929 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7930 (message_dolog, set_message_1):
7931 * search.c (Freplace_match):
7932 * editfns.c (Fcompare_buffer_substrings):
7933 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7934 (concat):
7935 * insdel.c (copy_text, count_size_as_multibyte):
7936 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7937 * term.c (produce_glyphs):
7938 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7939 * regex.c (RE_CHAR_TO_MULTIBYTE):
7940 * cmds.c (internal_self_insert):
7941 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7942
fd5f21e6
SM
7943 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7944
4418646e
DN
79452009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7946
7947 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7948
35f5c1d2
JB
79492009-10-16 Juanma Barranquero <lekktu@gmail.com>
7950
7951 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7952
a0cd8f6b
AR
79532009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7954
7955 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7956 still needed under Tiger.
7957
7958 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7959
7960 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7961 __Apple__.
7962
7963 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7964
01a8d3fa
KH
79652009-10-15 Kenichi Handa <handa@m17n.org>
7966
7967 * print.c (print_object): Escape a symbol like "2E10" too.
7968
bf6c75c9 79692009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7970
7971 Cleanups and changes for 64-bit compile under Snow Leopard.
7972 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7973
7974 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7975
c5959062 7976 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7977 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7978 cast argument.
7979 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7980 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7981
7982 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7983
7984 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7985 where appropriate.
7986
7987 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7988 where appropriate.
6e4780c5
JB
7989 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7990 Use stringWithUTF8String.
bf6c75c9
AR
7991 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7992
6e4780c5
JB
7993 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7994 Add formal protocol mention to inheritance.
bf6c75c9
AR
7995 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7996
6e4780c5
JB
7997 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7998 Fix printf format.
bf6c75c9
AR
7999 (ns_query_color): Use CGFloat where appropriate.
8000 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 8001 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
8002 argument.
8003
3d87f118
AR
8004 * config.in (NS_HAVE_NSINTEGER): Drop.
8005
a95c8102
AR
8006 * dbusbind.c (dbus-method-return-internal)
8007 (dbus-method-error-internal): Use long format in printf, and cast
8008 argument.
8009
8010 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8011 in printf, and cast argument.
8012
6873acca 8013 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
8014 cast argument.
8015
9ec6f100
GM
80162009-10-11 Glenn Morris <rgm@gnu.org>
8017
8018 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8019
5be883cd
JD
80202009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8021
8022 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8023 menu bar with a small width so it doesn't enlarge the frame.
8024
d7a39b51
JB
80252009-10-08 Juanma Barranquero <lekktu@gmail.com>
8026
8027 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8028
0c2b6f8e
GM
80292009-10-06 Glenn Morris <rgm@gnu.org>
8030
8031 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8032 SOME_MACHINE_LISP (this enters indirectly via DOC).
8033
e02131a2
EZ
80342009-10-05 Eli Zaretskii <eliz@gnu.org>
8035
8036 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8037
b4744254
EZ
80382009-10-04 Eli Zaretskii <eliz@gnu.org>
8039
8040 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8041 Doc fix.
8042
dbf64827
JB
80432009-10-03 Martin Rudalics <rudalics@gmx.at>
8044
8045 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8046
e9a0aef8
MA
80472009-10-02 Michael Albinus <michael.albinus@gmx.de>
8048
d528b1ce 8049 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
8050 used anymore outside fileio.c.
8051
8052 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8053
64eb2b56
JB
80542009-10-01 Juanma Barranquero <lekktu@gmail.com>
8055
8056 * lisp.h (Qdelete_directory_internal):
8057 Declare, instead of Qdelete_directory.
8058
8059 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8060
9d28c33e
SM
80612009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8062
8063 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8064
9d8f3bd9
MA
80652009-10-01 Michael Albinus <michael.albinus@gmx.de>
8066
9d28c33e 8067 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
8068 Fdelete_directory. It is not a command anymore. It has no file
8069 name handler.
8070
9694740b
SM
80712009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8072
8073 * xdisp.c (get_next_display_element): Use an enum in last change.
8074
748e162f
KH
80752009-09-28 Kenichi Handa <handa@m17n.org>
8076
9694740b 8077 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
8078 unibyte_display_via_language_environment in handling
8079 Vnobreak_char_display.
8080
17efd58d
AR
80812009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8082
8083 * nsterm.h (ns_app_name): New extern variable.
8084
8085 * nsterm.m (ns_app_name): New variable.
8086 (ns_term_init): Set and use it.
8087 (ns_term_shutdown): Use it.
8088
8089 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8090 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8091
8092 * nsfns.m (ns_set_name_iconic, ns_set_name)
8093 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8094 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8095
9694740b
SM
8096 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8097 Remove double-casting in client_data comparison.
31c2d412 8098
3208cb35
YM
80992009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8100
8101 * keyboard.c (make_lispy_event): Remember last wheel direction.
8102 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8103
b7d552d6
GM
81042009-09-26 Glenn Morris <rgm@gnu.org>
8105
8106 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8107 internal.elc. Add term/pc-win.elc.
8108 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8109 term/x-win.elc.
8110 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8111 term/w32-win.elc.
8112 (NS_SUPPORT): New.
8113 (lisp): Add NS_SUPPORT.
8114 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8115
4ff670a8
DR
81162009-09-25 David Reitter <david.reitter@gmail.com>
8117
8118 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8119 on Mac OS X 10.6+ (bug#4513).
8120
feabfb6c
JB
81212009-09-24 Juanma Barranquero <lekktu@gmail.com>
8122
8123 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8124 some parts of Emacs code (like font selection) don't grok them.
8125 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8126
de59072a
AS
81272009-09-24 Andreas Schwab <schwab@redhat.com>
8128
8129 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8130
a489517b
JB
81312009-09-24 Juanma Barranquero <lekktu@gmail.com>
8132
8133 * dired.c (Fdirectory_files): Fix typo in docstring.
8134
0592970c
AR
81352009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8136
8137 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8138 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8139 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8140 under GNUstep.
8141 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8142
8143 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8144 glyph advancement.
8145
48e8a88b
AR
81462009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8147
8148 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8149 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8150
8151 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8152 deleted (bug #4492).
8153
e14f0a78
AR
8154 * nsfont.m (Vns_reg_to_script): New lisp variable.
8155 (syms_of_nsfont): Declare it.
8156 (ns_registry_to_script): New function.
8157 (ns_get_req_script): Call it.
8158 (ns_findfonts): Don't give up on non-unicode registry.
8159
8160 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8161
5b650faa
SM
81622009-09-20 Tom Tromey <tromey@redhat.com>
8163
8164 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8165 batch mode (bug#4228).
8166
a489517b 81672009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8168
8169 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8170 carefully. (Bug #4339)
0bae4e09 8171
fcfe06f3
CY
81722009-09-18 Chong Yidong <cyd@stupidchicken.com>
8173
d798ba87 8174 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8175
31642728
AR
81762009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8177
8178 * emacs.c (inhibit_x_resources): Update doc string for NS.
8179 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8180 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8181
8182 * nsterm.h (ns_no_defaults): Remove.
8183
8184 * nsterm.m (ns_no_defaults): Remove.
8185 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8186 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8187 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8188 don't update the NSWindow itself.
8189 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8190 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8191
8192 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8193 ns_use_qd_smoothing.
8194
8195 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8196 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8197 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8198 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8199
8686ac71
JB
82002009-09-17 Juanma Barranquero <lekktu@gmail.com>
8201
8202 * emacs.c (inhibit_x_resources): New variable.
8203 (main) [HAVE_NS]: Don't process --quick command line option.
8204 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8205
8206 * lisp.h (inhibit_x_resources): Declare it extern.
8207
8208 * w32reg.c (x_get_string_resource):
8209 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8210
e227ba05
EZ
82112009-09-17 Eli Zaretskii <eliz@gnu.org>
8212
362654a6
JB
8213 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8214 Add lisp/term/internal.elc.
e227ba05 8215
742d40e8
SM
82162009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8217
8218 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8219 (bug#4461).
8220
005bd5a2
DN
82212009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8222
8223 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8224
8225 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8226 (OBJECTS_MACHINE): Remove, unused.
8227
f9af9719
SM
82282009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8229
8230 * frame.c (x_get_resource_string): Remove unused.
8231
0307c7d2
JD
82322009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8233
8234 * xterm.c (x_new_font): Call change_frame_size before calling
8235 x_set_window_size, in case frame size won't change.
8236
8237 * frame.c (x_set_font): Remove dead code.
8238
428b13d6
SM
82392009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8240
8241 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8242
5766c380
SM
82432009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8244
8245 * lread.c (Fload): Don't output a message after loading an obsolete
8246 package any more (done in Lisp now).
8247
2fd0161b
CY
82482009-09-12 Chong Yidong <cyd@stupidchicken.com>
8249
8250 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8251
bc5e75b6
SM
82522009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8253
8254 * keymap.c (Fwhere_is_internal): Use nconc2.
8255
c31c985e
AM
82562009-09-11 Alan Mackenzie <acm@muc.de>
8257
8258 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8259 batch mode.
8260
78012bd2
AS
82612009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8262
8263 * xdisp.c (display_mode_element): Detect cycles.
8264
9d889332
SM
82652009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8266
8267 * keymap.c (where_is_internal): Don't erroneously return nil right after
8268 filling the cache.
8269 (where_is_internal_1): Fix up typo.
8270
7ab5d780
GM
82712009-09-11 Glenn Morris <rgm@gnu.org>
8272
8273 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8274 share a common doc-string.
8275
5238a749
SM
82762009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8277
66d77eda
SM
8278 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8279 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8280
5238a749
SM
8281 * keymap.c (QCadvertised_binding): New constant.
8282 (syms_of_keymap): Initialize it.
8283 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8284 if applicable.
8285
19f48442
SM
82862009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8287
50d4ba39
SM
8288 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8289 (parse_menu_item): Streamline since bindings are recomputed all the
8290 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8291 more and don't support lmenu's menu-alias any more either.
8292
a88a5372
SM
8293 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8294 (where_is_internal): Strip it down to only traverse the keymaps.
8295 Move the cache handling from Fwhere_is_internal to here.
8296 (Fwhere_is_internal): Move the handling of remapping and the choice of
8297 the best binding from where_is_internal to here.
8298 Unify the cached/noncached paths, so remapping is also handled
8299 correctly when the cache is used, and so the cache can be used to
8300 speed up remap-handling when applicable.
8301 Give preference to non-remapped bindings.
8302 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8303 non-remapped bindings.
8304 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8305 command remapping.
8306
19f48442
SM
8307 * xdisp.c (display_mode_element): Move list length limit from 50 to
8308 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8309
599498c3 83102009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8311
8312 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8313
f9b7b5ac
SM
83142009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8315
a53af587
JB
8316 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8317 (Bug#4334)
8318
f9b7b5ac
SM
8319 * keymap.c (where_is_internal): Filter out shadowed remappings.
8320 Assume that where_is_internal returns unshadowed bindings to simplify
8321 the code and get rid of the gotos. Use ASIZE.
8322
04f4b72d
JD
83232009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8324
4da146f2
JD
8325 * xterm.c (x_focus_changed): If we get a focusout and pointer
8326 is invisible, make it visible.
8327
04f4b72d
JD
8328 * xterm.h: Remove condition for declaration of
8329 x_*_window_to_frame.
8330
7cef7ce3
SM
83312009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8332
8333 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8334 initial terminal as well.
8335
a54fa5b7
JD
83362009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8337
8338 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8339 x_menubar_window_to_frame.
a54fa5b7 8340
50426a04 8341 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8342 (XTmouse_position): Do not return valid positions
8343 for clicks in the menubar and the toolbar for Gtk+.
8344
8345 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8346 if the widget for the event has the same top level as a frame,
8347 return the frame.
8348 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8349 internal windows, bug #4122.
8350 (x_non_menubar_window_to_frame): Remove.
8351
5a021dd0
GM
83522009-09-02 Glenn Morris <rgm@gnu.org>
8353
8354 * buffer.c (default-major-mode): Move most of the doc from here...
8355 (major-mode): ... to here.
8356
548fe2f3
NR
83572009-08-30 Nick Roberts <nickrob@snap.net.nz>
8358
8359 * process.c (wait_reading_process_output): Keep the descriptor
8360 when pty is used by a non-child process, e.g., in I/O buffer of
8361 GDB this allows inferior to be restarted.
8362
e0840eef
EZ
83632009-08-29 Eli Zaretskii <eliz@gnu.org>
8364
8365 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8366 both branches into one.
8367
82e98df4
SM
83682009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8369
8370 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8371 (main): Use enable-multibyte-characters rather than
8372 default-enable-multibyte-characters. Output a warning message when
8373 running a unibyte session.
8374
890617cb
YM
83752009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8376
8377 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8378 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8379 (copy_data_segment): Also copy __program_vars section.
8380 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8381 (dump_it) [LC_DYLD_INFO]: Use it.
8382
8383 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8384
e7adeadc
EZ
83852009-08-28 Eli Zaretskii <eliz@gnu.org>
8386
8387 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8388 $(SRC)/buildobj.h.
8389 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8390 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8391 $(SRC)/buildobj.h.
8392 (clean): Add buildobj.h.
8393
3ed8bbdc
TZ
83942009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8395
8396 * print.c (print_object): Set escapeflag to 1 when printing
8397 hashtable keys and values.
8398
155a6764
SM
83992009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8400
8401 * lread.c (read_integer): Use doubles (and potentially return a float
8402 number) as we do in string-to-number.
8403 (read1): Use strtol to read integers, signal errors on strtol's
8404 overflow and use floats if strtol's output is too large for
8405 Elisp integers.
8406
877610de
EZ
84072009-08-27 Eli Zaretskii <eliz@gnu.org>
8408
8409 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8410 (make-buildobj-SH): Fix last change.
8411 (SRC): Move to before where it's first used.
8412
ef73e7be
KH
84132009-08-27 Kenichi Handa <handa@m17n.org>
8414
550c8289
KH
8415 * process.c (send_process): Use encode_coding_object instead of
8416 encode_coding_string to perform eol-conversion even if the string
8417 is unibyte.
8418
60afa08d
KH
8419 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8420 character.
8421
ef73e7be 8422 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8423 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8424
7b3a82d7
DN
84252009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8426
5654bf63
DN
8427 * callproc.c (Fcall_process): Remove always true #if.
8428
7b3a82d7
DN
8429 * lisp.h: Replace #if 0 code for checking with text pointing to
8430 the --enable-checking configure flag.
8431
8432 * emacs.c (main): Mention the --enable-profiling configure flag
8433 instead of using CFLAGS.
8434
878bde49
KR
84352009-08-26 Ken Raeburn <raeburn@raeburn.org>
8436
8437 * Makefile.in (buildobj.h): New target.
8438 (doc.o): Depend on it.
8439 (temacs${EXEEXT}): Don't generate buildobj.lst.
8440 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8441 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8442 ($(BLD)/doc.$(O)): Depend on it.
8443 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8444 provided by Eli Zaretskii.)
8445 ($(TEMACS)): Don't generate buildobj.lst.
8446 * doc.c: Include buildobj.h.
8447 (buildobj): New static variable.
8448 (Fsnarf_documentation): Use it, instead of opening and reading
8449 buildobj.lst.
8450
1574224c
MA
84512009-08-25 Michael Albinus <michael.albinus@gmx.de>
8452
8453 * dbusbind.c (Fdbus_call_method)
8454 (Fdbus_call_method_asynchronously): Use English numeric format for
8455 timeout values in doc string.
8456
d9da2f45
KH
84572009-08-25 Kenichi Handa <handa@m17n.org>
8458
ef73e7be
KH
8459 * alloc.c (mark_char_table): New function.
8460 (mark_object): Use mark_char_table for a char-table.
8461
d9da2f45
KH
8462 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8463 (CHAR_TABLE_REF): Use it.
8464
c8edcc01
KR
84652009-08-23 Ken Raeburn <raeburn@raeburn.org>
8466
8467 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8468 before invoking the newly build emacs to check for load-path
8469 shadowing.
8470
7763401b
GM
84712009-08-22 Glenn Morris <rgm@gnu.org>
8472
8473 * Makefile.in (bootstrap_exe): New variable.
8474 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8475 Use ${bootstrap_exe}.
8476
729eadda
EZ
84772009-08-22 Eli Zaretskii <eliz@gnu.org>
8478
8479 * coding.h (encode_coding_string): Don't encode unibyte strings.
8480 (Bug#4047)
8481
eb4c6ace
MA
84822009-08-22 Michael Albinus <michael.albinus@gmx.de>
8483
8484 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8485
8486 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8487 intended as hotfix only.
8488 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8489
36e34d1b
AR
84902009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8491
8492 * nsterm.m (ns_get_color): Update documentation properly for last
8493 change, and clean up loose ends in the code left by it. Fix
8494 longstanding bug with 16-bit hex parsing, and add support for
8495 yet another X11 format (rgb:r/g/b) for compatibility.
8496 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8497 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8498
f983eb8a
SM
84992009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8500
8501 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8502
3f56d3c6
MA
85032009-08-20 Michael Albinus <michael.albinus@gmx.de>
8504
8505 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8506 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8507 (xd_initialize, xd_pending_messages): Check, whether
8508 $DBUS_SESSION_BUS_ADDRESS is set.
8509
fb641d68
YM
85102009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8511
8512 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8513
8514 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8515
cf59a374
GM
85162009-08-20 Glenn Morris <rgm@gnu.org>
8517
8518 * emacs.c (system-type): Doc fix.
8519
1373f3be
SM
85202009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8521
8522 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8523 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8524
058ed861
MA
85252009-08-18 Michael Albinus <michael.albinus@gmx.de>
8526
1373f3be
SM
8527 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8528 New functions.
058ed861
MA
8529 (xd_initialize): Revert change from 2009-08-16.
8530
563a866e 85312009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8532
8533 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8534 font-group vector, return nil.
5fc05db0 8535
e42bdf01
CY
85362009-08-17 Chong Yidong <cyd@stupidchicken.com>
8537
8538 * process.c (status_notify): Don't perform redisplay.
8539 (Fdelete_process, list_processes_1, process_send_signal):
8540 Expliticly perform redisplay.
8541 (wait_reading_process_output): Always check process status, but
8542 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8543
4230ab74
KR
85442009-08-17 Ken Raeburn <raeburn@raeburn.org>
8545
1373f3be 8546 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8547 (XFLOAT_INIT): New macro for storing a float value.
8548 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8549 * fns.c (sxhash): Copy out the value of a float in order to
8550 examine its bytes.
8551 * dbusbind.c (xd_append_arg): Likewise.
8552
4230ab74
KR
8553 * emacs.c (main): Don't call syms_of_data twice.
8554
a0645cdd
MA
85552009-08-16 Michael Albinus <michael.albinus@gmx.de>
8556
8557 * dbusbind.c (xd_initialize): Add connection file descriptor to
8558 input_wait_mask, in order to let select() detect, whether a new
8559 message has been arrived.
ca4f31ea 8560 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8561
485db0ba
MA
85622009-08-15 Michael Albinus <michael.albinus@gmx.de>
8563
1373f3be
SM
8564 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8565 New functions.
485db0ba
MA
8566
8567 * lisp.h (xd_pending_messages): Declare.
8568
8569 * keyboard.c (readable_events): Call xd_pending_messages.
8570
b5b98ff4
CY
85712009-08-15 Chong Yidong <cyd@stupidchicken.com>
8572
1373f3be 8573 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8574
f8354c6e
CY
8575 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8576
b5b98ff4
CY
8577 * buffer.c (set_buffer_internal_1)
8578 (swap_out_buffer_local_variables): Check for unbound local
8579 variables (Bug#4138).
8580
8b9fc636
EZ
85812009-08-14 Eli Zaretskii <eliz@gnu.org>
8582
8583 * process.c (create_pty): Fix last change.
8584
ce959360
CY
85852009-08-13 Chong Yidong <cyd@stupidchicken.com>
8586
8587 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8588 (xbm_load_image): Caller changed.
64b807c9 8589 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8590
c7baf7e9
NR
85912009-08-13 Nick Roberts <nickrob@snap.net.nz>
8592
8593 * process.c (create_pty): New function.
8594 (Fstart_process): Use it to allow Emacs to just associate a pty
8595 with the buffer. See associated change in gdb-mi.el.
8596 (list_processes_1): Deal with no program name.
8597 (start_process_unwind): Use pid == -2 to mean no process.
8598
1ac9108a
SM
85992009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8600
8601 * cmds.c (nonundocount): New global variable.
8602 (keys_of_cmds): Initialize it.
8603 (Fself_insert_command): Use it to combine upto 20 sequential chars
8604 into a single undo entry, just like the Qself_insert_command code in
8605 keyboard.c does.
8606 Call frame_make_pointer_invisible, also like the Qself_insert_command
8607 code in keyboard.c does.
8608 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8609 than its own local replacement for it.
8610
e267324c
KR
86112009-08-10 Ken Raeburn <raeburn@raeburn.org>
8612
1ac9108a 8613 * fns.c (concat): Don't re-set string length to its current value.
77437343 8614
1ac9108a
SM
8615 * coding.h (decode_coding_string, encode_coding_string):
8616 Use SBYTES macro.
f0bed503 8617
1ac9108a 8618 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8619 (doprnt): Merge with doprnt1, discarding lispstrings code.
8620 * lisp.h (doprnt_lisp): Don't declare.
8621
416e006d
JL
86222009-08-07 Juri Linkov <juri@jurta.org>
8623
8624 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8625
6f7d5780
DN
86262009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8627
8628 * print.c (syms_of_print): Undo previous change.
8629
f19a0f5b
TZ
86302009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8631
8632 * lread.c (read1, syms_of_lread): Read hashtables back from the
8633 readable format.
8634
8635 * print.c (print_preprocess, print_object): Print hashtables fully
8636 and readably.
8637 (syms_of_print): Provide 'hashtable-print-readable.
8638
b9173dc2
AR
86392009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8640
8641 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8642 no family set.
8643 (nsfont_open): Handle case when entity has no family.
8644
1586503c
AR
86452009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8646
8647 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8648 element, not a list, for match case.
8649
087048cd
KH
86502009-07-28 Kenichi Handa <handa@m17n.org>
8651
8652 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8653 rigidly.
8654
8655 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8656 font_parse_xlfd. Check font properties more rigidly.
8657
780c2506
DN
86582009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8659
31fd7c5c
JB
8660 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8661 bsd-common.h.
780c2506 8662
a8c0cc18
KH
86632009-07-27 Kenichi Handa <handa@m17n.org>
8664
8665 * xfaces.c (face_with_height): Call font_clear_prop.
8666
4fbe2306
CY
86672009-07-26 Chong Yidong <cyd@stupidchicken.com>
8668
111d9af3
CY
8669 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8670
8671 * xterm.c (x_term_init): Use Qx.
8672
4fbe2306
CY
8673 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8674
1ac9108a 8675 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8676 (ns_get_color): Revert 2009-07-16 change.
8677
beb0b7f9
EZ
86782009-07-25 Eli Zaretskii <eliz@gnu.org>
8679
8680 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8681 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8682
2baf5e76
KR
86832009-07-25 Ken Raeburn <raeburn@raeburn.org>
8684
1ac9108a
SM
8685 * coding.h (decode_coding_string, encode_coding_string):
8686 Use SCHARS macro.
8890e5f5 8687
2baf5e76 8688 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8689 (load_depth): Delete.
2baf5e76
KR
8690 (Qload_in_progress): New variable.
8691 (load_unwind): Don't reference load_depth or load_in_progress.
8692 (Fload): Likewise; specbind Qload_in_progress instead.
8693 (init_lread): Don't initialize load_depth.
8694 (syms_of_lread): Initialize and protect Qload_in_progress.
8695
1395c6f5
AR
86962009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8697
8698 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8699
4e2f36cf
AR
87002009-07-23 Yavor Doganov <yavor@gnu.org>
8701
8702 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8703
5dd9a6f7
AR
87042009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8705
8706 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8707 Bugs 3792, 3720, 2402.
8708 (ns_lookup_indexed_color): Check for bad index.
8709 (ns_index_color): Init unused slot to 0.
8710 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8711 Bug 3714, possibly 3082.
5dd9a6f7 8712
c902b920
JR
87132009-07-22 Jason Rumney <jasonr@gnu.org>
8714
1ac9108a
SM
8715 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8716 Position IME window at cursor (Bug#2570).
c902b920
JR
8717 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8718 (globals_of_w32fns): Dynamically load functions required above.
8719
8720 * w32term.c (w32_draw_window_cursor): Send message to reposition
8721 any IME window.
8722
090101cf
CY
87232009-07-21 Chong Yidong <cyd@stupidchicken.com>
8724
8725 * fileio.c: Revert 2009-07-16 changes.
8726 (Vauto_save_include_big_deletions): New variable.
8727 (Fdo_auto_save): Disable auto-save only if
8728 auto-save-include-big-deletions is nil.
8729
e6583e3d
CY
87302009-07-21 Chong Yidong <cyd@stupidchicken.com>
8731
8732 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8733 the overflowed pixels into account (Bug#3879).
8734
ece435a5
KR
87352009-07-21 Ken Raeburn <raeburn@raeburn.org>
8736
8737 * lread.c (load_depth): New variable.
8738 (Fload, load_unwind, init_lread): Set it to the load recursion
8739 depth; set load_in_progress as a simple boolean based on the
8740 current load_depth. (Bug#3892)
8741
40b2d973
AR
87422009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8743
8744 * nsfont.m (ns_has_attribute): Remove.
8745 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8746
10be7e0d
JL
87472009-07-18 Juri Linkov <juri@jurta.org>
8748
8749 * process.c (Fset_process_query_on_exit_flag): Mention killing
8750 a buffer in docstring.
8751
fa055055
KH
87522009-07-17 Kenichi Handa <handa@m17n.org>
8753
8754 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8755
042f7b69
YM
87562009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8757
8758 * nsfns.m (Fns_set_alpha): Remove function.
8759 (syms_of_nsfns): Don't defsubr it.
8760
8761 * nsterm.m (ns_get_color): Remove incompatible color formats.
8762 (ns_color_to_lisp): Generate #rrggbb color format string.
8763
4be941e3
RS
87642009-07-16 Richard Stallman <rms@gnu.org>
8765
8766 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8767 (Fset_buffer_auto_saved): Handle save_length = -2.
8768
4e6b227d
CY
87692009-07-16 Chong Yidong <cyd@stupidchicken.com>
8770
8771 * xterm.c (Qx_gtk_map_stock): New var.
8772
8773 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8774 of calling intern each time.
8775
a1856973
YM
87762009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8777
8778 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8779 does tiling.
8780
8781 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8782
497e54d8
KH
87832009-07-14 Kenichi Handa <handa@m17n.org>
8784
72d36834
KH
8785 * font.c (font_vconcat_entity_vectors): New function.
8786 (struct font_sort_data): New member font_driver_preference.
8787 (font_compare): Check font_driver_preference.
8788 (font_sort_entities): The format of the first argument changed.
8789 (font_delete_unmatched): Likewise.
8790 (font_list_entities): The return type changed.
8791 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8792 (font_find_for_lface): Adjuste for the above changes.
8793 Don't suppress the checking of C even if the repertory supports it.
8794 (Flist_fonts): Adjust for the above changes.
72d36834 8795
1ac9108a
SM
8796 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8797 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8798 Reject a font who has adstyle property that is different from a
8799 langname derived from registry property.
1ac9108a 8800 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8801
b6046155
EZ
88022009-07-13 Eli Zaretskii <eliz@gnu.org>
8803
8804 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8805 local copy of dirfilename.
8806
fb6b6049
KH
88072009-07-13 Kenichi Handa <handa@m17n.org>
8808
e2402a5e
KH
8809 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8810 against max_char.
8811
fb6b6049
KH
8812 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8813 calling XSYMBOL (sym).
8814
65156807
EZ
88152009-07-11 Eli Zaretskii <eliz@gnu.org>
8816
1ac9108a
SM
8817 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8818 New function.
8819 (directory_files_internal) [WINDOWSNT]:
8820 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8821 the filesystem of the directory is fast or slow.
8822
8823 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8824 file name.
8825 (is_slow_fs): New function.
8826 (stat): Use it to determine whether to issue more system calls to
8827 get accurate file attributes, when w32-get-true-file-attributes is
8828 `local'.
8829
e0ab5fcf
JD
88302009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8831
8832 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8833 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8834 parameter font-parameter as default to the font dialog.
8835
784ceded
KH
88362009-07-10 Kenichi Handa <handa@m17n.org>
8837
8838 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8839
fb8edc0b
EZ
88402009-07-09 Eli Zaretskii <eliz@gnu.org>
8841
1ac9108a 8842 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8843
fb8edc0b
EZ
8844 * w32.c (stat): Treat UNC file names as residing on remote
8845 drives. (Bug#3542)
8846
635c75b1
KH
88472009-07-09 Kenichi Handa <handa@m17n.org>
8848
8849 * fontset.c (fontset_find_font): Fix previous change.
8850
c1d5ce94
MA
88512009-07-08 Michael Albinus <michael.albinus@gmx.de>
8852
8853 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8854 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8855 error flag.
8856
edb61b39
KH
88572009-07-08 Kenichi Handa <handa@m17n.org>
8858
374bf7e4
KH
8859 * fontset.c (fontset_find_font): Fix the logic of handling
8860 charset_matched.
8861 (font_for_char): Delete unused var.
8862 (generate_ascii_font_name): Delete it.
8863
edb61b39
KH
8864 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8865
8866 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8867 (encode_coding_sjis): Fix the code range check.
8868
0f3f018c
CY
88692009-07-07 Chong Yidong <cyd@stupidchicken.com>
8870
8871 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8872 (Fexpand_file_name): Copy string data properly (Bug#3772).
8873
fcaf6f3a
JD
88742009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8875
8876 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8877 first MapNotify.
8878
6809ca75
KH
88792009-07-07 Kenichi Handa <handa@m17n.org>
8880
8881 * character.h (unibyte_has_multibyte_table): Delete extern.
8882 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8883
8884 * charset.c (Fset_charset_priority): Update charset_unibyte.
8885 (syms_of_charset): Initialize charset_unibyte.
8886
8887 * character.c (unibyte_has_multibyte_table): Delete it.
8888 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8889 charset_unibyte.
8890 (multibyte_char_to_unibyte_safe): Likewise.
8891 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8892
1ac9108a 8893 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8894 (x_produce_glyphs): Likewise.
8895
8896 * .gdbinit (xcharset): Fix the treating $arg0.
8897
ad9e2d54
EZ
88982009-07-04 Eli Zaretskii <eliz@gnu.org>
8899
8900 Emulation of `getloadavg' on MS-Windows.
50426a04 8901 * w32.c: Include float.h.
ad9e2d54
EZ
8902 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8903 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8904 (get_native_system_info, get_system_times): New functions.
8905 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8906 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8907 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8908 g_b_init_get_system_times, and num_of_processors.
8909
0a3472c7
JR
89102009-07-03 Jason Rumney <jasonr@gnu.org>
8911
8912 * w32term.c (w32_initialize): Use standard types.
8913
80904120
EZ
89142009-07-03 Eli Zaretskii <eliz@gnu.org>
8915
8916 * dired.c (Ffile_attributes): Decode user and group names by the
8917 locale's encoding. (Bug#3443)
8918
6978862d
DN
89192009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8920
f8d23104
DN
8921 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8922 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8923
8924 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8925
8926 * term.c (init_tty): Remove spurious #ifdef.
8927
6978862d
DN
8928 * m/mips.h: Mention this file is also used for netbsd.
8929 * m/pmax.h: Remove file.
8930
e044e4fc
JD
89312009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8932
8933 * xterm.h (struct x_display_info): Add invisible_cursor.
8934 (struct x_output): Add current_cursor.
8935
8936 * xterm.c (XTtoggle_invisible_pointer): New function.
8937 (x_define_frame_cursor): Don't define cursor if invisible or the
8938 same as before. Set current_cursor.
8939 (x_create_terminal): Set toggle_invisible_pointer_hook.
8940
8941 * xfns.c (make_invisible_cursor): New function.
8942 (x_set_mouse_color): Call make_invisible_cursor.
8943 Set current_cursor.
8944 (x_window): Set current_cursor.
8945
8946 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8947
8948 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8949 inserting a character.
8950 (read_avail_input): Call frame_make_pointer_visible.
8951
8952 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8953 (frame_make_pointer_invisible, frame_make_pointer_visible):
8954 New functions.
e044e4fc
JD
8955 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8956
8957 * frame.h: Declare frame_make_pointer_invisible and
8958 frame_make_pointer_visible.
8959 (struct frame): Add pointer_invisible.
8960
574c8efa
JD
89612009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8962
7b507248
JD
8963 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8964 frame isn't visible.
8965 (xg_frame_resized): If width/height is -1, get size of window
8966 from X server.
8967
8968 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8969 for MapNotify.
8970
835bdaa7 8971 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8972 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8973 (flush_and_sync): Reintroduce.
574c8efa 8974
3f1c6666 89752009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8976
31fd7c5c 8977 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8978
8979 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8980 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8981
8982 * frame.h: Declare Qsticky.
8983
cad9ef74
JD
8984 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8985
8986 * nsfns.m (ns_frame_parm_handlers): Ditto.
8987
8988 * frame.c: Declare Qsticky.
8989 (frame_parms): Add sticky.
8990
8991 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8992
8993 * xterm.h: Declare x_set_sticky.
8994
8995 * xterm.c (x_set_sticky): New function.
8996
69b16610
JD
8997 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8998 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8999 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
9000
9001 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9002
9003 * frame.c: Qmaximized is new.
9004 (x_set_frame_parameters): Do not handle fullscreen specially.
9005 Only set width and height if explicitly set.
9006 (x_set_fullscreen): Handle Qmaximized.
9007 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9008 (syms_of_frame): Initialize Qmaximized.
9009
1ac9108a
SM
9010 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9011 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
9012
9013 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
9014 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9015 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
9016 set gravity to NorthWestGravity when USE_GTK.
9017 (set_wm_state): New function.
31fd7c5c 9018 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
9019 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9020 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 9021 or the case when no window manager is running. That means remove calls
3f1c6666
JD
9022 to x_real_positions and x_fullscreen_adjust.
9023
9024 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9025 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9026 flush_and_sync.
9027 (xg_height_changed): New function.
9028 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
9029 and gtk_window_set_policy. Set frame gravity after parsing the
9030 geometry string.
3f1c6666
JD
9031 (xg_update_frame_menubar, free_frame_menubar)
9032 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9033 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9034 Remove calls to xg_frame_set_char_size.
9035
fd503d99
KH
90362009-07-01 Kenichi Handa <handa@m17n.org>
9037
9038 * keyboard.c (decode_keyboard_code): New function.
9039 (tty_read_avail_input): Decode the input bytes if necessary.
9040
1ac9108a
SM
9041 * coding.c (setup_coding_system):
9042 Initialize coding->carryover_bytes to 0.
fd503d99
KH
9043 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9044 use Qno_conversion.
9045
24ed93fb
YM
90462009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9047
9048 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9049
99061dfc
CY
90502009-06-30 Chong Yidong <cyd@stupidchicken.com>
9051
1ac9108a 9052 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 9053
ff90fbde
JR
90542009-06-30 Jason Rumney <jasonr@gnu.org>
9055
9056 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9057 is already loaded.
9058 Set user model ID if supported (bug#1849).
9059
5f445726
JM
90602009-06-29 Jim Meyering <meyering@redhat.com>
9061
9062 Remove useless if-before-xfree test.
9063 * nsfont.m (nsfont_close): Remove useless test.
9064 * term.c (delete_tty): Likewise.
9065 * w32.c (system_process_attributes): Likewise.
9066 * w32font.c (w32font_close): Likewise.
9067 * xfaces.c (x_free_gc): Likewise.
9068 * xselect.c (buffer): Likewise.
9069
b9607587
AS
90702009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9071
9072 * process.c (send_process): Keep decoded string in a local
9073 variable and protect it from GC. (Bug#3521)
9074
89ba96f4
EZ
90752009-06-28 Eli Zaretskii <eliz@gnu.org>
9076
9077 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9078 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9079
098a1589
CY
90802009-06-28 Chong Yidong <cyd@stupidchicken.com>
9081
485422be
CY
9082 * xdisp.c (start_display, handle_face_prop)
9083 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
9084 (redisplay_window, try_window_id, produce_image_glyph):
9085 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 9086
098a1589
CY
9087 * xterm.c (x_update_window_begin, x_new_focus_frame)
9088 (x_scroll_bar_handle_click, handle_one_xevent)
9089 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9090 (x_make_frame_visible, x_make_frame_invisible)
9091 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9092 code chunks that are now obsolete.
9093
78c38319
MA
90942009-06-28 Michael Albinus <michael.albinus@gmx.de>
9095
9096 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9097 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9098 for hours, when optimzation is enabled.
9099 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9100 (xd_read_message): Make them static.
9101
4189ed40
CY
91022009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9103
9104 * term.c (turn_on_face): Allow simultaneously bold and dim
9105 terminal faces (Bug#3530).
9106
cd9b5e16
CY
91072009-06-27 Chong Yidong <cyd@stupidchicken.com>
9108
4e23bedb
CY
9109 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9110
cd9b5e16
CY
9111 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9112 truncation glyphs (Bug#3686).
9113
07cc3c35
GM
91142009-06-27 Glenn Morris <rgm@gnu.org>
9115
9116 * m/pmax.h: Restore file, with only netbsd portions.
9117
31fd7c5c 91182009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9119
cd9b5e16 9120 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9121
42d4a64f
KH
91222009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9123
9124 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9125 the arg FORCE_SYMBOL.
9126
930fe55b 91272009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9128
9129 * fontset.c (fontset_find_font): When a usable rfont_def is found
9130 in a fallback font-group, make it the first element of the group.
9131
57ebc3fd
CY
91322009-06-24 Chong Yidong <cyd@stupidchicken.com>
9133
9134 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9135
f084f942
KH
91362009-06-24 Kenichi Handa <handa@m17n.org>
9137
9138 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9139 set for C.
9140 (fontset_font): Record the availability of a font for C both in
9141 the realized fontsets of the current one and the default one.
9142
2f686c87
DN
91432009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9144
9145 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9146 conditional, it is always defined on AIX.
9147
666e158e
MB
91482009-06-23 Miles Bader <miles@gnu.org>
9149
9150 * window.c (Vrecenter_redisplay): New variable.
9151 (syms_of_window): Initialize it.
9152 (Qtty): New extern declaration.
9153 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9154
c6da7cd2
JM
91552009-06-23 Jim Meyering <meyering@redhat.com>
9156
1ac9108a
SM
9157 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9158 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9159 pointer dereferences are guaranteed to be valid.
c6da7cd2 9160
678dca3d
KH
91612009-06-23 Kenichi Handa <handa@m17n.org>
9162
74d75424
KH
9163 * emacs.c (main): Call init_font ().
9164
9165 * font.h (Vfont_log): Extern it.
9166 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9167
9168 * font.c (font_sort_entities, font_list_entities)
9169 (font_matching_entity, font_open_entity)
9170 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9171 (Vfont_log): Delete static.
9172 (font_log_env_checked): Delete this variable.
9173 (font_add_log): Don't check font_log_env_checked.
9174 (font_deferred_log): Check Vfont_log.
9175 (init_font): New function.
9176
678dca3d
KH
9177 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9178
9179 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9180
9181 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9182
9183 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9184
9185 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9186 (face_for_char): Don't call font_deferred_log here.
9187 (font_for_char): Likewise.
9188
8a668709
CY
91892009-06-22 Chong Yidong <cyd@stupidchicken.com>
9190
9a01ee33
CY
9191 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9192 rather than its background_width for drawing the overline and
9193 underline (Bug#489).
9194
9195 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9196 rather than its background_width for drawing the overline and
9197 underline (Bug#489).
ec7c9926
CY
9198 (xg_default_icon_file): New variable.
9199 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9200 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9201
8a668709
CY
9202 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9203 (load_overlay_strings): Remove externs.
9204 (fast_find_position): Function deleted.
9205 (mouse_face_from_buffer_pos): New function, based on
9206 fast_find_position. Correctly handle before-strings,
9207 display-strings, and after-strings (Bug#1220).
9208 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9209
4d4c02d8
CY
92102009-06-21 Chong Yidong <cyd@stupidchicken.com>
9211
1ac9108a 9212 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9213 (move_it_in_display_line_to, move_it_in_display_line_to)
9214 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9215
70243478
CY
92162009-06-21 Chong Yidong <cyd@stupidchicken.com>
9217
9218 * Branch for 23.1.
9219
13087e59
JR
92202009-06-21 Jason Rumney <jasonr@gnu.org>
9221
9222 * w32term.c (keyboard_codepage): New static variable.
9223 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9224 (w32_read_socket) [WM_CHAR]: Use it to decode character
9225 input (bug#3237).
9226 (w32_initialize): Initialize it.
9227 (codepage_for_locale): New function.
9228
4735b74e
KR
92292009-06-20 Ken Raeburn <raeburn@raeburn.org>
9230
9231 * process.c (status_message): Pass Faset index argument as a lisp
9232 object, so as to work with USE_LISP_UNION_TYPE.
9233
0e727afa
YM
92342009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9235
9236 * coding.c (Ffind_coding_systems_region_internal):
9237 Cache checked characters.
9238
cf299835
KH
92392009-06-18 Kenichi Handa <handa@m17n.org>
9240
1ac9108a 9241 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9242
90f20d94
AS
92432009-06-18 Andreas Schwab <aschwab@redhat.com>
9244
9245 * xdisp.c (redisplay_internal): Check that the frame is still
9246 live after redisplay of its windows.
9247 (redisplay_windows): Check that the window is still live.
9248
7f1faf1c
KH
92492009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9250
9251 * coding.c (detect_coding_utf_16): Fix previous change.
9252
cc13543e
KH
92532009-06-16 Kenichi Handa <handa@m17n.org>
9254
9255 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9256 UTF-16 by checking the dispersion of Eth and Oth bytes.
9257
977b85f4
AS
92582009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9259
9260 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9261
66bd43d1
KH
92622009-06-15 Kenichi Handa <handa@m17n.org>
9263
9264 * process.c (status_message): Fix previous change. Be sure to
9265 decode a localized string.
9266
cb5ca9c5
YM
92672009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9268
9269 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9270 add comment explaining why.
9271
ec7709ba 92722009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9273
ec7709ba 9274 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9275
4b7f335c
AR
92762009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9277
9278 * nsfont.m (ns_attribute_value): Remove.
9279 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9280 (ns_has_attribute): Shrink the normal range.
9281 (ns_findfonts): Don't worry about requested spec in determining
9282 need for synthItal.
e41820ee 9283 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9284
73b26103
SZ
92852009-06-14 Seiji Zenitani <zenitani@mac.com>
9286
9287 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9288
5753e4da
KH
92892009-06-11 Kenichi Handa <handa@m17n.org>
9290
9291 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9292 overhang for the static composition case.
9293
3561b671
KH
92942009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9295
5753e4da
KH
9296 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9297 overhang for the automatic composition case.
9298
3561b671
KH
9299 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9300 composition case.
9301
852bbd41
CY
93022009-06-10 Chong Yidong <cyd@stupidchicken.com>
9303
9304 * xdisp.c (get_next_display_element): When handling wrap-prefix
9305 and line-prefix, treat \n as a control character (bug#3502).
9306
9903d1e6
KH
93072009-06-10 Kenichi Handa <handa@m17n.org>
9308
9309 * font.c (font_parse_family_registry): Fix for one-char foundry.
9310 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9311
0bcbaaaa
CY
93122009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9313
9314 * process.c (status_message): Fix handling of multibyte signal
9315 string (Bug#3499).
9316
40aa3f13
JM
93172009-06-09 Jim Meyering <meyering@redhat.com>
9318
1f80c7e2
CY
9319 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9320 color name is missing.
40aa3f13 9321
72d51285
KH
93222009-06-09 Kenichi Handa <handa@m17n.org>
9323
9324 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9325 FROM-CODE and TO-CODE are codepoints of CHARSET.
9326
c1d04d84
AR
93272009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9328
9329 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9330
93312009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9332
9333 Changes to support :script/:lang/:otf in NS font driver.
9334 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9335 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9336 indicate not part of font driver interface, and change callers.
9337 (ns_get_family): Remove pointless null check.
9338 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9339 ns_spec_to_descriptor, ns_descriptor_to_entity.
9340 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9341 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9342 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9343 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9344 (ns_get_req_script, ns_accumulate_script_ranges)
9345 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9346 New functions.
9347 (nsfont_list, nsfont_match): Use ns_findfonts.
9348 (nsfont_open): Use font descriptor instead of traits.
9349 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9350 (dump_glyphstring): Rename to ns_dump_glyphstring.
9351
c7eb9816
AR
9352 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9353
c1d04d84
AR
9354 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9355
9356 * fontset.c (fontset_from_font): Remove NS-specific code.
9357
ec7709ba 93582009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9359
9360 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9361 nonactive windows.
9362
31fd7c5c 93632009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9364
1ac9108a 9365 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9366
68852c13 93672009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9368
9369 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9370
6756cd1d
CY
93712009-06-07 Chong Yidong <cyd@stupidchicken.com>
9372
9373 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9374 account for the overflowing of newlines into the last glyph on the
9375 display line (Bug#3482).
9376
28bf482a
DR
93772009-06-05 David Reitter <david.reitter@gmail.com>
9378
ec7709ba
JB
9379 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9380 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9381 Fns_selection_exists_p, Fns_selection_owner_p.
9382
fdb55376
JR
93832009-06-03 Jason Rumney <jasonr@gnu.org>
9384
9385 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9386 available. (Bug#3379)
9387
05129fbe
KH
93882009-05-29 Kenichi Handa <handa@m17n.org>
9389
1ac9108a
SM
9390 * coding.c (get_translation_table):
9391 Check Venable_character_translation.
05129fbe 9392
ec7709ba 93932009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9394
ec7709ba
JB
9395 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9396 (x_make_frame_visible): Move frame to front rather than calling
15891144 9397 ns_raise_frame().
ec7709ba 9398 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9399 isn't key window.
ec7709ba 9400 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9401 drawRect may be called by NSView even if the frame is hidden.
9402
ec7709ba
JB
9403 * nsfns.m (Fx_create_frame): Follow other ports in
9404 determining visibility; default to t. Ensure async_visible is set.
15891144 9405
21f73755
EZ
94062009-05-23 Eli Zaretskii <eliz@gnu.org>
9407
9408 * dired.c (Ffile_attributes): Doc fix.
9409
34001e41
CY
94102009-05-22 Chong Yidong <cyd@stupidchicken.com>
9411
9412 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9413
46306a17
SM
94142009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9415
9416 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9417 and xfont_scratch_props.
9418 (syms_of_xfont): Do it here instead.
9419 (xfont_find_ccl_program): Delete, unused.
9420 (xfont_open): Delete unused var `i'.
9421
ef6e0694
KH
94222009-05-21 Kenichi Handa <handa@m17n.org>
9423
9424 * fontset.c (Qlatin): Don't make it static.
9425
46306a17
SM
9426 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9427 New functions.
ef6e0694
KH
9428 (xfont_scripts_cache, xfont_scratch_props): New variables.
9429 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9430 (xfont_list_pattern): Argument changed. Callers changed.
9431 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9432 (xfont_list): Don't reject a font spec with :script property.
9433 (xfont_has_char): Fix setting of encoding.
9434 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9435 xfont_scratch_props.
9436
94372009-05-19 Kenichi Handa <handa@m17n.org>
9438
46306a17 9439 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9440 Callers changed.
9441
94422009-05-18 Kenichi Handa <handa@m17n.org>
9443
9444 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9445
ac71ced7
SM
94462009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9447
9448 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9449 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9450
1c6d1051
YM
94512009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9452
9453 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9454 (x_delete_terminal): Dissociate resource database from display and
9455 then call XrmDestroyDatabase before closing display.
9456
9b9b779c
AR
94572009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9458
9459 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9460 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9461 whether selected frame is viable before raising it (based on patch
9462 by David Reitter), and improve commentary.
9463 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9464
cccd42d5
KH
94652009-05-15 Kenichi Handa <handa@m17n.org>
9466
9467 * font.c (Ffont_spec): Check arguments.
9468
337fbd17
CY
94692009-05-14 Chong Yidong <cyd@stupidchicken.com>
9470
9471 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9472 weight when testing attributes (Bug#3282).
9473
47a6002f
JD
94742009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9475
9476 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9477 what we expect to get in the next ConfigureNotify event.
9478
9cb363db
YM
9479 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9480 before Xft one (Bug#1696).
9481
b9126609
CY
94822009-05-07 David Reitter <david.reitter@gmail.com>
9483
9484 * nsfns.m (Fx_display_planes): Compute bitplanes using
9485 NSBitsPerPixelFromDepth (Bug#3207).
9486
27a69fd9
CY
94872009-05-10 Chong Yidong <cyd@stupidchicken.com>
9488
9489 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9490
00f37552
TTN
94912009-05-10 Ulrich Mueller <ulm@gentoo.org>
9492
9493 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9494
2d82a920
DR
94952009-05-07 David Reitter <david.reitter@gmail.com>
9496
ec7709ba
JB
9497 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9498 Respect mouse face background.
2d82a920 9499
46b0d52d
DR
95002009-05-07 David Reitter <david.reitter@gmail.com>
9501
ec7709ba
JB
9502 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9503 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9504 in ns_update_begin and ns_update_end.
9505
ce1b23bb
SM
95062009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9507
5996e1b7
SM
9508 * nsfns.m (ns_get_screen): Rewrite.
9509 Don't presume selected-frame is of type `ns'.
9510
ba98e3a0
SM
9511 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9512 all drivers.
9513
ce1b23bb
SM
9514 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9515
bcda200f
YM
95162009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9517
9518 * keyboard.h (add_user_signal): Fix typo in extern.
9519
9520 * lisp.h (add_user_signal): Remove extern.
9521
9522 * unexelf.c (unexec): Consider a section to precede the .bss section
9523 if its addresses overlap that of .bss.
9524 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9525 instead of dumping process.
9526
864660a2
SM
95272009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9528
9529 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9530
50da4e56
SM
95312009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9532
9533 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9534
51520a1a
DN
95352009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9536
9537 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9538 any statements.
9539
409ea3a1
AS
95402009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9541
59c4c60f
AS
9542 * process.c (read_process_output): Make sure the current buffer is
9543 always restored.
9544
409ea3a1
AS
9545 * coding.c (record_conversion_result): Don't modify
9546 Vlast_code_conversion_error for successful result.
9547 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9548
56f00ed2
KH
95492009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9550
9551 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9552 (load_charset_map): Remove unnecessary code.
56f00ed2 9553
4491c9d2
DR
95542009-04-30 David Reitter <david.reitter@gmail.com>
9555
35f5b128 9556 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9557 through f24.
9558
6970f632
CY
95592009-04-30 Chong Yidong <cyd@stupidchicken.com>
9560
9561 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9562
9563 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9564 face_at_buffer_position.
9565 (face_before_or_after_it_pos, get_next_display_element)
9566 (note_mouse_highlight): Update face_at_buffer_position call.
9567
9568 * term.c (term_mouse_highlight):
9569 * msdos.c (IT_note_mouse_highlight):
9570 * fontset.c (Finternal_char_font):
35f5b128 9571 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9572
9573 * dispextern.h (face_at_buffer_position): Update prototype.
9574
0c616f63
KH
95752009-04-30 Kenichi Handa <handa@m17n.org>
9576
35f5b128 9577 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9578
ad3aaf33
AS
95792009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9580
9581 * callproc.c (Fcall_process): Fix GC protection. Make sure
9582 current buffer is always restored.
9583
c3c963a0
YM
95842009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9585
9586 * atimer.c (init_atimer): Also clear stopped_atimers.
9587
9588 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9589
7e3386cb
YM
9590 * process.c (create_process): Clean up merger residues of
9591 2008-07-17 change.
9592
91f68422
CY
95932009-04-29 Ulrich Mueller <ulm@gentoo.org>
9594
9595 * lread.c (Vread_circle): New variable.
9596 (read1): Disable recursive read if Vread_circle is nil.
9597
24b34550
KH
95982009-04-29 Kenichi Handa <handa@m17n.org>
9599
9600 * fontset.h (set_default_ascii_font): Delete extern.
9601
9602 * fontset.c (set_default_ascii_font): Delete this unused function.
9603
9604 * frame.c (x_set_font): When ARG is a font-object, check if the
9605 font-object matches with the ASCII font-spec of the frame's
9c358bda 9606 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9607
77bf07e1
AS
96082009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9609
9610 * fns.c (Flocale_info): Protect vector from GC during decoding.
9611
9612 * process.c (Fstart_process): Protect argv strings from GC during
9613 encoding.
9614
2c55aacf
AS
96152009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9616
9617 * sysdep.c: Include <ctype.h>.
9618
b892d3c9
DR
96192009-04-27 David Reitter <david.reitter@gmail.com>
9620
35f5b128 9621 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9622 Remove commented-out code.
9623
9d0644c4
JB
96242009-04-26 Johan Bockgård <bojohan@gnu.org>
9625
9626 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9627
b7053016
JR
96282009-04-25 Jason Rumney <jasonr@gnu.org>
9629
9630 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9631
4e8231f3
YM
96322009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9633
9634 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9635 Swap bytes in short integer if fringe bitmap width > 8.
9636
493dcf2c
KH
96372009-04-23 Kenichi Handa <handa@m17n.org>
9638
9639 * xfaces.c (Fx_list_fonts): If a font size is specified in
9640 PATTERN, set it in returned scalable fonts.
9641
401e9e57
CY
96422009-04-22 Chong Yidong <cyd@stupidchicken.com>
9643
708e05dc
CY
9644 * keyboard.c (Fset_input_meta_mode): Doc fix.
9645
9646 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9647
1ac9108a 9648 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9649
9650 * coding.c (Fterminal_coding_system): Doc fix.
9651
9652 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9653 (Fx_display_pixel_height, Fx_display_planes)
9654 (Fx_display_color_cells, Fx_server_max_request_size)
9655 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9656 (Fx_display_mm_height, Fx_display_mm_width)
9657 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9658 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9659 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9660 (check_x_display_info): Handle terminal objects instead of
9661 terminal ids.
9662
401e9e57
CY
9663 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9664 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9665 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9666 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9667
df80c7f0
KH
96682009-04-21 Kenichi Handa <handa@m17n.org>
9669
5a8f12af 9670 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9671 (font_score): Check AVGWIDTH too.
908567ef 9672
df80c7f0
KH
9673 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9674 worst case.
1ac9108a
SM
9675 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9676 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9677
705af33f
JR
96782009-04-19 Jason Rumney <jasonr@gnu.org>
9679
9680 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9681 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9682
9683 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9684 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9685 get_phys_cursor_geometry.
9686
b71ac3dd 9687 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9688 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9689 using get_phys_cursor_geometry.
9690
9691 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9692 correctly calculated.
9693
dc2933eb
JD
96942009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9695
1ac9108a
SM
9696 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9697 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9698 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9699 is deprecated.
9700
973e7849
AS
97012009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9702
9703 * font.c (font_put_frame_data): Use xfree instead of free.
9704
314d66f4
JB
97052009-04-17 Juanma Barranquero <lekktu@gmail.com>
9706
9707 * w32font.c (Qja, Qko): Remove declarations.
9708 (syms_of_w32font): Don't DEFSYM them.
9709
cf702558
CY
97102009-04-17 Chong Yidong <cyd@stupidchicken.com>
9711
9712 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9713
9714 * font.h (Qja, Qko): Extern them.
9715
9716 * ftfont.c (Qja, Qko): Remove declarations.
9717
9718 * xfont.c (Qja, Qko): Remove declarations.
9719
b50504f5
KH
97202009-04-17 Kenichi Handa <handa@m17n.org>
9721
bde25748
KH
9722 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9723 string from a vector to handle Latin-1 characters correctly.
9724
b50504f5
KH
9725 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9726 entity even if the cache hits.
9727
f4646fff
AS
97282009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9729
9730 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9731 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9732
e7deaab0
AS
9733 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9734 * lisp.h: Adjust prototypes.
9735
0a0e7d49
CY
97362009-04-16 Chong Yidong <cyd@stupidchicken.com>
9737
9738 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9739 change (Bug#3003).
9740
3c908a57
KH
97412009-04-16 Kenichi Handa <handa@m17n.org>
9742
1ac9108a 9743 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9744
9745 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9746 adstyle.
9747
9748 * ftfont.c (Qja, Qko): Don't make them static.
9749 (enum ftfont_cache_for): New enum.
9750 (fc_charset_table): Undo the previous change.
9751 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9752 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9753 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9754 non-scarable font, try to get AVERAGE_WIDTH.
9755 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9756 Change ft_face_cache from a list of a hash-table. Don't check
9757 `ja' and `ko' adstyle here.
9758 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9759 FTFONT_CACHE_FOR_CHARET.
9760 (ftfont_get_charset): Undo the previous change.
1ac9108a 9761 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9762 (ftfont_close): Likewise.
9763 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9764
9765 * font.c (font_sort_entites): Change the meaning of the arg
9766 BEST-ONLY. Don't optimize for VEC of lenght 1.
9767 (font_select_entity): Just return the value of font_sort_entites.
9768
9769 * xfaces.c (merge_face_vectors): Reflect font properties in
9770 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9771 font_clear_prop if a face attribute doesn't change.
9772
3c908a57
KH
9773 * charset.h (charset_ksc5601): Extern it.
9774
9775 * charset.c (charset_ksc5601): New variable.
9776 (Fdefine_charset_internal): Set charset_ksc5601.
9777 (init_charset_once): Initialize charset_ksc5601 to -1.
9778
d65859c3
DN
97792009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9780
9781 * fileio.c (history_delete_duplicates): Remove unused declaration.
9782
9783 * callint.c (history_delete_duplicates): New declaration.
9784 (Fcall_interactively): Remove command history duplicates when
9785 history_delete_duplicates is true.
9786
3ba010e5
EZ
97872009-04-14 Eli Zaretskii <eliz@gnu.org>
9788
9789 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9790
06f19b91
KH
97912009-04-14 Kenichi Handa <handa@m17n.org>
9792
9793 * font.c (Ffont_info): Fix docstring. Fix the second element of
9794 the returned value (bug#2949).
9795
2cce8bfc
CY
97962009-04-14 Chong Yidong <cyd@stupidchicken.com>
9797
9798 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9799
d156542d
KH
98002009-04-14 Kenichi Handa <handa@m17n.org>
9801
9802 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9803 encoding charset is ascii_compatible.
9804
9805 * charset.c (Fdefine_charset_internal): Make charset
9806 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9807 code_offset is 0, and covers all ASCII characters.
9808
86fa089e
SM
98092009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9810
9811 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9812 (ns_string_to_pasteboard_internal):
9813 * nsmenu.m (process_dialog):
9814 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9815 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9816 * lisp.h (Fx_load_color_file): Declare.
9817
a8a3728b
KH
98182009-04-13 Kenichi Handa <handa@m17n.org>
9819
1ac9108a 9820 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9821 (font_select_entity): Suppress the code to optimize for the same
9822 kind of fonts.
9823 (font_load_for_lface): Get a font that supports at least ASCII
9824 characters.
9825
9826 * ftfont.c (Qja, Qko): New variables.
9827 (fc_charset_table): Delete uniquifier data for iso8859-1.
9828 (ftfont_get_latin1_charset): New function.
9829 (get_adstyle_property): New function.
9830 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9831 bitmap fonts.
9832 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9833 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9834 `ko' or `ja'.
9835 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9836 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9837 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9838 property.
9839 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9840 (syms_of_ftfont): DEFSYM Qja and Qko.
9841
483670b5
KH
98422009-04-09 Kenichi Handa <handa@m17n.org>
9843
12b55765
KH
9844 * charset.c (map_charset_chars): For a charset of `superset'
9845 method, fix calculation of code range.
9846
483670b5
KH
9847 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9848 from the list of extra properties.
9849 (font_clear_prop): Be sure to delete `:name' font property.
9850
57d3b93b
KH
98512009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9852
b4b2c2ca
YM
9853 * dispnew.c (redraw_overlapping_rows): Fix detection of
9854 overlapping for topmost and bottommost rows.
9855
1ac9108a 9856 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9857
472c3609
JR
98582009-04-06 Jason Rumney <jasonr@gnu.org>
9859
9860 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9861
ab193662
KH
98622009-04-06 Kenichi Handa <handa@m17n.org>
9863
9864 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9865
9866 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9867
0c26f026
KH
98682009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9869
9870 * ftfont.c (ftfont_open): Fix checking of the return value of
9871 FT_Load_Char. Fix setting font->underline_thickness.
9872
e173bbce
CY
98732009-04-04 Chong Yidong <cyd@stupidchicken.com>
9874
9875 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9876 (Fterminal_parameters, Fterminal_parameter)
9877 (Fset_terminal_parameter): In doc string, refer to terminal
9878 objects rather than terminal ids.
9879
693a2698
EZ
98802009-04-04 Eli Zaretskii <eliz@gnu.org>
9881
9882 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9883 ret_lim_data. (Bug#2867)
9884
d5221487
CY
98852009-04-03 Chong Yidong <cyd@stupidchicken.com>
9886
9887 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9888 so they don't get wider than the window, matching 2006-01-23
9889 change to the partner function in xdisp.c (Bug#2800).
9890
223509a3
KH
98912009-04-03 Kenichi Handa <handa@m17n.org>
9892
9893 * print.c (print_object): Make each lowest sub_char_table start a
9894 new line (Bug#2866).
9895
74fcd0b1
KH
98962009-04-02 Kenichi Handa <handa@m17n.org>
9897
9898 * fontset.c (fontset_font): Record no-font when a fontset
9899 explicitly tells not to try another font-specs.
9900
c542407d
SM
99012009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9902
9903 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9904
e3869731
KH
99052009-03-30 Kenichi Handa <handa@m17n.org>
9906
d8d2f142
KH
9907 * fontset.c (fontset_from_font): Specify only registry in a
9908 font-spec for all characters supported by that registry.
9909
e3869731
KH
9910 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9911 even if HAVE_M17N_FLT is not defined.
9912
5da5f805
CY
99132009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9914
9915 * ftfont.c: Conditionalize prototyping and use of
9916 ftfont_variation_glyphs.
9917
ab226c50
SM
99182009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9919
9628fed7
SM
9920 * frame.c (delete_frame): Work around compiler bug.
9921
9922 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9923 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9924 Some more EMACS_INT.
9925 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9926
9927 * xdisp.c (dump_glyph): Fix typo.
9928
ae19ba7c
SM
9929 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9930 (adjust_markers_gap_motion, adjust_markers_for_delete)
9931 (adjust_markers_for_insert, adjust_point)
9932 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9933 (make_gap, copy_text, count_size_as_multibyte, insert)
9934 (insert_and_inherit, insert_before_markers)
9935 (insert_before_markers_and_inherit, insert_1)
9936 (count_combining_before, count_combining_after, insert_1_both)
9937 (insert_from_string, insert_from_string_before_markers)
9938 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9939 (insert_from_buffer_1, adjust_after_replace)
9940 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9941 (replace_range_2, del_range, del_range_1, del_range_byte)
9942 (del_range_both, del_range_2, modify_region)
9943 (prepare_to_modify_buffer, signal_before_change)
9944 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9945 for buffer positions and sizes.
9946 * lisp.h: Adjust prototypes accordingly.
9947
9948 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9949 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9950 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9951
ab226c50
SM
9952 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9953
46dfb8fb
JD
99542009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9955
9956 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9957 lines and columns so we keep the same pixel height and width.
9958
9959 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9960 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9961 (x_handle_net_wm_state): New function to update frame parameter
9962 fullscreen.
9963 (x_term_init): Initialize atoms for _NET_WM_STATE.
9964
9965 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9966
d347e494
SM
99672009-03-27 Kevin Ryde <user42@zip.com.au>
9968
9969 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9970 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9971 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9972 (Fgpm_mouse_stop): Pass that new parameter.
9973 * termhooks.h (close_gpm): Adjust prototype.
9974
84db11d6
SM
99752009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9976
c95a5008
SM
9977 * lisp.h (Fx_focus_frame): Declare.
9978
84db11d6
SM
9979 * callint.c (Fcall_interactively): For '^' just delegate the work to
9980 handle-shift-selection.
9981 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9982
0a1958d6
CY
99832009-03-24 Chong Yidong <cyd@stupidchicken.com>
9984
0bfdff23
CY
9985 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9986
0a1958d6
CY
9987 * data.c (Qinteractive_form): New variable.
9988 (Finteractive_form): Use it.
9989
9990 * eval.c (Fcommandp): Use Qinteractive_form.
9991
58aec0d6
JR
99922009-03-24 Jason Rumney <jasonr@gnu.org>
9993
9994 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9995 Calculate total size precisely. Decode environment variables
9996 before substituting. (Bug#38)
9997
553dd618
KH
99982009-03-24 Kenichi Handa <handa@m17n.org>
9999
10000 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 10001 encoding (Bug#2722).
553dd618 10002
c39ea606
JD
100032009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10004
10005 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10006 that gdpy is set.
10007
bc9b2b5e
AM
100082009-03-22 Alan Mackenzie <acm@muc.de>
10009
10010 * callint.c (Finteractive): Clarify the doc string - even
10011 promptless elements need \n separators.
10012
9f995a76
JR
100132009-03-22 Jason Rumney <jasonr@gnu.org>
10014
10015 * w32term.c (syms_of_w32term): Doc fix for
10016 x-use-underline-position-properties.
10017
22749e9a
EZ
100182009-03-21 Eli Zaretskii <eliz@gnu.org>
10019
10020 * w32.c (getpwuid): Change argument type to unsigned.
10021 (struct w32_id): Change type of `rid' member to unsigned.
10022 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10023 argument ID to unsigned. All callers changed.
10024 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10025
e00553bf
EZ
100262009-03-20 Eli Zaretskii <eliz@gnu.org>
10027
10028 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10029 negative, produce a float value.
10030
10031 * dired.c (make_uid, make_gid): New functions.
10032 (Ffile_attributes): Use them to avoid negative UID and GID.
10033
f761d6b6
JB
100342009-03-20 Juanma Barranquero <lekktu@gmail.com>
10035
10036 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10037 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10038 Fix typos in docstrings.
10039
d507f8d7
KH
100402009-03-19 Kenichi Handa <handa@m17n.org>
10041
10042 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
10043 changed, use font_load_for_lface to get a new font object.
10044 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
10045
10046 * frame.c (x_set_font): Handle the case that ARG is a cons.
10047
c68845e0
GM
100482009-03-19 Glenn Morris <rgm@gnu.org>
10049
10050 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10051
bfa49dd1
CY
100522009-03-19 Chong Yidong <cyd@stupidchicken.com>
10053
10054 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10055
8458d4c1
KH
100562009-03-19 Kenichi Handa <handa@m17n.org>
10057
10058 * charset.c (load_charset_map_from_file): When a mapfile can't be
10059 loaded, signal an error.
10060
78e7d1fe
EZ
100612009-03-18 Eli Zaretskii <eliz@gnu.org>
10062
10063 * dired.c (Ffile_attributes): Make sure UID and GID are always
10064 positive, even if the value is too large for a positive EMACS_INT.
10065 Doc fix.
10066
10067 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10068
5da9fdfa
YM
100692009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10070
10071 * xmenu.c (xdialog_show): Move Fredisplay call ...
10072 (Fx_popup_dialog): ... here.
10073
7519c40d
SM
100742009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10075
10076 * dired.c (file_name_completion): Disable the first optimization just
10077 installed, since it is not implemented correctly.
10078
2cd298e2
SM
100792009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10080
10081 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 10082 only if the entry can affect bestmatch.
2cd298e2
SM
10083 Stop the search early, as Ftry_completion already does.
10084
48d37adf
CY
100852009-03-17 Chong Yidong <cyd@stupidchicken.com>
10086
e10c9c93 10087 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 10088
9286b16a
CY
100892009-03-15 Chong Yidong <cyd@stupidchicken.com>
10090
10091 * keyboard.c (parse_menu_item): Don't display remappings as menu
10092 equivalent bindings (Bug#788).
10093
f7b146dc
JR
100942009-03-15 Jason Rumney <jasonr@gnu.org>
10095
10096 * w32term.h (WM_EMACS_PAINT): New message.
10097 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10098 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10099 before passing to lisp thread. (Bug#950)
10100
f761d6b6 101012009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 10102
d93f9575
CY
10103 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10104 variable as it was never reset.
10105 (ns_term_init): Remove initialization of Lisp-settable defaults
10106 and ns_expand_space.
10107 (-setPanelFromDefaultValues): Remove ns_expand_space.
10108 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10109 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
10110 i.e. no additional spacing, similar to Carbon port.
10111
d93f9575
CY
10112 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10113 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10114
305018ec
JD
101152009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10116
10117 * sound.c (alsa_configure): Remove call to deprecated
10118 snd_pcm_sw_params_set_xfer_align.
10119
f761d6b6 101202009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10121
10122 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10123 after clicking in a detached tool bar.
10124 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10125
46e722a9
SM
101262009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10127
348db3dd
SM
10128 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10129 int/Lisp_Object mixup).
46e722a9 10130
a3d16f39
KH
101312009-03-13 Kenichi Handa <handa@m17n.org>
10132
10133 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10134 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10135 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10136 (set_fontset_font): Change ARG to a vector. Handle range_list in
10137 ARG correctly.
10138 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10139 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10140 the above change.
10141 (fontset_from_font): Fix previous change.
fe24f56a 10142 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10143 entry. If FONTSET is the default fontset, don't set the extra
10144 slot of the returning char-table.
10145
b066e6b6
JB
101462009-03-12 Juanma Barranquero <lekktu@gmail.com>
10147
10148 * nsfns.m (Fx_close_connection): Doc fix.
10149 (Fns_do_applescript): Reflow docstring.
10150 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10151 (Fx_display_pixel_width, Fx_display_pixel_height)
10152 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10153 Fix typos in docstrings.
10154 (Fns_set_alpha): Fix typos in error messages.
10155
d472514e 101562009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10157
d472514e 10158 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10159 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10160 were used for such events.
10161
d472514e
JB
10162 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10163 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10164
d472514e 10165 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10166 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10167
fb930676
KH
101682009-03-11 Kenichi Handa <handa@m17n.org>
10169
ff85581a
KH
10170 * font.h (font_open_by_spec): Extern it.
10171
c50b7e98
KH
10172 * font.c (font_open_by_spec): New function.
10173 (font_open_by_name): Use font_open_by_spec.
10174
fb930676
KH
10175 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10176 fontset of the frame.
10177
10178 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10179 modify the default font of frames that use this fontset.
10180 (num_auto_fontsets): New variable.
10181 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10182 name. Be sure to set FONTSET_ASCII to the correct font name.
10183 (update_auto_fontset_alist): New function.
10184
df4e8455
JB
101852009-03-11 Juanma Barranquero <lekktu@gmail.com>
10186
10187 * makefile.w32-in: Update dependencies.
10188
0a375797
AR
101892009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10190
10191 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10192
61313fa3
SM
101932009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10194
10195 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10196
b55103fb
CY
101972009-03-10 Chong Yidong <cyd@stupidchicken.com>
10198
10199 * lread.c (Feval_buffer): Doc fix.
10200
dde2559c
KH
102012009-03-09 Kenichi Handa <handa@m17n.org>
10202
10203 * charset.c (Qfile_name_handler_alist): Extern it.
10204 (load_charset_map_from_file): Temporarily bind
10205 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10206
df4e8455 102072009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10208
47f588bb
GM
10209 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10210 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10211
4ddf94bd
AR
102122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10213
4c9bdfc2
AR
10214 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10215 (x_set_window_size): Change back to calculated method of setting
10216 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10217 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10218 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10219
fe41ae9e
AR
10220 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10221
4c9bdfc2
AR
10222 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10223 accelerator in parens under GNUstep.
10224
825d0875
KH
102252009-03-06 Kenichi Handa <handa@m17n.org>
10226
10227 These changes are to detect incorrect composition sequence without
f3b3be74 10228 looking ahead the source. (Bug#2370)
825d0875
KH
10229
10230 * coding.h: Include "composite.h".
10231 (enum compisition_state): New enum.
10232 (struct compisition_status): New struct.
10233 (struct iso_2022_spec): New member cmp_status.
10234 (struct emacs_mule_spec): New struct.
10235 (struct coding_system): New members ctext_extended_segment_len and
10236 embedded_utf_8. Change the union member
10237 spec.emacs_mule_full_support to spec.emacs_mule.
10238
10239 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10240 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10241 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10242 (ADD_COMPOSITION_DATA): New arg nbytes.
10243 (emacs_mule_char): New arg cmp_status.
10244 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10245 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10246 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10247 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10248 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10249 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10250 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10251 (EMACS_MULE_COMPOSITION_END): New macro.
10252 (emacs_mule_finish_composition): New function.
10253 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10254 (decode_coding_emacs_mule): Avoid long looking ahead while
10255 handling composition.
10256 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10257 (ENCODE_COMPOSITION_RULE): New macro.
10258 (finish_composition): New function.
10259 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10260 (DECODE_COMPOSITION_START): New implementation.
10261 (DECODE_COMPOSITION_END): Likewise.
10262 (STORE_COMPOSITION_RULE): New macro.
10263 (decode_coding_iso_2022): Avoid long looking ahead while handling
10264 composition, CTEXT extended segment, and embedded UTF-8.
10265 (setup_coding_system): For a coding of type iso-2022, reset
10266 CODING_ISO_EXTSEGMENT_LEN (coding) and
10267 CODING_ISO_EMBEDDED_UTF_8 (coding).
10268 (get_translation): Delete arguments last_block, from_nchars,
10269 to_nchars. Callers changed.
10270 (produce_chars): Don't modify charbuf. Adjusted for the change of
10271 get_translation.
98a326f7 10272 (produce_composition): Adjust for the new annotation sequence.
825d0875 10273 (handle_composition_annotation): Likewise.
98a326f7 10274 (consume_chars): Adjust for the change of get_translation.
825d0875 10275
ccbc4452
AR
102762009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10277
4ddf94bd 10278 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10279
988a7ddb
KH
102802009-03-05 Kenichi Handa <handa@m17n.org>
10281
10282 * font.c (font_select_entity): New function.
10283 (font_find_for_lface): Use font_select_entity to select a font.
10284
10285 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10286 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10287 font with C restriction.
10288
98a326f7 102892009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10290
be1bce46 10291 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10292
10ea2b82
JR
102932009-03-04 Jason Rumney <jasonr@gnu.org>
10294
2c93b248 10295 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10296 characters that have already been read. (Bug#2569)
2c93b248 10297
10ea2b82
JR
10298 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10299 Log an error message if check_image_size failed.
10300 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10301 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10302
71a0c011
EZ
103032009-03-02 Eli Zaretskii <eliz@gnu.org>
10304
10305 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10306 when decoding process output.
10307
2f63bba8
RS
103082009-03-01 Richard M Stallman <rms@gnu.org>
10309
10310 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10311
10312 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10313
0a9564cb
EZ
103142009-02-28 Eli Zaretskii <eliz@gnu.org>
10315
10316 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10317 (decode_coding_emacs_mule, decode_coding_iso_2022)
10318 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10319 (decode_coding_raw_text, decode_coding_charset)
10320 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10321 Honor inhibit-eol-conversion. (Bug #2186)
10322
449148b3
JR
103232009-02-28 Jason Rumney <jasonr@gnu.org>
10324
10325 * coding.c (detect_coding_charset): If not checking latin extra,
10326 fail on characters between 0x80 and 0xA0. (Bug#2354)
10327
a4aee864
EZ
103282009-02-28 Eli Zaretskii <eliz@gnu.org>
10329
10330 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10331 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10332
d88bee5a
GM
103332009-02-27 Glenn Morris <rgm@gnu.org>
10334
10335 * callint.c (Finteractive): Doc fix.
10336
a808f22d
KH
103372009-02-27 Kenichi Handa <handa@m17n.org>
10338
10339 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10340
caf8d60c
CY
103412009-02-27 Chong Yidong <cyd@stupidchicken.com>
10342
10343 * font.c (font_style_to_value): Set value for unknown symbols to
10344 100 instead of 255.
b61137ea
CY
10345 (weight_table, slant_table, width_table): Treat "unspecified" as
10346 the default value.
caf8d60c 10347
1a0de25c
JB
103482009-02-26 Juanma Barranquero <lekktu@gmail.com>
10349
10350 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10351
8fc45744
JB
103522009-02-25 Juanma Barranquero <lekktu@gmail.com>
10353
107bd7d1
JB
10354 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10355 error as soon as a recursive load is detected.
8fc45744 10356
f097e223
AR
103572009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10358
10359 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10360 before caching.
10361
8810a12f
KH
103622009-02-24 Kenichi Handa <handa@m17n.org>
10363
10364 * fontset.c (fontset_find_font): Fix the condition for checking
10365 unavailable font.
10366
2c7d1565
GM
103672009-02-24 Glenn Morris <rgm@gnu.org>
10368
10369 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10370 whitespace that confuses documentation.
10371
a20878b6
MB
103722009-02-23 Miles Bader <miles@gnu.org>
10373
10374 * process.c (Flist_system_processes, Fprocess_attributes)
10375 (syms_of_process): Rename `system-process-attributes' to
10376 `process-attributes'.
10377
b3b58c01
AS
103782009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10379
1b3b981b
AS
10380 * coding.h (struct coding_system): Make safe_charsets a pointer to
10381 unsigned char.
10382 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10383 being 255.
10384 (SAFE_CHARSET_P): Likewise.
10385 (setup_iso_safe_charsets): Properly setup safe_charsets.
10386 (Fdefine_coding_system_internal): Likewise.
10387 (setup_coding_system): Likewise. Remove unneeded casts.
10388 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10389 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10390 unneeded casts.
10391
b3b58c01
AS
10392 * insdel.c (del_range_2): Don't modify gap contents when called
10393 from decode_coding_object. (Bug#1809)
10394
0b6f228c
CY
103952009-02-21 Chong Yidong <cyd@stupidchicken.com>
10396
10397 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10398 Qfont_object.
10399 (Ftype_of): Recognize font objects.
10400
10401 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10402
10403 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10404 moved to data.c.
10405
52f8870b
AR
104062009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10407
10408 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10409 async_iconified. Based on a patch by Christian Lynbech
10410 <christian.lynbech@tieto.com>.
10411 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10412
7087d5e9
GM
104132009-02-20 Glenn Morris <rgm@gnu.org>
10414
10415 * syntax.c (Fskip_chars_forward): Fix doc typo.
10416
41d2ceef
CY
104172009-02-20 Chong Yidong <cyd@stupidchicken.com>
10418
10419 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10420
1a3b7ca6
CY
104212009-02-19 Chong Yidong <cyd@stupidchicken.com>
10422
10423 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10424
73cce38d
KH
104252009-02-19 Kenichi Handa <handa@m17n.org>
10426
10427 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10428 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10429
a51092ee
DN
104302009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10431
10432 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10433
c423ecca
KH
104342009-02-18 Kenichi Handa <handa@m17n.org>
10435
10436 * font.c (font_check_otf_features): Fix handling of `nil' element.
10437 (Ffont_spec): Describe :lang and :otf in the docstring.
10438
4c1958f4
AS
104392009-02-16 Andreas Schwab <schwab@suse.de>
10440
10441 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10442 string.
10443
5704f39a
KH
104442009-02-16 Kenichi Handa <handa@m17n.org>
10445
10446 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10447 (Bug#1723)
5704f39a 10448
8f0085aa
CY
104492009-02-14 Chong Yidong <cyd@stupidchicken.com>
10450
a057d86a 10451 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10452
10453 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10454 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10455
aff01dd9
EZ
104562009-02-14 Eli Zaretskii <eliz@gnu.org>
10457
10458 * msdos.c (MAX_SCREEN_BUF): New macro.
10459 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10460 Encode the entire run of glyphs sharing the same face, instead of
10461 doing that one glyph at a time (fixes a bug with displaying
10462 double-size characters).
10463
ba301db3
AR
104642009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10465
10466 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10467
10468 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10469 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10470 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10471
10472 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10473 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10474
51d861de
SM
104752009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10476
ac146f82 10477 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10478 invisible areas.
10479
7fed8996
JR
104802009-02-12 Jason Rumney <jasonr@gnu.org>
10481
631ea4fb
JR
10482 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10483 (add_font_entity_to_list): Call check_face_name even when family
10484 is unspecified.
10485
cb4a3e42
JR
10486 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10487 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10488 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10489
7fed8996 10490 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10491 raster fonts. (Bug#2219)
7fed8996 10492
895416e3
KH
104932009-02-12 Kenichi Handa <handa@m17n.org>
10494
10495 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10496 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10497 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10498 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10499 (find_automatic_composition): While looking forward and backward,
10500 check static composition. Fix where to stop looking forward.
10501 (composition_adjust_point): Fix checking of static composition.
10502 (Fcomposition_get_gstring): Pay attention to
1dacf998 10503 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10504
10505 * lisp.h (fast_looking_at): Extern it.
10506
10507 * search.c (fast_looking_at): New function.
10508
51d861de 10509 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10510 <struct glyph>.u.cmp.to.
10511 (append_composite_glyph): Likewise.
10512
51d861de 10513 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10514 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10515 composition.
51d861de 10516 (append_composite_glyph): Adjust for the change of
895416e3
KH
10517 <strcut glyph>.u.cmp.to.
10518
8510724d
JB
105192009-02-11 Juanma Barranquero <lekktu@gmail.com>
10520
10521 * casetab.c (init_casetab_once):
10522 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10523 * font.c (font_update_lface):
10524 * fontset.c (Fnew_fontset):
10525 * ftfont.c (ftfont_drive_otf):
10526 * xfont.c (xfont_open):
10527 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10528
294fa707
SM
105292009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10530
10531 * fileio.c (Fwrite_region): !NILP -> CONSP.
10532
b5bfebec
AS
105332009-02-10 Andreas Schwab <schwab@suse.de>
10534
10535 * process.c (send_process): Properly relocate pointer into data
adab88bd 10536 when using encoded data. (Bug#2272)
b5bfebec 10537
cb84a2be
KH
105382009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10539
10540 * coding.c (detect_coding_charset): Fix previous change.
10541
89e09428
JR
105422009-02-08 Jason Rumney <jasonr@gnu.org>
10543
10544 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10545 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10546
4470a277
AS
105472009-02-07 Andreas Schwab <schwab@suse.de>
10548
10549 * unexelf.c (unexec): Fix error message.
10550
3175b12a
AR
105512009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10552
10553 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10554 when modal window is active. (Bug #2152)
3175b12a
AR
10555 (applicationShouldTerminate:): Remove now-unneeded while loop
10556 around NSRunAlertPanel.
10557
10558 * nsmenu.m (popupSession): New file-global variable.
10559 (pop_down_menu): End the popupSession before closing dialog.
10560 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10561 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10562 don't query NSApp for events (just sleep instead).
10563
8434d0b8
EZ
105642009-02-07 Eli Zaretskii <eliz@gnu.org>
10565
51d861de
SM
10566 * coding.c (syms_of_coding) <translation-table-for-input>:
10567 Modify doc string to discourage use for character code unification.
8434d0b8 10568
aa82edfd
CY
105692009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10570
10571 * atimer.c (run_timers): Update pending_atimers.
10572
2d283c7c
CY
105732009-02-06 Chong Yidong <cyd@stupidchicken.com>
10574
eb306cab
CY
10575 * image.c (svg_load_image): Fix last change.
10576
2d283c7c
CY
10577 * xfns.c (Fx_create_frame): Signal an error if no font is
10578 found (Bug#2147).
10579
4d8e170e
JB
105802009-02-05 Juanma Barranquero <lekktu@gmail.com>
10581
10582 * character.c (syms_of_character) <script-representative-chars>:
10583 Fix typo in docstring.
10584
c96169a0
AR
105852009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10586
10587 * nsmenu.m (pop_down_menu): New function.
10588 (ns_popup_dialog): Call it on unwind.
10589 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10590 call timer_check() (Bug#2154).
10591 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10592 handling_signal is set.
10593 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10594
31fd7c5c 10595 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10596
10597 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10598
10599 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10600
51d861de
SM
10601 * keyboard.c (poll_for_input_1, handle_async_input):
10602 Set handling_signal under HAVE_NS.
c96169a0 10603
aacd8ba1
GM
106042009-02-04 Glenn Morris <rgm@gnu.org>
10605
10606 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10607
4cb75c4b
KH
106082009-02-04 Kenichi Handa <handa@m17n.org>
10609
10610 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10611
10612 * charset.c (Fchar_charset): New optional arg restriction.
10613
10614 * coding.h (coding_system_charset_list): Extern it.
10615
10616 * coding.c (coding_system_charset_list): New function.
10617
10618 * composite.c: Include coding.h and termhooks.h.
10619 (composition_gstring_p): Fix for the terminal case.
10620 (composition_gstring_width): Likewise.
10621 (fill_gstring_body): Likewise.
10622 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10623 the frame.
10624 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10625 is within a composition.
867d4bb3 10626 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10627
10628 * term.c (encode_terminal_code): Fix handling of composition.
10629 (produce_composite_glyph): For static composition, get pixel_width
10630 from struct composition.
10631
826ba17e
AS
106322009-02-02 Andreas Schwab <schwab@suse.de>
10633
10634 * unexelf.c (unexec): Handle unaligned bss offset.
10635
8ad093db
AR
106362009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10637
10638 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10639 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10640
8ad093db
AR
10641 * keyboard.c (handle_interrupt): Don't call
10642 quit_throw_to_read_char() under NS.
d0a76a6e 10643
8ad093db
AR
10644 * blockinput.h: Remove NS-specific code.
10645
4d18a7a2
DN
106462009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10647
db878925
DN
10648 * dispnew.c (window_change_signal): Don't try to get the size of a
10649 suspended tty frame.
10650 * term.c (Fresume_tty): Resize if the size has changed while the
10651 tty was suspended.
10652
4d18a7a2
DN
10653 * alloc.c (mark_stack): Properly conditionalize previous change.
10654
8984df7c
JB
106552009-01-30 Juanma Barranquero <lekktu@gmail.com>
10656
10657 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10658 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10659 Remove; this code is not used on Windows.
10660
75f4f1ac
EZ
106612009-01-30 Eli Zaretskii <eliz@gnu.org>
10662
10663 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10664 EOLs that also has stray ^M characters.
10665
07a1e794
JB
106662009-01-30 Juanma Barranquero <lekktu@gmail.com>
10667
10668 * atimer.c (run_timers, alarm_signal_handler):
10669 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10670 * w32inevt.c (w32_console_read_socket):
10671 * w32term.c (w32_read_socket):
10672 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10673
a8b11cc9
CY
106742009-01-30 Chong Yidong <cyd@stupidchicken.com>
10675
10676 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10677 Initialize it as a relative filename pattern.
10678 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10679 (Fcall_process_region): Simplify temp file creation using
10680 temporary-file-directory.
10681
c279587b
EZ
106822009-01-29 Eli Zaretskii <eliz@gnu.org>
10683
10684 * msdos.c: Rename pending_signals to msdos_pending_signals.
10685 (sig_suspender, sigprocmask): Adjust.
10686
a8fe3242
CY
106872009-01-29 Chong Yidong <cyd@stupidchicken.com>
10688
10689 * keyboard.c (pending_signals): New var.
10690 (poll_for_input, input_available_signal, init_keyboard): Set it.
10691 (process_pending_signals): New function.
10692
10693 * lisp.h (QUIT): Check pending_signals instead of
10694 interrupt_input_pending. Use process_pending_signals.
10695
51d861de 10696 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10697
51d861de 10698 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10699
10700 * sysdep.c (emacs_write): Use process_pending_signals.
10701
10702 * xterm.c (XTread_socket): Update pending_signals.
10703
10704 * w32term.c (w32_read_socket): Update pending_signals.
10705
10706 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10707
6570a1c4
KH
107082009-01-29 Kenichi Handa <handa@m17n.org>
10709
10710 * xftfont.c (xftfont_has_char): New function.
10711 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10712
d72a4afa
AR
107132009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10714
10715 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10716 under GNUstep.
10717 (ns_query_color): New declaration.
10718
10719 * nsterm.m (ns_confirm_quit): New variable.
10720 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10721 (EmacsApp-applicationShouldTerminate:): Use it.
10722 (EmacsPrefsController): Let user set it.
10723 (ns_query_color): New function.
10724 (ns_defined_color): Use it.
10725 (ns_initialize): Drop.
10726 (ns_term_init): Add two lines from ns_initialize(), and set
10727 input_interrupt_mode to nil.
10728
10729 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10730 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10731
9fe78804
KH
107322009-01-28 Kenichi Handa <handa@m17n.org>
10733
10734 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10735 (fontset_get_font_group): Remember that no font-group is specified
10736 for C.
9fe78804 10737
fa57de36
CY
107382009-01-27 Chong Yidong <cyd@stupidchicken.com>
10739
930600e9
CY
10740 * fns.c (concat): Check for string overflow (bug#1787).
10741
fa57de36
CY
10742 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10743 Quadruple undo limits (bug#1501).
10744
7179ce7b
KH
107452009-01-27 Kenichi Handa <handa@m17n.org>
10746
10747 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10748 directly use GT_Get_Char_index.
10749
10750 * xftfont.c (struct xftfont_info): New member `index'.
10751
10752 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10753 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10754
5be8fcc0
CY
107552009-01-26 Kenichi Handa <handa@m17n.org>
10756
10757 * fontset.c (fontset_find_font): Fix handling of non-cons return
10758 value of fontset_get_font_group.
10759 (fontset_font): Revert last change.
10760
19ae3e61
JR
107612009-01-26 Jason Rumney <jasonr@gnu.org>
10762
10763 * w32font.c (w32font_list_internal): Return quickly if registry is
10764 unknown. Simplify final return.
10765 (add_font_entity_to_list): Break complex logic down into more
10766 manageable chunks. Move unknown registry check to
10767 w32font_list_internal.
10768
8612b71a
AR
107692009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10770
10771 Changes to remove Feval calls from GUI under NS.
10772
d8038940
JB
10773 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10774 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10775 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10776
10777 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10778 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10779 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10780 instead of NON_ASCII_KEYSTROKE_EVENT.
10781 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10782 (EmacsApp-applicationShouldTerminate:): Query user.
10783 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10784 instead of Feval.
10785
10786 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10787
10788 * keyboard.c (kbd_buffer_get_event): Check for it.
10789 (keys_of_keyboard): Define lispy keys for
10790 ns-put/unput-working-text.
10791
10792 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10793 versions.
10794 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10795
6288ae55
CY
107962009-01-25 Chong Yidong <cyd@stupidchicken.com>
10797
10798 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10799 setting current_buffer directly. (Bug#2044)
6288ae55 10800
289e7f8f
CY
108012009-01-24 Chong Yidong <cyd@stupidchicken.com>
10802
5ce87308 10803 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10804 any work. (Bug#1952, bug#1990).
5ce87308 10805
64cc3cf6 10806 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10807
b3243e6f
AR
108082009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10809
10810 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10811 (ns_no_defaults): New declaration.
10812 (main): Use it.
e0d2e69a 10813
d900b2af 10814 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10815
d900b2af 10816 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10817
d900b2af
AR
10818 * nsterm.m (ns_no_defaults): New variable.
10819 (ns_initialize): Don't read defaults when ns_no_defaults.
10820 (EmacsView-readSelectionFromPasteboard:)
10821 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10822 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10823 (ns_dumpglyphs_stretch): New function.
10824 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10825 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10826
e0d2e69a
AR
10827 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10828
3ac71f5d
CY
108292009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10830
10831 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10832 call for Sparc64.
10833
3fe53a83
AR
108342009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10835
10836 * nsfns.m:
10837 * nsgui.h:
10838 * nsmenu.m:
10839 * nsselect.m:
10840 * nsterm.h:
10841 * nsterm.m: Remove '23' comments that indicated code added during
10842 update from emacs-20 -> emacs-23.
10843
10f87c6f 108442009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10845
10846 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10847 ns_alternate_modifier. (Bug#1217)
a3b53a85 10848
c7cef62d
AR
10849 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10850 Display all shortcuts, including those w/o super modifier.
10851
575fb8bd
AR
10852 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10853
918b848b
CY
108542009-01-22 Chong Yidong <cyd@stupidchicken.com>
10855
10856 * fileio.c (Vwrite_region_post_annotation_function)
10857 (Vwrite_region_annotation_buffers): New vars.
10858 (build_annotations_unwind): Just reset
10859 Vwrite_region_annotation_buffers.
10860 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10861 Call write-region-post-annotation-function.
10862 (build_annotations): Add to Vwrite_region_annotation_buffers if
10863 buffer changes.
10864
a39e2539
AR
108652009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10866
10867 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10868 Tiger.
51d861de
SM
10869 * nsfns.m (ns_do_applescript):
10870 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10871
35ed44db
AR
108722009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10873
10874 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10875
cbe0b5bf
AR
108762009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10877
10878 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10879
6049d3a0
AR
10880 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10881
10882 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10883 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10884 handle Ctrl-tab. (Bug#1841)
10885 (ns_get_color): Use unsigned long long for scanned hex string value.
10886 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10887 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10888 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10889 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10890 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10891 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10892 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10893
d3810c21 10894 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10895 DPI. (Bug#1316)
d3810c21
AR
10896 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10897 values in onTiger section.
4c7077c3 10898
e301e634
CY
108992009-01-19 Chong Yidong <cyd@stupidchicken.com>
10900
7f82490b
CY
10901 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10902 Check return value of font_spec_from_name.
64cc3cf6 10903 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10904
10905 * font.c (font_spec_from_name): Return Qnil if font name could not
10906 be parsed.
10907 (font_parse_name): Treat a `?' character as part of an XLFD.
10908
e301e634
CY
10909 * fns.c (Fsubstring): Doc fix.
10910
1c0db158
KH
109112009-01-19 Kenichi Handa <handa@m17n.org>
10912
51d861de 10913 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10914 (ftfont_list): Likewise.
10915
acf20901
JB
109162009-01-18 Juanma Barranquero <lekktu@gmail.com>
10917
fff4e459
JB
10918 * dbusbind.c (Fdbus_register_signal):
10919 * process.c (conv_sockaddr_to_lisp):
10920 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10921
acf20901
JB
10922 * callproc.c (Fgetenv_internal): Doc fix.
10923
e7abcdfb
CY
109242009-01-16 Chong Yidong <cyd@stupidchicken.com>
10925
10926 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10927 it is not even used.
10928
b60861e6
GM
109292009-01-16 Glenn Morris <rgm@gnu.org>
10930
10931 * font.c (Ffont_variation_glyphs): Silence compiler.
10932
8db52afe
JB
109332009-01-15 Juanma Barranquero <lekktu@gmail.com>
10934
10935 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10936 Reported by David Robinow <drobinow@gmail.com>.
10937
4cddb209
KH
109382009-01-15 Kenichi Handa <handa@m17n.org>
10939
51d861de 10940 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10941
f247f67b
JR
109422009-01-14 Jason Rumney <jasonr@gnu.org>
10943
10944 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10945 never a fontset. (Bug#1562)
f247f67b 10946
f56a4450
KH
109472009-01-14 Kenichi Handa <handa@m17n.org>
10948
10949 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10950 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10951
4e99855e
CY
109522009-01-13 Chong Yidong <cyd@stupidchicken.com>
10953
10954 * font.c (font_clear_prop): If clearing the family, clear the font
10955 width index too.
10956
fff4e459 10957 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10958
24f01470
JB
109592009-01-12 Juanma Barranquero <lekktu@gmail.com>
10960
10961 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10962 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10963 functions, use sizeof.
10964
a41240a3
MR
109652009-01-12 Martin Rudalics <rudalics@gmx.at>
10966
10967 * keyboard.c (read_char): Fix case where last_nonmenu_event
10968 returned a bad value with submenus. (Bug#447)
10969
944636b8
CY
109702009-01-12 Chong Yidong <cyd@stupidchicken.com>
10971
10972 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10973 family, clear the font width index too.
10974
0dad7c6f
JR
109752009-01-11 Jason Rumney <jasonr@gnu.org>
10976
10977 * keyboard.c (cmd_error_internal): Exit when errors occur before
10978 frame creation and not in daemon mode. (Bug#1836)
10979
7c2363af
CY
109802009-01-10 Chong Yidong <cyd@stupidchicken.com>
10981
10982 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10983 of a display vector, backtrack.
10984 (try_window_reusing_current_matrix): Check glyph type before
10985 referencing charpos member.
10986
97b1b294
EZ
109872009-01-10 Eli Zaretskii <eliz@gnu.org>
10988
10989 Fix Bug #876:
10990
10991 * coding.c (inhibit_null_byte_detection): New variable.
10992 (detect_coding, detect_coding_system): Don't pay attention to null
10993 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10994 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10995 <inhibit-iso-escape-detection>: Doc fix.
10996
4624b6e3
JR
109972009-01-09 Jason Rumney <jasonr@gnu.org>
10998
10999 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 11000 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
11001 Only report Unicode Plane 2 fonts as unicode-sip.
11002
323b840c
CY
110032009-01-09 Chong Yidong <cyd@stupidchicken.com>
11004
51d861de
SM
11005 * xfaces.c (Fx_font_family_list): Delete function.
11006 Move compatibility version to faces.el.
323b840c 11007
51d861de 11008 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 11009
eba7400d
MR
110102009-01-09 Martin Rudalics <rudalics@gmx.at>
11011
11012 * frame.c (x_set_frame_parameters): Remember requested value for
11013 fullscreen before it's reset by the parameter handler.
11014
4b09796d
GM
110152009-01-09 Glenn Morris <rgm@gnu.org>
11016
11017 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 11018 (last_command_event): ... and update all users.
4b09796d
GM
11019 (last_input_char): For clarity, rename to...
11020 (last_input_event): ... and update all users.
11021 (last-command-char, last-input-char): Move to subr.el as aliases.
11022 * cmds.c, commands.h: Update for last_command_char rename.
11023
14ccea62
CY
110242009-01-08 Chong Yidong <cyd@stupidchicken.com>
11025
51d861de 11026 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 11027
5f004711
JR
110282009-01-08 Jason Rumney <jasonr@gnu.org>
11029
11030 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11031 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11032 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11033 Don't declare.
fff4e459 11034 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
11035 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11036
b71f6f73
KH
110372009-01-07 Kenichi Handa <handa@m17n.org>
11038
50b06221 11039 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 11040 remember the coding system used for decoding in
50b06221
KH
11041 coding_system (Bug#1039).
11042
b71f6f73 11043 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 11044 breaking the loop. (Bug#870)
b71f6f73
KH
11045 (decode_coding_utf_16, decode_coding_emacs_mule)
11046 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11047 (decode_coding_charset): Likewise.
11048
56f668f7
MR
110492009-01-05 Martin Rudalics <rudalics@gmx.at>
11050
11051 * frame.c (x_set_frame_parameters): Make sure height (width) get
11052 applied when fullwidth (fullheight) is set. (Bug#1522)
11053
5da9424d
JB
110542009-01-04 Juanma Barranquero <lekktu@gmail.com>
11055
11056 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11057 (utc_base): Declare as ULONGLONG, not long double.
11058 (convert_time_raw): Delete.
11059 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11060 (initialize_utc_base): New function.
11061 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11062 (convert_from_time_t): Use initialize_utc_base; compute result with
11063 64-bit arithmetic.
11064 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11065
c4605e09
EZ
110662009-01-03 Eli Zaretskii <eliz@gnu.org>
11067
9acef61c 11068 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
11069 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11070 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11071 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11072 [!subprocesses]: Define.
11073 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11074 (Flist_system_processes, Fsystem_process_attributes)
11075 [!subprocesses]: Call list_system_processes and
11076 system_process_attributes instead of returning Qnil.
11077
9acef61c
JB
11078 * dosfns.c (system_process_attributes, list_system_processes):
11079 New functions.
c4605e09
EZ
11080
11081 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11082
11083 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11084 Don't use the default (no-op) implementation.
11085
8b7d0a16
JR
110862009-01-03 Jason Rumney <jasonr@gnu.org>
11087
a6d46bc1
JR
11088 * keyboard.c (parse_modifiers_uncached): Wheel events are
11089 clicks (bug#687).
11090
8b7d0a16
JR
11091 * w32term.c (x_query_colors, x_query_color): New functions.
11092
11093 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11094 (svg_load_image): Cast returned pointers from dynamically loaded
11095 functions. Eliminate W32 specific code.
11096
bfe11752
DN
110972009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11098
89e2438a
DN
11099 * nsfns.m (x_set_foreground_color, x_set_background_color)
11100 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11101 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11102 x_ prefix instead of ns_. Update references.
11103 (syms_of_nsfns): Add a FIXME comment.
11104
11105 * nsterm.m (x_set_cursor_type): New prototype.
11106 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11107
bfe11752
DN
11108 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11109 for Solaris instead of incorrectly providing Qutime and Qcutime.
11110
031da700
EZ
111112009-01-02 Eli Zaretskii <eliz@gnu.org>
11112
11113 * w32.c (process_times): Compute sum of utime and stime.
11114 (system_process_attributes): Add Qtime to the alist.
11115
11116 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11117 and add them to the alist.
11118
11119 * process.c (top level) <Qtime, Qctime>: New variables.
11120 (syms_of_process): staticpro them.
11121 (Fsystem_process_attributes): Add their documentation to the doc
11122 string.
11123
11124 * process.h: Declare Qtime and Qctime.
11125
df23bf08
JR
111262009-01-02 Jason Rumney <jasonr@gnu.org>
11127
9acef61c 11128 * image.c (Qgobject): New symbol.
df23bf08
JR
11129 (syms_of_image): Initialize it.
11130 (init_svg_functions): Load some functions from gobject library.
11131
5bbdf7aa
DN
111322009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11133
11134 * frame.c (make_terminal_frame): Remove redundant code and useless
11135 block.
11136
63136da6
AS
111372009-01-01 Andreas Schwab <schwab@suse.de>
11138
11139 * process.c (conv_sockaddr_to_lisp): Add workaround for
11140 getsockname bug on BSD.
11141
9ef69046
CY
111422009-01-01 Chong Yidong <cyd@stupidchicken.com>
11143
d6fafbe0
CY
11144 * xfns.c (x_create_tip_frame): Set border width of the X window.
11145
51d861de 11146 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11147
f9c34147
JR
111482009-01-01 Jason Rumney <jasonr@gnu.org>
11149
9acef61c 11150 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11151 Don't block input, as per earlier xterm.c changes.
11152
f5497e45
AR
111532008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11154
11155 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11156 (ns_appkit_version_int): New function.
11157 (x-server-version): Use ns_appkit_version_int and follow 21+
11158 convention of returning 3 integers.
11159
c19cab20
KH
111602008-12-30 Kenichi Handa <handa@m17n.org>
11161
11162 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11163 (CHAR_SURROGATE_PAIR_P): New macro.
11164
11165 * font.h (struct font_driver): New member get_variation_glyphs.
11166
9acef61c 11167 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11168 (Ffont_variation_glyphs): New function.
11169 (syms_of_font): Defsubr it.
11170
11171 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11172 ftfont_variation_glyphs.
11173 (setup_otf_gstring): New function.
11174 (ftfont_drive_otf): Use it.
11175 (ftfont_shape_by_flt): Handle variation selector.
11176 (ftfont_variation_glyphs): New function.
11177
28cd591f
MR
111782008-12-30 Martin Rudalics <rudalics@gmx.at>
11179
11180 * frame.c (Vemacs_iconified): Remove.
11181
7f714baf
JR
111822008-12-30 Jason Rumney <jasonr@gnu.org>
11183
11184 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11185 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11186
9d2d22ab
CY
111872008-12-30 Chong Yidong <cyd@stupidchicken.com>
11188
11189 * indent.c (Fvertical_motion): Don't advance iterator if we have
11190 reseated to the desired position.
11191
11192 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11193 checking for pos match.
11194
545312c2
KH
111952008-12-30 Kenichi Handa <handa@m17n.org>
11196
1ede3eb6
KH
11197 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11198 just get the low 8-bit of the code.
11199
545312c2
KH
11200 * font.c (font_intern_prop): Validate str as multibyte.
11201
bd7bbf29
DN
112022008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11203
31e0750e
DN
11204 * dispextern.h (struct face): Move lface and hash from the middle
11205 of bitfields.
11206
bd7bbf29
DN
11207 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11208
b5672e7c
DN
112092008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11210
11211 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11212 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11213 instead of intervals.h.
11214
d704470f
AS
112152008-12-26 Andreas Schwab <schwab@suse.de>
11216
11217 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11218 cons.
11219
54b33868
MR
112202008-12-26 Martin Rudalics <rudalics@gmx.at>
11221
11222 * textprop.c (Qminibuffer_prompt): New variable.
11223 (syms_of_textprop): Initialize it.
11224 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11225 in minibuffer-prompt face. (Bug#1662)
11226
40b615d6
JR
112272008-12-25 Jason Rumney <jasonr@gnu.org>
11228
11229 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11230
baae5c2d
JR
112312008-12-24 Jason Rumney <jasonr@gnu.org>
11232
11233 * ralloc.c (r_alloc_reset_variable): New function.
11234
11235 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11236 record of what points where. (Bug#716)
baae5c2d 11237
a9051c88
DN
112382008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11239
11240 * minibuf.c (read_minibuf): Follow the non-interactive case when
11241 running as a daemon, before detaching.
11242
8b146312
AS
112432008-12-22 Andreas Schwab <schwab@suse.de>
11244
11245 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11246 * gtkutil.c (free_widget_value): Use xfree instead of free.
11247
56f2de10
MR
112482008-12-22 Martin Rudalics <rudalics@gmx.at>
11249
11250 * frame.c (delete_frame): New function derived from
11251 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11252 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11253 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11254 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11255 * frame.h: Extern delete_frame.
11256 * window.c (window_loop):
11257 * terminal.c (delete_terminal):
11258 * xterm.c (x_connection_closed):
11259 * xfns.c (Fx_hide_tip):
9acef61c 11260 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11261
1fc200d6
JR
112622008-12-21 Jason Rumney <jasonr@gnu.org>
11263
11264 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11265 when character maps to .notdef character.
11266
5e252df2
SM
112672008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11268
11269 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11270
99b72cc4
JR
112712008-12-20 Jason Rumney <jasonr@gnu.org>
11272
11273 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11274 a graphical frame on Windows. (Bug#1325)
99b72cc4 11275
acc49a52
JD
112762008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11277
11278 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11279
6ea15123
CY
112802008-12-20 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * minibuf.c (Fread_buffer): Doc fix.
11283
b2dab6c8
JR
112842008-12-20 Jason Rumney <jasonr@gnu.org>
11285
54ea0c87 11286 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11287 server name in UNC paths. (Bug#719)
54ea0c87 11288
b2dab6c8 11289 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11290 charbuf. (Bug#1035)
b2dab6c8 11291
6d1921be
DN
112922008-12-19 Daniel Engeler <engeler@gmail.com>
11293
11294 * sysdep.c (serial_configure): Fix typo.
11295
53934c98
DN
112962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11297
11298 * sysdep.c: Include alloca.h.
f4f634e8
DN
11299 (system_process_attributes): Add implementation for Solaris.
11300
11301 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11302
06e111a6
DN
113032008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11304
11305 Reorganize implementation of Flist_system_processes and
11306 Fsystem_process_attributes. No functional changes.
11307 * process.c: Don't #include pwd.h, grp.h and limits.h.
11308 (Flist_system_processes): Just call list_system_processes.
11309 (Fsystem_process_attributes): Just call system_process_attributes.
11310 (procfs_list_system_processes, time_from_jiffies)
11311 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11312 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11313
11314 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11315 (list_system_processes): Rename from
11316 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11317 Provide a do nothing implementation.
11318 (system_process_attributes): Rename from
11319 procfs_list_system_processes.
11320 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11321 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11322
11323 * w32.c (list_system_processes): Rename from
11324 w32_list_system_processes.
11325 (system_process_attributes): Rename from
11326 w32_system_process_attributes.
11327
11328 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11329
11330 * process.h (w32_list_system_processes)
11331 (w32_system_process_attributes): Remove.
362654a6
JB
11332 (list_system_processes, system_process_attributes):
11333 New prototypes.
06e111a6 11334
6a705b23
KH
113352008-12-19 Kenichi Handa <handa@m17n.org>
11336
11337 * xfont.c (xfont_decode_coding_xlfd): New function.
11338 (xfont_encode_coding_xlfd): New function.
11339 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11340 (xfont_list): Decode and encode XLFD by iso-8859-1.
11341 (xfont_match): Likewise.
11342 (xfont_list_family): Likewise.
11343 (xfont_open): Likewise.
11344
d66c0241 11345 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11346 names are utf-8.
11347
d66c0241 11348 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11349 names are utf-8.
11350
5a130941
JD
113512008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11352
11353 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11354 changed.
bfd20325
JD
11355 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11356 clicked on a detached tool bar button.
5a130941 11357
fd95644b
DN
113582008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11359
11360 * emacs.c (main): Print and error and exit when no data is read
11361 from the pipe.
11362
e6eee6ae
JR
113632008-12-17 Jason Rumney <jasonr@gnu.org>
11364
11365 * w32font.c (w32font_has_char): Always return -1.
11366
a35dd56b
KH
113672008-12-16 Kenichi Handa <handa@m17n.org>
11368
11369 * font.c (font_open_entity): Fix previous change.
11370
0e3635c2
DN
113712008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11372
11373 * process.c: Include <limits.h>.
11374
d4835507 113752008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11376
11377 * font.c (font_update_drivers): Fix mistake in reconstructing the
11378 driver list.
11379
113802008-12-16 Chong Yidong <cyd@stupidchicken.com>
11381
11382 * font.c (font_clear_cache): Fix format of font cache data.
11383
e2cbc401
CY
113842008-12-15 Chong Yidong <cyd@stupidchicken.com>
11385
11386 * xftfont.c (xftfont_open): Free Xft font pattern if
11387 XftFontOpenPattern fails.
11388
11389 * xterm.c (x_free_frame_resources): Remove extraneous call to
11390 free_frame_faces.
11391
b131d535
CY
113922008-12-13 Chong Yidong <cyd@stupidchicken.com>
11393
11394 * xterm.c (x_delete_display): Move xim_close_dpy call to
11395 x_delete_terminal.
11396 (x_delete_terminal): Call xim_close_dpy.
11397
e6df5336
JR
113982008-12-13 Jason Rumney <jasonr@gnu.org>
11399
11400 * w32font.c (intern_font_name): New function.
11401 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11402 (w32font_open_internal, Fx_select_font): Decode font name.
11403 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11404
11405 * w32font.h (intern_font_name): Declare new function.
11406
11407 * w32uniscribe.c (add_opentype_font_name_to_list):
11408 Use intern_font_name.
11409
20d68145
CY
114102008-12-13 Chong Yidong <cyd@stupidchicken.com>
11411
9f2554de
CY
11412 * frame.c (Fdelete_frame): Call free_font_driver_list.
11413
3d9bec9a
CY
11414 * font.c (free_font_driver_list): Implement missing function.
11415
20d68145
CY
11416 * w32term.c (w32_term_init): Don't initialize the image cache
11417 here; it will be done in init_frame_faces.
11418
11419 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11420 (struct x_display_info): Remove unused member null_pixel. New
11421 member xim_callback_data.
11422
11423 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11424 (xim_initialize): Save pointer to callback function data.
11425 (xim_close_dpy): Free callback function data. Call XCloseIM,
11426 reverting 2008-11-04 change by David Smith.
11427 (x_term_init): Don't initialize the image cache here; it will be
11428 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11429 (x_delete_display): Free x_dnd_atoms member.
11430
96f9306b
KH
114312008-12-13 Kenichi Handa <handa@m17n.org>
11432
6dec9044
JB
11433 * font.c (font_rescale_ratio): Moved from xfaces.c.
11434 Argument type changed. Handle a font-spec too.
96f9306b 11435 (font_score): Check Vface_font_rescale_alist.
6dec9044 11436 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11437
11438 * xfaces.c (font_rescale_ratio): Moved to font.c.
11439
8d5b4964
CY
114402008-12-13 Chong Yidong <cyd@stupidchicken.com>
11441
11442 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11443
e6df5336
JR
114442008-12-12 Jason Rumney <jasonr@gnu.org>
11445
11446 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11447 Vwindow_system_version to the real w32 major version.
11448
97c6058a
DN
114492008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11450
11451 * term.c (init_tty): Move setting the terminal name before the
11452 potential user: maybe_fatal.
11453
ec4e88d7
CY
114542008-12-11 Chong Yidong <cyd@stupidchicken.com>
11455
d4835507
JB
11456 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11457 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11458
b4233ec9
JR
114592008-12-11 Jason Rumney <jasonr@gnu.org>
11460
8ec71e23 11461 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11462 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11463
b4233ec9 11464 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11465 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11466
011a0143
JB
114672008-12-11 Juanma Barranquero <lekktu@gmail.com>
11468
11469 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11470
3c309f34
JB
114712008-12-11 Juanma Barranquero <lekktu@gmail.com>
11472
11473 * process.c (Fsystem_process_attributes, syms_of_process):
11474 Fix typo in name of Ssystem_process_attributes.
11475 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11476
fedc6ab5
JB
114772008-12-11 Juanma Barranquero <lekktu@gmail.com>
11478
11479 * syntax.c (Fmodify_syntax_entry): Doc fix.
11480
ba3de0e8
JB
114812008-12-10 Juanma Barranquero <lekktu@gmail.com>
11482
11483 * font.c (Ffont_spec): Move usage to end of docstring.
11484
174f1c74
JR
114852008-12-10 Jason Rumney <jasonr@gnu.org>
11486
11487 * w32font.c (Qcham): New symbol.
11488 (font_supported_scripts): Add cham, and comments for other new
11489 scripts in bitfield from OpenType spec.
9d32f818
JR
11490 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11491 contain characters beyond the bmp.
174f1c74 11492
7b649478
KH
114932008-12-10 Kenichi Handa <handa@m17n.org>
11494
11495 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11496 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11497 Qunicode_sip.
11498
2133e2d1
JB
114992008-12-10 Juanma Barranquero <lekktu@gmail.com>
11500
11501 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11502 (Fcoding_system_put): Use QCdefault_char.
11503 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11504
9af886ee
CY
115052008-12-09 Chong Yidong <cyd@stupidchicken.com>
11506
74d819eb
CY
11507 * xftfont.c (syms_of_xftfont): Fix typo.
11508
4ccfa1c0 11509 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11510
7c19d3ae
DN
115112008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11512
11513 * emacs.c (main): Close daemon_pipe on exec.
11514
567826bb
CY
115152008-12-08 Chong Yidong <cyd@stupidchicken.com>
11516
11517 * termchar.h (struct tty): New members termcap_term_buffer and
11518 termcap_strings_buffer.
11519
11520 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11521 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11522 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11523 All callers changed.
11524 (init_tty): Store termcap data and string buffers in new struct
11525 tty members termcap_term_buffer and termcap_strings_buffer.
11526 (delete_tty): Free them.
4ccfa1c0 11527 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11528
aa96c42b
SZ
115292008-12-07 Seiji Zenitani <zenitani@mac.com>
11530
11531 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11532 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11533
b7e1d896
CY
115342008-12-06 Chong Yidong <cyd@stupidchicken.com>
11535
11536 * coding.c (make_conversion_work_buffer): Disable buffer
11537 modification hooks in the work buffer.
11538
b5ec91a5
EZ
115392008-12-05 Eli Zaretskii <eliz@gnu.org>
11540
11541 * process.c (procfs_system_process_attributes): If `nread' has a
11542 negative value, assign zero to it.
11543
a5d2a52b
CY
115442008-12-05 Chong Yidong <cyd@stupidchicken.com>
11545
68c5540b 11546 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11547
7bf1bb21
KH
115482008-12-05 Kenichi Handa <handa@m17n.org>
11549
11550 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11551 second character is a combining character.
11552
2fdc7d00
EZ
115532008-12-05 Eli Zaretskii <eliz@gnu.org>
11554
11555 * process.c (procfs_system_process_attributes): Don't use cmd,
11556 cmdsize, and q without initializing them first.
11557
bf6bfba8
JR
115582008-12-04 Jason Rumney <jasonr@gnu.org>
11559
11560 * w32font.c (w32font_draw): Initialize orig_clip before getting
11561 it, and delete it when finished.
11562
a3b1a468
DN
115632008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11564
11565 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11566 case when running as a daemon before detaching.
11567
8b8be8eb
JB
115682008-12-03 Juanma Barranquero <lekktu@gmail.com>
11569
805f2638 11570 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11571
b1bde622
KH
115722008-12-03 Kenichi Handa <handa@m17n.org>
11573
e500c47d
KH
11574 * font.c (font_at): Set `multibyte' at first.
11575
ca516334
KH
11576 * coding.c (decode_coding_charset): Check type of an element of
11577 vector VALIDS.
7bf1bb21 11578 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11579
4ccfa1c0 11580 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11581 (font_for_char): Likewise.
11582
1e5ecd37
CY
115832008-12-03 Chong Yidong <cyd@stupidchicken.com>
11584
d5b01609 11585 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11586 (font_update_lface): Handle fonts with corrupted size specs,
11587 i.e. non-int and non-float.
d5b01609 11588
11e3a6e4 11589 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11590 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11591 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11592
ab06788b
CY
11593 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11594
1e5ecd37 11595 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11596 underline_minimum_offset for underline position.
1e5ecd37 11597
63c125ab
DN
115982008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11599
11600 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11601
11602 * character.c (c_string_width): Specify the type for LEN.
11603
3a8406e1
KH
116042008-12-03 Kenichi Handa <handa@m17n.org>
11605
4ccfa1c0 11606 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11607 (decode_coding_utf_8): Likewise.
4ccfa1c0 11608 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11609 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11610
651df7d9
CY
116112008-12-02 Chong Yidong <cyd@stupidchicken.com>
11612
11613 * keyboard.c (make_lispy_position): Only use PT if the selected
11614 window is current.
11615
1f625c6c
AS
116162008-12-02 Andreas Schwab <schwab@suse.de>
11617
f7741ce9
AS
11618 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11619
1f625c6c
AS
11620 * doprnt.c (doprnt1): Fix size of charbuf.
11621
92bc2678
CY
116222008-12-02 Chong Yidong <cyd@stupidchicken.com>
11623
11624 * keyboard.c (timer_check): Revert last change.
11625
93b9e8cc
JB
116262008-12-02 Juanma Barranquero <lekktu@gmail.com>
11627
11628 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11629
fd7a37d5
JB
116302008-12-01 Juanma Barranquero <lekktu@gmail.com>
11631
11632 * makefile.w32-in: Update dependencies.
11633 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11634
c115043b
AS
116352008-12-01 Andreas Schwab <schwab@suse.de>
11636
11637 * font.c (register_font_driver): Use xmalloc.
11638 (font_put_frame_data): Likewise.
11639
f5668d2a
CY
116402008-12-01 Chong Yidong <cyd@stupidchicken.com>
11641
860d96be
CY
11642 * xfaces.c (realize_x_face): Make abort condition clearer.
11643
f5668d2a
CY
11644 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11645
379c17e7
CY
116462008-11-30 Chong Yidong <cyd@stupidchicken.com>
11647
11648 * keyboard.c (timer_check): After a timer runs, ensure that the
11649 selected window's buffer is current.
11650
35f36d65
JB
116512008-11-30 Juanma Barranquero <lekktu@gmail.com>
11652
f952c61c
JB
11653 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11654 It was accidentally restored by the Unicode merge.
11655
35f36d65
JB
11656 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11657
b23077df
JB
116582008-11-29 Juanma Barranquero <lekktu@gmail.com>
11659
11660 * w32proc.c: Include "coding.h".
11661 (Fw32_short_file_name): Encode filename passed to Windows API.
11662 (Fw32_long_file_name): Encode filename passed to Windows API and
11663 decode back the result. (Bug#1433)
11664
b8ebe9dd
KH
116652008-11-29 Kenichi Handa <handa@m17n.org>
11666
8cc53f96
KH
11667 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11668 not before accessing it.
11669
b8ebe9dd
KH
11670 * charset.c (Fdefine_charset_internal): After calculating
11671 min_char, max_char, and fastmap, copy the charset structure again.
11672 (encode_char): Fix the previous change.
11673
59bc82c0
SZ
116742008-11-28 Seiji Zenitani <zenitani@mac.com>
11675
11676 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11677
11678 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11679
11680 * nsterm.m (x_set_frame_alpha): New function.
11681
32247e3d
EZ
116822008-11-27 Eli Zaretskii <eliz@gnu.org>
11683
11684 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11685
b003e5ff
JB
116862008-11-27 Juanma Barranquero <lekktu@gmail.com>
11687
11688 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11689 pointer to check_face_name.
11690
708550f5
KH
116912008-11-27 Kenichi Handa <handa@m17n.org>
11692
11693 * category.h (SET_CATEGORY_SET): Call set_category_set.
11694 (set_category_set): Extern it.
11695
11696 * category.c (hash_get_category_set): New function.
11697 (Fmodify_category_entry): Adjusted for the change of
11698 char_table_ref_and_range. Call hash_get_category_set to get a
11699 category set to store in the table.
11700
11701 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11702 Funify_charset.
11703
2ae37cf0 11704 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11705 (DECODE_CHAR): Check if the decoder vector is ready.
11706 (ENCODE_CHAR): Check if the encoder char-table is ready.
11707 (maybe_unify_char): Extern it.
11708
11709 * charset.c (Vchar_unified_charset_table): Delete it.
11710 (inhibit_load_charset_map): New variable.
11711 (temp_charset_work): New variable.
11712 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11713 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11714 New macros.
11715 (load_charset_map): Meaning of control_flag changed. If
11716 inhibit_load_charset_map is nonzero, setup a table in
11717 temp_charset_work.
11718 (load_charset): New argument control_flag.
11719 (map_charset_for_dump): New function.
11720 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11721 map_charset_for_dump.
11722 (Fdefine_charset_internal): If the charset method is MAP, load
11723 mapping tables by calling load_charset.
11724 (Funify_charset): Don't load a mapping table but directly set
11725 Vchar_unify_table.
11726 (maybe_unify_char): New function.
11727 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11728 Handle the case of inhibit_load_charset_map being nonzero.
11729 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11730 Handle the case of inhibit_load_charset_map being nonzero.
11731 (Fclear_charset_maps): Just free temp_charset_work.
11732 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11733 variable.
11734
11735 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11736 change of char_table_ref_and_range.
11737 (char_table_ref_and_range): Change the meaning of argument FROM
11738 and TO. Now the caller must provide initial values for *FROM
11739 and *TO.
11740
11741 * fontset.c (fontset_add): Adjusted for the change of
11742 char_table_ref_and_range.
11743 (fontset_get_font_group): Likewise.
11744 (Ffontset_info): Likewise.
11745
11746 * keymap.c (describe_vector): Adjusted for the change of
11747 char_table_ref_and_range. For char-table, put boundary between
11748 non-ASCII and 8-bit characters.
11749
11750 * print.c (print_object): For bool-vector, delete unnecessary
11751 check of ASCII_BYTE_P.
11752
9196133b
JR
117532008-11-26 Jason Rumney <jasonr@gnu.org>
11754
11755 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11756 leading in font height. (Bug#879)
9196133b 11757
9f688acf
GM
117582008-11-26 Glenn Morris <rgm@gnu.org>
11759
11760 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11761 redefinition with ifdef. (Bug#1383)
11762
90d19aff
AR
117632008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11764
11765 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11766
4ccfa1c0 117672008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11768
11769 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11770 New EmacsView methods.
11771 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11772 Fixes bug #1048,1357,1414.
11773
117742008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11775
11776 Fix bug #1362.
11777 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11778 is not an indexed color.
11779 * nsterm.m (free_indexed_color): Add argument checking.
11780 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11781
e7d5ecb3
CY
117822008-11-24 Chong Yidong <cyd@stupidchicken.com>
11783
11784 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11785 Document confirm-after-completion value for
11786 minibuffer-completion-confirm.
11787
c285743c
JR
117882008-11-24 Jason Rumney <jasonr@gnu.org>
11789
11790 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11791 warning.
11792
b0857706
JR
117932008-11-23 Jason Rumney <jasonr@gnu.org>
11794
11795 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11796 restored before returning.
11797
11798 * w32font.c (check_face_name): New function.
11799 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11800 fonts. (Bug#642)
b0857706 11801
ee50ff07
MR
118022008-11-22 Martin Rudalics <rudalics@gmx.at>
11803
11804 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11805 confirm-nonexistent-file-or-buffer in doc-string.
11806
b8ff72fa
SM
118072008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11808
11809 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11810 Fix copy/paste typo. Add checks.
11811
cee53ed4
KH
118122008-11-21 Kenichi Handa <handa@m17n.org>
11813
11814 * coding.c (detect_coding_iso_2022): Reject invalid composition
11815 sequence.
11816 (DECODE_COMPOSITION_START): If the current source is the last
11817 block, and the current composition doesn't end, regard this
11818 sequence as invalid.
11819 (decode_coding_iso_2022): Handle invalid composition sequence.
11820
f6ef1e65
MR
118212008-11-20 Martin Rudalics <rudalics@gmx.at>
11822
11823 * window.c (coordinates_in_window): Don't return
11824 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11825 line when the window is not the rightmost one. (Bug#1372)
11826
e08b1705
MR
118272008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11828
11829 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11830
ad98e89f
EZ
118312008-11-15 Eli Zaretskii <eliz@gnu.org>
11832
11833 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11834 and bright_bg if noninteractive is non-zero.
11835
fb098a4b
CY
118362008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11837
11838 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11839 x_draw_glyph_string_background.
11840
11841 * w32term.c (x_draw_glyph_string): Likewise.
11842
ce952b6e
CY
118432008-11-15 Chong Yidong <cyd@stupidchicken.com>
11844
11845 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11846 the next glyph string once past the overhang width.
11847
11848 * nsterm.m (ns_draw_glyph_string): Likewise.
11849
11850 * w32term.c (x_draw_glyph_string): Likewise.
11851
26ea7079
CY
118522008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11853
11854 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11855 double file close.
11856
1c33c906
MR
118572008-11-14 Martin Rudalics <rudalics@gmx.at>
11858
11859 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11860 dedicated status of window before attempting to display another
11861 buffer in it.
11862
8fc29035
JB
118632008-11-14 Juanma Barranquero <lekktu@gmail.com>
11864
11865 * msdos.c (Fmsdos_long_file_names):
11866 (syms_of_msdos) <dos-unsupported-char-glyph>:
11867 * dosfns.c (Fint86): Fix typos in docstrings.
11868
55fb4286
EZ
118692008-11-14 Eli Zaretskii <eliz@gnu.org>
11870
11871 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11872
3fda0315
KY
118732008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11874
11875 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11876
7e849c17
CY
118772008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11878
11879 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11880
11881 * frame.h: Negative alpha means "don't touch".
11882
11883 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11884
11885 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11886
b9fd67bd
DN
118872008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11888
11889 * hftctl.c:
11890 * chpdef.h:
11891 * acldef.h: Remove files used only for systems no longer supported.
11892
11893 * Makefile.in: Fix .o alphabetical ordering.
11894 (hftctl.o): Remove dependency, file removed.
11895 (keymap.o, print.o): Depend on charset.h.
11896
d5998e03
KH
118972008-11-10 Kenichi Handa <handa@m17n.org>
11898
2ae37cf0 11899 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11900
be70e183
CY
119012008-11-08 Chong Yidong <cyd@stupidchicken.com>
11902
11903 * dired.c (file_name_completion): If completion_ignore_case is
11904 enabled, ignore case when checking completion-regexp-list.
11905
7cf94eac
EZ
119062008-11-08 Eli Zaretskii <eliz@gnu.org>
11907
11908 * vm-limit.c (get_lim_data): Fix last change.
11909
ee107a89
KH
119102008-11-08 Kenichi Handa <handa@m17n.org>
11911
11912 * character.c (Fget_byte): New function.
11913 (syms_of_character): Defsubr Fget_byte.
11914
5fd15622
CY
119152008-11-07 Chong Yidong <cyd@stupidchicken.com>
11916
11917 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11918 cursor position is valid after scrolling.
11919
13d62fad
JB
119202008-11-06 Juanma Barranquero <lekktu@gmail.com>
11921
11922 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11923
a1dd2936
GM
119242008-11-06 Glenn Morris <rgm@gnu.org>
11925
11926 * xterm.c (handle_one_xevent): Don't let popup menus cause
11927 mouse-autoselect-window related window switching. (Bug#1261)
11928
860cd236
CY
119292008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11930
11931 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11932
653a3150
AS
119332008-11-04 Andreas Schwab <schwab@suse.de>
11934
11935 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11936
870f5cac
CY
119372008-11-03 Chong Yidong <cyd@stupidchicken.com>
11938
11939 * xfns.c (Fx_wm_set_size_hint): New function.
11940
1e02f3cb
MR
119412008-11-03 Martin Rudalics <rudalics@gmx.at>
11942
11943 * textprop.c (Fprevious_single_char_property_change): Return 0
11944 when there's no change in a string. (Bug#1301)
11945
e630dfc6
MR
119462008-11-02 Martin Rudalics <rudalics@gmx.at>
11947
11948 * frame.c (do_switch_frame): New argument NORECORD passed to
11949 Fselect_window.
11950 (Fselect_frame): New argument NORECORD passed to
11951 do_switch_frame.
11952 (Fset_frame_selected_window): New argument NORECORD passed to
11953 Fselect_frame.
11954 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11955 in call of do_switch_frame.
11956 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11957 Handle NORECORD argument in call of Fselect_frame.
11958 * lisp.h (do_switch_frame, Fselect_frame)
11959 (Fset_frame_selected_window): Adjust declarations.
11960 * window.c (select_frame_norecord): New function.
11961 (run_window_configuration_change_hook): Use it and call
11962 Fselect_frame with NORECORD set.
11963 (Fselect_window): Pass NORECORD to Fselect_frame.
11964 (Fset_window_configuration): Handle NORECORD argument in call of
11965 do_switch_frame.
11966 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11967 Fset_frame_selected_window.
11968 * keyboard.c (command_loop_1): Handle NORECORD in call of
11969 Fselect_frame (currently ifdefd).
11970
9020b223
GM
119712008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11972
11973 * emacs.c (USAGE2): Untabify.
11974
793ffee8
SM
119752008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11976
11977 * composite.c (fill_gstring_header): Fix copy/paste typo.
11978
ab6d1131
MR
119792008-10-31 Martin Rudalics <rudalics@gmx.at>
11980
11981 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11982 (Fother_window): Rename argument and rewrite doc-string.
11983 (select_window_norecord): Fix return value. (Bug#1276)
11984
601a9cf1
JB
119852008-10-30 Juanma Barranquero <lekktu@gmail.com>
11986
11987 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11988 new frames overriding foreground for tooltips. Based on similar patch
11989 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11990
813b0652
CY
119912008-10-29 Chong Yidong <cyd@stupidchicken.com>
11992
11993 * emacs.c (Fdaemon_initialized): Initialize nfd.
11994
4414f58f
MR
119952008-10-29 Martin Rudalics <rudalics@gmx.at>
11996
11997 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11998 (Fwindow_text_height): Clarify doc-strings.
11999 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12000 doc-string of window-scroll-functions.
12001
ecdcaa09
RS
120022008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12003
12004 * category.c (syms_of_category): Fix typo in docstring.
12005
23fe745a
JB
120062008-10-28 Juanma Barranquero <lekktu@gmail.com>
12007
12008 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12009 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12010 Fix typos in docstrings.
12011
ff808935
DN
120122008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12013
12014 * emacs.c (daemon_pipe): Make non-static.
12015 (IS_DAEMON): Move definition ...
12016 * lisp.h (IS_DAEMON): ... here.
12017 (daemon_pipe): Declare.
12018 (is_daemon): Remove.
12019 * dispnew.c (init_display): Use IS_DAEMON.
12020
fc012771
SM
120212008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12022
12023 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12024 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12025
12026 * emacs.c (is_daemon): Remove.
12027 (main): Don't set is_daemon.
12028 (IS_DAEMON): New macro.
12029 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 12030 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
12031 parent exits.
12032 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12033
d8bdbe6f
CY
120342008-10-27 Chong Yidong <cyd@stupidchicken.com>
12035
d1a072bf
CY
12036 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12037 over-sized glyph, draw it with the default glyph width.
12038
e2e325aa
CY
12039 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12040 glyph, draw it with the default glyph width.
12041
12042 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12043 glyph, draw it with the default glyph width.
12044
d8bdbe6f
CY
12045 * xdisp.c (try_scrolling): When computing the distance from the
12046 scroll margin to PT, try moving some distance past the window
12047 bottom before giving up.
12048
7bfac547
MR
120492008-10-27 Martin Rudalics <rudalics@gmx.at>
12050
12051 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12052 (Fset_window_buffer): Explain in doc-string that a window can be
12053 "strongly" dedicated to its buffer.
12054
4ff029f6
DN
120552008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12056
12057 * emacs.c (daemon_name): New variable.
12058 (main): Deal with --daemon=SERVER_NAME.
12059 (Fdaemonp): Return a name if one was passed to --daemon.
12060
5790ef40
DN
120612008-10-26 Romain Francoise <romain@orebokech.com>
12062
f9bd0df9 12063 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
12064 (main): Create a pipe before forking, make the parent exit only after
12065 the child has closed its end of the pipe. Move closing the
12066 descriptors ...
12067 (Fdaemon_initialized): ... here. New function.
12068
f5385255
SM
120692008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12070
4d632321
SM
12071 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12072 the previous unoptimized table.
12073
f5385255
SM
12074 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12075 the distinction between non-nil and non-t value of `dedicated'.
12076
6c56a0f3
CY
120772008-10-25 Chong Yidong <cyd@stupidchicken.com>
12078
12079 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 12080 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 12081
fec89261
MR
120822008-10-25 Martin Rudalics <rudalics@gmx.at>
12083
12084 * window.c (Fget_buffer_window, Fdelete_windows_on)
12085 (Freplace_buffer_in_windows): Make buffer argument optional and
12086 rename to buffer_or_name.
12087
34fcddd0
CY
120882008-10-24 Chong Yidong <cyd@stupidchicken.com>
12089
f5385255
SM
12090 * xdisp.c (handle_single_display_spec, handle_display_prop):
12091 Undo 2005-05-16 change.
34fcddd0
CY
12092 (handle_stop): Pop iterator if it's loaded with an empty string.
12093 (get_overlay_strings_1): Don't save iterator if it's loaded with
12094 an empty string (bug#1201).
12095
064766f2
KH
120962008-10-24 Kenichi Handa <handa@m17n.org>
12097
12098 * ftfont.c (ftfont_otf_features): Fix previous change.
12099 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12100 calling ftfont_otf_features.
12101
f9bd0df9 121022008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
12103
12104 * font.c (font_match_p): Fix for the case that a vector of
12105 characters is in script-representative-chars.
12106
1dae9197
MA
121072008-10-24 Michael Albinus <michael.albinus@gmx.de>
12108
12109 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 12110 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
12111 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12112 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12113 macro. (Bug#1186)
1dae9197 12114
f9bd0df9 121152008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12116
12117 * s/sol2-10.h: New file.
12118
878a4584
JB
121192008-10-23 Juanma Barranquero <lekktu@gmail.com>
12120
12121 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12122 poor beast has survived 9+ years and the jump from xterm.c!).
12123
cd265ca6
MR
121242008-10-23 Martin Rudalics <rudalics@gmx.at>
12125
12126 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12127 Reword doc-string.
f5385255 12128 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12129
472a4dc9
JB
121302008-10-23 Juanma Barranquero <lekktu@gmail.com>
12131
12132 * character.c (syms_of_character) <script-representative-chars>:
12133 <unicode-category-table>: Doc fixes.
12134
159bd5a2
NF
121352008-10-23 Noah Friedman <friedman@splode.com>
12136
12137 * coding.c (make_conversion_work_buffer): Check that
12138 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12139 Fget_buffer_create.
12140
49f9c344
KH
121412008-10-23 Kenichi Handa <handa@m17n.org>
12142
12143 * font.c (font_add_log): Check the values of extra properties.
12144
12bb3111
MR
121452008-10-22 Martin Rudalics <rudalics@gmx.at>
12146
12147 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12148 Reword doc-string.
12149 (Fset_window_parameter): Use NILP.
12150 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12151 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12152
bbeb4e99
JB
121532008-10-22 Juanma Barranquero <lekktu@gmail.com>
12154
12155 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12156
121572008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12158
12159 * nsfns.m (ns_appkit_version): New function.
12160 (x-server-version): Use it.
12161 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12162 (x-server-vendor): Don't check_ns().
12163
12164 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12165
a9b555d3
JB
121662008-10-22 Juanma Barranquero <lekktu@gmail.com>
12167
12168 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12169 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12170
4626499f
KH
121712008-10-22 Kenichi Handa <handa@m17n.org>
12172
e3681952
KH
12173 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12174 scripts.
12175
4626499f
KH
12176 * category.c (word_boundary_p): Check scripts instead of charset.
12177 Handle nil value in word-separating-categories and
12178 word-combining-categories.
12179 (syms_of_category): Fix docstrings of word-separating-categories
12180 and word-combining-categories.
12181
1560f91a
EZ
121822008-10-21 Eli Zaretskii <eliz@gnu.org>
12183
12184 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12185 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12186
f4668441
MR
121872008-10-21 Martin Rudalics <rudalics@gmx.at>
12188
12189 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12190 Rename arg "buffer" to "buffer_or_name".
12191 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12192 it optional.
12193 (no_switch_window): Remove since the return value is not used.
a9b555d3 12194 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12195 Consider window as dedicated when Fwindow_dedicated_p returns a
12196 non-nil value.
12197 * lisp.h: Remove prototype for no_switch_window.
12198
fd75ddb2
JD
121992008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12200
12201 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12202 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12203
07295713
KH
122042008-10-21 Kenichi Handa <handa@m17n.org>
12205
12206 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12207 check Vlatin_extra_code_table.
12208
712adc82
EZ
122092008-10-20 Eli Zaretskii <eliz@gnu.org>
12210
12211 * fileio.c (Fset_file_modes): Doc fix.
12212
f549eb0b
MA
122132008-10-19 Michael Albinus <michael.albinus@gmx.de>
12214
12215 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12216 in arrays.
12217
aac0c6e3
MR
122182008-10-19 Martin Rudalics <rudalics@gmx.at>
12219
12220 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12221 Mention kill-buffer in doc-string.
12222 (Fset_window_buffer): Reinsert tem check removed in last commit.
12223 (Fenlarge_window, Fshrink_window): Have argument names and
12224 doc-string follow Elisp manual more closely.
12225
122262008-10-18 Eli Zaretskii <eliz@gnu.org>
12227
12228 * fileio.c (Fset_file_modes): Doc fix.
12229
122302008-10-18 Martin Rudalics <rudalics@gmx.at>
12231
12232 * window.c (Fwindow_width, Fset_window_start)
12233 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12234 (Fdelete_windows_on, Freplace_buffer_in_windows):
12235 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12236 (Fwindow_dedicated_p): Make window argument optional.
12237 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12238 (Fset_window_buffer): Respect any non-nil dedicated value for
12239 window. Rename "buffer" argument to "buffer_or_name".
12240
122412008-10-18 Ulrich Mueller <ulm@gentoo.org>
12242
12243 * m/sh3.h: New file, machine description for SuperH.
12244
122452008-10-17 Martin Rudalics <rudalics@gmx.at>
12246
12247 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12248
122492008-10-17 Kenichi Handa <handa@m17n.org>
12250
12251 * ftfont.c (ftfont_otf_features): Fix indexing
12252 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12253
122542008-10-16 Magnus Henoch <mange@freemail.hu>
12255
12256 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12257 (Fdbus_call_method_asynchronously): Ditto.
12258 This change makes C-h f display the argument list.
12259
122602008-10-16 Chong Yidong <cyd@stupidchicken.com>
12261
12262 * fileio.c (Fexpand_file_name): Doc fix.
12263
12264 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12265 of :foreground and :background equivalent to unspecified (20.x
12266 compatibility).
12267
122682008-10-15 Eli Zaretskii <eliz@gnu.org>
12269
12270 * buffer.c (syms_of_buffer): Doc fix.
12271
122722008-10-14 Kenichi Handa <handa@m17n.org>
12273
12274 * font.c (font_clear_prop): When clearing font width, clear the
12275 average width field too.
12276
122772008-10-12 Andreas Schwab <schwab@suse.de>
12278
12279 * ftfont.c (ftfont_shape_by_flt): Make static.
12280 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12281
12282 * font.c: Don't include <m17n-flt.h>.
12283
122842008-10-10 Eli Zaretskii <eliz@gnu.org>
12285
12286 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12287
122882008-10-09 Eli Zaretskii <eliz@gnu.org>
12289
12290 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12291 away code.
12292
122932008-10-09 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * dispnew.c (update_text_area): Avoid looping due to large glyph
12296 overhangs (bug#1070).
12297
122982008-10-09 Kenichi Handa <handa@m17n.org>
12299
12300 * fontset.c (face_for_char): If face->fontset is negative, just
12301 return ascii_face.
12302
f5385255
SM
12303 * font.c (font_delete_unmatched): Fix previous change.
12304 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12305
123062008-10-09 Martin Rudalics <rudalics@gmx.at>
12307
12308 * frame.c (Fraise_frame): On text-only terminals select frame in
12309 order to make it visible. (Bug#1061)
12310
123112008-10-08 Chong Yidong <cyd@stupidchicken.com>
12312
12313 * fontset.c (fontset_find_font): Check frame validity.
12314
123152008-10-07 Chong Yidong <cyd@stupidchicken.com>
12316
a9b555d3 12317 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12318 (xg_display_close): Allow Emacs to close all displays (bug#985).
12319
123202008-10-06 Andreas Schwab <schwab@suse.de>
12321
f5385255 12322 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12323
123242008-10-06 Chong Yidong <cyd@stupidchicken.com>
12325
f5385255 12326 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12327
a9b555d3 12328 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12329
12330 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12331 during initialization.
12332
123332008-10-04 Eli Zaretskii <eliz@gnu.org>
12334
12335 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12336 whole thing on MSDOS frames as well as on a TTY.
12337
12338 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12339 well as for TTY.
12340 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12341 well as on a TTY.
12342
12343 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12344 as well as for TTY.
12345
12346 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12347
12348 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12349 MSDOS frames as well.
12350
123512008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12352
12353 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12354 correct arguments.
b71ac3dd 12355 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12356
123572008-10-03 Glenn Morris <rgm@gnu.org>
12358
12359 * emacs.c (USAGE1): Add --daemon.
12360
123612008-10-02 Eli Zaretskii <eliz@gnu.org>
12362
12363 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12364 100, so it's in percents as advertised.
12365
123662008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12367
12368 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12369 (ns_output.current_cursor, ns_output.desired_cursor)
12370 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12371 (FRAME_NEW_CURSOR_COLOR): Remove.
12372
12373 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12374 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12375 enumeration (HOLLOW_BOX_CURSOR, etc.).
12376
12377 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12378 (draw_window_cursor): Simplify code.
f5385255
SM
12379 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12380 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12381 updates manually.
a9b555d3
JB
12382 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12383 Use core Emacs cursor types.
aac0c6e3 12384
b8ff72fa 12385 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12386
123872008-10-02 Martin Rudalics <rudalics@gmx.at>
12388
12389 * process.c (Faccept_process_output): Fix doc-string.
12390
123912008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12392
12393 * gmalloc.c (__sbrk): Also define for uClibc.
12394
12395 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12396 for uClibc.
12397
123982008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12399
12400 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12401 styles.
12402 (nsfont_open): Reenable the cache.
12403
124042008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12405
12406 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12407 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12408
124092008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12412 a suspended terminal.
12413
124142008-09-30 Michael Albinus <michael.albinus@gmx.de>
12415
12416 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12417
124182008-09-30 Eli Zaretskii <eliz@gnu.org>
12419
12420 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12421
124222008-09-30 Chong Yidong <cyd@stupidchicken.com>
12423
12424 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12425 in a continued line coincides with a line beginning.
12426
124272008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12428
12429 * nsfont.m (nsfont_trait_distance): Fix bug.
12430 (nsfont_list): Return a list rather than a vector (syncs with Handa
12431 changes of 2008-05-14).
12432 (nsfont_open): Improve logging.
12433
124342008-09-29 Andreas Schwab <schwab@suse.de>
12435
12436 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12437
124382008-09-28 Martin Rudalics <rudalics@gmx.at>
12439
12440 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12441 name as char-resolve-modifiers.
12442 Reported by: Markus Triska <markus.triska@gmx.at>
12443
124442008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12445
12446 * dispnew.c (init_display): Return earlier when running as a daemon.
12447
124482008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12449
12450 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12451
124522008-09-27 Eli Zaretskii <eliz@gnu.org>
12453
12454 * composite.c (Fcomposition_get_gstring)
12455 (Fcompose_region_internal, Fcompose_string_internal)
12456 (Ffind_composition_internal): Doc fix.
12457 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12458 (syms_of_composite) <auto-composition-function>: Doc fix.
12459 (syms_of_composite) <composition-function-table>: Doc fix.
12460
124612008-09-25 Chong Yidong <cyd@stupidchicken.com>
12462
12463 * search.c (wordify): New argument for lax word-ends.
12464 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12465
124662008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12467
12468 * lisp.h (is_daemon): Declare.
12469 * dispnew.c (init_display): Do not try to initialize the terminal
12470 when running as a daemon.
12471
124722008-09-22 Chong Yidong <cyd@stupidchicken.com>
12473
12474 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12475 x_display_pixel_height.
12476
124772008-09-22 Martin Rudalics <rudalics@gmx.at>
12478
12479 * undo.c (record_point): Don't call Fundo_boundary for first
12480 change. (Bug#731)
12481
124822008-09-22 Juanma Barranquero <lekktu@gmail.com>
12483
12484 * emacs.c (Fdaemonp): Doc fix.
12485
124862008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12487
12488 * emacs.c (main): Place #ifdef in the proper place.
12489
124902008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12491
12492 * emacs.c (standard_args): Add --daemon.
12493 (main): Disconnect from the terminal when --daemon is passed.
12494 (is_daemon): New variable.
12495 (Fdaemonp): New function.
12496 (syms_of_emacs): Defsubr it.
12497
124982008-09-20 Chong Yidong <cyd@stupidchicken.com>
12499
12500 * xdisp.c (get_next_display_element): Handle string display
12501 correctly when checking for the end of a box run.
12502
125032008-09-20 Glenn Morris <rgm@gnu.org>
12504
12505 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12506 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12507 (Frename_file): Avoid copying to trash if a rename involves
12508 a delete. (Bug#964).
12509
125102008-09-20 Eli Zaretskii <eliz@gnu.org>
12511
12512 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12513 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12514 frames as well as termcap frames.
12515 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12516 get_named_tty.
12517
125182008-09-19 Eli Zaretskii <eliz@gnu.org>
12519
12520 * process.c (procfs_system_process_attributes): Fix cmdline in
12521 case /proc/PID/cmdline is empty.
12522
12523 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12524 x_display_pixel_height.
12525
125262008-09-19 Juanma Barranquero <lekktu@gmail.com>
12527
12528 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12529
12530 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12531 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12532
125332008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12534
12535 * dispextern.h (struct it): Move line_wrap away from the middle of
12536 bitfields. Move voffset in struct iterator_stack_entry after the
12537 bitfields. Move tab_width near after another short.
12538
125392008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12540
12541 * frame.h (struct frame): Move alpha from the middle of bitfields.
12542
12543 * window.h (struct window): Move frozen_window_start_p after the
12544 rest of the bitfields to reduce padding.
12545
125462008-09-18 Chong Yidong <cyd@stupidchicken.com>
12547
12548 * xterm.h (x_display_info): Remove `height' and `width' members.
12549
12550 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12551
12552 * w32term.h (w32_display_info): Remove `height', `width',
12553 `height_in', and `width_in' members.
12554
b8ff72fa
SM
12555 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12556 New functions.
aac0c6e3
MR
12557 (x_calc_absolute_position): Use them.
12558 (x_term_init): Omit removed `height' and `width' members.
12559
b8ff72fa
SM
12560 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12561 New functions.
aac0c6e3
MR
12562 (w32_read_socket, x_calc_absolute_position): Use them.
12563 (w32_initialize_display_info, w32_term_init): Omit removed members
12564 of w32_display_info.
12565
b8ff72fa
SM
12566 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12567 New functions.
12568 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12569
b8ff72fa
SM
12570 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12571 New functions.
aac0c6e3
MR
12572 (x_calc_absolute_position): Use them.
12573 (x_term_init): Omit removed `height' and `width' members.
12574
12575 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12576 (compute_tip_xy):
12577 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12578 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12579 x_display_pixel_width.
12580
125812008-09-18 Kenichi Handa <handa@m17n.org>
12582
12583 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12584 (composition_compute_stop_pos): Fix handling of static composition.
12585 (Fcomposition_get_gstring): Check FROM and TO at first.
12586
125872008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12588
46e722a9 12589 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12590 mixup (YAILOM).
12591
125922008-09-17 Chong Yidong <cyd@stupidchicken.com>
12593
12594 * indent.c (Fvertical_motion): Use position reported by iterator
12595 instead of PT for determining screen motion (bug#943).
12596
125972008-09-17 Romain Francoise <romain@orebokech.com>
12598
12599 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12600
126012008-09-17 Kenichi Handa <handa@m17n.org>
12602
12603 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12604
12605 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12606 if necessary.
12607
126082008-09-16 Kenichi Handa <handa@m17n.org>
12609
12610 * coding.c (make_conversion_work_buffer): Avoid calling
12611 Fget_buffer_create if it is not necessary.
12612
126132008-09-15 Martin Rudalics <rudalics@gmx.at>
12614
12615 * window.c (Fselect_window): Don't update window_select_count and
12616 use_time when norecord is not nil.
12617
126182008-09-14 Kenichi Handa <handa@m17n.org>
12619
12620 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12621 specpdl_ptr.
12622
126232008-09-12 Kenichi Handa <handa@m17n.org>
12624
12625 * indent.c (scan_for_column): Don't handle automatic composition
12626 if the current buffer is not associated with a window.
12627
12628 * composite.c (composition_reseat_it): If the current buffer is
12629 not associated with a window, ignore the automatic composition.
12630 (find_automatic_composition): Likewise.
12631
126322008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12633
12634 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12635 (Fgpm_mouse_stop): Use it.
12636 * termhooks.h (close_gpm): Declare.
12637 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12638 connection if Gpm_GetEvent fails.
12639
12640 * window.c (set_window_buffer): Always preserve current-buffer.
12641
126422008-09-12 Glenn Morris <rgm@gnu.org>
12643
12644 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12645
126462008-09-11 Glenn Morris <rgm@gnu.org>
12647
12648 * charset.c (charset-map-path): Doc fix.
12649
126502008-09-10 Kenichi Handa <handa@m17n.org>
12651
12652 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12653
12654 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12655 compose a grapheme cluster with the preceding base glyph.
12656
12657 * composite.c (composition_compute_stop_pos): Fix previous change.
12658 Reset cmp_it->id to -1 at first.
12659
126602008-09-10 Glenn Morris <rgm@gnu.org>
12661
12662 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12663
126642008-09-09 Chong Yidong <cyd@stupidchicken.com>
12665
12666 * keyboard.c (read_key_sequence): Reapply translation maps when
12667 switching keyboards.
12668
126692008-09-09 Kenichi Handa <handa@m17n.org>
12670
12671 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12672 characters.
12673
12674 * composite.c (FORWARD_CHAR): Fix calculation
12675 of (POSITION).pos_byte.
12676 (composition_compute_stop_pos): Limit the search of composition to
12677 at most 500 characters ahead. If we reach the limit or find a
12678 newline, set cmp_it->ch to -2 and return 0.
12679 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12680
126812008-09-08 Kenichi Handa <handa@m17n.org>
12682
12683 * indent.c (Fvertical_motion): Be sure to set
12684 it_overshoot_expected if it.cmp_it.id is non-negative.
12685
126862008-09-07 Andreas Schwab <schwab@suse.de>
12687
12688 * callproc.c (Fcall_process): Don't hold references to string data
12689 across garbage collection. Move initialisation of new_argv down
12690 to avoid compiler bug.
12691
126922008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12693
12694 * process.c (Fsystem_process_attributes): Doc fix.
12695
126962008-09-07 Chong Yidong <cyd@stupidchicken.com>
12697
12698 * callproc.c (Fcall_process): Canonicalize current directory name.
12699
12700 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12701 iterator advances to the next line if the current line ends in a
12702 continued tab.
12703
127042008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12705
12706 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12707 member to point to cmp_from.
12708
12709 * xdisp.c: Doc fix for references to gidx data member.
12710
127112008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12712
12713 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12714
127152008-09-07 Kenichi Handa <handa@m17n.org>
12716
12717 * composite.c (FORWARD_CHAR): Check STOP after
12718 incrementing (POSITION).pos.
12719
127202008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12721
12722 * process.c (Fsystem_process_attributes): Doc fix.
12723
127242008-09-06 Chong Yidong <cyd@stupidchicken.com>
12725
12726 * keyboard.c (Ftop_level): Doc fix.
12727
127282008-09-06 Eli Zaretskii <eliz@gnu.org>
12729
12730 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12731 minibuffer, don't let lower part of menu invade the echo area.
12732
12733 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12734 "char *q" to access menu text and advance through it. Revert the
12735 change that displayed ">" instead of ASCII character 0x10.
12736
127372008-09-05 Eli Zaretskii <eliz@gnu.org>
12738
12739 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12740 toggle boxes and radio buttons on MS-DOS as well.
12741
127422008-09-05 Kenichi Handa <handa@m17n.org>
12743
12744 * composite.c (autocmp_chars): Check lookback count.
12745 (composition_compute_stop_pos): Set cmp_it->lookback.
12746 (composition_reseat_it): Check lookback count.
12747 (struct position_record): New struct.
12748 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12749 (find_automatic_composition): New function.
12750 (composition_adjust_point): Use find_automatic_composition.
12751
12752 * dispextern.h (struct composition_it): New member lookback.
12753
127542008-09-02 Chong Yidong <cyd@stupidchicken.com>
12755
12756 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12757 if moving by a single line.
12758
127592008-09-02 Andreas Schwab <schwab@suse.de>
12760
12761 * xterm.c (x_delete_display): Fix merge error.
12762
12763 * fileio.c (Fexpand_file_name): Remove unused variables.
12764
127652008-09-02 Eli Zaretskii <eliz@gnu.org>
12766
12767 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12768 storage on all platforms, not just on DOS_NT.
12769
127702008-09-02 Jason Rumney <jasonr@gnu.org>
12771
b8ff72fa
SM
12772 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12773 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12774
127752008-09-01 Chong Yidong <cyd@stupidchicken.com>
12776
12777 * xfaces.c (Finternal_set_alternative_font_family_alist)
12778 (Finternal_set_alternative_font_registry_alist): Properly copy
12779 entire alist structure.
12780
127812008-09-01 Kenichi Handa <handa@m17n.org>
12782
d66c0241 12783 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12784 representative chars of the script is a vector.
d66c0241
JB
12785 (ftfont_list): Handle the case where the representative chars of
12786 the script is a vector.
aac0c6e3
MR
12787
12788 * character.c (syms_of_character): Docstring of
12789 script-representative-chars fixed.
12790
127912008-08-31 Eli Zaretskii <eliz@gnu.org>
12792
12793 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12794 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12795 the menu. Allocate larger buffer for `text', to account for
12796 possible ^C characters.
12797
127982008-08-31 Martin Rudalics <rudalics@gmx.at>
12799
12800 * xdisp.c (prepare_menu_bars): Don't call
12801 Vwindow_size_change_functions with arg Qt.
12802
128032008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12804
12805 * font.h (font_range):
12806 * fileio.c (report_file_error):
46e722a9
SM
12807 * composite.c (composition_update_it): Yet another int/Lisp_Object
12808 mixup (YAILOM).
aac0c6e3
MR
12809
128102008-08-30 Glenn Morris <rgm@gnu.org>
12811
12812 * data.c (Fmake_variable_frame_local): Doc fix.
12813
12814 * frame.c (Fmodify_frame_parameters): Doc fix.
12815
128162008-08-30 Eli Zaretskii <eliz@gnu.org>
12817
12818 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12819 needed by GetTokenInformation.
12820 (w32_system_process_attributes): Check return values of all system
12821 APIs.
12822
12823 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12824 only when the state changes.
12825 (IT_update_begin, IT_update_end): Add termscript trace.
12826
12827 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12828 clipboard is unavailable. Set dst to NULL if it doesn't point to
12829 malloc'ed data.
12830 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12831 passing random values to xfree.
12832
12833 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12834 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12835
128362008-08-29 Jason Rumney <jasonr@gnu.org>
12837
12838 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12839
128402008-08-29 Eli Zaretskii <eliz@gnu.org>
12841
12842 * composite.c (fill_gstring_body): Avoid compiler warnings.
12843
12844 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12845 LGLYPH_SET_CODE to avoid compiler warnings.
12846
2ae37cf0 12847 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12848
12849 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12850
12851 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12852 LGLYPH_SET_CODE.
12853
128542008-08-29 Kenichi Handa <handa@m17n.org>
12855
12856 * fileio.c (report_file_error): Don't downcase the first character
12857 of errstring if it is still unibyte.
12858
128592008-08-29 Kenichi Handa <handa@m17n.org>
12860
12861 These changes are to re-implement the automatic composition so
12862 that it doesn't use text properties.
12863
12864 * Makefile.in (ftfont.o): Depend on composite.h.
12865 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12866
12867 * character.h (Vunicode_category_table): Extern it.
12868
12869 * character.c (Vunicode_category_table): New variable.
12870 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12871
12872 * chartab.c (optimize_sub_char_table): Perform more greedy
12873 optimization.
12874
b8ff72fa
SM
12875 * composite.h (enum composition_method):
12876 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12877 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12878 (Vcomposition_function_table): Extern it.
12879 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12880 (composition_gstring_put_cache, composition_gstring_from_id)
12881 (composition_gstring_p, composition_gstring_width)
12882 (composition_compute_stop_pos, composition_reseat_it)
12883 (composition_update_it, composition_adjust_point): Extern them.
12884 (Fcomposition_get_gstring): EXFUN it.
12885
d66c0241 12886 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12887 (Vcomposition_function_table)
12888 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12889 (gstring_hash_table, gstring_work, gstring_work_headers):
12890 New variables.
aac0c6e3
MR
12891 (gstring_lookup_cache, composition_gstring_put_cache)
12892 (composition_gstring_from_id, composition_gstring_p)
12893 (composition_gstring_width, fill_gstring_header)
12894 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12895 (composition_reseat_it, composition_update_it)
b8ff72fa 12896 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12897 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12898 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12899 Defsubr composition_get_gstring.
aac0c6e3
MR
12900
12901 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12902 cmp_id.
12903 (struct glyph_string): Delete the member gidx. New members
12904 cmp_id, cmp_from, and cmp_to.
12905 (enum it_method): Delete GET_FROM_COMPOSITION.
12906 (struct composition_it): New struct.
12907 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12908 Delete c, len, cmp_id, cmp_len in u.comp.
12909
12910 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12911 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12912 (enum lglyph_indices): Likewise.
b8ff72fa 12913 (font_range): Adjust extern.
aac0c6e3
MR
12914 (font_fill_lglyph_metrics): Extern it.
12915
12916 * font.c (QCf): New variable.
12917 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12918 (font_prepare_composition): Delete this function.
12919 (font_range): Type and arguments changed.
12920 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12921 (font_fill_lglyph_metrics): New function.
b8ff72fa 12922 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12923 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12924 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12925 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12926
12927 * fontset.h (font_for_char): Extern it.
12928
12929 * fontset.c (font_for_char): New function.
12930
12931 * ftfont.c: Include composite.h.
12932 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12933 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12934
12935 * indent.c: Include composite.h and dispextern.h.
12936 (check_composition): Delete this function.
12937 (scan_for_column): Handle composition by
12938 composition_compute_stop_pos, composition_reseat_it, and
12939 composition_update_it.
12940 (compute_motion): Likewise.
12941 (Fvertical_motion): Fix checking of composition.
12942
12943 * keyboard.c (adjust_point_for_property): Check composition by
12944 composition_adjust_point.
12945
b8ff72fa 12946 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12947 struct glyph_string.
12948
b8ff72fa
SM
12949 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12950 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12951 struct glyph.
12952 (produce_composite_glyph): Likewise.
12953
b8ff72fa
SM
12954 * w32term.c (x_draw_composite_glyph_string_foreground):
12955 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12956 (x_draw_glyph_string): Likewise.
12957
12958 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12959 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12960
12961 * xdisp.c: Include font.h.
12962 (it_props): Delete the entry for Qauto_composed.
12963 (init_iterator): Initialize it->cmp_it.id to -1.
12964 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12965 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12966 (handle_auto_composed_prop): Delete it.
12967 (handle_composition_prop): Handle only static composition.
12968 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12969 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12970 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12971 (pop_it): Likewise.
12972 (get_next_element): Delete next_element_from_composition.
12973 (CHAR_COMPOSED_P): New macro.
12974 (get_next_display_element): For automatic composition, get a face
12975 from the font in the glyph-string.
12976 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12977 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12978 (next_element_from_string): Check if the character at the current
12979 position is composed by CHAR_COMPOSED_P.
12980 (next_element_from_buffer): Likewise.
d66c0241
JB
12981 (next_element_from_composition): Adjust for the change of struct it.
12982 Update it->cmp_it.
b8ff72fa
SM
12983 (dump_glyph): Adjust for the change of struct glyph.
12984 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12985 it and struct glyph. Don't handle automatic composition here.
12986 (fill_gstring_glyph_string): New function.
12987 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12988 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12989 (BUILD_GSTRING_GLYPH_STRING): New macro.
12990 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12991 automatic composition.
b8ff72fa 12992 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12993 struct glyph.
b8ff72fa 12994 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12995
b8ff72fa 12996 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12997 the change of struct glyph_string.
12998 (x_draw_glyph_string): Likewise.
12999
130002008-08-29 Glenn Morris <rgm@gnu.org>
13001
13002 * buffer.c (word-wrap): Doc fix.
13003 * xdisp.c (truncate-partial-width-windows): Doc fix.
13004 Increase default to 50.
13005
130062008-08-29 Chong Yidong <cyd@stupidchicken.com>
13007
13008 * xdisp.c (update_tool_bar_unwind): New function.
13009 (update_tool_bar): Temporarily set selected frame before building
13010 tool-bar items.
13011
130122008-08-28 Michael Albinus <michael.albinus@gmx.de>
13013
13014 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13015 snprintf, respectively.
13016 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13017
130182008-08-28 Chong Yidong <cyd@stupidchicken.com>
13019
13020 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13021 LDFLAGS to GNUstep CC invocation.
13022
130232008-08-27 Chong Yidong <cyd@stupidchicken.com>
13024
13025 * indent.c (Fvertical_motion): Revert last change. Handle the
13026 general case where we are moving forward, and PT spans multiple
13027 screen lines.
13028
13029 * eval.c (find_handler_clause): Temporarily increase
13030 max-lisp-eval-depth while printing the backtrace buffer, to
13031 guarantee that help-mode code can run.
13032
130332008-08-27 Eli Zaretskii <eliz@gnu.org>
13034
13035 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13036 colors under -rv.
13037 (IT_set_frame_parameters): Don't swap foreground and background
13038 colors if `(reverse . t)' is present in the frame properties.
13039 (internal_terminal_init): Call init_frame_faces only for the
13040 initial frame.
13041
130422008-08-27 Andreas Schwab <schwab@suse.de>
13043
13044 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13045
130462008-08-27 Andreas Schwab <schwab@suse.de>
13047
13048 * search.c (search_buffer): Set char_base to zero only at the end.
13049
130502008-08-27 Kenichi Handa <handa@m17n.org>
13051
b8ff72fa 13052 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
13053
130542008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13055
13056 * xterm.c (x_term_init): Temporarily hide the partially
13057 initialized terminal while calling vendor-specific-keysyms.
13058
130592008-08-26 Eli Zaretskii <eliz@gnu.org>
13060
13061 * msdos.c (internal_terminal_init): Most initializations done only
13062 once, especially initial_screen_colors[] and termscript open.
13063
130642008-08-26 Chong Yidong <cyd@stupidchicken.com>
13065
13066 * eval.c (Fcondition_case): Doc fix.
13067
13068 * widgetprv.h (EmacsFramePart): Change font member to the new font
13069 struct.
13070
13071 * widget.c: Include character.h and font.h for XSETFONT.
13072 (setup_frame_gcs): Compute X font id from font struct, just once.
13073
130742008-08-26 Eli Zaretskii <eliz@gnu.org>
13075
13076 * term.c (get_named_tty): Fix last change.
13077
130782008-08-26 Chong Yidong <cyd@stupidchicken.com>
13079
13080 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 13081 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
13082
130832008-08-25 Eli Zaretskii <eliz@gnu.org>
13084
13085 * frame.c (do_switch_frame): Mark previously displayed frame as
13086 obscured for FRAME_MSDOS_P frames as well.
13087
130882008-08-24 Eli Zaretskii <eliz@gnu.org>
13089
13090 * frame.c (make_terminal_frame): Initialize f->terminal,
13091 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13092 Set the top frame to newly created frame.
13093 (Fmake_terminal_frame): Reuse the_only_display_info.
13094
13095 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13096 estimating available memory.
13097
b97439ce 130982008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
13099
13100 * nsterm.m (ns_draw_window_cursor): Don't call
13101 NSDisableScreenUpdates and NSEnableScreenUpdates on
13102 non-NS_IMPL_COCOA systems.
13103
131042008-08-23 Andreas Schwab <schwab@suse.de>
13105
13106 * process.c (procfs_system_process_attributes): Fix use of
13107 uninitialized variables.
13108
131092008-08-23 Eli Zaretskii <eliz@gnu.org>
13110
13111 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13112
13113 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13114 calling tty-set-up-initial-frame-faces.
13115
b8ff72fa
SM
13116 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13117 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13118
13119 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13120 addition to output_termcap.
13121
13122 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13123
13124 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13125 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13126 highlight.
13127
13128 * process.c [!subprocesses]: Define QCname.
13129 (syms_of_process): Intern and staticpro it.
13130
13131 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13132 Adjust for changes in encoding/decoding routines.
13133 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13134 encode_coding and decode_coding.
13135
b8ff72fa 13136 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13137
13138 * dosfns.c: Include frame.h before termhooks.h.
13139 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13140 variable termscript.
13141
13142 * s/msdos.h (USER_FULL_NAME): Define.
13143 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13144
13145 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13146 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13147 pw->pw_gecos.
13148
13149 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13150 SELECTED_FRAME as additional (1st) argument.
13151 (tty_read_avail_input): Handle output_msdos_raw in
13152 addition to output_termcap.
13153
13154 * msdos.c: Include frame.h before termhooks.h.
13155 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13156 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13157 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13158 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13159 (IT_set_terminal_modes, IT_reset_terminal_modes)
13160 (IT_set_frame_parameters): Use tty->termscript instead of a global
13161 variable termscript.
13162 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13163 global variable terminal_coding. Don't refer to
13164 Vnonascii_translation_table.
13165 (internal_terminal_init): Set Vwindow_system in current_kboard.
13166 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13167 Announce date and time of session start, if termscript is open.
13168 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13169 term.c:init_tty). Open termscript only of not already open.
13170 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13171 here instead of dos_ttraw. Don't initialize display if this is an
13172 initial tty. Don't set FRAME_FONT.
13173 (Vwindow_system_version): Bump to 23.
13174 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13175 is available, set up mouse_position_hook.
13176 (dos_ttraw, IT_set_terminal_modes): If called with initial
13177 terminal, do nothing.
13178 (IT_set_frame_parameters): Handle the Qtty_type frame
13179 parameter by calling internal_terminal_init.
13180 (dos_set_window_size, show_mouse_face)
13181 (clear_mouse_face, IT_note_mode_line_highlight)
13182 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13183 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13184 (initialize_msdos_display): New function.
13185 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13186 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13187 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13188 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13189 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13190 (request_sigio, unrequest_sigio): Don't define, now defined on
13191 sysdep.c.
13192 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13193
13194 * term.c [MSDOS]: Include msdos.h.
13195 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13196 conditional to DOS_NT. Allow only one call to this function in a
13197 session. Don't allocate a new struct tty_display_info; instead,
13198 reuse the_only_display_info. Call get_tty_size to get screen
13199 dimensions. Call init_baud_rate to set bad_rate.
13200 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13201 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13202 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13203 (get_tty_terminal, get_named_tty, Ftty_type)
13204 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13205 output_termcap.
b8ff72fa
SM
13206 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13207 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13208 only when subprocesses are supported.
aac0c6e3
MR
13209
13210 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13211 f->output_data.x.
13212 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13213 terminal devices.
13214
5582fbc7 13215 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13216 x_output.
13217 (FRAME_FONT): Use output_data.tty.
13218 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13219 (struct x_display_info): Rename from display_info. Update all users in
13220 msdos.c.
aac0c6e3 13221 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13222 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13223 (dos_ttraw): Update prototype.
13224
13225 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13226 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13227
132282008-08-23 Jason Rumney <jasonr@gnu.org>
13229
13230 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13231 (fn_TIFFSetDirectory): New library function used.
13232 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13233 (tiff_load): Use :index to select among multiple images. Set count
13234 property when multiple images exist.
13235 (gif_format): Use :index, not :image.
13236
132372008-08-23 Chong Yidong <cyd@stupidchicken.com>
13238
13239 * xdisp.c (try_scrolling): Check INT_MAX instead of
13240 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13241 to obtain INT_MAX.
13242
132432008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13244
13245 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13246
132472008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13248
13249 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13250 GNUstep library location.
13251
132522008-08-21 Chong Yidong <cyd@stupidchicken.com>
13253
13254 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13255 before using it.
13256
13257 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13258
132592008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13260
13261 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13262 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13263 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13264 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13265 (EmacsApp-cursor_blink_handler): Remove declaration.
13266 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13267 match 01 Feb 2008 changes in xterm.c.
13268 (ns_read_socket): Add cast to avoid warning.
13269 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13270 GNUstep.
13271
132722008-08-20 Chong Yidong <cyd@stupidchicken.com>
13273
13274 * xselect.c (x_get_foreign_selection): Return nil if desired
13275 selection could not be obtained, instead of signalling an error.
13276
132772008-08-20 David Reitter <david.reitter@gmail.com>
13278
13279 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13280 * nsterm.m: Remove ns-specific code for cursor blinking.
13281 (ns_draw_window_cursor): Clear cursor properly rather than
13282 redrawing the area. Respect width of bar cursors.
13283 These changes enable the use of generic blink-cursor-mode and
13284 generic cursor types in NS and support smooth cursor movements (do
13285 not blink off after command).
13286 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13287 Nextstep, too.
13288
132892008-08-19 Kenichi Handa <handa@m17n.org>
13290
13291 * font.c (Vfont_log_deferred): New variable.
13292 (font_add_log): Check Vfont_log_deferred.
13293 (font_deferred_log): New function.
13294
13295 * font.h (font_deferred_log): Extern it.
13296
13297 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13298 for sorting.
13299 (face_for_char): Use deferred log.
13300
133012008-08-18 Kenichi Handa <handa@m17n.org>
13302
13303 * fontset.c (face_for_char): Add font log.
13304
13305 * font.c (font_add_log): Add the font properties :script, :lang,
13306 and :otf in the log.
13307
133082008-08-17 Chong Yidong <cyd@stupidchicken.com>
13309
13310 * xdisp.c: Remove dead code.
13311 (handle_invisible_prop, next_overlay_string): Defer call to
13312 setup_for_ellipsis.
13313 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13314
133152008-08-15 Chong Yidong <cyd@stupidchicken.com>
13316
13317 * xfaces.c (lookup_derived_face): Properly handle possible zero
13318 return value of get_lface_attributes.
13319 (merge_faces): Don't tell lookup_derived_face to signal an error
13320 if face is not found.
13321
13322 * dired.c (Fdirectory_files): Doc fix.
13323
13324 * process.c (make_process): Initialize kill_without_query struct
13325 member.
13326
133272008-08-15 Eli Zaretskii <eliz@gnu.org>
13328
13329 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13330 Alternative calculation of totphys for Visual Studio 6.
13331
13332 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13333
13334 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13335 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13336 All users changed.
13337 (stat): Only root directory passed to GetDriveType. Allow RAM
13338 disk as well as local fixed disk when w32-get-true-file-attributes
13339 is set to `local'.
13340 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13341 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13342 (w32_cached_id, w32_add_to_cache): New functions.
13343 (get_name_and_id): Look account names in the cache before calling
13344 lookup_account_sid.
13345 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13346 New initialization flags.
13347 (globals_of_w32): Initialize them to zero.
13348 (w32_system_process_attributes): Use w32_cached_id and
13349 w32_add_to_cache.
13350
133512008-08-14 Lawrence Mitchell <wence@gmx.li>
13352
13353 * lread.c (Fread_char, Fread_char_exclusive): If no character
13354 event is read before timeout is reached, return nil, rather than
13355 converting to a number.
13356
133572008-08-14 Chong Yidong <cyd@stupidchicken.com>
13358
13359 * fns.c (use_dialog_box): Doc fix.
13360
13361 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13362 on OS X.
13363
133642008-08-13 Chong Yidong <cyd@stupidchicken.com>
13365
13366 * frame.c (Qns_parse_geometry): New var.
13367 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13368
133692008-08-11 Chong Yidong <cyd@stupidchicken.com>
13370
13371 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13372 space character in calculating tabs.
13373
133742008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13375
13376 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13377
133782008-08-10 Glenn Morris <rgm@gnu.org>
13379
13380 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13381 silence gcc "limited range of data type" warnings in some
13382 make_fixnum_or_float calls.
13383
133842008-08-09 Eli Zaretskii <eliz@gnu.org>
13385
13386 * w32.c (w32_system_process_attributes): If the process does not
13387 exist, return nil.
13388
13389 * w32.c: Include thelp32.h, psapi.h and coding.h.
13390 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13391 declarations.
13392 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13393 (Process32Next_Proc): New typedefs.
13394 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13395 (g_b_init_process32_next, g_b_init_open_thread_token)
13396 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13397 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13398 (g_b_init_get_process_working_set_size)
13399 (g_b_init_global_memory_status_ex): New static variables.
13400 (globals_of_w32): Initialize them.
13401 (create_toolhelp32_snapshot, process32_first, process32_next)
13402 (open_thread_token, impersonate_self, revert_to_self)
13403 (get_process_memory_info, get_process_working_set_size)
13404 (global_memory_status, global_memory_status_ex): New wrapper
13405 functions.
13406 (w32_list_system_processes, w32_system_process_attributes)
13407 (enable_privilege, restore_privilege, ltime, process_times):
13408 New functions.
13409 (convert_time_raw): New function.
13410 (convert_time): Remove conversion of FILETIME into time in 100
13411 nsec units, call convert_time_raw instead.
13412
13413 * process.h (w32_list_system_processes, w32_system_process_attributes):
13414 Add prototypes.
13415 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13416 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13417 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13418 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13419
13420 * process.c (Fsystem_process_attributes): Doc fix.
13421
134222008-08-08 Chong Yidong <cyd@stupidchicken.com>
13423
13424 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13425 a continued multi-char glyph; if so, advance to the actual glyph.
13426
134272008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13428
13429 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13430
13431 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13432 (.m.o): Use it.
13433 * config.in: Regenerate.
13434
134352008-08-07 Chong Yidong <cyd@stupidchicken.com>
13436
13437 * xdisp.c (redisplay_window): Revert last change.
13438 (try_window): Check bottom scroll margin too.
13439
134402008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13441
13442 * config.in: Regenerate.
13443
13444 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13445 -list-load-path-shadows'.
13446 (nsgui.h): Reduce number of things depending on it.
13447
134482008-08-06 Chong Yidong <cyd@stupidchicken.com>
13449
13450 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13451 instead of window-end which does the wrong thing at eob.
13452 (try_cursor_movement): Minor optimization.
13453 (redisplay_window): If scroll margin is defined, don't assume
13454 window doesn't need scrolling.
13455
134562008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13457
13458 * config.in: Regenerate.
13459
13460 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13461 (mostlyclean): Don't delete *.d under NS.
13462
13463 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13464
134652008-08-06 Kenichi Handa <handa@m17n.org>
13466
13467 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13468
134692008-08-06 Andreas Schwab <schwab@suse.de>
13470
13471 * config.in: Regenerate.
13472
134732008-08-05 Chong Yidong <cyd@stupidchicken.com>
13474
13475 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13476 forcing a window start.
13477
13478 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13479 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13480
134812008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13482
13483 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13484 argument.
13485
134862008-08-05 Juanma Barranquero <lekktu@gmail.com>
13487
13488 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13489 <scroll-down-aggressively, before-change-functions>:
13490 <after-change-functions>: Reflow docstrings.
13491
134922008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13493 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13494
13495 Dock menu customization, based on a patch by Ken Raeburn, plus some
13496 other fixes.
13497 * nsmenu.m (dockMenu): New variable.
13498 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13499
13500 * nsterm.h (dockMenu): Declare.
13501
13502 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13503 (ns_term_init): Initialize dockMenu.
13504 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13505 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13506 left.
13507
13508 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13509
135102008-08-04 Chong Yidong <cyd@stupidchicken.com>
13511
13512 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13513
13514 * config.in: Regenerate.
13515
135162008-08-04 Seiji Zenitani <zenitani@mac.com>
13517
13518 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13519
135202008-08-04 Chong Yidong <cyd@stupidchicken.com>
13521
13522 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13523
135242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13525
13526 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13527
13528 * keyboard.h: Comment an #endif.
13529
13530 * lisp.h (have_menus_p): Adjust comment.
13531
13532 * menu.c (find_and_return_menu_selection): Fix comparison with
13533 client_data.
13534
13535 * nsmenu.m (popup_activated_flag): New variable.
13536 (popup_activated): New function.
13537 (menu-or-popup-active-p): New exported lisp definition.
13538 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13539 when popup done.
13540 (ns_popup_dialog): Set popup_activated_flag.
13541
13542 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13543 version for GNUstep (handled by conditional typedef in nsterm.m).
13544 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13545 in rgb.txt).
13546
13547 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13548
13549 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13550
13551 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13552
13553 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13554 shortcircuit if popup_activated like GTK and X toolkit.
13555
13556 * m/inter386.h: Change DARWIN to DARWIN_OS.
13557
13558 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13559 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13560 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13561 comment on NO_SOCK_SIGIO.
13562
135632008-08-03 Chong Yidong <cyd@stupidchicken.com>
13564
13565 * nsterm.m (windowDidResize): Remove stopModal call.
13566
135672008-08-03 Andreas Schwab <schwab@suse.de>
13568
13569 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13570 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13571
135722008-08-02 Chong Yidong <cyd@stupidchicken.com>
13573
13574 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13575 Don't use uninitialized pointer variable when using getrlimit.
13576
135772008-08-02 Jason Rumney <jasonr@gnu.org>
13578
13579 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13580
135812008-08-02 Eli Zaretskii <eliz@gnu.org>
13582
13583 * alloc.c (NSTATICS): Bump to 0x640.
13584
13585 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13586
13587 * lisp.h: Add prototype for directory_files_internal.
13588
13589 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13590 New functions.
13591 (syms_of_process): Defsubr them. Add initializations for various
13592 Q* symbols used in procfs_system_process_attributes.
13593 (procfs_list_system_processes, procfs_system_process_attributes)
13594 [HAVE_PROCFS]: New functions.
13595 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13596 (procfs_get_total_memory): New functions.
13597
135982008-08-01 Juanma Barranquero <lekktu@gmail.com>
13599
13600 * xfaces.c (Fx_load_color_file): Fix previous change;
13601 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13602
136032008-08-01 Michael Albinus <michael.albinus@gmx.de>
13604
13605 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13606
136072008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13608
13609 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13610
136112008-08-01 Chong Yidong <cyd@stupidchicken.com>
13612
13613 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13614
13615 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13616 define NSApplicationDelegateReplySuccess.
13617 (EmacsView -converstationIdentifier): Use long instead of
13618 NSInteger for GNUstep, since it doesn't have NSInteger.
13619
13620 * xmenu.c: Revert last change.
13621
13622 * keyboard.h: Fix last change.
13623
136242008-08-01 Juanma Barranquero <lekktu@gmail.com>
13625
13626 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13627 on Windows.
13628
136292008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13630
13631 Warning clearing and clean-up in NS port.
13632 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13633 Add prototypes.
13634 * nsgui.h (FACE_DEFAULT): Remove, unused.
13635 (XGCValues): Change colors to unsigned long.
13636 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13637 nsterm.m.
13638 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13639 (ns_list_fonts): Remove, unused.
13640 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13641 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13642 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13643 (nsfont_draw): Compare face colors to 0, not nil.
13644 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13645 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13646 (-addSubmenuWithTitle:): Use NSMenuItem class.
13647 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13648 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13649 (ns_clip_to_row): Make gc arg a BOOL.
13650 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13651 ns_clip_to_row() call.
13652 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13653 used). Cast FRAME_FONT assignments.
13654 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13655 (ns_string_to_lispmod): Change arg to const char.
13656 (ns_term_init): Use NSMenuItem class.
13657 (EmacsApp -openFile:): Move to different section of file.
13658 (EmacsApp -application:openFiles:): Don't return a value, call
13659 -replyToOpenOrPrint:.
13660 (EmacsView -keyDown:): Fix up cast.
13661 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13662 (EmacsView -menuDown:): Cast tag in call to
13663 find_and_call_menu_selection().
13664 (ns_list_fonts): Remove, unused.
13665 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13666 (ns_fontname_to_xlfd): Make static.
13667 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13668 Remove prototypes (now in keyboard.h).
13669 (next_menubar_widget_id): Remove, unused.
13670 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13671 Remove prototypes (now in keyboard.h).
13672 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13673
136742008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13675
13676 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13677 (floatfns.o): Depend on syssignal.h.
13678 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13679
13680 * systty.h: Fix previous change that removed BSD_TERMIOS.
13681 Add comments to #ifdefs.
13682
136832008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13684
13685 * w32fns.c (w32-load-color-file): Remove.
13686 (x-open-connection): Use renamed Fx_load_color_file.
13687 * xfaces.c (x-load-color-file): Add.
13688 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13689 Emacs.clr.
13690 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13691
136922008-07-31 Michael Albinus <michael.albinus@gmx.de>
13693
13694 * dbusbind.c (Fdbus_call_method_asynchronously)
13695 (Fdbus_method_error_internal): New defuns.
13696 (xd_read_message): Handle also reply messages.
13697 (Vdbus_registered_functions_table): Extend docstring.
13698
136992008-07-31 Juanma Barranquero <lekktu@gmail.com>
13700
13701 * keyboard.c (gobble_input): Fix previous change.
13702
137032008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13704
13705 * bitmaps/README:
13706 * xfns.c:
13707 * termcap.c:
13708 * term.c:
13709 * syswait.h:
13710 * systty.h:
13711 * systime.h:
13712 * syssignal.h:
13713 * sysdep.c:
13714 * process.h:
13715 * process.c:
13716 * print.c:
13717 * ndir.h:
13718 * lread.c:
13719 * keyboard.c:
13720 * getpagesize.h:
13721 * floatfns.c:
13722 * fileio.c:
13723 * emacs.c:
13724 * doc.c:
13725 * dispnew.c:
13726 * dired.c:
13727 * data.c:
13728 * callproc.c:
13729 * buffer.c:
13730 * README:
13731 * Makefile.in:
13732 * s/template.h:
13733 * s/msdos.h:
13734 * m/vax.h: Remove VMS support.
13735 * s/vms.h:
13736 * vlimit.h:
13737 * uaf.h:
13738 * temacs.opt:
13739 * param.h:
13740 * ioctl.h: Remove file.
13741
137422008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13743
13744 * s/ms-w32.h (MULTI_KBOARD): Remove.
13745 * xterm.c:
13746 * xselect.c:
13747 * xfns.c:
13748 * window.c:
13749 * w32term.c:
13750 * w32fns.c:
13751 * terminal.c:
13752 * termhooks.h:
13753 * term.c:
13754 * sysdep.c:
13755 * keyboard.h:
13756 * keyboard.c:
13757 * frame.h:
13758 * frame.c:
13759 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13760 * config.in: Regenerate.
13761
137622008-07-30 Jason Rumney <jasonr@gnu.org>
13763
13764 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13765
13766 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13767 (w32font_open_internal): Get unicode version of textmetrics.
13768 Don't enable or disable glyph indices here.
13769 (w32font_open): Disable use of glyph indices.
13770
13771 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13772
137732008-07-30 Chong Yidong <cyd@stupidchicken.com>
13774
13775 * minibuf.c (Vread_buffer_function): Doc fix.
13776
137772008-07-30 John Paul Wallington <jpw@pobox.com>
13778
13779 * minibuf.c (read_buffer_completion_ignore_case): New var.
13780 (Fread_buffer): Use it.
13781
137822008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13783
13784 * systty.h (sensemode): Remove empty #if. Remove reference to
13785 BSD_TERMIOS, unused.
13786
13787 * sysdep.c: Remove reference to DGUX.
13788 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13789
13790 * config.in: Regenerate.
13791
137922008-07-30 Jason Rumney <jasonr@gnu.org>
13793
13794 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13795
137962008-07-29 Jason Rumney <jasonr@gnu.org>
13797
13798 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13799 is populated.
13800 (uniscribe_encode_char): Always use uniscribe.
13801 Avoid using context if cache is populated.
13802
138032008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13804
13805 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13806 open menu.
13807
13808 * gtkutil.c (menu_nav_ended): Remove.
13809 (create_menus): Remove signal connect for menu_nav_ended.
13810
138112008-07-28 Chong Yidong <cyd@stupidchicken.com>
13812
13813 * xdisp.c (redisplay_window): Check return value of
13814 compute_window_start_on_continuation_line before forcing a window
13815 start.
13816
138172008-07-28 Jason Rumney <jasonr@gnu.org>
13818
13819 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13820
13821 * w32term.c (w32_enable_unicode_output, cleartype_active):
13822 Remove obsolete display options.
13823 (x_draw_glyph_string_background): Don't use old cleartype_active
13824 workaround.
13825 (w32_initialize): Remove cleartype_active initialization.
13826 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13827
138282008-07-28 Andreas Schwab <schwab@suse.de>
13829
13830 * lisp.h (init_weak_hash_tables, syms_of_font)
13831 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13832 (remove_hash_entry): Don't declare.
13833 * eval.c (maybe_call_debugger): Make static and move before use.
13834 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13835 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13836 * xterm.h (x_set_frame_alpha): Declare.
13837
138382008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13839
13840 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13841 (create_menus): Connect selection-done to menu_nav_ended.
13842
138432008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13844
13845 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13846 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13847 parameter with read of 'alpha' one.
13848 (Qns_frame_parameter): Remove.
5582fbc7 13849 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13850 (next-selection-coding-system, Vselection_coding_system)
13851 (Vnext_selection_coding_system): Drop.
13852
138532008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13854
13855 * nsfns.m (do-applescript, do_applescript): Rename to
13856 ns-do-applescript, ns_do_applescript, and move within file.
13857
138582008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13859
13860 Remove support for Mac Carbon.
13861 * mactoolbox.c:
13862 * macterm.h:
13863 * macterm.c:
13864 * macselect.c:
13865 * macmenu.c:
13866 * macgui.h:
13867 * macfns.c:
13868 * mac.c: Remove file.
13869 * s/darwin.h:
13870 * m/intel386.h:
13871 * xfaces.c:
13872 * xdisp.c:
13873 * window.c:
13874 * tparam.c:
13875 * termhooks.h:
13876 * termcap.c:
13877 * term.c:
13878 * syssignal.h:
13879 * sysselect.h:
13880 * sysdep.c:
13881 * process.c:
13882 * lread.c:
13883 * lisp.h:
13884 * keyboard.c:
13885 * image.c:
13886 * fringe.c:
13887 * frame.h:
13888 * frame.c:
13889 * fontset.c:
13890 * font.h:
13891 * font.c:
13892 * fns.c:
13893 * fileio.c:
13894 * emacs.c:
13895 * dispnew.c:
13896 * dispextern.h:
13897 * config.in:
13898 * atimer.c:
2ae37cf0 13899 * Makefile.in: Remove code for Carbon.
aac0c6e3 13900
f0131492 139012008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13902
13903 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13904
139052008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13906
13907 * macterm.h (kCGBitmapByteOrder32Host): New define for
13908 non-universal SDKs.
13909
13910 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13911 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13912
13913 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13914 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13915
139162008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13917
13918 * w32inevt.c: Include dispextern.h.
13919
139202008-07-26 Andreas Schwab <schwab@suse.de>
13921
13922 * print.c (print_object): Fix off-by-one in last change.
13923
139242008-07-25 Juanma Barranquero <lekktu@gmail.com>
13925
13926 * term.c (syms_of_term): Don't initialize default_orig_pair,
13927 default_set_foreground and default_set_background on Windows.
13928
139292008-07-25 Jason Rumney <jasonr@gnu.org>
13930
13931 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13932 ScriptItemize. Clean up return value checking. Remove unused
13933 variables.
13934 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13935 shaping engine.
13936
13937 * w32font.c (w32font_has_char): Handle the case where we can't
13938 determine the script for a character.
13939
139402008-07-25 Chong Yidong <cyd@stupidchicken.com>
13941
13942 * term.c (syms_of_term): Initialize default_orig_pair,
13943 default_set_foreground, and default_set_background.
13944
13945 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13946 clash (bug#86).
13947 (getloadavg): Callers changed.
13948
13949 * image.c (svg_load_image): Fix last change.
13950 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13951 image size is valid. Use g_object_unref instead of deprecated
13952 rsvg_handle_free to free rsvg handle.
13953 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13954
139552008-07-25 Jason Rumney <jasonr@gnu.org>
13956
13957 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13958 surrogates before looking up glyph index.
13959 (w32font_text_extents): Encode as surrogates if falling back to
13960 functions that need UTF-16 wide chars.
13961
13962 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13963 BMP as surrogates before looking up glyph index.
13964
139652008-07-25 Chong Yidong <cyd@stupidchicken.com>
13966
13967 * image.c (svg_load_image): Check for failure in return value of
13968 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13969
139702008-07-25 Jason Rumney <jasonr@gnu.org>
13971
13972 * w32font.c (Fx_select_font): Reverse sense of second arg.
13973
139742008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13975
13976 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13977 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13978
13979 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13980 (PURESIZE): Use it.
13981
139822008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13983
13984 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13985 * m/alpha.h (TEXT_END):
13986 * m/ibmrs6000.h (TEXT_END):
13987 * m/macppc.h (TEXT_END):
13988 * s/darwin.h (TEXT_END):
13989 * s/msdos.h (TEXT_END): Remove, unused.
13990 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13991 * s/cygwin.h: Remove comment.
13992
13993 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13994 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13995 * m/intel386.h (DOT_GLOBAL_START):
13996 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13997 (USG): Remove, file not used on USG platforms.
13998
13999 * Makefile.in (HAVE_X11): Remove empty #else.
14000
140012008-07-24 Andreas Schwab <schwab@suse.de>
14002
14003 * fileio.c (Finsert_file_contents): Properly adjust undo list
14004 after format conversion.
14005
140062008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14007
14008 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14009 (menu_nav_ended): Remove.
14010 (create_menus): Remove signal connect for menu_nav_ended.
14011 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14012 create_menus.
14013 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14014
140152008-07-23 Jason Rumney <jasonr@gnu.org>
14016
14017 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14018 with opened font.
14019 (w32font_open): Set font type to gdi.
14020
14021 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14022
140232008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14024
14025 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14026 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14027 defines it.
14028 * unexec.c (ADDR_CORRECT): Define unconditionally.
14029
14030 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14031
14032 * unexec.c: Remove code depending on !COFF and USG, the file is
14033 not used for such systems.
14034
14035 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14036 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14037 (LD_SWITCH_SYSTEM_1): Remove, update users.
14038
14039 * s/darwin.h (DATA_END):
14040 * m/intel386.h (DATA_END):
14041 * m/ibmrs6000.h (DATA_END):
14042 * m/alpha.h (DATA_END): Remove, unused.
14043
14044 * config.in: Regenerate.
14045 * s/ms-w32.h (subprocesses): Define unconditionally.
14046 * s/template.h (subprocesses): Update comment.
14047 * s/vms.h (subprocesses):
14048 * s/usg5-4.h (subprocesses):
14049 * s/hpux10-20.h (subprocesses):
14050 * s/gnu-linux.h (subprocesses):
14051 * s/cygwin.h (subprocesses):
14052 * s/bsd-common.h (subprocesses):
14053 * s/aix4-2.h (subprocesses):
14054 * s/darwin.h (subprocesses): Do not define, defined by default now.
14055
14056 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14057 Remove all references.
14058 (temacs): Add GNUstep specific ld flags.
14059
14060 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14061 similarly to what X does.
14062
140632008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14064
14065 * nsfns.m (x-list-fonts): Remove.
14066 (syms_of_nsfns): Drop the x-list-fonts declaration.
14067 * nsterm.m: Get rid of remaining "//" comments.
14068
140692008-07-22 Chong Yidong <cyd@stupidchicken.com>
14070
14071 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14072
14073 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14074 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14075 (Fns_own_selection_internal, Fx_disown_selection_internal)
14076 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14077
14078 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14079 ... */' style of docstrings. Doc fixes.
14080
140812008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14082
14083 * terminfo.c (UP, BC, PC): Undo previous change.
14084
14085 * nsfns.m: Rename ns prefixed functions/variables to the
14086 corresponding x versions. Update references.
14087
140882008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14089
14090 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14091
140922008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14093
14094 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14095 Remove forwarding functions.
14096 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14097 non-static.
14098 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14099 non-static.
14100 (ns_frame_parm_handlers): Use the new names.
14101 (syms_of_nsfns): Move to the end of file.
14102
14103 * nsterm.m (syms_of_nsterm): Move to the end of file.
14104
14105 * dispnew.c (init_display): Remove code for X10.
14106
141072008-07-22 Jason Rumney <jasonr@gnu.org>
14108
14109 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14110 bare drive.
14111
141122008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14113
14114 * nsterm.m (syms_of_nsterm): Remove debugging println.
14115
141162008-07-22 David Reitter <david.reitter@gmail.com>
14117
14118 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14119 Carbon implementation of the same functionality: execute arbitrary
14120 AppleScript code.
14121
141222008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14123
14124 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14125 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14126 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14127 (Fx_display_mm_height, Fx_display_mm_width)
14128 (Fx_display_backing_store, Fx_display_visual_class)
14129 (Fx_display_save_under, Fx_open_connection)
14130 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14131 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14132 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14133 (Fx_display_pixel_width, Fx_display_pixel_height)
14134 (Fx_display_usable_bounds, Fx_display_planes)
14135 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14136 ... */' style of docstrings.
14137
141382008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14139
14140 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14141 on this platform.
14142 (mips):
14143 * m/iris4d.h (mips): Do not define.
14144 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14145
14146 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14147
14148 * image.c:
14149 * nsfns.m:
14150 * nsselect.m:
14151 * nsterm.h:
14152 * nsterm.m: Rename ns prefixed functions/variables to the
14153 corresponding x versions. Update references.
14154
14155 * m/ibms390x.h (NO_REMAP): Do not undefine.
14156
14157 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14158
141592008-07-21 Chong Yidong <cyd@stupidchicken.com>
14160
14161 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14162 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14163 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14164 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14165 (Fns_display_mm_height, Fns_display_mm_width)
14166 (Fns_display_backing_store, Fns_display_visual_class)
14167 (Fns_display_save_under, Fns_open_connection)
14168 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14169 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14170 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14171 (Fns_display_pixel_width, Fns_display_pixel_height)
14172 (Fns_display_usable_bounds, Fx_display_planes)
14173 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14174
141752008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14176
14177 * print.c (print_object): Check print_depth before searching for
14178 circularities.
14179
141802008-07-21 Michael Albinus <michael.albinus@gmx.de>
14181
14182 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14183 only sprintf.
14184
141852008-07-21 Kenichi Handa <handa@m17n.org>
14186
14187 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14188
141892008-07-20 Andreas Schwab <schwab@suse.de>
14190
14191 * syntax.c (find_start_pos, find_start_value)
14192 (find_start_value_byte, find_start_begv, find_defun_start)
14193 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14194
141952008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14196
14197 * s/sol2-3.h: Insert contents of s/sol2.h.
14198 (LD_SWITCH_SYSTEM): Remove redundant definition.
14199 * s/sol2.h: Remove, unused.
14200
142012008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14202
14203 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14204
142052008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14206
14207 * Makefile.in (ns_appdir): Fix typo in find command.
14208
142092008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14210
14211 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14212
14213 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14214 added not supported anymore.
14215
14216 * s/usg5-4-2.h (LIBS_SYSTEM):
14217 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14218
14219 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14220 * s/lynxos.h (GETPGRP_NO_ARG):
14221 * s/hpux10-20.h (NO_SIOCTL_H):
14222 * s/gnu.h (GETPGRP_NO_ARG):
14223 * s/gnu-linux.h (NO_SIOCTL_H):
14224 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14225 * s/cygwin.h (GETPGRP_NO_ARG):
14226 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14227 (C_DEBUG_SWITCH): Remove duplicate definition.
14228
14229 * m/ibms390.h: Remove boilerplate comments.
14230
14231 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14232
14233 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14234 (wait_reading_process_output): Remove code for SunOS, platform not
14235 supported anymore. Use SOLARIS2 instead of sun.
14236
142372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14238
14239 * font.c (font_open_by_name): Under NS, default lface height to zero.
14240 (font_open_for_lface): Under NS, set size based on frame fontsize.
14241 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14242 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14243
142442008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14245
14246 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14247 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14248 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14249 YES/NO.
14250 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14251 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14252 * Makefile.in (clean): Clear out build destination dir.
14253
142542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14255
14256 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14257 xterm, xselect.
14258 * lisp.h: Remove declaration of hash_remove.
14259 * nsgui.h: Remove redefinitions of hash_remove.
14260 * fns.c (hash_remove): Rename to hash_remove_from_table.
14261
142622008-07-19 Seiji Zenitani <zenitani@mac.com>
14263
14264 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14265 strdup() the family UTF8String before modifying it.
14266
142672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14268
14269 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14270 NS_FACE_BACKGROUND with 0 instead of nil.
14271 * nsfont.m (nsfont_draw): Same.
14272
142732008-07-19 Chong Yidong <cyd@stupidchicken.com>
14274
14275 * nsfns.m (ns_set_background_color): Fix crash.
14276
142772008-07-18 Chong Yidong <cyd@stupidchicken.com>
14278
14279 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14280
142812008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14282
14283 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14284
142852008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14286
14287 * gtkutil.c: Include <config.h> instead of "config.h".
14288
14289 * lisp.h (Foverlay_buffer): Add EXFUN.
14290
14291 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14292 child process to complete child_setup. Undo 2005-09-21 change.
14293
14294 * s/darwin.h: Mention setsid after vfork.
14295
142962008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14297
14298 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14299 Depend on macgui.h.
14300
14301 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14302 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14303
14304 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14305 and f19.
14306 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14307
14308 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14309 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14310 Remove enumerators.
14311
14312 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14313 Check if FACE_FROM_ID returns NULL.
14314
143152008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14316
14317 * w32inevt.c (change_frame_size): Remove extern declaration.
14318 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14319 change_frame_size.
14320
143212008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14322
14323 * getloadavg.c: Revert last change (2008-07-15).
14324
143252008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14326
14327 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14328 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14329 from configure.
14330
143312008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14332
14333 * s/sol2.h:
14334 * s/sol2-4.h: Reorganize conditionals.
14335
14336 * ecrt0.c: Remove code depending on m68000, not used anymore.
14337
14338 * fns.c (hash_remove): Make static.
14339 * lisp.h (hash_remove): Don't prototype.
14340
14341 * m/ibmrs6000.h:
14342 * m/ibms390x.h:
14343 * m/macppc.h: Remove boilerplate comments.
14344
14345 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14346 Solaris, which does not need them.
14347
14348 * m/vax.h: Remove comments about unsupported systems.
14349
14350 * s/darwin.h: Reorganize ifdefs.
14351
143522008-07-17 Andreas Schwab <schwab@suse.de>
14353
14354 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14355
143562008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14357
14358 Use SDATA. Follow coding convention of placing operators at
14359 beginning of next line rather than end of previous line, and placing
14360 spaces around infix operators.
14361
14362 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14363 in case it was defined already.
14364 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14365 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14366 ns_default.
14367 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14368 Lisp_Objects.
14369 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14370 (ns_defined_color, ns_color_to_lisp): Declare.
14371 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14372 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14373 it's accepted even with USE_LISP_UNION_TYPE.
14374 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14375 (update_frame_tool_bar): Remove apparently obsolete tests for
14376 non-integerness of f->tool_bar_lines.
14377 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14378 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14379 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14380 (nsfont_open): Don't confuse NULL for Qnil.
14381 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14382 * menu.h (find_and_call_menu_selection):
14383 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14384 (find_and_return_menu_selection): Always return something.
14385 * frame.h: Include dispextern.h for Display_Info.
14386 (display_x_get_resource): Declare.
14387
143882008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14389
14390 * syntax.c: Remove stdio.h include accidentally introduced in
14391 Emacs.app commit.
14392 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14393 NS_IMPL_COCOA.
14394 * keyboard.c (handle_async_input, input_available_signal): Remove
14395 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14396
143972008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14398
14399 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14400 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14401 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14402 Use SDATA.
14403
14404 * keymap.c: Remove all NS-specific code.
14405 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14406 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14407 where_is_preferred_modifier, return a different value depending on how
14408 preferred is the binding.
14409 (where_is_internal): Adjust accordingly.
14410 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14411 Adjust to new preferred_sequence_p.
14412 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14413 * keyboard.c (parse_solitary_modifier): Not static any more.
14414 * keyboard.h (parse_solitary_modifier): Declare.
14415
144162008-07-16 Andreas Schwab <schwab@suse.de>
14417
14418 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14419 of easymenu.
14420
144212008-07-16 Chong Yidong <cyd@stupidchicken.com>
14422
14423 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14424 that we don't move off the line.
14425
144262008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14427
14428 * keyboard.c (Qsuper): Remove.
14429 (parse_menu_item): Don't call where_is_internal specially for NS.
14430
144312008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14432
14433 * s/gnu-linux.h: Remove boilerplate comments.
14434
14435 * m/alpha.h (__ELF__): Consolidate conditions.
14436
14437 * m/m68k.h (linux): Use GNU_LINUX instead.
14438 Remove boilerplate comments.
14439
14440 * m/intel386.h: Undo refactoring from previous change.
14441 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14442 too, remove dead code.
14443 (linux): Use GNU_LINUX instead.
14444
144452008-07-16 Jason Rumney <jasonr@gnu.org>
14446
14447 * w32gui.h: Repeat 26 June changes lost by last change.
14448
144492008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14450
14451 * systty.h: Remove code for Aix on 386, unsupported platform.
14452
14453 * s/ms-w32.h: Remove boilerplate comments.
14454 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14455
14456 * s/gnu-linux.h (TERM): Remove support.
14457 (HAVE_SYSVIPC): Remove, unused.
14458 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14459 for this system.
14460
14461 * process.c: Remove support for IRIS, unused.
14462 Remove support for TERM, not relevant anymore.
14463
14464 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14465 used with the definition.
14466
14467 * s/aix4-2.h (static): Do not undef.
14468
14469 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14470 only used on Aix.
14471 (HAVE_SYSVIPC): Remove, unused.
14472
14473 * m/hp800.h (CANNOT_DUMP): Do not undef.
14474
14475 * m/alpha.h: Fix comment.
14476
14477 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14478 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14479 used by this configuration.
14480 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14481 * unexec.c: Remove code depending on HPUX and
14482 USG_SHARED_LIBRARIES, not used with this file. Remove code
14483 depending on IRIS, unused. Remove if 0-ed code.
14484
14485 * s/template.h: Remove comments about static.
14486
14487 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14488 Remove if 0-ed code.
14489 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14490 were the same as the default.
14491 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14492 Remove boilerplate comments.
14493 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14494 (HAVE_SYSVIPC): Remove, unused.
14495 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14496
14497 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14498 Remove boilerplate comments.
14499 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14500 Remove boilerplate comments.
14501 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14502 Remove boilerplate comments.
14503 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14504
14505 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14506 USG systems which do not use DATA_SEG_BITS.
14507 Refactor code. Remove boilerplate comments.
14508
14509 * m/ibms390.h:
14510 * m/m68k.h:
14511 * s/bsd-common.h:
14512 * s/cygwin.h:
14513 * s/darwin.h:
14514 * s/freebsd.h:
14515 * s/gnu.h:
14516 * s/msdos.h: Remove boilerplate comments.
14517
14518 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14519 do not use this file.
aac0c6e3
MR
14520 (IRIS_4D): Remove, unused.
14521
14522 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14523 do not use this file.
aac0c6e3
MR
14524 (SIGN_EXTEND_CHAR):
14525 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14526 * unexmips.c: Remove file, unused.
14527
14528 * editfns.c (Fuser_full_name): Replace the only use of
14529 USER_FULL_NAME with its value.
14530 * config.in: Regenerate.
14531
145322008-07-16 David Reitter <david.reitter@gmail.com>
14533
14534 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14535 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14536
145372008-07-16 Glenn Morris <rgm@gnu.org>
14538
14539 * emacs.c (system-type): Doc fix.
14540
145412008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14542
14543 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14544 If the cache doesn't work, let's fix it, rather than work around it.
14545
145462008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14547
14548 * Makefile.in: Correct additions for nsfont.o in last commit.
14549 * nsfont.m: New file (forgot last commit).
14550
145512008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14552
14553 * callproc.c (set_initial_environment): Initialize
14554 Vprocess_environment under CANNOT_DUMP (fixes crash when
14555 batch-compiling for bootstrap).
14556
145572008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14558 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14559
c4cc8b9a
JB
14560 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14561 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14562
145632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14564
14565 Changes and additions for NeXTstep windowing system (Cocoa and
14566 GNUstep) support.
14567
14568 * Makefile.in:
14569 * config.in: Support defines and build commands for NS port.
14570 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14571 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14572 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14573 windowing.
14574 (struct face): Add synth_ital field.
14575 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14576 (init_display): Initialize Vinitial_window_system to "ns" when so
14577 compiled.
14578 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14579 (display_arg): Use under NS.
14580 (main): Under NS, allocate autorelease pool and handle command line
14581 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14582 (standard_args): Add NS-specific args.
14583 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14584 * font.c (DEFAULT_ENCODING): New variable.
14585 (font_find_for_lface): Use it.
14586 (syms_of_font): Load syms_of_nsfont under NS.
14587 * font.h: Declare nsfont_driver when compiled under NS.
14588 * fontset.c: When compiling under NS, include nsterm.h.
14589 (fontset_from_font): Autoconstruct fontset under NS.
14590 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14591 symbol, document and use it.
14592 (do_switch_frame): When for_deletion under Cocoa, add
14593 Fraise_frame(Qnil).
14594 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14595 (x_get_arg): Allow "yes" and "no" as boolean values.
14596 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14597 Qright under Cocoa.
14598 (focus-follows-mouse): Default to 0 under NS.
14599 * frame.h (enum output_method): Add output_ns.
14600 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14601 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14602 (FRAME_WINDOW_P): NS-specific definition.
14603 * fringe.c (max_used_fringe_bitmap): Make public.
14604 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14605 (getloadavg): Use NeXT code under descendant OS's.
14606 * image.c (includes and header section, x_create_bitmap_from_data)
14607 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14608 (image_background_transparent, x_clear_image_1)
14609 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14610 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14611 (x_to_xcolors, x_from_xcolors, x_disable_image)
14612 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14613 other GUIs, including XPM support using code originally written for
14614 Carbon GUI.
14615 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14616 using NS API.
14617 (image_ascent): Use font metrics macros instead of direct struct field
14618 access.
14619 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14620 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14621 Also, handle NS as GTK for menu bar purposes.
14622 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14623 toolkit where they differ.
14624 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14625 use cachelist, still needed under NS.
14626 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14627 (struct widget_value): Define it here for menu.c.
14628 * keymap.c (includes): Include modifier internals.
14629 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14630 NS.
14631 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14632 support for preferring sequences using certain modifiers, specified by
14633 the FIRSTONLY argument.
14634 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14635 under NS GNUstep implementation.
14636 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14637 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14638 * menu.c: Include nsterm.h under NS.
14639 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14640 (free_menubar_widget_tree_value, update_submenu_strings)
14641 (find_and_call_menu_selection): Treat NS as X and NT.
14642 (find_and_return_menu_selection): New function, used for popup menus.
14643 * nsgui.h:
14644 * nsterm.h:
14645 * nsfns.m:
14646 * nsimage.m:
14647 * nsmenu.m:
14648 * nsselect.m:
14649 * nsterm.m: New files.
14650 * process.c (wait_reading_process_output): Under NS, call ns_select()
14651 instead of plain select().
14652 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14653 beginning of buffer.
14654 * sysselect.h (init_process): Rename when compiling under Cocoa to
14655 avoid name conflict.
14656 * termhooks.h (display_info): Add ns_display_info to union.
14657 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14658 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14659 COCOA environment.
14660 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14661 unexec() signature. (Note, this will dump, but the resulting file
14662 crashes; unexosx is used instead; keeping around for reference and
14663 possible aid in getting dump working under GNUstep.)
14664 * w32gui.h (button_type, widget_value): Remove definitions (now in
14665 keyboard.h).
14666 * window.c: Include nsterm.h when compiling under NS.
14667 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14668 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14669 other GUI windowing systems.
14670 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14671 GTK.
14672 (x_consider_frame_title): Under NS, set icon type and frame
14673 modified-state indicator; use ns_set_name_as_filename() when using
14674 formatted title.
14675 (update_window_cursor): Make public when compiling under NS.
14676 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14677 (hourglass_atimer, Vhourglass_delay
14678 * xfaces.c (header section, init_frame_faces, clear_font_table)
14679 (defined_color, unload_color, x_face_list_fonts)
14680 (prepare_face_for_display): Add NS support parallel to other GUIs.
14681 Emulate GCs like other non-X GUIs.
14682 (split_font_name): Don't lowercase font name under NS.
14683 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14684 under NS.
14685 * s/darwin.h: Add support for compilation under NS.
14686
146872008-07-15 Jason Rumney <jasonr@gnu.org>
14688
14689 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14690 (w32_show_hourglass): Rename from show_hourglass.
14691 (w32_hide_hourglass): Rename from hide_hourglass.
14692 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14693 (Vhourglass_delay): Declare extern.
14694 (hourglass_started): Remove.
14695
14696 * xdisp.c (Vhourglass_delay): Remove static.
14697 (hourglass_started, start_hourglass, cancel_hourglass):
14698 Don't include these versions on WINDOWSNT.
14699
147002008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14701
14702 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14703 variables (formerly in xfns.c).
14704 (show_hourglass, hide_hourglass): New prototypes (same).
14705 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14706 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14707 in xfns.c).
14708 (syms_of_xdisp): Declare/initialize display-hourglass,
14709 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14710 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14711 formerly in xfns.c.
14712 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14713 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14714 (start_hourglass, cancel_hourglass): Remove.
14715 (show_hourglass, hide_hourglass): Remove prototypes and static
14716 modifiers.
14717 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14718 hourglass_atimer, hourglass_shown_p declaration/initialization.
14719 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14720 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14721 (start_hourglass, cancel_hourglass): Remove.
14722 (show_hourglass, hide_hourglass): Remove prototypes and static
14723 modifiers.
14724 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14725 hourglass_atimer, hourglass_shown_p declaration/initialization.
14726 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14727 (DEFAULT_HOURGLASS_DELAY): Remove.
14728 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14729 hourglass_shown_p declaration/initialization.
14730
147312008-07-14 Jason Rumney <jasonr@gnu.org>
14732
14733 * w32fns.c (w32_get_arg): Remove wrapper function.
14734 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14735 directly.
14736 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14737
147382008-07-14 Kenichi Handa <handa@m17n.org>
14739
14740 * xfont.c (xfont_open): Add workaround for X's bug.
14741
147422008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14743
14744 * fontset.c: Include <stdio.h> unconditionally.
14745
147462008-07-13 Michael Albinus <michael.albinus@gmx.de>
14747
14748 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14749 for filtering.
14750
147512008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14752
14753 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14754
14755 * m/macppc.h:
14756 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14757
c4cc8b9a 14758 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14759 (SPECIAL_EMACS_INT):
14760 * m/ia64.h (SPECIAL_EMACS_INT):
14761 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14762 * s/gnu.h (NLIST_STRUCT):
14763 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14764 * s/gnu-linux.h (LINUX):
14765 * s/msdos.h (HAVE_FACES):
14766 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14767
14768 * systty.h:
14769 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14770 anymore.
14771
147722008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14773
14774 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14775 always defined as int.
14776
14777 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14778 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14779 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14780 * s/freebsd.h (HAVE_WAIT_HEADER):
14781 * s/bsd-common.h (HAVE_UNION_WAIT):
14782 * s/aix4-2.h (HAVE_WAIT_HEADER):
14783 * m/mips.h (HAVE_UNION_WAIT):
14784 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14785 (COFF, static): Do not define, they are undefined later in the file.
14786
14787 * process.c (update_status): Don't use a union.
14788 (status_convert):
14789 (sigchld_handler): Use int instead of WAITTYPE.
14790
147912008-07-12 Chong Yidong <cyd@stupidchicken.com>
14792
14793 * indent.c (Fvertical_motion): Restore hscroll before moving to
14794 goal column.
14795
147962008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14797
14798 * lisp.h: Remove left over code.
14799
148002008-07-11 Andreas Schwab <schwab@suse.de>
14801
14802 * lisp.h: Fix logic in last change.
14803
14804 * menu.h: New file.
14805 * menu.c: Include it.
14806 * xmenu.c: Likewise.
14807 * Makefile.in: Update dependencies.
14808
148092008-07-11 Kenichi Handa <handa@m17n.org>
14810
14811 * fontset.c (fontset_from_font): Cancel the previous change.
14812
148132008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14814
14815 * lisp.h:
14816 * w32heap.c:
14817 * emacs.c:
14818 * alloc.c: Replace all references of NO_UNION_TYPE with
14819 USE_LISP_UNION_TYPE.
14820
14821 * m/xtensa.h (NO_UNION_TYPE):
14822 * m/vax.h (NO_UNION_TYPE):
14823 * m/template.h (NO_UNION_TYPE):
14824 * m/sparc.h (NO_UNION_TYPE):
14825 * m/mips.h (NO_UNION_TYPE):
14826 * m/macppc.h (NO_UNION_TYPE):
14827 * m/m68k.h (NO_UNION_TYPE):
14828 * m/iris4d.h (NO_UNION_TYPE):
14829 * m/intel386.h (NO_UNION_TYPE):
14830 * m/ibms390x.h (NO_UNION_TYPE):
14831 * m/ibms390.h (NO_UNION_TYPE):
14832 * m/ibmrs6000.h (NO_UNION_TYPE):
14833 * m/ia64.h (NO_UNION_TYPE):
14834 * m/hp800.h (NO_UNION_TYPE):
14835 * m/arm.h (NO_UNION_TYPE):
14836 * m/amdx86-64.h (NO_UNION_TYPE):
14837 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14838 defining it the same.
14839
148402008-07-10 Chong Yidong <cyd@stupidchicken.com>
14841
14842 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14843
148442008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14845
14846 * fileio.c:
50426a04 14847 * sysdep.c:
aac0c6e3
MR
14848 * systty.h:
14849 * m/ibmrs6000.h:
14850 * m/iris4d.h:
14851 * s/aix4-2.h:
14852 * s/freebsd.h:
14853 * s/gnu-linux.h:
14854 * s/hpux10-20.h:
14855 * s/hpux11.h:
14856 * s/netbsd.h:
14857 * s/sol2-3.h:
14858 * s/sol2-4.h:
14859 * s/sol2.h:
14860 * s/usg5-4.h:
14861 * s/vms.h: Remove references to unused variables.
14862
148632008-07-10 Andreas Schwab <schwab@suse.de>
14864
14865 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14866 pattern before matching the generic family.
14867
148682008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14869
14870 * unexec.c:
14871 * s/vms.h:
14872 * s/usg5-4-2.h:
14873 * s/sol2-5.h:
14874 * s/freebsd.h:
14875 * s/darwin.h: Remove dead code.
14876
14877 * m/template.h:
14878 * m/sparc.h:
14879 * m/mips.h:
14880 * m/m68k.h:
14881 * m/iris4d.h:
14882 * m/intel386.h:
14883 * m/ibms390x.h:
14884 * m/ibms390.h:
14885 * m/ia64.h:
14886 * m/hp800.h:
14887 * m/arm.h:
14888 * m/amdx86-64.h: Remove dead code and references to unused
14889 and compiler defined symbols.
14890
14891 * unexmips.c:
14892 * unexelf.c: Remove references to desupported systems.
14893
14894 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14895
14896 * m/powermac.h: Remove boilerplate comments.
14897 (NO_REMAP): Remove unused definition.
14898
14899 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14900 define them.
14901
149022008-07-10 Kenichi Handa <handa@m17n.org>
14903
14904 * xfont.c (xfont_open): Log the reason of failure.
14905
149062008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14907
14908 * fontset.c (fontset_get_font_group):
14909 * font.c (font_check_otf): Specify argument types.
14910
149112008-07-09 Kenichi Handa <handa@m17n.org>
14912
14913 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14914 non-ASCII char is found.
14915
14916 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14917 (reorder_font_vector): Change the arg preferred_family to font.
14918 Prefer the spec matching with font.
14919 (fontset_get_font_group): New function.
14920 (fontset_find_font): Change the format of an element of a realized
14921 fontset. Use fontset_get_font_group.
14922 (fontset_font): Try the current fontset, the default fontset, the
14923 fallbacks of the current fontset, and the fallbacks of the default
14924 fontset in this order.
14925 (face_for_char): Delete the shortcut to use the current font.
14926 (fontset_from_font): Don't set fonts for Latin in the fontset.
14927
14928 * font.h (font_make_object, font_match_p): Adjust prototypes.
14929
14930 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14931
14932 * font.c (font_make_object): New arg entity and pixelsize.
14933 (font_check_otf_features, font_check_otf): New functions.
14934 (font_match_p): Check :lang, :script, and :otf properties.
14935
14936 * xfont.c (xfont_open): Adjust it for the change of
14937 font_make_object.
14938 (xfont_text_extents): Fix initial setting of metrics.
14939
14940 * ftfont.c (struct ftfont_info): New member index, delete member
14941 fc_charset_idx. Make the member order compatible with struct
14942 xftfont_info.
14943 (fc_charset_table): Change charset names to registry names.
14944 (ftfont_pattern_entity): Delete the args registry and
14945 fc_charset_idx. Change the value of :font-entity property
14946 to (FONTNAME . INDEX). Always set :registry property to
14947 `iso10646-1'.
14948 (struct ftfont_cache_data): New struct.
14949 (ftfont_lookup_cache): New arg for_face.
14950 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14951 (ftfont_driver): Set the member otf_capability.
14952 (ftfont_get_charset): Adjust it for the change of
14953 fc_charset_table.
14954 (OTF_TAG_SYM): New macro.
14955 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14956 for the change of fc_charset_table.
14957 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14958 ftfont_pattern_entity. Add FC_INDEX to objset.
14959 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14960 and ftfont_pattern_entity.
14961 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14962 font_make_object, struct ftfont_info.
14963 (ftfont_has_char): Use ftfont_get_fc_charset.
14964 (ftfont_otf_features, ftfont_otf_capability): New functions.
14965 (ftfont_shape): Use ftfont_get_otf.
14966 (ftfont_text_extents): Fix initial setting of metrics.
14967
14968 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14969 member order compatible with struct ftfont_info.
14970 (xftfont_open): Add FC_CHARSET to the pattern. Set
14971 xftfont_info->ft_size. Don't unlock the face. Check BDF
14972 properties if appropriate.
14973 (xftfont_close): Unlock the face.
14974 (xftfont_anchor_point, xftfont_shape): Deleted.
14975 (syms_of_xftfont): Don't set members anchor_point and shape of
14976 xftfont_driver.
14977
14978 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14979 font_make_object.
14980
14981 * w32font.c (w32font_open): Adjust it for the change of
14982 font_make_object.
14983 (w32font_open_internal): Don't set properties of font_object here.
14984
149852008-07-08 Chong Yidong <cyd@stupidchicken.com>
14986
14987 * macfns.c (x_create_tip_frame):
14988 * w32fns.c (x_create_tip_frame):
14989 * xfns.c (x_create_tip_frame): Pass parameter argument to
14990 face-set-after-frame-default.
14991
14992 * xfaces.c (Finternal_merge_in_global_face): Save merged
14993 attributes for the default face back into the face vector.
14994
149952008-07-08 Andreas Schwab <schwab@suse.de>
14996
14997 * fontset.h: Declare fontset_from_font. Don't declare
14998 new_fontset_from_font and fontset_from_font_name.
14999 * xterm.c: Include "fontset.h".
15000 * Makefile.in (xterm.o): Update dependencies.
15001
150022008-07-08 Glenn Morris <rgm@gnu.org>
15003
15004 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15005 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15006
150072008-07-07 Chong Yidong <cyd@stupidchicken.com>
15008
15009 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15010 (x_set_frame_parameters): Don't bind it.
15011
150122008-07-07 Juanma Barranquero <lekktu@gmail.com>
15013
15014 * w32fns.c (map_w32_filename): Declare extern.
15015
150162008-07-07 Jason Rumney <jasonr@gnu.org>
15017
15018 * w32term.c (WS_EX_LAYERED): Define if not already.
15019
150202008-07-06 Chong Yidong <cyd@stupidchicken.com>
15021
15022 * xfaces.c (set_font_frame_param): Don't try to set the font
15023 parameter if it is still unspecified in the lface.
15024
150252008-07-05 Chong Yidong <cyd@stupidchicken.com>
15026
15027 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15028 face if it didn't already exist.
15029
15030 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15031
150322008-07-05 Andreas Schwab <schwab@suse.de>
15033
15034 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15035
150362008-07-05 Chong Yidong <cyd@stupidchicken.com>
15037
15038 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15039 word-wrapping.
15040 (IT_DISPLAYING_WHITESPACE): New macro.
15041 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15042 when word-wrapping. Simplify word-wrapping logic. Use correct
15043 pixel positions when saving copies of the iterator.
15044 (display_line): Use proper wrap point if the last character on a
15045 line was preceded by whitespace.
15046
150472008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15048
15049 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15050
150512008-07-04 Kenichi Handa <handa@m17n.org>
15052
15053 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15054
15055 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15056
150572008-07-02 Jason Rumney <jasonr@gnu.org>
15058
15059 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 15060 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
15061
15062 * xdisp.c (next_element_from_display_vector): Move assignment out
15063 of if statement.
15064
150652008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15066
15067 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15068
15069 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15070 (syms_of_fileio): Initialize and export them.
15071 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15072
15073 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15074 (Fsystem_move_file_to_trash): New function.
15075 (syms_of_w32fns): Export it to lisp.
15076
150772008-07-01 Jason Rumney <jasonr@gnu.org>
15078
15079 * w32font.c (w32font_text_extents): Don't count overhang as part
15080 of width.
15081
150822008-06-30 Miles Bader <miles@gnu.org>
15083
15084 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15085 Add `avoid_cursor_p' field.
15086
15087 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15088 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15089 (append_glyph, append_composite_glyph, produce_image_glyph)
15090 (append_stretch_glyph): Initialize avoid_cursor_p.
15091 (get_it_property): Rename from `get_line_height_property'.
15092 (x_produce_glyphs): Use get_it_property.
15093 (handle_line_prefix, push_display_prop): New functions.
15094 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15095 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15096 New variables.
15097 (syms_of_xdisp): Initialize them.
15098
150992008-06-30 Kenichi Handa <handa@m17n.org>
15100
15101 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15102 XftDefaultSubstitute (they are called in XftFontMatch).
15103 (xftfont_open): Fix args to ftfont_font_format.
15104
15105 * ftfont.c (fc_charset_table): New member lang.
15106 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 15107 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
15108 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15109 (ftfont_open): Fix args to ftfont_font_format.
15110 (ftfont_font_format): New arg filename.
15111
151122008-06-30 Chong Yidong <cyd@stupidchicken.com>
15113
15114 * xfaces.c (Finternal_merge_in_global_face): If default face was
15115 modified, realize it again. Update the font face attribute.
15116
151172008-06-29 Jason Rumney <jasonr@gnu.org>
15118
15119 * w32term.c (x_set_frame_alpha): Fix logic.
15120
151212008-06-29 Kenichi Handa <handa@m17n.org>
15122
15123 * fontset.c (Finternal_char_font): Return font-object instead of
15124 font-name.
15125
15126 * composite.c (get_composition_id): Fix the width calculation for TAB.
15127
151282008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15129
15130 * indent.c (Fvertical_motion): Properly handle float column arg.
15131
151322008-06-28 Jason Rumney <jasonr@gnu.org>
15133
15134 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15135 (pfnSetLayeredWindowAttributes): New function pointer.
15136 (w32_initialize): Initialize it when supported.
15137 (x_set_frame_alpha): New function.
15138
15139 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15140 (w32_frame_parm_handlers): Set alpha handler.
15141
15142 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15143
151442008-06-27 Jason Rumney <jasonr@gnu.org>
15145
15146 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15147 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15148 (w32_to_x_charset, x_to_w32_charset)
15149 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15150 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15151 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15152 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15153 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15154 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15155 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15156 (Qw32_charset_unicode): Remove.
15157 (syms_of_w32fns): Update for above changes.
15158
15159 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15160 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15161 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15162 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15163 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15164 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15165 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15166 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15167 (syms_of_w32font): Update for above changes.
15168
151692008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15170
15171 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15172 removed #if.
15173 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15174
151752008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15176 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15177
15178 * makefile.w32-in (LOCAL_FLAGS):
15179 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15180
15181 * sysdep.c (_spawnlp, _getpid):
15182 Declare with explicit _cdecl instead of _CRTAPI1.
15183
15184 * editfns.c (Fget_internal_run_time):
15185 Check for WINDOWSNT with #ifdef, not #if.
15186
151872008-06-26 Jason Rumney <jasonr@gnu.org>
15188
15189 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15190
15191 * w32term.c (x_draw_glyph_string_foreground)
15192 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15193 Use FONT_HANDLE macro.
15194 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15195
15196 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15197 (uniscribe_encode_char): Use FONT_HANDLE macro.
15198
15199 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15200 (w32font_text_extents): Use precast w32_font.
15201 (w32font_close): Free cached metrics.
15202 (w32font_open_internal): Allocate space for name on stack.
15203
152042008-06-26 Chong Yidong <cyd@stupidchicken.com>
15205
15206 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15207
152082008-06-26 Jason Rumney <jasonr@gnu.org>
15209
15210 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15211 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15212
152132008-06-26 Juanma Barranquero <lekktu@gmail.com>
15214
15215 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15216
152172008-06-26 Jason Rumney <jasonr@gnu.org>
15218
15219 * w32bdf.c, w32bdf.h: Remove obsolete files.
15220
15221 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15222
15223 * w32gui.h: Don't include w32bdf.h.
15224 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15225 Remove obsolete font support.
15226
15227 * w32font.h (struct w32font_info): Remove compat_w32_font.
15228 Add hfont member.
15229 (FONT_COMPAT): Remove obsolete macro.
15230
15231 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15232 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15233 (w32font_open_internal): Remove compat code. Set new hfont member.
15234 (Fx_select_font): Use new hfont member.
15235
15236 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15237 (uniscribe_encode_char): Use new hfont member.
15238
15239 * w32term.c (x_draw_glyph_string_foreground)
15240 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15241 (x_draw_glyph_string): Use metrics in w32font_info.
15242
152432008-06-26 Kenichi Handa <handa@m17n.org>
15244
15245 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15246
152472008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15248
15249 * unexnext.c:
15250 * m/ews4800.h:
15251 * m/hp9000s300.h:
15252 * m/ibm370aix.h:
15253 * m/mips-siemens.h:
15254 * m/ncr386.h:
15255 * m/next.h:
15256 * m/pmax.h:
15257 * m/powerpcle.h:
15258 * m/tandem-s2.h:
15259 * s/386bsd.h:
15260 * s/bsd386.h:
15261 * s/bsd4-1.h:
15262 * s/bsd4-2.h:
15263 * s/bsdos2-1.h:
15264 * s/bsdos2.h:
15265 * s/bsdos3.h:
15266 * s/bsdos4.h:
15267 * s/nextstep.h:
15268 * s/ultrix4-3.h:
15269 * s/usg5-0.h:
15270 * s/usg5-2-2.h:
15271 * s/usg5-2.h:
15272 * s/usg5-4-3.h:
15273 * s/ux4800.h:
15274 * s/uxpds.h:
15275 * s/uxpv.h: Remove support for obsolete systems.
15276 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15277 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15278 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15279 Remove, insert contents in s/aix4-2.h.
15280 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15281 * s/bsd4-3.h: Rename to ...
15282 * s/bsd-common.h: ... this.
15283 * data.c:
15284 * doc.c:
15285 * ecrt0.c:
15286 * emacs.c:
15287 * fileio.c:
15288 * floatfns.c:
15289 * keyboard.c:
15290 * mem-limits.h:
15291 * print.c:
15292 * process.c:
15293 * sysdep.c:
15294 * syssignal.h:
15295 * systty.h:
15296 * syswait.h:
15297 * term.c:
15298 * unexec.c:
15299 * unexelf.c:
15300 * unexhp9k800.c:
15301 * m/hp800.h:
15302 * m/ibmrs6000.h:
15303 * m/mips.h:
15304 * m/vax.h:
15305 * s/darwin.h:
15306 * s/freebsd.h:
15307 * s/gnu.h:
15308 * s/ms-w32.h:
15309 * s/msdos.h:
15310 * s/netbsd.h:
15311 * s/template.h: Remove references to obsolete variables.
15312
15313 * Makefile.in: Add dependencies for all unexec files.
15314 (admindir): Remove unused variable.
15315 (UNEXEC_SRC): Remove references.
15316
153172008-06-25 Chong Yidong <cyd@stupidchicken.com>
15318
15319 * xfns.c (x_default_font_parameter): If Xft is available, first
15320 try Monospace-12 for the default font.
15321
153222008-06-25 Jason Rumney <jasonr@gnu.org>
15323
15324 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15325
153262008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15327
15328 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15329
15330 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15331
153322008-06-25 Juanma Barranquero <lekktu@gmail.com>
15333
15334 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15335 <scroll-conservatively>: Fix typo in docstring.
15336
15337 * xselect.c (Fx_send_client_event): Doc fix.
15338
153392008-06-25 Kenichi Handa <handa@m17n.org>
15340
15341 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15342
15343 * font.c (font_parse_fcname): Remove unused variables.
15344 (font_sort_entites): Delete the arg SPEC. Caller changed.
15345 Fix for the case of ! best_only.
15346 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15347
15348 * lisp.h (Fstring_to_unibyte): EXFUN it.
15349
15350 * character.h (str_to_unibyte): Extern it.
15351
15352 * character.c (str_to_unibyte): New function.
15353
15354 * fns.c (Fstring_to_unibyte): New function.
15355 (syms_of_fns): Defsubr it.
15356
153572008-06-24 Kenichi Handa <handa@m17n.org>
15358
15359 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15360 DPI too.
15361 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15362
153632008-06-24 Andreas Schwab <schwab@suse.de>
15364
15365 * Makefile.in (${lispsource}loaddefs.el): Rename from
15366 ../lisp/loaddefs.el.
15367 (bootstrap-clean): Do what distclean does but don't remove
15368 Makefile.
15369 (distclean): Depend on bootstrap-clean and remove Makefile.
15370
153712008-06-24 Chong Yidong <cyd@stupidchicken.com>
15372
15373 * buffer.h (struct buffer): New member word_wrap.
15374
15375 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15376 word-wrap.
15377 (init_buffer_once): Initialize them.
15378
15379 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15380 line_wrap enum possessing three possible values.
15381
15382 * termopts.h: Replace truncate_partial_width_windows with
15383 Vtruncate_partial_width_windows.
15384
15385 * dispnew.c (direct_output_for_insert): Avoid direct output when
15386 inserting a space with word wrap on.
15387
15388 * indent.c (compute_motion): Obey integer values of
15389 truncate-partial-width-windows.
15390
15391 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15392 replacing truncate_partial_width_windows.
15393 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15394 truncate only if the window width is below that integer.
15395 (start_display, resize_mini_window, produce_stretch_glyph)
15396 (display_string, move_it_in_display_line_to): Use line_wrap.
15397 (back_to_previous_visible_line_start, reseat_1): Reset
15398 string_from_display_prop_p.
15399 (display_line): Extend default face to end of line when wrapping.
15400
154012008-06-24 Kim F. Storm <storm@cua.dk>
15402
15403 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15404 to wrap continued lines at word boundaries.
15405
154062008-06-24 Jason Rumney <jasonr@gnu.org>
15407
15408 * font.c (Ffont_face_attributes): Multiply pixel size before point
15409 conversion to avoid multiplying rounding error.
15410
154112008-06-23 Jason Rumney <jasonr@gnu.org>
15412
15413 * w32term.c (x_draw_glyph_string_background)
15414 (x_draw_glyph_string): Remove old bdf font code.
15415
15416 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15417
154182008-06-22 Kenichi Handa <handa@m17n.org>
15419
15420 * font.c (font_find_for_lface): Try the adstyle specified in
15421 the property of LFACE_FONT of LFACE (if any).
15422
154232008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15424 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15425
15426 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15427
154282008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15429
15430 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15431 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15432 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15433 (witness-emacs): Remove.
15434 (lisp, shortlisp): Move loaddefs.el earlier.
15435 (mostlyclean): Forget about witness-emacs.
15436
154372008-06-22 Glenn Morris <rgm@gnu.org>
15438
15439 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15440 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15441
154422008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15443
15444 * Makefile.in (PRECOMP): Remove.
15445 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15446 (witness-emacs): Run `compile-first'.
15447 (.el.elc): Use the new compile-onefile target.
15448
154492008-06-21 Kenichi Handa <handa@m17n.org>
15450
15451 * xftfont.c (xftfont_open): Handle QCembolden only when
15452 FC_EMBOLDEN is defined.
15453
154542008-06-21 Andreas Schwab <schwab@suse.de>
15455
15456 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15457 (.el.elc): Likewise.
15458
154592008-06-21 Miles Bader <miles@gnu.org>
15460
15461 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15462 build dir, not the lisp source dir.
15463
154642008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15465
15466 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15467 (bootstrapclean): Remove.
15468 (.el.elc): New rule.
15469 (PRECOMP): New var.
15470 (../lisp/subdirs.el): Remove.
15471 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15472 (witness-emacs): New target.
15473 (mostlyclean): Remove witness-emacs as well.
15474 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15475 Add witness-emacs dependency.
15476
154772008-06-20 Chong Yidong <cyd@stupidchicken.com>
15478
15479 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15480 defined by the font.
15481
154822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15483
15484 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15485 (bootstrap-clean): New target that keeps TAGS around.
15486 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15487 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15488
154892008-06-20 Jason Rumney <jasonr@gnu.org>
15490
15491 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15492 Remove obsolete font code.
15493
15494 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15495 to determine language support.
15496
154972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15498
15499 * sysdep.c (cfsetspeed): New fun extracted from the code.
15500 (cfmakeraw): Move before first use.
15501
155022008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15503
15504 * sysdep.c (cfmakeraw): Provide fallback implementation.
15505 (serial_configure): Provide fallback implementation of cfsetspeed.
15506
155072008-06-20 Kenichi Handa <handa@m17n.org>
15508
15509 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15510 the pattern.
15511
15512 * fontset.c (fontset_from_font): Copy font_spec before changing
15513 the elements.
15514
15515 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15516
155172008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15518
15519 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15520 for explicit `font' parameters.
15521
15522 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15523
155242008-06-19 Kenichi Handa <handa@m17n.org>
15525
15526 * frame.c: Include <ctype.h>.
15527 (x_set_font_backend): Allow spacing characters in the X resource
15528 for FontBackend.
15529
155302008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15531
15532 * w32fns.c, xfns.c (Qfont_param): New var.
15533 (syms_of_w32fns): Initialize it.
15534 (x_default_font_parameter): Record explicit `font' into
15535 `font-parameter'.
15536
155372008-06-18 Kenichi Handa <handa@m17n.org>
15538
15539 * font.c (font_parse_xlfd): Fix previous change.
15540 (font_parse_fcname): Don't use :fc-unknown-spec.
15541 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15542 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15543 (font_add_log): Prepend the driver name to the resulting fonts.
15544
15545 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15546 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15547 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15548
15549 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15550 (QCembolden): New variables.
15551 (syms_of_xftfont): DEFSYM them.
15552 (xftfont_open): Call XftFontMatch. Don't trust the result of
15553 XftTextExtents8 if the pixel_size is less than 5.
15554
155552008-06-18 Andreas Schwab <schwab@suse.de>
15556
15557 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15558 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15559
155602008-06-18 Jason Rumney <jasonr@gnu.org>
15561
15562 * w32font.c (w32font_list, w32font_match): Add logging.
15563
15564 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15565
155662008-06-17 Chong Yidong <cyd@stupidchicken.com>
15567
15568 * font.c (font_parse_fcname): Store divider characters for
15569 unknown-spec list. For known key symbols, intern using correct
15570 symbol name.
15571
155722008-06-17 Kenichi Handa <handa@m17n.org>
15573
15574 * xfaces.c (realize_default_face): If the frame is not on window
15575 system, set the fontset of face to nil.
15576
155772008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15578
15579 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15580
155812008-06-16 Juanma Barranquero <lekktu@gmail.com>
15582
15583 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15584 (build_font_name_from_vector): Delete externs.
15585
15586 * xfaces.c (struct font_name): Don't declare.
15587
155882008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15589
15590 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15591
155922008-06-16 Chong Yidong <cyd@stupidchicken.com>
15593
15594 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15595
155962008-06-16 Juanma Barranquero <lekktu@gmail.com>
15597
15598 * font.c (Ffont_spec): Fix usage in docstring.
15599 (Ffont_face_attributes): Doc fix.
15600
156012008-06-16 Andreas Schwab <schwab@suse.de>
15602
15603 * font.c (Ffont_face_attributes): Fix definition.
15604
156052008-06-16 Jason Rumney <jasonr@gnu.org>
15606
15607 * font.h (font_style_symbolic_from_value): Remove.
15608
15609 * font.c (font_style_symbolic_from_value): Remove.
15610 (font_style_symbolic): Revert to pre 2008-06-13 version.
15611
15612 * w32font.c (w32_to_fc_weight): New function.
15613 (w32font_full_name, logfont_to_fcname): Use it.
15614
156152008-06-16 Kenichi Handa <handa@m17n.org>
15616
15617 * font.c (font_check_object): Delete it.
15618 (font_clear_cache): Check if a font-object is alive.
15619 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15620 font-object to nil.
15621 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15622 (font_at): Don't call font_check_object.
15623 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15624
156252008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15626
15627 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15628
156292008-06-16 Chong Yidong <cyd@stupidchicken.com>
15630
15631 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15632
156332008-06-15 Chong Yidong <cyd@stupidchicken.com>
15634
15635 * font.c (font_parse_fcname): Only one decimal point.
15636 (font_unparse_fcname): Handle data in family and foundry indices
15637 as symbols, not strings.
15638 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15639
15640 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15641
15642 * font.h (font_unparse_gtkname): Add prototype.
15643
156442008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15645
15646 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15647
156482008-06-15 Andreas Schwab <schwab@suse.de>
15649
15650 * font.c (font_update_drivers): Fix crash when no drivers match.
15651
156522008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15653
15654 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15655 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15656
156572008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15658
15659 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15660
156612008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15662
15663 * process.c (Fserial_process_configure, Fprocess_send_eof):
15664 Use EQ to compare Lisp_Objects.
15665
156662008-06-13 Jason Rumney <jasonr@gnu.org>
15667
15668 * w32fns.c (Fw32_select_font): Remove old font API function.
15669
15670 * w32font.c (logfont_to_fcname): New function.
15671 (Fx_select_font): New font dialog function compatible with
15672 GTK/fontconfig version.
15673
15674 * font.c (font_style_symbolic_from_value): New function.
15675 (font_style_symbolic): Use it.
15676
15677 * font.h (font_style_symbolic_from_value): Declare new function.
15678
156792008-06-13 Juanma Barranquero <lekktu@gmail.com>
15680
15681 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15682 <font-width-table>: Fix typos in docstrings.
15683
156842008-06-13 Daniel Engeler <engeler@gmail.com>
15685
15686 These changes add serial port access.
15687 * process.c: Add HAVE_SERIAL.
15688 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15689 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15690 (list_processes_1, select_wrapper, Fstop_process)
15691 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15692 (status_notify): Modify to handle serial processes.
15693 [HAVE_SERIAL] (Fserial_process_configure)
15694 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15695 New functions.
15696 * process.h (struct Lisp_Process): Add `type'.
15697 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15698 New functions.
15699 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15700 serial ports.
b71ac3dd 15701 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15702 * w32.h: Add FILE_SERIAL.
15703 (struct _child_process): Add ovl_read, ovl_write.
15704
157052008-06-13 Kenichi Handa <handa@m17n.org>
15706
15707 * dispextern.h (enum lface_attribute_index): New member
15708 LFACE_FOUNDRY_INDEX.
15709
15710 * font.c (font_score): Delete arg alternate_families. Check only
15711 weight, slant, width, and size. Ignore the difference of alias
15712 style symbols.
15713 (font_sort_entites): Adjust for the above change. Reflect the
15714 order of font-driver to scores.
15715 (font_list_entities): Don't check alternate_familes here.
15716 (font_clear_prop): Handle foundry.
15717 (font_update_lface): Don't parse "foundry-family" form here.
15718 Handle FONT_FOUNDRY_INDEX.
15719 (font_find_for_lface): Likewise. Handle alternate families here.
15720 If registry is nil, try iso8859-1 and ascii-0.
15721 (font_open_for_lface): Pay attention to size in ENTITY.
15722 (font_open_by_name): Simplify by calling font_load_for_lface.
15723 (free_font_driver_list): Delete it.
15724 (font_update_drivers): Preserve the order of backends.
15725 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15726 of font_score and font_sort_entites.
15727 (font_update_sort_order): Likewise.
15728
15729 * xfaces.c (LFACE_FOUNDRY): New macro.
15730 (check_lface_attrs): Check foundry.
15731 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15732 (merge_face_vectors): Check foundry.
15733 (merge_face_ref): Likewise.
15734 (Finternal_set_lisp_face_attribute): Likewise.
15735 (x_update_menu_appearance): Likewise.
15736 (Finternal_get_lisp_face_attribute): Likewise.
15737 (lface_hash): Likewise.
15738 (lface_same_font_attributes_p): Likewise.
15739 (x_supports_face_attributes_p): Likewise.
15740 (tty_supports_face_attributes_p): Likewise.
15741 (Finternal_set_alternative_font_family_alist): Intern strings.
15742 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15743 (realize_default_face): Set LFACE_FOUNDRY (lface).
15744
15745 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15746 font-driver at first.
15747
15748 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15749
157502008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15751
15752 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15753
157542008-06-12 Jim Meyering <meyering@redhat.com>
15755
15756 Make unexec_free handle NULL the same way free does.
15757 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15758
157592008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15760
15761 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15762 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15763 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15764 (WEAK_ALIAS): Simplify.
15765 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15766 when searching a unibyte buffer.
15767
157682008-06-12 Chong Yidong <cyd@stupidchicken.com>
15769
15770 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15771
157722008-06-12 Juanma Barranquero <lekktu@gmail.com>
15773
15774 * w32font.c: Include ctype.h.
15775
157762008-06-11 Jason Rumney <jasonr@gnu.org>
15777
15778 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15779 misreported as space.
15780 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15781 as aliases for registry iso10646-1.
15782
157832008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15784
15785 * buffer.c (clone_per_buffer_values): Skip `name'.
15786
157872008-06-11 Chong Yidong <cyd@stupidchicken.com>
15788
15789 * font.c (font_parse_fcname): Fix last change; accept decimal
15790 points in font size.
15791
157922008-06-10 Jason Rumney <jasonr@gnu.org>
15793
15794 * w32uniscribe.c (add_opentype_font_name_to_list):
15795 Skip non unicode fonts.
15796
157972008-06-10 Chong Yidong <cyd@stupidchicken.com>
15798
15799 * xfns.c (Fx_font_dialog): New function.
15800
15801 * gtkutil.c (xg_dialog_response_cb): Rename from
15802 xg_file_response_callback.
15803 (pop_down_dialog): Rename from pop_down_file_dialog.
15804 (xg_get_file_name): Callers changed.
15805 (xg_get_font_name): New function.
15806
15807 * gtkutil.h (xg_get_font_name): Insert prototype.
15808
158092008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15810
15811 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15812 x_underline_minimum_display_offset.
15813 (syms_of_xdisp): Declare it here rather than in xterm.c.
15814 * dispextern.h (underline_minimum_offset): Declare it.
15815 * w32term.c (x_draw_glyph_string): Use it.
15816 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15817 (syms_of_xterm): Don't declare it any more.
15818 (x_draw_glyph_string): Adjust to the new name.
15819
8719abec 158202008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15821
15822 * xterm.c (x_underline_minimum_display_offset): New var.
15823 (x_draw_glyph_string): Use it.
15824 (syms_of_xterm): Declare it.
15825
158262008-06-10 Chong Yidong <cyd@stupidchicken.com>
15827
15828 * font.c (font_parse_fcname): Accept GTK-style font names too.
15829
158302008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15831
15832 * dired.c (file_name_completion): Don't return t if the match is exact
15833 but with different capitalization.
15834 * minibuf.c (Ftry_completion): Simplify.
15835
15836 * window.c (Vwindow_point_insertion_type): New var.
15837 (set_window_buffer): Use it.
15838 (syms_of_window): Init and export it to Lisp.
15839
158402008-06-10 Kenichi Handa <handa@m17n.org>
15841
15842 * font.h (font_intern_prop): Prototype adjusted.
15843
15844 * font.c (font_intern_prop): New arg force_symbol.
15845 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15846 Adjust for the change of font_intern_prop.
15847
15848 * ftfont.c (ftfont_pattern_entity):
15849 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15850 (w32_registry):
15851 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15852 the change of font_intern_prop.
15853
158542008-06-09 Juanma Barranquero <lekktu@gmail.com>
15855
15856 * w32menu.c (digest_single_submenu): Declare extern.
15857
158582008-06-09 Jason Rumney <jasonr@gnu.org>
15859
15860 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15861
15862 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15863 (parse_single_submenu): Remove.
15864 (digest_single_submenu): Remove.
15865 (syms_of_w32menu): Don't initialise variables that have moved
15866 to menu.c.
15867 (set_frame_menubar): Sync with version in xmenu.c.
15868 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15869
15870 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15871 Make static again.
15872
158732008-06-09 Jason Rumney <jasonr@gnu.org>
15874
15875 Changes to w32 files related to the move of common menu code
15876 to menu.c on 2008-06-08 by Chong Yidong.
15877
15878 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15879 defs to w32gui.h.
15880 (single_keymap_panes, push_menu_item, push_menu_pane):
15881 Make globally visible.
15882
15883 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15884 (local_free, malloc_widget_value, free_widget_value)
15885 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15886 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15887 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15888 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15889 (menu_items, menu_items_allocated, menu_items_used)
15890 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15891 (init_menu_items, finish_menu_items, discard_menu_items)
15892 (grow_menu_items, push_submenu_start, push_submenu_end)
15893 (push_left_right_boundary, push_menu_pane, push_menu_item)
15894 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15895 (free_menubar_widget_tree_value, parse_single_submenu)
15896 (update_submenu_strings): Remove functions.
15897 (xmalloc_widget_value): Remove and declare extern.
15898
15899 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15900 (OBJ1): Build it.
15901
15902 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15903 (local_heap, local_alloc, local_free, malloc_widget_value)
15904 (free_widget_value): Define here.
15905
159062008-06-09 Kenichi Handa <handa@m17n.org>
15907
15908 * font.h (Qascii_0): Extern it.
15909
15910 * font.c (Qascii_0): New variable.
15911 (syms_of_font): DEFSYM it.
15912 (font_open_by_name): If the registry "iso8859-1" fails, try also
15913 "ascii-0".
15914
15915 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15916
159172008-06-08 Kenichi Handa <handa@m17n.org>
15918
15919 * .gdbinit (xfont): New command.
15920
159212008-06-08 Andreas Schwab <schwab@suse.de>
15922
15923 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15924 * Makefile.in (menu.o): Update dependencies.
15925
15926 * Makefile.in (obj): Always add menu.o.
15927 * emacs.c (main): Always call syms_of_menu.
15928 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15929
159302008-06-08 Chong Yidong <cyd@stupidchicken.com>
15931
15932 * Makefile.in: Compile menu.c.
15933
15934 * lisp.h: Declare syms_of_menu.
15935
15936 * emacs.c (main): Call syms_of_menu.
15937
15938 * keyboard.h: Relocate platform-independent menu definitions from
15939 xmenu.c.
15940
15941 * menu.c: New file. Relocate platform-independent menu
15942 definitions from xmenu.c. Suggested by Adrian Robert.
15943
15944 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15945 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15946 (menu_items_used, menu_items_n_panes)
15947 (menu_items_submenu_depth): Move to keyboard.h.
15948 (init_menu_items, finish_menu_items, unuse_menu_items)
15949 (discard_menu_items, restore_menu_items, save_menu_items)
15950 (grow_menu_items, push_submenu_start, push_submenu_end)
15951 (push_left_right_boundary, push_menu_pane, push_menu_item)
15952 (keymap_panes, single_keymap_panes, single_menu_item)
15953 (list_of_panes, list_of_items, find_and_call_menu_selection)
15954 (xmalloc_widget_value, free_menubar_widget_value_tree)
15955 (parse_single_submenu, digest_single_submenu)
15956 (update_submenu_strings): Move to menu.c.
15957
159582008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15959
15960 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15961
159622008-06-06 Miles Bader <miles@gnu.org>
15963
15964 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15965 face, not frame default.
15966
159672008-06-05 Martin Rudalics <rudalics@gmx.at>
15968
15969 * window.c (pop_up_windows, pop_up_frames)
15970 (display_buffer_reuse_frames, Vpop_up_frame_function)
15971 (Vdisplay_buffer_function, Veven_window_heights)
15972 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15973 (Vspecial_display_function, Vsame_window_buffer_names)
15974 (Vsame_window_regexps, split_height_threshold)
15975 (Vsplit_window_preferred_function): Move those vars to window.el.
15976 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15977 (Fdisplay_buffer): Move those functions to window.el.
15978 (syms_of_window): Remove corresponding declarations.
15979 (display_buffer): New function.
15980 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15981 * dispnew.c (Flast_nonminibuf_frame): New function.
15982 * buffer.c (Fpop_to_buffer): Move to window.el.
15983
159842008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15985
15986 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15987
159882008-06-05 Kenichi Handa <handa@m17n.org>
15989
15990 * coding.c (detect_coding): Fix previous change.
15991 (detect_coding_system): Likewise.
15992
159932008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15994
15995 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15996
15997 * keymap.c (Vminibuffer_local_filename_must_match_map):
15998 Rename from Vminibuffer_local_must_match_filename_map.
15999 (syms_of_keymap):
16000 * minibuf.c (Fcompleting_read): Adjust accordingly.
16001 * commands.h: Rename declaration as well.
16002
160032008-06-05 Kenichi Handa <handa@m17n.org>
16004
16005 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16006 family name.
16007 (Ffont_put): Likewise.
16008
16009 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16010 current font-spec.
16011
16012 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16013 is unspecified.
16014
16015 * xfaces.c (realize_x_face): If the font-related face attributes
16016 are the same as those of default face, realize a new fontset from
16017 default->fontset.
16018 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16019
160202008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16021
16022 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16023 (move_it_in_display_line): New wrapper.
16024
16025 * window.c (window_scroll_pixel_based_preserve_x)
16026 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16027 (window_scroll_pixel_based, window_scroll_line_based):
16028 Use them to preserve column positions.
16029 (syms_of_window): Initialize them.
16030
16031 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16032 (HPOS . VPOS) pair.
16033
16034 * dispextern.h (move_it_in_display_line): Declare.
16035
160362008-06-05 Juanma Barranquero <lekktu@gmail.com>
16037
16038 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16039 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16040 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16041
160422008-06-04 Juanma Barranquero <lekktu@gmail.com>
16043
16044 * window.c (Fset_window_parameter): Doc fix.
16045 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16046
160472008-06-04 Joakim Verona <joakim@verona.se>
16048
16049 * window.h (struct window): Add new member window_parameters.
16050
16051 * window.c (Fwindow_parameters, Fwindow_parameter)
16052 (Fset_window_parameter): New defuns.
16053 (syms_of_window): Defsubr the new defuns.
16054 (make_window): Initialize window_parameters to nil.
16055
160562008-06-04 John Paul Wallington <jpw@pobox.com>
16057
16058 * eval.c (Fdefmacro): Doc fix.
16059
160602008-06-04 Kenichi Handa <handa@m17n.org>
16061
16062 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16063 Be sure to call setup_coding_system when we find a proper coding system.
16064 (detect_coding_system): Fix handling of coding->head_ascii.
16065
160662008-06-03 Andreas Schwab <schwab@suse.de>
16067
16068 * font.c (font_prop_validate_spacing): Fix last change.
16069
160702008-06-03 Kenichi Handa <handa@m17n.org>
16071
16072 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16073 (font_parse_fcname): Fix handling of unknown key.
16074
16075 * xfont.c (xfont_list): Try an alias.
16076
16077 * charset.c (char_charset): Return NULL if the arg charset_list is
16078 specified and C doesn't belong to any of them.
16079
160802008-06-02 Chip Coldwell <coldwell@redhat.com>
16081
16082 * font.c (font_pixel_size): Don't take cdr of an integer.
16083
160842008-06-02 Jim Meyering <meyering@redhat.com>
16085
16086 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16087 * alloc.c (xfree): Return right away for a NULL arg.
16088 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16089 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16090 * mac.c (create_apple_event_from_event_ref): Likewise.
16091 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16092 Likewise.
16093 * doprnt.c (doprnt1): Likewise.
16094 * frame.c (frame): Likewise.
16095 * keyboard.c (wipe_kboard): Likewise.
16096 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16097 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16098 * term.c (tty_default_color_capabilities, maybe_fatal)
16099 (delete_tty): Likewise.
16100 * w16select.c (string): Likewise.
16101 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16102 * w32bdf.c (w32_free_bdf_font): Likewise.
16103 * w32fns.c (w32_unload_font): Likewise.
16104 * w32font.c (w32font_close): Likewise.
16105 * window.c (size_window): Likewise.
16106 * xselect.c (receive_incremental_selection): Likewise.
16107 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16108 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16109 * w32.c (stat): Likewise.
16110
16111 Remove useless if-before-free tests.
16112 * editfns.c (Fset_time_zone_rule): Likewise.
16113 * lread.c (nosuffix): Likewise.
16114 * ralloc.c (get_bloc): Likewise.
16115 * regex.c (reg_free): Likewise.
16116 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16117 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16118 * xsmfns.c (smc_save_yourself_CB): Likewise.
16119
161202008-06-02 Kenichi Handa <handa@m17n.org>
16121
16122 * font.c (font_find_for_lface): Handle float font size.
16123 (font_open_for_lface): Likewise.
16124
16125 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16126 comparing the properties.
16127
161282008-06-01 Jason Rumney <jasonr@gnu.org>
16129
16130 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16131 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16132 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16133 Don't add empty script list.
16134 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16135
161362008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16137
16138 * Makefile.in (dot, dotdot): Remove, update users.
16139 ".." has been used elsewhere in the file for a long time.
16140 (LIBXT_STATIC): Remove conditional based on unused variable.
16141
161422008-06-01 Miles Bader <miles@gnu.org>
16143
16144 * xfaces.c (Vface_remapping_alist): New variable.
16145 (syms_of_xfaces): Initialize it.
16146 (enum named_merge_point_kind): New type.
16147 (struct named_merge_point): Add `named_merge_point_kind' field.
16148 (push_named_merge_point): Make cycle detection respect different
16149 named-merge-point kinds.
16150 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16151 Remove face-name alias resolution.
16152 (lface_from_face_name): New definition using
16153 `lface_from_face_name_no_resolve'.
16154 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16155 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16156 (get_lface_attributes): New definition that layers face-remapping on
16157 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16158 (lookup_basic_face): New function.
16159 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16160 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16161 `get_lface_attributes'.
16162 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16163 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16164 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16165
16166 * xdisp.c (init_iterator): Pass base_face_id through
16167 `lookup_basic_face' when we actually use it as a face-id.
16168 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16169 DEFAULT_FACE_ID.
16170
16171 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16172 lookup the initial face-id.
16173
16174 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16175
161762008-06-01 Juanma Barranquero <lekktu@gmail.com>
16177
16178 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16179 (Fremove_text_properties): Fix typos in docstrings.
16180
161812008-05-31 Kenichi Handa <handa@m17n.org>
16182
16183 * font.c (font_list_entities): Fix the car part of data to be
16184 stored in the cache.
16185
16186 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16187
161882008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16189
16190 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16191 Add a `test' argument so another predicate than `equal' can be used.
16192 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16193 (map_char_table): Remove unused vars `c' and `i'.
16194 * lisp.h (Foptimize_char_table): Adjust declaration.
16195 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16196
161972008-05-30 Kenichi Handa <handa@m17n.org>
16198
16199 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16200 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16201 defined.
16202
162032008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16204
16205 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16206 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16207 frame-local settings for the same variable.
16208
162092008-05-30 Kenichi Handa <handa@m17n.org>
16210
16211 * fontset.c (Ffont_info): Move to font.c.
16212 (syms_of_fontset): Delete defsubr of Sfont_info.
16213
16214 * font.c (font_style_to_value, font_score): Delete casting of the
16215 args to xstcasecmp.
16216 (register_font_driver): Increment num_font_drivers only when
16217 registering the driver globally.
16218 (Ffont_info): Move from fontset.c. Handle a font object too.
16219 (syms_of_font): Defsubr Sfont_info.
16220
162212008-05-29 Kenichi Handa <handa@m17n.org>
16222
16223 * coding.h (enum define_coding_utf8_arg_index): New enum.
16224 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16225 coding_attr_utf_bom.
16226 (enum utf_bom_type): Rename from utf_16_bom_type.
16227 (struct utf_16_spec): Adjust for the above change.
16228 (struct coding_system): Add utf_8_bom in `spec' union.
16229
16230 * coding.c (CODING_UTF_8_BOM): New macro.
16231 (enum coding_category): Delete coding_category_utf_8, add
16232 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16233 coding_category_utf_8_sig.
16234 (CATEGORY_MASK_UTF_8): Delete it.
16235 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16236 (CATEGORY_MASK_UTF_8_SIG): New macros.
16237 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16238 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16239 CATEGORY_MASK_UTF_8_SIG.
16240 (CATEGORY_MASK_UTF_8): New macro.
16241 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16242 (detect_coding_utf_8): Check BOM.
16243 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16244 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16245 (encode_coding_utf_16): Likewise.
16246 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16247 (detect_coding, detect_coding_system): Handle utf-8-auto.
16248 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16249 (syms_of_coding): Fix setting up of Vcoding_category_table.
16250
162512008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16252
16253 * process.c (Faccept_process_output): If `millisec' is non-nil,
16254 `seconds' default to 0.
16255 (wait_reading_process_output): Also return non-nil if we read output
16256 from a non-running process.
16257
162582008-05-29 Jason Rumney <jasonr@gnu.org>
16259
16260 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16261 `raster' specified.
16262 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16263 in the uniscribe backend, but disallow any font that has no
16264 unicode subrange support.
16265
162662008-05-29 Juanma Barranquero <lekktu@gmail.com>
16267
16268 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16269 Fix typos in docstrings.
16270
162712008-05-29 Kenichi Handa <handa@m17n.org>
16272
16273 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16274 (Fx_family_fonts): Set frame correctly.
16275
162762008-05-28 Jason Rumney <jasonr@gnu.org>
16277
16278 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16279
162802008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16281
16282 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16283 calling build_annotations.
16284
162852008-05-28 Juanma Barranquero <lekktu@gmail.com>
16286
16287 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16288 (Fencode_coding_string):
16289 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16290 <latin-extra-code-table>: Fix typos in docstrings.
16291 (syms_of_coding) <coding-system-alist>: Doc fix.
16292 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16293
162942008-05-28 Kenichi Handa <handa@m17n.org>
16295
16296 * fontset.c (Ffont_info): Don't call font_close_object.
16297
16298 * font.c (font_parse_family_registry): Use Ffont_put to validate
16299 foundry and family.
16300 (font_delete_unmatched): Don't check spacing.
16301 (font_list_entities): Add spacing to the spec to list fonts.
16302
16303 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16304 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16305
16306 * coding.c (encode_coding_raw_text): Fix previous change.
16307 (encode_coding_object): When the dst_object is a buffer and is
16308 different from src_object, move gap to PT.
16309
163102008-05-27 Chong Yidong <cyd@stupidchicken.com>
16311
16312 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16313
163142008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16315
16316 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16317 all branches. Compute it differently.
16318
16319 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16320
163212008-05-27 Juanma Barranquero <lekktu@gmail.com>
16322
16323 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16324 into "else if () ... else ...".
16325
163262008-05-27 Jason Rumney <jasonr@gnu.org>
16327
16328 * w32font.c (w32font_open_internal): Determine if glyph indices
16329 are likely to work here.
16330
163312008-05-27 Chong Yidong <cyd@stupidchicken.com>
16332
16333 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16334 draw overlap glyphs with appropriate highlighting.
16335
163362008-05-27 Kenichi Handa <handa@m17n.org>
16337
16338 * xfont.c (xfont_open): Fix calculation of font->average_width.
16339
163402008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16341
16342 * casefiddle.c (casify_object): Try to guess better whether the
16343 argument is a byte or a char.
16344
163452008-05-26 Andreas Schwab <schwab@suse.de>
16346
16347 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16348 Always send multiples of format size.
16349
16350 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16351
163522008-05-26 Jason Rumney <jasonr@gnu.org>
16353
16354 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16355 (compute_metrics): Don't set failure if we just cleared the cache.
16356 (w32_weight_table): Remove unused variable.
16357 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16358 backwards compatibility.
16359
163602008-05-25 Kenichi Handa <handa@m17n.org>
16361
16362 * w32term.c (x_draw_glyph_string):
16363 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16364
16365 * xfaces.c: Delete unused function prototypes.
16366 (xstrlwr, font_frame): Delete them.
16367 (clear_face_cache): Delete unused variable.
16368
16369 * xftfont.c (xftfont_open): Delete unused variable.
16370 If underline_thickness is not 1, adjust underline_position.
16371
16372 * ftxfont.c (ftxfont_open): Delete unused variable.
16373
16374 * fontset.c (face_for_char): Optimize for the case of no charset
16375 property.
16376
16377 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16378 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16379 (otf_open, font_otf_capability, generate_otf_features)
16380 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16381 Comment out by surrounding "#if 0" and "#endif" for the moment.
16382 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16383 (syms_of_font): Codes for accessing above commented out.
16384
163852008-05-24 Eli Zaretskii <eliz@gnu.org>
16386
16387 * w32proc.c: Include dispextern.h.
16388
16389 * w32.c: Include dispextern.h.
16390
163912008-05-23 Juanma Barranquero <lekktu@gmail.com>
16392
16393 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16394 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16395 Fix typos in docstrings.
16396
163972008-05-23 Jason Rumney <jasonr@gnu.org>
16398
16399 * xsmfns.c: Remove includes that are already included by config.h.
16400
164012008-05-23 Kenichi Handa <handa@m17n.org>
16402
16403 * charset.c (Qemacs, charset_emacs): New variables.
16404 (char_charset): Fix for non-Unicode characters.
16405 (syms_of_charset): Define charset_emacs.
16406
16407 * w32term.c (x_draw_glyph_string): Be sure to update
16408 s->underline_thickness and s->underline_position. Be sure to draw
16409 underline within the current line area.
16410
16411 * xterm.c (x_draw_glyph_string): Be sure to update
16412 s->underline_thickness and s->underline_position. Be sure to draw
16413 underline within the current line area.
16414
16415 * fontset.c: Delete unused variables and add casting for char *
16416 throughout the file.
16417 (fontset_font): Try the fallback fonts of the current fontset
16418 before consulting the default fontset.
16419
16420 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16421
16422 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16423
164242008-05-22 Jason Rumney <jasonr@gnu.org>
16425
16426 * font.c: Don't include strings.h.
16427
16428 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16429
16430 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16431 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16432 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16433 to call xstrcasecmp.
16434
16435 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16436
16437 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16438
16439 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16440
16441 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16442
164432008-05-22 Kenichi Handa <handa@m17n.org>
16444
16445 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16446
16447 * font.c (font_prop_validate_style): Adjust for the format
16448 change of font_style_table.
16449
16450 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16451 two args.
16452
16453 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16454 two args.
16455
164562008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16457
16458 * minibuf.c (keys_of_minibuf): Delete.
16459 * lisp.h (keys_of_minibuf): Delete.
16460 * emacs.c (main): Don't call keys_of_minibuf.
16461
164622008-05-22 Kenichi Handa <handa@m17n.org>
16463
16464 * ftfont.c (ftfont_resolve_generic_family): Rename from
16465 ftfont_list_generic_family. Return a single family for each
16466 generic family.
16467 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16468 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16469 Call font_add_log.
16470 (ftfont_match): Call font_add_log.
16471
16472 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16473 (FONT_DEBUG): Define it.
16474 (font_add_log): Extern it.
16475 (font_assert): Rename from xassert.
16476
16477 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16478 (xfont_list_family): Call font_add_log.
16479 (xfont_match): Likewise.
16480 (memq_no_quit): Delete.
16481
16482 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16483 call of Ffont_xlfd_name.
16484
16485 * xfaces.c (struct table_entry, slant_table, weight_table)
16486 (swidth_table): Move to font.c.
16487
16488 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16489 xassert are changed to font_assert. Delete many unused variables.
16490 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16491 New variables.
16492 (struct table_entry): Move from xfaces.c and modified.
16493 (weight_table, slant_table, width_table): Move from xfaces.c and
16494 contents adjusted for the change of struct table_entry.
16495 (font_style_to_value, font_style_symbolic): Adjust for the
16496 format change of font_style_table.
16497 (font_parse_family_registry): Don't overwrite existing foundry and
16498 family of font_spec.
16499 (font_score): Fix calculation of diff for sizes.
16500 (font_sort_entites): Call font_add_log.
16501 (font_delete_unmatched): Return a newly created list.
16502 (font_list_entities): Fix previous change. Call font_add_log.
16503 (font_matching_entity, font_open_entity, font_close_entity):
16504 Call font_add_log.
16505 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16506 (Finternal_set_font_style_table): Delete.
16507 (BUILD_STYLE_TABLE): New macro.
16508 (build_style_table): New function.
16509 (Vfont_log, font_log_env_checked): New variables.
16510 (font_add_log): New function.
16511 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16512 Declare Lisp variables "font-weight-table", "font-slant-table",
16513 "font-width-table", and "font-log". Initialize font_style_table.
16514
165152008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16516
16517 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16518
165192008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16520 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16521
16522 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16523 (Vframe_alpha_lower_limit): New variable.
16524 (x_set_alpha): New function.
16525
16526 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16527
16528 * xfns.c (x-create-frame, Qalpha):
16529 Initialize the frame parameter `alpha'.
16530 * xterm.c (OPAQUE, OPACITY): New.
16531 (x_set_frame_alpha): New function.
16532 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16533
16534 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16535 * w32fns.c (w32_frame_parm_handlers): Likewise.
16536
165372008-05-20 Jason Rumney <jasonr@gnu.org>
16538
16539 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16540 truetype fonts to opentype list.
16541
165422008-05-20 Juanma Barranquero <lekktu@gmail.com>
16543
16544 * fontset.c (Ffontset_info): Doc fix.
16545 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16546 <ignore-relative-composition>: Fix typos in docstrings.
16547
16548 * font.c (syms-of-font) <font-encoding-alist>:
16549 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16550 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16551 (Ffont_otf_alternates): Doc fixes.
16552
165532008-05-20 Kenichi Handa <handa@m17n.org>
16554
16555 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16556 font.h through out the file.
16557 (FONT_DRIVERS): Rename from FONTOBJ.
16558 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16559 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16560
16561 * emacs.c (main): Call syms_of_font unconditionally.
16562
16563 * font.h (find_font_encoding): Extern it.
16564
16565 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16566 fontset.c.
194d44e7 16567 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16568 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16569 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16570 only when HAVE_WINDOW_SYSTEM is defined.
16571 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16572 when HAVE_WINDOW_SYSTEM is defined.
16573
16574 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16575 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16576
16577 * xfaces.c: Include font.h unconditionally.
16578 (merge_face_ref, merge_face_vectors)
16579 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16580
165812008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16582
16583 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16584 indirect_variable.
16585 * eval.c (lisp_indirect_variable): New fun.
16586 (Fuser_variable_p): Use it.
16587
165882008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16589
16590 * lisp.h (indirect_variable):
16591 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16592 Use Lisp_Symbol pointers rather than Lisp_Object.
16593 Adjust callers.
16594 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16595 To this end, change calling-convention.
16596
16597 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16598 if some non-hidden buffers are selected by string&pred.
16599
166002008-05-19 Chong Yidong <cyd@stupidchicken.com>
16601
16602 * process.c (wait_reading_process_output): Always check status
16603 when in batch mode.
16604
166052008-05-19 Kenichi Handa <handa@m17n.org>
16606
16607 * font.c (font_list_entities): Fix handling of cache.
16608 (font_matching_entity): Likewise.
16609
16610 * ftfont.c (cs_iso8859_1): Delete.
16611 (ft_face_cache): New variable.
16612 (struct ftfont_info): New member fc_charset_idx.
16613 (ftfont_build_basic_charsets): Delete.
16614 (fc_charset_table): New variable.
16615 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16616 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16617 Callers changed.
16618 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16619 (ftfont_spec_pattern): New argument fc_charset_idx.
16620 Check registry more rigidly. Change callers.
16621 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16622 change of :font-entity property of the font.
16623
16624 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16625 property of the font.
16626
166272008-05-18 Juanma Barranquero <lekktu@gmail.com>
16628
16629 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16630 (Funencodable_char_position, Fcheck_coding_systems_region)
16631 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16632 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16633 (Ffind_operation_coding_system, Fset_coding_system_priority)
16634 (Fcoding_system_eol_type): Doc fixes.
16635
166362008-05-17 Glenn Morris <rgm@gnu.org>
16637
16638 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16639
166402008-05-16 Eli Zaretskii <eliz@gnu.org>
16641
16642 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16643 and st_gid.
16644
16645 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16646 HAVE_WINDOW_SYSTEM is not defined.
16647
16648 * xfaces.c (merge_face_ref, merge_face_vectors)
16649 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16650 HAVE_WINDOW_SYSTEM is defined.
16651 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16652
166532008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16654
16655 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16656
166572008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16658
16659 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16660
166612008-05-15 Kenichi Handa <handa@m17n.org>
16662
16663 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16664 preference.
16665
166662008-05-15 Glenn Morris <rgm@gnu.org>
16667
16668 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16669
166702008-05-15 Chong Yidong <cyd@stupidchicken.com>
16671
16672 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16673 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16674
16675 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16676
166772008-05-15 Kenichi Handa <handa@m17n.org>
16678
16679 * ftfont.c (ftfont_list): Downcase family name to check generic
16680 families.
16681
16682 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16683 font-spec for QCfont value.
16684
16685 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16686 buffer. Check the return value of it.
16687
166882008-05-14 Jason Rumney <jasonr@gnu.org>
16689
16690 * w32term.c (w32_get_glyph_overhangs): Remove.
16691 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16692
166932008-05-14 Kenichi Handa <handa@m17n.org>
16694
16695 * font.c (font_prop_validate): Make nil a valid value.
16696 (font_clear_cache): Check if the cached vector of entities is nil
16697 or not.
16698
166992008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16700
16701 * emacs.c (main_thread): Conditionalize on
16702 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16703 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16704
16705 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16706 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16707 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16708
167092008-05-14 Kenichi Handa <handa@m17n.org>
16710
16711 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16712 has no corresponding coding system.
16713
167142008-05-14 Jason Rumney <jasonr@gnu.org>
16715
16716 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16717
16718 * w32font.h (w32font_open_internal): Update declaration.
16719
16720 * w32font.c (w32font_open_internal): Change last argument from
16721 w32font_info struct to font object. Fill in font object from
16722 font_entity. Get Outline metrics if possible. Use them to
16723 calculate underline position and thickness. Use xlfd name as name
16724 property. Don't set codepage.
16725 (w32font_open): Pass font_object to w32font_open_internal. Don't
16726 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16727 (w32font_draw): Use s->font.
16728 (clear_cached_metrics): Don't clear non-existent blocks.
16729
16730 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16731 font was not found.
16732 (x_draw_glyph_string): Use underline position and thickness from font.
16733
16734 * w32uniscribe.c (uniscribe_open): Pass font_object to
16735 w32font_open_internal.
16736
167372008-05-14 Kenichi Handa <handa@m17n.org>
16738
16739 These changes are to delete all legacy font-handling codes, and
16740 make Emacs use only font-backends.
16741
16742 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16743 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16744
16745 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16746
16747 * charset.h (Vcharset_non_preferred_head)
16748 (Vcurrent_iso639_language): Extern them.
16749
16750 * charset.c (Vcharset_non_preferred_head): New variable.
16751 (Vcurrent_iso639_language): New variable.
16752 (syms_of_charset): Declare it as a Lisp variable.
16753 (char_charset): Don't check non preferred charsets. As a last
16754 resort, return charset_unicode.
16755 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16756
16757 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16758 conditionals. Don't check enable_font_backend. Delete all codes
16759 used only when USE_FONT_BACKEND is not defined.
16760
16761 * dispextern.h (struct glyph_string): Change type of `font' to
16762 `struct font *'.
16763 (struct glyph_string): New member underline_position and
16764 underline_thickness.
16765 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16766 (struct face): Change type of `font' to `struct font *'. Remove
16767 members `font_name', `font_info_id'.
16768 (per_char_metric, encode_char): Delete externs.
16769 (calc_pixel_width_or_height): Adjust the prototype.
16770
16771 * emacs.c (enable_font_backend): Delete extern.
16772 (main): Don't set enable_font_backend. Don't check the command
16773 line argument "-disable-font-backend".
16774
16775 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16776 (enum font_property_index): New members FONT_DPI_INDEX,
16777 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16778 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16779 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16780 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16781 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16782 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16783 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16784 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16785 (struct font_spec, struct font_entity): New structs.
16786 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16787 (struct font): Many members from old "struct font_info" moved to
16788 here. Members font and entity deleted.
16789 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16790 the new font-related objects.
16791 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16792 (CHECK_FONT_GET_OBJECT): Likewise.
16793 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16794 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16795 (struct font_driver): New members case_sensitive anc check. Type
16796 of the member list and open changed.
16797 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16798 (font_symbolic_width, font_find_object, font_get_spec)
16799 (font_set_lface_from_name): Delete extern.
16800 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16801
16802 * font.c: Include <strings.h>.
16803 (enable_font_backend): Delete it.
16804 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16805 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16806 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16807 (null_string): Delete it.
16808 (null_vector): Make it static.
16809 (font_family_alist): Delete it.
16810 (Qnormal): Extern it.
16811 (QCextra, QClanguage): Delete it.
16812 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16813 (font_make_spec, font_make_entity, font_make_object)
16814 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16815 the string. Callers changed.
16816 (font_pixel_size): Adjusted for the format change of font-related
16817 objects.
16818 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16819 (font_style_to_value, font_style_symbolic): New function.
16820 (build_font_family_alist): Delete it.
16821 (font_registry_charsets): Use Fassoc_string instead of
16822 assq_no_quit.
16823 (font_prop_validate_symbol): Don't return null_string.
16824 (font_prop_validate_style): Adjusted for the change of
16825 style-related values in a font vector.
16826 (font_property_table): Delete entries for QClanguage and
16827 QCantialias, add entries for QCavgwidth.
16828 (get_font_prop_index): Delete the 2nd argument FROM.
16829 (font_prop_validate): Arguments changed.
16830 (font_put_extra): Adjusted for the change of font-related objects.
16831 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16832 (font_parse_fcname, font_unparse_fcname)
16833 (font_prepare_composition): Likewise.
16834 (font_parse_family_registry): Renamed from font_merge_old_spec.
16835 (otf_open): Delete the 1st arg entity.
16836 (font_otf_capability): Adjusted for the above change.
16837 (font_score): New arg alternate_families. Adjusted for the change
16838 of font-related objects.
16839 (font_sort_entites): New arg best_only.
16840 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16841 Delete them.
16842 (font_match_p): Check alternate families.
16843 (font_find_object): Delete it.
16844 (font_check_object): New function.
16845 (font_clear_cache): Adjusted for the change of font-related objects.
16846 (font_delete_unmatched): New arg.
16847 (font_list_entities): Call font_driver->list with a spec that
16848 doesn't specify style-related properties.
16849 (font_matching_entity): Arguments changed. Caller changed.
16850 (font_open_entity): Adjusted for the change of font-related objects.
16851 (font_close_object, font_has_char, font_encode_char)
16852 (font_get_name, font_get_spec): Likewise.
16853 (font_spec_from_name, font_clear_prop, font_update_lface):
16854 New functions.
16855 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16856 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16857 (font_at): Adjusted for the change of font-related objects.
16858 (font_range): New function.
16859 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16860 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16861 (Fcopy_font_spec, Fmerge_font_spec): New function.
16862 (Ffont_family_list): Renamed from list-families.
16863 (Finternal_set_font_style_table): Arguments changed.
16864 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16865 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16866 change of font-related objects.
16867 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16868
16869 * fontset.h (struct font_info): Delete it. Most members go to
16870 struct font.
16871 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16872 (enum FONT_SPEC_INDEX): Delete it.
16873 (font_info, list_fonts_func, load_font_func, query_font_func)
16874 (set_frame_fontset_func, find_ccl_program_func)
16875 (get_font_repertory_func, new_fontset_from_font_name): Delete
16876 externs.
16877 (fontset_from_font_name): Extern it.
16878 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16879 (FONT_INFO_FROM_FACE): Deleted.
16880 (face_for_font): Adjust prototype.
16881
16882 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16883 conditionals. Don't check enable_font_backend. Delete all codes
16884 used only when USE_FONT_BACKEND is not defined.
16885 (get_font_info_func, list_font_func, load_font_func)
16886 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16887 (get_font_repertory_func): Delete them.
16888 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16889 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16890 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16891 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16892 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16893 (fontset_compare_rfontdef): New function.
16894 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16895 rfont-defs by qsort. Adjusted for the change of font-group vector.
16896 (load_font_get_repertory): Deleted.
16897 (fontset_find_font): Use new macros to ref/set elements of
16898 font-def and rfont-def.
16899 (fontset_font): Fix the timing of remembering that no font for C.
16900 (free_face_fontset): Do nothing if the face has no fontset.
16901 (face_suitable_for_char_p): Use new macros to ref/set elements of
16902 rfont-def.
16903 (face_for_char): Likewise. Call face_for_char with font_object.
16904 (fs_load_font): Delete. Delete #pragma surrounding it.
16905 (fs_query_fontset): Use strcasecmp instead of strcmp.
16906 (generate_ascii_font_name): Adjusted for the format change of
16907 font-spec.
16908 (Fset_fontset_font): Likewise. Use new macros to set elements of
16909 font-def.
16910 (Fnew_fontset): Use font_unparse_xlfd to generate
16911 FONTSET_ASCII (fontset).
16912 (new_fontset_from_font_name): Deleted.
16913 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16914 a fontset is already created for the font. FIx updating of
16915 Vfontset_alias_alist.
16916 (fontset_ascii_font): Deleted.
16917 (Ffont_info): Adjusted for the format change of font-spec.
16918 (Finternal_char_font): Likewise.
16919 (Ffontset_info): Likewise.
16920 (syms_of_fontset): Don't check load_font_func.
16921
16922 * fns.c (internal_equal): Handle PREV_FONT.
16923
16924 * frame.h: Delete USE_FONT_BACKEND conditional.
16925
16926 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16927 conditionals. Don't check enable_font_backend. Delete all codes
16928 used only when USE_FONT_BACKEND is not defined.
16929 (x_set_font): Call x_new_font, not x_new_fontset2.
16930 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16931 already set for the frame.
16932
16933 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16934 a font-entity by font_make_entity. Use font_intern_prop instead
16935 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16936 font property. If a font is scalable, set avgwidth property to 0.
16937 Set font-entity property by font_put_extra.
16938 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16939 (ffont_driver): Adjusted for the change of struct font_driver.
16940 (ftfont_spec_pattern): New function.
16941 (ftfont_list): Return a list, not vector.
16942 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16943 (ftfont_list_family): Don't downcase names.
16944 (ftfont_free_entity): Deleted.
16945 (ftfont_open): Return a font-object. Adjusted for the change of
16946 struct font. Get underline_thickness and underline_position from
16947 font property. Don't update dpyinfo->smallest_font_height and
16948 dpyinfo->smallest_char_width.
16949 (ftfont_close): Don't free `struct font'.
16950 (ftfont_has_char): Adjusted for the format change of font-entity.
16951 (ftfont_encode_char, ftfont_text_extents): Likewise.
16952
16953 * ftxfont.c (ftxfont_list): Return a list, not vector.
16954 (ftxfont_open): Return a font-object. Adjusted for the change of
16955 struct font. Get underline_thickness and underline_position from
16956 font property. Don't update dpyinfo->smallest_font_height and
16957 dpyinfo->smallest_char_width.
16958 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16959 (ftxfont_draw): Adjusted for the change of struct font.
16960
16961 * image.c (image_ascent): Don't include "charset.h". Include
16962 "character.h" and "font.h".
16963
16964 * lisp.h (enum pvec_type): New member PREV_FONT.
16965 (Fassoc_string): EXFUN it.
16966
16967 * print.c: Include font.h.
16968 (print_object): Handle font-related objects.
16969
16970 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16971 conditionals. Don't check enable_font_backend. Delete all codes
16972 used only when USE_FONT_BACKEND is not defined.
16973 (handle_auto_composed_prop): Do nothing if it->f is not on a
16974 window system. Check how many following characters can be
16975 displayed by the same font.
16976 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16977 'struct font *'.
16978 (get_char_face_and_encoding): Assign the whole encoding task to
16979 the `encode-char' method of a font driver.
16980 (fill_composite_glyph_string): Adjusted for the change of `struct
16981 face' and `struct glyph_string'.
16982 (fill_glyph_string): Likewise.
16983 (get_per_char_metric): Arguments changed.
16984 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16985 and `struct glyph_string'.
16986 (produce_stretch_glyph, calc_line_height_property)
16987 (x_produce_glyphs): Likewise.
16988
16989 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16990 conditionals. Don't check enable_font_backend. Delete all codes
16991 used only when USE_FONT_BACKEND is not defined. Use
16992 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16993 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16994 (Qp): Extern them.
16995 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16996 Deleted.
16997 (struct font_name): Deleted.
16998 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16999 (compare_fonts_by_sort_order): New function.
17000 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17001 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17002 Deleted.
17003 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17004 compare_fonts_by_sort_order.
17005 (Fx_font_family_list): Call Ffont_family_list.
17006 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17007 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17008 (face_symbolic_slant, face_symbolic_swidth)
17009 (split_font_name_into_vector, build_font_name_from_vector)
17010 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17011 (font_rescale_ratio, split_font_name, build_font_name)
17012 (free_font_names, sort_fonts, x_face_list_fonts)
17013 (face_font_available_p, sorted_font_list, cmp_font_names)
17014 (font_list_1, concat_font_list, font_list, remove_duplicates):
17015 Deleted.
17016 (Fx_list_fonts): Use Ffont_list.
17017 (LFACE_AVGWIDTH): Deleted.
17018 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17019 by FONTP.
17020 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17021 (set_lface_from_font_name): Delete it.
17022 (set_lface_from_font): Renamed from
17023 set_lface_from_font_and_fontset. Caller changed. Don't set
17024 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17025 for face.
17026 (merge_face_vectors): Copy font-spec if necessary.
17027 Clear properties of the font-spec if necessary.
17028 (merge_face_ref): Clear properties of the font-spec if necessary.
17029 (Finternal_set_lisp_face_attribute): Likewise.
17030 (set_font_frame_param): Use font_load_for_lface to load a
17031 font-object, and call Fmodify_frame_parameters with it.
17032 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17033 font name by Ffont_xlfd_name.
17034 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17035 QCslant, and QCwidth.
17036 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17037 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17038 Compare fonts by EQ.
17039 (lookup_non_ascii_face): Deleted.
17040 (face_for_font): The 2nd argument changed.
17041 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17042 Check atomic font properties by case insensitive.
17043 (realize_non_ascii_face): Set face->overstrike correctly.
17044 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17045 (dump_realized_face): Get font name from
17046 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17047
17048 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17049 conditionals. Don't check enable_font_backend. Delete all codes
17050 used only when USE_FONT_BACKEND is not defined.
17051 (xic_create_xfontset): Original code deleted and renamed from
17052 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17053 (x_make_gc): Don't set GCFont in GCs.
17054 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17055 opened by "fixed".
17056 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17057 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17058 get_font_repertory_func.
17059
17060 * xfont.c: Include <stdlib.h> and "ccl.h".
17061 (struct xfont_info): New structure.
17062 (xfont_query_font): Deleted.
17063 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17064 moved from xterm.c.
17065 (xfont_driver): Adjusted for the change of struct font_driver.
17066 (compare_font_names): New function.
17067 (xfont_list_pattern): Sort font names case insensitively. Make
17068 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17069 (xfont_list): Return a list, not vector.
17070 (xfont_match): If the font doesn't have QCname property, generate
17071 a name from the other font properties.
17072 (xfont_open): Return a font-object. Adjusted for the change of
17073 struct font. Get underline_thickness and underline_position from
17074 font property. Don't update dpyinfo->smallest_font_height and
17075 dpyinfo->smallest_char_width.
17076 (xfont_close): Don't free struct font.
17077 (xfont_prepare_face): Adjusted for the change of struct font.
17078 (xfont_done_face): Deleted.
17079 (xfont_has_char): Adjusted for the change of struct font.
17080 (xfont_encode_char, xfont_draw): Likewise.
17081 (xfont_check): New function.
17082
17083 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17084 callback function.
17085 (xftfont_match): Adjusted for the format change of font-entity.
17086 (xftfont_open): Adjusted for the format change of font-entity and
17087 font-object. Adjusted for the change of struct font. Return a
17088 font-object. Don't update dpyinfo->smallest_font_height and
17089 dpyinfo->smallest_char_width.
17090 (xftfont_close): Block input while calling XftFontClose.
17091 (xftfont_prepare_face): Don't block input while calling
17092 xftfont_get_colors. Adjusted for the change of struct font.
17093 (xftfont_shape): Return value of error case fixed.
17094
17095 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17096
17097 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17098 conditionals.
17099 (FONT_WIDTH): Return (f)->max_width.
17100 (struct x_display_info): Delete member `font'.
17101 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17102 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17103 (struct x_output): Change type of `font' to `struct font *'.
17104
17105 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17106 conditionals. Don't check enable_font_backend. Delete all codes
17107 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17108 (x_per_char_metric, x_encode_char): Deleted.
17109 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17110 (x_compute_glyph_string_overhangs): Adjusted for the change of
17111 `struct face'.
17112 (x_draw_glyph_string_foreground)
17113 (x_draw_composite_glyph_string_foreground): Likewise.
17114 (x_draw_glyph_string): Likewise. Use font->underline_position and
17115 font->underline_thickness.
17116 (x_new_font): Renamed from x_new_fontset2.
17117 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17118 (x_check_font): Call `check' method of a font driver.
17119 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17120 (x_query_font, x_get_font_repertory): Deleted.
17121 (x_find_ccl_program): Renamed and moved to xfont.c.
17122 (x_redisplay_interface): Adjusted for the change of `struct
17123 redisplay_interface'.
17124
17125 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17126 conditionals. Don't check enable_font_backend. Delete all codes
17127 used only when USE_FONT_BACKEND is not defined. Surround non-used
17128 code by "#ifdef OLD_FONT" and "endif".
17129 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17130
17131 * w32font.h (struct w32font_info): New member.
17132 (FONT_COMPAT): New macro.
17133 (w32font_open_internal): Prototype adjusted.
17134
17135 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17136 OLD_FONT" and "endif".
17137
17138 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17139 conditionals. Don't check enable_font_backend. Delete all codes
17140 used only when USE_FONT_BACKEND is not defined.
17141 (w32font_open): Return a font-object. Make a font-object by
17142 font_make_object. Adjusted for the change of struct w32font_info.
17143 (w32font_close): Don't free struct font. Adjusted for the change
17144 of struct w32font_info.
17145 (w32font_encode_char, w32font_text_extents, w32font_draw):
17146 Adjusted for the change of struct w32font_info.
17147 (w32font_draw): Likewise.
17148 (w32font_list_internal): Return a list, not vector.
17149 (w32font_open_internal): Change the 4th arg to font-object.
17150 Adjusted for the change of struct w32font_info and font-object format.
17151 (add_font_name_to_list): Don't downcase names.
17152 (w32_enumfont_pattern_entity): Make a font-entity by
17153 font_make_entity. Adjusted for the format change of font-entity.
17154 Use FONT_SET_STYLE to set a style-related font property. If a
17155 font is scalable, set avgwidth property to 0. Set font-entity
17156 property by font_put_extra.
17157 (font_matches_spec): Adjusted for the format change of font-entity.
17158 (w32_weight_table, w32_decode_weight): New variables.
17159 (w32_encode_weight): New function.
17160 (fill_in_logfont): Adjusted for the format change of font-spec.
17161 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17162 weight value.
17163 (w32font_driver): Adjusted for the change of struct font_driver.
17164
17165 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17166 conditionals. Don't check enable_font_backend. Surround non-used
17167 code by "#ifdef OLD_FONT" and "endif".
17168 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17169 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17170
17171 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17172 conditionals. Don't check enable_font_backend. Delete all codes
17173 used only when USE_FONT_BACKEND is not defined. Surround non-used
17174 code by "#ifdef OLD_FONT" and "endif".
17175
17176 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17177 (uniscribe_open): Return value changed to font-object.
17178 Adjusted for the format change of font-object.
17179 (uniscribe_otf_capability): Adjusted for the change of struct font.
17180 (add_opentype_font_name_to_list): Don't downcase names.
17181 (uniscribe_font_driver): Adjusted for the change of struct
17182 font_driver.
17183
171842008-05-13 Chong Yidong <cyd@stupidchicken.com>
17185
17186 * dispnew.c (update_frame_1): Check if tty output is still valid
17187 before flushing it.
17188
171892008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17190
17191 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17192 to Gtk+ menus.
17193
171942008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17195
17196 * dired.c (file_name_completion): Tweak the code so as to always do it
17197 in a single pass. Tighten the scope of some variables.
17198
17199 * dired.c (Qdefault_directory): New var.
17200 (file_name_completion): Use it instead of Fexpand_file_name.
17201 (syms_of_dired): Initialize it.
17202
172032008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17204
17205 * fileio.c (double_dollars): Remove dead code.
17206
172072008-05-10 Eli Zaretskii <eliz@gnu.org>
17208
17209 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17210 Mention w32-get-true-file-attributes in doc string.
17211
17212 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17213
172142008-05-09 Glenn Morris <rgm@gnu.org>
17215
17216 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17217 2008-04-23.
17218
172192008-05-09 Eli Zaretskii <eliz@gnu.org>
17220
17221 Support for reporting owner and group of each file on MS-Windows:
17222 * dired.c (stat_uname, stat_gname): New functions, with special
17223 implementation for w32.
17224 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17225
17226 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17227 (dflt_group_name): New static variable.
17228 (dflt_group): Rename from the_group.
17229 (init_user_info): Init dflt_group fields. Get user's group name
17230 from LookupAccountSid.
17231 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17232 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17233 New initialization states.
17234 (globals_of_w32): Initialize them to zero. Initialize the default
17235 group name to "None".
17236 (GetFileSecurity_Name): New global var, the name of the function
17237 to call for GetFileSecurity.
17238 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17239 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17240 (get_file_security, get_security_descriptor_owner)
17241 (get_security_descriptor_group, is_valid_sid)
17242 (get_file_security_desc, get_rid, get_name_and_id)
17243 (get_file_owner_and_group): New functions.
17244 (stat): Use get_file_security_desc and get_file_owner_and_group to
17245 report the owner and primary group of each file. Don't ignore the
17246 high 32 bits of file's size, now that st_size is 64-bit wide.
17247 Fix test when to get true file attributes.
17248 (init_user_info): Use get_rid instead of equivalent inline code.
17249 (fstat): Don't ignore the high 32 bits of file's size.
17250
172512008-05-09 Chong Yidong <cyd@stupidchicken.com>
17252
17253 * image.c (png_load): Use correct bit-depth for setting background
17254 color.
17255
172562008-05-08 Eli Zaretskii <eliz@gnu.org>
17257
17258 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17259 epa-hook.elc.
17260
172612008-05-08 Juanma Barranquero <lekktu@gmail.com>
17262
17263 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17264
172652008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17266
17267 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17268 because the original parameters are in pure storage now.
17269 (mac_window): Remove unused params. Update callers.
17270
172712008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17272
17273 * lread.c (substitute_object_recurse): Use lower-level primitives.
17274 Don't signal errors when traversing sub-char-tables.
17275 Don't loop over all the possible characters when traversing char-tables.
17276
17277 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17278 just like we do in print.c.
17279
172802008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17281
17282 * minibuf.c (Ftry_completion): Remove code left over from when we used
17283 scmp instead of Fcompare_strings.
17284
172852008-05-04 Juanma Barranquero <lekktu@gmail.com>
17286
17287 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17288
172892008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17290
17291 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17292 Create bitmap context in native byte order.
17293
17294 * macterm.c (XDrawLine)
17295 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17296 context in native byte order.
17297
172982008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17299
17300 * config.in: Regenerate.
17301
17302 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17303 New definitions for Image I/O support.
17304 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17305 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17306 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17307 (mac_data_provider_release_data, image_load_image_io)
17308 [USE_MAC_IMAGE_IO]: New functions.
17309 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17310 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17311 (init_image_func_pointer) [MAC_OSX]: Remove function.
17312 (image_load_quartz2d) [MAC_OSX]: Check availability of
17313 CGImageCreateWithPNGDataProvider at compile time.
17314 Use lowercase `false' for boolean constant.
17315 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17316 Use image_load_image_io.
17317 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17318 Don't check MyCGImageCreateWithPNGDataProvider.
17319 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17320 Don't call init_image_func_pointer.
17321
17322 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17323
17324 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17325 Make variable non-static.
17326 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17327 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17328
17329 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17330 (RED_FROM_ULONG): Mask off higher bits.
17331 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17332
17333 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17334 Include AvailabilityMacros.h.
17335 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17336 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17337
173382008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17339
17340 * chartab.c (Fset_char_table_range): If range is t, really set all
17341 chars to that value.
17342
173432008-05-03 Eli Zaretskii <eliz@gnu.org>
17344
17345 * dired.c (Ffile_attributes): Don't allow the device number become
17346 negative.
17347
173482008-05-02 Daiki Ueno <ueno@unixuser.org>
17349
17350 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17351
173522008-05-02 Juri Linkov <juri@jurta.org>
17353
17354 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17355 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17356 DEFAULT argument as a list of default values in docstrings.
17357
173582008-05-01 Chong Yidong <cyd@stupidchicken.com>
17359
17360 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17361
173622008-05-01 Martin Rudalics <rudalics@gmx.at>
17363
17364 * dispnew.c (change_frame_size_1): Preserve small windows when
17365 shrinking frames by calling set_window_height|width with third
17366 arg 2.
17367
17368 * window.h (struct window): Replace field too_small_ok by field
17369 resize_proportionally.
17370
17371 * window.c (make_window): Initialize resize_proportionally.
17372 (enlarge_window): Temporarily set resize_proportionally to make
17373 sure that shrink_windows does scale the window proportionally.
17374 (shrink_windows): When window has resize_proportionally set try
17375 to shrink it proportionally by stealing from other windows.
17376 (struct saved_window, Fset_window_configuration)
17377 (compare_window_configurations): Handle resize_proportionally.
17378 (WINDOW_TOTAL_SIZE): New macro.
17379 (window_min_size, shrink_windows, size_window): Use it.
17380 (check_min_window_sizes): Remove. Invalid values of
17381 window-min-height|width are handled by window_min_size_2 now.
17382 (size_window, Fsplit_window, enlarge_window)
17383 (adjust_window_trailing_edge, grow_mini_window): Don't call
17384 check_min_window_sizes.
17385 (window_min_size_2, window_min_size_1, window_min_size):
17386 New argument safe_p for retrieving "safe" minimum sizes.
17387 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17388 (adjust_window_trailing_edge, grow_mini_window):
17389 Adjust arguments of window_min_size... functions.
17390 (shrink_windows): Argument min_size removed. New argument
17391 safe_p allows shrinking windows to their safe minimum sizes.
17392 Calculate minimum size and decide whether a window shall be
17393 deleted for each window individually.
17394 (size_window): When nodelete_p equals 2, tell shrink_windows to
17395 delete windows only if their new minimum size is no more safe.
17396 (shrink_window_lowest_first): Call window_min_size_1 to make
17397 sure to preserve modeline of bottom-most window when resizing
17398 the minibuffer.
17399 (Fset_window_configuration, Fcurrent_window_configuration)
17400 (compare_window_configurations): Do not handle
17401 window-min-height|width any more.
17402 (syms_of_window): Clarify window-min-height|width doc-strings.
17403
174042008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17405
17406 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17407 some more. Copy some of the code from Ftry_completions.
17408 Remove special case code that dates back to initial revision when the
17409 slash was only added when necessary and that can't trigger nowadays.
17410
174112008-04-27 Kenichi Handa <handa@m17n.org>
17412
17413 * font.c (font_prop_validate): Signal `error' instead of `font'.
17414
174152008-04-29 Jason Rumney <jasonr@gnu.org>
17416
17417 * w32fns.c (Fw32_battery_status): New defun.
17418 (syms_of_w32fns): Defsubr it.
17419
174202008-04-28 Andreas Schwab <schwab@suse.de>
17421
17422 * dired.c (file_name_completion): Fix another mixing of encoded
17423 and decoded names.
17424
174252008-04-28 Juanma Barranquero <lekktu@gmail.com>
17426
17427 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17428
174292008-04-27 Juanma Barranquero <lekktu@gmail.com>
17430
17431 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17432
174332008-04-27 Andreas Schwab <schwab@suse.de>
17434
17435 * dired.c (file_name_completion): Fix inappropriate mixing of
17436 encoded and decoded names.
17437
17438 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17439
17440 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17441
174422008-04-26 Eli Zaretskii <eliz@gnu.org>
17443
17444 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17445 2008-03-31, it's not needed anymore with `struct stat' definition
17446 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17447 for the same reasons.
17448
174492008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17450
17451 * m/sparc.h: Additional redefinitions for GNU/Linux.
17452
174532008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17454
17455 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17456 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17457 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17458 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17459 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17460 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17461 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17462 Likewise.
17463
17464 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17465 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17466 (mac_ax_number_of_characters): Add externs.
17467 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17468 [USE_MAC_TSM]: Likewise.
17469 (mac_handle_text_input_event) [MAC_OSX]:
17470 Handle kEventTextInputOffsetToPos for no active input area case.
17471 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17472 (mac_handle_document_access_event)
17473 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17474 (install_application_handler) [MAC_OSX]: Register handlers for
17475 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17476 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17477 Register mac_handle_document_access_event.
17478
17479 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17480 Make functions non-static.
17481
174822008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17483
17484 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17485 (read_file_name_completion_ignore_case, insert_default_directory)
17486 (Qdefault_directory): Move to minibuffer.el.
17487 (Fread_file_name): Call the new `read-file-name' instead.
17488
174892008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17490
17491 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17492 Make function non-static.
17493 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17494 Remove function.
17495 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17496 Move to mactoolbox.c.
17497 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17498
17499 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17500 (mac_rect_make): New macro.
17501
17502 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17503 instead of float.
17504 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17505 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17506 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17507 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17508 CGRectMake.
17509 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17510 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17511 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17512 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17513 instead of WindowRef in argument type.
17514 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17515 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17516 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17517 instead of DISPLAY. All uses changed.
17518 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17519 (x_calc_absolute_position): Simplify so as not to use
17520 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17521
17522 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17523 instead of WindowRef in argument type.
17524 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17525 [TARGET_API_MAC_CARBON]: Remove externs.
17526 (create_apple_event, mac_event_parameters_to_lisp)
17527 [TARGET_API_MAC_CARBON]: Add externs.
17528
17529 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17530 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17531 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17532 is clicked.
17533 (x_activate_menubar): Remove extern for saved_menu_event_location.
17534 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17535 Move from mac.c.
17536
175372008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17538
17539 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17540 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17541
175422008-04-23 Jason Rumney <jasonr@gnu.org>
17543
17544 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17545 attributes only for local files.
17546
17547 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17548 default to Qlocal.
17549
175502008-04-22 Juri Linkov <juri@jurta.org>
17551
17552 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17553 read-buffer-to-switch instead of using the letter "B".
17554
175552008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17556
17557 * fileio.c (Qdefault_directory): New variable.
17558 (Fread_file_name): Use it to pass `dir' to the completion functions.
17559
175602008-04-20 Chong Yidong <cyd@stupidchicken.com>
17561
17562 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17563
175642008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17565
17566 * keyboard.c (Vpre_help_message): Remove.
17567 (show_help_echo): Remove default C code.
17568
17569 * dired.c (directory_files_internal, file_name_completion):
17570 Only call ENCODE_FILE if the string is indeed decoded.
17571
175722008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17573
17574 * Makefile.in (TOOLKIT_DEFINES): Remove.
17575 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17576
175772008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17578
17579 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17580 (mactoolbox.o): New target.
17581
17582 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17583 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17584
17585 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17586 Use mac_set_frame_window_background instead of XSetWindowBackground.
17587 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17588 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17589 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17590 instead of SetWindowTitleWithCFString.
17591 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17592 Move function to mactoolbox.c.
17593 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17594 Use mac_set_window_modified instead of SetWindowModified.
17595 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17596 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17597 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17598 FrontNonFloatingWindow. Use mac_activate_window instead of
17599 ActivateWindow. Use mac_active_non_floating_window instead of
17600 ActiveNonFloatingWindow.
17601 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17602 Use mac_show_hourglass and mac_hide_hourglass.
17603 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17604 instead of GetGlobalMouse.
17605 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17606 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17607 Use mac_bring_window_to_front instead of BringToFront.
17608 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17609 mactoolbox.c.
17610 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17611 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17612 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17613 mactoolbox.c.
17614
17615 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17616 (XtPointer): Move typedef from macmenu.c.
17617 (enum button_type): Move enum from macmenu.c.
17618 (widget_value): Move typedef from macmenu.c.
17619 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17620 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17621 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17622 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17623 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17624 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17625 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17626 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17627 (Selection): Move typedef from macselect.c.
17628 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17629 macterm.c.
17630 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17631 (mac_is_window_collapsed, mac_bring_window_to_front)
17632 (mac_send_window_behind, mac_hide_window, mac_show_window)
17633 (mac_collapse_window, mac_front_non_floating_window)
17634 (mac_active_non_floating_window, mac_activate_window)
17635 (mac_move_window_structure, mac_move_window, mac_size_window)
17636 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17637
17638 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17639 (enum mac_menu_kind): Move enum to mactoolbox.c.
17640 (min_menu_id): Move variable to mactoolbox.c.
17641 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17642 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17643 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17644 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17645 [TARGET_API_MAC_CARBON]: Likewise.
17646 (XtPointer): Move typedef to macgui.h.
17647 (enum button_type): Move enum to macgui.h.
17648 (widget_value): Move typedef to macgui.h.
17649 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17650 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17651 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17652 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17653 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17654 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17655 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17656 (popup_activated_flag): Make variable non-static.
17657 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17658 (add_menu_item, fill_menu, dispose_menus):
17659 Move functions to mactoolbox.c.
17660 (restore_show_help_function, menu_target_item_handler)
17661 (install_menu_target_item_handler, mac_handle_dialog_event)
17662 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17663 [TARGET_API_MAC_CARBON]: Likewise.
17664 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17665 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17666 (find_and_call_menu_selection, name_is_separator): Make function
17667 non-static.
17668 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17669 to mactoolbox.c.
17670 (set_frame_menubar): Don't call install_menu_quit_handler.
17671 (menu_item_selection): New variable.
17672 (mac_menu_show): Use create_and_show_popup_menu.
17673 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17674 selection but set variable menu_item_selection. All uses changed.
17675 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17676 Call install_menu_quit_handler. Move to mactoolbox.c.
17677
17678 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17679 (Selection): Move typedef to macgui.h.
17680 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17681 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17682 Make variables non-static.
17683 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17684 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17685 Make functions non-static.
17686 (Vmac_service_selection) [MAC_OSX]: Likewise.
17687 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17688 (mac_valid_selection_target_p, mac_clear_selection)
17689 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17690 (mac_put_selection_value, mac_selection_has_target_p)
17691 (mac_get_selection_value, mac_get_selection_target_list)
17692 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17693 Move functions to mactoolbox.c.
17694 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17695 Likewise.
17696 (copy_scrap_flavor_data, mac_handle_service_event)
17697 (install_service_handler) [MAC_OSX]: Likewise.
17698 (syms_of_macselect) <Vmac_dnd_known_types>:
17699 Use mac_dnd_default_known_types.
17700
17701 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17702 Move to mactoolbox.c.
17703 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17704 (Fx_selection_owner_p): Add EXFUN.
17705 (install_window_handler, remove_window_handler, XSetWindowBackground):
17706 Remove externs.
17707 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17708 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17709 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17710 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17711 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17712 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17713 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17714 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17715 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17716 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17717 (mac_valid_selection_target_p, mac_clear_selection)
17718 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17719 (mac_put_selection_value, mac_selection_has_target_p)
17720 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17721 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17722 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17723 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17724 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17725 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17726 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17727 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17728 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17729
17730 * mactoolbox.c: New file.
17731
177322008-04-18 Jason Rumney <jasonr@gnu.org>
17733
17734 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17735
177362008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17737
17738 * character.c (Fmultibyte_char_to_unibyte):
17739 Return latin1 chars unchanged.
17740
17741 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17742 relocated if it points to `name'.
17743
177442008-04-17 Kenichi Handa <handa@m17n.org>
17745
17746 * data.c (Faset): Allow setting a multibyte character in an
17747 ASCII-only unibyte string.
17748
17749 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17750
177512008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17752
17753 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17754 done in config.h.
17755
177562008-04-16 Juanma Barranquero <lekktu@gmail.com>
17757
17758 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17759 (Fchar_direction): Add usage in the docstring.
17760
177612008-04-15 Chong Yidong <cyd@stupidchicken.com>
17762
17763 * keyboard.c (read_key_sequence): Remove always-true checks.
17764
177652008-04-14 Jason Rumney <jasonr@gnu.org>
17766
17767 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17768 compatibility struct, for better underline positioning.
17769
177702008-04-13 David Hansen <david.hansen@gmx.net>
17771
17772 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17773 string.
17774
177752008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17776
17777 * m/hp800.h (XUINT, XSET): Remove.
17778
177792008-04-12 Juanma Barranquero <lekktu@gmail.com>
17780
17781 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17782 previous change.
17783
177842008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17785
17786 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17787 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17788
177892008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17790
17791 * keymap.h (map_keymap_canonical): Declare.
17792 * xmenu.c (single_keymap_panes): Use it.
17793
177942008-04-11 Glenn Morris <rgm@gnu.org>
17795
17796 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17797 set the target's value to that of the alias.
17798
177992008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17800
17801 * term.c (set_tty_color_mode): Left over typo.
17802
178032008-04-10 Michael Albinus <michael.albinus@gmx.de>
17804
17805 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17806 only after check for file name handler functions. Signal, when
17807 native functionality is not supported.
17808 (syms_of_fileio): Declare it unconditionally.
17809
178102008-04-10 Jason Rumney <jasonr@gnu.org>
17811
17812 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17813 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17814
17815 * w32.c (logon_network_drive): Also logon to remote drives that
17816 are mapped to drive letters.
17817
178182008-04-10 Glenn Morris <rgm@gnu.org>
17819
17820 * xdisp.c (truncate-partial-width-windows): Doc fix.
17821
178222008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17823
17824 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17825 Move functions to minibuffer.el.
17826 (syms_of_fileio): Don't declare them.
17827
178282008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17829
17830 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17831 (syms_of_minibuf): Remove its initialization.
17832
17833 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17834
178352008-04-09 Juanma Barranquero <lekktu@gmail.com>
17836
17837 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17838
178392008-04-09 Jason Rumney <jasonr@gnu.org>
17840
17841 * makefile.w32-in (distclean): Delete makefile too.
17842 (maintainer-clean): New target.
17843
17844 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17845
17846 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17847 for new font backend and composite cases.
17848
178492008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17850
17851 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17852 Most of the code moved to run_timers.
17853 (do_pending_atimers): Call run_timers.
17854 (run_timers): New function.
17855
17856 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17857 run atimers.
17858
17859 * process.c (wait_reading_process_output): The same as above.
17860
178612008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17862
17863 * minibuf.c (last_exact_completion): Remove variable.
17864 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17865 (complete_and_exit_1, complete_and_exit_2)
17866 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17867 (Fdisplay_completion_list, display_completion_list_1)
17868 (Fminibuffer_completion_help, Fself_insert_and_exit)
17869 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17870 minibuffer.el.
17871 (syms_of_minibuf): Remove corresponding initializations.
17872
17873 * keyboard.c (Qdeactivate_mark): New var.
17874 (command_loop_1): Use it to call `deactivate-mark'.
17875 (syms_of_keyboard): Initialize it.
17876
17877 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17878 to another frame.
17879 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17880 Don't call set_tty_color_mode.
17881 (store_frame_param): Reset previous_frame rather than call
17882 set_tty_color_mode.
17883 * term.c (set_tty_color_mode): Rewrite.
17884 * dispextern.h (set_tty_color_mode): New type.
17885 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17886
178872008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17888
17889 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17890 for generic chars, which do not exist any more in emacs-unicode.
17891
178922008-04-08 Michael Albinus <michael.albinus@gmx.de>
17893
17894 * coding.c (detect_coding_emacs_mule)
17895 (Ffind_operation_coding_system): Fix typo.
17896
178972008-04-08 Jason Rumney <jasonr@gnu.org>
17898
17899 * w32uniscribe.c (SNAME): Extract only symbol name.
17900
17901 * w32font.h (struct w32_metric_cache): New struct.
17902 (w32font_info): Use it.
17903 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17904 (CACHE_BLOCKSIZE): New constants.
17905
17906 * w32font.c (Qja, Qko, Qzh): New symbols.
17907 (syms_of_w32font): Initialise them.
17908 (font_matches_spec): Use them to filter by language.
17909 (recompute_cached_metrics): Remove function.
17910 (compute_metrics, clear_cached_metrics): New functions.
17911 (w32font_encode_char): Use them to manage metric cache.
17912 (w32font_text_extents): Cache metrics for all glyphs on demand.
17913 Delay converting glyph indices to WORD until needed.
17914 (w32font_open_internal): Initialize metric cache to empty.
17915 (registry_to_w32_charset): Charset should always be a symbol.
17916 (fill_in_logfont, list_all_matching_fonts): Family should
17917 always be a symbol.
17918
179192008-04-06 Jason Rumney <jasonr@gnu.org>
17920
17921 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17922 Give up if glyph indices not supported. Use uniscribe obtained
17923 ABC widths for individual metrics. Map glyph clusters back to
17924 characters using fClusterStart flag. Return number of glyphs
17925 produced, not chars processed.
17926 (uniscribe_shape): Map char at FROM to current glyph.
17927
179282008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17929
17930 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17931 Use SetMenuItemHierarchicalMenu.
17932
179332008-04-05 Jason Rumney <jasonr@gnu.org>
17934
17935 * image.c (pbm_load): Allow color values up to 65535.
17936 Throw an error if max_color_idx is outside the supported range.
17937 Report an error when image size is invalid.
17938 Read two bytes at a time when raw images have max_color_idx above 255.
17939
aac0c6e3
MR
179402008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17941
17942 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17943 append "CCL: Quitted" when the CCL program is quitted.
17944 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17945
17946 * ccl.h (struct ccl_program): New member quit_silently.
17947
179482008-04-05 Chong Yidong <cyd@stupidchicken.com>
17949
17950 * search.c (compile_pattern_1): Treat non-nil and non-string of
17951 search-spaces-regexp as nil.
17952
17953 * minibuf.c (Fassoc_string): Tweak docstring.
17954
179552008-04-05 Eli Zaretskii <eliz@gnu.org>
17956
17957 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17958 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17959 2008-03-14 to force inode be positive.
17960
17961 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17962 _S_* ones, since we now use our own sys/stat.h.
17963 (stat, fstat): Don't mangle the inode number.
17964 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17965
179662008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17967
17968 * frame.h (struct frame): Give one more bit to `visible' since we use
17969 values larger than 1 to indicate obscured frames on ttys.
17970
17971 * keymap.c (Qkeymap_canonicalize): New var.
17972 (Fmap_keymap_internal): New fun.
17973 (describe_map): Use keymap-canonicalize.
17974
17975 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17976 (Fundo_boundary): Set them.
17977 (syms_of_undo): Initialize them.
17978 (record_point): Use them instead of last_point_position*.
17979 (last_undo_buffer): Change type.
17980
179812008-04-04 Jason Rumney <jasonr@gnu.org>
17982
17983 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17984 (recompute_cached_metrics): Don't set ascent and descent per char.
17985
17986 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17987 (uniscribe_check_otf): Add GC protection before consing.
17988 Rearrange loop for counting features.
17989
179902008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17991
17992 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17993 buffer with byte-size of source buffer.
17994
179952008-04-03 Chong Yidong <cyd@stupidchicken.com>
17996
17997 * callint.c (Fcall_interactively): Handle temporary region even
17998 when shift-select-mode is off.
17999
180002008-04-03 Jason Rumney <jasonr@gnu.org>
18001
18002 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18003
180042008-04-03 Kenichi Handa <handa@m17n.org>
18005
18006 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18007 (CATEGORY_MASK_UTF_16): Likewise.
18008 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18009 binary file.
18010 (detect_coding): Add null-byte detection for a binary file.
18011 (detect_coding_system): Likewise.
18012
180132008-04-03 Jason Rumney <jasonr@gnu.org>
18014
18015 * w32uniscribe.c: New file.
18016
18017 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18018
18019 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18020
18021 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18022 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18023 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18024 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18025 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18026 (Qphonetic): New symbols.
18027 (syms_of_w32font): Initialize them.
18028 (font_supported_scripts): Use them.
18029 (w32font_list_family): List all charsets.
18030 (w32font_text_extents, recompute_cached_metrics): Fix metric
18031 calculations.
18032 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18033 Give opentype fonts their own format.
18034 (font_matches_spec): New arguments backend and logfont.
18035 Handle :otf spec for uniscribe backend.
18036 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18037 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18038
18039 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18040 font backend.
18041 (globals_of_w32fns): Initialize uniscribe font backend.
18042
18043 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18044 dependencies.
18045 (w32uniscribe.$(O)): New file to build.
18046 (FONT_OBJ): Include w32uniscribe.$(O).
18047 (LIBS): Add uniscribe libraries.
18048
18049 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18050
180512008-04-02 Chong Yidong <cyd@stupidchicken.com>
18052
18053 * callint.c (Vshift_select_mode): New var.
18054 (Finteractive): Document new ^ spec.
18055 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18056 is present.
18057
18058 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18059 (command_loop_1): Avoid running the direct display versions of
18060 forward-char and backward-char if shift-selection may occur.
18061 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18062 shift-translation takes place.
18063
18064 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18065 avoid clobbering by define-minor-mode.
18066
18067 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18068 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18069
18070 * syntax.c (Fforward_word): Add ^ interactive spec.
18071
18072 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18073 (Fscroll_right): Add ^ interactive spec.
18074
180752008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18076
18077 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18078
18079 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18080
18081 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18082
180832008-03-31 Juri Linkov <juri@jurta.org>
18084
18085 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18086
180872008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18088
18089 * gtkutil.c (xg_set_geometry): Fix indentation.
18090 (xg_resize_outer_widget): Remove.
18091 (x_wm_size_hint_off): Fix indentation.
18092 (xg_frame_set_char_size): Call flush_and_sync after
18093 gtk_window_resize.
18094 (x_wm_set_size_hint): Pass NULL as geometry window to
18095 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18096 Add menu bar and tool bar height to base height.
18097 (xg_update_frame_menubar, free_frame_menubar)
18098 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18099 (update_frame_tool_bar, free_frame_tool_bar):
18100 Change xg_resize_outer_widget to xg_frame_set_char_size.
18101
181022008-03-30 Michael Albinus <michael.albinus@gmx.de>
18103
18104 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18105 (Fdbus_call_method): New parameter TIMEOUT.
18106 (dbus-send-signal): Optimize UNGCPRO call.
18107
181082008-03-29 Juri Linkov <juri@jurta.org>
18109
18110 * window.c (Fdisplay_buffer): Move call to
18111 Vsplit_window_preferred_function out of conditions that check
18112 if window is eligible for vertical splitting.
18113 When Vsplit_window_preferred_function is non-nil, call it and use
18114 its non-nil return value as window. Otherwise, continue doing
18115 vertical splitting using Fsplit_window with arg horflag=nil.
18116 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18117 default value from `split-window' to nil.
18118
181192008-03-29 Juri Linkov <juri@jurta.org>
18120
18121 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18122 for interactive code letters 'b' and 'B'.
18123
181242008-03-29 Eli Zaretskii <eliz@gnu.org>
18125
18126 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18127 multibyte string.
18128
181292008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18130
18131 * keyboard.c (pending_funcalls): New var.
18132 (timer_check): Run it.
18133 (syms_of_keyboard): Initialize it.
18134 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18135 (Vdelete_terminal_functions): New vars.
18136 (syms_of_terminal): Initialize them.
18137 (Fdelete_terminal): Run delete-terminal-functions.
18138 * xdisp.c (safe_eval): Rewrite.
18139 (safe_call2): New fun.
18140 * frame.c (Qdelete_frame_functions): New var.
18141 (syms_of_frame): Initialize it.
18142 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18143 * lisp.h (safe_call2, pending_funcalls): Declare.
18144
181452008-03-28 Andreas Schwab <schwab@suse.de>
18146
18147 * indent.c (Fmove_to_column): Move declaration before statements.
18148
181492008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18150
18151 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18152 (struct frame): Use bit fields for boolean vars.
18153
18154 * process.c (server_accept_connection): Simplify naming.
18155 (emacs_get_tty_pgrp): Use SDATA.
18156
18157 * coding.c (decode_coding_object): Fix last change.
18158
181592008-03-27 Jason Rumney <jasonr@gnu.org>
18160
18161 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18162
181632008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18164
18165 * charset.c (Fdefine_charset_internal): Change the way of
18166 registering charsets in Vcharset_order_list.
18167 (syms_of_charset): Make the charset `eight-bit' supplementary.
18168
181692008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18170
18171 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18172 operations, to avoid having the difference between pointers
18173 overflow.
18174
181752008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18176
18177 * indent.c (check_display_width): New fun.
18178 (scan_for_column): Use it.
18179
18180 * data.c (syms_of_data): Mark most-positive-fixnum and
18181 most-negative-fixnum as constants.
18182
18183 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18184
18185 * indent.c (scan_for_column): Extract from current_column_1.
18186 Merge with the same code from Fmove_to_column.
18187 (current_column_1, Fmove_to_column): Use it.
18188
181892008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18190
18191 * keymap.c (map_keymap_internal): New fun.
18192 (map_keymap): Use it.
18193 (Fmap_keymap_internal): New fun.
18194 (Fmap_keymap): Remove left-out test from before make_save_value.
18195
18196 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18197
18198 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18199 Use XCAR/XCDR.
18200
18201 * process.h (struct Lisp_Process): Remove filter_multibyte.
18202 * process.c (QCfilter_multibyte): Remove.
18203 (setup_process_coding_systems): Don't use filter_multibyte.
18204 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18205 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18206 (Fset_process_filter_multibyte): Change the coding-system to
18207 approximate the previous behavior.
18208 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18209 coding-system.
18210
18211 * coding.c (decode_coding_object): When not decoding into a buffer,
18212 obey the coding system's preference of (uni|multi)byte.
18213
182142008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18215
18216 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18217 every char is changed and has a different byte-length.
18218 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18219 Fix int -> EMACS_INT.
18220
182212008-03-23 David Hansen <david.hansen@gmx.net>
18222
18223 * dbusbind.c (xd_read_message): Remove extra copying of message
18224 strings. Check for NULL `interface' or `member'.
18225
182262008-03-22 Eli Zaretskii <eliz@gnu.org>
18227
18228 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18229 cFileName a file name that includes `?' characters, use the 8+3
18230 alias in cAlternateFileName instead.
18231
182322008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18233
18234 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18235
182362008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18237
18238 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18239 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18240 work on current_buffer only instead (that was already the case
18241 for some of the code anyway).
18242 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18243 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18244 (SET_PT, SET_PT_BOTH): Adjust.
18245 * intervals.h (set_point, temp_set_point, set_point_both)
18246 (temp_set_point_both): Remove redundant declarations.
18247
182482008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18249
18250 * fileio.c (Finsert_file_contents):
18251 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18252 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18253 when buffer != current_buffer anyway.
18254
182552008-03-20 Andreas Schwab <schwab@suse.de>
18256
18257 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18258 as default.
18259
182602008-03-19 Jason Rumney <jasonr@gnu.org>
18261
18262 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18263 (syms_of_w32fns): Initialize them.
18264 (HOURGLASS_ID): New constant.
18265 (x_window_to_frame): Don't check hourglass_window.
18266 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18267 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18268 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18269 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18270 Only change the cursor if hourglass is not active.
18271 (Fx_create_frame): Initialize frame's current_cursor.
18272 (hourglass_atimer): Remove.
18273 (hourglass_started): New function.
18274 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18275 (show_hourglass): Adapt to w32, changing argument to frame.
18276
18277 * w32term.h (struct w32_output): Remove hourglass_window.
18278 Add current_cursor.
18279
18280 * eval.c (call_debugger, Fsignal):
18281 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18282 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18283 (Fexecute_extended_command, cancel_hourglass_unwind):
18284 * minibuf.c (read_minibuf):
18285 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18286
182872008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18288
18289 * window.c (run_funs): New fun.
18290 (run_window_configuration_change_hook): Use it to run the buffer-local
18291 and the global part of the hook.
18292
18293 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18294 (unwind_format_mode_line): Restore selected window.
18295 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18296
182972008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18298
18299 * editfns.c (Fchar_equal): Check they are valid characters.
18300
18301 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18302
183032008-03-17 Andreas Schwab <schwab@suse.de>
18304
18305 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18306 against a charset.
18307
18308 * lisp.h (Fbuffer_list): Declare.
18309
183102008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18311
aac0c6e3
MR
18312 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18313 handlebox_widget is != 0.
18314
183152008-03-16 Juri Linkov <juri@jurta.org>
18316
18317 * callint.c (Fcall_interactively): For interactive code letters
18318 'b' and 'B' put the buffer list into the list of default "future"
18319 values of the minibuffer.
18320
183212008-03-16 Andreas Schwab <schwab@suse.de>
18322
18323 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18324 modifiers.
18325
18326 * regex.c (re_match_2_internal): Correct matching of a charset
18327 against latin-1 characters.
18328
183292008-03-16 Kenichi Handa <handa@m17n.org>
18330
18331 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18332 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18333 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18334 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18335 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18336 CHAR_STRING_ADVANCE.
18337 (produce_chars): Fix for the case that the source and the
18338 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18339 instead of CHAR_STRING_ADVANCE.
18340 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18341 STRING_CHAR_ADVANCE.
18342
183432008-03-15 Andreas Schwab <schwab@suse.de>
18344
18345 * regex.c (re_match_2_internal): Correct matching of eight bit
18346 characters in unibyte strings.
18347
183482008-03-15 Martin Rudalics <rudalics@gmx.at>
18349
18350 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18351 at end of range when it coincides with the end of the buffer.
18352
183532008-03-14 Eli Zaretskii <eliz@gnu.org>
18354
18355 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18356
18357 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18358
183592008-03-14 Jason Rumney <jasonr@gnu.org>
18360
18361 * editfns.c (initial_tz): New variable.
18362 (syms_of_editfns): Initialize it.
18363 (Fset_time_zone_rule): Set it when first called.
18364 Use it when TZSTRING is nil.
18365
18366 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18367 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18368 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18369 (globals_of_w32fns): Initialize them.
18370 (compute_tip_xy): Use them to position tooltips.
18371
183722008-03-14 Glenn Morris <rgm@gnu.org>
18373
18374 * emacs.c (main): Revert previous change.
18375 (standard_args): Revert -internal-script back to -scriptload,
18376 and remove the long-option form.
18377
183782008-03-13 Glenn Morris <rgm@gnu.org>
18379
18380 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18381 Remove option -enable-font-backend.
18382
183832008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18384
18385 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18386
183872008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18388
18389 * xterm.c (x_connection_closed): For GTK: If this is the last
18390 terminal just exit without closing the display.
18391
183922008-03-11 Jason Rumney <jasonr@gnu.org>
18393
18394 * w32font.c (w32font_full_name): Use floor to round.
18395
f0131492 183962008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18397
18398 * sound.c (alsa_configure): Declare vol at beginning of block.
18399
18400 * fontset.c (Ffontset_info): Remove extra semicolon.
18401
184022008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18403
18404 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18405 size of resulting string.
18406
184072008-03-10 Jason Rumney <jasonr@gnu.org>
18408
18409 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18410
184112008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18412
18413 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18414 Don't pretend as if characters with display property haven't been
18415 consumed for string-replacing-string case.
18416
184172008-03-08 Kim F. Storm <storm@cua.dk>
18418
18419 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18420 (get_next_display_element, next_element_from_string)
18421 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18422
184232008-03-08 Andreas Schwab <schwab@suse.de>
18424
18425 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18426
184272008-03-06 Jason Rumney <jasonr@gnu.org>
18428
18429 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18430 when charset not specified. Only translate ANSI to unicode when
18431 font_type is truetype.
18432 (w32font_coverage_ok): New function.
18433 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18434
184352008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18436
18437 * lread.c (Fread_char): Resolve modifiers.
18438 (Fread_char_exclusive): Likewise.
18439
18440 * character.c (char_resolve_modifier_mask): New function.
18441 (char_string): Use char_resolve_modifier_mask.
18442 (Fchar_resolve_modifiers): New function.
18443 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18444 function.
18445
184462008-03-04 Jason Rumney <jasonr@gnu.org>
18447
18448 * makefile.w32-in: Always include w32font.c in the build.
18449 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18450
184512008-03-04 Andreas Schwab <schwab@suse.de>
18452
18453 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18454 (versionclean): Likewise.
18455
184562008-03-04 Juanma Barranquero <lekktu@gmail.com>
18457
18458 * .cvsignore: Add oo.
18459
184602008-03-03 Andreas Schwab <schwab@suse.de>
18461
18462 * coding.c (decode_coding_object): Inhibit gap shrinking while
18463 decoding in place.
18464
184652008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18466
18467 * w32term.c: Remove unused include "gnu.h".
18468 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18469
18470 * gnu.h: Rename to ...
18471 * emacs-icon.h: ... this.
18472 * xterm.c: Use emacs-icon.h instead of gnu.h.
18473 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18474
184752008-03-03 Juanma Barranquero <lekktu@gmail.com>
18476
18477 * w32font.c: Include math.h.
18478
184792008-03-03 Jason Rumney <jasonr@gnu.org>
18480
18481 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18482 Compute options separately.
18483 (w32font_open_internal): Set glyph_idx before caching metrics.
18484
18485 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18486 Define if system headers don't.
18487 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18488 (w32font_encode_char): Don't declare here.
18489
18490 * w32font.c (Quniscribe, QCformat): New symbols.
18491 (syms_of_w32font): Define them.
18492 (w32font_has_char): Indicate uncertainty.
18493 (w32font_encode_char): Encode as glyph point. Make static.
18494 (recompute_cached_metrics): New function.
18495 (w32font_open_internal): Use it. Set font to use glyph points
18496 initially. Set format based on type of font.
18497 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18498 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18499 on it. Set format based on information available here.
18500 (add_font_entity_to_list): Identify backend based on opentype_only.
18501
185022008-03-02 Andreas Schwab <schwab@suse.de>
18503
18504 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18505
18506 * coding.c (decode_coding_big5, produce_chars):
18507 Fix typos in last change.
18508
185092008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18510
18511 * gnu.h: New icon.
18512
185132008-03-02 Kenichi Handa <handa@m17n.org>
18514
18515 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18516 `dos', don't decode '\r' if that is the last in the source.
18517 (decode_coding_utf_16, decode_coding_emacs_mule)
18518 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18519 (decode_coding_raw_text, decode_coding_charset): Likewise.
18520 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18521
185222008-03-01 Jason Rumney <jasonr@gnu.org>
18523
18524 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18525
185262008-03-01 Kim F. Storm <storm@cua.dk>
18527
18528 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18529
185302008-03-01 Jason Rumney <jasonr@gnu.org>
18531
18532 * w32font.c (w32font_full_name): New function.
18533 (w32font_open_internal): Use it.
18534
185352008-03-01 Kim F. Storm <storm@cua.dk>
18536
18537 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18538
185392008-03-01 Jason Rumney <jasonr@gnu.org>
18540
18541 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18542
185432008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18544
18545 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18546 xg_frame_resized when the event is for the edit widget.
18547
18548 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18549
18550 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18551 set_char_size.
18552 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18553 operations on widgets here. Just set frame size if needed.
18554 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18555 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18556 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18557 the whole frame.
18558 (xg_create_tool_bar): Move attachment of the tool bar to
18559 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18560 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18561
185622008-03-01 Jason Rumney <jasonr@gnu.org>
18563
18564 * w32fns.c (w32_msg_pump): Disable debug code.
18565
185662008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18567
18568 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18569
185702008-02-29 Chong Yidong <cyd@stupidchicken.com>
18571
18572 * xdisp.c (next_overlay_string): Don't set
18573 overlay_strings_at_end_processed_p if we're currently reading from
18574 a display string.
18575
185762008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18577
18578 * xdisp.c (get_overlay_strings_1): Fix typo.
18579
185802008-02-29 Chong Yidong <cyd@stupidchicken.com>
18581
18582 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18583
185842008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18585
18586 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18587
18588 * xdisp.c (display_mode_element): Cancel the previous change.
18589 (decode_mode_spec): Likewise.
18590 (handle_auto_composed_prop): Don't make composition if it->string
18591 is a string.
18592
185932008-02-27 Kim F. Storm <storm@cua.dk>
18594
18595 * lisp.h (GLYPH): Change type from int to struct with separate char
18596 and face_id members.
18597 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18598 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18599 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18600 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18601 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18602 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18603 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18604 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18605 handle new Lisp glyph code encoding, either an integer or a cons.
18606
18607 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18608 (GLYPH_ALIAS): Delete.
18609 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18610 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18611 (GLYPH_FROM_CHAR): Replace macro by ...
18612 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18613
18614 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18615 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18616 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18617 (GLYPH_INVALID_P): New macro.
18618 (spec_glyph_lookup_face): Update prototype.
18619
18620 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18621 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18622 new glyph code encoding.
18623 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18624 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18625
18626 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18627 Adapt to new glyph type and new glyph code encoding.
18628
18629 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18630
18631 * indent.c (current_column, current_column_1, Fmove_to_column)
18632 (compute_motion): Adapt to new glyph code encoding.
18633
18634 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18635
186362008-02-27 Chong Yidong <cyd@stupidchicken.com>
18637
18638 * process.c (wait_reading_process_output): Check for window
18639 changes caused by timers.
18640 Suggested by Johan Bockgård.
18641
186422008-02-27 Glenn Morris <rgm@gnu.org>
18643
18644 * emacs.c (USAGE1): Add `--disable-font-backend'.
18645
186462008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18647
18648 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18649 is made to the buffer.
18650
186512008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18652
18653 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18654 (face_at_string_position):
18655 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18656 (face_at_string_position):
18657 * xdisp.c (display_string, next_overlay_change):
18658 * buffer.h (overlays_at):
18659 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18660 Update callers.
18661
186622008-02-26 Chong Yidong <cyd@stupidchicken.com>
18663
18664 * editfns.c (Fformat): Doc fix.
18665
186662008-02-26 Juanma Barranquero <lekktu@gmail.com>
18667
18668 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18669 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18670 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18671
186722008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18673
18674 * buffer.c (Fbuffer_swap_text): New function.
18675 (syms_of_buffer): Defsubr it.
18676
186772008-02-25 Chong Yidong <cyd@stupidchicken.com>
18678
18679 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18680
186812008-02-25 Jason Rumney <jasonr@gnu.org>
18682
18683 * w32font.c (w32font_draw): Draw one character at a time when padding.
18684
186852008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18686
18687 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18688 Handle a nil arg. Use run_window_configuration_change_hook.
18689 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18690 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18691 Use run_window_configuration_change_hook.
18692
186932008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18694
18695 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18696 1-pixel width.
18697
186982008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18699
18700 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18701 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18702 if the glyph in the font is zero pixel with.
18703
18704 * dispextern.h (struct glyph_string): New member padding_p.
18705
18706 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18707
18708 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18709
18710 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18711
18712 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18713
18714 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18715
187162008-02-25 Jason Rumney <jasonr@gnu.org>
18717
18718 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18719
187202008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18721
18722 Allow fine-grained image-cache flushing.
18723 * dispextern.h (struct image): Add `dependencies' field.
18724 (clear_image_caches): Change arg to Lisp_Object.
18725 * image.c (make_image): Initialize `dependencies' field.
18726 (clear_image_cache): Change arg to allow fine-grained flushing.
18727 Perform the flush even if image-cache-eviction-delay is nil.
18728 (clear_image_caches): Change arg to Lisp_Object.
18729 (Fclear_image_cache): Expand meaning of the argument.
18730 (mark_image): Mark `dependencies' field.
18731 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18732 (lface_hash): Use XHASH rather than XFASTINT.
18733 (face_at_buffer_position): Fix int -> EMACS_INT position.
18734 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18735 (select_frame_for_redisplay): Remove code duplication.
18736 (redisplay_internal): Adapt arg to call to clear_image_caches.
18737
187382008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18739
18740 * s/vms4-0.h:
18741 * s/vms4-2.h:
18742 * s/vms4-4.h:
18743 * s/vms5-5.h: Remove, unused.
18744
18745 * s/irix5-2.h:
18746 * s/irix6-0.h:
18747 * s/riscos5.h:
18748 * s/mach-bsd4-3.h:
18749 * m/mips4.h: Remove files for obsolete systems.
18750
18751 * Makefile.in:
18752 * filelock.c:
18753 * unexmips.c:
18754 * m/hp9000s300.h:
18755 * m/iris4d.h:
18756 * s/aix3-1.h:
18757 * s/hpux.h:
18758 * s/msdos.h:
18759 * s/usg5-0.h:
18760 * s/usg5-2-2.h:
18761 * s/usg5-2.h:
18762 * s/usg5-3.h: Remove references to obsolete variables.
18763
18764 * s/irix5-0.h: Remove, move all the contents ...
18765 * s/irix6-5.h: ... here. Simplify.
18766 * config.in: Regenerate.
18767
187682008-02-24 Jason Rumney <jasonr@gnu.org>
18769
18770 * w32term.c (x_draw_glyph_string_background): Clear the background
18771 manually when cleartype is in use.
18772 (x_draw_glyph_string_foreground): Draw text transparently when
18773 cleartype is in use.
18774
18775 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18776 a font into it unless we have to.
18777
187782008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18779
18780 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18781 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18782
aac0c6e3
MR
187832008-02-18 Jason Rumney <jasonr@gnu.org>
18784
18785 * w32fns.c (Fw32_shell_execute): Encode parameters.
18786
187872008-02-09 Eli Zaretskii <eliz@gnu.org>
18788
18789 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18790
187912008-02-05 Juanma Barranquero <lekktu@gmail.com>
18792
18793 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18794
187952008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18796
18797 * xterm.c (x_set_offset): Don't change the gravity if
18798 CHANGE_GRAVITY is -1.
18799
188002008-02-23 Chong Yidong <cyd@stupidchicken.com>
18801
18802 * fileio.c (auto_save_error_occurred): New var.
18803 (auto_save_error): Set it.
18804 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18805 error occurred.
18806
188072008-02-23 Eli Zaretskii <eliz@gnu.org>
18808
18809 * w32.c (globals_of_w32): Add initializations for
18810 g_b_init_get_sid_sub_authority and
18811 g_b_init_get_sid_sub_authority_count.
18812
188132008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18814
18815 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18816 (font_parse_xlfd): Use them for sanity check.
18817 (Finternal_set_font_style_table): Make sure the table is bijective.
18818
18819 Consolidate the image_cache to the terminal struct.
18820 * termhooks.h (P_): Remove redundant def.
18821 (struct terminal): New field `image_cache'.
18822 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18823 of FRAME_X_IMAGE_CACHE.
18824 * xterm.h (struct x_display_info): Remove image_cache field.
18825 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18826 * w32term.h (struct w32_display_info): Remove image_cache field.
18827 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18828 * macterm.h (struct mac_display_info): Remove image_cache field.
18829 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18830 * xterm.c (x_term_init):
18831 * w32term.c (w32_term_init):
18832 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18833 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18834 Remove declarations.
18835 (clear_image_caches, mark_image_cache): New declarations.
18836 * xfaces.c (clear_face_cache):
18837 * xdisp.c (redisplay_internal): Use clear_image_caches.
18838 * image.c (clear_image_cache): Don't check that a frame is on
18839 a window-system before checking if it shares the same cache.
18840 (clear_image_caches): New function.
18841 (Fclear_image_cache): Use it.
18842 (mark_image): Move from allo.c.
18843 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18844 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18845 (mark_object): Don't call mark_image_cache for frames.
18846 (mark_terminals): Call mark_image_cache.
18847
18848 * lisp.h (Fdelete_terminal): Declare.
18849
18850 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18851 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18852 wrong_type_argument.
18853
188542008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18855
18856 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18857 malayalam.el, and tamil.el. Add sinhala.el.
18858
188592008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18860
18861 * xterm.c (x_connection_closed): Consolidate identical tests.
18862 (x_delete_terminal): Don't crash if called via x_connection_closed.
18863
188642008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18865
18866 * xdisp.c (decode_mode_spec): New arg string.
18867 (display_mode_element): Adjust for the above change.
18868
188692008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18870
18871 * callint.c (Fcall_interactively): Use AREF.
18872
188732008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18874
18875 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18876
188772008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18878
18879 * xfns.c (Fx_show_tip): Set string to " " if empty.
18880
188812008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18882
18883 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18884 with Qt.
18885
188862008-02-17 Kenichi Handa <handa@m17n.org>
18887
18888 * ftfont.c (ftfont_shape): Return Lispy number.
18889
18890 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18891 for GCs.
18892 (Finternal_set_font_selection_order): Call font_update_sort_order
18893 only when enable_font_backend is set.
18894 (realize_x_face): Set face->font_info to that of default face only
18895 when enable_font_backend is set.
18896
18897 * xdisp.c (handle_composition_prop): Set it->c to the fist
18898 character of the composed region.
18899 (fill_composite_glyph_string): Set base_face->font_info to
18900 s->font_info. Get a face for ascii from base_face->ascii_face.
18901 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18902 with a face already decided.
18903 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18904 non-negative.
18905 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18906 call font_prepare_composition unconditionally.
18907
18908 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18909
18910 * xterm.h (struct x_display_info): New member font.
18911
18912 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18913 (x_set_mouse_face_gc, x_new_font): Likewise.
18914 (x_term_init): Setup display_info->font.
18915 (x_delete_terminal): Free display_info->font.
18916
18917 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18918
18919 * ftxfont.c (ftxfont_default_fid): Delete it.
18920 (ftxfont_open): Set xfont->fid to 0.
18921 (ftxfont_end_for_frame): Clear data specific to the frame and the
18922 font-driver.
18923
18924 * xftfont.c (xftfont_default_fid): Delete it.
18925 (xftfont_open): Set xfont->fid to 0.
18926
18927 * fontset.c (FONTSET_OBJLIST): New macro.
18928 (fontset_find_font): Update font-object list of the fontset.
18929 (free_realized_fontset): New function.
18930 (free_face_fontset): Call free_realized_fontset.
18931 (Ffont_info): Call font_close_object only when enable_font_backend
18932 is set.
18933
18934 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18935 [HAVE_NTGUI]: Include w32term.h.
18936 [MAC_OS]: Include macterm.ch.
18937 (font_otf_ValueRecord): Use make_number.
18938 (font_finish_cache): Fix handling of reference count.
18939 (font_clear_cache): Update num_fonts.
18940 (font_open_entity): Update smallest_char_width and
18941 smallest_font_height of the frame.
18942 (font_close_object): Update num_fonts.
18943 (Fclear_font_cache): Fix finding the target cache data.
18944
189452008-02-16 Glenn Morris <rgm@gnu.org>
18946
18947 * fontset.c (Finternal_char_font): Fix compilation warning.
18948
189492008-02-16 Eli Zaretskii <eliz@gnu.org>
18950
18951 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18952 instead of char arrays. Enlarge the size of array passed to
18953 get_token_information.
18954
18955 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18956 warnings.
18957
189582008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18959
18960 * .gdbinit: Don't set `args', it breaks gdb --args.
18961
189622008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18963
18964 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18965 within a narrowed buffer.
18966
189672008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18968
18969 * coding.c (decode_coding_object, encode_coding_object):
18970 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18971
189722008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18973
18974 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18975 hardcoding 1.
18976 (detect_coding_system):
18977 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18978 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18979 * insdel.c (insert_from_gap):
18980 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18981 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18982 (string_to_multibyte):
18983 * character.c (chars_in_text, multibyte_chars_in_text):
18984 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18985
18986 * character.h (FETCH_STRING_CHAR_ADVANCE)
18987 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18988 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18989 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18990
18991 * casefiddle.c (casify_region): Only call after-change and composition
18992 functions on the part of the region that was changed.
18993
18994 * keyboard.c (read_avail_input):
18995 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18996
189972008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18998
18999 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19000 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19001
190022008-02-11 Juanma Barranquero <lekktu@gmail.com>
19003
19004 * w32menu.c (push_submenu_start, push_submenu_end)
19005 (push_left_right_boundary, push_menu_pane, push_menu_item):
19006 * keyboard.c (read_key_sequence): Don't pass args with side effects
19007 to AREF, it fails when compiling with -DENABLE_CHECKING.
19008
190092008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19010
19011 * Makefile.in (${lispsource}international/charprop.el):
19012 Delete this target.
19013
19014 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19015 emacs-unicode-2.
19016
190172008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19018
19019 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19020
190212008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19022
19023 * frame.c (Qnoelisp): New symbol.
19024 (syms_of_frame): Initialize it.
19025 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19026 harmless Elisp code, from a strong `force' from x_connection_closed.
19027 * frame.h (Qnoelisp): Declare.
19028 * xterm.c (x_connection_closed): Pass `noelisp'.
19029
19030 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19031 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19032 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19033 rather than `int' for the type of `type'.
19034
190352008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19036
19037 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19038
19039 * Makefile.in (GNUC): Remove support for gcc-1.x.
19040
190412008-02-10 Richard Stallman <rms@gnu.org>
19042
19043 * lisp.h (ASET): Use AREF, not ASLOT.
19044
190452008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19046
19047 * lisp.h (ASET): Check bounds.
19048
190492008-02-10 Glenn Morris <rgm@gnu.org>
19050
19051 * buffer.c (mode-name): Doc fix.
19052
190532008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19054
19055 * Makefile.in:
19056 * emacs.c:
19057 * gmalloc.c:
19058 * keyboard.c:
19059 * lisp.h:
19060 * m/ibm370aix.h:
19061 * process.c:
19062 * regex.c:
19063 * s/hpux.h:
19064 * sysdep.c:
19065 * sysselect.h:
19066 * systty.h:
19067 * unexec.c:
19068 * w32term.c:
19069 * xsmfns.c:
19070 * xterm.c: Remove code that deals with obsolete variables.
19071
19072 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19073
19074 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19075 nothing else needs it anymore.
19076
190772008-02-09 Eli Zaretskii <eliz@gnu.org>
19078
19079 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19080 instead of unibyte_char_to_multibyte.
19081
190822008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19083
19084 * s/gnu-linux.h: Remove commented out code.
19085
19086 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19087
19088 * Makefile.in: Update what RMS says about using autoconf.
19089 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19090 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19091 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19092 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19093
190942008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19095
19096 * keymap.c (Fkey_description): Move side effect outside of macro call.
19097
19098 * xfaces.c (Finternal_make_lisp_face):
19099 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19100
19101 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19102 (syms_of_fontset): Use ASET.
19103
19104 * fns.c (concat): Move side effect outside of macro call.
19105 (hash_clear): Use ASET.
19106
191072008-02-08 Richard Stallman <rms@gnu.org>
19108
19109 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19110 If FORCE, and frame has a surrogate minibuffer for another frame,
19111 delete the other frame first.
19112
191132008-02-07 Timo Savola <timo.savola@iki.fi>
19114
19115 * xterm.c (x_detect_focus_change): Handle embed client message.
19116 (handle_one_xevent): Ditto.
19117 (handle_one_xevent): If embedded and we get a button press/release,
19118 request focus.
19119 (xembed_set_info, xembed_send_message): New functions.
19120 (x_make_frame_visible): Call xembed_set_info if embedded.
19121 (x_make_frame_invisible): Call xembed_set_info if embedded.
19122 (x_term_init): Initialize Xatom_XEMBED.
19123 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19124 (x_iconify_frame): Ditto.
19125
19126 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19127 (enum xembed_info, enum xembed_message, enum xembed_focus)
19128 (enum xembed_modifier, enum xembed_accelerator): New.
19129 (xembed_set_info, xembed_send_message): Declare.
19130 (FRAME_X_EMBEDDED_P): New.
19131
19132 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19133 gtk_plug_new.
19134
19135 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19136 window ID of a frame.
19137 (x_window): Reparent frame if embedded.
19138 (Fx_create_frame): Don't set border width if embedded.
19139
19140 * emacs.c (USAGE3): Add --parent-id.
19141 (standard_args): Ditto.
19142
191432008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19144
19145 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19146
191472008-02-07 Jim Meyering <meyering@redhat.com>
19148
19149 Use "do...while (0)", not "if (1)...else" in macro definitions.
19150 The latter provokes a warning from gcc about the empty else, when
19151 followed by ";". Also, without that trailing semicolon, it would
19152 silently swallow up any following statement.
19153 * syntax.h (SETUP_SYNTAX_TABLE)
19154 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19155 * buffer.h (DECODE_POSITION): Likewise.
19156 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19157 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19158 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19159 (FETCH_CHAR_ADVANCE): Likewise.
19160 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19161
191622008-02-07 Jim Meyering <meyering@redhat.com>
19163
19164 * lread.c [lint]: Don't include <sys/inode.h>.
19165
191662008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19167
19168 * xselect.c (x_handle_dnd_message):
19169 * xmenu.c (digest_single_submenu, xmenu_show):
19170 * xdisp.c (with_echo_area_buffer_unwind_data)
19171 (format_mode_line_unwind_data, unwind_format_mode_line)
19172 (display_menu_bar):
19173 * eval.c (Ffetch_bytecode):
19174 * doc.c (store_function_docstring):
19175 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19176 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19177 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19178
191792008-02-07 Kenichi Handa <handa@m17n.org>
19180
19181 * ftxfont.c (ftxfont_open): Don't set
19182 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19183
19184 * ftfont.c (ftfont_open): Fix previous change.
19185
191862008-02-06 Jason Rumney <jasonr@gnu.org>
19187
19188 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19189 Use cached metrics for ASCII characters.
19190 (w32font_open_internal): Don't set font's owning_frame.
19191 Cache metrics for ASCII characters.
19192
19193 * w32font.h (struct w32font_info): Add ascii_metrics.
19194 Remove owning_frame.
19195
191962008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19197
19198 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19199 to negative value.
19200
19201 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19202
19203 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19204
19205 * charset.c (syms_of_charset): Set QCtest and Qeq.
19206
192072008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19208
19209 * process.c (Fstart_process):
19210 * callproc.c (Fcall_process): Handle the case where
19211 Funhandled_file_name_directory returns nil.
19212
19213 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19214 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19215 * font.c (check_gstring): Use them and AREF to access the vector before
19216 we know it's really a gstring.
19217 (Ffont_shape_text): Fix typo.
46e722a9 19218 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19219
19220 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19221 Declare.
19222
19223 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19224
192252008-02-05 Jason Rumney <jasonr@gnu.org>
19226
19227 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19228 Set smallest_font_height and smallest_char_width in display info.
19229
192302008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19231
19232 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19233
192342008-02-05 Miles Bader <miles@gnu.org>
19235
19236 * xfaces.c (get_lface_attributes, merge_named_face)
19237 (lookup_named_face, lookup_derived_face, realize_named_face):
19238 Revert 2008-02-01 change by cyd@stupidchicken.com.
19239
192402008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19241
19242 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19243 fallback fonts.
19244 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19245
192462008-02-04 Jason Rumney <jasonr@gnu.org>
19247
19248 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19249 set full_name.
19250 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19251
192522008-02-03 Jason Rumney <jasonr@gnu.org>
19253
19254 * makefile.w32-in (OBJ1): Include font.o here.
19255 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19256
192572008-02-02 Jason Rumney <jasonr@gnu.org>
19258
19259 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19260
192612008-02-01 Jason Rumney <jasonr@gnu.org>
19262
19263 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19264
19265 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19266
192672008-02-01 Andreas Schwab <schwab@suse.de>
19268
19269 * Makefile.in (shortlisp, lisp): Update for rename of
19270 ../lisp/language/myanmar.el.
19271
192722008-02-01 Chong Yidong <cyd@stupidchicken.com>
19273
19274 * xfaces.c (get_lface_attributes): Delete function.
19275 (merge_named_face, lookup_named_face, lookup_derived_face)
19276 (realize_named_face): Call lface_from_face_name directly, and use
19277 the fact that merge_face_vectors does not alter its FROM argument.
19278
192792008-02-01 Jason Rumney <jasonr@gnu.org>
19280
19281 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19282 input in the default locale. Handle non-Unicode multibyte input.
19283
192842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19285
19286 * fontset.c (reorder_font_vector): Exclude nil elements from the
19287 font group. Don't try multiple fonts.
19288 (fontset_font): Adjust for the above change.
19289 (Finternal_char_font): Return nil if the found font doesn't
19290 contain the character ch.
19291
19292 * Makefile.in (lisp, shortlisp): Add cham.el.
19293
192942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19295
19296 * font.h (FONTP): Make it return 1 also for a font-object.
19297
19298 * .gdbinit (xfontset): New function.
19299
19300 * font.c (font_find_for_lface): Check if the character C is
19301 supported or not only for the first font.
19302
19303 * fontset.c (reorder_font_vector): Fix typo.
19304 (fontset_find_font): Don't add a font-spec specifying a script.
19305 Use 0 (not Qt) for the indication of empty font-group. Change the
19306 format of RFONT-DEF. Return Qt if no font in the font-group
19307 support the character.
19308 (fontset_font): Adjust for the above change. If no font was
19309 found the character, remember that.
19310 (face_for_char): Adjust for the change of RFONT-DEF.
19311 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19312 no font for the target.
19313 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19314
193152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19316
19317 * font.c (font_load_for_face): Handle the case that the font in
19318 face->lface is a string.
19319
193202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19321
19322 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19323
193242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19325
19326 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19327 Fix previous change. If the frame is not on a window system,
19328 signal an error.
19329
193302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19331
19332 * coding.c (decode_coding_object, encode_coding_object): Adjust
19333 marker positions after conversion.
19334
19335 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19336
193372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19338
19339 * font.c (font_find_for_lface): Fix the handling of the return
19340 value of font_has_char.
19341 (Ffont_shape_text): Fix previous change.
19342
19343 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19344 (fontset_ref_and_range): Delete it.
19345 (fontset_find_font): Call char_table_ref_and_range instead of
19346 FONTSET_REF_AND_RANGE.
19347 (make_fontset): Don't setup font groups of Latin here.
19348 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19349 (new_fontset_from_font): Make the specified font the default for
19350 all Latin characters.
19351
193522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19353
19354 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19355 is on a window system before accessing the fontset of the frame.
19356
193572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19358
19359 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19360
19361 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19362 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19363
19364 * font.c (Ffont_shape_text): If the font driver doesn't have a
19365 shaper function, make zero-width glyphs to have at least one-pixel
19366 width. Fix setting of `to' field of glyphs.
19367
193682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19369
19370 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19371 glyphs.
19372
19373 * font.h (struct font_driver): Improve docstring of member `shape'.
19374
193752008-02-01 Kenichi Handa <handa@m17n.org>
19376
19377 * composite.c (syms_of_composite): Fix docstring of
19378 auto-composition-function.
19379
19380 * font.h (LGLYPH_SIZE): New macro.
19381
19382 * font.c (Ffont_fill_gstring): Stop filling when a character not
19383 supported by the font is found.
19384 (Ffont_shape_text): When a shape callback function returns nil,
19385 try at most two more times with larger gstring.
19386 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19387
19388 * xdisp.c (handle_auto_composed_prop): Change the argument to
19389 auto-composition-function.
19390
19391 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19392 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19393 Lispy glyph and store it in the lgstring.
19394
19395 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19396
19397 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19398
193992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19400
19401 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19402
19403 * fontset.c (Vfont_encoding_charset_alist): New variable.
19404 (syms_of_fontset): DEFVAR it.
19405 (reorder_font_vector, fontset_find_font): Optimize for the case of
19406 no need of reordering.
19407 (face_for_char): Map the charset property by
19408 Vfont_encoding_charset_alist.
19409
194102008-02-01 Jason Rumney <jasonr@gnu.org>
19411
19412 * w32font.c (logfonts_match): Don't check adstyle here.
19413 (font_matches_spec): Check here against physical font instead.
19414 (add_font_entity_to_list): Avoid some substitutions.
19415
19416 * font.c (font_parse_fcname): Default weight and slant to normal.
19417 (font_score): Prefer normal fonts if weight or slant unspecified.
19418 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19419 match freetype scores.
19420
194212008-02-01 Jason Rumney <jasonr@gnu.org>
19422
19423 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19424 font, as it may have been deleted.
19425 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19426 most common hyphenless variation.
19427 (logfonts_match): Check generic family.
19428 (font_matches_spec): Don't check generic family here.
19429 (fill_in_logfont): Set generic family based on adstyle.
19430
19431 * w32font.h (w32font_get_cache): Update declaration.
19432
194332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19434
19435 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19436
19437 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19438 If none of the new drivers are available, call font_update_drivers
19439 with the old drivers.
19440
19441 * w32font.c (w32font_get_cache): Adjust the argument type.
19442
19443 * xfont.c (xfont_get_cache): Adjust the argument type.
19444
19445 * font.h (struct font_driver): Change argument type of get_cache.
19446
19447 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19448
19449 * font.c (Ffont_get): Fix arguments to Fassoc.
19450 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19451 (font_clear_cache): New function.
19452 (font_list_entities, font_matching_entity): Use font_get_cache.
19453 (font_update_drivers): Call font_clear_cache when finishing a driver.
19454
19455 * fontset.c (fontset_find_font): Fix previous change.
19456
194572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19458
19459 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19460 dpyinfo->font_table.
19461 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19462 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19463
19464 * font.c (font_at): Handle the case that the arg C is negative.
19465 Handle the unibyte case.
19466 (Ffont_at): Call font_at with the arg C -1.
19467
19468 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19469 the position here, and call font_at with the arg C -1.
19470 Don't check the range of the existing composition at the point.
19471
194722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19473
19474 * fontset.c (fontset_add): New args charset_id and family.
19475 Change caller.
19476 (load_font_get_repertory, fontset_find_font): Assume that
19477 font_spec is always a font-spec object.
19478 (Fset_fontset_font): Always store a font-spec object in a fontset.
19479
19480 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19481 instead of get_property_and_range.
19482
194832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19484
19485 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19486 (xftfont_open): Don't keep locking face.
19487 (xftfont_close): Don't unlock face.
19488 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19489
19490 * fontset.c (fontset_find_font): Don't prefer a font of
19491 supplementary charset.
19492
194932008-02-01 Kenichi Handa <handa@m17n.org>
19494
19495 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19496 script, langsys_tag to langsys, new member script.
19497 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19498 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19499 listing to the script specified in that property. Fix arg to
19500 OTF_check_features.
19501
195022008-02-01 Jason Rumney <jasonr@gnu.org>
19503
19504 * w32font.h: New file.
19505
19506 * w32font.c: Include it.
19507 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19508 (w32font_open): Set owning_frame.
19509 (w32font_text_extents): Use owning_frame.
19510 (struct font_callback_data): Add opentype_only field.
19511 (add_font_entity_to_list): Use it to filter fonts.
19512 Don't check against full name.
19513 (w32font_list_internal): New function.
19514 (w32font_list): Use it.
19515 (w32font_match_internal): New function.
19516 (w32font_match): Use it.
19517 (w32font_open_internal): New function.
19518 (w32font_open): Use it.
19519 (w32font_get_cache, w32font_close, w32font_has_char)
19520 (w32font_encode_char, w32font_text_extents, w32font_draw):
19521 Make non-static.
19522
19523 * makefile.w32-in (w32font.o): Depend on w32font.h.
19524
195252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19526
19527 * charset.c (Fdefine_charset_internal): Record a supplementary
19528 charset at the tail of Vcharset_order_list.
19529
19530 * font.c (Ffont_shape_text): Fix the return value.
19531
19532 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19533
19534 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19535
195362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19537
19538 * ftfont.c (struct OpenTypeSpec): New struct.
19539 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19540 (ftfont_get_open_type_spec): New function.
19541 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19542
19543 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19544
195452008-02-01 Jason Rumney <jasonr@gnu.org>
19546
19547 * w32font.c (add_font_entity_to_list): Compare only the beginning
19548 of full name.
19549
195502008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19553 Never return HANDLED_RECOMPUTE_PROPS.
19554
195552008-02-01 Kenichi Handa <handa@m17n.org>
19556
19557 * font.c (font_gstring_produce): Delete it.
19558
19559 * composite.h (COMPOSITION_METHOD):
19560 Handle COMPOSITION_WITH_GLYPH_STRING.
19561
195622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19563
19564 * xfont.c (Qx): Delete.
19565 (syms_of_xfont): Don't initialize Qx.
19566
19567 * composite.h (enum composition_method):
19568 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19569
195702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19571
19572 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19573 (choose_face_font): Accept new form of font-spec.
19574
19575 * frame.h (font_driver_list): Declare it unconditionally.
19576 (struct frame): Define members font_driver_list and font_data_list
19577 unconditionally.
19578
19579 * fontset.c: Include "font.h" unconditionally.
19580 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19581 (Fset_fontset_font): Accept a font-spec object.
19582
19583 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19584 PIXEL_SIZE part a wild card.
19585
19586 * dispextern.h (struct glyph_string): Define members clip and
19587 num_clips unconditionally.
19588 (struct face): Define members font_info and extra unconditionally.
19589
19590 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19591 ftfont_info only when HAVE_LIBOTF is defined.
19592
195932008-02-01 Andreas Schwab <schwab@suse.de>
19594
19595 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19596 and end.
19597
195982008-02-01 Jason Rumney <jasonr@gnu.org>
19599
19600 * w32font.c (w32font_driver): Add new fields.
19601
196022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19603
19604 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19605 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19606 (LIBES): Add @M17N_FLT_CFLAGS@.
19607
19608 * composite.c (compose_text): Don't treat the new style
19609 composition specially.
19610
19611 * emacs.c (main): Call syms_of_font unconditionally.
19612
19613 * font.h (FONT_ENTITY_NOT_LOADABLE)
19614 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19615 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19616 (struct font_driver): New member shape.
19617 (font_registry_charsets): Extern it.
19618 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19619 (font_otf_capability, font_drive_otf): Delete their externs.
19620
19621 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19622 (font_charset_alist, font_registry_charsets): Move from xfont.c
19623 and rename.
19624 (font_prop_validate_otf): New function.
19625 (font_property_table): Register it for QCotf.
19626 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19627 (font_drive_otf): Delete.
19628 (font_prepare_composition): New arg F. Adjust for the change of
19629 lispy gstring.
19630 (font_find_for_lface): New arg C.
19631 (font_load_for_face): Adjust for the change of font_find_for_lface.
19632 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19633 lispy gstring.
19634 (Ffont_shape_text): New function.
19635 (Fopen_font): If the font size is not given, use 12-pixel.
19636 (Ffont_at): New arg STRING.
40b1a3a9 19637 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19638 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19639 conditionally.
19640
19641 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19642 fonts of the same font-spec. Change the format of RFONT-DEF.
19643 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19644 Adjust for the change of RFONT-DEF.
19645 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19646
19647 * ftfont.h: New file.
19648
19649 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19650 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19651 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19652 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19653 font_otf_capability and font_drive_otf, set ftfont_shape.
19654 (ftfont_list): Adjust for the change of :otf property value.
19655 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19656 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19657 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19658 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19659 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19660 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19661
19662 * w32term.c (x_draw_composite_glyph_string_foreground):
19663 Adjust for the change of lispy gstring.
19664
19665 * xdisp.c (handle_composition_prop): Adjust for the change of
19666 lispy gstring. Call a function for auto-composition with the
19667 third arg it->window.
19668 (fill_composite_glyph_string): Adjust for the change of lispy string.
19669 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19670
19671 * xfaces.c (set_font_frame_param): Adjust for the change of
19672 font_find_for_lface.
19673
19674 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19675 (xfont_registry_charsets): Likewise. Change caller.
19676 (syms_of_xfont): Don't handle x_font_charset_alist.
19677
19678 * xftfont.c: Include "ftfont.h".
19679 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19680 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19681 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19682 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19683 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19684 Set xftfont_driver.shape to xftfont_shape.
19685
19686 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19687 the change of lispy gstring.
19688
196892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19690
19691 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19692
196932008-02-01 Jason Rumney <jasonr@gnu.org>
19694
19695 * w32font.c (w32font_draw): Fill background manually.
19696
196972008-02-01 Jason Rumney <jasonr@gnu.org>
19698
19699 * font.c (Qfontp): Remove unused symbol.
19700 (QCantialias): New symbol.
19701 (syms_of_font): Define it.
19702 (font_property_table): Set a validator for QCantialias.
19703
19704 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19705 Define if not already.
19706 (QCfamily): Share with xfaces.c.
19707 (Qstandard, Qsubpixel, Qnatural): New symbols.
19708 (syms_of_w32font): Define them. Don't define QCfamily here.
19709 (w32_antialias_type, lispy_antialias_type): New functions.
19710 (w32_enumfont_pattern_entity): New arg requested_font.
19711 Set antialias parameter if non-default was requested.
19712 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19713
197142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19715
19716 * lread.c (read1): Undo the previous change.
19717
197182008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19719
19720 * frame.c (Fdelete_frame): Call font_update_drivers only when
19721 USE_FONT_BACKEND is defined.
19722
197232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19724
19725 * font.h (struct font_bitmap): New member bits_per_pixel.
19726 (struct font_driver): New members start_for_frame and end_for_frame.
19727 (struct font_data_list): New struct.
19728 (font_put_frame_data, font_get_frame_data): Extern them.
19729
19730 * frame.h (struct frame): New member font_data_list.
19731
19732 * font.c (font_update_drivers): Call driver->start_for_frame and
19733 driver->end_for_frame at proper timings.
19734 (font_put_frame_data, font_get_frame_data): New functions.
19735 (Ffont_spec): Add usage in the docstring.
19736
19737 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19738 (Fdelete_frame): Call font_update_drivers.
19739
19740 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19741 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19742 (xftfont_get_xft_draw): New function.
19743 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19744 (xftfont_end_for_frame): New function.
19745 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19746
19747 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19748 Change argument. Cache GCs in the per-frame data.
19749 (struct ftxfont_frame_data): New struct.
19750 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19751 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19752 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19753 (ftxfont_end_for_frame): New function.
19754 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19755
19756 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19757
197582008-02-01 Kenichi Handa <handa@m17n.org>
19759
19760 * xselect.c (Vselection_coding_system)
19761 (Vnext_selection_coding_system): Delete them.
19762 (syms_of_xselect): Don't declare selection-coding-system and
19763 next-selection-coding-system. They are declared in select.el.
19764
197652008-02-01 Jason Rumney <jasonr@gnu.org>
19766
19767 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19768
19769 * w32fns.c: Include imm.h.
19770 (get_composition_string_fn, get_ime_context_fn): New optional
19771 system functions.
19772 (globals_of_w32fns): Load them from imm32.dll.
19773 (ignore_ime_char): New flag.
19774 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19775 WM_IME_ENDCOMPOSITION messages.
19776
19777 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19778 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19779
197802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19781
19782 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19783 (READCHAR_REPORT_MULTIBYTE): New macro.
19784 (readchar): New 2nd arg MULTIBYTE.
19785 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19786 Make symbol's name multibyte according to the multibyteness of the
19787 source.
19788
197892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19790
19791 * xfaces.c (face_for_overlay_string): Call lookup_face with
19792 correct arguments (fix of synching with the trunk).
19793
197942008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19797 (font_prop_validate_non_neg, font_prop_validate_spacing):
19798 Delete argument prop_index.
19799 (font_property_table): Change arguments to validater. Change Callers.
19800 (font_lispy_object): Delete.
19801 (font_at): Use font_find_object instead fo font_lispy_object.
19802
198032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19804
19805 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19806 and file names.
19807
198082008-02-01 Jason Rumney <jasonr@gnu.org>
19809
19810 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19811 (font_matches_spec): Remove debug output.
19812 (add_font_entity_to_list): Avoid using substituted fonts.
19813
198142008-02-01 Jason Rumney <jasonr@gnu.org>
19815
19816 * doc.c (Fsnarf_documentation):
19817 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19818
198192008-02-01 Miles Bader <miles@gnu.org>
19820
19821 * dispextern.h (struct glyph_row): Only define "clip" field if
19822 HAVE_WINDOW_SYSTEM is defined.
19823
198242008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19825
19826 Fix up multi-tty merge.
19827
19828 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19829 and indentation.
19830
19831 * xfaces.c (free_realized_face, clear_face_gcs):
19832 Include font_done_for_face in the input_blocked section, just in case.
19833
19834 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19835 (get_char_face_and_encoding): Undo last change and remove the *other*
19836 duplicate definition (i.e. keep the one that's better scoped and that
19837 includes code for the font-backend).
19838
19839 * terminal.c (create_terminal): Default keyboard_coding to
19840 `no-conversion' and terminal_coding to `undecided'.
19841
19842 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19843
19844 * fontset.c (free_realized_fontsets): Check that the table entry does
19845 contain a fontset before trying to compare it to `base'.
19846
19847 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19848 syms_of_charset, and syms_of_coding earlier because init_window_once
19849 now needs Vcoding_system_hash_table to be setup.
19850
19851 * coding.h (default_buffer_file_coding): Remove.
19852
19853 * coding.c (default_buffer_file_coding): Remove.
19854 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19855 than ->symbol, and use the terminal-local coding system.
19856 (syms_of_coding): Don't setup the coding-systems that are not
19857 terminal-local.
19858 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19859
19860 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19861 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19862
19863 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19864 in chartab.c and were re-added here by mistake.
19865 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19866
19867 * doc.c (Fsnarf_documentation):
19868 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19869 src to etc.
19870
19871 * ChangeLog.10: Add mistakenly removed entry.
19872
198732008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19874
19875 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19876
198772008-02-01 Miles Bader <miles@gnu.org>
19878
19879 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19880 Add extra args to FACE_FOR_CHAR.
19881
198822008-02-01 Kenichi Handa <handa@m17n.org>
19883
19884 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19885 in sequence.
19886
19887 * chartab.c (map_sub_char_table, map_char_table): If the range
19888 contains just one character, call the function with that character
19889 even if the depth is not 3.
19890
198912008-02-01 Jason Rumney <jasonr@gnu.org>
19892
19893 * w32font.c (w32font_text_extents): Calculate metrics for the
19894 whole string.
19895
198962008-02-01 Jason Rumney <jasonr@gnu.org>
19897
19898 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19899
199002008-02-01 Jason Rumney <jasonr@gnu.org>
19901
19902 * w32term.c (x_set_glyph_string_clipping): Use
19903 get_glyph_string_clip_rects.
19904 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19905 Adjust for the change of struct glyph_string.
19906
19907 * w32font.c (w32font_draw): Do clipping here.
19908
199092008-02-01 Kenichi Handa <handa@m17n.org>
19910
19911 * xftfont.c (xftfont_draw): Adjust for the change of struct
19912 glyph_string.
19913
19914 * xterm.c (x_set_glyph_string_clipping): Use
19915 get_glyph_string_clip_rects.
19916 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19917 Adjust for the change of struct glyph_string.
19918
19919 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19920 the resulting clip(s}.
19921 (expose_overlaps): Add arg r. Change callers. Set it to
19922 row->clip temporarily.
19923 (expose_window): Redraw rows overlapping the exposed area.
19924
19925 * dispextern.h (struct glyph_row): New member clip.
19926 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19927 clip_height, new member clip, and num_clips.
19928
199292008-02-01 Kenichi Handa <handa@m17n.org>
19930
19931 * data.c (Fchar_or_string_p): Fix docstring.
19932
199332008-02-01 Kenichi Handa <handa@m17n.org>
19934
19935 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19936 create a temporary XftDraw object.
19937
199382008-02-01 Kenichi Handa <handa@m17n.org>
19939
19940 * font.c (Ffontp): Fix docstring.
19941
19942 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19943 strong evidence of ISO-2022.
19944
199452008-02-01 Kenichi Handa <handa@m17n.org>
19946
19947 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19948 SYNTAX_ENTRY_FOLLOW_PARENT.
19949
199502008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19951
19952 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19953 its type.
19954 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19955 Update to the new type of weak_hash_tables and next_weak.
19956
19957 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19958 a plain C pointer to Lisp_Hash_Table.
19959
19960 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19961 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19962 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19963 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19964 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19965 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19966 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19967 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19968 (GC_EQ): Remove since they've been identical to their non-GC_
19969 alter-egos ever since the markbit was eradicated.
19970
19971 * alloc.c:
19972 * buffer.c:
19973 * buffer.h:
19974 * data.c:
19975 * fileio.c:
19976 * filelock.c:
19977 * fns.c:
19978 * frame.h:
19979 * lisp.h:
19980 * macterm.c:
19981 * print.c:
19982 * process.c:
19983 * w32fns.c:
19984 * w32menu.c:
19985 * w32term.c:
19986 * xfns.c:
19987 * xmenu.c:
19988 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * chartab.c (map_sub_char_table): Make it work for the top-level
19993 char-table. Fix handling of parent char-table.
19994 (map_char_table): Adjust for the above change.
19995
199962008-02-01 Jason Rumney <jasonr@gnu.org>
19997
19998 * w32font.c (Qgdi): Rename from Qw32.
19999
200002008-02-01 Jason Rumney <jasonr@gnu.org>
20001
20002 * w32bdf.c (get_quoted_string): Make function static.
20003
200042008-02-01 Kenichi Handa <handa@m17n.org>
20005
20006 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20007 bigger ascent and descent than those of the font, use them as
20008 font's ascent and descent.
20009
200102008-02-01 Kenichi Handa <handa@m17n.org>
20011
20012 * Makefile.in (${lispsource}international/charprop.el): Move this
20013 target within "#ifdef HAVE_UNIDATA" and "#endif".
20014
200152008-02-01 Kenichi Handa <handa@m17n.org>
20016
20017 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20018 (shortlisp): Add ../lisp/language/tai-viet.el.
20019
200202008-02-01 Ulrich Mueller <ulm@gentoo.org>
20021
20022 * Makefile.in (${lispsource}international/charprop.el): Depend on
20023 temacs${EXEEXT}.
20024
200252008-02-01 Jason Rumney <jasonr@gnu.org>
20026
20027 * w32font.c (w32font_close): Delete the GDI font object.
20028
20029 * w32menu.c: Include character.h.
20030
20031 * w32proc.c: Likewise.
20032
20033 * w32select.c: Likewise.
20034
20035 * makefile.w32-in (w32proc.o): Depend on character.h.
20036
200372008-02-01 Jason Rumney <jasonr@gnu.org>
20038
20039 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20040
20041 * w32menu.c (syms_of_w32menu): Likewise.
20042
20043 * w32proc.c (syms_of_ntproc): Likewise.
20044
20045 * w32select.c (syms_of_w32select): Likewise.
20046
20047 * w32term.c (syms_of_w32term): Likewise.
20048
200492008-02-01 Jason Rumney <jasonr@gnu.org>
20050
20051 * w32font.c (w32font_draw): Delete brush after using it.
20052
200532008-02-01 Jason Rumney <jasonr@gnu.org>
20054
20055 * w32font.c (w32font_open): Don't set font_idx.
20056 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20057 to font settings.
20058 (w32font_draw): Fill background explicitly.
20059
200602008-02-01 Jason Rumney <jasonr@gnu.org>
20061
20062 * w32term.c (w32_initialize): Don't call w32font_initialize.
20063
20064 * w32font.c (w32font_info): Remove subranges.
20065 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20066 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20067 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20068 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20069 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20070 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20071 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20072 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20073 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20074 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20075 New symbols.
20076 (font_callback_data): New struct.
20077 (w32font_list, w32font_match): Use it.
20078 (w32font_open): Don't populate subranges.
20079 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20080 (w32font_encode_char): Always return unicode code-point as-is.
20081 (w32font_text_extents): Supply a transformation matrix to
20082 GetGlyphOutline. Never look up by glyph index. Avoid looping
20083 twice. Use unicode version of GetTexExtentPoint32 instead of
20084 glyph index version.
20085 (set_fonts_frame): Remove.
20086 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20087 set frame parameter. Use backward compatible fake foundries.
20088 Save generic family in extra slot under QCfamily. Make width slot
20089 constant. Save QCspacing value. Save list of scripts instead of
20090 binary subranges.
20091 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20092 (add_font_entity_to_list): Use font_callback_data struct. Filter
20093 unwanted fonts.
20094 (add_one_font_entity_to_list): Use font_callback_data struct.
20095 (w32_registry): Default to iso10646_1.
20096 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20097 string font registries. Don't fill in font name if it is a generic
20098 family name, fill family instead. Use spacing, family and script
20099 extra info to fill pitch, family and charset fields.
20100 (list_all_matching_fonts): Use font_callback_data struct.
20101 (unicode_range_for_char): Remove.
20102 (font_supported_scripts): New function.
20103 (w32font_initialize): Remove.
20104 (syms_of_w32font): Update which symbols are defined.
20105
201062008-02-01 Jason Rumney <jasonr@gnu.org>
20107
20108 * font.c (font_pixel_size): Reverse assq_no_quit args.
20109
20110 * w32term.h (FONT_WIDTH): Report max width, not average.
20111 (FONT_MAX_WIDTH): Remove.
20112 (FONT_AVG_WIDTH): New macro.
20113
20114 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20115 redefinition of FONT_WIDTH.
20116
20117 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20118 (w32_cache_char_metrics): Use FONT_WIDTH.
20119
20120 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20121
201222008-02-01 Jason Rumney <jasonr@gnu.org>
20123
20124 * w32font.c (w32font_open): Make lfHeight negative.
20125
20126 * w32fns.c (x_default_font_parameter): Use new style font name.
20127 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20128
201292008-02-01 Jason Rumney <jasonr@gnu.org>
20130
20131 * w32font.c (QCsubranges): New symbol.
20132 (w32font_open, w32font_has_char): Get subranges from subproperty
20133 of extra.
20134 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20135 (syms_of_w32font): Define :subranges symbol.
20136
20137 * font.c (font_put_extra): Expose externally.
20138
20139 * font.h (font_put_extra): Move declaration from font.c.
20140
20141 * font.c (Ffont_get): Use font driver to determine otf capability.
20142 (adjust_anchor): Check if driver defines anchor_point before using.
20143
20144 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20145 (w32font_draw): Use options.
20146 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20147 Fix detection of truetype fonts.
20148 (registry_to_w32_charset): Handle charsets other than iso8859-1
20149 expressed as lisp symbols.
20150 (w32_registry): Express charset as lisp symbol.
20151 (fill_in_logfont): Reverse pixel and point height logic.
20152 Don't set width here. Set quality to default.
20153
20154 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20155 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20156
20157 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20158 Remove redundant loop and allocation.
20159
20160 * makefile.w32-in (font.o, w32font.o): New objects.
20161 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20162 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20163
20164 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20165 STORE_XCHARB a valid l-value.
20166
20167 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20168 calculations for non-Truetype fonts.
20169 (x_draw_glyph_string): Sync with xterm.c.
20170 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20171 Remove redundant code.
20172 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20173
20174 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20175 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20176
20177 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20178 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20179
20180 * w32font.c: New file for w32 font backend.
20181
201822008-02-01 Kenichi Handa <handa@m17n.org>
20183
20184 * term.c: Don't include "buffer.h" twice.
20185
201862008-02-01 Kenichi Handa <handa@m17n.org>
20187
20188 * character.c (Funibyte_string): New function.
20189 (syms_of_character): Defsubr it.
20190
201912008-02-01 Jason Rumney <jasonr@gnu.org>
20192
20193 * w32term.c [USE_FONT_BACKEND]:
20194 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20195 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20196 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20197 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20198 (x_free_frame_resources): Sync with xterm.c.
20199
202002008-02-01 Andreas Schwab <schwab@suse.de>
20201
20202 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20203 char-table size.
20204
202052008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20208
202092008-02-01 Kenichi Handa <handa@m17n.org>
20210
20211 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20212 font_otf_gpos, add font_drive_otf.
20213
20214 * fontset.c (fontset_find_font): Pay attention to font size
20215 specified for a font.
20216 (reorder_font_vector): Check contents of font_def.
20217
20218 * font.c (struct otf_list): Delete it.
20219 (otf_list): Make it a lisp variable.
20220 (otf_open): Use lispy otf_list.
20221 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20222 (check_otf_features): New function.
20223 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20224 New functions.
20225 (font_drive_otf): New function merging font_otf_gsub and
20226 font_otf_gpos.
20227 (font_open_for_lface): New arg spec. Change argument order.
20228 (font_load_for_face): Adjust for the change of font_open_for_lface.
20229 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20230 Ffont_otf_gpos.
20231 (syms_of_font): Staticpro otf_list. Delete defsubr of
20232 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20233
20234 * xfaces.c (set_font_frame_param): Adjust for the change of
20235 font_open_for_lface.
20236
20237 * font.h (font_open_for_lface): Adjust prototype.
20238 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20239 member otf_drive.
20240 (font_otf_gsub, font_otf_gpos): Delete externs.
20241 (font_drive_otf): Extern it.
20242
202432008-02-01 Kenichi Handa <handa@m17n.org>
20244
20245 * font.c (font_at): If the window W is not on a window system,
20246 return Qnil.
20247
20248 * coding.c (produce_chars, encode_coding): Don't call
20249 insert_from_gap if no characters to produce.
20250
202512008-02-01 Kenichi Handa <handa@m17n.org>
20252
20253 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20254 Fclear_face_cache.
20255
20256 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20257
202582008-02-01 Miles Bader <miles@gnu.org>
20259
20260 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20261 Parse "--disable-font-backend" option.
20262 (standard_args): Add "--disable-font-backend" option.
20263
202642008-02-01 Kenichi Handa <handa@m17n.org>
20265
20266 * fontset.c (fontset_find_font): New function.
20267 (fontset_font): Use fontset_find_font.
20268 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20269 Register the specified font for all Latin characters.
20270 (new_fontset_from_font): Register the specified font for all Latin
20271 characters.
20272 (dump_fontset): For a realized fontset, include the base fontset
20273 name in the returned vector.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * character.h (CHAR_STRING): Cast C to unsigned on calling
20278 char_string.
20279
20280 * character.c (char_string): Type of arg C changed to unsigned.
20281 Signal an error if C is an invalid character code.
20282
20283 * editfns.c (general_insert_function, Fchar_to_string):
20284 Use CHARACTERP, not INTEGERP.
20285
202862008-02-01 Kenichi Handa <handa@m17n.org>
20287
20288 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20289 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20290
20291 * regex.c (analyse_first): Fix for multibyte characters in "case
20292 charset:" and "case categoryspec:".
20293
202942008-02-01 Andreas Schwab <schwab@suse.de>
20295
20296 * Makefile.in (LIBES): Move standard libraries to the end.
20297
202982008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20301 nonzero, don't shrink the buffer nextb.
20302
20303 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20304
20305 * coding.c (coding_alloc_by_making_gap): New arg offset.
20306 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20307 offset.
20308 (decode_coding_iso_2022): Update coding->safe_charsets.
20309 (decode_coding_gap): Temporarily set
20310 current_buffer->text->inhibit_shrinking to 1.
20311
203122008-02-01 Kenichi Handa <handa@m17n.org>
20313
20314 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20315 indexing into elements of s->cmp and s->char2b.
20316
203172008-02-01 Juanma Barranquero <lekktu@gmail.com>
20318
20319 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20324 target_multibyte instead of multibyte.
20325 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20326 (bcmp_translate): Change the argument name from multibyte to
20327 target_multibyte.
20328
203292008-02-01 Kenichi Handa <handa@m17n.org>
20330
20331 These changes are to compile a regexp into a pattern that can be
20332 used both for multibyte and unibyte targets.
20333
20334 * Makefile.in (search.o): Depend on charset.h.
20335
20336 * character.c (multibyte_char_to_unibyte_safe): New function.
20337
20338 * search.c: Include "charset.h".
20339 (compile_pattern_1): Delete argument multibyte. Don't set
20340 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20341 (compile_pattern): Don't compare cp->buf.target_multibyte.
20342 Compare cp->buf.charset_unibyte.
20343 (compile_pattern): Set cp->buf.target_multibyte.
20344
20345 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20346
20347 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20348
20349 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20350 multibyte. Change callers.
20351 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20352 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20353 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20354 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20355 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20356 (regex_compile): Make the compiled pattern usable both for
20357 multibyte and unibyte targets.
20358 (analyse_first): Make the fastmap usable both for multibyte and
20359 unibyte targets.
20360 (TRANSLATE_VIA_MULTIBYTE): Delete.
20361 (re_match_2_internal): Pay attention to the case that the
20362 multibyteness of bufp and target may be different.
20363
203642008-02-01 Kenichi Handa <handa@m17n.org>
20365
20366 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20367 empty box occupy at least one column width.
20368
203692008-02-01 Miles Bader <miles@gnu.org>
20370
20371 * Makefile.in: Remove redundant HAVE_XFT clause.
20372
203732008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20376
203772008-02-01 Kenichi Handa <handa@m17n.org>
20378
20379 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20380 being nil.
20381
203822008-02-01 Kenichi Handa <handa@m17n.org>
20383
20384 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20385
203862008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20389
203902008-02-01 Kenichi Handa <handa@m17n.org>
20391
20392 * search.c (simple_search): Fix previous change.
20393
203942008-02-01 Kenichi Handa <handa@m17n.org>
20395
20396 * xftfont.c (ftfont_font_format): Extern declaration.
20397
20398 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20399
20400 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20401 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20402
20403 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20404 (ftfont_font_format): Fix previous change.
20405
20406 * font.h (Ffont_xlfd_name): EXFUN it.
20407
20408 * font.c (font_parse_xlfd): Fix the array size of `f'.
20409 (register_font_driver): Use EQ to compare driver->type.
20410
20411 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20412 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20413 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20414
204152008-02-01 Kenichi Handa <handa@m17n.org>
20416
20417 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20418 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20419
204202008-02-01 Kenichi Handa <handa@m17n.org>
20421
20422 * xfont.c (xfont_open): Set font->format.
20423
20424 * xftfont.c (xftfont_open): Set font->format.
20425
20426 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20427 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20428 (ftfont_open): Set font->format.
20429 (ftfont_font_format): New function.
20430
20431 * font.h (struct font): New member format.
20432
20433 * font.c (Qopentype): New variable.
20434 (syms_of_font): Defsym it.
20435 (Fquery_font): Change the format of the last element of the return
20436 value.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20441 last resort.
20442
204432008-02-01 Kenichi Handa <handa@m17n.org>
20444
20445 * coding.c (detect_coding_charset): Fix detection of multi-byte
20446 charset.
20447
204482008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20449
20450 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * xdisp.c (get_next_display_element): Set it->face_id for the
20455 first component of a composition.
20456 (x_produce_glyphs): Check if the font is changed or not for composition.
20457
204582008-02-01 Kenichi Handa <handa@m17n.org>
20459
20460 * fontset.c (Qlatin): New variable.
20461 (syms_of_fontset): Define it as a lisp symbol.
20462 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20463
204642008-02-01 Kenichi Handa <handa@m17n.org>
20465
20466 * font.c (font_unparse_fcname): Pay attention to the case that
20467 some of font property is a null string.
20468
204692008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * term.c: Include "composite.h".
20472 (encode_terminal_code): Output all components of composition.
20473 Check the size of encode_terminal_src.
20474 (produce_glyphs): For composition, call produce_composite_glyph.
20475 (append_composite_glyph, produce_composite_glyph): New functions.
20476
20477 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20478 is not found, get font_info from the current ascii face.
20479
204802008-02-01 Kenichi Handa <handa@m17n.org>
20481
20482 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20483 buffer-file-name to Qnil before calling insert_from_buffer.
20484
20485 * font.c (font_unparse_fcname): Pay attention to the case that
20486 foundry is a null string.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20491
20492 * font.c (Qunicode_sip): New variable.
20493 (syms_of_font): Declare it as a Lisp symbol.
20494
20495 * font.h (Qunicode_sip): Extern it.
20496
204972008-02-01 Kenichi Handa <handa@m17n.org>
20498
20499 * composite.c (get_composition_id): Pay attention to TAB component.
20500
20501 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20502 TAB. Adjust for the change of s->char2b which always points to
20503 the first element of allocated memory.
20504
20505 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20506
20507 * xdisp.c (handle_composition_prop): Set it->c to the first
20508 non-TAB component.
20509 (fill_composite_glyph_string): Change argument.
20510 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20511 (x_produce_glyphs): Fix handling of left/right padding.
20512
205132008-02-01 Kenichi Handa <handa@m17n.org>
20514
20515 * coding.c (detect_coding_system): Fix for handling off
20516 inhibit_iso_escape_detection. Fix for the case that no coding
20517 system is defined for a specific coding category.
20518
205192008-02-01 Kenichi Handa <handa@m17n.org>
20520
20521 * font.c (font_matching_entity): Delete unused local var.
20522
20523 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20524 opening a font.
20525
20526 * fileio.c (Finsert_file_contents): On recovering a file, assume
20527 Unix-like eol.
20528 (choose_write_coding_system): On auto-saving a file, force
20529 Unix-like eol.
20530
20531 * coding.c (setup_coding_system): Fix setting of
20532 coding->common_flags based on eol_type.
20533 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20534 inherit from it.
20535
205362008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * alloc.c (NSTATICS): Increas to 0x600.
20539
205402008-02-01 Kenichi Handa <handa@m17n.org>
20541
20542 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20543 (ftfont_list): Don't check :name property.
20544 (ftfont_match): New function.
20545 (ftfont_pattern_entity): If the pattern doesn't contain
20546 FC_SPACING, don't assume FC_MONO.
20547
20548 * font.h (struct font_driver): New member `match'.
20549 (font_update_drivers): Adjust prototype.
20550
20551 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20552 property of FONT.
20553 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20554 them unconditionally.
20555 (font_matching_entity): New function.
20556 (font_open_by_name): Try font_matching_entity if exact match is
20557 not found.
20558 (font_update_drivers): Delete the arg FONT. Return a list of
20559 actually used backends. Don't free faces, font caches here.
20560 Don't store data in frame parameters. Don't call x_set_font.
20561 (Ffont_spec): Store :name property as is.
20562 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20563 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20564 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20565 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20566 Call font->driver->otf_gsub instead of font_otf_gsub.
20567
20568 * frame.c (x_set_font_backend): Do more works that were done in
20569 font_update_drivers before.
20570
20571 * xfont.c (xfont_match): New function.
20572 (xfont_driver): Set xfont_driver.match to xfont_match.
20573 (xfont_draw): Set font in GC if necessary.
20574
20575 * ftxfont.c (ftxfont_match): New function.
20576 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20577
20578 * xftfont.c (xftfont_match): New function.
20579 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20580
205812008-02-01 Kenichi Handa <handa@m17n.org>
20582
20583 * font.h (struct font): New member scalable.
20584 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20585 (font_otf_gsub): Adjust prototype.
20586
20587 * font.c (font_otf_capability): Fix handling of the default langsys.
20588 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20589 Check the contents of SPEC.
20590 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20591 (check_gstring): New function.
20592 (REPLACEMENT_CHARACTER): New macro.
20593 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20594 glyph codes of GSTRING.
20595 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20596 (font_prepare_composition): Set cmp->glyph_len.
20597 (font_open_entity): Set font->scalable.
20598 (Ffont_get): Handle :otf property.
20599 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20600 functions.
20601 (Fquery_font): Use font->font.full_name.
20602 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20603 Sfont_otf_alternates.
20604
20605 * ftfont.c (ftfont_open): Set font->font.full_name and
20606 font->font.name properly. Fix calculation of font->font.height
20607 and font->min_width.
20608
20609 * ftxfont.c (ftxfont_create_gcs): New function.
20610 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20611 (ftxfont_draw_backgrond): Fix filling region.
20612 (ftxfont_default_fid): New function.
20613 (ftxfont_open): Set xfont->fid to the return value of
20614 ftxfont_default_fid.
20615 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20616 (ftxfont_done_face): Free only GCs that are created by
20617 ftxfont_create_gcs.
20618 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20619
20620 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20621 Clip to src->width, etc (not src->clip_XXX).
20622
20623 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20624 FontBackend frame parameter.
20625
206262008-02-01 Kenichi Handa <handa@m17n.org>
20627
20628 * font.h (struct font_driver_list): New member `on'.
20629 (Fclear_font_cache): EXFUN it.
20630 (font_update_drivers): Extern it.
20631
20632 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20633 (font_list_entities): Check driver_list->on.
40b1a3a9 20634 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20635 (font_update_drivers): New function.
20636 (Fclear_font_cache): Check driver_list->on.
20637
20638 * frame.h (Qfont_backend): Extern it.
20639 (x_set_font_backend): Extern it.
20640
20641 * frame.c (Qfont_backend): New variable.
20642 (frame_parms): New element for font-backend.
20643 (x_set_font_backend): New function.
20644
20645 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20646 FontBackend frame parameter.
20647 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20648 x_set_font_backend.
20649
20650 * xfont.c (xfont_list): Don't try listing by :name property if the
20651 name is not for XLFD.
20652
206532008-02-01 Kenichi Handa <handa@m17n.org>
20654
20655 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20656 (LGLYPH_SET_TO): New macros.
20657 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20658 element of G is vector or not.
20659 (font_at): Extern it.
20660
20661 * font.c: Include window.h.
20662 (font_lispy_object): New function.
20663 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20664 end of valid glyph.
20665 (font_close_object): Fix getting (struct font *).
20666 (font_at): New function.
20667 (Ffont_get): If FONT is a font-object, get entity from it.
20668 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20669 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20670 range check.
20671 (Ffont_at): New function.
20672 (syms_of_font): Defsubr Sfont_at.
20673
20674 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20675 before the entry for Qcomposition.
20676 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20677 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20678 the font in gstring.
20679 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20680 LGLYPH_FORM (g) to detect the end of valid glyph.
20681 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20682 we are composing with gstring.
20683
20684 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20685 Check if adjustment is vector or not.
20686
20687 * Makefile.in (font.o): Make it depends on window.h.
20688
206892008-02-01 Kenichi Handa <handa@m17n.org>
20690
20691 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20692 adjustment is vector or not.
20693
206942008-02-01 Miles Bader <miles@gnu.org>
20695
20696 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20697
206982008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20701 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20702 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20703
20704 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20705 (DEVICE_DELTA): Fix typo.
20706 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20707 LGLYPH format.
20708
20709 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20710 the change of LGLYPH format.
20711
207122008-02-01 Kenichi Handa <handa@m17n.org>
20713
20714 * ftfont.c (ftfont_list): Fix typo.
20715 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20716
207172008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20718
20719 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20720
20721 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20722 xftface_info is non-NULL.
20723
207242008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20725
20726 * ftfont.c (ftfont_list): Move misplaced #endif.
20727
207282008-02-01 Kenichi Handa <handa@m17n.org>
20729
20730 * ftfont.c (ftfont_list): Pay attention to the case that
20731 FC_CAPABILITY is not defined.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * xftfont.c (xftfont_open): Set charset related members to -1.
20736
20737 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20738 QCname.
20739 (ftfont_open): Set charset related members to -1.
20740
20741 * fontset.c (Votf_script_alist): New variable.
20742 (syms_of_fontset): Initialize it.
20743 (fontset_font): Delete unused variable.
20744
20745 * fontset.h (Votf_script_alist): Extern it.
20746
20747 * font.c (font_find_for_lface): Optimize code.
20748
20749 * font.h (font_close_object, font_merge_old_spec): Extern them.
20750
207512008-02-01 Kenichi Handa <handa@m17n.org>
20752
20753 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20754 (syms_of_font): Initialize them.
20755 (font_pixel_size): Allow float value in dpi.
20756 (font_prop_validate_type): Delete.
20757 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20758 Change caller.
20759 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20760 (font_prop_validate_extra): Delete.
20761 (font_prop_validate_spacing): New function.
20762 (font_property_table): Add elements for all known properties.
20763 (get_font_prop_index): Rename from check_font_prop_name. New
20764 argument FROM. Change caller.
20765 (font_prop_validate): Validate all known properties.
20766 (font_put_extra): Delete argument force. Change caller.
20767 (font_expand_wildcards): Make it static. Fix the way of shrinking
20768 the possible range.
20769 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20770 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20771 Change caller.
20772 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20773 (font_parse_fcname): Delete argument merge. Fix parsing of point
20774 size. Don't validate properties values here. Change caller.
20775 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20776 (font_open_by_name): Delete unused variable.
20777 (Ffont_spec): Likewise. Validate property values.
20778 (Ffont_match_p): New function.
20779
20780 * font.h (QCscalable): Extern it.
20781 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20782
20783 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20784
20785 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20786 (xfont_list_pattern): New function.
20787 (xfont_list): Use xfont_list_pattern.
20788
207892008-02-01 Kenichi Handa <handa@m17n.org>
20790
20791 * font.h (Flist_fonts): EXFUN it.
20792
207932008-02-01 Jason Rumney <jasonr@gnu.org>
20794
20795 * w32term.c (w32_initialize): Add back smoothing_type and
20796 smoothing_enabled definitions.
20797
207982008-02-01 Kenichi Handa <handa@m17n.org>
20799
20800 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20801 s->face->font on determining underline position.
20802
208032008-02-01 Kenichi Handa <handa@m17n.org>
20804
20805 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20806 (font_has_char): Accept font-object too.
20807 (font_find_for_lface): Try at first with a size specified in face.
20808
208092008-02-01 Kenichi Handa <handa@m17n.org>
20810
20811 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20812 font_open_by_name.
20813
208142008-02-01 Kenichi Handa <handa@m17n.org>
20815
20816 * font.h (QCspacing, QCdpi): Extern them.
20817 (enum font_spacing): New enum.
20818 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20819
20820 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20821 (QCspacing, QCdpi): New variables.
20822 (syms_of_font): Initialize them.
20823 (font_pixel_size): New function.
20824 (font_put_extra): New function.
20825 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20826 in FONT_EXTRA.
20827 (font_parse_fcname): Handle enumerated values (e.g. bold).
20828 Fix handling font size. Add QCname property that contains only
20829 unknown properties.
20830 (font_score): Change argument. Change caller. Pay attention to
20831 FONT_PIXEL_SIZE_QUANTUM.
20832 (font_sort_entites, font_list_entities, font_find_for_lface)
20833 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20834 (Ffont_spec): Add QCname property that contains only unknown properties.
20835
20836 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20837 include weight in listing pattern, instead check weight of each
20838 listed font. Don't include scalable in pattern. Pay attention to
20839 FONT_PIXEL_SIZE_QUANTUM.
20840
208412008-02-01 Kenichi Handa <handa@m17n.org>
20842
20843 * font.c (font_parse_fcname): Fix parsing of point-size.
20844 (font_unparse_fcname): Produce symbolic names for style properties.
20845 (font_list_entities): Handle float size correctly.
20846 (font_open_by_name): Prefer `normal' property values if the name
20847 doesn't specify them.
20848
20849 * fontset.c (Finternal_char_font): Use font_get_name, not
20850 Ffont_xlfd_name.
20851
20852 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20853 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20854 pattern. Don't force scalable.
20855
20856 * xftfont.c (xftfont_open): For generating a name, start from
20857 96-byte buffer.
20858
208592008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20860
20861 * frame.h (x_new_fontset2): Fix prototype.
20862
208632008-02-01 Kenichi Handa <handa@m17n.org>
20864
20865 * font.h (struct font_driver): Delete member parse_name.
20866 (font_match_p, font_get_spec, font_parse_fcname)
20867 (font_unparse_fcname): Extern them.
20868 (font_get_name): Adjust prototype.
20869
20870 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20871 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20872 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20873 unnecessary checks for weight, slant, and swidth.
20874 (font_parse_fcname): New function.
20875 (font_unparse_fcname): New function.
20876 (font_parse_name): New function.
20877 (font_match_p): New function.
20878 (font_get_name): Change return value to Lisp string.
20879 (font_get_spec): New function.
20880 (Qunspecified, Qignore_defface): Don't extern them.
20881 (font_find_for_lface): Assume that LFACE is fully specified.
20882 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20883 object, use it for FACE.
20884 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20885 driver->parse_name.
20886 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20887
20888 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20889 prototype.
20890
20891 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20892 argument F. Don't call Fnew_fontset. Instead, directly call
20893 make_fontset.
20894
20895 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20896
20897 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20898 of x_new_fontset2.
20899
20900 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20901 (Qsans__serif): New variables.
20902 (ftfont_generic_family_list): New variable.
20903 (syms_of_ftfont): Initialize the above variables.
20904 (ftfont_pattern_entity): Delete argument NAME.
20905 (ftfont_list_generic_family): New function.
20906 (ftfont_parse_name): Delete this function.
20907 (ftfont_list): Try generic family only when FcFontList found no font.
20908 (ftfont_list_family): Fix args to FcObjectSetBuild.
20909
20910 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20911 object in attrs[LFACE_FONT_INDEX].
20912 (set_lface_from_font_name): Cancel all changes for font-backend.
20913 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20914 function.
20915 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20916 font object in QCfont attribute.
20917 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20918 (realize_default_face) [USE_FONT_BACKEND]: Call
20919 set_lface_from_font_and_fontset.
20920
20921 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20922 "fixed", and signal error here if no suitable font was found.
20923
20924 * xfont.c (xfont_parse_name): Delete this function.
20925
20926 * xftfont.c (xftfont_open): Change coding style of error
20927 handling. Generate fontconfig's fontname pattern.
20928
20929 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20930 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20931
20932 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20933 Both args FONTSET and FONT_OBJECT must be existing ones.
20934
209352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20936
20937 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20938
209392008-02-01 Kenichi Handa <handa@m17n.org>
20940
20941 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20942
20943 * font.h (struct font): Fix typo.
20944
20945 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20946 XLFD_XXX_INDEX.
20947 (enum xlfd_field_mask): New enum.
20948 (intern_font_field): Changed argument. Change caller. If digits
20949 are followed by non-digits, return a symbol.
20950 (font_expand_wildcards): New function.
20951 (font_parse_xlfd): Fix wildcard handling.
20952 (Ffont_spec): If :name is specified, reflect the info in the other
20953 properties.
20954
20955 * ftfont.c (ftfont_pattern_entity): Fix typo.
20956 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20957 locale.
20958
209592008-02-01 Kenichi Handa <handa@m17n.org>
20960
20961 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20962
20963 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20964 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20965 registry doesn't specify encoding part.
20966 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20967 (font_open_by_name): At first try parsing the name.
20968 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20969 as Lisp symbols.
20970
20971 * fontset.c (reorder_font_vector): Pay attention to the case that
20972 the 3rd element of font_def is nil.
20973 (fontset_font): For the default fontset, append one more fontset
20974 elements for a script-based font specification. Don't add script
20975 attribute on finding a font.
20976 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20977 font name.
20978 (fontset_ascii_font): If a font can't be opened, return nil.
20979
20980 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20981 (ftfont_pattern_entity): New function.
20982 (ftfont_get_cache): Assume that freetype_font_cache is already
20983 initialized.
20984 (ftfont_list): Handle the case that a file is specified in font
20985 name. Use ftfont_pattern_entity to generate entities.
20986 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20987 (syms_of_ftfont): Initialize freetype_font_cache.
20988
20989 * xftfont.c (xftfont_open): Make the font name fontconfig's
20990 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20991 (xftfont_close): Free font->font.name if not NULL.
20992
20993 * xfont.c (xfont_list): If script is specified for a font, return
20994 null_vector.
20995 (xfont_list_family): Declare argument type.
20996
20997 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20998 name, set LFACE_FONT (lface) to nil.
20999
21000 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21001 return Qnil.
21002
210032008-02-01 Kenichi Handa <handa@m17n.org>
21004
21005 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21006 (standard_args): Add "-enable-font-backend".
21007
210082008-02-01 Kenichi Handa <handa@m17n.org>
21009
21010 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21011 (struct xftdraw_list, xftdraw_list): Delete them.
21012 (register_xftdraw, check_xftdraw): Delete them.
21013 (xftfont_prepare_face): Don't call register_xftdraw.
21014 (xftfont_done_face): Don't call check_xftdraw.
21015 (xftfont_draw): Get background color only when with_background is
21016 nonzero.
21017
21018 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21019
210202008-02-01 Kenichi Handa <handa@m17n.org>
21021
21022 These changes are for the new font handling codes.
21023
21024 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21025 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21026 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21027 (FONTSRC, FONTOBJ): New variables.
21028 (obj): Add $(FONTOBJ).
21029 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21030 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21031 @LIBOTF_LIBS@.
21032 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21033 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21034
21035 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21036
21037 * character.h (Vscript_representative_chars): Extern it.
21038
21039 * character.c (Vscript_representative_chars): New variable.
21040 (syms_of_character): Declare it as a Lisp variable.
21041
21042 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21043 enable_font_backend is nonzero, accept the composition method
21044 COMPOSITION_WITH_GLYPH_STRING.
21045
21046 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21047 enumeration COMPOSITION_WITH_GLYPH_STRING.
21048
21049 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21050 members clip_x, clip_y, clip_width, and clip_height.
21051 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21052
21053 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21054 --enable-font-backend. Call syms_of_font.
21055
21056 * fns.c (assoc_no_quit): New function.
21057
21058 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21059 (face_for_font, new_fontset_from_font)
21060 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21061
21062 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21063 (fontset_font, fontset_ascii, face_for_char)
21064 (make_fontset_for_ascii_face, Ffont_info)
21065 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21066 is nonzero, use font-backend mechanism.
21067 (find_font_encoding): Make it non-static.
21068 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21069 New functions.
21070
21071 * frame.h (struct frame): New members resx and resy.
21072 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21073 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21074
21075 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21076 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21077
21078 * lisp.h (assoc_no_quit): Extern it.
21079
21080 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21081 Through out the file, use FONT_INFO_FROM_FACE instead of
21082 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21083 rif->per_char_metric.
21084 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21085 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21086 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21087 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21088 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21089 nonzero, use font-backend mechanism.
21090 (get_per_char_metric): New function.
21091
21092 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21093 (set_lface_from_font_name)
21094 (set_font_frame_param, free_realized_face)
21095 (prepare_face_for_display, clear_face_gcs)
21096 (Finternal_set_font_selection_order, realize_x_face)
21097 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21098 font-backend mechanism.
21099 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21100 (load_face_font) [USE_FONT_BACKEND]: Abort.
21101 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21102 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21103
21104 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21105 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21106 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21107 nonzero, register all available font drivers. Call
21108 x_default_font_parameter for deciding a font.
21109 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21110
21111 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21112 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21113 (x_set_glyph_string_clipping_exactly)
21114 (x_compute_glyph_string_overhangs)
21115 (x_draw_glyph_string_foreground)
21116 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21117 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21118 enable_font_backend is nonzero, use font-backend mechanism.
21119 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21120
211212008-02-01 Kenichi Handa <handa@m17n.org>
21122
21123 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21124 system_eol_type.
21125 (syms_of_coding): Initialize system_eol_type.
21126
21127 * process.c (Fset_process_coding_system): Inherit system's eol
21128 format if necessary.
21129
211302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21131
21132 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21133
211342008-02-01 Kenichi Handa <handa@m17n.org>
21135
21136 * coding.c (decode_eol): Pay attention to buffer relocation in
21137 del_range_2.
21138 (decode_coding): Call decode_eol before restoring undo_list.
21139
211402008-02-01 Kenichi Handa <handa@m17n.org>
21141
21142 * charset.c (Fdefine_charset_internal): Fix setting of
21143 emacs_mule_bytes.
21144
211452008-02-01 Kenichi Handa <handa@m17n.org>
21146
21147 * keyboard.c (read_char): Check if C is a character or not before
21148 looking up Vkeyboard_translate_table.
21149
211502008-02-01 Kenichi Handa <handa@m17n.org>
21151
21152 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21153 condition to terminate the loop.
21154
211552008-02-01 Kenichi Handa <handa@m17n.org>
21156
21157 * coding.c (produce_composition): Compare charbuf[i] instead of
21158 args[i] against 0.
21159 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21160
211612008-02-01 Kenichi Handa <handa@m17n.org>
21162
21163 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21164 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21165 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21166 detect_coding.
21167 (emacs_mule_char): Handle old style (Emacs 20) component character
21168 of a composition.
21169 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21170 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21171 composition rule.
21172 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21173
211742008-02-01 Kenichi Handa <handa@m17n.org>
21175
21176 * coding.c (encode_coding_ccl): Allocate destination dynamically
21177 when necessary.
21178
211792008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21182 the loop. When quitted, show a proper error message.
21183
211842008-02-01 Kenichi Handa <handa@m17n.org>
21185
21186 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21187 src->clip_head and src->clip_tail temporarily instead of src->hl.
21188
21189 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21190 character sequence.
21191 (Fccl_execute_on_string): Use ASET, not XSET.
21192
211932008-02-01 Kenichi Handa <handa@m17n.org>
21194
21195 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21196
211972008-02-01 Kenichi Handa <handa@m17n.org>
21198
21199 * coding.c (decode_coding): Fix the condition of terminating the
21200 decoding loop.
21201
212022008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * data.c (Faset): On setting a character bigger than 255 in a
21205 unibyte string, signal an error instead of make the string multibyte.
21206
212072008-02-01 Kenichi Handa <handa@m17n.org>
21208
21209 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21210 made by a mapping table.
21211
212122008-02-01 Kenichi Handa <handa@m17n.org>
21213
21214 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21215 not.
21216 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21217 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21218
21219 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21220 s->face is NULL or not.
21221
212222008-02-01 Kenichi Handa <handa@m17n.org>
21223
21224 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21225 (x_draw_glyph_string): Fix drawing of right_overhang and
21226 left_overhang around/on cursor.
21227
21228 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21229
212302008-02-01 Kenichi Handa <handa@m17n.org>
21231
21232 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21233
212342008-02-01 Kenichi Handa <handa@m17n.org>
21235
21236 * coding.c (Fdefine_coding_system_internal)
21237 (Fdefine_coding_system_alias): Avoid a duplicated element in
21238 Vcoding_system_alist.
21239
212402008-02-01 Kenichi Handa <handa@m17n.org>
21241
21242 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21243
21244 * coding.c (Qcoding_system_define_form): New variable.
21245 (syms_of_coding): Intern and staticpro it.
21246 (Fcoding_system_p): Check Qcoding_system_define_form.
21247 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21248
21249 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21250 Fcoding_system_p.
21251 (CHECK_CODING_SYSTEM): If ID is not available, call
21252 Fcheck_coding_system.
21253 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21254 Try also Fcheck_coding_system.
21255
212562008-02-01 Kenichi Handa <handa@m17n.org>
21257
21258 * coding.c (code_conversion_restore): GCPRO arg.
21259
212602008-02-01 Kenichi Handa <handa@m17n.org>
21261
21262 * character.c (lisp_string_width): Check multibyteness of STRING.
21263
212642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21265
21266 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21267 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21268 (decode_mac_font_name): Use decode_coding_c_string instead of
21269 decode_coding.
21270 (x_load_font): Initialize fontp->fontset to -1. Set
21271 fontp->encoding_type.
21272
212732008-02-01 Kenichi Handa <handa@m17n.org>
21274
21275 * search.c (search_buffer): Give up BM search on case-fold-search
21276 if one of a target character has a case-equivalence of different
3b59c351 21277 byte length even if that target character is an ASCII.
aac0c6e3
MR
21278 (simple_search): Fix calculation of byte length of matched text.
21279 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21280
212812008-02-01 Kenichi Handa <handa@m17n.org>
21282
21283 * coding.c (decode_coding): Fix handling of invalid bytes.
21284
212852008-02-01 Kenichi Handa <handa@m17n.org>
21286
21287 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21288 Unicode characters.
21289
212902008-02-01 Kenichi Handa <handa@m17n.org>
21291
21292 * coding.c (encode_coding_object): If a pre-write-conversion
21293 function makes a new buffer, kill it.
21294
212952008-02-01 Kenichi Handa <handa@m17n.org>
21296
21297 * coding.c (QCascii_compatible_p): New variable.
21298 (syms_of_coding): Initialize it.
21299 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21300 calling string_char.
21301 (record_conversion_result): Add `default:' case.
21302 (coding_charset_list): Delete unused variable `coding_type'.
21303 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21304 property in the plist of the coding system.
21305 (Fcoding_system_put): Check QCascii_compatible_p.
21306
213072008-02-01 Miles Bader <miles@gnu.org>
21308
21309 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21310 removed calculation of frame `f', as it's now used.
21311
213122008-02-01 Kenichi Handa <handa@m17n.org>
21313
21314 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21315 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21316 (UNIDATA): New variable.
21317 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21318 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21319 $(RUN_TEMACS) unconditionally.
21320
213212008-02-01 Kenichi Handa <handa@m17n.org>
21322
21323 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21324 (admindir): New variable.
21325 ($(lispsource)international/charprop.el): New target.
21326
213272008-02-01 Miles Bader <miles@gnu.org>
21328
21329 * character.c (chars-in-region): Remove obsolete function.
21330 (syms_of_character): Remove its initialization.
21331
213322008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21333
21334 * w32select.c (validate_coding_system)
21335 (setup_windows_coding_system): New functions.
21336 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21337 setup_windows_coding_system.
21338 (setup_config, Fw32_get_clipboard_data): Use
21339 validate_coding_system.
21340 (Fx_selection_exists): Move call to setup_config to a place
21341 where signals are allowed.
21342
21343 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21344 (Fcheck_coding_system): Add declarations.
21345
213462008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21349
213502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21351
21352 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21353 string as the second argument for x_new_fontset.
21354
213552008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21358 (encode_coding_object): Use safe_call instead of call2.
21359
213602008-02-01 Kenichi Handa <handa@m17n.org>
21361
21362 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21363
21364 * Makefile.in (lisp): Include charprop.el.
21365
213662008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21367
21368 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21369 Not sure if it's unnecessary.
21370
213712008-02-01 Steven Tamm <steventamm@mac.com>
21372
21373 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21374 some possibly unnecessary fontset checking code that crashed
21375 when creating a new frame.
21376
213772008-02-01 Kenichi Handa <handa@m17n.org>
21378
21379 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21380 lookup_face.
21381
21382 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21383
21384 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21385
213862008-02-01 Kenichi Handa <handa@m17n.org>
21387
21388 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21389 (coding_charset_list): New function.
21390
21391 * coding.h (coding_charset_list): Extern it.
21392
213932008-02-01 Kenichi Handa <handa@m17n.org>
21394
21395 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21396 concatenation of family and registry.
21397
213982008-02-01 Kenichi Handa <handa@m17n.org>
21399
21400 * character.h (BYTE8_STRING): Fix typo.
21401
21402 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21403 string to multibyte (sync to HEAD).
21404
21405 * casefiddle.c (casify_region): Handle changes in byte-length
21406 using replace_range_2 (sync to HEAD).
21407
214082008-02-01 Andreas Schwab <schwab@suse.de>
21409
21410 * chartab.c (map_char_table): GCPRO table and arg.
21411
214122008-02-01 Kenichi Handa <handa@m17n.org>
21413
21414 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21415 already at limit.
21416
214172008-02-01 Kenichi Handa <handa@m17n.org>
21418
21419 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21420 instead of fast_c_string_match_ignore_case.
21421 (find_font_encoding): Change argument to Lisp_Object. Use
21422 fast_string_match_ignore_case instead of
21423 fast_c_string_match_ignore_case. Change caller.
21424
214252008-02-01 Kenichi Handa <handa@m17n.org>
21426
21427 * xdisp.c (get_next_display_element): In unibyte case, decide to
21428 display in octal form by checking a character by
21429 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21430
21431 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21432
21433 * character.c (unibyte_has_multibyte_table): New variable.
21434
21435 * character.h (unibyte_has_multibyte_table): Extern it.
21436 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21437
214382008-02-01 Kenichi Handa <handa@m17n.org>
21439
21440 * coding.c (encode_coding_iso_2022): Fix handling of charset
21441 annotation.
21442
214432008-02-01 Kenichi Handa <handa@m17n.org>
21444
21445 * coding.c (setup_coding_system): If coding_system is nil, use
21446 Qundecided.
21447 (Fterminal_coding_system): Return nil if terminal coding system is
21448 `undecided'.
21449 (syms_of_coding): Define coding-system `undecided' here. Setup
21450 terminal_coding as `undecided'.
21451
214522008-02-01 Kenichi Handa <handa@m17n.org>
21453
21454 * xdisp.c (message_dolog, set_message_1): Call
21455 unibyte_char_to_multibyte with arg type int.
21456
21457 * lread.c (read1): Fix reading of a char-table.
21458
21459 * print.c (print_object): Include sub char-table in circularities
21460 detection.
21461
214622008-02-01 Kenichi Handa <handa@m17n.org>
21463
21464 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21465 Append the found sequences in car of ARGS instead of prepending.
21466
214672008-02-01 Kenichi Handa <handa@m17n.org>
21468
21469 * fileio.c (report_file_error): Make a unibyte string from
21470 strerror (errorno).
21471 (Fsubstitute_in_file_name): Fix the arg to
21472 unibyte_char_to_multibyte. It is evaluated twice.
21473
214742008-02-01 Kenichi Handa <handa@m17n.org>
21475
21476 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21477
214782008-02-01 Kenichi Handa <handa@m17n.org>
21479
21480 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21481 BOM is not found.
21482 (detect_coding, detect_coding_system): Optimization for ISO-2022
21483 when no 8-bit data is found.
21484
214852008-02-01 Jason Rumney <jasonr@gnu.org>
21486
21487 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21488
214892008-02-01 Kenichi Handa <handa@m17n.org>
21490
21491 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21492 CHARS.
21493
214942008-02-01 Steven Tamm <steventamm@mac.com>
21495
21496 * macterm.c (mac_encode_char): Add charset argument and update
21497 to use encoding_type.
21498 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21499 switch to pure fontset.
21500 (decode_mac_font_name): Temporarily remove decoding.
21501 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21502 (x_load_font): Temporarily remove encoding.
21503
215042008-02-01 Kenichi Handa <handa@m17n.org>
21505
21506 * xfaces.c (Fface_font): If frame is not on a window system,
21507 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21508 refer to face->font.
21509 (split_font_name_into_vector, build_font_name_from_vector)
21510 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21511 when HAVE_WINDOW_SYSTEM is defined.
21512
215132008-02-01 Kenichi Handa <handa@m17n.org>
21514
21515 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21516 (x_produce_glyphs): Fix setting of members of cmp in case
21517 cmp->glyph_len is zero.
21518
21519 * fontset.c (Fset_fontset_font): Fix docstring.
21520 (Ffontset_info): Make it backward compatible. New arg ALL.
21521
215222008-02-01 Kim F. Storm <storm@cua.dk>
21523
21524 * process.c (read_process_output): Grow decoding_buf when needed;
21525 this could cause a crash in allocate_string and compact_small_strings.
21526
215272008-02-01 Kenichi Handa <handa@m17n.org>
21528
21529 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21530
215312008-02-01 Kenichi Handa <handa@m17n.org>
21532
21533 * coding.c (setup_coding_system): Set coding->common_flags
21534 correctly for raw-text.
21535 (consume_chars): On encoding unibyte text by raw-text, don't check
21536 multibyte form.
21537 (encode_coding): On encoding by raw-text, never use translation tables.
21538
21539 * fileio.c (e_write): Short cut for the case of no encoding.
21540
215412008-02-01 Kenichi Handa <handa@m17n.org>
21542
21543 * coding.c (detect_coding, detect_coding_system): Delete unused
21544 variables.
21545
215462008-02-01 Kenichi Handa <handa@m17n.org>
21547
21548 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21549 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21550
215512008-02-01 Kenichi Handa <handa@m17n.org>
21552
21553 * coding.c (Ffind_coding_systems_region_internal): Include
21554 raw-text and no-conversion in the result.
21555
215562008-02-01 Kenichi Handa <handa@m17n.org>
21557
21558 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21559 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21560 FONT_DEF.
21561 (font_def_arg, add_arg, from_arg, to_arg): New args.
21562 (set_fontset_font): Change argument.
21563 (Fset_fontset_font): Fix for the case that TARGET is a script
21564 name and charset name.
21565 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21566
215672008-02-01 Kenichi Handa <handa@m17n.org>
21568
21569 * fontset.c (fontset_font): Rename from fontset_face. Change return
21570 value.
21571 (face_suitable_for_char_p, face_for_char): Adjust for the change
21572 of fontset_font.
21573 (make_fontset_for_ascii_face): Fix setting of the fontset element
21574 for ASCII.
21575 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21576 to get a font name.
21577 (Ffontset_info): Adjust for the change of fontset_font.
21578
21579 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21580
21581 * character.h (LEADING_CODE_LATIN_1_MIN)
21582 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21583
215842008-02-01 Kenichi Handa <handa@m17n.org>
21585
21586 * editfns.c (check_translation): New function.
21587 (Ftranslate_region_internal): Handle M:N mapping.
21588
215892008-02-01 Kenichi Handa <handa@m17n.org>
21590
21591 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21592
215932008-02-01 Kenichi Handa <handa@m17n.org>
21594
21595 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21596 goto invalid_code.
21597 (decode_coding_iso_2022): Fix handling of invalid designation.
21598
21599 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21600 after calling code_conversion_save.
21601
216022008-02-01 Kenichi Handa <handa@m17n.org>
21603
21604 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21605
21606 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21607
21608 * fontset.c: Include "intervals.h".
21609 (fontset_face): Fix comparing of Lisp_Objects.
21610 (free_face_fontset, new_fontset_from_font_name): Fix
21611 Lisp_Object/int mixup.
21612
21613 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21614
21615 * coding.c: Add many prototypes for static functions.
21616 (get_translation_table): Allow max_lookup to be NULL.
21617 (decode_coding, Ffind_coding_systems_region_internal)
21618 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21619 get_translation_table with max_lookup NULL.
21620
216212008-02-01 Kenichi Handa <handa@m17n.org>
21622
21623 * coding.c (get_translation_table): Declare it as Lisp_Object.
21624 (LOOKUP_TRANSLATION_TABLE): New macro.
21625 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21626 instead of CHAR_TABLE_REF.
21627
216282008-02-01 Kenichi Handa <handa@m17n.org>
21629
21630 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21631 annotation data format.
21632 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21633 Change arguments FROM and TO to single argument NCHARS. Change caller.
21634 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21635 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21636 (decode_coding_ccl, decode_coding_charset): Pay attention to
21637 coding->charbuf_used.
21638 (get_translation): New function.
21639 (produce_chars): New arguments translation_table and last_block.
21640 Translate characters here. Return number of carryover chars.
21641 Change caller.
21642 (produce_composition): New argument pos. Change caller.
21643 Adjust for the change of annotation data format.
21644 (produce_charset, produce_annotation): Likewise.
21645 (decode_coding, encode_coding): Don't call translate_chars.
21646 (consume_chars): New arg translation_table. Change caller.
21647 (translate_chars): Delete.
21648 (syms_of_coding): Make translation-table's number of extra slots 2.
21649
216502008-02-01 Kenichi Handa <handa@m17n.org>
21651
21652 * search.c (simple_search): Fix setting this_pos_byte in backward
21653 search.
21654
21655 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21656 byte sequence.
21657 (detect_coding_ccl): Fix setting of the variable valids.
21658
216592008-02-01 Kenichi Handa <handa@m17n.org>
21660
21661 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21662
21663 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21664
21665 * editfns.c (Ftranslate_region_internal): Rename from
21666 Ftranslate_region. Accept a char-table in TABLE.
21667 (syms_of_editfns): Defsubr Stranslate_region_internal.
21668
21669 * xfaces.c (set_lface_from_font_name): If a font is specified for
21670 a frame, generate a fontset from the font.
21671 (build_scalable_font_name): If the scalable font is requested for
21672 a specific size, don't change that size.
21673 (try_font_list): Try a scalable font also in the case that a
21674 pattern string is specified.
21675
216762008-02-01 Kenichi Handa <handa@m17n.org>
21677
21678 * xfaces.c (Fface_font): New optional arg CHARACTER.
21679
216802008-02-01 Kenichi Handa <handa@m17n.org>
21681
21682 * charset.h (CHARSET_OFFSET): New macro.
21683
216842008-02-01 Kenichi Handa <handa@m17n.org>
21685
21686 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21687
21688 * fontset.c (fontset_face): Handle the case that repertory is a
21689 char-table.
21690 (find_font_encoding): Return nil for unknown encoding.
21691 (Fset_fontset_font): Ignore a font of unknown encoding.
21692
216932008-02-01 Kenichi Handa <handa@m17n.org>
21694
21695 * keymap.c (describe_vector): Handle default value of a char table.
21696
21697 * fontset.c (fontset_face): Handle fallback fonts correctly.
21698 (Ffontset_info): Return infomation about fallback fonts.
21699
217002008-02-01 Kenichi Handa <handa@m17n.org>
21701
21702 * fontset.c (FONTSET_DEFAULT): New macro.
21703 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21704 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21705 the case that it is nil.
21706 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21707 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21708
21709 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21710 subset or superset.
21711
217122008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * emacs.c (main): Call init_charset after syms_of_XXX.
21715
21716 * charset.c (Vcharset_map_directory): Delete.
21717 (Vcharset_map_path): New variable.
21718 (load_charset_map_from_file): Use Vcharset_map_path instead.
21719 (init_charset): Initialize Vcharset_map_path.
21720 (syms_of_charset): Delete declaration of "charset-map-directory",
21721 add declaration of "charset-map-path".
21722
217232008-02-01 Kenichi Handa <handa@m17n.org>
21724
21725 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21726 ASCII only string.
21727
21728 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21729
21730 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21731 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21732
217332008-02-01 Kenichi Handa <handa@m17n.org>
21734
21735 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21736
21737 * coding.c (QCmnemonic, QCdefalut_char)
21738 (QCdecode_translation_table, QCencode_translation_table)
21739 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21740 (get_translation_table): Return a list of translation tables if
21741 necessary.
21742 (decode_coding): Call get_translation_table with ENCODEP 0.
21743 (char_encodable_p): If translation_table is non-nil, always call
21744 translate_char.
21745 (Fdefine_coding_system_internal): Accept list of translation
21746 tables as :encode-translation-table and :decode-translation-table.
21747 (Fcoding_system_put): New function.
21748 (syms_of_coding): Declare new symbols. Defsubr
21749 Scoding_system_put.
21750 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21751 typically JISX0212.
21752
21753 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21754 when the charset is superset type.
21755
21756 * character.c (translate_char): Accept list of translation tables.
21757
217582008-02-01 Kenichi Handa <handa@m17n.org>
21759
21760 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21761 (CODING_ATTR_TRANS_TBL): New macro.
21762
21763 * coding.c (get_translation_table): New function.
21764 (translate_chars): Fix the bug of skipping annotation data.
21765 (decode_coding, encode_coding): Utilize get_translation_table.
21766 (char_encodable_p, Funencodable_char_position): Translate char if
21767 necessary.
21768 (Ffind_coding_systems_region_internal)
21769 (Fcheck_coding_systems_region): Setup translation table for encode
21770 in a coding system attribute vector in advance.
21771 (Fdefine_coding_system_internal): Allow a symbol as translation
21772 table. For shift-jis type coding system, allow 4th charset.
21773
217742008-02-01 Kenichi Handa <handa@m17n.org>
21775
21776 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21777
21778 * xdisp.c (get_next_display_element): Pass -1 as POS to
21779 FACE_FOR_CHAR if displaying a C-string.
21780
217812008-02-01 Kenichi Handa <handa@m17n.org>
21782
21783 * composite.c (get_composition_id): Handle xoff and yoff in a
21784 composition rule.
21785
21786 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21787 (struct composition): New member lbearing and rbearing.
21788
21789 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21790 (x_get_glyph_overhangs): Handle a composition glyph.
21791 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21792
21793 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21794 composition glyph.
21795
217962008-02-01 Kenichi Handa <handa@m17n.org>
21797
21798 * print.c: Include charset.h.
21799 (Vprint_charset_text_property): New variable.
21800 (Qdefault): Extern it.
21801 (PRINT_STRING_NON_CHARSET_FOUND)
21802 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21803 (print_check_string_result): New variable.
21804 (print_check_string_charset_prop): New function.
21805 (print_prune_charset_plist): New variable.
21806 (print_prune_string_charset): New function.
21807 (print_object): Call print_prune_string_charset if
21808 Vprint_charset_text_property is not t.
21809 (print_interval): Print nothing if interval->plist is nil.
21810 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21811 variable. Init and staticpro print_prune_charset_plist.
21812
218132008-02-01 Kenichi Handa <handa@m17n.org>
21814
21815 * fontset.c (new_fontset_from_font_name): Use the specified font
21816 for all characters in the new fontset.
21817
21818 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21819 OBJECT args.
21820
21821 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21822 OBJECT args for composition too.
21823
21824 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21825 OBJECT args.
21826
218272008-02-01 Kenichi Handa <handa@m17n.org>
21828
21829 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21830
21831 * fontset.c (reorder_font_vector): Adjust for the change of
21832 FONT_DEF format.
21833 (fontset_face): New arg id. Change caller.
21834 (face_for_char): New args pos and object.
21835 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21836 (fs_query_fontset): Check NAME by Fassoc too.
21837 (Fset_fontset_font): Allow non-XLFD font name.
21838 (Ffontset_info): Adjust for the change of FONT_DEF format.
21839
21840 * fontset.h (face_for_char): Adjust prototype.
21841
21842 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21843 (append_space, extend_face_to_end_of_line)
21844 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21845 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21846
21847 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21848 POS and OBJECT args.
21849
21850 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21851 POS and OBJECT args.
21852
218532008-02-01 Jason Rumney <jasonr@gnu.org>
21854
21855 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21856 of GlobalAlloc'ed memory.
21857
218582008-02-01 Kenichi Handa <handa@m17n.org>
21859
21860 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21861
21862 * charset.h (charset_table_used): Delete extern.
21863
21864 * charset.c (charset_table_used): Make it static.
21865 (map_charset_chars): Fix args to c_function with.
21866
21867 * chartab.c (map_sub_char_table_for_charset): Fix args to
21868 c_function with.
21869
21870 * coding.h (enum coding_result_code): Delete
21871 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21872
21873 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21874 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21875 (Vlast_code_conversion_error): New variables.
21876 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21877 (ONE_MORE_BYTE): Record error if any instead of signaling an
21878 error. If non-ASCII multibyte char is found, return the negative
21879 value of the code. All callers changed to check it.
21880 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21881 (record_conversion_result): New function. Change all codes setting
21882 coding->result to call this function.
21883 (detect_coding_utf_8, decode_coding_utf_8)
21884 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21885 Don't use the local variable incomplete.
21886 (emacs_mule_char): Change the second arg to `const'.
21887 (decode_coding): Fix of flushing out unprocessed data.
21888 (make_conversion_work_buffer): Fix making of a work buffer.
21889 (decode_coding_object): Return coding->dst_object.
21890
21891 * fontset.c (set_fontset_font): Fix args.
21892
21893 * lisp.h (CHARACTERBITS): Define as 22.
21894
21895 * process.c (send_process): Be sure to set coding->src_multibyte.
21896
21897 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21898
218992008-02-01 Kenichi Handa <handa@m17n.org>
21900
21901 * xdisp.c (handle_auto_composed_prop): Give limit to
21902 Fnext_single_char_property_change.
21903
219042008-02-01 Kenichi Handa <handa@m17n.org>
21905
21906 * composite.c (syms_of_composite): Don't make the composition hash
21907 table weak.
21908
21909 * fontset.c (Fset_fontset_font): Fix docstring.
21910
21911 * lisp.h (detect_coding_system): Adjust prototype.
21912
21913 * fileio.c (kill_workbuf_unwind): Delete this function.
21914 (Finsert_file_contents): Adjust the call of detect_coding_system.
21915 Get conversion_buffer by code_conversion_save. Use the macro
21916 CODING_MAY_REQUIRE_DECODING. After decoding, update
21917 coding_system.
21918
21919 * coding.h (make_conversion_work_buffer): Delete extern.
21920 (code_conversion_save): Extern it.
21921
21922 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21923 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21924 (decode_coding_utf_8): Don't do eol converion.
21925 (detect_coding_utf_16): Check coding->src_chars, not
21926 coding->src_bytes. Add heuristics for those that have no signature.
21927 (decode_coding_emacs_mule, decode_coding_iso_2022)
21928 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21929 Don't do eol converion.
21930 (adjust_coding_eol_type): Return a new coding system.
21931 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21932 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21933 each change.
21934 (decode_coding): Pay attention to undo_list. Do eol conversion for
21935 all types of coding-systems (if necessary).
21936 (Vcode_conversion_work_buf_list): Delete it.
21937 (Vcode_conversion_reused_workbuf): Rename from
21938 Vcode_conversion_reused_work_buf.
21939 (Vcode_conversion_workbuf_name): New variable.
21940 (reused_workbuf_in_use): New variable.
21941 (make_conversion_work_buffer): Delete the arg DEPTH.
21942 (code_conversion_restore): Change argument to cons.
21943 (code_conversion_save): Delete the argument BUFFER. Change callers.
21944 (detect_coding_system): New argument src_chars. Change callers.
21945 Fix for utf-16 detection.
21946 (init_coding_once): Don't use ISO_carriage_return.
21947 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21948 reused_workbuf_in_use.
21949
219502008-02-01 Kenichi Handa <handa@m17n.org>
21951
21952 * keymap.c (store_in_keymap): Pay attention to the case that idx
21953 is a cons specifying a character range.
21954
219552008-02-01 Kenichi Handa <handa@m17n.org>
21956
21957 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21958 HANDLED_RECOMPUTE_PROPS.
21959
21960 * coding.c (Fdefine_coding_system_internal): Fix checking of
21961 ascii compatibility.
21962
219632008-02-01 Kenichi Handa <handa@m17n.org>
21964
21965 * charset.c (find_charsets_in_text): Delete unused locale variable.
21966 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21967
21968 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21969 Resync charset_list to Vemacs_mule_charset_list.
21970
21971 * keymap.c (store_in_keymap): Pay attention to the case that idx
21972 is a cons specifying a character range.
21973
219742008-02-01 Kenichi Handa <handa@m17n.org>
21975
21976 * composite.c (update_compositions): Bind inhibit-read-only, etc
21977 to t before calling remove-list-of-text-properties.
21978
21979 * print.c (print_object): Always print ASCII chars as is.
21980
219812008-02-01 Kenichi Handa <handa@m17n.org>
21982
21983 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21984
21985 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21986 is a char table.
21987
219882008-02-01 Kenichi Handa <handa@m17n.org>
21989
21990 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21991
219922008-02-01 Kenichi Handa <handa@m17n.org>
21993
21994 * xfaces.c (set_lface_from_font_name): Fix for the case that
21995 FONTNAME is not fontset name.
21996
219972008-02-01 Kenichi Handa <handa@m17n.org>
21998
21999 * fns.c (base64_encode_1): Fix previous change.
22000
220012008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * fontset.c (set_fontset_font): New function.
22004 (Fset_fontset_font): If a font is specified for a charset, use
22005 map_charset_chars to store the font spec in a fontset.
22006
220072008-02-01 Kenichi Handa <handa@m17n.org>
22008
22009 * fontset.c (fontset_face): Create a fallback fontset on demand.
22010 (make_fontset): Don't create a fallback fontset here.
22011 (free_face_fontset): Free a fallback fontset (if any) too.
22012 (n_auto_fontsets): Delete this variable.
22013 (auto_fontset_alist): New variable.
22014 (new_fontset_from_font_name): Check auto_fontset_alist.
22015 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22016 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22017 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22018 Defsubr Sfontset_list_all.
22019
220202008-02-01 Kenichi Handa <handa@m17n.org>
22021
22022 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22023
220242008-02-01 Kenichi Handa <handa@m17n.org>
22025
22026 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22027
220282008-02-01 Kenichi Handa <handa@m17n.org>
22029
22030 * editfns.c (Fgoto_char): Fix docstring.
22031
220322008-02-01 Kenichi Handa <handa@m17n.org>
22033
22034 * insdel.c (insert_from_gap): Adjust intervals correctly.
22035
220362008-02-01 Jason Rumney <jasonr@gnu.org>
22037
22038 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22039 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22040 (w32_initialize): Try to load it.
22041 (x_get_font_repertory): Use it if available.
22042 (w32_encode_char): Add shortcut for unicode output.
22043
22044 * w32fns.c (w32_load_system_font): Default charset to -1.
22045 (x_to_w32_charset): Match all fonts for unicode.
22046 (w32_to_x_charset): New parameter matching. Don't return partial
22047 or wildcard charsets.
22048 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22049 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22050 (w32_to_x_font): Match charset to real charset.
22051 (enum_font_cb2): Always list unicode versions.
22052
22053 * makefile.w32-in (temacs): Increase EMHEAP.
22054
220552008-02-01 Jason Rumney <jasonr@gnu.org>
22056
22057 * w32term.c (w32_encode_char): New charset parameter.
22058 font_info.encoding becomes encoding_type.
22059 (x_get_font_repertory): New function. Warning: stub only!
22060 (x_new_font): Return quickly if font already set.
22061 (x_new_fontset): fontsetname parameter is Lisp_Object.
22062 Use new fs_query_fontset. Try new_fontset_from_font_name.
22063 Use fontset_name for return value.
22064
22065 * w32term.h: Declare x_get_font_repertory.
22066
22067 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22068 place of find_charset_in_text. Use encode_coding_object in place
22069 of encode_coding.
22070 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22071 decode_coding.
22072
22073 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22074 of x_new_fontset.
22075 (w32_load_system_font): Initialize charset as unicode.
22076 font_info.encoding becomes encoding_type.
22077 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22078 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22079 (syms_of_w32fns): Set get_font_repertory_func.
22080
22081 * w32console.c: Include character.h. Use terminal_encode_buffer
22082 from term.c.
22083 (write_glyphs): Use new version of encode_terminal_code. Use
22084 encode_coding_object in place of encode_coding.
22085
22086 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22087 encoding becomes encoding_type.
22088
22089 * term.c (terminal_encode_buffer): Make externally visible.
22090
22091 * makefile.w32-in: Add character.h dependancies.
22092 (character.o, chartab.o): New targets.
22093
220942008-02-01 Kenichi Handa <handa@m17n.org>
22095
22096 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22097 CODING_ID_EOL_TYPE.
22098
220992008-02-01 Andreas Schwab <schwab@suse.de>
22100
22101 * coding.c (produce_chars): Revert last change.
22102
221032008-02-01 Kenichi Handa <handa@m17n.org>
22104
22105 * charset.h (charset_unicode): Extern it.
22106
22107 * charset.c (string_xstring_p): Check by (C >= 0x100).
22108 (find_charsets_in_text): Change format of the arc CHARSETS. New
22109 arg MULTIBYTE.
22110 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22111 change of find_charsets_in_text.
22112 (Fsplit_char): Fix doc. Never return unknown.
22113
22114 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22115
22116 * coding.c (Fdefine_coding_system_alias): Update
22117 Vcoding_system_list.
22118
22119 * fontset.c (load_font_get_repertory): Pay attention to the case
22120 that ENCODING of a font is specified by a char-table.
22121
22122 * xterm.c (x_get_font_repertory): Handle the case that the
22123 encoding of font is other than Unicode.
22124
221252008-02-01 Kenichi Handa <handa@m17n.org>
22126
22127 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22128 if a character is encodable by the terminal coding system. If
22129 not, produces proper number of `?'s. Update
22130 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22131 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22132
221332008-02-01 Kenichi Handa <handa@m17n.org>
22134
22135 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22136 variables.
22137 (encode_terminal_code): Change argument. Encode multiple
22138 characters at once. Store the result of encoding in
22139 terminal_encode_buffer.
22140 (write_glyphs, insert_glyphs): Adjust for the change of
22141 encode_terminal_code.
22142 (term_init): Initialize terminal_encode_buffer and
22143 terminal_encode_buf_size.
22144
22145 * coding.c (consume_chars): If coding->src_object is nil, don't
22146 check annotation.
22147
221482008-02-01 Kenichi Handa <handa@m17n.org>
22149
22150 * character.c (char_string): Use ASCII_CHAR_P instead of
22151 SINGLE_BYTE_CHAR_P.
22152
221532008-02-01 Kenichi Handa <handa@m17n.org>
22154
22155 * xdisp.c (handle_auto_composed_prop): Check if the last
22156 characters of auto-composed region is newly composed with the
22157 following characters.
22158 (handle_composition_prop): Fix checking of point being inside
22159 composition.
22160
221612008-02-01 Kenichi Handa <handa@m17n.org>
22162
22163 * fns.c (concat): Don't change multibyteness of the result by
22164 concatenating an 8-bit character.
22165
22166 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22167 multibyteness of the result when newelt is an 8-bit character.
22168
221692008-02-01 Dave Love <fx@gnu.org>
22170
22171 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22172 EMACS_INT.
22173
22174 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22175
22176 * xfaces.c (face_numeric_value): Declare dim size_t.
22177 (Finternal_lisp_face_equal_p): Remove unused f.
22178
22179 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22180 (MATRIX_ROW): Remove unused vars.
22181 (draw_glyphs, x_insert_glyphs, fast_find_position)
22182 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22183 byte/char counts.
22184
22185 * regex.c (regex_compile): Remove unused var.
22186
22187 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22188
22189 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22190 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22191
22192 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22193
22194 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22195
22196 * fileio.c (Fwrite_region): Remove unused var.
22197
22198 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22199 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22200
22201 * composite.c (Fremove_list_of_text_properties): Declare.
22202
22203 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22204 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22205 (coding_inherit_eol_type): Remove unused attrs.
22206 (detect_coding): Cast arg of detect_eol.
22207
22208 * charset.c (syms_of_charset): Remove unused var p.
22209 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22210 byte/char counts.
22211
22212 * casetab.c (set_case_table): Remove unused var.
22213
22214 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22215 unused vars.
22216
222172008-02-01 Dave Love <fx@gnu.org>
22218
22219 * xterm.c (x_bitmap_mask): Declare.
22220
222212008-02-01 Dave Love <fx@gnu.org>
22222
22223 * xterm.c (x_term_init): Fix type error.
22224
22225 * lisp.h: Add Funibyte_char_to_multibyte.
22226
22227 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22228 (Fset_coding_system_priority): Doc fix.
22229
22230 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22231
22232 * indent.c (check_composition): Make start and end EMACS_INT.
22233
22234 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22235
22236 * xdisp.c (handle_composition_prop, check_point_in_composition):
22237 Make buffer positions EMACS_INT.
22238
22239 * composite.c (find_composition, run_composition_function)
22240 (update_compositions, Ffind_composition_internal): Make buffer
22241 positions EMACS_INT.
22242
22243 * composite.h (find_composition, update_compositions): Make
22244 position args EMACS_INT.
22245
22246 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22247
22248 * intervals.c (get_property_and_range):
22249 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22250
22251 * unexalpha.c: Don't include varargs.h.
22252
222532008-02-01 Dave Love <fx@gnu.org>
22254
22255 * coding.h (ENCODE_UTF_8): New.
22256
22257 * Makefile.in (gtkutil.o): Depend on coding.h.
22258
22259 * coding.c (Fset_coding_system_priority): Doc fix.
22260
222612008-02-01 Kenichi Handa <handa@m17n.org>
22262
22263 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22264 the case of auto saving.
22265
222662008-02-01 Andreas Schwab <schwab@suse.de>
22267
22268 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22269 `range' from GC.
22270
222712008-02-01 Kenichi Handa <handa@m17n.org>
22272
22273 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22274
222752008-02-01 Kenichi Handa <handa@m17n.org>
22276
22277 * fileio.c (choose_write_coding_system): Return a decided coding system.
22278 (Fwrite_region): Set Vlast_coding_system_used to the return value
22279 of choose_write_coding_system.
22280
222812008-02-01 Kenichi Handa <handa@m17n.org>
22282
22283 * charset.c (Fset_charset_priority): Pay attention to duplicated
22284 arguments.
22285
22286 * coding.c (QCcategory): New variable.
22287 (syms_of_coding): Defsym it. Set all elements of
22288 Vcoding_category_table and their symbol values.
22289 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22290 coding-category-XXX, and coding-category-list.
22291 (Fdefine_coding_system_internal): Add category in the plist.
22292
222932008-02-01 Kenichi Handa <handa@m17n.org>
22294
22295 * callproc.c (Fcall_process): Handle carryover correctly.
22296
22297 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22298 (raw_text_coding_system): Check NILP (coding_system).
22299 (coding_inherit_eol_type): Check NILP (coding_system) and
22300 NILP (parent).
22301 (consume_chars): Fix for the case of raw-text.
22302
22303 * process.c (read_process_output): Handle carryover correctly.
22304
223052008-02-01 Dave Love <fx@gnu.org>
22306
22307 * regex.c (re_search_2): Fix last change.
22308
223092008-02-01 Kenichi Handa <handa@m17n.org>
22310
22311 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22312 target_multibyte. Even in a unibyte case, return a converted
22313 multibyte char.
22314 (GET_CHAR_AFTER): New macro.
22315 (PATFETCH): Translate via multibyte char.
22316 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22317 (SETUP_MULTIBYTE_RANGE): New macro.
22318 (regex_compile): Setup compiled code so that its multibyteness
22319 matches that of a target. Fix the handling of "[X-YZ]" using
22320 SETUP_MULTIBYTE_RANGE.
22321 (analyse_first) <charset>: For filling fastmap for all multibyte
22322 characters, don't check by BASE_LEADING_CODE_P.
22323 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22324 the same as RE_MULTIBYTE_P (bufp) now.
22325 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22326 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22327 (TRANSLATE_VIA_MULTIBYTE): New macro.
22328 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22329 It is the same as RE_MULTIBYTE_P (bufp) now.
22330 <exactn>: Translate via multibyte.
22331 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22332 translate it.
22333 <charset, charset_not>: Fetch a character by
22334 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22335 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22336 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22337 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22338 by GET_CHAR_AFTER.
22339 (bcmp_translate): Likewise.
22340
22341 * search.c (compile_pattern): Check the member target_multibyte,
22342 not the member multibyte of buf.
22343
22344 * lread.c (read1): While reading a string, set force_singlebyte
22345 and force_multibyte correctly.
22346
22347 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22348 up of unibyte_to_multibyte_table.
22349
223502008-02-01 Kenichi Handa <handa@m17n.org>
22351
22352 * coding.c (setup_coding_system): If coding has
22353 post-read-conversion or pre-write-conversion, set
22354 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22355 respectively.
22356 (decode_coding_gap): Run post-read-conversion if any.
22357
22358 * fileio.c (Finsert_file_contents): Even if we read into a
22359 unibyte buffer, check if we must decode the result or not.
22360
223612008-02-01 Kenichi Handa <handa@m17n.org>
22362
22363 * coding.c (make_conversion_work_buffer): Change the work buffer
22364 name to the same one as that of Emacs 21.
22365
223662008-02-01 Kenichi Handa <handa@m17n.org>
22367
22368 * coding.h (make_conversion_work_buffer): Adjust prototype.
22369 (code_conversion_restore): Don't extern it.
22370
22371 * coding.c (detected_mask): Delete unused variable.
22372 (decode_coding_iso_2022): Pay attention to the byte sequence of
22373 CTEXT extended segment, and retain those bytes as is.
22374 (decode_coding_ccl): Delete unused variable `valids'.
22375 (setup_coding_system): Delete unused variable `category'.
22376 (consume_chars): Delete unused variable `category'. Make it work
22377 for non-multibyte case.
22378 (make_conversion_work_buffer): Change argument.
22379 (saved_coding): Delete unused variable.
22380 (code_conversion_restore): Don't check saved_coding->destination.
22381 (code_conversion_save): New function.
22382 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22383 instead of record_unwind_protect.
22384 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22385 (detect_coding_system): Delete unused variable `mask'.
22386 (Fdefine_coding_system_internal): Delete unused variable id.
22387
22388 * fileio.c (kill_workbuf_unwind): New function.
22389 (Finsert_file_contents): On replacing, call
22390 make_conversion_work_buffer with correct args, and call
22391 record_unwind_protect with the first arg kill_workbuf_unwind.
22392
22393 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22394
223952008-02-01 Kenichi Handa <handa@m17n.org>
22396
22397 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22398 (fontset_add): Fix for the case that TO is less than TO1.
22399 (Ffontset_info): Don't use fallback fontset on checking the
22400 default fontset.
22401 (dump_fontset): New function for debugging.
22402
22403 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22404 coding_type is Qcharset.
22405
224062008-02-01 Kenichi Handa <handa@m17n.org>
22407
22408 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22409 (map_char_table): Don't inherit the value from the parent on
22410 initializing VAL. Adjust for the above change.
22411
224122008-02-01 Kenichi Handa <handa@m17n.org>
22413
22414 * coding.c (Qsignature, Qendian): Delete these variables.
22415 (syms_of_coding): Don't initialize them.
22416 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22417 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22418 detect_info->found.
22419 (decode_coding_utf_16): Don't detect BOM here.
22420 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22421 is NOT utf_16_without_bom.
22422 (setup_coding_system): For a coding system of type utf-16, check
22423 if the attribute :endian is Qbig or not (not nil or not), and set
22424 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22425 (detect_coding): If coding type is utf-16 and BOM detection is
22426 required, detect it.
22427 (Fdefine_coding_system_internal): For a coding system of type
22428 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22429
224302008-02-01 Kenichi Handa <handa@m17n.org>
22431
22432 * coding.c (coding_set_source): Fix for the case that the current
22433 buffer is different from coding->src_object.
22434 (decode_coding_object): Don't use the conversion work buffer if
22435 DST_OBJECT is a buffer.
22436
224372008-02-01 Dave Love <fx@gnu.org>
22438
22439 * lread.c (read_emacs_mule_char) [len==2]: Index
22440 emacs_mule_charset correctly.
22441
224422008-02-01 Dave Love <fx@gnu.org>
22443
22444 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22445 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22446 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22447 treated specially.)
22448 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22449 (detected_mask): Remove Big5 bits.
22450
224512008-02-01 Kenichi Handa <handa@m17n.org>
22452
22453 The following changes are to make the font rescaling facility
22454 compatible with Emacs 21.
22455
22456 * xfaces.c (Vface_font_rescale_alist): Rename from
22457 Vface_resizing_fonts.
22458 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22459 (font_rescale_ratio): Rename from font_resizing_ratio.
22460 (split_font_name): Set font->rescale_ratio.
22461 (better_font_p): Pay attention to font->rescale_ratio.
22462 (build_scalable_font_name): Likewise. Change RESX, and RESY
22463 fields.
22464 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22465
224662008-02-01 Kenichi Handa <handa@m17n.org>
22467
22468 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22469 (Qutf_16_le): Remove these variables.
22470 (syms_of_coding): Don't DEFSYM them.
22471 (decode_coding_utf_16): Fix handling of BOM.
22472 (encode_coding_utf_16): Fix handling of BOM.
22473
224742008-02-01 Kenichi Handa <handa@m17n.org>
22475
22476 * fileio.c (Finsert_file_contents): On replacing, before decoding
22477 the file into the work buffer, set point of the work buffer to the end.
22478
224792008-02-01 Dave Love <fx@gnu.org>
22480
22481 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22482
224832008-02-01 Dave Love <fx@gnu.org>
22484
22485 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22486 and fix C types.
22487
224882008-02-01 Kenichi Handa <handa@m17n.org>
22489
22490 * xdisp.c (SKIP_GLYPHS): New macro.
22491 (set_cursor_from_row): Pay attention to string display properties.
22492
22493 * category.c (copy_category_entry): Fix for the case that RANGE
22494 is an integer.
22495
22496 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22497
22498 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22499
225002008-02-01 Kenichi Handa <handa@m17n.org>
22501
22502 * charset.c (Fcharset_id_internal): New function.
22503 (syms_of_charset): Defsubr it.
22504
22505 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22506 with the last arg charset_list acquired from coding.
22507 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22508 the attribute coding_attr_ccl_valids.
22509
22510 * coding.h (enum define_coding_ccl_arg_index): Set the first
22511 member coding_arg_ccl_decoder to coding_arg_max.
22512
22513 * ccl.h (ccl_driver): Adjust prototype.
22514
22515 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22516 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22517 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22518 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22519 last arg Qnil.
22520
225212008-02-01 Kenichi Handa <handa@m17n.org>
22522
22523 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22524 call encode_char.
22525
22526 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22527
225282008-02-01 Dave Love <fx@gnu.org>
22529
22530 * composite.c (syms_of_composite): Make composition_hash_table weak.
22531
225322008-02-01 Kenichi Handa <handa@m17n.org>
22533
22534 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22535 (font_name_registry): Don't extern them.
22536 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22537
22538 * fontset.h (Qfontset): Don't extern it.
22539 (new_fontset_from_font_name): Extern it.
22540
22541 * fontset.c: Give 8 extra slots to fontset objects.
22542 (Qfontset_info): New variable.
22543 (syms_of_fontset): Defsym it.
22544 (FONTSET_FALLBACK): New macro.
22545 (fontset_face): Try also the default fontset.
22546 (make_fontset): Realize a fallback fontset from the default fontset.
22547 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22548 using split_font_name_into_vector and build_font_name_from_vector.
22549 (Fset_fontset_font): Access the elements of font_spec by enum
22550 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22551 name by using split_font_name_into_vector.
22552 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22553 generate a proper font name from the fontset name. Update
22554 Vfontset_alias_alist.
22555 (n_auto_fontsets): New variable.
22556 (new_fontset_from_font_name): New function.
22557 (Ffont_info): Store the information about fonts generated from the
22558 default fontset in the first extra slot of the returned char-table.
22559
22560 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22561 (font_name_registry): Delete function.
22562 (split_font_name_into_vector): New function.
22563 (build_font_name_from_vector): New function.
22564 (font_list): The argument REGISTRY is now a list of registry names.
22565 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22566 specifies an explicit font name, return the name as is. Make a
22567 list of registy names.
22568
22569 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22570 of x_new_fontset.
22571 (Fx_create_frame): Don't call x_new_fontset here. Just use
22572 x_list_fonts to check the existence of fonts.
22573
22574 * xterm.h (x_new_fontset): Adjust prototype.
22575
22576 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22577 string. Use new_fontset_from_font_name to create a fontset from a
22578 font name.
22579
225802008-02-01 Kenichi Handa <handa@m17n.org>
22581
22582 * syntax.c (Vfind_word_boundary_function_table): New name for
22583 Vnext_word_boundary_function_table.
22584 (find-word-boundary-function-table): New name for
22585 next-word-boundary-function-table.
22586
225872008-02-01 Dave Love <fx@gnu.org>
22588
22589 * Makefile.in: Fix some dependencies.
22590
22591 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22592 set it to nil before returning.
22593
22594 * composite.c (update_compositions): Fix type error.
22595
22596 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22597
225982008-02-01 Kenichi Handa <handa@m17n.org>
22599
22600 * xterm.c (x_new_font): Optimize for the case that the font is
22601 already set for the frame.
22602
226032008-02-01 Kenichi Handa <handa@m17n.org>
22604
22605 * chartab.c (char_table_ascii): Check if the char table contents
22606 is sub-char-table or not.
22607 (char_table_set, char_table_set_range): Fix argument to
22608 char_table_ascii.
22609
22610 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22611 (detect_coding_utf_8, detect_coding_utf_16)
22612 (detect_coding_emacs_mule, detect_coding_iso_2022)
22613 (detect_coding_sjis, detect_coding_big5)
22614 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22615 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22616 sequence is valid in this coding system. Change callers.
22617 (MAX_ANNOTATION_LENGTH): New macro.
22618 (ADD_ANNOTATION_DATA): New macro.
22619 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22620 ADD_ANNOTATION_DATA. Change the format of annotation data.
22621 (ADD_CHARSET_DATA): New macro.
22622 (emacs_mule_char): New argument ID. Change callers.
22623 (decode_coding_emacs_mule, decode_coding_iso_2022)
22624 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22625 Produce charset annotation data in coding->charbuf.
22626 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22627 to charset annotation data in coding->charbuf.
22628 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22629 coding->common_flags if the coding system is iso-2022 based and
22630 uses designation.
22631 (produce_composition): Adjust for the new annotation data format.
22632 (produce_charset): New function.
22633 (produce_annotation): Handle charset annotation.
22634 (handle_composition_annotation, handle_charset_annotation): New
22635 functions.
22636 (consume_chars): Handle charset annotation. Utilize the above two
22637 functions.
22638 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22639 buffer, get the deleted text as a string and set
22640 coding->src_object to that string.
22641 (detect_coding, detect_coding_system): Use the new struct
22642 coding_detection_info.
22643
22644 * coding.h (struct coding_detection_info): New structure.
22645 (struct coding_system): Adjust prototype of the member `detector'.
22646 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22647
226482008-02-01 Kenichi Handa <handa@m17n.org>
22649
22650 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22651
226522008-02-01 Dave Love <fx@gnu.org>
22653
22654 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22655 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22656 to new local and nullify apropos_accumulate before returning.
22657 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22658
226592008-02-01 Kenichi Handa <handa@m17n.org>
22660
22661 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22662 correctly.
e3eea1fc 22663
aac0c6e3
MR
226642008-02-01 Dave Love <fx@gnu.org>
22665
22666 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22667
226682008-02-01 Kenichi Handa <handa@m17n.org>
22669
22670 The following changes are to make character composition happen
22671 automatically on displaying.
22672
22673 * Makefile.in (lisp, shortlisp): Add composite.elc.
22674
22675 * composite.h (Qauto_composed, Vauto_composition_function)
22676 (Qauto_composition_function): Extern them.
22677
22678 * composite.c (Vcomposition_function_table)
22679 (Qcomposition_function_table): Delete variables.
22680 (Qauto_composed, Vauto_composition_function)
22681 (Qauto_composition_function): New variables.
22682 (run_composition_function): Don't call
22683 compose-chars-after-function.
22684 (update_compositions): Clear `auto-composed' text property.
22685 (compose_chars_in_text): Delete this function.
22686 (syms_of_composite): Staticpro Qauto_composed and
22687 Qauto_composition_function. Declare Vauto_composition_function as
22688 a Lisp variable.
22689
22690 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22691
22692 * xdisp.c (it_props): Add an entry for Qauto_composed.
22693 (handle_auto_composed_prop): New function.
22694
22695 * xselect.c (selection_data_to_lisp_data): Don't call
22696 compose_chars_in_text.
22697
226982008-02-01 Dave Love <fx@gnu.org>
22699
22700 * keyboard.c (read_char): Modify checking around use of
22701 Vkeyboard_translate_table.
22702
22703 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22704 and fix C types.
22705
227062008-02-01 Kenichi Handa <handa@m17n.org>
22707
22708 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22709 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22710 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22711 the case that the last byte is '\r' correctly.
22712 (decode_coding): Flush out the unprocessed data correctly.
22713 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22714
227152008-02-01 Dave Love <fx@gnu.org>
22716
22717 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22718 Add XK_ISO... case.
22719 (xaw_scroll_callback): Revert last change.
22720
227212008-02-01 Kenichi Handa <handa@m17n.org>
22722
22723 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22724
227252008-02-01 Kenichi Handa <handa@m17n.org>
22726
22727 * xfaces.c (Vface_resizing_fonts): New variable.
22728 (struct font_name): New member `resizing_ratio'.
22729 (font_resizing_ratio): New function.
22730 (split_font_name): Set font->resizing_ratio.
22731 (better_font_p): Pay attention to font->resizing_ratio.
22732 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22733 RESX, and RESY fields.
22734 (try_alternative_families): Try scalable fonts if
22735 Vscalable_fonts_allowed is not Qt.
22736 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22737
227382008-02-01 Dave Love <fx@gnu.org>
22739
22740 * xterm.c (xaw_scroll_callback): Cast correctly.
22741
227422008-02-01 Dave Love <fx@gnu.org>
22743
22744 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22745 (lispy_kana_keys): Comment out.
22746 (make_lispy_event) [XK_kana_A]: Comment out.
22747
22748 * xterm.c (xaw_scroll_callback): Cast call_data.
22749 (XTread_socket): Deal with ASCII keysyms.
22750 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22751
227522008-02-01 Dave Love <fx@gnu.org>
22753
22754 * xterm.c (Vx_keysym_table): New.
22755 (syms_of_xterm): Initialize it.
22756 (XTread_socket): Use it.
22757 From head: Eliminate incorrect optimization that tried to avoid
22758 decoding the output of X*LookupString.
22759 (x_get_font_repertory): Delete charset declaration.
22760
227612008-02-01 Kenichi Handa <handa@m17n.org>
22762
22763 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22764 return 0.
22765 (Fdefine_coding_system_internal): Setup
22766 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22767
227682008-02-01 Dave Love <fx@gnu.org>
22769
22770 * coding.c (Fcheck_coding_system): Doc fix.
22771
22772 * editfns.c (Finsert_byte): Return a proper value.
22773
227742008-02-01 Kenichi Handa <handa@m17n.org>
22775
22776 * coding.c (decode_coding): Fix args to translate_chars. Pay
22777 attention to Vstandard_translation_table_for_decode.
22778 (encode_coding): Fix args to translate_chars. Pay attention to
22779 Vstandard_translation_table_for_encode.
22780
22781 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22782 SINGLE_BYTE_CHAR_P.
22783
22784 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22785 not by SINGLE_BYTE_CHAR_P.
22786
22787 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22788 SINGLE_BYTE_CHAR_P.
22789
22790 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22791 SINGLE_BYTE_CHAR_P.
22792
22793 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22794 by SINGLE_BYTE_CHAR_P.
22795
22796 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22797 SINGLE_BYTE_CHAR_P.
22798
227992008-02-01 Dave Love <fx@gnu.org>
22800
22801 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22802
228032008-02-01 Dave Love <fx@gnu.org>
22804
22805 * fns.c (Flanginfo): Fix typo.
22806
22807 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22808
228092008-02-01 Kenichi Handa <handa@m17n.org>
22810
22811 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22812 (detect_coding_emacs_mule, detect_coding_iso_2022)
22813 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22814 incomplete byte sequence. Don't update *mask when correctly detected.
22815 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22816 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22817 (detect_coding, detect_coding_system): Adjust for the changes above.
22818
228192008-02-01 Kenichi Handa <handa@m17n.org>
22820
22821 * character.c (char_string): Rename from
22822 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22823 (string_char): Rename from string_char.
22824
22825 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22826 if C is greater than MAX_3_BYTE_CHAR.
22827 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22828 string_char instead of string_char_with_unification.
22829
228302008-02-01 Dave Love <fx@gnu.org>
22831
22832 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22833
228342008-02-01 Kenichi Handa <handa@m17n.org>
22835
22836 * keymap.c (push_key_description): Pay attention to force_multibyte.
22837
22838 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22839
228402008-02-01 Dave Love <fx@gnu.org>
22841
22842 * charset.c (define_charset_internal): Rename `supprementary'.
22843
22844 * Makefile.in (lisp, shortlisp): Remove latin-N.
22845
228462008-02-01 Dave Love <fx@gnu.org>
22847
22848 * xfns.c (x_window, x_window): Use use_xim.
22849
22850 * xterm.c (use_xim): Initialize.
22851 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22852 (x_term_init): Maybe set use_xim.
22853
22854 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22855
228562008-02-01 Kenichi Handa <handa@m17n.org>
22857
22858 * search.c (search_buffer): Fix case-fold-search of multibyte
22859 characters.
22860 (boyer_moore): Rename the last argument to char_high_bits.
22861
228622008-02-01 Kenichi Handa <handa@m17n.org>
22863
22864 * xdisp.c (display_string): Fix for the case of zero width glyph.
22865
22866 * xfns.c (x_set_font): Change the error message of the case that
22867 x_new_fontset returns Qt.
22868
22869 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22870 (Finternal_set_lisp_face_attribute): Use signal_error for the
22871 error of invalid fontset.
22872
22873 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22874 fontset, return Qt.
22875
228762008-02-01 Dave Love <fx@gnu.org>
22877
22878 * unexelf.c (unexec): Make .got handling not SGI-specific.
22879
22880 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22881
22882 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22883
22884 * keyboard.c (read_key_sequence): Fix type error.
22885
22886 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22887 type error.
22888
22889 * fontset.c (fontset_add): Return Lisp_Object.
22890
228912008-02-01 Dave Love <fx@gnu.org>
22892
22893 * charset.h (charset_ordered_list_tick): Declare extern.
22894
228952008-02-01 Kenichi Handa <handa@m17n.org>
22896
22897 The following changes (and some of 2008-02-01 changes of mine) are
22898 for handling syntax, category, and case conversion for unibyte
22899 characters by converting them to multibyte on the fly. With these
22900 changes, we don't have to setup syntax and case tables for unibyte
22901 characters in each language environment.
22902
22903 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22904 multibyte if necessary.
22905
22906 * bytecode.c (Fbyte_code): Likewise.
22907
22908 * character.h (LEADING_CODE_LATIN_1_MIN)
22909 (LEADING_CODE_LATIN_1_MAX): New macros.
22910 (unibyte_to_multibyte_table): Extern it.
22911 (unibyte_char_to_multibyte): New macro.
22912 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22913 (CHAR_LEADING_CODE): New macro.
22914 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22915
22916 * character.c (unibyte_to_multibyte_table): New variable.
22917 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22918 (multibyte_char_to_unibyte): If C is an eight-bit character,
22919 convert it to the corresponding byte value.
22920
22921 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22922 not 1, signals an error. Update the elements of
22923 unibyte_to_multibyte_table.
22924 (init_charset_once): Initialize unibyte_to_multibyte_table.
22925 (syms_of_charset): Define the charset `iso-8859-1'.
22926
22927 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22928 as is without converting it to unibyte. In a unibyte buffer,
22929 convert C to multibyte before checking the syntax.
22930
22931 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22932
22933 * minibuf.c (Fminibuffer_complete_word): Use the macro
22934 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22935
22936 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22937
22938 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22939 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22940 that is zero, convert an eight-bit char to multibyte.
22941 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22942 non-emacs case.
22943 (PATFETCH): Convert an eight-bit char to multibyte.
22944 (HANDLE_UNIBYTE_RANGE): New macro.
22945 (regex_compile): Setup the compiled pattern for multibyte chars
22946 even if the given regex string is unibyte. Use PATFETCH_RAW
22947 instead of PATFETCH in many places. To handle `charset'
22948 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22949 only for ASCII chars.
22950 (analyse_first) <exactn>: Simplify because the compiled pattern
22951 is multibyte.
22952 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22953 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22954 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22955 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22956 multibyte always 1.
22957 (re_search_2): In emacs, set the locale variable multibyte to 1,
22958 otherwise to 0. New local variable target_multibyte. Check it
22959 to decide the multibyteness of STR1 and STR2. If
22960 target_multibyte is zero, convert unibyte chars to multibyte
22961 before translating and checking fastmap.
22962 (TARGET_CHAR_AND_LENGTH): New macro.
22963 (re_match_2_internal): In emacs, set the locale variable multibyte
22964 to 1, otherwise to 0. New local variable target_multibyte. Check
22965 it to decide the multibyteness of STR1 and STR2. Use
22966 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22967 <charset, charset_not>: If multibyte is nonzero, check fastmap
22968 only for ASCII chars. Call bcmp_translate with
22969 target_multibyte, not with multibyte.
22970 <begline>: Declare the local variable C as `unsigned'.
22971 (bcmp_translate): Change the last arg name to target_multibyte.
22972
22973 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22974 the regexp pattern and the matching target. Set cp->buf.multibyte
22975 to the multibyteness of the regexp pattern. Set
22976 cp->but.target_multibyte to the multibyteness of the matching target.
22977 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22978 FETCH_STRING_CHAR_ADVANCE.
22979 (Freplace_match): Convert unibyte chars to multibyte.
22980
22981 * syntax.c (char_quoted, back_comment, scan_words)
22982 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22983 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22984 unibyte chars to multibyte.
22985 (skip_chars): Delete the arg syntaxp, and move the code for
22986 handling syntaxes to skip_syntaxes. Change callers.
22987 Fix the case that the multibyteness of STRING and the current
22988 buffer doesn't match.
22989 (skip_syntaxes): New function.
22990 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22991 SINGLE_BYTE_CHAR_P.
22992
229932008-02-01 Kenichi Handa <handa@m17n.org>
22994
22995 * xfaces.c (QCfontset): New variable.
22996 (LFACE_FONTSET): New macro.
22997 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22998 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22999 (Finternal_set_lisp_face_attribute)
23000 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23001 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23002 check also LFACE_FONTSET_INDEX.
23003 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23004 attrs[LFACE_FONT_INDEX].
23005 (syms_of_xfaces): Intern and staticpro QCfontset.
23006
23007 * dispextern.h (enum lface_attribute_index): New member
23008 LFACE_FONTSET_INDEX.
23009
23010 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23011
230122008-02-01 Kenichi Handa <handa@m17n.org>
23013
23014 * coding.c (coding_set_destination): Fix coding->destination for
23015 the case converting a region.
23016 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23017 (encode_coding_object): Fix coding->dst_pos and
23018 coding->dst_pos_byte for the case converting a region.
23019
23020 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23021
23022 * character.h (BYTE8_STRING): New macro.
23023
23024 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23025
230262008-02-01 Kenichi Handa <handa@m17n.org>
23027
23028 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23029 characters by octal form.
23030
23031 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23032
23033 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23034 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23035 _fetch_multibyte_char_len.
23036 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23037
23038 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23039
23040 * casefiddle.c (casify_object): Simplify. Handle the case that
23041 the case conversion change the byte length.
23042 (casify_region): Likewise.
23043
23044 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23045
23046 * character.c (_fetch_multibyte_char_len): Delete this variable.
23047 (syms_of_character): Setup Vprintable_chars.
23048
23049 * editfns.c (Fchar_equal): Fix for the unibyte case.
23050 (Finsert_byte): New function.
23051 (syms_of_editfns): Defsubr it.
23052
23053 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23054 of direct code 0x3ffff.
23055
23056 * search.c (Freplace_match): Fix for the unibyte case.
23057
230582008-02-01 Kenichi Handa <handa@m17n.org>
23059
23060 * lread.c (safe_to_load_p): Fix the logic.
23061
23062 * syntax.c (scan_words): Don't treat characters belonging to
23063 different scripts as constituting a word.
23064
23065 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23066
23067 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23068
23069 * emacs.c (main): In the case of --unibyte, instead of aborting on
23070 finding non-empty buffer, make it unibyte.
23071
230722008-02-01 Kenichi Handa <handa@m17n.org>
23073
23074 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23075 to create a fontset.
23076
230772008-02-01 Dave Love <fx@gnu.org>
23078
23079 * character.c (Funibyte_char_to_multibyte): Doc fix.
23080
23081 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23082
230832008-02-01 Kenichi Handa <handa@m17n.org>
23084
23085 * fontset.c (fontset_add): Make the type `int'.
23086 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23087
23088 * character.c (unibyte_char_to_multibyte)
23089 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23090 charset_unibyte, not charset_primary.
23091
23092 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23093
23094 * charset.c (charset_unibyte): Rename from charset_primary.
23095 (Funibyte_charset): Rename from Fprimary_charset.
23096 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23097 (syms_of_charset): Adjust for the above changes.
23098
23099 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23100 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23101 it->multibyte_p is zero.
23102
23103 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23104 Delete extern.
23105
231062008-02-01 Kenichi Handa <handa@m17n.org>
23107
23108 * coding.c (Fdefine_coding_system_internal): Fix category setting
23109 for a coding system of type iso-2022.
23110
231112008-02-01 Kenichi Handa <handa@m17n.org>
23112
23113 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23114
231152008-02-01 Kenichi Handa <handa@m17n.org>
23116
23117 * syntax.c (Vnext_word_boundary_function_table): New variable.
23118 (next-word-boundary-function-table): Declare it as a Lisp variable
23119 in syms_of_syntax.
23120 (scan_words): Call functions in Vnext_word_boundary_function_table
23121 if any.
23122
23123 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23124
23125 * fontset.c (fs_load_font): If fontp->charset is not negative,
23126 return fontp without setting its members.
23127
231282008-02-01 Dave Love <fx@gnu.org>
23129
23130 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23131
23132 * m/sparc.h (HAVE_ALLOCA): Delete.
23133
23134 * s/irix6-5.h: Don't include strings.h.
23135 (bcopy, bzero, bcmp): Don't undef.
23136
23137 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23138
23139 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23140 (TIOCSIGSEND): Don't test IRIX6.
23141 (bcopy, bzero, bcmp): Define conditionally.
23142
231432008-02-01 Kenichi Handa <handa@m17n.org>
23144
23145 * buffer.c (Qas, Qmake, Qto): New variables.
23146 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23147 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23148
23149 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23150 we are inserting a process output into a multibyte buffer.
23151
23152 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23153 multibyte_char_to_unibyte.
23154
23155 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23156 by the primary charset, make it eight-bit char.
23157 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23158
23159 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23160 (charset_8_bit__control, charset_8_bit_graphic)
23161 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23162 (define_charset_internal): New function.
23163 (syms_of_charset): Call define_charset_internal for pre-defined
23164 charsets.
23165
23166 * charset.h (charset_8_bit): Extern it.
23167
23168 * coding.c (make_conversion_work_buffer): Adjust for the change
23169 of Fset_buffer_multibyte.
23170 (encode_coding_raw_text): Increment p0 in the loop.
23171
23172 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23173
23174 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23175 for the change of Fset_buffer_multibyte.
23176
23177 * fns.c (Fstring_to_multibyte): New function.
23178 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23179
231802008-02-01 Dave Love <fx@gnu.org>
23181
23182 * xfns.c (x_put_x_image): Declare args.
23183
23184 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23185 (try_font_list): Declare an arg.
23186
23187 * xdisp.c (message2_nolog, set_message): Declare an arg.
23188
23189 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23190
23191 * syntax.c (scan_sexps_forward): Declare an arg.
23192
23193 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23194 Declare an arg.
23195
23196 * lisp.h (Fnew_fontset): Declare.
23197
23198 * keymap.c (push_key_description): Call CHARACTERP correctly.
23199
23200 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23201 (face_for_char): Delete unused vars.
23202 (Fset_fontset_font): Doc fix. Delete unused vars.
23203
23204 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23205
23206 * composite.c (update_compositions): Declare arg.
23207
23208 * cm.c (calccost, cmgoto): Declare args.
23209
23210 * charset.c: Remove `emacs' conditional. Doc fixes.
23211 (map_char_table_for_charset): Declare.
23212
23213 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23214
23215 * ccl.c: Remove `emacs' conditional.
23216
232172008-02-01 Kenichi Handa <handa@m17n.org>
23218
23219 The following changes are to allow specifying multiple font
23220 patterns for a character range (specified by script or charset).
23221
23222 * Makefile.in (abbrev.o): Depend on syntax.h.
23223 (xfaces.o): Depend on charset.h.
23224
23225 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23226 SINGLE_BYTE_CHAR_P.
23227
23228 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23229
23230 * character.h (Vchar_script_table): Extern it.
23231
23232 * character.c (Vscript_alist): Delete.
23233 (Vchar_script_table, Qchar_script_table): New variable.
23234 (syms_of_character): Declare Vchar_script_table as a lisp variable
23235 and initialize it.
23236
23237 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23238 have property char-table-extra-slots, make no extra slot.
23239
23240 * dispextern.h (struct face): Delete member `charset'.
23241 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23242 SINGLE_BYTE_CHAR_P.
23243 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23244 Add prototypes.
23245 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23246 (generate_ascii_font_name): Rename from generate_ascii_font.
23247
23248 * fontset.h (get_font_repertory_func): New prototype.
23249 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23250 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23251
23252 * fontset.c (Qprepend, Qappend): New variables.
23253 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23254 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23255 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23256 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23257 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23258 (load_font_get_repertory): New functions.
23259 (fontset_set): Delete.
23260 (fontset_face): New arg FACE. Return face ID, not face.
23261 Complete re-write to handle new fontset structure. Change caller.
23262 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23263 (face_for_char): Don't call lookup_face.
23264 (make_fontset_for_ascii_face): New arg FACE.
23265 (fs_load_font): New arg CHARSET_ID. Don't check
23266 Vfont_encoding_alist here.
23267 (find_font_encoding): New function.
23268 (list_fontsets): Use STRINGP, not ! NILP.
23269 (accumulate_script_ranges): New function.
23270 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23271 re-written to handle new fontset structure.
23272 (Ffontset_font): Return a copy of element.
23273 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23274 docstring of font-encoding-alist.
23275
23276 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23277 (Fset_fotset_font): Fix arguments to 5.
23278
23279 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23280
23281 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23282 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23283 (highlight_trailing_whitespace): Adjust for the change of
23284 lookup_named_face.
23285
23286 * xfaces.c: Include charset.h.
23287 (load_face_font): Delete argument C. Change caller.
23288 (generate_ascii_font_name): Rename from generate_ascii_font.
23289 (font_name_registry): New function.
23290 (cache_face): Store ascii faces before non-ascii faces in buckets.
23291 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23292 Lookup only ascii faces.
23293 (lookup_non_ascii_face): New function.
23294 (lookup_named_face): Delete argument C. Change caller.
23295 (lookup_derived_face): Delete argument C. Change caller.
23296 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23297 a string, just call font_list with it.
23298 (choose_face_font): Delete arguments FACE and C. New arg
23299 FONT_SPEC. Change caller.
23300 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23301 Change caller.
23302 (realize_non_ascii_face): New function.
23303 (realize_x_face): Call load_face_font here.
23304 (realize_tty_face): Delete argument C. Change caller.
23305 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23306 get a face ID.
23307 (dump_realized_face): Don't print charset of FACE.
23308
23309 * xfns.c (x_set_font): Always call x_new_fontset and
23310 store_frame_parameter.
23311 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23312 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23313
23314 * xterm.h (x_get_font_repertory): Extern it.
23315
23316 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23317 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23318 it->multibyte_p is zero.
23319 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23320 (x_new_fontset): If FONTSETNAME doesn't match any existing
23321 fontsets, create a new one.
23322 (x_get_font_repertory): New function.
23323
233242008-02-01 Kenichi Handa <handa@m17n.org>
23325
23326 * coding.c (Ffind_coding_systems_region_internal): Detect an
23327 ASCII only string correctly.
23328
23329 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23330 version is 0.
23331
233322008-02-01 Kenichi Handa <handa@m17n.org>
23333
23334 * lread.c: Include "coding.h".
23335 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23336 (load_each_byte, unread_char): New variables.
23337 (readchar_backlog): Delete.
23338 (readchar): Return a character unless load_each_byte is nonzero.
23339 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23340 cons. If unread_char is not -1, simply return it.
23341 (unreadchar): Handle the case that readcharfun is
23342 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23343 (read_multibyte): Delete.
23344 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23345 (read_emacs_mule_char): New functions.
23346 (Fload): Even if the file doesn't have the extension ".elc", if
23347 safe_to_load_p returns a positive version number, assume that the
23348 file contains bytecompiled code. If the version is less than 22,
23349 load the file while decoding multibyte sequences by emacs-mule.
23350 (readevalloop): Don't use readchar_backlog.
23351 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23352 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23353 (read_escape): Delete the arg BYTEREP.
23354 (read1): Set load_each_byte to 1 temporarily while handling
23355 #@NUMBER. Don't call read_multibyte.
23356 (read_vector): Call Fread with a cons. If readcharfun is
23357 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23358 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23359 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23360 and Qload_force_doc_strings.
23361
233622008-02-01 Kenichi Handa <handa@m17n.org>
23363
23364 * xdisp.c (face_before_or_after_it_pos): Call
23365 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23366
233672008-02-01 Kenichi Handa <handa@m17n.org>
23368
23369 * character.h (TRAILING_CODE_P): New macro.
23370 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23371 (string_char_with_unification): Fix prototype.
23372 (Vscript_alist): Extern it.
23373
23374 * character.c (Vscript_alist): New variable.
23375 (string_char_with_unification, str_as_unibyte)
23376 (string_escape_byte8): Add `const' to local variables.
23377 (syms_of_character): Declare script-alist as a Lisp variable.
23378
23379 * charset.h (Vcharset_ordered_list): Extern it.
23380 (charset_ordered_list_tick): Extern it.
23381 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23382 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23383 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23384 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23385 (Funify_charset): Adjust for the change of Funify_charset.
23386
23387 * charset.c (charset_ordered_list_tick): New variable.
23388 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23389 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23390 deunify instead of unify a charset.
aac0c6e3
MR
23391 (string_xstring_p): Add `const' to local variables.
23392 (find_charsets_in_text): Add `const' to arguments and local variables.
23393 (encode_char): Adjust for the change of Funify_charset. Fix
23394 detecting of invalid code.
23395 (Fset_charset_priority): Increment charset_ordered_list_tick.
23396 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23397 and TO_CODE.
23398
23399 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23400 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23401 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23402 (decode_coding_ccl, consume_chars)
23403 (Ffind_coding_systems_region_internal)
23404 (Fcheck_coding_systems_region): Add `const' to local variables.
23405
23406 * print.c (print_object): Use octal form for printing the
23407 contents of a bool vector.
23408
234092008-02-01 Dave Love <fx@gnu.org>
23410
23411 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23412 <version == 20>: Refuse to load.
23413
234142008-02-01 Dave Love <fx@gnu.org>
23415
23416 * fns.c: Move coding.h.
23417 (Qcodeset, Qdays, Qmonths): New.
23418 (concat): Use CHARACTERP instead of INTEGERP.
23419 (Flocale_codeset): Delete.
23420 (Flanginfo): New function.
23421 (syms_of_fns): Change accordingly.
23422
23423 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23424
234252008-02-01 Dave Love <fx@gnu.org>
23426
23427 * casetab.c (init_casetab_once, init_casetab_once): Fix
23428 CHAR_TABLE_SET call.
23429
23430 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23431
23432 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23433
23434 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23435 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23436 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23437
23438 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23439
23440 * coding.c (ENCODE_DESIGNATION, decode_eol)
23441 (make_conversion_work_buffer, code_conversion_restore)
23442 (Fdefine_coding_system_internal): Convert Lisp types.
23443 (code_conversion_restore): Use EQ, not ==.
23444 (Fencode_coding_string): Fix code_convert_string call.
23445
23446 * coding.h (code_convert_region): Fix prototype.
23447
23448 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23449
23450 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23451 (Ffontset_info): Convert Lisp types.
23452
23453 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23454
23455 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23456
23457 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23458
23459 * chartab.c: Include "...h", not <...h> in some cases.
23460
23461 * callproc.c (Fcall_process): Remove unused variables.
23462
234632008-02-01 Dave Love <fx@gnu.org>
23464
23465 * coding.c (Fset_coding_system_priority): Allow null arg list.
23466
234672008-02-01 Dave Love <fx@gnu.org>
23468
23469 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23470 (Fself_insert_and_exit): Use CHARACTERP.
23471
23472 * callproc.c (Fcall_process): Remove unused vars.
23473
23474 * xterm.c (XTread_socket): Add extra dead keysyms.
23475
23476 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23477
23478 * dispextern.h: Remove prototypes for redraw_frame,
23479 redraw_garbaged_frames.
23480
23481 * cmds.c (Fself_insert_command): Use CHARACTERP.
23482
23483 * chartab.c (make_sub_char_table): Remove unused var.
23484 (Fset_char_table_default, Fmap_char_table): Doc fix.
23485
23486 * keymap.c (access_keymap): Remove generic char code.
23487 (push_key_description): Use CHARACTERP.
23488
234892008-02-01 Dave Love <fx@gnu.org>
23490
23491 * charset.c: Doc fixes.
23492 (Funify_charset): Extra checking.
23493
234942008-02-01 Dave Love <fx@gnu.org>
23495
23496 * lread.c: Remove some unused variables.
23497 (safe_to_load_p): If safe, return the magic number version byte.
23498 (Fload): Maybe use load-with-code-conversion.
23499
235002008-02-01 Kenichi Handa <handa@m17n.org>
23501
23502 * category.c (Fmodify_category_entry): Don't modify the contents
23503 of category_set for characters out of the range. Avoid
23504 unnecessary modification.
23505
23506 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23507 Vchar_unify_table. The default value of the table is now nil.
23508
23509 * character.c (syms_of_character): Setup Vchar_width_table for
23510 eight-bit-control and raw-byte chars.
23511
23512 * charset.h (enum define_charset_arg_index): Delete
23513 charset_arg_parents and add charset_arg_subset and
23514 charset_arg_superset.
23515 (enum charset_attr_index): Delete charset_parents and add
23516 charset_subset and charset_superset.
23517 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23518 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23519 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23520 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23521 (CHARSET_SUPERSET): New macros.
23522 (charset_work): Extern it.
23523 (ENCODE_CHAR): Use charset_work.
23524 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23525 (map_charset_chars): Extern it.
23526
23527 * charset.c (load_charset_map): Set the default value of encoder
23528 and deunifier char-tables to nil.
23529 (map_charset_chars): Change argument. Change callers. Use
23530 map_char_table_for_charset instead of map_char_table.
23531 (Fmap_charset_chars): New optional args from_code and to_code.
23532 (Fdefine_charset_internal): Adjust for the change of
23533 `define-charset' (:parents -> :subset or :superset).
23534 (charset_work): New variable.
23535 (encode_char, syms_of_charset): Adjust for the change of
23536 Fdefine_charset_internal.
23537 (Ffind_charset_string): Setup the vector `charsets' correctly.
23538
23539 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23540 the previous change.
23541 (char_table_ref_and_range): Adjust for the above change.
23542 (map_sub_char_table_for_charset): New function.
23543 (map_char_table_for_charset): New function.
23544
23545 * keymap.c (describe_vector): Handle a char-table directly here.
23546 (describe_char_table): Delete.
23547
23548 * lisp.h (map_charset_chars): Delete.
23549
235502008-02-01 Dave Love <fx@gnu.org>
23551
23552 * fns.c (count_combining): Comment out (unused).
23553 (Flocale_codeset): New.
23554 (syms_of_fns): Defsubr it.
23555
23556 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23557 (size_t): Remove.
23558
235592008-02-01 Dave Love <fx@gnu.org>
23560
23561 * Makefile.in (chartab.o): Depend on charset.h.
23562
235632008-02-01 Kenichi Handa <handa@m17n.org>
23564
23565 * character.c (syms_of_character): Set the default value of
23566 Vprintable_chars to Qnil.
23567
235682008-02-01 Dave Love <fx@gnu.org>
23569
23570 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23571
235722008-02-01 Kenichi Handa <handa@m17n.org>
23573
23574 * charset.c (load_charset_map): Handle the case that from < to
23575 correctly.
23576
23577 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23578 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23579 Pay attention to raw-8-bit chars.
23580
235812008-02-01 Kenichi Handa <handa@m17n.org>
23582
23583 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23584 It is not bytecompiled now.
23585
23586 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23587 (charset_jisx0208): New variables.
23588 (Fdefine_charset_internal): Setup them if appropriate.
23589 (init_charset_once): Initialize them to -1.
23590
23591 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23592 (charset_jisx0208): Extern them.
23593
23594 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23595 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23596 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23597 (setup_iso_safe_charsets): Fix arguments to Fassq.
23598 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23599 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23600 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23601 (encode_coding_iso_2022): Change the 1st arg to
23602 ENCODE_ISO_CHARACTER to a variable.
23603
236042008-02-01 Kenichi Handa <handa@m17n.org>
23605
23606 * charset.h (enum define_charset_arg_index): New enums
23607 charset_arg_min_code and charset_arg_max_code.
23608 (struct charset): New member char_index_offset.
23609
23610 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23611 Take charset->char_index_offset into account.
23612 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23613 args[charset_arg_max_code]. Setup charset.char_index_offset.
23614 (syms_of_charset): Fix args to Fdefine_charset_internal.
23615
236162008-02-01 Dave Love <fx@gnu.org>
23617
23618 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23619
236202008-02-01 Dave Love <fx@gnu.org>
23621
23622 * coding.c: Doc fixes.
23623 (Fcoding_system_aliases): Fix return value.
23624 (Qmac): Remove (duplicated) definition.
23625
236262008-02-01 Dave Love <fx@gnu.org>
23627
362654a6
JB
23628 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23629 New functions.
aac0c6e3
MR
23630
23631 * character.c (Fstring): Doc fix.
23632
23633 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23634
362654a6 23635 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23636 (font-encoding-alist): Doc fix.
23637
236382008-02-01 Dave Love <fx@gnu.org>
23639
23640 * term.c (costs_set): Declare static, non-initialized for pcc.
23641 (encode_terminal_code): Remove unused var.
23642
23643 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23644 for K&R.
23645
23646 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23647
23648 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23649 (suffixes): Move out of make_subsidiaries for K&R.
23650
23651 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23652
23653 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23654
236552008-02-01 Dave Love <fx@gnu.org>
23656
23657 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23658
23659 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23660
236612008-02-01 Yong Lu <lyongu@asia-infonet.com>
23662
23663 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23664
23665 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23666
236672008-02-01 Kenichi Handa <handa@m17n.org>
23668
23669 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23670 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23671
236722008-02-01 Kenichi Handa <handa@m17n.org>
23673
23674 * coding.c (decode_coding_charset): Adjust for the change of
23675 Fdefine_coding_system_internal.
23676 (Fdefine_coding_system_internal): For a coding system of
23677 `charset' type, store a list of charset IDs in
23678 `charset_attr_charset_valids' element of coding attributes.
23679
236802008-02-01 Kenichi Handa <handa@m17n.org>
23681
23682 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23683 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23684 caller. Handle 2-byte and 3-byte charsets correctly.
23685 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23686 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23687 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23688 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23689 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23690 sequence.
23691 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23692 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23693 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23694 and alt&rule composition.
23695 (decode_coding_iso_2022): Handle composition correctly.
23696 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23697
23698 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23699 re-defining a charset. If the charset has :emacs-mule-id, setup
23700 emacs_mule_bytes.
23701 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23702
237032008-02-01 Kenichi Handa <handa@m17n.org>
23704
23705 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23706 (encode_coding_big5, encode_coding_charset): If coding requires safe
23707 encoding, produce a character specified by
23708 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23709
237102008-02-01 Dave Love <fx@gnu.org>
23711
23712 * xterm.c (XSetIMValues): Declare.
23713
23714 * process.c: Conditionally include sys/wait.h, pty.h.
23715
23716 * print.c (print_object): Fix print format for 64-bit systems.
23717
23718 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23719
23720 * buffer.c (emacs_strerror): Declare.
23721
23722 * fontset.c (Fclear_face_cache): Declare.
23723 (accumulate_font_info): Comment-out (unused).
23724 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23725 variables.
23726
23727 * character.h (string_escape_byte8): Declare.
23728
23729 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23730 unused vars.
23731 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23732 (Fmap_charset_chars): Doc fix.
23733
23734 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23735 (Fset_coding_system_priority, Fset_coding_system_priority)
23736 (Fdefine_coding_system_internal): Doc fix.
23737
237382008-02-01 Dave Love <fx@gnu.org>
23739
23740 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23741
237422008-02-01 Kenichi Handa <handa@m17n.org>
23743
23744 * character.c (string_escape_byte8): Make multibyte string with
23745 correct size.
23746
23747 * charset.c (Fmake_char): Delete unnecessary code.
23748
237492008-02-01 Kenichi Handa <handa@m17n.org>
23750
23751 * xfns.c (x_encode_text): Allocate coding.destination here, and
23752 call encode_coding_object with dst_object Qnil.
23753
23754 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23755 multibyte form correctly.
23756
23757 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23758 against Vfont_encoding_alist.
23759
23760 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23761 handling of charset list.
23762 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23763 (decode_coding_object): Move point to coding->dst_pos before
23764 calling post-read-conversion function.
23765 (encode_coding_object): Give correct arguments to
23766 pre-write-conversion. Ignore the return value of
23767 pre-write-conversion function. Pay attention to the case that
23768 pre-write-conversion changes the current buffer. If dst_object is
23769 Qt, even if coding->src_bytes is zero, allocate at least one byte
23770 to coding->destination.
23771
23772 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23773
23774 * charset.c (Fmake_char): Make it more backward compatible.
23775 (Fmap_charset_chars): Fix docstring.
23776
237772008-02-01 Dave Love <fx@gnu.org>
23778
23779 * coding.c: Doc fixes.
23780 (Fdefine_coding_system_alias): Use names, not symbols, in
23781 coding-system-alist.
23782
237832008-02-01 Kenichi Handa <handa@m17n.org>
23784
23785 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23786 of calling free_realized_face.
23787
237882008-02-01 Yong Lu <lyongu@asia-infonet.com>
23789
23790 * charset.c (read_hex): Don't treat SPC as a comment starter.
23791 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23792 (Fdecode_char): Fix typo.
23793
237942008-02-01 Kenichi Handa <handa@m17n.org>
23795
23796 * charset.h (struct charset): New member `code_space_mask'.
23797
23798 * coding.c (coding_set_source): Delete the local variable beg_byte.
23799 (encode_coding_charset, Fdefine_coding_system_internal):
23800 Delete the local variable charset.
23801 (Fdefine_coding_system_internal): Setup
23802 attrs[coding_attr_charset_valids] correctly.
23803
23804 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23805 member to check if CODE is valid or not.
23806 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23807 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23808 is within the range of charset->min_code and carset->max_code.
23809
238102008-02-01 Dave Love <fx@gnu.org>
23811
23812 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23813
23814 * dispextern.h (generate_ascii_font): Fix return type.
23815
23816 * xfaces.c (generate_ascii_font): Fix arg declaration.
23817
23818 * coding.c (coding_inherit_eol_type)
23819 (Fset_terminal_coding_system_internal)
23820 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23821
238222008-02-01 Kenichi Handa <handa@m17n.org>
23823
23824 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23825 multiple charsets correctly.
23826
238272008-02-01 Kenichi Handa <handa@m17n.org>
23828
23829 * search.c (boyer_moore): Fix handling of multibyte character
23830 translation.
23831
23832 * xdisp.c (display_mode_element): When the variable `elt' is
23833 changed, update `this' and `lisp_string'.
23834
238352008-02-01 Kenichi Handa <handa@m17n.org>
23836
23837 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23838
23839 * callproc.c (Fcall_process): Be sure to give the current buffer
23840 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23841
23842 * charset.c (struct charset_map_entries): New struct.
23843 (load_charset_map): Rename from parse_charset_map. New args
23844 entries and n_entries. Change caller.
23845 (load_charset_map_from_file): Rename from load_charset_map.
23846 Change caller. New arg control_flag. Call load_charset_map at
23847 the tail.
23848 (load_charset_map_from_vector): New function.
23849 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23850 (encode_char): If the charset is compact, change a character index
23851 to a code point.
23852
23853 * coding.c (coding_alloc_by_making_gap): Check the case that the
23854 source and destination are the same correctly.
23855 (decode_coding_raw_text): Set coding->consumed_char and
23856 coding->consumed to 0.
23857 (produce_chars): If coding->chars_at_source is nonzero, update
23858 coding->consumed_char and coding->consumed before calling
23859 alloc_destination.
23860 (Fdefine_coding_system_alias): Register ALIAS in
23861 Vcoding_system_alist.
23862 (syms_of_coding): Define `no-conversion' coding system at the tail.
23863
23864 * fileio.c (Finsert_file_contents): Set coding_system instead of
23865 val. If the current buffer is multibyte, always call
23866 decode_coding_gap.
23867
23868 * xfaces.c (try_font_list): Give higher priority to fontset's
23869 family than face's family.
23870
238712008-02-01 Kenichi Handa <handa@m17n.org>
23872
23873 * callproc.c (Fcall_process): Be sure to give the current buffer
23874 to decode_coding_c_string.
23875
23876 * xfaces.c (try_font_list): Give a family specified in a fontset
23877 higher priority than a family specified in a face.
23878
238792008-02-01 Kenichi Handa <handa@m17n.org>
23880
23881 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23882 Fix arguments to insert_from_buffer.
23883
23884 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23885
238862008-02-01 Kenichi Handa <handa@m17n.org>
23887
23888 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23889 (decode_coding_gap): Set coding->dst_multibyte correctly.
23890
238912008-02-01 Kenichi Handa <handa@m17n.org>
23892
23893 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23894 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23895 (encode_coding_utf_16): Substitute coding->default_char for
23896 non-Unicode characters.
23897 (decode_coding): Don't call record_insert here.
23898 (setup_coding_system): Initialize `surrogate' of
23899 coding->spec.utf_16 to 0.
23900 (EMIT_ONE_BYTE): Fix for multibyte case.
23901
23902 * insdel.c (insert_from_gap): Call record_insert.
23903
239042008-02-01 Kenichi Handa <handa@m17n.org>
23905
23906 * casefiddle.c (casify_region): Fix multibyte case.
23907
23908 * character.c (c_string_width): Add return type `int'.
23909 (char_string_with_unification): Delete arg ADVANCED.
23910
23911 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23912 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23913 (CHAR_STRING_ADVANCE): Make it do-while statement.
23914
23915 * chartab.c (sub_char_table_set_range): Optimize for the case
23916 DEPTH == 3. Add workaround code for a GCC optimization bug.
23917
23918 * charset.c (parse_charset_map): Remove an unused variable.
23919
23920 * coding.c: Delete unused variables.
23921
23922 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23923 earlier. If inserted is zero and the coding system doesn't
23924 require flushing, don't call decode_coding_gap.
23925
23926 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23927
239282008-02-01 Kenichi Handa <handa@m17n.org>
23929
23930 The following changes are for using Unicode as an internal
23931 character model, and use UTF-8 format for buffer/string
23932 representation.
23933
23934 * .gdbinit (xchartable): Adjust for the change of char table structure.
23935 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23936
23937 * Makefile.in (obj): Add character.o and chartab.o.
23938 (lisp, shortlisp): Remove utf-8.elc.
23939 (*.o): For many files, change dependency on charset.h to
23940 character.h, and add dependency on character.h.
23941 (character.o, chartab.o): New targets.
23942
23943 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23944 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23945 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23946 of "charset.h".
23947
23948 * dired.c, filelock.c: Include "character.h".
23949
23950 * alloc.c: Include "character.h" instead of "charset.h".
23951 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23952 (syms_of_alloc): Remove defsubr for Smake_char_table.
23953
23954 * buffer.c: Include "character.h" instead of "charset.h", don't
23955 include "coding.h".
23956 (Fset_buffer_multibyte): Adjust for UTF-8.
23957
23958 * buffer.h: EXFUN Fbuffer_live_p.
23959
23960 * callproc.c: Include "character.h" instead of "charset.h".
23961 (Fcall_process): Big change for the new code-conversion APIs.
23962
23963 * casetab.c: Include "character.h" instead of "charset.h".
23964 (set_canon, set_identity, shuffle): Adjust for the new
23965 map_char_table spec.
23966 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23967 accessing the char table structure.
23968
23969 * chartab.c: New file that implements char table.
23970
23971 * category.c: Include "character.h".
23972 (copy_category_entry): New function.
23973 (copy_category_table): Call map_char_table and copy_category_entry.
23974 (Fmake_category_table): Initialize all top-level slots.
23975 (char_category_set): New function.
23976 (modify_lower_category_set): Delete.
23977 (Fmodify_category_entry): Call char_table_ref_and_range.
23978
23979 * category.h (CATEGORY_SET): Just call char_category_set.
23980
23981 * ccl.c: Include "character.h".
23982 (Qccl, Qcclp): New variables.
23983 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23984 it's less than 256.
23985 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23986 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23987 and DST type.
23988 (ccl_driver): Change types of argument, adjust code accordingly.
23989 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23990 ccl_driver.
23991 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23992
23993 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23994 New members src_multibyte, dst_multibyte, consumed, and produced.
23995 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23996 (CODING_SPEC_CCL_PROGRAM): New macro.
23997 (ccl_driver): Update prototype.
23998 (Qccl, Qcclp, Fccl_program_p): Extern them.
23999 (CHECK_CCL_PROGRAM): New macro.
24000
24001 * character.c, character.h, chartab.c: New files.
24002
24003 * charset.c: Mostly re-written. Move character and multibyte sequence
24004 handling codes to character.c.
24005
24006 * charset.h: Mostly re-written. Move character and multibyte sequence
24007 handling codes to character.h.
24008
24009 * coding.c, coding.h: Mostly re-written.
24010
24011 * composite.c: Include "character.h" instead of "charset.h".
24012 (CHAR_WIDTH): Move to character.h.
24013 (HASH_KEY, HASH_VALUE): Delete.
24014
24015 * composite.h (enum composition_method): Change order of enumeration
24016 symbols.
24017
24018 * data.c: Include "character.h" instead of "charset.h".
24019 (Faref): Call CHAR_TABLE_REF for a char table.
24020 (Faset): Call CHAR_TABLE_SET for a char table.
24021
24022 * dispextern.h (free_realized_face, check_face_attribytes)
24023 (generate_ascii_font): Extern them.
24024 (free_realized_multibyte_face): Delete extern.
24025
24026 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24027 table structure.
24028
24029 * editfns.c: Include "character.h" instead of "charset.h".
24030 (Fchar_to_string): Always call CHAR_STRING.
24031
24032 * emacs.c (main): Call init_charset_once, init_charset,
24033 syms_of_chartab, and syms_of_character.
24034
24035 * fileio.c: Include "character.h" instead of "charset.h".
24036 (Finsert_file_contents): Big change for the new code-conversion API.
24037 (choose_write_coding_system, Fwrite_region): Likewise.
24038 (build_annotations_2): Delete.
24039 (e_write): Big change for the new code-conversion API.
24040
24041 * fns.c: Include "character.h" instead of "charset.h".
24042 (copy_sub_char_table): Move to chartab.c.
24043 (Fcopy_sequence): Call copy_char_table for a char table.
24044 (concat): Delete codes calling count_multibyte.
24045 (string_char_to_byte, string_byte_to_char): Adjust for the new
24046 multibyte form.
24047 (internal_equal): Adjust for the change of char table structure.
24048 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24049 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24050 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24051 (char_table_translate, optimize_sub_char_table)
24052 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24053 chartab.c.
24054 (char_table_ref_and_index): Delete.
24055 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24056 (Fmd5): Call preferred_coding_system instead of accessing
24057 Vcoding_category_list. Adjust for the new code-conversion API.
24058 (syms_of_fns): Move defsubr for char table related functions to
24059 chartab.c.
24060
24061 * fontset.c: Mostly re-written.
24062
24063 * fontset.h (struct font_info): Change type of the member encoding_type.
24064 (enum FONT_SPEC_INDEX): New enum.
24065 (fontset_font_pattern, fs_load_font): Update prototype.
24066 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24067
24068 * indent.c: Include "character.h" instead of "charset.h".
24069 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24070
24071 * insdel.c: Include "character.h" instead of "charset.h".
24072 (copy_text): Don't refer to Vnonascii_translation_table.
24073 (insert_from_gap): New function.
24074
24075 * keyboard.c: Include "character.h" instead of "charset.h".
24076 (command_loop_1): Never call direct_output_forward_char before
24077 a non-ASCII character.
24078 (read_char): If Vkeyboard_translate_table is a char table, always
24079 translate a character.
24080
24081 * keymap.c: Include "character.h".
24082 (store_in_keymap): Handle the case that IDX is a cons.
24083 (Fdefine_key): Handle the case that KEY is a cons and the car part
24084 is also a cons (range).
24085 (push_key_description): Adjust for the new character code.
24086 (describe_vector): Call describe_char_table for a char table.
24087 (describe_char_table): New function.
24088
24089 * keymap.h (describe_char_table): Extern it.
24090
24091 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24092 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24093 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24094 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24095 Delete.
24096 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24097 structure.
24098 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24099 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24100 (CHARTAB_SIZE_BITS_3): New macros.
24101 (chartab_size): Extern it.
24102 (struct Lisp_Char_Table): Re-design.
24103 (struct Lisp_Sub_Char_Table): New structure.
24104 (HASH_KEY, HASH_VALUE): Move from fns.c.
24105 (CHARACTERBITS): Define as 22.
24106 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24107 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24108 (GC_SUB_CHAR_TABLE_P): New macro.
24109 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24110 (code_convert_string_norecord): Deleted extern.
24111 (init_character_once, syms_of_character, init_charset)
24112 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24113
24114 * lread.c: Include "character.h".
24115 (read_multibyte): New arg NBYTES.
24116 (read_escape): Change the meaning of returned *BYTEREP.
24117 (to_multibyte): Delete.
24118 (read1): Adjust the handling of char table and string.
24119
24120 * print.c: Include "character.h" instead of "charset.h".
24121 (print_string): Convert 8-bit raw bytes to octal form by
24122 string_escape_byte8.
24123 (print_object): Adjust for the new multibyte form. Print 8-bit
24124 raw bytes always in octal form. Handle sub char table correctly.
24125
24126 * process.c: Include "character.h" instead of "charset.h".
24127 (read_process_output, send_process): Adjust for the new
24128 code-conversion API.
24129
24130 * puresize.h (BASE_PURESIZE): Increase.
24131
24132 * regex.c: Include "character.h" instead of "charset.h".
24133 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24134 (regex_compile): Accept a range whose starting and ending
24135 character have different leading bytes.
24136 (analyse_first): Adjust for the above change.
24137
24138 * search.c: Include "character.h" instead of "charset.h".
24139 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24140 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24141
24142 * syntax.c: Include "character.h" instead of "charset.h".
24143 (syntax_parent_lookup): Delete.
24144 (Fmodify_syntax_entry): Accept a cons as CHAR.
24145 (skip_chars): Adjust for the new multibyte form.
24146 (init_syntax_once): Call char_table_set_range instead of directly
24147 accessing the structure of a char table.
24148
24149 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24150 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24151 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24152 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24153
24154 * term.c: Include "buffer.h" and "character.h".
24155 (encode_terminal_code, write_glyphs): Adjust for the new
24156 code-conversion API.
24157 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24158
24159 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24160
24161 * xdisp.c: Include "character.h".
24162 (get_next_display_element): Adjust for the new multibyte form.
24163 (disp_char_vector): Adjust for the new char table structure.
24164 (decode_mode_spec_coding): Adjust for the new structure of
24165 coding system.
24166 (decode_mode_spec): Adjust for the new code-conversion API.
24167
24168 * xfaces.c: Include "character.h" instead of "charset.h".
24169 (load_face_font): Adjust for the change of choose_face_font and
24170 FS_LOAD_FONT.
24171 (generate_ascii_font): New function.
24172 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24173 (set_font_frame_param): Adjust for the change of choose_face_font.
24174 (free_realized_face): Make it public.
24175 (free_realized_faces_for_fontset): Rename from
24176 free_realized_multibyte_face. Free also faces realized for ASCII.
24177 (choose_face_font): Change arguments. Adjust for the change of
24178 fontset_font_pattern and FS_LOAD_FONT.
24179
24180 * xfns.c: Include "character.h".
24181 (x_encode_text): Adjust for the new code-conversion API.
24182
24183 * xselect.c: Don't include "charset.h".
24184 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24185
24186 * xterm.c: Include "character.h".
24187 (x_encode_char): New argument CHARSET. Change caller.
24188 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24189 Call ENCODE_CHAR instead of SPLIT_CHAR.
24190 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24191 CHAR_WIDTH instead of CHARSET_WIDTH.
24192 (XTread_socket): Adjust for the new code-conversion API.
24193 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24194 (x_load_font): Adjust for the change of struct font.
24195
241962008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24197
24198 * xfaces.c (face_at_buffer_position): Remove unused vars.
24199
242002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24201
24202 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24203 Fix overflow checking.
24204
242052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24206
24207 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24208 Cancel previous change.
24209
242102008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24211
24212 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24213 ccl->eight_bit_control. Fix check for buffer overflow.
24214 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24215 (ccl_driver): Initialize extra_bytes to 0.
24216
242172008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24218
24219 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24220 return it ORed with ctrl_modifier.
24221
242222008-01-29 Miles Bader <miles@gnu.org>
24223
24224 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24225
242262008-01-28 Jason Rumney <jasonr@gnu.org>
24227
24228 * w32.c (stat): Don't double check for networked drive.
24229
242302008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24231
24232 * window.c (run_window_configuration_change_hook): New function.
24233 Code extracted from set_window_buffer. Set the selected frame.
24234 (set_window_buffer): Use it.
24235 * window.h (run_window_configuration_change_hook): Declare.
24236 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24237
24238 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24239
242402008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24241
24242 * Makefile.in: Remove references to unused macros.
24243
242442008-01-26 Eli Zaretskii <eliz@gnu.org>
24245
24246 * w32.c (g_b_init_get_sid_sub_authority)
24247 (g_b_init_get_sid_sub_authority_count): New static variables.
24248 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24249 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24250 (init_user_info): Use them to retrieve uid and gid.
24251 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24252 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24253 st_uid and st_gid of the file.
24254
242552008-01-26 Jason Rumney <jasonr@gnu.org>
24256
24257 * w32.c (logon_network_drive): New function.
24258 (stat): Use it.
24259
242602008-01-26 Chong Yidong <cyd@stupidchicken.com>
24261
24262 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24263 invisible text covered with an ellipsis.
24264
242652008-01-25 Richard Stallman <rms@gnu.org>
24266
24267 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24268 jump back to beginning. Move some other initializations after that.
24269 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24270 New variables.
24271 (syms_of_xdisp): Init them.
24272
24273 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24274
24275 * buffer.c (reset_buffer_local_variables):
24276 Implement `permanent-local-hook'.
24277 (Qpermanent_local_hook): New variable.
24278 (syms_of_buffer): Init and staticpro it.
24279
242802008-01-25 Michael Albinus <michael.albinus@gmx.de>
24281
24282 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24283
242842008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24285
24286 * fns.c (Fclrhash): Return TABLE.
24287
242882008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24289
24290 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24291 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24292 is set even without positional changes.
24293 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24294
24295 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24296
242972008-01-23 Jason Rumney <jasonr@gnu.org>
24298
24299 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24300
24301 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24302 the unicode range available in MULE by locale-coding-system.
24303 Improve dbcs lead byte detection. Set event timestamp and modifiers
24304 earlier.
24305
243062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24307
24308 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24309 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24310 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24311 when used on child processes.
24312
243132008-01-21 Michael Albinus <michael.albinus@gmx.de>
24314
24315 * dbusbind.c (Fdbus_method_return_internal): Rename from
24316 Fdbus_method_return.
24317 (Fdbus_unregister_object): Move to dbus.el.
24318 (Fdbus_call_method, Fdbus_method_return_internal)
24319 (Fdbus_send_signal): Improve debug messages.
24320
243212008-01-20 Martin Rudalics <rudalics@gmx.at>
24322
24323 * undo.c (undo_inhibit_record_point): New variable.
24324 (syms_of_undo): Initialize it.
24325 (record_point): Don't record point when undo_inhibit_record_point
24326 is set.
24327
243282008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24329
24330 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24331
24332 * xdisp.c (Qauto_hscroll_mode): New var.
24333 (syms_of_xdisp): Initialize it.
24334 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24335 window's buffer.
24336 (hscroll_windows): Don't check automatic_hscrolling_p here.
24337
24338 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24339 vscroll if we're setting window-buffer to the value it already has.
24340
243412008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24342
24343 * m/intel386.h: Remove references to XENIX.
24344
243452008-01-17 Andreas Schwab <schwab@suse.de>
24346
24347 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24348 instead of HAVE_X86_64_LIB64_DIR.
24349 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24350
243512008-01-17 Glenn Morris <rgm@gnu.org>
24352
24353 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24354 to HAVE_X86_64_LIB64_DIR.
24355
243562008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24357
24358 * s/irix3-3.h:
24359 * s/irix4-0.h:
24360 * s/386-ix.h:
24361 * s/domain.h:
24362 * s/hpux9-x11r4.h:
24363 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24364
24365 * sysdep.c: Remove code containing references to symbols defined
24366 by unsupported systems.
24367
243682008-01-16 Glenn Morris <rgm@gnu.org>
24369
24370 * coding.c (select-safe-coding-system-function): Doc fix.
24371
243722008-01-15 Glenn Morris <rgm@gnu.org>
24373
24374 * config.in: Revert 2008-01-13 change: this is a generated file.
24375
243762008-01-13 Tom Tromey <tromey@redhat.com>
24377
24378 * lisp.h: Fix typo.
24379
243802008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24381
24382 * m/sequent-ptx.h:
24383 * m/sequent.h:
24384 * s/ptx.h:
24385 * s/ptx4-2.h:
24386 * s/ptx4.h: Remove files for systems no longer supported.
24387
24388 * callproc.c (Fcall_process): Fix previous change.
24389
243902008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24391
24392 * unexsunos4.c: Remove file, system not supported anymore.
24393
24394 * m/mips.h:
24395 * m/intel386.h:
24396 * callproc.c:
24397 * config.in:
24398 * ecrt0.c:
24399 * emacs.c:
24400 * fileio.c:
24401 * frame.c:
24402 * getpagesize.h:
24403 * keyboard.c:
24404 * lread.c:
24405 * process.c:
24406 * puresize.h:
24407 * sysdep.c:
24408 * systty.h:
24409 * syswait.h:
24410 * unexec.c:
24411 * xdisp.c:
24412 * alloc.c: Remove code containing references to symbols defined by
24413 unsupported systems.
24414
244152008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24416
24417 * coding.c (detect_coding_mask): Fix previous change.
24418
244192008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24420
24421 * coding.c (detect_coding_iso2022): New arg
24422 latin_extra_code_state. Allow Latin extra codes only
24423 when *latin_extra_code_state is nonzero.
24424 (detect_coding_mask): If there is a NULL byte, detect the encoding
24425 as UTF-16 or binary. If Latin extra codes exist, detect the
24426 encoding as ISO-2022 only when there's no other proper encoding is
24427 found.
24428
244292008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24430
24431 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24432 #ifdef MAC_OS.
24433
244342008-01-08 Richard Stallman <rms@gnu.org>
24435
24436 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24437
244382008-01-06 Nick Roberts <nickrob@snap.net.nz>
24439
24440 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24441 menu bar in parentheses.
24442
244432008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24444
24445 * m/7300.h:
24446 * m/acorn.h:
24447 * m/alliant-2800.h:
24448 * m/alliant.h:
24449 * m/alliant1.h:
24450 * m/alliant4.h:
24451 * m/altos.h:
24452 * m/amdahl.h:
24453 * m/apollo.h:
24454 * m/att3b.h:
24455 * m/aviion-intel.h:
24456 * m/aviion.h:
24457 * m/celerity.h:
24458 * m/clipper.h:
24459 * m/cnvrgnt.h:
24460 * m/convex.h:
24461 * m/cydra5.h:
24462 * m/delta88k.h:
24463 * m/dpx2.h:
24464 * m/dual.h:
24465 * m/elxsi.h:
24466 * m/f301.h:
24467 * m/gould-np1.h:
24468 * m/gould.h:
24469 * m/i860.h:
24470 * m/ibmps2-aix.h:
24471 * m/ibmrt-aix.h:
24472 * m/ibmrt.h:
24473 * m/irist.h:
24474 * m/is386.h:
24475 * m/isi-ov.h:
24476 * m/mega68.h:
24477 * m/mg1.h:
24478 * m/news-r6.h:
24479 * m/news-risc.h:
24480 * m/news.h:
24481 * m/nh3000.h:
24482 * m/nh4000.h:
24483 * m/ns16000.h:
24484 * m/ns32000.h:
24485 * m/nu.h:
24486 * m/orion.h:
24487 * m/orion105.h:
24488 * m/paragon.h:
24489 * m/pfa50.h:
24490 * m/plexus.h:
24491 * m/pyramid.h:
24492 * m/pyrmips.h:
24493 * m/sh3el.h:
24494 * m/sps7.h:
24495 * m/sr2k.h:
24496 * m/stride.h:
24497 * m/sun1.h:
24498 * m/sun2.h:
24499 * m/sun3-68881.h:
24500 * m/sun3-fpa.h:
24501 * m/sun3-soft.h:
24502 * m/sun3.h:
24503 * m/sun386.h:
24504 * m/symmetry.h:
24505 * m/tad68k.h:
24506 * m/tahoe.h:
24507 * m/targon31.h:
24508 * m/tek4300.h:
24509 * m/tekxd88.h:
24510 * m/tower32.h:
24511 * m/tower32v3.h:
24512 * m/ustation.h:
24513 * m/wicat.h:
24514 * m/xps100.h:
24515 * s/cxux.h:
24516 * s/cxux7.h:
24517 * s/dgux.h:
24518 * s/dgux4.h:
24519 * s/dgux5-4-3.h:
24520 * s/dgux5-4r2.h:
24521 * s/esix.h:
24522 * s/esix5r4.h:
24523 * s/hiuxmpp.h:
24524 * s/hiuxwe2.h:
24525 * s/iris3-5.h:
24526 * s/iris3-6.h:
24527 * s/isc2-2.h:
24528 * s/isc3-0.h:
24529 * s/isc4-0.h:
24530 * s/isc4-1.h:
24531 * s/newsos5.h:
24532 * s/newsos6.h:
24533 * s/osf1.h:
24534 * s/osf5-0.h:
24535 * s/riscix1-1.h:
24536 * s/riscix12.h:
24537 * s/sco4.h:
24538 * s/sco5.h:
24539 * s/sunos4-0.h:
24540 * s/sunos4-1.h:
24541 * s/sunos413.h:
24542 * s/sunos4shr.h:
24543 * s/umax.h:
24544 * s/unipl5-2.h:
24545 * s/xenix.h:
24546 * cxux-crt0.s:
24547 * unexapollo.c:
24548 * unexconvex.c:
24549 * unexenix.c:
24550 * unexsni.c: Remove files for systems no longer supported.
24551
24552 * m/intel386.h: Remove references to unsupported systems.
24553
24554 * w32.c (get_emacs_configuration): Remove reference to i860.
24555
24556 * sysdep.c: Remove dead code.
24557
245582008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24559
24560 * s/rtu.h:
24561 * m/masscomp.h: Remove files. Platform is obsolete.
24562
245632008-01-04 Michael Albinus <michael.albinus@gmx.de>
24564
24565 * dbusbind.c (Fdbus_method_return): New function.
24566 (xd_read_message): Add the serial number to the event.
24567 (Fdbus_register_method): Activate the function.
24568
245692008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24570
24571 * keyboard.c (read_key_sequence): Fix typo.
24572
245732008-01-03 Michael Albinus <michael.albinus@gmx.de>
24574
24575 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24576 (xd_signature, xd_append_arg): Handle element type detection for
24577 empty arrays.
24578 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24579 SDATA () calls; this must be solved more general.
24580 (Fdbus_register_signal): Use SBYTES instead of strlen.
24581
245822008-01-03 Magnus Henoch <magnus@zemdatav>
24583
24584 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24585 unsigned int for byte values (necessary for big-endian platform).
24586 (Fdbus_call_method): Handle the case of no returned arguments.
24587
245882007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24589
24590 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24591
245922007-12-31 Magnus Henoch <mange@freemail.hu>
24593
24594 * dbusbind.c (xd_signature): Signature of variant is just "v".
24595
245962007-12-30 Michael Albinus <michael.albinus@gmx.de>
24597
24598 * dbusbind.c: Fix several errors and compiler warnings.
24599 Reported by Tom Tromey <tromey@redhat.com>.
24600 (XD_ERROR, XD_DEBUG_MESSAGE)
24601 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24602 (xd_append_arg): Part for basic D-Bus types rewritten.
24603 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24604 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24605 appropriate.
24606 (xd_read_message): Return Qnil. Don't signal an error; it is not
24607 useful during event reading.
24608 (Fdbus_register_signal): Signal an error if the check for
24609 FUNCTIONP fails.
24610 (Fdbus_register_method): New function. The implementation is not
24611 complete, the call of the function signals an error therefore.
24612 (Fdbus_unregister_object): New function, renamed from
24613 Fdbus_unregister_signal. The initial check signals an error, if
24614 the object is not well formed.
24615
246162007-12-30 Richard Stallman <rms@gnu.org>
24617
24618 * textprop.c (get_char_property_and_overlay):
24619 Signal error if POSITION is out of range in a buffer.
24620
246212007-12-29 Martin Rudalics <rudalics@gmx.at>
24622
24623 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24624 because the original parameters are in pure storage now.
24625
246262007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24627
24628 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24629
246302007-12-22 Eli Zaretskii <eliz@gnu.org>
24631
24632 * callint.c (syms_of_callint) <command-history>: Add reference to
24633 history-length in the doc string.
24634
246352007-12-17 Jason Rumney <jasonr@gnu.org>
24636
24637 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24638 before passing as wParam.
24639
246402007-12-22 Michael Albinus <michael.albinus@gmx.de>
24641
24642 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24643 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24644 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24645 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24646 as number.
24647 (Fdbus_call_method): Fix docstring.
24648
246492007-12-21 Michael Albinus <michael.albinus@gmx.de>
24650
24651 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24652 New macros.
24653 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24654 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24655 Simplify.
24656 (xd_signature): New function.
24657 (xd_append_arg): Compute also signatures. Major rewrite.
24658 (xd_retrieve_arg): Make debug messages friendly.
24659 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24660 Check for signatures of arguments.
24661
246622007-12-19 Michael Albinus <michael.albinus@gmx.de>
24663
24664 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24665 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24666 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24667 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24668 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24669 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24670 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24671 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24672 (xd_retrieve_value): Remove. Functionality included in ...
24673 (xd_append_arg): New function.
24674 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24675
246762007-12-16 Michael Albinus <michael.albinus@gmx.de>
24677
24678 * dbusbind.c (top): Include <stdio.h>.
24679 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24680 dbus_message_new_method_call and dbus_message_new_signal.
24681 (Fdbus_register_signal): Rename unique_name to uname.
24682 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24683 non-existing unique name. Fix typos in matching rule. Return an
24684 object which is useful in Fdbus_unregister_signal.
24685 (Fdbus_unregister_signal): Reimplementation, in order to remove
24686 only the corresponding entry.
24687 (Vdbus_registered_functions_table): Change the order of entries.
24688 Apply these changes in xd_read_message and Fdbus_register_signal.
24689
246902007-12-16 Andreas Schwab <schwab@suse.de>
24691
24692 * fileio.c (Finsert_file_contents): Fix overflow check to not
24693 depend on undefined integer overflow.
24694
246952007-12-14 Jason Rumney <jasonr@gnu.org>
24696
24697 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24698 for characters above 127.
24699
247002007-12-13 Jason Rumney <jasonr@gnu.org>
24701
24702 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24703 before dereferencing array.
24704 (lookup_vk_code): Remove zero comparison.
24705
247062007-12-14 Michael Albinus <michael.albinus@gmx.de>
24707
24708 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24709 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24710 Use `unsigned int' instead of `uint'.
24711 (xd_read_message, Fdbus_register_signal): Split expressions into
24712 multiple lines before operators "&&" and "||", according to the
24713 GNU Coding Standards.
24714
247152007-12-14 Eli Zaretskii <eliz@gnu.org>
24716
24717 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24718
247192007-12-12 Juri Linkov <juri@jurta.org>
24720
24721 * buffer.c (Frename_buffer): In interactive spec replace
24722 `read-buffer' with `read-string' that uses `buffer-name-history'
24723 as history, and the current buffer's name as default.
24724
247252007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24726
24727 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24728 manipulating the backtrace manually.
24729 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24730 (struct backtrace, backtrace_list): Remove.
24731 (command_loop_1): Remove dead var `no_direct'.
24732
24733 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24734 preserve non-built-in buffer-local variables.
24735 (Fkill_all_local_variables): Don't re-create&re-set permanent
24736 buffer-local variables.
24737
247382007-12-09 Juri Linkov <juri@jurta.org>
24739
24740 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24741 Lisp code that uses `read-buffer' with current buffer as default.
24742
247432007-12-08 Michael Albinus <michael.albinus@gmx.de>
24744
24745 * dbusbind.c (xd_read_message): Generate an event for every
24746 registered handler. There might be several handlers registered
24747 for the same signal.
24748 (Fdbus_register_signal): Don't overwrite a registration for the
24749 same signal. Add a new registration if handlers are different.
24750 (Vdbus_registered_functions_table): Rework doc string.
24751
247522007-12-07 Michael Albinus <michael.albinus@gmx.de>
24753
24754 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24755 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24756 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24757 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24758 Unify argument lists.
24759 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24760 arguments and hash table keys. Use unique name for service.
24761 (Fdbus_unregister_signal): Remove checks.
24762 (Vdbus_registered_functions_table): Fix doc string.
24763
247642007-12-05 Magnus Henoch <mange@freemail.hu>
24765
24766 * process.c (make_process): Initialize pty_flag to 0.
24767
247682007-12-05 Jason Rumney <jasonr@gnu.org>
24769
24770 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24771 specified XBMs.
24772
247732007-12-05 Richard Stallman <rms@gnu.org>
24774
24775 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24776
247772007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24778
24779 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24780 New variable.
24781 (mac_try_close_socket) [MAC_OSX]: New function.
24782 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24783 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24784
24785 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24786 Use mac_try_close_socket.
24787
247882007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24789
24790 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24791 reloc_base.
24792 (copy_dysymtab): Compute relocation base here.
24793 (rebase_reloc_address) [__ppc64__]: New function.
24794 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24795 changed.
24796
247972007-12-05 Jason Rumney <jasonr@gnu.org>
24798
24799 * w32proc.c (sys_spawnve): Quote args with wildcards.
24800
248012007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24802
24803 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24804 __objc_* sections.
24805 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24806
248072007-12-05 Michael Albinus <michael.albinus@gmx.de>
24808
24809 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24810 Move check for Vdbus_registered_functions_table to
24811 xd_read_queued_messages.
24812 (xd_read_queued_messages): Protect xd_read_message calls by
24813 internal_condition_case_1.
24814
248152007-12-04 Michael Albinus <michael.albinus@gmx.de>
24816
24817 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24818 Qdbus_system_bus and Qdbus_session_bus, respectively.
24819 (Vdbus_intern_symbols): Remove.
24820 (Vdbus_registered_functions_table): New hash table.
24821 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24822 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24823 Rewrite in order to manage registered functions by hash table
24824 Vdbus_registered_functions_table.
24825
248262007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24827
24828 * xterm.c: Update URL to Window Manager Specification in comment.
24829
248302007-12-02 Michael Albinus <michael.albinus@gmx.de>
24831
24832 * config.in (HAVE_DBUS): Add.
24833
24834 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24835 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24836 (obj): Add $(DBUS_OBJ).
24837 (LIBES): Add $(DBUS_LIBS).
24838 (dbusbind.o): New target.
24839
24840 * dbusbind.c: New file.
24841
24842 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24843
24844 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24845 (Qdbus_event): New Lisp symbol.
24846 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24847 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24848 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24849
24850 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24851
248522007-12-01 Richard Stallman <rms@gnu.org>
24853
24854 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24855
248562007-11-30 Jason Rumney <jasonr@gnu.org>
24857
24858 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24859 (w32con_reset_terminal_modes): Clear screen buffer.
24860 (w32_face_attributes): Don't use color indexes that are out of range.
24861 Only reverse the default colors.
24862
24863 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24864 WINDOWSNT.
24865
24866 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24867
248682007-11-29 Jason Rumney <jasonr@gnu.org>
24869
24870 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24871 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24872 if the terminal colors are initialized.
24873 (unspecified_fg, unspecified_bg): Remove unused declarations.
24874
248752007-11-29 Andreas Schwab <schwab@suse.de>
24876
24877 * keyboard.c (apply_modifiers): Fix typo.
24878
248792007-11-29 Richard Stallman <rms@gnu.org>
24880
24881 * keymap.c (Fcurrent_local_map): Doc fix.
24882
248832007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24884
24885 * s/gnu-kfreebsd.h: New file.
24886
248872007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24888
24889 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24890 Don't cast redundantly.
24891
24892 * keyboard.c (KEY_TO_CHAR): New macro.
24893 (parse_modifiers, apply_modifiers): Accept integer arguments.
24894 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24895 for chars and symbol keys.
24896 After doing such remapping, apply function-key-map again.
24897
248982007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24899
24900 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24901 compiled anymore.
24902
249032007-11-26 Andreas Schwab <schwab@suse.de>
24904
24905 * process.c (list_processes_1): Fix indentation level of the
24906 command column.
24907
249082007-11-23 Andreas Schwab <schwab@suse.de>
24909
24910 * editfns.c (Fformat): Handle %c specially since it requires the
24911 argument to be of type int.
24912
249132007-11-23 Markus Triska <markus.triska@gmx.at>
24914
24915 * emacs.c (main): Call init_editfns before init_process, since
24916 init_process sets Vprocess_connection_type depending on OS release.
24917
249182007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24919
24920 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24921 (find_symbol_value): Use do_symval_forwarding.
24922
24923 * data.c (set_internal): Set the value in the `cons-cell' (for
24924 Buffer_Local_values) not only for frame-local variables.
24925
249262007-11-22 Andreas Schwab <schwab@suse.de>
24927
24928 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24929 values to sprintf.
24930 * keymap.c (Fsingle_key_description): Likewise.
24931 * print.c (print_object): Likewise.
24932
249332007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24934
24935 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24936 file for image is nil.
24937
249382007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24939
24940 * term.c: Include stdarg.h.
24941 (fatal): Implement using varargs.
24942 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24943
249442007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24945
24946 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24947 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24948 Update call to buffer_slot_type_mismatch.
24949 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24950 (buffer_slot_type_mismatch): Update.
24951 * buffer.c (buffer_local_types): Remove.
24952 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24953 (defvar_per_buffer): Set the type in the buffer_objfwd.
24954
249552007-11-21 Jason Rumney <jasonr@gnu.org>
24956
24957 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24958 CreateFileMapping returns NULL on failure.
24959
249602007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24961
24962 * search.c (Fset_match_data): Remove the `evaporate' feature.
24963 (unwind_set_match_data): Don't use the `evaporate' feature.
24964
249652007-11-21 Jason Rumney <jasonr@gnu.org>
24966
24967 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24968
24969 * w32console.c (w32con_write_glyphs): Remove unused variables.
24970
249712007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24972
24973 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24974
24975 * s/darwin.h (MULTI_KBOARD): Remove.
24976
24977 * macfns.c (x_create_tip_frame, Fx_create_frame)
24978 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24979
249802007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24981
24982 * buffer.c (Fbuffer_local_value): Remove redundant test.
24983 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24984 than in `current-buffer' to match the comment.
24985 Do the swap using swap_in_global_binding.
24986
24987 * data.c (store_symval_forwarding, set_internal):
24988 * eval.c (specbind): Remove dead code.
24989
24990 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24991 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24992 Since we do not want to see internal Lisp_*fwd objects here.
24993
249942007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24995
24996 * sysdep.c (init_system_name): Use getaddrinfo if available.
24997
24998 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24999 (x_scroll_bar_note_movement): start, end, with, height in struct
25000 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25001
250022007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25003
25004 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25005
250062007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25007
25008 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25009 This undoes Richard's change of 14-Oct-2002.
25010
25011 * alloc.c (allocate_other_vector):
25012 * lisp.h (allocate_other_vector): Remove.
25013
25014 * window.c (struct save_window_data): Move non-lisp data to the end
25015 and make it `int' rather than Lisp_Object.
25016 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25017 Done wrap/unwrap integer values.
25018 (Fset_window_configuration, compare_window_configurations):
25019 Update use of fields to their new types.
25020
25021 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25022 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25023 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25024 (SET_SCROLL_BAR_X_WINDOW): Remove.
25025 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25026 Access the new x_window field directly.
25027 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25028 Don't wrap/unwrap integers into Lisp_Objects.
25029 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25030 (x_scroll_bar_report_motion):
25031 Don't wrap/unwrap integers into Lisp_Objects.
25032 (x_term_init): Use SDATA.
25033 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25034 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25035 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25036 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25037 * xfns.c (x_set_background_color):
25038 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25039 Access the new x_window field directly.
25040
25041 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25042 (allocate_pseudovector): Make non-static.
25043
25044 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25045 (allocate_pseudovector): Declare.
25046 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25047
250482007-11-15 Andreas Schwab <schwab@suse.de>
25049
25050 * editfns.c (Fformat): Correctly format EMACS_INT values.
25051 Also take precision into account when formatting an integer.
25052
25053 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25054
250552007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25056
25057 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25058 (syms_of_keyboard): Defsubr it.
25059
25060 * data.c (swap_in_global_binding): Fix longstanding bug where
25061 store_symval_forwarding was not called with the right second argument,
25062 thus causing objfwd-ing from being dropped.
25063
250642007-11-14 Juanma Barranquero <lekktu@gmail.com>
25065
25066 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25067 (Fx_display_pixel_height, Fx_display_planes)
25068 (Fx_display_color_cells, Fx_server_max_request_size)
25069 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25070 (Fx_display_visual_class, Fx_display_save_under):
25071 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25072 (Fx_display_pixel_height, Fx_display_planes)
25073 (Fx_display_color_cells, Fx_server_max_request_size)
25074 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25075 (Fx_display_mm_height, Fx_display_mm_width)
25076 (Fx_display_backing_store, Fx_display_visual_class)
25077 (Fw32_select_font, Fx_display_save_under):
25078 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25079 (Fx_display_pixel_height, Fx_display_planes)
25080 (Fx_display_color_cells, Fx_server_max_request_size)
25081 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25082 (Fx_display_save_under): Fix typos in docstrings.
25083
250842007-11-14 Juanma Barranquero <lekktu@gmail.com>
25085
25086 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25087 corresponding to deleted entries; they are an implementation detail.
25088 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25089 Remove variables.
25090 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25091 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25092 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25093 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25094 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25095 (Fw32_define_rgb_color, Fw32_load_color_file)
25096 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25097 Fix typos in docstrings.
25098 (Fx_server_version): Reflow docstring.
25099 (Fw32_shell_execute): Doc fixes.
25100
251012007-11-13 Juanma Barranquero <lekktu@gmail.com>
25102
25103 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25104 if w32_parse_hot_key returned nil.
25105
251062007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25107
25108 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25109
251102007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 25111
aac0c6e3
MR
25112 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25113
25114 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25115
25116 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25117 Remove W32_SCROLL_BAR_CLICK_EVENT.
25118
25119 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25120 Add MULTIMEDIA_KEY_EVENT.
25121
25122 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25123 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25124 (make_lispy_event) [WINDOWSNT]: Use it to translate
25125 MULTIMEDIA_KEY_EVENT.
25126
25127 * w32term.h (WM_APPCOMMAND): Define if not already.
25128 (GET_APPCOMMAND_LPARAM): Likewise.
25129
25130 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25131 WM_APPCOMMAND.
25132
25133 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25134 (syms_of_w32fns): Export and initialize it.
25135 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25136
251372007-11-09 Chong Yidong <cyd@stupidchicken.com>
25138
25139 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25140 twice.
25141
25142 * xdisp.c (handle_face_prop): Fix last change.
25143
251442007-11-09 Richard Stallman <rms@gnu.org>
25145
25146 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25147 not just for after-strings and before-strings.
25148 Call face_for_overlay_string and pass the overlay to it.
25149 (handle_display_prop): Determine whether property came from an overlay.
25150 Pass OVERLAY arg to handle_single_display_spec.
25151 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25152 (load_overlay_strings): Fill in it->string_overlays.
25153 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25154
25155 * xfaces.c (face_for_overlay_string): Function renamed from
25156 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25157
25158 * dispextern.h (struct it): New elt string_overlays.
25159 New elt from_overlay, also in stack.
25160 Rearrange a few elements.
25161 (face_for_overlay_string): Decl renamed from
25162 face_at_buffer_position_no_overlays, and add argument.
25163
251642007-11-09 Richard Stallman <rms@gnu.org>
25165
25166 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25167 to get the base face for an overlay string.
25168
25169 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25170
25171 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25172
25173 * xdisp.c (handle_stop): Move some code out of loop.
25174
251752007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25176
25177 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25178 Fix conversion from Lisp object to ATSUFontID.
25179
251802007-11-09 Jason Rumney <jasonr@gnu.org>
25181
25182 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25183
251842007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25185
25186 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25187 Don't assume regions are aligned to page boundary.
25188 (print_load_command_name): Add LC_UUID if defined.
25189
251902007-11-09 Richard Stallman <rms@gnu.org>
25191
25192 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25193
251942007-11-07 Jason Rumney <jasonr@gnu.org>
25195
25196 * s/windows95.h: Remove.
25197
251982007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25199
25200 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25201 abort with a message on unhandled store_type values.
25202
252032007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25204
25205 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25206 Remove HAVE_X11R5 and HAVE_X11R4.
25207
252082007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25209
25210 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25211
252122007-11-01 Johan Bockgård <bojohan@gnu.org>
25213
25214 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25215 Don't set s->stippled_p here, since it has already been set by
25216 x_set_glyph_string_gc from x_draw_glyph_string.
25217
252182007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25219
25220 * sunfns.c: Remove file.
25221
25222 * m/sun386.h:
25223 * m/sun2.h:
25224 * m/sparc.h: Remove Sun windows code.
25225
252262007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25227
25228 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25229 (init_keyboard): Set current_kboard's window-system to nil.
25230 (tty_read_avail_input): Typo.
25231 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25232
252332007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25234
25235 * s/usg5-4.h:
25236 * s/usg5-3.h:
25237 * s/ptx.h:
25238 * m/is386.h:
25239 * m/ibmps2-aix.h:
25240 * Makefile.in: Remove all mentions of X10.
25241
25242 * dispnew.c (syms_of_display): Don't mention version 10.
25243
252442007-10-28 Juanma Barranquero <lekktu@gmail.com>
25245
25246 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25247 ($(BLD)/abbrev.$(O)): Remove.
25248
252492007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25250
25251 Rewrite abbrev.c in Elisp.
25252 * image.c (Qcount): Don't declare as extern.
25253 (syms_of_image): Initialize and staticpro `Qcount'.
25254 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25255 * emacs.c (main): Don't call syms_of_abbrev.
25256 * Makefile.in (obj): Remove abbrev.o.
25257 (abbrev.o): Remove.
25258 * abbrev.c: Remove.
25259
252602007-10-26 Martin Rudalics <rudalics@gmx.at>
25261
25262 * window.c (window_min_size_2): Don't count header-line.
25263
252642007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25265
25266 * frame.h (struct frame): Move all bit fields after the first bit
25267 field to take advantage of the available space. Group all the
25268 chars together to reduce wasted space due to padding.
25269
252702007-10-26 Juanma Barranquero <lekktu@gmail.com>
25271
25272 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25273
25274 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25275 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25276 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25277 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25278 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25279 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25280 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25281 (last_marked, mark_object_loop_halt): Make static.
25282
25283 * frame.c (syms_of_frame) <delete-frame-functions>:
25284 Fix typo in docstring.
25285
252862007-10-25 Juanma Barranquero <lekktu@gmail.com>
25287
25288 * w32.c (init_environment): Fix tiny memory leak.
25289 (w32_get_resource): Remove unused variable `ok'.
25290
252912007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25292
25293 Make `window-system' into a keyboard-local variable (rather than
25294 frame-local as done originally by multi-tty).
25295
25296 * keyboard.h (struct kboard): Add Vwindow_system.
25297 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25298 (mark_kboards): Mark Vwindow_system.
25299
25300 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25301 (init_display): Don't set the obsolete `window-system' frame-param.
25302
25303 * xterm.c (x_term_init):
25304 * w32term.c (w32_create_terminal):
25305 * term.c (init_tty): Set Vwindow_system.
25306 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25307 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25308
25309 * xfns.c (Fx_create_frame, x_create_tip_frame):
25310 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25311 * macfns.c (Fx_create_frame):
25312 Don't set the obsolete `window-system' frame-param.
25313
25314 * frame.h (Qwindow_system): Remove.
25315 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25316 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25317
253182007-10-24 Richard Stallman <rms@gnu.org>
25319
25320 * frame.c (x_figure_window_size): For fullscreen case,
25321 set USPosition | PPosition without clobbering rest of window_prompting.
25322
25323 * keyboard.c (Fcurrent_idle_time): Doc fix.
25324
25325 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25326
253272007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25328
25329 * process.c (unwind_request_sigio): Only define if __ultrix__.
25330
25331 * callproc.c (child_setup): Remove spurious *.
25332
25333 * lisp.h (Fget_text_property): Declare.
25334 (have_menus_p): Declare it here rather than in sys-dep header files.
25335 * macterm.h (have_menus_p):
25336 * msdos.h (have_menus_p):
25337 * xterm.h (have_menus_p): Remove.
25338
25339 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25340 (Fmake_variable_frame_local): Just check the variable's const-ness
25341 rather than checking nil or t.
25342
253432007-10-22 Jason Rumney <jasonr@gnu.org>
25344
25345 * w32fns.c: Include math.h.
25346 (w32_abort): Declaration moved to nt/config.nt.
25347
25348 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25349 (abort): Redefinition moved to nt/config.nt.
25350
25351 * m/windowsnt.h: Remove.
25352
253532007-10-22 Juanma Barranquero <lekktu@gmail.com>
25354
25355 * emacs.c (Fdump_emacs): Fix typo in message.
25356 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25357 <installation-directory>: Reflow docstring.
25358
253592007-10-22 Juri Linkov <juri@jurta.org>
25360
25361 * minibuf.c: Allow minibuffer default to be a list of default values.
25362 With empty input use the first element of this list as returned default.
25363 (string_to_object)
25364 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25365 (read_minibuf): If defalt is cons, set histstring to its car.
25366 (Fread_string): If default_value is cons, set val to its car.
25367 (Fread_buffer): If def is cons, use its car.
25368 (Fcompleting_read): If defalt is cons, set val to its car.
25369
253702007-10-21 Michael Albinus <michael.albinus@gmx.de>
25371
25372 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25373
253742007-10-20 Juanma Barranquero <lekktu@gmail.com>
25375
25376 * doc.c (Fdocumentation): Check for advice in all cases.
25377
253782007-10-19 Chong Yidong <cyd@stupidchicken.com>
25379
25380 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25381
253822007-10-19 Richard Stallman <rms@gnu.org>
25383
25384 * doc.c (Fdocumentation): Check for and handle an advised function.
25385
253862007-10-19 Juanma Barranquero <lekktu@gmail.com>
25387
25388 * process.c (Fset_process_filter): Doc fix.
25389
253902007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25391
25392 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25393 which caused key-translation-map to applied repeatedly (thus breaking
25394 double-mode).
25395
253962007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25397
25398 * xselect.c (x_own_selection, x_handle_selection_clear)
25399 (x_clear_frame_selections):
25400 * w32menu.c (list_of_panes, list_of_items):
25401 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25402 * textprop.c (validate_plist, interval_has_all_properties)
25403 (interval_has_some_properties, interval_has_some_properties_list)
25404 (add_properties, text_property_list):
25405 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25406 * minibuf.c (Fassoc_string):
25407 * macselect.c (x_own_selection, x_clear_frame_selections)
25408 (Fx_disown_selection_internal):
25409 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25410 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25411
254122007-10-17 Chong Yidong <cyd@stupidchicken.com>
25413
25414 * process.c: Link to libs for calling res_init() if available.
25415 (Fmake_network_process): Call res_init() before getaddrinfo or
25416 gethostbyname, if possible.
25417
254182007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25419
25420 * lread.c (read1): Set pvectype for char_tables.
25421
25422 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25423 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25424 Add type checks.
25425 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25426
25427 * alloc.c (free_misc): Use XMISCTYPE.
25428 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25429
254302007-10-17 Glenn Morris <rgm@gnu.org>
25431
25432 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25433 (syms_of_minibuf): Add Qcompletion_ignore_case.
25434 * dired.c (Qcompletion_ignore_case): Change to external.
25435 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25436 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25437 (Fread_file_name): Use it rather than intern'ing.
25438
25439 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25440 (Fread_coding_system): Ignore case of user input.
25441
254422007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25443
25444 * xdisp.c (handle_display_prop): Ignore display specs after
25445 replacing one when string text is being replaced.
25446 (handle_single_display_spec): Pretend as if characters with display
25447 property haven't been consumed only when buffer text is being replaced.
25448
254492007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25450
25451 * xfns.c (Fx_create_frame, Fx_display_list):
25452 * window.c (window_fixed_size_p, enlarge_window)
25453 (shrink_window_lowest_first):
25454 * macterm.c (init_font_name_table):
25455 * macfns.c (Fx_create_frame, Fx_display_list):
25456 * lread.c (close_load_descs):
25457 * keyboard.c (read_char_x_menu_prompt):
25458 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25459 * coding.c (code_convert_region_unwind): Test the type of an object
25460 rather than just !NILP before extracting data from it.
25461
25462 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25463
25464 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25465 (XMISCANY): New macro.
25466 (XMISCTYPE): Use it.
25467 (struct Lisp_Misc_Any): New type.
25468 (union Lisp_Misc): Use it.
25469 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25470 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25471 (find_symbol_value, set_internal, default_value, Fset_default)
25472 (Fmake_variable_buffer_local, Fmake_local_variable)
25473 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25474 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25475 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25476 * alloc.c (allocate_buffer): Set the size and tag.
25477 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25478 Use XMISCANY.
25479 (die): Follow the GNU convention for error messages.
25480 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25481 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25482 tag any more.
25483 (set_buffer_internal_1):
25484 * frame.c (store_frame_param):
25485 * eval.c (specbind):
25486 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25487
25488 * doc.c (Fsnarf_documentation): Simplify.
25489
254902007-10-14 Juanma Barranquero <lekktu@gmail.com>
25491
25492 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25493 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25494
254952007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25496
25497 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25498
254992007-10-14 Juanma Barranquero <lekktu@gmail.com>
25500
25501 * eval.c (do_autoload): Don't save autoloads.
25502
25503 * data.c (Ffset): Save autoload of the function being set.
25504
255052007-10-07 John Paul Wallington <jpw@pobox.com>
25506
25507 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25508 parameter before setting up faces.
25509
255102007-10-13 Eli Zaretskii <eliz@gnu.org>
25511
25512 * ccl.c (Fregister_code_conversion_map):
25513 * keyboard.c (append_tool_bar_item): Reformat last change.
25514
25515 * lisp.h (eabs): Rename from `abs'. All callers changed.
25516
255172007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25518
25519 * buffer.c (add_overlay_mod_hooklist):
25520 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25521 * fontset.c (make_fontset):
25522 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25523 (append_tool_bar_item):
25524 * macmenu.c (grow_menu_items):
25525 * w32menu.c (grow_menu_items):
25526 * xmenu.c (grow_menu_items): Use larger_vector.
25527
255282007-10-13 Eli Zaretskii <eliz@gnu.org>
25529
25530 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25531 selected frame'' on MSDOS).
25532
255332007-10-12 Martin Rudalics <rudalics@gmx.at>
25534
25535 * frame.c (Qexplicit_name): New variable.
25536 (x_report_frame_params): Report it in parameter alist.
25537 (syms_of_frame): Intern and staticpro it.
25538
255392007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25540
25541 * macfns.c (x_create_tip_frame): Set terminal for frame.
25542
255432007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25544
25545 * frame.c (Qenvironment): Remove.
25546 (syms_of_frame) <Qenvironment>: Don't initialize.
25547 (Fdelete_frame): Don't treat the `environment' param specially.
25548 * frame.h (Qenvironment): Don't declare.
25549 * callproc.c (set_initial_environment): Don't set unused frame param.
25550
25551 * frame.c (Fframe_with_environment): Remove.
25552 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25553
25554 * lisp.h (Fframe_with_environment): Don't declare.
25555
255562007-10-10 Juanma Barranquero <lekktu@gmail.com>
25557
25558 * indent.c (indent_tabs_mode, last_known_column)
25559 (last_known_column_modified): Make static.
25560 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25561
255622007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25563
25564 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25565
255662007-10-09 Jason Rumney <jasonr@gnu.org>
25567
25568 * w32term.c (x_set_window_size): Disable code that attempts to tell
25569 Lisp code about a size change before it actually happens.
25570
255712007-10-09 Richard Stallman <rms@gnu.org>
25572
25573 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25574 return HANDLED_RETURN.
25575
255762007-10-08 Martin Rudalics <rudalics@gmx.at>
25577
25578 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25579 when there's an unread command event.
25580
25581 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25582 window autoselection act appropriately when leaving selected frame.
25583 (syms_of_frame): Initialize focus_follows_mouse.
25584 * frame.h (focus_follows_mouse): Extern it.
25585 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25586 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25587 * msdos.c (dos_rawgetc): Likewise.
25588 * w32term.c (w32_read_socket): Likewise.
25589 * xterm.c (handle_one_xevent): Likewise.
25590 * xdisp.c (syms_of_xdisp): In doc-string of
25591 mouse-autoselect-window mention focus-follows-mouse.
25592
255932007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25594
25595 * macterm.c (mac_load_query_font): Fix missing return value.
25596 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25597 Add BLOCK_INPUT.
25598
255992007-10-08 Richard Stallman <rms@gnu.org>
25600
25601 * xdisp.c (get_window_cursor_type): Implement documented behavior
25602 for cursor-in-non-selected-windows = t.
25603
256042007-10-08 Jason Rumney <jasonr@gnu.org>
25605
25606 * w32.c (w32_get_resource): Always close registry keys.
25607
256082007-10-08 Jason Rumney <jasonr@gnu.org>
25609
25610 * makefile.w32-in (LIBS): Add COMCTL32.
25611
25612 * w32fns.c (globals_of_w32fns): Init common controls.
25613
256142007-10-08 Richard Stallman <rms@gnu.org>
25615
25616 * image.c (our_memory_buffer): Rename from omfib_buffer.
25617
256182007-10-08 Richard Stallman <rms@gnu.org>
25619
25620 * buffer.c (Foverlays_at): Doc fix.
25621
256222007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25623
25624 * fns.c (Fplist_put): Preserve uneven tail data.
25625
256262007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25627
25628 * termhooks.h (enum event_kind): Remove trailing comma.
25629
25630 * frame.h (enum): Remove trailing comma.
25631
256322007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25633
25634 * w32proc.c (delete_child): Don't terminate threads of zombies.
25635
256362007-10-08 Martin Rudalics <rudalics@gmx.at>
25637
25638 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25639
25640 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25641 last-repeatable-command.
25642 (init_kboard): Initialize Vlast_repeatable_command.
25643 (command_loop_1): Set it to real_this_command unless that was
25644 bound to an input event.
25645 (mark_kboards): Mark it.
25646
256472007-10-08 Richard Stallman <rms@gnu.org>
25648
25649 * eval.c (condition-case): Doc fix.
25650
256512007-10-08 Masatake YAMATO <jet@gyve.org>
25652
25653 * xfaces.c (tty_supports_face_attributes_p): Fix code
25654 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25655 was copied and not edited.
25656
256572007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25658
25659 Add new `input-decode-map' keymap and use it for terminal
25660 escape sequences.
25661 * keyboard.h (struct kboard): Add Vinput_decode_map.
25662 Remove Vlocal_key_translation_map.
25663 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25664 (init_kboard): Init input-decode-map.
25665 Replace local-key-translation-map back with key-translation-map.
25666 (syms_of_keyboard): Declare input-decode-map.
25667 Remove local-key-translation-map. Update docstrings.
25668 (mark_kboards): Mark Vinput_decode_map.
25669 Don't mark Vlocal_key_translation_map.
25670 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25671 Replace local-key-translation-map back with key-translation-map.
25672 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25673 Bind in input-decode-map rather than function-key-map.
25674
25675 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25676 This was made redundant by the previous introduction of XSETPVECTYPE.
25677
256782007-10-09 Richard Stallman <rms@gnu.org>
25679
25680 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25681
256822007-09-29 Richard Stallman <rms@gnu.org>
25683
25684 * eval.c (internal_condition_case_2, internal_condition_case_1)
25685 (internal_condition_case): Reenable abort if x_catching_errors ()
25686 to see if that really happens and why.
25687
256882007-10-06 Andreas Schwab <schwab@suse.de>
25689
25690 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25691
256922007-10-04 Juanma Barranquero <lekktu@gmail.com>
25693
25694 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25695
256962007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25697
25698 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25699
257002007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25701
25702 * window.h (struct window):
25703 * window.c (struct save_window_data, struct saved_window):
25704 * termhooks.h (struct terminal):
25705 * process.h (struct Lisp_Process):
25706 * frame.h (struct frame):
25707 * buffer.h (struct buffer):
25708 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25709 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25710 The size field of (pseudo)vectors is now unsigned.
25711 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25712
25713 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25714 Turn `count' into an integer.
25715
25716 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25717 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25718 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25719 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25720 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25721
25722 * alloc.c (allocate_pseudovector): New fun.
25723 (ALLOCATE_PSEUDOVECTOR): New macro.
25724 (allocate_window, allocate_terminal, allocate_frame)
25725 (allocate_process): Use it.
25726 (mark_vectorlike): New function.
25727 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25728 (mark_terminals): Use it.
25729 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25730 (Fmake_byte_code): Use XSETPVECTYPE.
25731
25732 * frame.c (Fframe_parameters): Minor simplification.
25733
25734 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25735
25736 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25737
25738 * buffer.c (Fget_buffer_create, init_buffer_once):
25739 * lread.c (defsubr):
25740 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25741
25742 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25743 defined differently in the m/*.h files.
25744 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25745 (XSETPVECTYPE): New macro.
25746 (XSETPSEUDOVECTOR): Use it.
25747
25748 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25749 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25750
25751 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25752 * lread.c (defvar_per_buffer):
25753 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25754
25755 * window.c (candidate_window_p): Only consider as visible frames that
25756 are on the same terminal.
25757
25758 * m/ibms390x.h (MARKBIT): Remove unused macro.
25759
257602007-10-01 Juanma Barranquero <lekktu@gmail.com>
25761
25762 * lread.c (Fload): Fix typo in docstring.
25763
257642007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25765
25766 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25767 of a non-zero value can't yield zero.
25768
257692007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25770
25771 * term.c (term_clear_mouse_face, term_mouse_highlight)
25772 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25773
25774 * print.c (safe_debug_print): Use XHASH.
25775
25776 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25777 Lisp elements such as tags.
25778 (XHASH): New macro.
25779 (EQ): Use it.
25780 (SREF, SSET, STRING_COPYIN): Use SDATA.
25781 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25782
25783 * alloc.c (mark_terminal): Remove left-over declaration.
25784 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25785 (allocate_vectorlike): Remove type argument. Adjust callers.
25786 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25787 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25788
25789 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25790 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25791 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25792 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25793 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25794 Use them.
25795
25796 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25797 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25798 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25799
258002007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25801
25802 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25803 loaded by default.
25804
258052007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25806
25807 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25808 on this tty.
25809 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25810
25811 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25812 Update all users.
25813 (handle_one_term_event): Use Gpm_DrawPointer.
25814 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25815 Signal errors instead of returning nil. Always return nil.
25816 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25817 Make it a noop if gpm-mouse was not activated.
25818 (syms_of_term): Update names.
25819
258202007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25821
25822 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25823 (init_sys_modes): Check that gpm_tty is the current tty.
25824
25825 * alloc.c (allocate_terminal): Set the vector size to only count the
25826 lisp fields. Initialize those to nil.
25827 (mark_object): Don't treat terminals specially.
25828 (mark_terminal): Remove.
25829 (mark_terminals): Use mark_object instead.
25830
25831 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25832 the GC to the beginning.
25833
25834 * indent.h:
25835 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25836
25837 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25838
258392007-09-25 Jason Rumney <jasonr@gnu.org>
25840
25841 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25842
25843 * w32console.c (create_w32cons_output): Remove.
25844
25845 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25846
25847 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25848 (reset_sys_modes): Use reset_terminal_modes_hook.
25849
258502007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25851
25852 * eval.c (do_autoload): Don't output any message.
25853
258542007-09-24 Juri Linkov <juri@jurta.org>
25855
25856 * emacs.c (standard_args): Change priority of "--no-splash"
25857 from 40 to 3. Add "--no-desktop" with the same priority.
25858
258592007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25860
25861 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25862 and optimize the case where they are all 1.
25863
258642007-09-23 Johannes Weiner <hannes@saeurebad.de>
25865
25866 * lisp.h (abs): Define if not defined.
25867 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25868 Don't define `abs', since it's defined in lisp.h.
25869
258702007-09-22 Eli Zaretskii <eliz@gnu.org>
25871
25872 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25873 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25874 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25875 (init_tty): Use DEV_TTY instead of "/dev/tty".
25876 [WINDOWSNT]: No need to protect from NAME arg being null.
25877
258782007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25879
25880 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25881 up the tty state.
25882
258832007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25884
25885 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25886 (gpm_tty): Change its type.
25887 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25888 (gpm_tty): Change its type and initialize it.
25889 (Fterm_open_connection): Check the frame is indeed a tty.
25890 Use the new gpm_tty.
25891 (Fterm_close_connection): Use the new gpm_tty.
25892 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25893 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25894
258952007-09-21 Juanma Barranquero <lekktu@gmail.com>
25896
25897 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25898 underline_color, to draw strike-through.
25899
259002007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25901
25902 * lisp.h (allocate_terminal): Declare.
25903
25904 * window.c (candidate_window_p): Consider frames that are being placed
25905 by the user as somewhere between visible and iconified.
25906 (window_loop): Prefer windows on the current frame.
25907 (Fselect_window): Move the use of select-frame to the beginning so we
25908 can just delegate all the work (it'll call us back anyway).
25909
25910 * frame.c (Qdisplay_environment_variable):
25911 * frame.h (Qdisplay_environment_variable): Delete.
25912
25913 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25914 of the first arg, since that value may be a union.
25915
25916 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25917 parameter rather than Qdisplay_environment_variable. If all else
25918 fails, look for DISPLAY in initial-environment.
25919
259202007-09-21 Glenn Morris <rgm@gnu.org>
25921
25922 * Makefile.in (emacstool): Remove target.
25923 (lisp, shortlisp): Remove termdev.elc.
25924
259252007-09-21 Markus Triska <markus.triska@gmx.at>
25926
25927 * xterm.c (x_delete_display): Compile session management conditionally.
25928
259292007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25930
25931 * callproc.c (getenv_internal_1): New function.
25932 (getenv_internal): Use it.
25933 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25934
25935 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25936 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25937 (Fset_terminal_parameter): Work with dead terminals as well.
25938 (Fmodify_terminal_parameters): Remove.
25939
25940 * terminal.c (get_terminal): Handle terminals.
25941 Make sure the terminal returned is live.
25942 (create_terminal): Use allocate_terminal.
25943 (mark_terminals): Move to alloc.c.
25944 (delete_terminal): Use terminal->name as liveness status.
25945 NULL out fields after freeing their contents.
25946 Don't deallocate the object.
25947 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25948 rather than an int.
25949 (Fterminal_live_p): Accept non-integer arguments.
25950 (Fterminal_list): Return terminal objects rather than an ints.
25951
25952 * alloc.c (enum mem_type): New member for `terminal' objects.
25953 (allocate_terminal): New function.
25954 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25955 Handle terminals.
25956 (mark_terminal): New fun.
25957 (mark_terminals): Move from terminal.c.
25958
25959 * term.c (get_tty_terminal): Don't treat output_initial specially.
25960 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25961 (delete_tty): Use terminal->name as liveness status.
25962
25963 * termhooks.h (struct terminal): Make it into a pseudovector.
25964 Remove `deleted' replaced by checking `name's nullness.
25965
25966 * print.c (print_object): Handle terminals.
25967
25968 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25969 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25970
25971 * frame.c (make_terminal_frame):
25972 * keyboard.c (tty_read_avail_input):
25973 * w32term.c (x_delete_terminal):
25974 * xfns.c (Fx_create_frame, x_create_tip_frame):
25975 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25976
259772007-09-20 Glenn Morris <rgm@gnu.org>
25978
25979 * process.c (Fmake_network_process): Doc fix.
25980
259812007-09-19 Jason Rumney <jasonr@gnu.org>
25982
25983 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25984
259852007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25986
25987 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25988 Fix a C warning regarding variable constness.
25989
25990 * xterm.c (handle_one_xevent): Fix a C warning.
25991
259922007-09-18 Jason Rumney <jasonr@gnu.org>
25993
25994 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25995
259962007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25997
25998 * gtkutil.c (gdpy_def): New variable.
25999 (xg_initialize): Initialize gdpy_def.
26000 (xg_display_close): If no other display exists, set gdpy_def to a
26001 new connection.
26002
260032007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26004
26005 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26006 when we have no file name for the icon.
26007 (xg_tool_bar_expose_callback): Remove.
26008 (xg_create_tool_bar): Don't connect expose signal to
26009 xg_tool_bar_expose_callback.
26010 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26011
260122007-09-16 Andreas Schwab <schwab@suse.de>
26013
26014 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26015 values instead of zapping them.
26016
260172007-09-14 Glenn Morris <rgm@gnu.org>
26018
26019 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26020 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26021 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26022 scope and rename to omfib_buffer for clarity.
26023 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26024
260252007-09-14 Kenichi Handa <handa@m17n.org>
26026
26027 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26028
260292007-09-13 Jason Rumney <jasonr@gnu.org>
26030
26031 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26032
26033 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26034
26035 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26036 (mac_term_init): Call here instead, passing rif.
26037
260382007-09-13 Glenn Morris <rgm@gnu.org>
26039
26040 * s/hpux.h: No longer define `static' as nothing.
26041
260422007-09-13 Johan Bockgård <bojohan@gnu.org>
26043
26044 * callint.c (Fcall_interactively): Remove unused var `fun'.
26045
260462007-09-12 Romain Francoise <romain@orebokech.com>
26047
26048 * window.c (prefer_window_split_horizontally, display_buffer):
26049 Revert 2007-09-08 change.
26050
260512007-09-12 Glenn Morris <rgm@gnu.org>
26052
26053 * alloca.c: Remove file.
26054 * Makefile.in (alloca): Do not undef.
26055 (allocaobj, alloca.o): Remove.
26056 (otherobj): Remove allocaobj.
26057 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26058 * regex.c (C_ALLOCA): Remove all references and code that was only
26059 used when this was defined.
26060 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26061 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26062 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26063
26064 * Makefile.in (SOURCES, unlock, relock): Delete.
26065
26066 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26067 (menu_grab_callback): All uses changed.
26068
26069 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26070 (x_reply_selection_request): All uses changed.
26071
260722007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26073
26074 * lread.c (load_warn_old_style_backquotes): Change message to look
26075 better when it appears in the middle of byte-compiler messages.
26076
260772007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26078
26079 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26080
26081 * xterm.c (x_create_terminal): Add comment.
26082
26083 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26084
260852007-09-10 Richard Stallman <rms@gnu.org>
26086
26087 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26088
260892007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26090
26091 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26092 (DEFUN): Document `intspec', use it instead of `prompt'.
26093
26094 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26095
26096 * data.c (Finteractive_form): If the interactive specification starts
26097 with a `(', use it as a Lisp form.
26098
26099 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26100 name and file modes.
26101
26102 * callint.c (Fcall_interactively): Comment fixes.
26103
261042007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26105
26106 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26107 and compiled functions.
26108
261092007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26110
26111 * window.c (prefer_window_split_horizontally): New variable.
26112 (display_buffer): Consider splitting window horizontally depending
26113 on prefer_window_split_horizontally.
26114
261152007-09-08 Eli Zaretskii <eliz@gnu.org>
26116
26117 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26118
261192007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26120
26121 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26122
26123 * frame.c (x_set_frame_parameters): Check number is positive before
26124 using XFASTINT.
26125
26126 * window.c (freeze_window_start): Don't presume selected_window holds
26127 a window object.
26128 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26129
261302007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26131
26132 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26133
261342007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26135
26136 * window.c (Vsplit_window_preferred_function): New var.
26137 (Fdisplay_buffer): Use it.
26138 (syms_of_window): Export, and initialize it.
26139
261402007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26141
26142 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26143
261442007-09-06 Glenn Morris <rgm@gnu.org>
26145
26146 * gtkutil.c (menu_grab_callback) <cnt>:
26147 * xselect.c (x_reply_selection_request) <cnt>: Move static
26148 variable to file scope.
26149
261502007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26151
26152 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26153 consistent values of selected_frame and selected_window.
26154
261552007-09-04 Jason Rumney <jasonr@gnu.org>
26156
26157 * w32console.c (initialize_w32_display): Zero unused hooks.
26158
261592007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26160
26161 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26162 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26163
261642007-09-04 Jason Rumney <jasonr@gnu.org>
26165
26166 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26167 in w32console.c. Set up input. Remove XXX comments that have been
26168 confirmed as correct.
26169
26170 * s/ms-w32.h (MULTI_KBOARD): Define.
26171
26172 * w32console.c (one_and_only_w32cons): Remove.
26173 (initialize_w32_display): Take terminal argument.
26174
26175 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26176 initialize_w32_display.
26177 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26178
26179 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26180
26181 * keyboard.c (discard_mouse_events): Discard it.
26182 (make_lispy_event): Translate it to a lisp event.
26183 (lispy_wheel_names): Add wheel-left and right events.
26184 (syms_of_keyboard): Enlarge wheel_syms.
26185
26186 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26187 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26188
26189 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26190
26191 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26192 from WM_MOUSEHWHEEL.
26193 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26194
26195 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26196 terminal.
26197
26198 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26199 keyboard for the terminal.
26200
262012007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26202
26203 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26204 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26205 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26206 and resume-tty-function to resume-tty-hook.
26207 (Fsuspend_tty, Fresume_tty): Use new names.
26208
262092007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26210
26211 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26212 if it starts with "n:".
26213
262142007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26215
26216 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26217
262182007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26219
26220 * frame.h:
26221 * frame.c (Qterm_environment_variable): Remove.
26222 (syms_of_frame): Don't init and staticpro it.
26223
26224 * callproc.c (getenv_internal): Remove special case for $TERM.
26225
26226 * callproc.c (Vinitial_environment): New variable.
26227 (set_initial_environment): Initialize it.
26228 (syms_of_callproc): Declare it.
26229 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26230 TERM under which a process runs is never related to the TERM in which
26231 Emacs is running.
26232
262332007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26234
26235 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26236 * s/darwin.h: ... do it here.
26237
262382007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26239
26240 * lisp.h (set_initial_environment): Rename from set_global_environment.
26241
26242 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26243 removed by mistake on the multi-tty branch.
26244
26245 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26246 (Fmodify_frame_parameters): Return a value.
26247
26248 * image.c (png_load): Comment-out var only used in commented-out code.
26249
26250 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26251 before passing it to mark_object.
26252
26253 * xfaces.c (internal_resolve_face_name): Return a value.
26254 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26255
26256 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26257 (x_icon): Comment-out var only used in commented-out code.
26258
262592007-08-29 Romain Francoise <romain@orebokech.com>
26260
26261 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26262 QUIT hasn't been provided.
26263
262642007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26265
26266 * callproc.c (child_setup, getenv_internal): Use the
26267 display-environment-variable and term-environment-variable frame params.
26268 (set_initial_environment): Initialise Vprocess_environment.
26269
26270 * config.in: Disable multi-keyboard support on a mac.
26271
26272 * frame.c (Qterm_environment_variable)
26273 (Qdisplay_environment_variable): New variables.
26274 (syms_of_frame): Intern and staticpro them.
26275 (Fmake_terminal_frame): Disable output method test.
26276
26277 * frame.h: Declare them here.
26278
26279 * macfns.c (x_set_mouse_color): Get rif from the frame.
26280 (x_set_tool_bar_lines): Don't use updating_frame.
26281 (mac_window): Add 2 new parameters for consistency with other systems.
26282 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26283 frame parameters following what is done in X11 and w32. Don't use
26284 FRAME_MAC_DISPLAY_INFO.
26285 (Fx_open_connection, start_hourglass): Remove window-system check.
26286 (x_create_tip_frame): Get the keyboard from the terminal.
26287
26288 * macmenu.c: Reorder includes.
26289 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26290
26291 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26292 terminal parameter.
26293 (x_clear_frame): Add a frame parameter.
26294 (note_mouse_movement): Get rif from the frame.
26295 (mac_term_init): Initialize the terminal.
26296 (mac_initialize): Make static and move terminal initialization ...
26297 (mac_create_terminal): ... to this new function.
26298
26299 * macterm.h (struct mac_display_info): Add terminal.
26300 (mac_initialize): Delete declaration.
26301
26302 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26303
26304 * sysdep.c: Comment out text after #endif.
26305
26306 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26307 is defined. Better initialize ttys in windows. Use terminal
26308 specific mouse_position_hook.
26309
26310 * termhooks.h (union display_info): Add mac_display_info.
26311
26312 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26313 Set the default minibuffer frame, window_system and the rest of the
26314 frame parameters following what is done in X11.
26315
26316 * w32term.c (w32_initialize): Make static.
26317
26318 * xselect.c (x_handle_selection_clear): Only access
26319 terminal->kboard when MULTI_KBOARD is defined.
26320
26321 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26322 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26323
263242007-08-29 Jason Rumney <jasonr@gnu.org>
26325
26326 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26327 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26328
26329 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26330 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26331
26332 * keyboard.c (restore_kboard_configuration): Only define when
26333 MULTI_KBOARD defined.
26334
26335 * makefile.w32-in: Update dependancies from Makefile.in.
26336 (OBJ1): Add terminal.$(O)
26337
26338 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26339 Don't define function body.
26340 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26341
26342 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26343
26344 * w32.c (request_sigio, unrequest_sigio): Remove.
26345
26346 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26347 (w32con_clear_frame, w32con_clear_end_of_line)
26348 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26349 (w32con_delete_glyphs, w32con_set_terminal_window)
26350 (scroll_line, w32_sys_ring_bell): Add frame arg.
26351 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26352 Add terminal arg.
26353 (PICK_FRAME): Remove.
26354 (w32con_write_glyphs): Use frame specific terminal coding.
26355 (one_and_only_w32cons): New global variable.
26356 (initialize_w32_display): Use it for storing hooks.
26357 (create_w32cons_output): New function.
26358
26359 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26360 arg a frame.
26361
26362 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26363 Set window_system.
26364 (x_set_tool_bar_lines): Don't use updating_frame.
26365 (Fx_create_frame): Set terminal and ref count.
26366 (Fx_open_connection): Remove window-system check.
26367
26368 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26369
26370 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26371 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26372 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26373 Add frame arg.
26374 (x_delete_terminal, w32_create_terminal): New functions.
26375 (w32_term_init): Create a terminal.
26376 (w32_initialize): Move terminal specific initialization to
26377 w32_create_terminal.
26378
26379 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26380 (w32_clear_rect, w32_clear_area): Use background from frame.
26381 (w32_display_info): Add terminal.
26382 (w32_sys_ring_bell, x_delete_display): Declare here.
26383
26384 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26385
26386 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26387
263882007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26389
26390 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26391 Fix get_named_tty calls for the controlling tty.
26392
263932007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26394
194d44e7 26395 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26396
263972007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26398
26399 * term.c (tty_insert_glyphs): Add missing first parameter.
26400
264012007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26402
26403 * buffer.c (Fbuffer_list, Fbury_buffer):
26404 Take frame->buried_buffer_list into account.
26405
26406 * cm.c (current_tty): New variable, for cmputc().
26407 (cmputc): Use it.
26408 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26409 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26410 (cmgoto): Add tty parameter. Pass it on to calccost().
26411 Use emacs_tputs() instead of tputs().
26412
26413 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26414 tputs().
26415 (current_tty): New variable, for cmputc().
26416 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26417
26418 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26419 (internal_condition_case, internal_condition_case_1)
26420 (internal_condition_case_2): Don't abort when x_catching_errors.
26421
26422 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26423 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26424 prevent crashes caused by bogus longjmps in read_char.
26425
26426 * keymap.h (Fset_keymap_parent): Add EXFUN.
26427
26428 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26429 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26430 Remove redundant definition.
26431
26432 * macfns.c (x_set_mouse_color, x_make_gc):
26433 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26434
26435 * w32term.c (x_free_frame_resources):
26436 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26437 (w32_initialize): Use the accessor macros for terminal characteristics.
26438
26439 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26440 Use the accessor macros for terminal characteristics.
26441 * msdos.c (internal_terminal_init): Use the accessor macros for
26442 terminal characteristics.
26443 (ScreenVisualBell, internal_terminal_init):
26444 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26445
26446 * termopts.h (no_redraw_on_reenter): Declare.
26447
26448 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26449 (mark_terminals, mark_ttys): Declare.
26450 (Fgarbage_collect): Call them.
26451 (mark_object): Mark buried_buffer_list.
26452
26453 * prefix-args.c: Include stdlib.h for exit.
26454
26455 * syssignal.h: Add comment.
26456
26457 * indent.c: Include stdio.h.
26458
26459 * window.h (Vinitial_window_system): Declare.
26460 (Vwindow_system): Delete declaration.
26461
26462 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26463
26464 * image.c (lookup_image): Don't initialize `c' until the xasserts
26465 have been run.
26466
26467 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26468 FRAME_FOREGROUND_PIXEL.
26469
26470 * print.c (print_preprocess): Don't lose print_depth levels while
26471 iterating.
26472
26473 * widget.c (update_from_various_frame_slots):
26474 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26475
26476 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26477 frames.
26478 (window_internal_height): Remove bogus make_number call.
26479 (init_window_once): Call make_terminal_frame with two zero parameters.
26480
26481 * fileio.c (Fread_file_name): Update comment.
26482
26483 * callint.c (Fcall_interactively):
26484 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26485 Make sure it is correctly unwound.
26486
26487 * xsmfns.c (x_session_close): New function.
26488
26489 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26490 Delete declarations.
26491
26492 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26493 (x_output): Remove background_pixel and foreground_pixel fields.
26494 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26495 (x_delete_device, x_session_close): Declare.
26496
26497 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26498 (read_filtered_event): Call `read_char' with a local
26499 `wrong_kboard_jmpbuf'.
26500
26501 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26502 Don't call single_kboard_state. Use FRAME_RIF.
26503
26504 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26505 systems.
26506
26507 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26508 (Fframe_with_environment, Fset_input_meta_mode)
26509 (Fset_quit_char): EXFUN.
26510 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26511 (init_sys_modes, reset_sys_modes): Update prototypes.
26512 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26513
26514 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26515 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26516 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26517 Delete declarations.
26518 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26519 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26520 New declarations.
26521
26522 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26523 already does that during init_display(). Call syms_of_keymap
26524 before syms_of_keyboard. Call `syms_of_terminal'.
26525 Call set_initial_environment, not set_process_environment.
26526 (shut_down_emacs): Call reset_all_sys_modes() instead of
26527 reset_sys_modes().
26528
26529 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26530 (internal_resolve_face_name, resolve_face_name_error): New functions.
26531 (resolve_face_name): Protect against loops and errors thrown by Fget.
26532 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26533 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26534
26535 * scroll.c: Replace CURTTY() with local variables throughout the
26536 file (where applicable).
26537 (calculate_scrolling, calculate_direct_scrolling)
26538 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26539 characteristics.
26540
26541 * keymap.c (Vfunction_key_map): Remove.
26542 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26543 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26544 (Vkey_translation_map): Remove.
26545 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26546 (Fdescribe_buffer_bindings)
26547 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26548 Update for terminal-local key-translation-map.
26549
26550 * Makefile.in (callproc.o): Update dependencies.
26551 (lisp, shortlisp): Add termdev.elc.
26552 (obj): Add terminal.o.
26553 (terminal.o): Add dependencies.
26554 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26555 (data.o, fns.o): Add termhooks.h dependency.
26556 (SOME_MACHINE_LISP): Add dnd.elc.
26557 (minibuf.o): Fix typo.
26558 Update dependencies.
26559
26560 * data.c (do_symval_forwarding, store_symval_forwarding)
26561 (find_symbol_value): Use the selected frame's keyboard, not
26562 current_kboard.
26563
26564 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26565 Vwindow_system.
26566
26567 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26568 Fmenu_bar_open.
26569 (syms_of_xmenu): Update defsubr.
26570 (mouse_position_for_popup, Fx_popup_menu)
26571 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26572 (set_frame_menubar, free_frame_menubar)
b97439ce 26573 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26574 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26575 an X frame.
26576
26577 * xselect.c (x_own_selection): Abort if not an X frame.
26578 (some_frame_on_display): Check if it is an X frame.
26579 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26580
26581 * coding.c: Include frame.h and termhooks.h.
26582 (terminal_coding, keyboard_coding): Delete.
26583 (Fset_terminal_coding_system_internal)
26584 (Fset_keyboard_coding_system_internal)
26585 (Fkeyboard_coding_system)
26586 (Fterminal_coding_system): Add a terminal parameter.
26587 Get terminal_coding from the terminal.
26588 (init_coding_once): Don't call setup_coding_system here.
26589
26590 * dispextern.h (set_scroll_region, turn_off_insert)
26591 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26592 (tty_clear_end_of_line, tty_setup_colors)
26593 (delete_tty, updating_frame)
26594 (produce_special_glyphs, produce_glyphs, write_glyphs)
26595 (insert_glyphs): Remove.
26596 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26597 (tty_turn_off_highlight, get_tty_size): Add declaration.
26598 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26599
26600 * frame.h (enum output_method): Add output_initial.
26601 (struct x_output): Delete.
26602 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26603 Access foreground_pixel and background_pixel directly from the frame.
26604 (tty_display): Delete.
26605 (struct frame): Add buried_buffer_list, foreground_pixel,
26606 background_pixel and terminal. Delete kboard.
26607 (union output_data): Add tty.
26608 (FRAME_KBOARD): Get the kboard from the terminal.
26609 (FRAME_INITIAL_P): New macro.
26610 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26611 (Qterm_environment_variable, Qdisplay_environment_variable)
26612 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26613 New declarations.
26614
26615 * termchar.h (tty_output, tty_display_info): New structures.
26616 (tty_list): Declare.
26617 (FRAME_TTY, CURTTY): New macros.
26618 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26619 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26620 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26621 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26622
26623 * callproc.c: Include frame.h and termhooks.h, for terminal
26624 parameters.
26625 (add_env): New function.
26626 (child_setup): Use it.
26627 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26628 (getenv_internal): Fix get_terminal_param call.
26629 (Fgetenv_internal, egetenv): Update doc.
26630 (syms_of_callproc): Initialize Vprocess_environment to nil.
26631 Register and initialize them. Remove obsolete defvars. Update doc
26632 strings.
26633 (child_setup): Handle Vlocal_environment_variables.
26634 (getenv_internal): Add terminal parameter.
26635 Handle Vlocal_environment_variables.
26636 (Fgetenv_internal): Add terminal parameter.
26637 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26638 environment in a frame (not terminal) parameter. Update doc strings.
26639 (set_initial_environment): Rename from set_global_environment.
26640 Store Emacs environment in initial frame parameter.
26641
26642 * xdisp.c (redisplay_internal): Update references to
26643 `previous_terminal_frame'.
26644 (display_mode_line, Fformat_mode_line): Replace calls to
26645 `push_frame_kboard' with `push_kboard'.
26646 (get_glyph_string_clip_rects): Add extra parentheses and
26647 braces to prevent compiler warnings.
26648 (calc_pixel_width_or_height): Add xassert to check that the
26649 frame is alive. Don't call `lookup_image' on a termcap frame.
26650 (message2_nolog, message3_nolog, redisplay_internal)
26651 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26652 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26653 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26654 (Fx_display_pixel_width, Fx_display_pixel_height)
26655 (Fx_display_planes, Fx_display_color_cells)
26656 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26657 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26658 (Fx_display_backing_store, Fx_display_visual_class)
26659 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26660 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26661
26662 * xfns.c (x_set_foreground_color x_set_background_color)
26663 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26664 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26665 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26666 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26667 terminal that is being deleted.
26668 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26669 frame parameter, and make sure it overrides any user-supplied setting.
26670 (Fx_close_connection, Fx_synchronize): Unify argument names with
26671 the rest of the DEFUNs.
26672
26673 * dispnew.c (Fsend_string_to_terminal): Update call to
26674 `get_tty_terminal'.
26675 (Fredraw_frame, Fsend_string_to_terminal)
26676 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26677 FRAME_TERMCAP_P and FRAME_TTY.
26678 (window_change_signal): Don't believe width/height values that are
26679 impossibly small.
26680 (Vinitial_window_system): Rename from Vwindow_system.
26681 (termscript, Wcm, rif): Delete.
26682
26683 * termhooks.h (struct terminal): New struct containing the
26684 previously global text display hooks and new members NAME,
26685 DELETED and PARAM_ALIST.
26686 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26687 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26688 (FRAME_RIF): New macros.
26689 (get_terminal_param, get_device): New declarations.
26690 (termscript): Delete declaration.
26691
26692 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26693 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26694 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26695 FRAME_FOREGROUND_PIXEL.
26696 (x_fully_uncatch_errors): Disable definition.
26697 (x_scroll_bar_expose): Fix reference to foreground pixel.
26698 (XTread_socket): Disable loop on all X displays.
26699 (x_delete_terminal): Don't set terminal->deleted and let
26700 delete_terminal delete the frames on the terminal.
26701 (x_delete_display): Doc update to reflect changes in
26702 delete_terminal.
26703 (x_display_info) <terminal>: Move member earlier in the struct.
26704 (deleting_tty): Remove old variable.
26705 (Fsuspend_tty): Call clear_tty_hooks.
26706 (Fresume_tty, init_tty): Call set_tty_hooks.
26707 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26708 errors on X frames.
26709 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26710 (handle_one_xevent): Initialize `f' to NULL.
26711 (x_delete_terminal, x_create_terminal): New functions.
26712 (XTset_terminal_modes, XTreset_terminal_modes)
26713 (XTread_socket, x_connection_closed, x_term_init)
26714 (x_term_init, x_delete_display): Add terminal parameter.
26715 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26716 X connections.
26717
26718 * frame.c: Include termchar.h.
26719 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26720 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26721 (Qdisplay_environment_variable): New vars.
26722 (Fframep): Deal with output_initial.
26723 (Fframe-live-p): Doc fix.
26724 (Fwindow-system): New function.
26725 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26726 (make_terminal_frame): Don't create frames on a terminal that is
26727 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26728 (store_frame_param): Check for found_for_frame before calling XFRAME.
26729 (Fmake_terminal_frame): Handle NULL tty names correctly.
26730 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26731 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26732 frames to refer to a deleted frame in their 'environment parameter.
26733 (Fframe_with_environment): New function.
26734 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26735 (get_future_frame_param): New function.
26736 (Fmake_terminal_frame): Use it.
26737 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26738
26739 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26740 * sysdep.c (reset_sys_modes): Update for renames.
26741
26742 * keyboard.c (tty_read_avail_input): New function.
26743 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26744 (syms_of_keyboard): Defsubr them.
26745 (Fset_input_meta_mode, Fset_quit_char): New functions.
26746 (Fset_input_mode): Split to above functions.
26747 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26748 parameter. Use it in call to `read_char'.
26749 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26750 Set wrong_kboard_jmpbuf correctly in recursive calls.
26751 Use current_kboard to access Vkeyboard_translate_table.
26752 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26753 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26754 Update longjmp invocations. Remember the original current_kboard,
26755 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26756 changes it. Comment out unnecessary calls to
26757 `record_single_kboard_state' and `any_kboard_state'.
26758 Update recursive calls.
26759 (wrong_kboard_jmpbuf): Remove global variable.
26760 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26761 Handle deleted interrupted_kboards correctly; that is a legal
26762 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26763 and read_char calls. Abort if interrupted_kboard died in read_char.
26764 (any_kboard_state, single_kboard_state)
26765 (push_frame_kboard): Remove function.
26766 (pop_kboard): Switch out of single_kboard mode if the kboard has
26767 been deleted. Remove unused variable. Help debugging by not
26768 changing current_kboard unnecessarily. Set current_kboard to the
26769 kboard of the selected frame when the stored kboard object has
26770 been deleted before pop_kboard.
26771 (temporarily_switch_to_single_kboard): Change first parameter to a
26772 frame pointer. Throw an error when caller wants to change kboards
26773 while in single_kboard mode. Don't push_kboard if we weren't in
26774 single kboard state. Don't pop_kboard if we popped into any
26775 kboard state.
26776 (restore_kboard_configuration): Abort if pop_kboard changed the
26777 kboard in single_kboard mode. Call pop_kboard only after setting
26778 up single_kboard mode.
26779 (Frecursive_edit): Switch to single_kboard mode only in nested
26780 command loops.
26781 (cmd_error, command_loop, command_loop_1, timer_check):
26782 Comment out unnecessary call to `any_kboard_state' and
26783 `record_single_kboard_state'.
26784 (delete_kboard): Exit single_kboard mode if we have just deleted
26785 that kboard. Use FRAME_KBOARD.
26786 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26787 `fatal_error_signal'.
26788 (record_single_kboard_state): Don't push_kboard if we weren't in
26789 single kboard state. Don't pop_kboard if we popped into any
26790 kboard state.
26791 (push_frame_kboard): Rename to push_kboard.
26792 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26793 (read_avail_input): Read input from all terminals.
26794 (mark_kboards): Also mark Vkeyboard_translate_table.
26795 (kbd_buffer_store_event_hold): Simplify condition.
26796 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26797 (Vkeyboard_translate_table): Move to struct kboard.
26798 (init_kboard): Initialize Vkeyboard_translate_table.
26799 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26800 Vkeyboard_translate_table. Update doc strings. Update docs of
26801 local-function-key-map and function-key-map.
26802
26803 * terminal.c: New file.
26804
26805 * term.c: Include errno.h.
26806 (Vring_bell_function, device_list, initial_device)
26807 (next_device_id, ring_bell, update_begin, update_end)
26808 (set_terminal_window, cursor_to, raw_cursor_to)
26809 (clear_to_end, clear_frame, clear_end_of_line)
26810 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26811 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26812 (syms_of_term): Move their initialization to terminal.c.
26813 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26814 (Ftty_display_color_cells)
26815 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26816 (clear_tty_hooks, set_tty_hooks)
26817 (init_tty, maybe_fatal): New functions.
26818 (Ftty_type): Return nil if terminal is not on a tty instead of
26819 throwing an error. Doc update.
26820 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26821 Doc update. Initialize new subrs and variables.
26822 (delete_tty): Use terminal->deleted.
26823 (tty_set_terminal_modes): Rename from set_terminal_modes.
26824 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26825 (set_scroll_region): Rename to `tty_set_scroll_region'.
26826 (turn_on_insert): Rename to `tty_turn_on_insert'.
26827 (turn_off_insert): Rename to `tty_turn_off_insert'.
26828 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26829 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26830 (toggle_highligh): Rename to `tty_toggle_highlight'.
26831 (background_highlight): Rename to `tty_background_highlight'.
26832 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26833 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26834 (tty_set_scroll_region, tty_background_highlight)
26835 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26836 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26837 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26838 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26839 Add static modifier.
26840 (tty_reset_terminal_modes, tty_set_terminal_window)
26841 (tty_set_scroll_region, tty_background_highlight)
26842 (tty_highlight_if_desired, tty_cursor_to)
26843 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26844 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26845 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26846 renames.
26847
268482007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26849
26850 * keyboard.c: Qrtl is new.
26851 (parse_tool_bar_item): Handle :rtl keyword.
26852 (syms_of_keyboard): Intern :rtl keyword.
26853
26854 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26855
26856 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26857 so no Lisp code is executed.
26858 (file_for_image, find_rtl_image): New functions.
26859 (xg_get_image_for_pixmap): Use file_for_image.
26860 (update_frame_tool_bar): If direction is RTL, use RTL image if
26861 defined. Use Gtk stock images if defined.
26862
268632007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26864
26865 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26866 for nonexistent or zero-width glyph in composition glyph.
26867
268682007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26869
26870 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26871
26872 * xdisp.c (Finvisible_p): New function.
26873 (syms_of_xdisp): defsubr it.
26874
268752007-08-24 Juanma Barranquero <lekktu@gmail.com>
26876
26877 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26878 Doc fixes.
26879
268802007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26881
26882 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26883
268842007-08-24 Martin Rudalics <rudalics@gmx.at>
26885
26886 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26887 whether decoding has modified buffer contents.
26888
268892007-08-24 Jason Rumney <jasonr@gnu.org>
26890
26891 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26892 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26893 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26894 (init_svg_functions) [HAVE_NTGUI]: New function.
26895 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26896 (svg_load_image): Use them.
26897 (svg_load_image) [HAVE_NTGUI]: Implement background.
26898
268992007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26900
26901 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26902 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26903 (LIBX): Remove @RSVG_LIBS@.
26904 (LIBES): Add $(RSVG_LIBS).
26905
26906 * image.c (svg_load_image): Blend with specified background if exists.
26907 Use IMAGE_BACKGROUND. Add Mac OS Support.
26908
26909 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26910 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26911 Remove macros.
26912 [MAC_OSX] (socket_callback): Do nothing.
26913 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26914 ReceiveNextEvent.
26915 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26916 socket_callback.
26917 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26918
269192007-08-22 Glenn Morris <rgm@gnu.org>
26920
26921 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26922
269232007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26924
26925 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26926
26927 * image.c: Add support for SVG images. Some additional comments
26928 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26929 (svg_image_p): New function to test for SVG image.
26930 (svg_load): New function to load SVG image.
26931 (svg_load_image): New function, helper for svg_load.
26932 (Qsvg): New Lisp_object.
26933 (svg_keyword_index): New enum.
26934 (svg_format): New static `image_keyword' struct.
26935 (svg_type): New static `image_type' struct.
26936 (librsvg/rsvg.h): Include it.
26937
269382007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26939
26940 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26941
269422007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26943
26944 * lread.c (Qold_style_backquotes): New var.
26945 (syms_of_lread): Init and staticpro it.
26946 (load_warn_old_style_backquotes): New fun.
26947 (Fload): Use them to warn about old style backquotes.
26948 (end_of_file_error, Fload): Remove unused vars.
26949
26950 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26951
26952 * lread.c (Vold_style_backquotes): New var.
26953 (syms_of_lread): Init and export it to Elisp.
26954 (read1): Set it when we find an old-style (back)quote.
26955
269562007-08-22 Jason Rumney <jasonr@gnu.org>
26957
26958 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26959
269602007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26961
26962 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26963
269642007-08-19 Richard Stallman <rms@gnu.org>
26965
26966 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26967
269682007-08-19 Andreas Schwab <schwab@suse.de>
26969
26970 * alloc.c (pure): Round PURESIZE up.
26971
269722007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26973
26974 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26975 active frame.
26976
269772007-08-16 Richard Stallman <rms@gnu.org>
26978
26979 * eval.c (Fcommandp): Add parens to clarify.
26980
26981 * minibuf.c (Fall_completions): Use enum for type of table.
26982
26983 * emacs.c (USAGE2): Improve text.
26984
269852007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26986
26987 * term.c (tty_default_color_capabilities): Declare static
26988 variables in file scope, to avoid HPUX compiler problem.
26989
269902007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26991
26992 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26993 to gtk_toolbar_insert.
26994
269952007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26996
26997 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26998
26999 * insdel.c (reset_var_on_error): New fun.
27000 (signal_before_change, signal_after_change):
27001 Use it to reset (after|before)-change-functions to nil in case of error.
27002 Bind inhibit-modification-hooks to t.
27003 Don't bind (after|before)-change-functions to nil while they run.
27004
270052007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27006
27007 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27008 filling pixmap with stippled background.
27009
270102007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27011
27012 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27013 Don't use invisible frame as parent window for repositioning.
27014
270152007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27016
27017 * print.c (new_backquote_output): Rename from old_backquote_output.
27018 (print): Inverse its logic (according to its name) so as to match the
27019 behavior of new_backquote_flag in lread.c.
27020
270212007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27022
27023 * gmalloc.c (posix_memalign): New function.
27024
27025 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27026 ActivateControl/DeactivateControl here.
27027 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27028 frame-notice-user-settings is non-nil.
27029 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27030 for kEventParamFMFontStyle.
27031 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27032 mac_pass_command_to_system and mac_pass_control_to_system here.
27033 (XTread_socket): Call ActivateControl/DeactivateControl here.
27034 (XTread_socket) [TARGET_API_MAC_CARBON]:
27035 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27036 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27037 for window repositioning.
27038
270392007-08-08 Glenn Morris <rgm@gnu.org>
27040
27041 * Replace `iff' in doc-strings and comments.
27042
270432007-08-07 Chong Yidong <cyd@stupidchicken.com>
27044
27045 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27046
270472007-08-07 Martin Rudalics <rudalics@gmx.at>
27048
27049 * fileio.c (Finsert_file_contents): Run format-decode and
27050 after_insert_file_functions on entire buffer when REPLACE is
27051 non-nil and inhibit modification_hooks and point_motion_hooks.
27052 For consistency, run after_insert_file_functions iff something
27053 got inserted. Move signal_after_change and update_compositions
27054 after code running after_insert_file_functions. Make sure that
27055 undo_list doesn't record intermediate steps of the decoding process.
27056
270572007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27058
27059 * emacs.c (main)
27060 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27061 Call malloc_enable_thread on interactive startup.
27062
27063 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27064 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27065 [USE_PTHREAD]: Conditionalize with it.
27066 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27067 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27068 New functions.
27069
270702007-08-06 Chong Yidong <cyd@stupidchicken.com>
27071
27072 * xdisp.c (redisplay_window): When restoring original buffer
27073 position, make sure it is still valid.
27074
27075 * image.c (png_load): Ignore png-supplied background color.
27076
270772007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27078
27079 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27080 Use kCFAbsoluteTimeIntervalSince1970.
27081
27082 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27083 New variable.
27084 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27085 event loop should be quit.
27086 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27087 Quit dialog event loop if quit_dialog_event_loop is set.
27088
27089 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27090 (Selection): New typedef. Use instead of ScrapRef.
27091 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27092 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27093 (mac_clear_selection): Rename from clear_scrap.
27094 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27095 scrap_has_target_type. All uses changed.
27096 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27097 (mac_selection_has_target_p): New functions.
27098 (mac_put_selection_value): Rename from put_scrap_string.
27099 (mac_get_selection_value): Rename from get_scrap_string.
27100 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27101 (put_scrap_private_timestamp, scrap_has_target_type)
27102 (get_scrap_private_timestamp): Remove functions.
27103 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27104 (x_own_selection, x_get_local_selection):
27105 Use mac_valid_selection_value_p.
27106 (x_own_selection): Don't use put_scrap_private_timestamp.
27107 Record OWNERSHIP-INFO into Vselection_alist instead.
27108 (x_get_local_selection): Don't check type if request is local.
27109 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27110 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27111
271122007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27113
27114 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27115 add comment explaining why.
27116
271172007-08-03 Richard Stallman <rms@gnu.org>
27118
27119 * fileio.c (Fvisited_file_modtime): Use make_time.
27120
271212007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27122
27123 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27124 build.
27125
271262007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27127
27128 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27129
271302007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27131
27132 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27133
271342007-07-30 Richard Stallman <rms@gnu.org>
27135
27136 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27137
271382007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27139
27140 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27141
271422007-07-28 Nick Roberts <nickrob@snap.net.nz>
27143
27144 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27145 remote default-directory.
27146
27147 * buffer.c (mode-line-format): Update doc string.
27148
271492007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27150
27151 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27152 scroll bar gap.
27153 (x_scroll_bar_create): Set bar->fringe_extended_p.
27154 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27155 on frame edge. Check fringe background extension. Don't clear
27156 extended fringe background area.
27157
27158 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27159 (w32_fill_area): Enclose multiple statements with do ... while (0).
27160
27161 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27162 Extend fringe background to scroll bar gap.
27163 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27164 Set bar->fringe_extended_p.
27165 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27166 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27167 background extension. Don't clear extended fringe background area.
27168
27169 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27170 New member fringe_extended_p.
27171
271722007-07-25 Glenn Morris <rgm@gnu.org>
27173
27174 * Relicense all FSF files to GPLv3 or later.
27175
27176 * COPYING: Switch to GPLv3.
27177
271782007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27179
27180 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27181
27182 * data.c (Finteractive_form): Check for the presence of an
27183 `interactive-form' symbol property more thoroughly.
27184
27185 * data.c (Finteractive_form): Use an `interactive-form' property if
27186 present, analogous to the function-documentation property.
27187
271882007-07-24 Jason Rumney <jasonr@gnu.org>
27189
27190 * w32fns.c (x_real_positions): Get real position from OS instead of
27191 calculating it.
27192
271932007-07-23 Jason Rumney <jasonr@gnu.org>
27194
27195 * filelock.c (current_lock_owner): Allow for @ sign in username.
27196
271972007-07-22 Nick Roberts <nickrob@snap.net.nz>
27198
27199 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27200 remote default-directory.
27201
27202 * buffer.c (mode-line-format): Describe above case in doc string.
27203
272042007-07-20 Eli Zaretskii <eliz@gnu.org>
27205
27206 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27207 Define if not defined.
27208
272092007-07-18 Jason Rumney <jasonr@gnu.org>
27210
27211 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27212
272132007-07-18 Richard Stallman <rms@gnu.org>
27214
27215 * data.c (Fsetq_default): Doc fix.
27216
27217 * eval.c (Fsetq): Doc fix.
27218
272192007-07-18 Juanma Barranquero <lekktu@gmail.com>
27220
27221 * coding.c (Ffind_operation_coding_system):
27222 * eval.c (For, Fand): Doc fixes.
27223 Reported by Johan Bockgård.
27224
272252007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27226
27227 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27228
27229 * xterm.h: Declare x_ewmh_activate_frame.
27230
27231 * xterm.c (x_ewmh_activate_frame): New function.
27232 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27233
272342007-07-17 Martin Rudalics <rudalics@gmx.at>
27235
27236 * window.c (Fdisplay_buffer): If largest or LRU window is the
27237 only window, split it even if it is not eligible for splitting.
27238 This restores the original behavior broken by the 2007-07-15
27239 change.
27240
272412007-07-17 Glenn Morris <rgm@gnu.org>
27242
27243 * abbrev.c (abbrev_check_chars): New function.
27244 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27245 Call abbrev_check_chars to check abbrev characters are word
27246 constituents. Doc fix.
27247
272482007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27249
27250 * process.c (Fstart_process, Fmake_network_process)
27251 (read_process_output): Fix up last changes.
27252
272532007-07-16 Eli Zaretskii <eliz@gnu.org>
27254
27255 * makefile.w32-in (clean): Don't delete *~.
27256
272572007-07-16 Andreas Schwab <schwab@suse.de>
27258
27259 * window.c (Fdisplay_buffer): Use NILP.
27260 (Fset_window_scroll_bars): Likewise.
27261
272622007-07-15 Martin Rudalics <rudalics@gmx.at>
27263
27264 * window.c (window_min_size_2): New function.
27265 (window_min_size_1, size_window, Fdisplay_buffer)
27266 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27267 windows without mode- or header-lines when window-min-height is
27268 too small.
27269 (size_window): Reset nodelete_p after testing it, following an
27270 earlier note by Kim F. Storm.
27271 (display_buffer): Do not set split_height_threshold to twice the
27272 value of window_min_height to avoid changing the value of a
27273 customizable variable. Rather explicitly check whether the
27274 height of the window that shall be splitted is at least as large
27275 as split_height_threshold.
27276 (Fwindow_full_width_p): New defun.
27277 (syms_of_window): Defsubr it.
27278
27279 * window.h: Add EXFUN for Fwindow_full_width_p.
27280
272812007-07-14 Jason Rumney <jasonr@gnu.org>
27282
27283 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27284
272852007-07-14 Richard Stallman <rms@gnu.org>
27286
27287 * eval.c (maybe_call_debugger): New function.
27288 (find_handler_clause): Use maybe_call_debugger.
27289 Call it when the handler says `debug'.
27290 Eliminate DEBUGGER_VALUE_PTR.
27291 (Fsignal): Eliminate debugger_value.
27292 (Qdebug): New variable.
27293 (syms_of_eval): Initialize it.
27294
272952007-07-14 Juanma Barranquero <lekktu@gmail.com>
27296
27297 * eval.c (Fprogn):
27298 * keyboard.c (Ftrack_mouse):
27299 * print.c (Fwith_output_to_temp_buffer):
27300 * window.c (Fsave_window_excursion): Doc fix.
27301
273022007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27303
27304 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27305
273062007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27307
27308 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27309 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27310 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27311 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27312 Remove unused encoding_carryover.
27313 * process.c: Adjust all functions accordingly.
27314
273152007-07-12 Richard Stallman <rms@gnu.org>
27316
27317 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27318
273192007-07-11 Jason Rumney <jasonr@gnu.org>
27320
27321 * makefile.w32-in (LIBS): Include OLE32.
27322
27323 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27324 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27325
273262007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27327
27328 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27329 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27330 from a Lisp_Object into a bare pointer.
27331 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27332 Adjust the code correspondingly.
27333
27334 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27335
27336 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27337 (term_show_mouse_face): Remove unused var `j'.
27338 (handle_one_term_event): Remove unused vars `i' and `j'.
27339 Don't cast return value of ttyname since it's not necessary.
27340
273412007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27342
27343 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27344 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27345
27346 * fns.c (map_char_table): Use an array of int for `indices' rather than
27347 an array of Lisp_Objects (which are only ever integers anyway).
27348 (Fmap_char_table): Update caller.
27349 * lisp.h: Update prototype.
27350 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27351 * fontset.c (Ffontset_info):
27352 * casetab.c (set_case_table): Update callers.
27353
27354 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27355
27356 * keymap.c (struct accessible_keymaps_data)
27357 (struct where_is_internal_data): New structures.
27358 (accessible_keymaps_1, where_is_internal_1): Use them to change
27359 interface to adhere to the one used by map_keymap.
27360 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27361 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27362
27363 * keymap.h (map_keymap_function_t): More informative prototype.
27364
273652007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27366
27367 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27368 (looking_at_1): Don't change search_regs and last_thing_searched
27369 if `inhibit-changing-match-data' is non-nil.
27370 (string_match_1, search_buffer, set_search_regs): Likewise.
27371 (syms_of_search): Add Lisp level definition for
27372 `inhibit-changing-match-data' and set it to nil.
27373 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27374 start and end of the match, instead of using values in search_regs.
27375
273762007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27377
27378 * minibuf.c (Fcompleting_read): New value `confirm-only'
27379 for `require-match'.
27380
273812007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27382
27383 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27384 part of the 2007-06-27 change to syms_of_fileio.
27385
273862007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27387
27388 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27389 Check WINDOWP before using XWINDOW. Consolidate return statements.
27390
273912007-06-27 Richard Stallman <rms@gnu.org>
27392
27393 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27394
273952007-06-27 Juanma Barranquero <lekktu@gmail.com>
27396
27397 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27398
273992007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27400
27401 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27402 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27403 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27404 (_free_internal, memalign): Use them.
27405 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27406 Initialize to PTHREAD_MUTEX_INITIALIZER.
27407 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27408 (morecore_nolock): Rename from morecore. All uses changed.
27409 Use only nolock versions of internal allocation functions.
27410 (_malloc_internal_nolock, _realloc_internal_nolock)
27411 (_free_internal_nolock): New functions created from
27412 _malloc_internal, _realloc_internal, and _free_internal.
27413 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27414 Copy hook value to automatic variable before its use.
27415 (memalign): Copy hook value to automatic variable before its use.
27416
274172007-06-26 Kenichi Handa <handa@m17n.org>
27418
27419 * coding.c (Ffind_operation_coding_system): Docstring improved.
27420 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27421
274222007-06-25 David Kastrup <dak@gnu.org>
27423
27424 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27425 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27426 cater for additional parameter.
27427
27428 * keymap.h: Adjust number of parameters to `current-active-maps'.
27429
27430 * doc.c (Fsubstitute_command_keys): Adjust call of
27431 `current-active-maps'.
27432
274332007-06-25 David Kastrup <dak@gnu.org>
27434
27435 * callint.c (Fcall_interactively): Make the parsing of interactive
27436 specs somewhat more readable.
27437
274382007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27439
27440 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27441 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27442 if extended background has already been filled.
27443
274442007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27445
27446 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27447 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27448
27449 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27450 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27451 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27452 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27453 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27454 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27455 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27456 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27457 Run timers during dialog popup.
27458 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27459
274602007-06-21 Jason Rumney <jasonr@gnu.org>
27461
27462 * image.c (convert_mono_to_color_image): Swap fore and background.
27463
274642007-06-20 Jason Rumney <jasonr@gnu.org>
27465
27466 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27467 (w32_free_bdf_font): Unmap memory not handle.
27468
274692007-06-20 Sam Steingold <sds@gnu.org>
27470
27471 * gmalloc.c (__morecore): Fix the declaration to comply with the
27472 definition.
27473
274742007-06-20 Juanma Barranquero <lekktu@gmail.com>
27475
27476 * w32term.c (w32_delete_display): Remove leftover declaration.
27477 (w32_define_cursor, w32_initialize): Make static.
27478
27479 * w32.c (_wsa_errlist): Fix typo in error message.
27480 (init_environment): Ignore any environment variable from the
27481 registry having a null value.
27482
274832007-06-20 Glenn Morris <rgm@gnu.org>
27484
27485 * Makefile.in (LIBGIF): Default to -lgif.
27486
274872007-06-17 Jason Rumney <jasonr@gnu.org>
27488
27489 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27490 unicode strings.
27491
274922007-06-16 Juanma Barranquero <lekktu@gmail.com>
27493
27494 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27495 Fix typo in docstring.
27496
274972007-06-16 Eli Zaretskii <eliz@gnu.org>
27498
27499 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27500 and their keybindings.
27501
275022007-06-15 Chong Yidong <cyd@stupidchicken.com>
27503
27504 * composite.c (update_compositions): Fix last fix.
27505
275062007-06-14 Jason Rumney <jasonr@gnu.org>
27507
27508 * w32.c (get_process_times_fn): New function pointer.
27509 (globals_of_w32): Intialize it if present in kernel32.dll.
27510 (w32_get_internal_run_time): New function.
27511
27512 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27513
275142007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27515
27516 * composite.c (update_compositions): Check the validness of
27517 compositions.
27518
275192007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27520
27521 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27522 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27523
27524 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27525 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27526
27527 * macgui.h (USE_MAC_TOOLBAR): New define.
27528
27529 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27530 Return immediately unless popup is activated.
27531
27532 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27533 background to scroll bar gap.
27534 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27535 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27536 scroll bars on frame edge. Check fringe background extension.
27537 Don't clear extended fringe background area.
27538 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27539 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27540 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27541 [USE_MAC_TOOLBAR]: New macros.
27542 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27543 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27544 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27545 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27546 [USE_MAC_TOOLBAR]: New functions.
27547 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27548 manually if previous repositioning has failed.
27549 (mac_handle_keyboard_event): Use precomputed event kind.
27550 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27551 as tool bar item click. Handle mouse movement over tool bar items.
27552
27553 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27554 toolbar_win_gravity.
27555 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27556 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27557 Add externs.
27558
27559 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27560 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27561
275622007-06-14 Chong Yidong <cyd@stupidchicken.com>
27563
27564 * image.c (search_image_cache): Remove unused variable.
27565
275662007-06-13 Chong Yidong <cyd@stupidchicken.com>
27567
27568 * xfns.c, xmenu.c: Link to xaw3d if available.
27569
275702007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27571
27572 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27573 frame_foreground and frame_background.
27574
27575 * image.c (lookup_image): Save frame foreground and background colors.
27576 (search_image_cache): Check if saved and current frame colors match.
27577
275782007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27579
27580 * regex.c (regex_compile): Remove the `regnum' counter.
27581 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27582
275832007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27584
27585 * term.c: Include intervals.h to declare Fget_text_property.
27586
275872007-06-10 Jason Rumney <jasonr@gnu.org>
27588
27589 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27590
275912007-06-08 Juanma Barranquero <lekktu@gmail.com>
27592
27593 * callint.c (Fcall_interactively):
27594 * editfns.c (Fdelete_and_extract_region):
27595 * fileio.c (Fread_file_name):
27596 * fns.c (Fmapconcat):
27597 * keyboard.c (cmd_error_internal):
27598 * keymap.c (Fkey_description):
27599 * lread.c (openp):
27600 * minibuf.c (read_minibuf):
27601 * search.c (wordify):
27602 * sunfns.c (sel_read):
27603 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27604 * xfns.c (x_default_scroll_bar_color_parameter):
27605 * xmenu.c (menu_help_callback):
27606 * xselect.c (Fx_get_atom_name):
27607 * xterm.c (x_term_init): Use empty_unibyte_string.
27608
276092007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27610
27611 * alloc.c (init_strings): Initialize canonical empty strings.
27612 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27613 canonical empty string when the requested size is 0.
27614
27615 * emacs.c (empty_unibyte_string): Rename from empty_string.
27616 (empty_multibyte_string): New canonical empty string.
27617 (syms_of_emacs): Don't initialize empty_string.
27618
27619 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27620 string, if appropriate.
27621 (empty_unibyte_string, empty_multibyte_string): New externs.
27622 (empty_string): Remove extern.
27623
27624 * lread.c (syms_of_lread): Use empty_unibyte_string.
27625
276262007-06-07 Jason Rumney <jasonr@gnu.org>
27627
27628 * s/ms-w32.h: Don't define HAVE_TZNAME.
27629
27630 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27631
276322007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27633
27634 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27635
27636 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27637 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27638
27639 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27640 Don't call next handler.
27641 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27642 Remove argument. Install handler to application.
27643 (set_frame_menubar): Don't change deep_p.
27644 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27645 FRAME_OUTER_TO_INNER_DIFF_Y.
27646 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27647 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27648 [HAVE_DIALOGS]: New macros.
27649 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27650 Use them.
27651 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27652
27653 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27654 init_service_handler. All callers changed. Return OSStatus value.
27655
27656 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27657 All callers changed so as not to call SetPortWindowPort.
27658 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27659 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27660 mac_draw_string_common.
27661 (mac_draw_image_string_qd): Likewise.
27662 (mac_draw_string_common): Use them. Add INLINE.
27663 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27664 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27665 GetGlobalMouse.
27666 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27667 and FRAME_OUTER_TO_INNER_DIFF_Y.
27668 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27669 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27670 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27671 repositioning window to mac_handle_window_event.
27672 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27673 saving window location to mac_handle_window_event
27674 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27675 (install_menu_target_item_handler): Remove argument in extern.
27676 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27677 Also accept command events.
27678 (do_keystroke): New function created from XTread_socket.
27679 (init_command_handler): Remove functions.
27680 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27681 and save window location by kEventWindowShowing and kEventWindowHiding
27682 handlers here. Don't call next handler for window state change and
27683 focus events.
27684 (mac_handle_application_event, mac_handle_keyboard_event)
27685 [TARGET_API_MAC_CARBON]: New functions.
27686 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27687 kEventWindowShowing and kEventWindowHiding events. Move installation
27688 of mouse, font, text input and menu target item handlers to
27689 install_application_handler.
27690 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27691 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27692 New function.
27693 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27694 Register it.
27695 (XTread_socket) [TARGET_API_MAC_CARBON]:
27696 Consolidate SendEventToEventTarget calls.
27697 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27698 Move application activation handler to mac_handle_application_event.
27699 Move keyboard handler to mac_handle_keyboard_event.
27700 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27701 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27702 init_command_handler. Call install_application_handler.
27703
27704 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27705 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27706
277072007-06-07 Glenn Morris <rgm@gnu.org>
27708
27709 * emacs.c (main): Use `emacs-copyright' in --version output.
27710
277112007-06-06 Chong Yidong <cyd@stupidchicken.com>
27712
27713 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27714
277152007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27716
27717 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27718
27719 * macgui.h: Replace WindowPtr with WindowRef.
27720
27721 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27722 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27723 Replace ControlHandle with ControlRef.
27724 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27725
27726 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27727 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27728 Replace ControlHandle with ControlRef.
27729 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27730 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27731
27732 * macterm.h (struct scroll_bar): Rename member control_handle_low
27733 and control_handle_high to control_ref_low and control_ref_high.
27734 All uses changed.
27735 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27736 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27737 respectively. All uses changed.
27738 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27739 (install_window_handler, remove_window_handler): Replace WindowPtr
27740 with WindowRef in externs.
27741
277422007-06-05 Juanma Barranquero <lekktu@gmail.com>
27743
27744 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27745
277462007-06-03 Nick Roberts <nickrob@snap.net.nz>
27747
27748 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27749
27750 * frame.c (Fmouse_position, Fmouse_pixel_position):
27751 Condition on HAVE_GPM too.
27752
27753 * term.c (term_mouse_highlight): Remove unused variables.
27754 (Fterm_open_connection): Set gpm_zerobased to 1.
27755 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27756 Use zero based co-ordinates.
27757 (handle_one_term_event): Report a drag as mouse movement too.
27758
27759 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27760
277612007-06-03 Chong Yidong <cyd@stupidchicken.com>
27762
27763 * image.c (search_image_cache): New function. Require background
27764 color match if background color is unspecified in the image spec.
27765 (uncache_image, lookup_image): Use it.
27766
277672007-06-01 Juanma Barranquero <lekktu@gmail.com>
27768
27769 * window.c (Fshrink_window): Reflow docstring.
27770
277712007-06-02 Chong Yidong <cyd@stupidchicken.com>
27772
27773 * Version 22.1 released.
27774
277752007-06-01 Richard Stallman <rms@gnu.org>
27776
27777 * xfns.c (x_encode_text): Add GCPRO.
27778
277792007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27780
27781 * xfns.c (x_set_name_internal): Save encoded name before
27782 x_encode_text in case string data is relocated.
27783
277842007-05-31 Richard Stallman <rms@gnu.org>
27785
27786 * buffer.c (syms_of_buffer): Doc fix.
27787
277882007-05-30 Nick Roberts <nickrob@snap.net.nz>
27789
27790 * sysdep.c (init_sys_modes): Add rather than replace with
27791 O_NONBLOCK.
27792
27793 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27794 term_mouse_moveto.
27795
27796 * termhooks.h (term_mouse_moveto): New extern.
27797
27798 * term.c (mouse_face_window): Rename...
27799 (Qmouse_face_window): ...to this.
27800 (term_show_mouse_face, term_clear_mouse_face)
27801 (term_mouse_highlight): Use Qmouse_face_window.
27802 (term_mouse_moveto): New function.
27803 (term_mouse_position): Make it work.
27804 (syms_of_term): Uncomment assignment to mouse_position_hook.
27805 Staticpro Qmouse_face_window.
27806
278072007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27808
27809 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27810 around current_column call.
27811
278122007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27813
27814 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27815 * xdisp.c (next_element_from_buffer):
27816 * window.c (delete_window):
27817 * term.c (term_mouse_highlight):
27818 * msdos.c (getdefdir):
27819 * macterm.c (mac_create_bitmap_from_bitmap_data)
27820 (init_font_name_table):
27821 * fns.c (Fsxhash):
27822 * data.c (Fmake_local_variable):
27823 * ccl.c (ccl_driver): Likewise.
27824
278252007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27826
27827 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27828 Call mac_wakeup_from_rne on window size change.
27829
278302007-05-25 Chong Yidong <cyd@stupidchicken.com>
27831
27832 * image.c (uncache_image): Fix typo.
27833
278342007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27835
27836 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27837
278382007-05-22 Richard Stallman <rms@gnu.org>
27839
27840 * xterm.c (x_connection_closed): Remove NO_RETURN.
27841
278422007-05-22 Martin Rudalics <rudalics@gmx.at>
27843
27844 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27845
278462007-05-21 Chong Yidong <cyd@stupidchicken.com>
27847
27848 * image.c (uncache_image): New function.
27849 (Fimage_refresh): New function.
27850
278512007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27852
27853 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27854
278552007-05-20 Nick Roberts <nickrob@snap.net.nz>
27856
27857 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27858 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27859
278602007-05-20 Nick Roberts <nickrob@snap.net.nz>
27861
27862 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27863 conditional on [HAVE_GPM_H].
27864
278652007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27866
27867 * syntax.c (skip_chars): Update syntax-table only after we checked that
27868 the new location is valid.
27869
278702007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27871
27872 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27873 mac_get_window_bounds.
27874
278752007-05-20 Nick Roberts <nickrob@snap.net.nz>
27876
27877 * Makefile.in (LIBGPM): Allow it to be set from configure.
27878 If set then link Emacs with it.
27879
27880 * config.in: Regenerate.
27881
27882 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27883 New externs.
27884
27885 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27886 Include gpm.h.
27887 (handle_one_term_event, term_gpm): New externs.
27888
27889 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27890 and allow it to be interrupted by SIGIO.
27891
27892 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27893 (wait_reading_process_output): Wait on gpm_fd too.
27894 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27895 (add_gpm_wait_descriptor_called_flag): New variable.
27896 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27897
27898 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27899 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27900 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27901 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27902 (make_lispy_event): Add case GPM_CLICK_EVENT.
27903 (read_avail_input): Handle mouse input.
27904
27905 * term.c (write_glyphs_with_face): New function.
27906 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27907 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27908 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27909 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27910 (last_mouse_x, last_mouse_y): New variables.
27911 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27912 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27913 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27914 (Fterm_close_connection): New functions.
27915 (term_init): Initialise mouse_face_window.
27916
279172007-05-19 Chong Yidong <cyd@stupidchicken.com>
27918
27919 * xdisp.c (redisplay_window): If first window line is a
27920 continuation line, recompute the new window start instead of
27921 recentering.
27922
279232007-05-18 Glenn Morris <rgm@gnu.org>
27924
27925 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27926 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27927
279282007-05-17 Glenn Morris <rgm@gnu.org>
27929
27930 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27931
279322007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27933
27934 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27935 dead key repeat and up events.
27936
279372007-05-14 Chong Yidong <cyd@stupidchicken.com>
27938
27939 * image.c (pbm_load): Check image size for monochrome pbm.
27940
279412007-05-13 Chong Yidong <cyd@stupidchicken.com>
27942
27943 * xterm.c (XTread_socket): Revert last change.
27944
279452007-05-12 Chong Yidong <cyd@stupidchicken.com>
27946
27947 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27948
27949 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27950
279512007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27952
27953 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27954 mixup (YAILOM).
27955
279562007-05-07 Andreas Schwab <schwab@suse.de>
27957
27958 * keymap.c (Flookup_key): Fix typo in last change.
27959
279602007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27961
27962 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27963 mapping for unibyte strings.
27964
279652007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27966
27967 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27968 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27969
279702007-04-29 Richard Stallman <rms@gnu.org>
27971
27972 * insdel.c (replace_range): For undo, record insertion first.
27973
279742007-04-29 Andreas Schwab <schwab@suse.de>
27975
27976 * lisp.h (VECSIZE): Use OFFSETOF.
27977
279782007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27979
27980 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27981 disabled lines.
27982
279832007-04-28 Richard Stallman <rms@gnu.org>
27984
27985 * lread.c (read_escape): In a string, \s is always space.
27986
279872007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27988
27989 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27990
27991 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27992 submenu for menu bar items.
27993
27994See ChangeLog.10 for earlier changes.
27995
27996;; Local Variables:
27997;; coding: utf-8
27998;; add-log-time-zone-rule: t
aac0c6e3
MR
27999;; End:
28000
e3eb1dae 28001 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
28002
28003 This file is part of GNU Emacs.
28004
28005 GNU Emacs is free software: you can redistribute it and/or modify
28006 it under the terms of the GNU General Public License as published by
28007 the Free Software Foundation, either version 3 of the License, or
28008 (at your option) any later version.
28009
28010 GNU Emacs is distributed in the hope that it will be useful,
28011 but WITHOUT ANY WARRANTY; without even the implied warranty of
28012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28013 GNU General Public License for more details.
28014
28015 You should have received a copy of the GNU General Public License
28016 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28017
28018;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40