* files.texi (Magic File Names): New defopt remote-file-name-inhibit-cache.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dd5ecd6b
DN
12010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2
4777478a
DN
3 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4
a3d5088d
DN
5 Include <fcntl.h> unconditionally.
6 * termcap.c:
7 * sysdep.c:
8 * lread.c:
9 * keyboard.c:
10 * filelock.c:
11 * fileio.c:
12 * doc.c:
13 * callproc.c:
14 * alloc.c: Remove include guards for <fcntl.h>, process.c already
15 does it.
16
82719735
DN
17 * process.c: Do not include <sys/wait.h>, syswait.h does it.
18
9de940b5
DN
19 * sysdep.c (flush_pending_output): Remove code, does not do
20 anything on any platform.
21
57507bf8
DN
22 Remove unused code.
23 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
24 select emulation, all systems support select.
25 (set_exclusive_use): Remove, the only user is in an #if 0 block.
26 * process.c (create_process): Remove #if 0 code.
27
dd5ecd6b
DN
28 Remove unused arguments for unexec.
29 The third one is never used, and the last two are always passed as zero.
30 * emacs.c (unexec): Add declaration.
31 (Fdump_emacs): Only pass the first two arguments to unexec.
32 Simplify #ifdef.
33 * unexw32.c (unexec):
34 * unexsol.c (unexec):
35 * unexhp9k800.c (unexec):
36 * unexcw.c (unexec): Remove the last 3 arguments, unused.
37 * unexelf.c (unexec): Remove the last 3 arguments, unused.
38 (find_section): Use const.
39 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
40 (unexec_error): Declare it NO_RETURN.
41 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
42 it as an argument, remove data_start and entry_address arguments, unused.
43 (unexec): Remove bss_start, data_start and
44 entry_address arguments.
45 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
46 it as an argument, remove data_start and entry_address arguments, unused.
47 (unexec): Remove bss_start, data_start and
48 entry_address arguments.
49
74f1829d
JB
502010-10-03 Juanma Barranquero <lekktu@gmail.com>
51
7f467e14
JB
52 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
53
74f1829d
JB
54 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
55 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
56 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
57 Fix typos in docstrings.
58 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
59 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
60
6926550f
CY
612010-10-03 Chong Yidong <cyd@stupidchicken.com>
62
63 * keyboard.c (command_loop_1): Make sure the mark is really alive
64 before using it (Bug#7044).
65
54b65f7b
JB
662010-10-02 Juanma Barranquero <lekktu@gmail.com>
67
68 * makefile.w32-in (tags): Rename target to full-tags.
69
383ebd15
EZ
702010-10-02 Eli Zaretskii <eliz@gnu.org>
71
72 * emacs.c (main): Remove !WINDOWSNT conditional.
73 (Fkill_emacs): Don't mention exemption on MS-Windows.
74
9c524fcb
GM
752010-10-02 Glenn Morris <rgm@gnu.org>
76
3226d6ca
GM
77 * character.c (Fchar_bytes): Remove obsolete function.
78 (syms_of_character): Remove Schar_bytes.
79
9c524fcb
GM
80 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
81 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
82 in batch-mode.
83 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
84 (kill-emacs-hook): Doc fix.
85
1b217849
LMI
862010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
87
88 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
89 (parse_region): Reworked to take regions instead of strings, and
90 renamed to reflect that these are the libxml functions.
91
54cc6a83
EZ
922010-10-01 Eli Zaretskii <eliz@gnu.org>
93
0ebf79de
EZ
94 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
95 screen dimensions in tty->Wcm.
96
54cc6a83
EZ
97 * xdisp.c (set_cursor_from_row): When the row is truncated and
98 point is outside the range of displayed characters, position the
99 cursor inside the scroll margin. (Bug#6349)
100
321401d1
DN
1012010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
102
4cacd822
DN
103 Do not include stdlib.h and string.h, config.h does it.
104 * xfont.c:
105 * w32term.c:
106 * w32reg.c:
107 * w32inevt.c:
108 * w32heap.c:
109 * w32console.c:
110 * w16select.c:
111 * unexsol.c:
112 * term.c:
113 * sound.c:
114 * scroll.c (m):
115 * gtkutil.c:
116 * font.c:
117 * filelock.c:
118 * fileio.c:
119 * dosfns.c:
120 * dbusbind.c:
121 * bidi.c:
122 * callproc.c:
123 * process.c:
124 * msdos.c:
125 * charset.c: Do not include stdlib.h and string.h, config.h does it.
126
0781e7ab
DN
127 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
128
9bf58201
DN
129 * process.c: Move #include <pty.h> earlier.
130 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
131 (pty_name): Move definition later.
132
088dcc3e
DN
133 * nsselect.m (syms_of_nsselect):
134 * nsmenu.m (syms_of_nsmenu):
135 * nsfns.m (syms_of_nsfns):
136 * msdos.c (syms_of_msdos):
4cacd822 137
088dcc3e
DN
138 * image.c (syms_of_image):
139 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
140
321401d1
DN
141 * point.h: Remove, unused.
142
73077a9a
EZ
1432010-10-01 Eli Zaretskii <eliz@gnu.org>
144
145 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
146 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
147 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
148
55e572ef
DN
1492010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
150
151 * xml.c (parse_string): Use const.
152
d4b6d95d
LMI
1532010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
154
155 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
156 only override Vprint_level if it isn't already bound, and increase
157 the level to 8 to produce more useful backtraces for bug reports.
158
e4b6db12
DN
1592010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
160
161 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
162
1becef93
JB
1632010-09-30 Juanma Barranquero <lekktu@gmail.com>
164
165 * w32console.c (vga_stdcolor_name): Remove unused function;
166 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
167
df7fcaff
LMI
1682010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
169
bac5cef8
LMI
170 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
171 (Fgnutls_boot): Start the handshake.
172 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
173 (Fgnutls_boot): Remove some debugging messages.
174 Change indentation throughout to use the Emacs style.
175 (emacs_gnutls_handshake): Cast the fds to something that's
176 possibly the expected length.
177 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 178
df7fcaff
LMI
179 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
180
181 * process.c (make_process): Set the gnutls_p field to zero by
182 default.
183 (read_process_output): Always call the gnutls_read function if the
184 stream is a gnutls stream.
185 (send_process): Ditto for writes.
186
187 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
188 or write anything until the state is GNUTLS_STAGE_READY.
189 (Fgnutls_boot): Mark the stream as being a gnutls stream.
190
d585695f
EZ
1912010-09-29 Eli Zaretskii <eliz@gnu.org>
192
af7ef32d
EZ
193 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
194 NEUTRAL_DIR.
195 (handle_invisible_prop, iterate_out_of_display_property)
196 (next_element_from_buffer): If bidi_it.first_elt is set, call
197 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
198 (Bug#7128)
199
d585695f
EZ
200 * print.c (print_object): Fix format string and argument types for
201 printing a Lisp_Misc_Marker.
202
203 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
204 (load_overlay_strings, get_overlay_strings_1)
205 (get_overlay_strings, forward_to_next_line_start)
206 (back_to_previous_visible_line_start, reseat, reseat_to_string)
207 (get_next_display_element, next_element_from_string)
208 (next_element_from_c_string, next_element_from_buffer)
209 (move_it_vertically_backward, move_it_by_lines, add_to_log)
210 (message_dolog, message_log_check_duplicate, message2_nolog)
211 (message3, message3_nolog, vmessage, set_message, set_message_1)
212 (hscroll_window_tree, text_outside_line_unchanged_p)
213 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
214 (find_last_unchanged_at_beg_row)
215 (find_first_unchanged_at_end_row, row_containing_pos)
216 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
217 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
218 EMACS_INT for buffer and string positions.
219
220 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
221 (row_containing_pos): Adjust prototype.
222
223 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
224 (message2_nolog, set_message): Adjust prototypes.
225
a6f3211f
SM
2262010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
227
228 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
229 (Fgnutls_boot): Use SDATA.
230 (Fgnutls_handshake): Remove unused var `max_log_level'.
231
e0720500
MA
2322010-09-27 Michael Albinus <michael.albinus@gmx.de>
233
11a5af7c 234 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
235 (Bug#7113)
236
d8a4b27a
J
2372010-09-27 Jan Djärv <jan.h.d@swipnet.se>
238
42d3022b
J
239 * xgselect.c (xg_select): Clear file descriptors not set from
240 rfds and wfds.
241
d8a4b27a
J
242 * process.c (wait_reading_process_output): Add missing FD_CLR
243 for write_mask (must mirror connect_wait_mask).
244
8ed70bf3
LMI
2452010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
246
247 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
248 prefix.
249 (Fgnutls_boot): Use changed process members. Use log level with a
250 function parameter to set it. Bring back Emacs-level debugging
251 messages at log level 1 and 2.
252
253 * process.c (make_process): Initialize gnutls_log_level.
254
255 * process.h: Add gnutls_log_level and rename x509_cred and
256 anon_cred to have the gnutls_ prefix for consistency.
257
258 * gnutls.h (GNUTLS_LOG): Add convenience macro.
259
bedf4aab
JB
2602010-09-27 Juanma Barranquero <lekktu@gmail.com>
261
262 * w32.c (g_b_init_get_sid_identifier_authority)
263 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
264 Remove, not used.
265 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
266 (init_winsock): Remove useless assignment.
267 (open_process_token, get_token_information, lookup_account_sid)
268 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
269 (get_security_descriptor_owner, get_security_descriptor_group)
270 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
271 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
272 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
273 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
274 (unc_volume_file_attributes, convert_from_time_t)
275 (create_toolhelp32_snapshot, process32_first, process32_next)
276 (open_thread_token, impersonate_self, revert_to_self)
277 (get_process_memory_info, get_process_working_set_size)
278 (global_memory_status, global_memory_status_ex, socket_to_fd)
279 (shutdown_handler): Make static.
280
08609ffd
MA
2812010-09-27 Michael Albinus <michael.albinus@gmx.de>
282
283 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
284 (xd_pending_messages): Functions removed.
285 (xd_read_queued_messages): Add parameters fd, *data, for_read in
286 order to be compatible with add_read_fd. Determine bus from data,
287 and call xd_read_message just for this bus.
288 (xd_add_watch): Use xd_read_queued_messages as callback function.
289 Add data.
290
291 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
292
d2e9d0bb
LMI
2932010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
294
295 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 296 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 297
4be9765d
KH
2982010-09-27 Kenichi Handa <handa@m17n.org>
299
300 These changes are to remove restriction on the number of glyphs in
301 one composition.
302
303 * dispextern.h (struct glyph): Change the member "slice" to union.
304 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
305 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
306
307 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
308 instead of glyph->slice.
309 (marginal_area_string): Likewise.
310
311 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
312 glyph->u.cmp.
313 (append_composite_glyph): Likewise.
314
315 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
316 glyph->u.cmp.
317 (fill_gstring_glyph_string, x_get_glyph_overhangs)
318 (append_composite_glyph): Likewise.
319 (fill_image_glyph_string): Use glyph->slice.img instead of
320 glyph->slice.
321 (append_glyph, produce_image_glyph, append_stretch_glyph)
322 (note_mouse_highlight): Likewise.
323
3fad2ad2
J
3242010-09-26 Jan Djärv <jan.h.d@swipnet.se>
325
bf05eed6
J
326 * process.c (add_keyboard_wait_descriptor)
327 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
328 (wait_reading_process_output): Don't pass write_mask to select
329 if SELECT_CANT_DO_WRITE_MASK is defined.
330 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 331
3fad2ad2
J
332 * process.h (add_read_fd, delete_read_fd, add_write_fd)
333 (delete_write_fd): Declare.
334
335 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
336 (write_mask): New variable.
337 (max_input_desc): Renamed from max_keyboard_desc.
338 (fd_callback_info): New variable.
70e31436
JB
339 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
340 New functions.
3fad2ad2
J
341 (Fmake_network_process): FD_SET write_mask.
342 (deactivate_process): FD_CLR write_mask.
343 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
344 check_connect removed. check_write is new. Remove references to gpm.
345 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
346 NON_BLOCKING_CONNECT) instead of Connecting.
347 Loop over file descriptors and call callbacks in fd_callback_info
348 if file descriptor is ready for I/O.
349 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
350 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
351 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
352 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
353 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
354 (init_process): Initialize write_mask and fd_callback_info.
355
356 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
357
358 * dbusbind.c: Include process.h.
359 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
360 (xd_read_message_1): New functions.
70e31436
JB
361 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
362 Handle watch for both read and write.
3fad2ad2
J
363 (Fdbus_init_bus): Also register xd_toggle_watch.
364 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
365 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
366 to dbus_connection_flush.
70e31436 367 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
368 Call xd_read_message_1 until status is COMPLETE.
369
dce4c2ac
DN
3702010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
371
372 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
373 (init_tty): Reorder code to reduce the number of #ifdefs.
374 No code changes.
dce4c2ac 375
8af55556
TZ
3762010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
377
378 * process.h: Set up GnuTLS support.
379
380 * process.c (make_process, Fstart_process)
381 (read_process_output, send_process): Set up GnuTLS support for
382 process input/output file descriptors.
383
384 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
385
386 * gnutls.c: The source code for GnuTLS support in Emacs.
387
388 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
389
390 * config.in: Set up GnuTLS support.
391
392 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
393 (obj, LIBES): Set up GnuTLS support.
394
83e245c4
JB
3952010-09-26 Juanma Barranquero <lekktu@gmail.com>
396
397 * w32.c (get_emacs_configuration_options): Fix previous change.
398
d24ec09a
CY
3992010-09-25 Chong Yidong <cyd@stupidchicken.com>
400
401 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
402 alive before using it (Bug#6977).
403
b7bdc47c
LMI
4042010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
405
a952d5f3
LMI
406 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
407
408 * dispextern.h: EMACS_INT/int fixup.
409
410 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
411 fixup.
412
b7bdc47c
LMI
413 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
414
41118bd3
EZ
4152010-09-25 Eli Zaretskii <eliz@gnu.org>
416
2452438f
EZ
417 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
418 (Fselect_window, window_scroll_pixel_based)
419 (window_scroll_line_based, Frecenter, Fset_window_configuration):
420 Use EMACS_INT for buffer positions.
421
422 * textprop.c (validate_interval_range, interval_of)
423 (property_change_between_p, Fadd_text_properties)
424 (set_text_properties_1, Fremove_text_properties)
425 (Fremove_list_of_text_properties, Ftext_property_any)
426 (Ftext_property_not_all, copy_text_properties)
427 (text_property_list, extend_property_ranges)
428 (verify_interval_modification): Use EMACS_INT for buffer
429 positions.
430
f877c546
EZ
431 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
432 for buffer positions.
433
434 * process.c (read_process_output, send_process)
435 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
436 and string positions and size.
437
da43f021
EZ
438 * print.c (print_object, print_string, strout): Use EMACS_INT for
439 string indices.
440
441 * minibuf.c (string_to_object): Use EMACS_INT for string position
442 and size.
443
444 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
445
446 * lread.c <read_from_string_index, read_from_string_index_byte>
447 <read_from_string_limit, readchar_count>: Define EMACS_INT.
448 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
449 buffer positions and string length.
450
41118bd3
EZ
451 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
452 EMACS_INT.
453 (echo_truncate, adjust_point_for_property, read_char)
454 (gen_help_event, make_lispy_event, modify_event_symbol)
455 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
456 for buffer positions and string length.
457
458 * keyboard.h (gen_help_event): Adjust prototype.
459
460 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
461
462 * commands.h <last_point_position>: Declare EMACS_INT.
463
464 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
465 (truncate_echo_area): Accept EMACS_INT argument.
466
467 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
468
469 * lisp.h (truncate_echo_area): Adjust prototype.
470
471 * composite.c (composition_adjust_point): Return EMACS_INT.
472
473 * composite.h (composition_adjust_point): Adjust prototype.
474
ba3033ee
JB
4752010-09-25 Juanma Barranquero <lekktu@gmail.com>
476
477 * process.c (Fmake_network_process): When arg :host is 'local,
478 use address 127.0.0.1, not name "localhost". (Bug#6781)
479
4f3a2f8d
EZ
4802010-09-24 Eli Zaretskii <eliz@gnu.org>
481
5816888b
EZ
482 * indent.c (Fcurrent_indentation, indented_beyond_p)
483 (compute_motion): Use EMACS_INT for buffer position variables.
484
485 * lisp.h (indented_beyond_p): Adjust prototype.
486
487 * buffer.c (overlay_strings): Return EMACS_INT.
488
489 * buffer.h (overlay_strings): Adjust prototype.
490
491 * region-cache.c (pp_cache): Adjust format to arguments.
492
493 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
494 (call_debugger): Use EMACS_INT for specpdl_size related variables.
495 (verror): Use EMACS_INT for size of allocated buffer.
496
ace1712c
EZ
497 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
498 positions.
499
500 * xdisp.c (redisplay_internal, try_window_id)
501 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
502 EMACS_INT for buffer positions.
503
f5276b75 504 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
505
506 * dispnew.c (increment_matrix_positions)
507 (increment_row_positions, copy_glyph_row_contents)
508 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
509 positions.
510
511 * dispextern.h (mode_line_string, marginal_area_string)
512 (increment_matrix_positions, increment_row_positions): Adjust
513 prototypes.
514
515 * data.c (Faref, Faset): Use EMACS_INT for string length and
516 positions.
517
518 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
519 characters to insert.
520
521 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
522 position and size.
523
4f3a2f8d
EZ
524 * syntax.c (scan_words, update_syntax_table)
525 (prev_char_comend_first, back_comment, skip_chars)
526 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
527 EMACS_INT for buffer and string positions.
528
529 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
530
531 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
532 positions.
533
db063399
LMI
5342010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
535
f0812d35
LMI
536 * scroll.c (calculate_scrolling, line_ins_del)
537 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
538 conversion.
539
f5c7fc27
LMI
540 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
541 (region_cache_backward, region_cache_forward)
542 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
543 conversion.
544
db063399
LMI
545 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
546
547 * eval.c (verror): Fix EMACS_INT/int conversion.
548
07914cd0 549 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
550 (print_preprocess, print_check_string_charset_prop)
551 (print_object): Fix EMACS_INT/int conversion.
552
553 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
554
e6d4aefa
EZ
5552010-09-24 Eli Zaretskii <eliz@gnu.org>
556
69481da7
EZ
557 * callproc.c (Fcall_process): Use EMACS_INT for count of
558 characters read from the subprocess.
559
61bfec98
EZ
560 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
561 positions.
562 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
563 positions.
564
145582a0
EZ
565 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
566 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
567 length.
568 (advance_to_char_boundary, Fset_buffer_multibyte)
569 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
570 (overlay_touches_p, record_overlay_string, overlay_strings)
571 (recenter_overlay_lists, fix_start_end_in_overlays)
572 (modify_overlay, Fmove_overlay, report_overlay_modification)
573 (evaporate_overlays): Use EMACS_INT for buffer positions.
574
575 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
576 prototypes.
577
446470a9
EZ
578 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
579 positions.
580
e6d4aefa
EZ
581 * fns.c (Fcompare_strings, Fstring_lessp, concat)
582 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
583 (Fsubstring_no_properties, substring_both, Ffillarray)
584 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
585 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
586 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
587 (Fmd5): Use EMACS_INT for buffer and string positions and length
588 variables and arguments.
589
590 * lisp.h (substring_both): Adjust prototype.
591
eb652396
JB
5922010-09-24 Juanma Barranquero <lekktu@gmail.com>
593
594 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
595 * w32fns.c (clipboard_sequence_fn): Don't declare.
596 (globals_of_w32fns): Don't initialize it.
597
266a86bd 5982010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
599
600 * syntax.c (back_comment): Detect the case where a 1-char comment
601 starter is also the 2nd char of a 2-char comment ender.
602
266a86bd 6032010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
604
605 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
606
40283062
LMI
6072010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
608
db063399
LMI
609 * eval.c (verror): EMACS_INT/int cleanup.
610
faf8b5bc
LMI
611 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
612 unwind_protect more than 2GB worth of functions.
613
614 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
615
40283062
LMI
616 * lisp.h: Have oblookup take EMACS_INT to allow interning big
617 string and avoid compiler warnings.
618 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
619 all users.
620
621 * lread.c (oblookup): EMACS_INT/int cleanup.
622
623 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
624
fe3537c3
EZ
6252010-09-23 Eli Zaretskii <eliz@gnu.org>
626
627 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
628
629 * lisp.h (clip_to_bounds): Adjust prototype.
630
631 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
632
0350982f
LMI
6332010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
634
84c9ce05
LMI
635 * lisp.h: doprnt.c EMACS_INT/int cleanup.
636
637 * doprnt.c (doprnt): EMACS_INT/int cleanup.
638
639 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
640 cleanup.
641
0350982f
LMI
642 * lisp.h: Change the definition of all marker.c functions that
643 take and return buffer stuff to be EMACS_INT instead of int.
644
645 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
646 (buf_charpos_to_bytepos, bytepos_to_charpos)
647 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
648 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
649 for all buffer positions.
650
c50bd0d2
CY
6512010-09-23 Chong Yidong <cyd@stupidchicken.com>
652
653 * intervals.c (traverse_intervals, rotate_right, rotate_left)
654 (split_interval_right, find_interval, next_interval)
655 (delete_node, delete_interval, interval_deletion_adjustment)
656 (adjust_intervals_for_deletion, merge_interval_right)
657 (merge_interval_left, graft_intervals_into_buffer)
658 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
659
660 * intervals.h (traverse_intervals): Update prototype.
661
14162469
EZ
6622010-09-23 Eli Zaretskii <eliz@gnu.org>
663
c098fdb8
EZ
664 * indent.c (compute_motion): Use EMACS_INT for arguments to
665 region_cache_forward.
666
667 * region-cache.c (struct boundary, struct region_cache): Use
668 EMACS_INT for positions.
669 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
670 (delete_cache_boundaries, set_cache_region)
671 (invalidate_region_cache, know_region_cache)
672 (region_cache_forward, region_cache_backward, pp_cache): Use
673 EMACS_INT for buffer positions.
674
675 * region-cache.h (know_region_cache, invalidate_region_cache)
676 (region_cache_forward, region_cache_backward): Adjust prototypes.
677
678 * search.c (string_match_1, fast_c_string_match_ignore_case)
679 (looking_at_1, scan_buffer, scan_newline)
680 (find_next_newline_no_quit, find_before_next_newline)
681 (search_command, trivial_regexp_p, search_buffer, simple_search)
682 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
683 and string positions and length.
684
caefdbe7
EZ
685 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
686 (find_before_next_newline): Adjust prototypes.
c098fdb8 687
29cdc13e
EZ
688 * editfns.c (transpose_markers, update_buffer_properties)
689 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
690 (get_pos_property, Fconstrain_to_field)
691 (Fline_beginning_position, Fline_end_position, Fprevious_char)
692 (Fchar_after, Fchar_before, Finsert_char)
693 (Finsert_buffer_substring, Fcompare_buffer_substrings)
694 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
695 EMACS_INT for buffer and string position variables.
c098fdb8 696 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
697
698 * lisp.h (clip_to_bounds): Adjust prototype.
699
e79123aa
EZ
700 * intervals.c (traverse_intervals, rotate_right, rotate_left)
701 (balance_an_interval, split_interval_right, split_interval_left)
702 (find_interval, next_interval, update_interval)
703 (adjust_intervals_for_insertion, delete_node, delete_interval)
704 (interval_deletion_adjustment, adjust_intervals_for_deletion)
705 (offset_intervals, merge_interval_right, merge_interval_left)
706 (graft_intervals_into_buffer, adjust_for_invis_intang)
707 (move_if_not_intangible, get_local_map, copy_intervals)
708 (copy_intervals_to_string, compare_string_intervals)
709 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 710 and for interval tree size.
e79123aa
EZ
711
712 * intervals.h (traverse_intervals, split_interval_right)
713 (split_interval_left, find_interval, offset_intervals)
714 (graft_intervals_into_buffer, copy_intervals)
715 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
716 (update_interval): Adjust prototypes.
717
579c18d0
EZ
718 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
719 Use EMACS_INT for buffer position variables and arguments.
720
721 * composite.c (get_composition_id, find_composition)
722 (run_composition_function, compose_text)
723 (composition_gstring_width, autocmp_chars)
724 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
725 for buffer positions and string length variables and arguments.
726
727 * composite.h (get_composition_id, find_composition, compose_text)
728 (composition_gstring_width): Adjust prototypes.
729
730 * editfns.c (Fformat): Use EMACS_INT for string size variables.
731
732 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
733 EMACS_INT for string positions.
734
735 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
736 position arguments.
737
738 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
739
740 * character.c (parse_str_as_multibyte, str_as_multibyte)
741 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
742 (string_count_byte8, string_escape_byte8, c_string_width)
743 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
744 EMACS_INT for string length variables and arguments.
14162469
EZ
745
746 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
747 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
748 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
749 prototypes.
750
579c18d0
EZ
751 * font.c (font_intern_prop): Use EMACS_INT for string length
752 variables.
753
754 * font.c (font_intern_prop): Use EMACS_INT for string length
755 variables.
756
14162469
EZ
757 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
758 variables.
759
760 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
761 (Fmake_string): Protect against too large strings.
762 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
763 (live_misc_p): Use ptrdiff_t instead of int for pointer
764 differences.
765 (string_bytes, check_sblock, check_string_free_list)
766 (allocate_string_data, compact_small_strings, Fmake_string)
767 (Fmake_bool_vector, make_string, make_unibyte_string)
768 (make_multibyte_string, make_string_from_bytes)
769 (make_specified_string_string, Fmake_list, Fmake_vector): Use
770 EMACS_INT for string length variables and arguments.
771 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
772 (Fpurecopy): Use EMACS_INT for string size.
773 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
774 for vector size.
775
776 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
777 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
778 (make_pure_string, string_bytes, check_point_in_composition):
779 Adjust prototypes.
14162469 780
c8a66ab8
EZ
7812010-09-22 Eli Zaretskii <eliz@gnu.org>
782
783 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
784 (check_translation): Use EMACS_INT for buffer positions and
785 length.
786
787 * undo.c (record_marker_adjustment, record_delete)
788 (record_change, record_point, record_insert)
789 (record_property_change, Fprimitive_undo): Use EMACS_INT for
790 buffer positions.
791
792 * lisp.h (record_marker_adjustment, record_delete)
793 (record_change, record_point, record_insert)
794 (record_property_change, Fprimitive_undo): Adjust prototypes.
795
38c54d9d
JB
7962010-09-22 Juanma Barranquero <lekktu@gmail.com>
797 Eli Zaretskii <eliz@gnu.org>
798
799 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
800
413d18e7
EZ
8012010-09-22 Eli Zaretskii <eliz@gnu.org>
802
803 * minibuf.c (Fminibuffer_contents)
804 (Fminibuffer_contents_no_properties)
805 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
806 positions.
807
808 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
809 mark.
810
811 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
812 (allocate_string_data): Accept EMACS_INT for string length.
813
814 * editfns.c (Ffield_string, Ffield_string_no_properties)
815 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
816 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
817 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
818 (Ffield_end): Use EMACS_INT for buffer positions.
819
820 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
821 point with mark.
822
823 * lisp.h (allocate_string_data, make_uninit_string)
824 (make_uninit_multibyte_string, make_buffer_string)
825 (make_buffer_string_both): Adjust prototypes.
826
4b9832a6
CY
8272010-09-22 Chong Yidong <cyd@stupidchicken.com>
828
829 * xml.c: Switch to GNU indentation.
830 (make_dom): Change parse tree format to match xml.el.
831 (Fxml_parse_html_string_internal): Rename from html-parse-string.
832 (Fxml_parse_string_internal): Rename from xml-parse-string.
833
86282aab
KH
8342010-09-22 Kenichi Handa <handa@m17n.org>
835
836 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
837 only if we are not at a composition.
838 (set_iterator_to_next): Give it->end_charpos to
839 composition_compute_stop_pos.
840 (set_iterator_to_next, next_element_from_buffer): Likewise.
841
842 * dispnew.c (buffer_posn_from_coords): Fix position when the
843 current display element is a grapheme cluster in bidi-reordered
844 region.
845
840b985a
AR
8462010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
847
848 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
849 the regions may overlap.
850
5bc88f4b
JB
8512010-09-21 Juanma Barranquero <lekktu@gmail.com>
852
853 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
854
92bc9a36
DN
8552010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
856
d19e096e
DN
857 * emacs.c: Do not include sys/ioctl.h, not needed.
858
92bc9a36
DN
859 * doprnt.c: Do not include stdlib.h, config.h does it.
860 Move #include before macro definition.
861
15f844ac
DN
8622010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
863
48e24408
DN
864 * Makefile.in (temacs): Link using $(CC) not $(LD).
865 (LD_FIRSTFLAG): Define using autoconf.
866 (LD): Remove.
867
65539506
DN
868 Remove HAVE_TERMIOS definitions.
869 * s/usg5-4-common.h (HAVE_TERMIOS):
870 * s/template.h (HAVE_TERMIOS):
871 * s/gnu-linux.h (HAVE_TERMIOS):
872 * s/darwin.h (HAVE_TERMIOS):
873 * s/cygwin.h (HAVE_TERMIOS):
874 * s/bsd-common.h (HAVE_TERMIOS):
875 * s/aix4-2.h (HAVE_TERMIOS):
876 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
877 defined on all non-MS platforms.
878 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
879
15f844ac
DN
880 * xterm.c (xt_action_hook): Use const.
881
7d701334
JB
8822010-09-20 Juanma Barranquero <lekktu@gmail.com>
883
884 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
885 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
886 (gethostname) [!HAVE_SOCKETS]: Remove.
887 (SOCK_REPLACE_HANDLE): Remove macro.
888 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
889 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
890 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
891 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
892
f3ec267a
EZ
8932010-09-18 Eli Zaretskii <eliz@gnu.org>
894
895 * deps.mk (xml.o): Add dependencies.
896
93acd23d
JB
897 * xdisp.c (Fcurrent_bidi_paragraph_direction):
898 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
899
900 * bidi.c (bidi_paragraph_init): Accept an additional argument
901 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
902 search back until a paragraph with a strong directional character
903 is found, and use that to determine paragraph's base direction.
904
905 * dispextern.h (bidi_paragraph_init): Update prototype.
906
69e847be
EZ
9072010-09-17 Eli Zaretskii <eliz@gnu.org>
908
909 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
910 of w32api >= 3.15. (Bug#6989)
911
283357a7
LMI
9122010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
913
914 * process.c (wait_reading_process_output): Don't message about
915 accept-process-output unless the time limit really is zero.
916
4ddb20d6
SM
9172010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
918
919 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
920 int/Lisp_Object mixup).
921
e24ad6dd
J
9222010-09-17 Jan Djärv <jan.h.d@swipnet.se>
923
924 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
925 not HELP.
926
fb0cf781
J
9272010-09-17 Stephen Berman <stephen.berman@gmx.net>
928
929 * frame.c (Ftool_bar_pixel_width): New function to expose tool
930 bar's pixel width to Lisp (Bug#7048).
931
4ddb20d6
SM
9322010-09-14 Juanma Barranquero <lekktu@gmail.com>
933
934 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 935
318a04c6
J
9362010-09-17 Jan Djärv <jan.h.d@swipnet.se>
937
938 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
939 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
940
78a21772
KH
9412010-09-17 Kenichi Handa <handa@m17n.org>
942
943 * ftfont.c (ftfont_check_otf): Fix previous change.
944
fa3f6039
KH
9452010-09-14 Kenichi Handa <handa@m17n.org>
946
947 * ftfont.c (ftfont_check_otf): Fix the case of checking just
948 existence of GSUB or GPOS.
949
2b5491fa
JB
9502010-09-14 Juanma Barranquero <lekktu@gmail.com>
951
952 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
953
c97c655f
LMI
9542010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
955
2b5491fa 956 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
957 what it does.
958 (parse_string): Return nil when the document can't be parsed.
959
6664fc59 9602010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
961
962 * xterm.c (get_current_vm_state): New function.
963 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
964 want_fullscreen so set_wm_state calls are few (Bug#7013).
965 (x_handle_net_wm_state): Move code to get_current_vm_state and
966 call that function.
967
6664fc59 9682010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
969
970 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
971
6664fc59 9722010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
973
974 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
975 we may use designation or locking-shift.
976
6664fc59 9772010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
978
979 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
980 sequence when the source is multibyte.
981
1da70e99
AS
9822010-09-14 Andreas Schwab <schwab@linux-m68k.org>
983
6664fc59
JB
984 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
985 Don't make first argument optional. Doc fix.
1da70e99 986
26632d8d
LMI
9872010-09-14 Leo <sdl.web@gmail.com> (tiny change)
988
989 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
990 parameters for the doc string.
991
21fa8e37
LMI
9922010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
993
994 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
995
5616cc54
SM
9962010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
997
998 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
999 (syms_of_fns): Don't defsubr Sy_or_n_p.
1000 * lisp.h: Don't declare Fy_or_n_p.
1001 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1002
381408e2
LMI
10032010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1004
1005 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1006
10072010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1008
1009 * xml.c: New file.
1010 (Fhtml_parse_buffer): New function to interface to the libxml2
1011 html parsing function.
1012
733946e7
JB
10132010-09-05 Juanma Barranquero <lekktu@gmail.com>
1014
1015 * biditype.h: Regenerate.
1016
7574650a
AS
10172010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1018
1019 * nsimage.m (ns_load_image): Check argument types.
1020
1021 * image.c: Remove all uses of gcpro.
1022 (xpm_load): Check all lisp types.
1023 (pbm_load): Likewise.
1024 (png_load): Likewise.
1025 (jpeg_load): Likewise.
1026 (tiff_load): Likewise.
1027 (gif_load): Likewise.
1028 (imagemagick_load_image): Likewise.
1029 (imagemagick_load): Likewise.
1030 (svg_load): Likewise.
1031 (gs_load): Likewise.
1032
6e6b8e25
EZ
10332010-09-04 Eli Zaretskii <eliz@gnu.org>
1034
1035 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1036 try to reorder grapheme clusters, since LGSTRING should always
1037 hold them in the logical order.
1038 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1039 return glyph codes in the logical order.
1040
dbfe4532
AS
10412010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1042
1043 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 1044 (imagemagick_load_image): Fix type mismatch.
5e5992c2 1045 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 1046
6d7cc563
JD
10472010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1048
1049 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1050
1051 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1052
1053 * xselect.c: Remove declaration of cut-buffer objects and functions.
1054 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1055 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1056 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1057 (Fx_rotate_cut_buffers_internal): Remove.
1058 (syms_of_xselect): Remove defsubr of above.
1059 Remove intern of QCUT_BUFFERn.
1060
8f4e9110
SM
10612010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1062
1063 * cmds.c (Vblink_paren_function): Remove.
1064 (internal_self_insert): Make it insert N chars at a time.
1065 Don't call blink-paren-function.
1066 (Fself_insert_command): Adjust accordingly.
1067 (syms_of_cmds): Don't declare blink-paren-function.
1068
d419e1d9
KH
10692010-08-31 Kenichi Handa <handa@m17n.org>
1070
1071 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1072 characters.
1073
1074 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
1075 (produce_glyphs): Don't set it->char_to_display here.
1076 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
1077 (produce_special_glyphs): Set temp_it.char_to_display before
1078 calling produce_glyphs.
1079
1080 * xdisp.c (get_next_display_element): Set it->char_to_display
1081 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1082 characters.
1083 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1084 calling PRODUCE_GLYPHS.
1085 (append_space_for_newline): Save and store it->char_to_display.
1086 Set it->char_to_display before calling PRODUCE_GLYPHS.
1087 (extend_face_to_end_of_line): Set it->char_to_display before
1088 calling PRODUCE_GLYPHS.
1089 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1090 character to its byte value.
1091 (get_char_glyph_code): New function.
1092 (produce_stretch_glyph): Set it2.char_to_display too before
1093 calling x_produce_glyphs.
1094 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1095 non-ASCII characters. Don't set it->char_to_display here.
1096 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1097 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1098
b819f760
SM
10992010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1100
1101 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1102
07fa68a7
CY
11032010-08-31 Chong Yidong <cyd@stupidchicken.com>
1104
1105 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1106
cd196f12
SM
11072010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1108
1109 * marker.c (Fcopy_marker): Make the first arg optional.
1110
49a752bb
KH
11112010-08-30 Kenichi Handa <handa@m17n.org>
1112
1113 * composite.c (composition_update_it): Fix computing of
1114 cmp_it->width.
1115
769ae9e1
KH
11162010-08-29 Kenichi Handa <handa@m17n.org>
1117
9e69cb05 1118 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1119 corresponding bytes.
9e69cb05 1120
4520b858
J
11212010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1122
1123 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1124
fe50eb41
KH
11252010-08-26 Kenichi Handa <handa@m17n.org>
1126
1127 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1128 on calling composition_compute_stop_pos.
1129
f6aa6ec6
KH
11302010-08-25 Kenichi Handa <handa@m17n.org>
1131
9dfdbc0a
KH
1132 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1133 :otf.
1134
f6aa6ec6
KH
1135 * composite.c (composition_compute_stop_pos): Don't break
1136 composition at PT.
1137 (composition_reseat_it): Likewise. Fix calculation of character
1138 position starting a composition.
1139 (Fcomposition_get_gstring): Don't limit the number of components
1140 for automatic composition.
1141
ff94e32c
KH
11422010-08-25 Kenichi Handa <handa@m17n.org>
1143
1144 * composite.c (composition_compute_stop_pos): In forward search,
1145 pay attention to the possibility that some character after ENDPOS
1146 will be composed with charactrs before ENDPOS.
1147
1c409d0b
CY
11482010-08-24 Chong Yidong <cyd@stupidchicken.com>
1149
1150 * keyboard.c (command_loop_1): Don't clobber primary selection
1151 during handle-switch-frame (Bug#6872).
1152
0c372655
MA
11532010-08-23 Michael Albinus <michael.albinus@gmx.de>
1154
1155 * dbusbind.c: Accept UNIX domain sockets as bus address.
1156 (Fdbus_close_bus): New function.
1157 (Vdbus_registered_buses): New variable.
1158 (xd_initialize): Implement string as bus address.
1159 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1160 (Fdbus_get_unique_name, Fdbus_call_method)
1161 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1162 (Fdbus_method_error_internal, Fdbus_send_signal)
1163 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1164 check. This is done in xd_initialize_bus. Adapt doc string, if
1165 necessary.
1166 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1167 Vdbus_registered_buses.
1168 (Vdbus_registered_objects_table): Create hash.
1169
7133b7ee
JL
11702010-08-22 Juri Linkov <juri@jurta.org>
1171
1172 * keyboard.c (Fexecute_extended_command): Move reading a command name
1173 with `completing-read' to a new Elisp function `read-extended-command'.
1174 Call it to read a command to `function' (bug#5364, bug#5214).
1175
198a7a97
CY
11762010-08-22 Chong Yidong <cyd@stupidchicken.com>
1177
1178 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1179
b0126eac 11802010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1181
1182 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1183 instead of SAFE_ALLOCA.
1184
b0126eac 11852010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1186
1187 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1188 (Bug#6214).
1189
b0126eac 11902010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1191
1192 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1193
b0126eac
CY
11942010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1195
1196 * doc.c (Fsnarf_documentation): Initialize skip_file before
1197 build-files test.
1198
692f3ddc 11992010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1200
692f3ddc
JB
1201 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1202 New definitions.
b0126eac
CY
1203 (HAVE_TERMIO): Remove.
1204
5f2f0bc1
EZ
12052010-08-22 Eli Zaretskii <eliz@gnu.org>
1206
b613941b
EZ
1207 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1208
a583bbef
EZ
1209 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1210 for w32.
1211
1212 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1213 it's done in nt/config.nt.
1214
1215 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1216
5f2f0bc1
EZ
1217 * unexcoff.c (report_error, make_hdr, write_segment)
1218 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1219 Convert argument lists and prototypes to ANSI C.
1220 (make_hdr, write_segment): Remove unused variables.
1221 (unexec): Remove commented-out line. Initialize `new' to shut up
1222 compiler warnings.
1223
a7ebc409
DN
12242010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1225
1226 Simplify termio code.
1227 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1228 HAVE_TERMIO code is obsolete.
1229 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1230 * systty.h: Do not define HAVE_TCATTR.
1231 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1232 Do not define EMACS_HAVE_TTY_PGRP. Only define
1233 EMACS_GET_TTY_PGRP for !DOS_NT.
1234 * sysdep.c: Include sysselect.h unconditionally. Do not include
1235 sys/ioctl.h and termios.h, systty.h does it. Use
1236 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1237 (init_baud_rate): Remove HAVE_TERMIO code.
1238 (child_setup_tty): Remove HAVE_TERMIO code.
1239 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1240 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1241 (new_ltchars, new_tchars): Remove, unused.
1242 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1243 code. Remove special casing for __mips__, it was a no-op. Remove
1244 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1245 (init_sys_modes): Remove HPUX special case.
1246 * process.c: Include stdlib.h unconditionally. Do not include
1247 fcntl.h, systty.h does it. Remove conditional code for
1248 HAVE_SERIAL, it is always true.
1249 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1250 always true when SIGNALS_VIA_CHARACTERS is true.
1251 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1252 !WINDOWSNT means HAVE_TERMIOS.
1253 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1254 conditional, which is true for all HAVE_TERMIOS systems.
1255 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1256 instead of HAVE_TERMIOS.
1257 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1258 EMACS_HAVE_TTY_PGRP.
1259 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1260 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1261 anyway.
1262
40629f17
EZ
12632010-08-21 Eli Zaretskii <eliz@gnu.org>
1264
1265 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1266 mirroring pixel positions.
1267
d931da8c
DN
12682010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1269
b5c76d0c
DN
1270 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1271 write only.
1272 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1273 malloc_sbrk_used, nothing uses them.
1274
74815588
DN
1275 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1276 defined, unconditionally defined in lisp.h.
1277
f5817d1c
DN
1278 * term.c: Do not include <termios.h>, systty.h does it.
1279
d931da8c
DN
1280 * s/unixware.h (HAVE_TCATTR):
1281 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1282 systty.h defines it when HAVE_TERMIOS is defined.
1283
ff2de6d2 12842010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1285
b43c883c 1286 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1287 terminals: add one-character offset for R2L lines.
b43c883c 1288
491a1546
EZ
1289 * emacs.c <emacs_version>: Add a comment regarding
1290 msdos/mainmake.v2's dependency on the syntax of this declaration.
1291
2396cbba
EZ
12922010-08-20 Eli Zaretskii <eliz@gnu.org>
1293
1294 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1295 position for R2L lines by mirroring the pixel position wrt the
1296 text are box. Improve commentary.
1297
7df6150a
AS
12982010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1299
1300 * image.c (imagemagick_clear_image): Remove debugging output.
1301
a2e5caf7
SM
13022010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1303
1304 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1305 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1306 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1307 self-insert-face.
1308 (syms_of_cmds): Initialize the new vars.
1309
20d60baf
JR
13102010-08-19 Jason Rumney <jasonr@gnu.org>
1311
cc477da7
JR
1312 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1313
20d60baf
JR
1314 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1315
2c0ac867
J
13162010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1317
1318 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1319
93352106
EZ
13202010-08-18 Eli Zaretskii <eliz@gnu.org>
1321
1322 * xterm.c (x_draw_bar_cursor):
1323 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1324 R2L, draw the bar cursor on its right rather than on its left.
1325
c785836d
SM
13262010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1327
0193499f
SM
1328 * eval.c (Fdefmacro): Only obey one declaration.
1329
c785836d
SM
1330 * casefiddle.c (casify_region): Setup gl_state.
1331
9cb728a5
J
13322010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1333
1334 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1335
e1e18511
J
13362010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1337
1d77b63e 1338 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1339
64cb6c78
J
13402010-08-18 David De La Harpe Golden <david@harpegolden.net>
1341
1342 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1343 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1344 QPRIMARY => NXPrimaryPboard.
1345 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1346 NXPrimaryPboard => QPRIMARY.
1347 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1348 NXSecondaryPboard = SecondarySelection.
1349 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1350
0c9b8993
GM
13512010-08-18 Joakim Verona <joakim@verona.se>
1352
1353 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1354 defined:
1355 (imagemagick_image_p): New function to test for ImageMagic image.
1356 (imagemagick_load): New function to load ImageMagick image.
1357 (imagemagick_load_image): New function, helper for imagemagick_load.
1358 (imagemagick-types): New function.
1359 (Qimagemagick): New Lisp_object.
1360 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1361
c3554f68
SM
13622010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1363
1364 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1365 is a string.
1366
1ff2e434
J
13672010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1368
1369 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1370 x_set_tool_bar_position handler.
1371
0cc56427
EZ
13722010-08-17 Eli Zaretskii <eliz@gnu.org>
1373
1374 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1375 x_set_tool_bar_position handler, needed to support changes from
1376 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1377
e45a249b
JD
13782010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1379
921242c6
J
1380 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1381 declaration (Bug#6863).
573d150b 1382 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1383
e45a249b
JD
1384 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1385
1386 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1387
7c23dd44
CY
13882010-08-16 Chong Yidong <cyd@stupidchicken.com>
1389
1390 * keyboard.c (command_loop_1): Avoid setting selection twice,
1391 since it's done in deactivate-mark as well.
1392 (Vselect_active_regions): Change default to t. Replace `lazy'
1393 with non-default value `only', meaning only set PRIMARY for
1394 temporarily active regions.
1395
1396 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1397 select-active-regions.
1398
0005830c
J
13992010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1400
1401 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1402 isn't a string.
1403
603dfc72
AS
14042010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1405
1406 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1407
c25ce9d0
J
14082010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1409
c3554f68
SM
1410 * keyboard.c (parse_tool_bar_item): malloc buf.
1411 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1412 new_lbl (Bug#6855).
c25ce9d0 1413
5872c762
EZ
14142010-08-14 Eli Zaretskii <eliz@gnu.org>
1415
b236615c
EZ
1416 * xterm.c (x_draw_stretch_glyph_string):
1417 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1418 the cursor on the right edge of the stretch glyph.
1419
c3554f68
SM
1420 * xdisp.c (window_box_right_offset, window_box_right):
1421 Fix commentary.
b236615c 1422
5872c762
EZ
1423 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1424 direction when point is inside a run of whitespace characters.
1425
1426 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1427
e66f9a1b
JR
14282010-08-14 Jason Rumney <jasonr@gnu.org>
1429
1430 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1431
79d6f59e
CY
14322010-08-14 Chong Yidong <cyd@stupidchicken.com>
1433
1434 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1435
1c9b4129
JR
14362010-08-13 Jason Rumney <jasonr@gnu.org>
1437
1438 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1439 (MessageBoxW_Proc): New function typedef.
1440 (unicode-message-box): New function pointer.
1441 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1442
2b4e6277
J
14432010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1444
1445 * frame.h (Qtool_bar_position): Declare.
1446
1447 * xfns.c (Fx_create_frame): Call x_default_parameter for
1448 Qtool_bar_position.
1449
94c97d85
EZ
14502010-08-13 Eli Zaretskii <eliz@gnu.org>
1451
8ee81892
EZ
1452 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1453 (report_error, report_error_1): Ditto.
1454 (write_segment): Remove "#if 0" unused code.
1455 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1456 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1457 (start_of_text): Remove unused function (was used only if NO_REMAP
1458 was NOT defined).
1459
891ef8f7
EZ
1460 * msdos.c (IT_set_face): Fix format string to match argument
1461 types.
1462 (IT_write_glyphs, IT_note_mode_line_highlight)
1463 (IT_set_frame_parameters): Remove unused variables.
1464 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1465 (IT_set_terminal_modes): Disambiguate expression in if clause.
1466 (Fmsdos_remember_default_colors): Return Qnil.
1467 (IT_set_frame_parameters): Add parens to disambiguate boolean
1468 expression for logging the cursor type to termscript.
1469 (keyboard_layout_list, keypad_translate_map)
1470 (grey_key_translate_map): Add braces in inner initializers.
1471 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1472 (dos_rawgetc): Remove unused label.
1473 (XMenuActivate): Add braces to remove ambiguous `else'.
1474 (dos_ttraw): Always return a value.
1475 (spawnve): Declare.
1476 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1477
1478 * dosfns.h (x_set_title): Declare.
1479
1480 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1481 Remove unused variables.
1482
1483 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1484 variables.
1485 (init_dosfns): Declare get_lim_data.
1486 (system_process_attributes): Declare Fget_internal_run_time.
1487
38e41e0e
EZ
1488 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1489 list to be consistent with menu.h.
1490
94c97d85
EZ
1491 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1492 warnings due to mixing of "char *" and "const char *".
1493
c5683ceb
SM
14942010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1495
1496 Introduce a new comment style "c" flag.
1497 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1498 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1499 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1500 (syntax_prefix_flag_p): New function.
1501 (Fstring_to_syntax): Understand new "c" flag.
1502 (Finternal_describe_syntax_value): Recognize new flag; use the
1503 SYNTAX_FLAGS_* macros.
1504 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1505 comment style to accomodate the new styles.
1506 (back_comment, forw_comment, Fforward_comment, scan_lists)
1507 (scan_sexps_forward): Update code to obey the new comment style flag.
1508
1509 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1510
1511 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1512
7aee76f4
J
15132010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1514
3a46642b
J
1515 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1516 first.
94dff98f 1517 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1518
1519 * gtkutil.h (xg_check_special_colors): Declare.
1520
1521 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1522 (xg_create_frame_widgets): Connect theme name changes to
1523 style_changed_cb.
1524
42ca4633
J
1525 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1526 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1527 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1528 string literal. file is const char*.
42ca4633
J
1529
1530 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1531 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1532 props. Free them at the end.
1533
1534 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1535
c5683ceb
SM
1536 * xrdb.c (get_system_app): Make path const and use char *p for
1537 non-const char.
42ca4633
J
1538
1539 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1540 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1541 char *.
1542 (button_names): Is const char *.
1543 (xdialog_show): error_name and pane_string is const.
1544
1545 * process.h (synch_process_death): Is const char*.
1546
1547 * w32menu.c (w32_menu_show):
1548 * nsmenu.m (ns_menu_show): error parameter is const char **.
1549
1550 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1551 is const char **.
1552
1553 * menu.c (Fx_popup_menu): error_name is const.
1554
1555 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1556 with unsigned char and XtPointer with void *.
1557
1558 * gtkutil.h: Replace widget_value with struct _widget_value.
1559 (enum button_type, struct _widget_value): Remove and use the one from
1560 keyboard.h.
1561
1562 * gtkutil.c (get_utf8_string): Always return an allocated string.
1563 Parameter is const.
1564 (create_dialog, xg_create_one_menuitem, create_menus)
1565 (xg_item_label_same_p, xg_update_menu_item): Free result from
1566 get_utf8_string.
1567 (xg_separator_p, xg_item_label_same_p): label is const.
1568
1569 * font.h (font_open_by_name): Make name const.
1570
1571 * font.c (font_open_by_name): Make name const.
1572
1573 * floatfns.c (matherr): Use a const char* variable for x->name.
1574
1575 * emacs.c (main): Pass char[] to putenv instead of literal.
1576
1577 * callproc.c (synch_process_death): Make const.
1578 (Fcall_process): Make signame const.
1579
9c5bd55a
J
1580 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1581 (addDisplayItemWithImage): Use const char*.
1582
1583 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1584 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1585
1586 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1587
1588 * keyboard.h (_widget_value): name, value and key are const char*.
1589
7aee76f4
J
1590 * unexmacosx.c (unexec_error): Use const char *.
1591
09d93395
DN
15922010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1593
1594 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1595 (font_parse_name, font_open_by_name):
09d93395 1596 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1597 (font_parse_name, font_open_by_name): Remove const.
09d93395 1598
671d409f
AS
15992010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1600
1601 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1602 definition.
1603
1604 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1605 * m/amdx86-64.h: Likewise.
1606 * m/arm.h: Likewise.
1607 * m/hp800.h: Likewise.
1608 * m/ia64.h: Likewise.
1609 * m/ibmrs6000.h: Likewise.
1610 * m/ibms390.h: Likewise.
1611 * m/intel386.h: Likewise.
1612 * m/iris4d.h: Likewise.
1613 * m/m68k.h: Likewise.
1614 * m/macppc.h: Likewise.
1615 * m/mips.h: Likewise.
1616 * m/sh3.h: Likewise.
1617 * m/sparc.h: Likewise.
1618 * m/template.h: Likewise.
1619 * m/vax.h: Likewise.
1620 * m/xtensa.h: Likewise.
1621 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1622 WORDS_BIG_ENDIAN.
1623 * lisp.h: Likewise.
1624 * md5.c: Likewise.
1625 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1626
8ea90aa3
DN
16272010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1628
1629 Use const char* instead of char*.
1630 Reduce the number of warnings with -Wwrite-strings.
1631 * xrdb.c (get_environ_db, get_system_name):
1632 * unexelf.c (find_section):
1633 * term.c (string_cost, string_cost_one_line, per_line_cost)
1634 (get_named_tty, init_tty):
1635 * sysdep.c (sys_subshell):
1636 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1637 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1638 * search.c (Freplace_match):
1639 * process.c (Fmake_network_process, send_process, init_process):
1640 * lread.c (Fload, init_lread):
1641 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1642 * keyboard.c (parse_tool_bar_item, struct event_head):
1643 * gtkutil.h (xg_get_font_name):
1644 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1645 (make_widget_for_menu_item, make_menu_item, create_menus)
1646 (xg_make_tool_item):
1647 * font.c (parse_matrix, font_parse_name):
1648 * floatfns.c (rounding_driver, float_error_fn_name):
1649 * filelock.c (get_boot_time_1, lock_file_1):
1650 * fileio.c (barf_or_query_if_file_exists, check_writable):
1651 * editfns.c (get_system_name, get_operating_system_release)
1652 (Fencode_time, Fset_time_zone_rule):
1653 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1654 * buffer.c (defvar_per_buffer): Use const.
1655
7815fe19 16562010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1657
692f3ddc 1658 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1659 (struct charset_sort_data): New struct.
1660 (charset_compare): New function.
692f3ddc 1661 (Fsort_charsets): New function.
7a84eee5
KH
1662 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1663
1664 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1665 number in CTEXT extended segment.
1666
7815fe19 16672010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1668
1669 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1670 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1671
7815fe19 16722010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1673
1674 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1675 (Fhash_table_size): Fix typos in docstrings.
1676 (Fmake_hash_table): Doc fix.
1677
7815fe19 16782010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1679
1680 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1681 Doc fix (bug#5625).
1682
7815fe19 16832010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1684
1685 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1686 the MSDOS definition.
1687
1b6d8cf0
DN
16882010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1689
675e2c69
DN
1690 Use const char* instead of char*.
1691 * xterm.c (x_create_toolkit_scroll_bar):
1692 * xfont.c (xfont_list_pattern):
1693 * xfns.c (x_default_scroll_bar_color_parameter)
1694 (xic_create_fontsetname, x_default_font_parameter)
1695 (x_screen_planes):
1696 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1697 (store_mode_line_string, decode_mode_spec, display_string):
1698 * menu.c (digest_single_submenu):
1699 * keymap.h (initial_define_key, initial_define_lispy_key):
1700 * keymap.c (initial_define_key, initial_define_lispy_key):
1701 * image.c (image_error, image_keyword):
1702 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1703 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1704 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1705 (ftfont_list, ftfont_match):
1706 * frame.c (frame_parm_table):
1707 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1708 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1709 (font_add_log, font_deferred_log):
1710 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1711 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1712 (font_add_log, font_deferred_log):
1713 * emacs.c (argmatch):
1714 * dispextern.h (struct it):
1715 * coding.c (ENCODE_DESIGNATION):
1716 * charset.c (define_charset_internal): Use const.
1717
25717ca1
DN
1718 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1719
c5683ceb
SM
1720 * xrdb.c: Remove include guard.
1721 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1722 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1723 realloc->xrealloc instead of using #defines.
1724
efb41e21
EZ
17252010-08-08 Eli Zaretskii <eliz@gnu.org>
1726
cd21226d 1727 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1728 * editfns.c (Fline_beginning_position, Fline_end_position):
1729 State in the doc strings that start and end of line are in the
1730 logical order.
cd21226d 1731
efb41e21
EZ
1732 * xdisp.c (display_line): Move the handling of overlay arrow after
1733 the call to find_row_edges. (Bug#6699)
1734
746812d9
CY
17352010-08-07 Chong Yidong <cyd@stupidchicken.com>
1736
1737 * keyboard.c (command_loop_1):
1738 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1739
9852377f
CY
17402010-08-07 Chong Yidong <cyd@stupidchicken.com>
1741
1742 * insdel.c (prepare_to_modify_buffer): Save active region text to
1743 Vsaved_region_selection.
1744
1745 * xselect.c (QPRIMARY): Move to keyboard.c.
1746
1747 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1748 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1749 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1750
0e9c8657
JB
17512010-08-07 Juanma Barranquero <lekktu@gmail.com>
1752
1753 * alloc.c (lisp_malloc):
1754 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1755 * charset.h (emacs_mule_charset):
1756 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1757 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1758 (bitch_at_user):
1759 * lisp.h (Fcheck_coding_system, Fget_text_property)
1760 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1761 Remove duplicate declarations.
1762
648801d1
DN
17632010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1764
32bc6709
DN
1765 * process.c: Simplify include logic.
1766
3ef1d108
DN
1767 * keyboard.h (quit_char): Add declaration.
1768 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1769 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1770 Add declarations.
3ef1d108
DN
1771 * sysdep.c:
1772 * w32.c: Remove the above declarations.
1773
97ec208f
DN
1774 Remove extern declarations in .c files, .h files have them.
1775 * xterm.c:
1776 * xdisp.c:
97ec208f
DN
1777 * msdos.c:
1778 * image.c:
1779 * gtkutil.c:
1780 * fileio.c:
1781 * eval.c: Remove declarations.
1782
94eed851
DN
1783 * frame.c (frame_params): Make const.
1784
36e053eb
DN
1785 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1786
0e843971
DN
1787 * emacs.c (emacs_copyright, emacs_version): Make static.
1788 (Vinitial_window_system, Vauto_save_list_file_name)
1789 (Vinhibit_redisplay): Remove declarations.
1790 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1791 for AIX.
1792
648801d1
DN
1793 Use const for some arrays and functions.
1794 * xterm.h (xg_set_icon_from_xpm_data):
1795 * xfns.c (xg_set_icon_from_xpm_data):
1796 * term.c (fkeys):
1797 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1798 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1799 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1800 (frame.c frame_parms):
1801 * emacs-icon.h (gnu_xpm_bits):
1802 * callint.c (callint_argfuns): Use const.
1803
8646d999
J
18042010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1805
1806 * sysdep.c: Move include term.h last of includes (Bug#6812).
1807
cb4545ad
EZ
18082010-08-06 Eli Zaretskii <eliz@gnu.org>
1809
1810 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1811
1812 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1813
1814 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1815
da7e2be6
JB
18162010-08-06 Juanma Barranquero <lekktu@gmail.com>
1817
1818 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1819
3d608a86
J
18202010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1821
7908fb60
J
1822 * xterm.h (x_get_focus_frame): Declare.
1823
1824 * keyboard.h (poll_for_input_1): Unconditionally declare.
1825
4094bf36
J
1826 * nsterm.h (x_set_menu_bar_lines): Declare.
1827
1828 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1829
3d608a86
J
1830 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1831
1832 * window.c: Include menu.h.
1833
1834 * unexmacosx.c (print_region_list, print_regions)
1835 (build_region_list, find_emacs_zone_regions)
1836 (unexec_regions_merge, read_load_commands, dump_it)
1837 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1838
1839 * term.c: Check HAVE_SYS_IOCTL_H.
1840
686b968e 1841 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1842
686b968e 1843 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1844
1845 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1846 (ns_ring_bell, ns_defined_color, hide_hourglass)
1847 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1848 Convert to ANSI C prototypes.
1849 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1850 before code.
1851
1852 * nsterm.h : Include sysselect.h.
1853 (x_sync, x_get_focus_frame, x_set_mouse_position)
1854 (x_set_mouse_pixel_position, x_make_frame_visible)
1855 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1856 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1857 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1858 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1859 Declare.
3d608a86
J
1860
1861 * nsmenu.m (popup_activated, name_is_separator)
1862 (syms_of_nsmenu): Convert to ANSI C prototypes.
1863 (runMenuAt): Prototypes and move declarations before code.
1864
1865 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1866
1867 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1868 prototypes.
1869
1870 * nsfns.m (have_menus_p, ns_display_info_for_name)
1871 (x_set_cursor_type, ns_appkit_version_str)
1872 (ns_appkit_version_int, ns_do_applescript)
1873 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1874 (syms_of_nsfns): Convert to ANSI C prototypes.
1875
1876 * menu.h (x_set_menu_bar_line): Declare.
1877 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1878
1879 * lisp.h (fmod_float): Declare.
1880
1881 * image.c (xpm_scan, xpm_make_color_table_v)
1882 (xpm_put_color_table_v, xpm_get_color_table_v)
1883 (xpm_make_color_table_h, xpm_put_color_table_h)
1884 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1885 (xpm_load): Convert to ANSI C prototypes.
1886
1887 * emacs.c: Include nsterm.h if HAVE_NS.
1888
1889 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1890
fce70521
DN
18912010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1892
1893 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1894 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1895 (socket_options): Use const char* for name.
1896
a11889ab
JB
18972010-08-06 Juanma Barranquero <lekktu@gmail.com>
1898
1899 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1900
1901 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1902 Don't declare xmalloc_widget_value and digest_single_submenu.
1903
1904 * w32font.c (Qlatin): Remove declaration.
1905
1906 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1907
c95b508f 1908 * dired.c (compile_pattern): Restore declaration.
a11889ab 1909
6254cdda
DN
19102010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1911
04bab72c
DN
1912 Remove extern declarations in .c files, .h files have them.
1913 * data.c:
1914 * dired.c:
1915 * editfns.c:
1916 * filelock.c:
1917 * fns.c:
1918 * font.c:
1919 * fontset.c:
1920 * frame.c:
1921 * fringe.c:
1922 * ftfont.c:
1923 * gtkutil.c:
1924 * indent.c:
1925 * keyboard.c:
1926 * keymap.c:
1927 * lread.c:
1928 * menu.c:
1929 * print.c:
1930 * search.c:
1931 * sound.c:
1932 * window.c:
1933 * xdisp.c:
1934 * xfaces.c:
1935 * xfns.c:
1936 * xfont.c:
1937 * xftfont.c:
1938 * xmenu.c:
1939 * xterm.c: Remove declarations.
1940
dff94ed5
DN
1941 Cleanup syssignal.h.
1942 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1943 (main_thread): Move down to remove #ifdef.
1944 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1945 Remove conditional definition following unconditional ones.
1946
99f3388e
DN
1947 * lisp.h: Remove HAVE_SHM code, unused.
1948 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1949 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1950 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1951 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1952 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1953 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1954 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1955 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1956 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1957 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1958 (Qwindow_scroll_functions, Vafter_load_alist)
1959 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1960 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1961 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1962 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1963 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1964 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1965 (initial_argv, last_nonmenu_event, load_in_progress)
1966 (noninteractive_need_newline, scroll_margin): Add declarations.
1967
1968 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1969 declarations, menu.h has them.
1970 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1971 (Vinput_method_function, Qinput_method_function)
1972 (Qevent_symbol_element_mask, last_event_timestamp):
1973 * dispextern.h (Voverflow_newline_into_fringe):
1974 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1975 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1976 (syms_of_w32font, syms_of_nsfont):
1977 * fontset.h (find_font_encoding, Qlatin):
1978 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1979 (Vtool_bar_mode, set_frame_menubar):
1980 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1981 * xterm.h (Qx_gtk_map_stock):
1982 * keymap.h (meta_prefix_char): Add declarations.
1983
9f5dd6f2
DN
1984 * term.c: Remove dead code.
1985
6254cdda
DN
1986 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1987 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1988 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1989 which is what was there before BSD_PGRPS was removed.
1990
29cf3e20
EZ
19912010-08-05 Eli Zaretskii <eliz@gnu.org>
1992
1993 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1994
1995 * unexcoff.c: Renamed from unexec.c.
1996
aaa0a19a
SM
19972010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1998
1999 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2000
8d1d9587
JB
20012010-08-03 Johan Bockgård <bojohan@gnu.org>
2002
2003 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 2004 (Bug#6744)
8d1d9587 2005
9a747ba6
JD
20062010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2007
4d464ae4
JD
2008 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2009 to TRUE if depth of screen is < 16.
2010
ac01763e
JD
2011 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2012 USE_GTK_TOOLTIP.
e0d62a9b
JB
2013 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2014 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 2015 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
2016 USE_GTK_TOOLTIP.
2017 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2018
2019 * xterm.h (USE_GTK_TOOLTIP): New define.
2020 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2021
9a747ba6
JD
2022 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2023 to Control-D (Bug#6771).
2024
7b0815ba
JB
20252010-08-02 Juanma Barranquero <lekktu@gmail.com>
2026
2027 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2028 Wording by Drew Adams <drew.adams@oracle.com>.
2029
aa1859f5
J
20302010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2031
2032 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2033 ttip_lbl.
2034
2035 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2036 calling gtk_widget_queue_draw.
2037 (x_free_frame_resources): Call xg_free_frame_widgets.
2038
2039 * xfns.c (x_gtk_use_system_tooltips): New variable.
2040 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2041 new gtkutil tooltip functions to show the tooltip.
2042 (Fx_hide_tip): Call xg_hide_tooltip.
2043 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2044
2045 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2046 (xg_show_tooltip, xg_hide_tooltip): Declare.
2047
2048 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
2049 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2050 New functions.
aa1859f5
J
2051 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2052 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2053 Remove code that is commented out.
2054
76417ef4
SM
20552010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2056
2057 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2058
16041401
CY
20592010-07-31 Chong Yidong <cyd@stupidchicken.com>
2060
2061 * xselect.c (x_own_selection): Use list4.
2062
2c09a58f
DN
20632010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2064
2065 * buffer.c (Qwindow): Do not define, already defined in data.c.
2066 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2067
59df9fdd 20682010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 2069
59df9fdd
JB
2070 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2071 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2072 * config.in: Undef HAVE_DIRENT_H.
1c97e857 2073 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 2074 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 2075
1b231651
DN
20762010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2077
2078 Rename s/usg5-4.h -> s/usg5-4-common.h.
2079 * s/usg5-4.h: Rename file to ...
2080 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2081 * s/unixware.h:
2082 * s/sol2-6.h:
2083 * s/irix6-5.h: Update includes accordingly.
2084
bfeabdc3
JD
20852010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2086
2ebf1083
J
2087 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2088
bfeabdc3 2089 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
2090 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2091 Remove toolbar_height.
2092 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
2093 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2094 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2095 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2096
2097 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2098
2099 * xfns.c (x_set_tool_bar_position): New function.
2100 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2101 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2102 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2103
2104 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2105 and FRAME_TOOLBAR_LEFT_WIDTH.
2106
2107 * gtkutil.h (xg_change_toolbar_position): Declare.
2108
2109 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2110 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2111 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2112 (xg_create_frame_widgets): Create a hobox for placing widgets
2113 vertically. Use gtk_box_pack_start.
2114 (xg_height_or_width_changed): Renamed from xg_height_changed.
2115 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2116 (xg_update_frame_menubar, free_frame_menubar): Change to
2117 xg_height_or_width_changed.
2118 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2119 size correctly. Remove hardcoded 4, instead use handlebox size -
2120 toolbar size.
2121 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2122 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2123 (xg_pack_tool_bar): POS is a new parameter.
2124 Set orientation of tool bar based on pos.
2125 Only make handlebox_widget if NULL.
2126 Check if tool bar goes to vbox or hbox depending on pos.
2127 (xg_update_tool_bar_sizes): New function.
686b968e 2128 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2129 height, call xg_update_tool_bar_sizes instead.
2130 (free_frame_tool_bar): Remove from hbox or vbox depending on
2131 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2132 (xg_change_toolbar_position): New function.
2133
2134 * frame.h (struct frame): Add tool_bar_position.
2135 (Qbottom): Declare.
2136
2137 * frame.c (Qtool_bar_position): New variable.
2138 (make_frame): Set tool_bar_position to Qtop.
2139 (frame_parms): Add tool-bar-position.
2140 (x_report_frame_params): Store tool_bar_position.
2141 (x_set_fringe_width): Reset wm size hint after fringe changes.
2142
26469a38
DN
21432010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2144
2145 Make lisp_time_argument declaration work on all systems.
2146 * lisp.h (lisp_time_argument): Move declaration ...
2147 * systime.h (lisp_time_argument): ... here
2148 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2149
8848b728
JD
21502010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2151
2152 * vm-limit.c (POINTER): Add typedef for it.
2153 (start_of_data): Change return type from POINTER to char *.
2154
2155 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2156 HAVE_WINDOW_SYSTEM.
2157
76fd1ee9
DN
21582010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2159
0441987e
DN
2160 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2161 Remove reference to __osf__, unused.
2162
56a000c7
DN
2163 * mem-limits.h: Remove duplicated includes.
2164 (NULL): Remove definition, unused.
2165 (POINTER): Remove definition.
2166 (start_of_data): Use char* in prototype, as the function
2167 definition does.
2168
e6cba650
DN
2169 Remove extern declarations from .c files, and them to .h files.
2170 * keyboard.h (Qhelp_echo, waiting_for_input)
2171 (input_available_clear_time, ignore_mouse_drag_p)
2172 (Vdouble_click_time, real_this_command, Vthis_original_command):
2173 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2174 (Voverriding_local_map_menu_flag):
2175 * lisp.h (Qinteractive_form, use_file_dialog)
2176 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2177 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2178 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2179 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2180 (Qfunction, debug_on_next_call, Qfield)
2181 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2182 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2183 (Qfile_directory_p, Qinsert_file_contents)
2184 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2185 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2186 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2187 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2188 (Qminibuffer_prompt)
2189 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2190 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2191 (gray_bitmap_bits, xic_create_fontsetname):
2192 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2193
2194 * xsmfns.c (Vuser_login_name):
2195 * xrdb.c (Vdouble_click_time):
2196 * xfaces.c (xic_create_fontsetname):
2197 * w32select.c (waiting_for_input):
2198 * print.c (minibuffer_auto_raise):
2199 * msdos.c (Qhelp_echo):
2200 * macros.c (real_this_command):
2201 * keymap.c (Voverriding_local_map):
2202 * xterm.c (poll_for_input_1, gray_bitmap_width)
2203 (gray_bitmap_height, gray_bitmap_bits;
2204 * xmenu.c ( Voverriding_local_map)
2205 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2206 (use_file_dialog, Xt_app_con):
2207 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2208 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2209 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2210 (Qtool_bar_lines, ignore_mouse_drag_p):
2211 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2212 (Qrear_nonsticky, nconc2):
2213 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2214 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2215 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2216 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2217 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2218 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2219 (gc_in_progress):
2220 * doc.c (Voverriding_local_map, Qremap):
2221 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2222 (Vcompletion_regexp_list):
2223 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2224 (Qcompletion_ignore_case):
2225 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2226 (Vhistory_length, Vthis_original_command, real_this_command)
2227 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2228 * image.c (Qrisky_local_variable):
2229 * fontset.c (QCname):
2230 * fns.c (minibuffer_auto_raise, QCname):
2231 * dispnew.c (char_ins_del_cost):
2232 * composite.c (font_fill_lglyph_metrics):
2233 * cmds.c (Qface, Vtranslation_table_for_input):
2234 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2235 * ccl.c (charset_unicode):
2236 * callproc.c (Vtemporary_file_directory):
2237 * buffer.c (emacs_strerror): Remove extern declarations.
2238
2239 * data.c (Qwindow): Make non-static, used from other files too.
2240 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2241
76fd1ee9
DN
2242 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2243 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2244 * s/usg5-4.h (COFF):
2245 * s/template.h:
2246 * s/msdos.h (COFF, NO_REMAP):
2247 * s/ms-w32.h (NO_REMAP):
2248 * s/hpux10-20.h (NO_REMAP):
2249 * m/sparc.h (SEGMENT_MASK):
2250 * m/m68k.h (NO_REMAP):
2251 * m/intel386.h (SEGMENT_MASK):
2252 * m/arm.h (NO_REMAP):
2253 * m/alpha.h (COFF):
2254 * m/template.h: Remove references to unused defines.
2255
8a52f00a
JD
22562010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2257
2258 * xsettings.c (Ftool_bar_get_system_style): Also check for
2259 Qtext_image_horiz.
2260
2261 * xdisp.c (Qtext_image_horiz): Define.
2262 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2263 to documentation of tool-bar-style.
8a52f00a
JD
2264
2265 * lisp.h (Qtext_image_horiz): Declare.
2266
2267 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2268 style text_image_horiz.
2269
89dc303e
DN
22702010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2271
60799703
DN
2272 * emacs.c (Fkill_emacs): Remove return statement.
2273
37254dc1
DN
2274 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2275 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2276 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2277 local extern declarations.
2278
71c7345a
DN
2279 * xmenu.c: Do not included lwlib.h, not needed.
2280
6ba577cb
DN
2281 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2282
fdb183d6
DN
2283 * process.c: Move definitions earlier to minimize #ifdefs.
2284
2285 * xterm.h (x_get_customization_string, x_load_resources)
2286 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2287 (x_check_errors, x_property_data_to_lisp, defined_color)
2288 (xic_set_xfontset, x_defined_color): Use const.
2289
2290 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2291 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2292
2293 * xselect.c (selection_data_to_lisp_data)
2294 (x_property_data_to_lisp):
2295 * xrdb.c (x_get_string_resource, file_p)
2296 (x_get_customization_string, magic_file_p, search_magic_path)
2297 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2298 (x_get_string_resource): Use const.
2299
2300 * xfns.c: Include xlwmenu.h when USE_LUCID.
2301 (x_defined_color, xic_set_xfontset): Use const.
2302 (Fx_hide_tip): Remove local extern declaration.
2303
2304 * xfaces.c (Qmouse_face): Remove declaration.
2305 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2306 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2307
2308 * xdisp.c (do_mouse_tracking): Remove declaration.
2309 (add_to_log): Use const.
2310
2311 * minibuf.c (Qmouse_face): Remove declaration.
2312
2313 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2314
2315 * keyboard.h (do_mouse_tracking): Add declaration.
2316
2317 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2318 (QCdata, QCtype, Qcenter): Remove declarations.
2319
2320 * frame.c (x_get_resource_string, x_get_string_resource)
2321 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2322 (x_default_parameter): Use const.
2323
2324 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2325 (QCheight, QCsize, QCname): Remove declarations.
2326
2327 * emacs.c (main): Remove local extern declaration.
2328
2329 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2330 declarations.
2331
2332 * dispnew.c: Remove duplicate #include <unistd.h>.
2333 (update_window, update_frame_1, init_display): Remove local extern
2334 declarations.
2335
2336 * dispextern.h (add_to_log): Remove declaration.
2337 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2338 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2339
2340 * dired.c (scmp): Add const.
2341 (directory_files_internal): Remove local extern declaration.
2342
2343 * data.c (Finteractive_form): Use const.
2344
2345 * composite.c (syms_of_composite): Remove local extern declarations.
2346
2347 * charset.c (add_to_log): Remove declaration.
2348
2349 * character.c (strwidth, parse_str_to_multibyte): Add const.
2350
2351 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2352
2353 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2354
89dc303e 2355 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2356 (Lisp_Subr): Make doc and intspec constant.
2357 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2358 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2359 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2360 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2361 (display_arg): Add declarations.
89dc303e 2362
0ed082fe 23632010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2364
2365 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2366
0ed082fe
JB
2367 * window.c (Fwindow_height): Doc fix (bug#6518).
2368
23692010-07-27 Juanma Barranquero <lekktu@gmail.com>
2370
2371 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2372
ccaf0336
DN
23732010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2374
977105dc
DN
2375 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2376 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2377 functions.
2378
f5ada890
DN
2379 * frame.h (Qtty_color_mode): Add declaration.
2380
ccaf0336
DN
2381 * lisp.h (Ftop_level, Fexit_recursive_edit)
2382 (Fabort_recursive_edit): Mark as NO_RETURN.
2383
dfe3c90f
KH
23842010-07-26 Kenichi Handa <handa@m17n.org>
2385
2386 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2387 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2388
7d383292
JB
23892010-07-26 Juanma Barranquero <lekktu@gmail.com>
2390
2391 * lread.c (unreadpure, mapatoms_1): Make static.
2392
da31e629
JB
23932010-07-25 Juanma Barranquero <lekktu@gmail.com>
2394
2395 * terminfo.c (tparam): Fix prototype of tparm.
2396
7bfa6d77
AS
23972010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2398
dcc19aac
AS
2399 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2400 find start of text segment.
2401 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2402 is defined.
2403
7bfa6d77
AS
2404 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2405
63f9a672
KB
24062010-07-25 Ken Brown <kbrown@cornell.edu>
2407
2408 * vm-limit.c (check_memory_limits): Fix previous change;
2409 accidentally reverted an earlier change.
2410
24933075
KB
24112010-07-25 Ken Brown <kbrown@cornell.edu>
2412
2413 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2414 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2415
361358ea
JB
24162010-07-25 Juanma Barranquero <lekktu@gmail.com>
2417
2418 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2419 * dired.c (opendir, readdir): Fix prototypes.
2420 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2421 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2422 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2423 (telldir): Remove declaration.
2424 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2425 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2426 * syssignal.h (strsignal): Fix prototype.
2427 * term.c (tparam): Fix prototype.
2428 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2429 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2430 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2431 and __morecore.
2432 * w32gui.h (XParseGeometry): Fix prototype.
2433 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2434 * w32term.c (my_set_focus): Declare inside #if 0.
2435 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2436 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2437 (drain_message_queue, get_next_msg, post_msg, parse_button)
2438 (ClipboardSequence_Proc): Fix prototypes.
2439 (wait_for_sync): Remove declaration.
2440
630b9592
JB
24412010-07-24 Juanma Barranquero <lekktu@gmail.com>
2442
2443 * w32fns.c (w32_to_x_color): Remove, unused.
2444
6a0d6611
AS
24452010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2446
2447 * lisp.h: Remove leftover P_.
2448
4e8608ff
DN
24492010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2450
2451 * ecrt0.c, unexalpha.c: Remove files, unused.
2452
c8197983
AS
24532010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2454
2455 * cmds.c (internal_self_insert): Make static.
2456 * lisp.h (internal_self_insert): Remove declaration.
2457
97b372d7
JB
24582010-07-23 Juanma Barranquero <lekktu@gmail.com>
2459
33ac0414
JB
2460 * alloc.c (free_float):
2461 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2462 * frame.c (delete_frame_handler):
2463 * ralloc.c (reorder_bloc):
2464 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2465 Remove unused static functions.
2466
94da8397
JB
2467 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2468 it is called only from NS code.
2469
2e6c8532
JB
2470 * w32term.c (my_set_focus): #ifdef away; it is called only from
2471 "#ifdef 0" code.
2472
97b372d7
JB
2473 * w32fns.c (x_edge_detection):
2474 * xfaces.c (may_use_scalable_font_p):
2475 Remove obsolete static declarations.
2476
7c3320d8
JB
24772010-07-20 Juanma Barranquero <lekktu@gmail.com>
2478
2479 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2480 (emacs_blocked_realloc, uninterrupt_malloc):
2481 * fringe.c (w32_reset_fringes):
2482 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2483 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2484 * sound.c (be2hs, do_play_sound):
2485 * vm-limit.c (get_lim_data, ret_lim_data):
2486 * w32term.c (x_free_frame_resources):
2487 * xfaces.c (x_create_gc, x_free_gc):
2488 Convert definitions to standard C.
2489
d5273788
SM
24902010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2491
2492 * eval.c (Feval, Ffuncall): Use the new names.
2493
2494 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2495 (DEFUN): Add braces around the union initialisation and use ## to
2496 specify the right union alternative and avoid a cast.
2497
8d16a259
JB
24982010-07-18 Juanma Barranquero <lekktu@gmail.com>
2499
2500 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2501
3b8eff32
CY
25022010-07-17 Chong Yidong <cyd@stupidchicken.com>
2503
2504 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2505
499322ce
J
25062010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2507
2508 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2509 is related to the menu bar (Bug#6499).
a628ad9d 2510 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2511
f6003da5 25122010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2513
2514 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2515
2516 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2517
2518 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2519 i.e. don't put back ButtonRelease (Bug#6608).
2520
2521 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2522 instead of Window. Call xg_event_is_for_menubar when
2523 USE_GTK (Bug#6499).
2524
2525 * gtkutil.h (xg_event_is_for_menubar): Declare.
2526
2527 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2528
f6003da5 25292010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2530
2531 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2532 when it's the same as the old foreground. (Bug#6609)
2533
23243f29
J
25342010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2535
2536 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2537 widget is non-null (Bug#6645).
2538
2b23d2a6
AS
25392010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2540
01b564ff
AS
2541 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2542 Convert old-style definition.
2543
2b23d2a6
AS
2544 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2545 timestamp argument.
2546
c4affd2c
EZ
25472010-07-15 Eli Zaretskii <eliz@gnu.org>
2548
2549 * fringe.c (update_window_fringes): Restore mistakenly reverted
2550 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2551
cf28cebc
J
25522010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2553
2554 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2555 (SET_SAVED_KEY_EVENT): Remove (not used).
2556 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2557 remove size parameter.
2558 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2559 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2560 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2561 ButtonRelease.
6b2c4bd9
J
2562 (x_set_window_size_1): scroll_bar_actual_width is always
2563 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2564
2565 * xdisp.c (pending_menu_activation): Remove extern declaration.
2566 (prepare_menu_bars): Remove setting of pending_menu_activation.
2567
2568 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2569 (x_activate_menubar): Set popup_activated_flag for Xt also.
2570 Remove setting of pending_menu_activation.
cf28cebc
J
2571 (set_frame_menubar): Remove check of pending_menu_activation.
2572 Declare menubar_size before code. Correct spelling in comment.
2573
f6c1c771
KH
25742010-07-14 Kenichi Handa <handa@m17n.org>
2575
2576 * font.c (font_open_entity): Cancel previous change.
2577 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2578
20477505
EZ
25792010-07-13 Eli Zaretskii <eliz@gnu.org>
2580
77defa9a
EZ
2581 Remove subprocesses #ifdefs.
2582 * process.c <inhibit_sentinels>: Move to the common part.
2583 (Fwaiting_for_user_input_p): Move to the common part; return nil
2584 if async subprocesses aren't supported.
2585 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2586 MS-DOS. Remove "#ifdef subprocesses".
2587 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2588 (gettimeofday): Remove "#ifdef subprocesses".
2589 (wait_without_blocking): Remove function.
2590 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2591 Remove "#ifdef subprocesses".
2592 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2593 compiled on MS-DOS.
2594 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2595 wait_for_termination on MS-DOS.
2596 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2597 initialization of inhibit_sentinels.
2598 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2599 subprocesses" conditional.
2600 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2601 wait_for_termination, since `buffer' cannot be an integer when
2602 async subprocesses are not supported
2603 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2604 for ifdefing away the call to Fprocess_status.
2605
20477505
EZ
2606 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2607 away the entire body of the function.
2608
b3ffc17c
DN
26092010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2610
01faa934
DN
2611 Remove subprocesses #ifdefs from term.c.
2612 * process.c (add_keyboard_wait_descriptor)
2613 (delete_keyboard_wait_descriptor): Move to common section, do
2614 nothing when subprocesses is not defined.
a628ad9d
JB
2615 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2616 Remove subprocesses #ifdefs.
01faa934 2617
b3ffc17c
DN
2618 Convert maybe_fatal to standard C.
2619 * lisp.h (verror): Declare.
2620 * eval.c (verror): New function containing the code from ...
2621 (error): ... this. Call verror.
2622 * term.c (vfatal): New function containing the code from ...
2623 (fatal): ... this. Call vfatal.
2624 (maybe_fatal): Convert to standard C, use variable number of
2625 arguments. Declare as non-return.
2626 (init_tty): Fix maybe_fatal call.
2627
0521f580
DN
26282010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2629
2630 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2631 (_scroll_bar_note_movement): Convert definitions to standard C.
2632 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2633 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2634
ebd15611
DN
26352010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2636
2637 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2638 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2639 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2640 (xaw_jump_callback, xaw_scroll_callback)
2641 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2642 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2643 definitions to standard C.
2644 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2645 (popup_activate_callback, popup_deactivate_callback)
2646 (menu_highlight_callback, menubar_selection_callback)
2647 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2648 (free_frame_menubar, popup_selection_callback, as)
2649 (create_and_show_popup_menu, dialog_selection_callback)
2650 (create_and_show_dialog):
2651 * xfns.c (hack_wm_protocols, x_window):
2652 * xfaces.c (x_update_menu_appearance):
2653 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2654 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2655 (set_frame_size, update_wm_hints, setup_frame_gcs)
2656 (update_various_frame_slots, update_from_various_frame_slots)
2657 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2658 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2659 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2660
de06a2dd
AS
26612010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2662
a628ad9d 2663 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2664
fc549af9
EZ
26652010-07-12 Eli Zaretskii <eliz@gnu.org>
2666
2667 * process.c (setup_process_coding_systems): Move to the part
2668 shared by non-subprocesses systems, and make its body empty when
2669 subprocesses is not defined.
2670 (close_process_descs): Move to the part shared by non-subprocesses
2671 systems.
1408902e
EZ
2672 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2673 ANSI C.
fc549af9 2674
d5a3eaaf
AS
26752010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2676
2677 * editfns.c (transpose_markers): Convert old-style definition.
2678 * emacs.c (abort, shut_down_emacs, fixup_locale)
2679 (synchronize_system_time_locale)
2680 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2681 * floatfns.c (extract_float, matherr, init_floatfns)
2682 (syms_of_floatfns): Likewise.
2683 * fns.c (make_hash_table): Likewise.
2684 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2685 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2686 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2687 (ftfont_variation_glyphs): Likewise.
2688 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2689 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2690 * lread.c (read_filtered_event): Likewise.
2691 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2692 * process.c (wait_reading_process_output): Likewise.
2693 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2694 * search.c (search_buffer, boyer_moore): Likewise.
2695 * syntax.c (scan_sexps_forward): Likewise.
2696 * xdisp.c (try_scrolling): Likewise.
2697 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2698 (face_at_string_position): Likewise.
2699 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2700 * xselect.c (x_get_window_property, receive_incremental_selection)
2701 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2702 Likewise.
2703 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2704
6f704c76
DN
27052010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2706
ded80a25
DN
2707 * callproc.c (child_setup): Remove subprocesses conditional.
2708 Remove code dealing with SET_EMACS_PRIORITY, unused.
2709
49d937f4 2710 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2711 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2712
2713 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2714 (__do_global_dtors, __main): Use void in definition.
2715 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2716 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2717 the only users from ...
2718 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2719 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2720 (HAVE_VOLATILE): Remove, unused.
2721
6f704c76
DN
2722 Convert more function definitions to standard C.
2723 * xdisp.c (window_box_edges, handle_single_display_spec)
2724 (display_string): Convert definition to standard C.
2725 * scroll.c (do_direct_scrolling, scrolling_1):
2726 * dispnew.c (allocate_matrices_for_frame_redisplay)
2727 (mirrored_line_dance):
2728 * coding.c (code_convert_string):
2729 * charset.c (map_charset_chars):
2730 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2731 (Fregister_ccl_program, Fregister_code_conversion_map):
2732 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2733 (head_table): Make static and const.
2734
e6cfa7c3
AS
27352010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2736
2737 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2738 (PROFILING_LDFLAGS): Set from substitution.
2739 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2740 CFLAGS last.
2741
892dd565
KH
27422010-07-12 Kenichi Handa <handa@m17n.org>
2743
6f2cdcd1
KH
2744 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2745 (shortlisp): Likewise.
2746
892dd565
KH
2747 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2748
2749 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2750 of FONT_ENTITY_INDEX.
2751 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2752 property, get the property value dynamically.
2753 (Ffont_put): Accept font-entity and font-object too.
2754 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2755 return value changed.
2756 (syms_of_font): Adjusted for the above change.
2757
ae96d47a
AS
27582010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2759
c8fc18ee
AS
2760 * blockinput.h: Remove obsolete comment.
2761
89887d67
AS
2762 * lisp.h: Include <stddef.h>.
2763 (OFFSETOF): Don't define.
2764 (VECSIZE): Use offsetof instead of OFFSETOF.
2765 (PSEUDOVECSIZE): Likewise.
2766 * process.c (conv_sockaddr_to_lisp): Likewise.
2767 * alloc.c: Don't include <stddef.h>.
2768 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2769
ae96d47a
AS
2770 * process.c: Remove obsolete comment.
2771
635c0aa1
CY
27722010-07-11 Chong Yidong <cyd@stupidchicken.com>
2773
2774 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2775
a64df650
AS
27762010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2777
8966b757
AS
2778 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2779 index, rindex.
2780 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2781 * editfns.c (Fuser_full_name, Fformat): Likewise.
2782 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2783 * fileio.c (Ffile_symlink_p): Likewise.
2784 * filelock.c (current_lock_owner): Likewise.
2785 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2786 * fontset.c (fontset_pattern_regexp): Likewise.
2787 * lread.c (read1): Likewise.
2788 * sysdep.c (init_system_name): Likewise.
2789 * xfns.c (select_visual): Likewise.
2790 * s/hpux10-20.h (index, rindex): Don't define.
2791 * s/ms-w32.h (index): Likewise.
2792 * s/usg5-4.h: Likewise.
2793
cf237e27
AS
2794 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2795
a8fe7202
AS
2796 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2797 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2798 (egetenv): Likewise.
2799 * doprnt.c (doprnt): Likewise.
2800 * editfns.c (set_time_zone_rule, format2): Likewise.
2801 * emacs.c (decode_env_path): Likewise.
2802 * eval.c (signal_error, error): Likewise.
2803 * insdel.c (replace_range_2): Likewise.
2804 * keyboard.c (cmd_error_internal): Likewise.
2805 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2806 * print.c (write_string, write_string_1, print_error_message):
2807 Likewise.
2808 * vm-limit.c (warn_function, memory_warnings): Likewise.
2809 * xdisp.c (message1, message1_nolog, message_with_string)
2810 (vmessage, message, message_nolog): Likewise.
2811 * emacs.c: Remove duplicate declaration.
2812 * keyboard.h: Likewise.
2813 * lisp.h: Update prototypes.
2814
bb8e180f
AS
2815 * eval.c: Fix indentation problem.
2816
83380e65
AS
2817 * keyboard.c: Include "process.h"
2818
a64df650
AS
2819 * eval.c: Remove obsolete noinline declaration.
2820 * fns.c: Likewise.
2821
6a8033e1
KR
28222010-07-11 Ken Raeburn <raeburn@raeburn.org>
2823
2824 * doprnt.c (doprnt): Take a va_list argument instead of count and
2825 pointer.
2826 * eval.c (error): Change to a standard-C variadic function.
2827 * xdisp.c (vmessage): Renamed from message, made static, and
2828 changed to take a va_list argument.
2829 (message): New variadic wrapper.
2830 (message_nolog): Now a variadic function, calling vmessage.
2831 * lisp.h: Include stdarg.h for va_list.
2832 (doprnt, error, message, message_nolog): Decls updated.
2833
462aa963
EZ
28342010-07-11 Eli Zaretskii <eliz@gnu.org>
2835
2836 * process.c (syms_of_process) <delete-exited-processes>: Define
2837 even if !subprocesses.
2838 (delete_exited_processes): Ditto.
2839
2840 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2841 (delete_exited_processes): Don't define.
2842
48104462
CY
28432010-07-10 Chong Yidong <cyd@stupidchicken.com>
2844
2845 * frame.c (make_frame): Initialize menu_bar_lines and
2846 tool_bar_lines members.
2847 (make_initial_frame, make_terminal_frame): Initialize
2848 menu_bar_lines using value of menu-bar-mode.
2849
2850 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2851
f388c88a
EZ
28522010-07-10 Eli Zaretskii <eliz@gnu.org>
2853
2854 * process.c: Reshuffle #include's. Condition some of the global
2855 and static variables on `subprocesses'.
2856 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2857 Leave only one implementation.
2858 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2859 (kill_buffer_processes, Flist_system_processes)
2860 (Fprocess_attributes, init_process, syms_of_process): Unify the
2861 implementations for with subprocesses and without them.
2862
723f5a07
J
28632010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2864
2865 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2866 correct size for Motif.
2867 (free_frame_menubar): Call x_set_window_size to update frame size.
2868
2869 * xfns.c (x_window): Set borderWidth to 0 for pane and
2870 EmacsFrame. Frame size calculation is wrong otherwise.
2871
2536a4b7
MA
28722010-07-09 Michael Albinus <michael.albinus@gmx.de>
2873
2874 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2875 allows to suppress errors when polling in Emacs' main loop.
2876 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2877 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2878 (Fdbus_method_error_internal, Fdbus_send_signal)
2879 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2880 (Fdbus_register_method): Use it. (Bug#6579)
2881
5842a27b
DN
28822010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2883
2884 * alloc.c: Convert DEFUNs to standard C.
2885 * buffer.c:
2886 * bytecode.c:
2887 * callint.c:
2888 * callproc.c:
2889 * casefiddle.c:
2890 * casetab.c:
2891 * category.c:
2892 * character.c:
2893 * charset.c:
2894 * chartab.c:
2895 * cmds.c:
2896 * coding.c:
2897 * composite.c:
2898 * data.c:
2899 * dbusbind.c:
2900 * dired.c:
2901 * dispnew.c:
2902 * doc.c:
2903 * dosfns.c:
2904 * editfns.c:
2905 * emacs.c:
2906 * eval.c:
2907 * fileio.c:
2908 * filelock.c:
2909 * floatfns.c:
2910 * fns.c:
2911 * font.c:
2912 * fontset.c:
2913 * frame.c:
2914 * fringe.c:
2915 * image.c:
2916 * indent.c:
2917 * insdel.c:
2918 * keyboard.c:
2919 * keymap.c:
2920 * lread.c:
2921 * macros.c:
2922 * marker.c:
2923 * menu.c:
2924 * minibuf.c:
2925 * msdos.c:
2926 * nsfns.m:
2927 * nsmenu.m:
2928 * nsselect.m:
2929 * print.c:
2930 * process.c:
2931 * search.c:
2932 * sound.c:
2933 * syntax.c:
2934 * term.c:
2935 * terminal.c:
2936 * textprop.c:
2937 * undo.c:
2938 * w16select.c:
2939 * w32console.c:
2940 * w32fns.c:
2941 * w32font.c:
2942 * w32menu.c:
2943 * w32proc.c:
2944 * w32select.c:
2945 * window.c:
2946 * xdisp.c:
2947 * xfaces.c:
2948 * xfns.c:
2949 * xmenu.c:
2950 * xselect.c:
2951 * xsettings.c:
2952 * xsmfns.c: Likewise.
2953
d568829b
EZ
29542010-07-08 Eli Zaretskii <eliz@gnu.org>
2955
2956 * process.c (kbd_is_on_hold, hold_keyboard_input)
2957 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2958
52214050
J
29592010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2960
2961 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2962 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2963 unless USE_LUCID.
2964
313d9eb2
DN
29652010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2966
a628ad9d
JB
2967 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2968 declaration.
d8825aa3 2969
295d0d8f
DN
2970 Clean up include guards.
2971 * tparam.c: Remove include guards for config.h, string.h and code
2972 that assumes #ifndef emacs.
2973 * termcap.c:
2974 * unexalpha.c:
2975 * sysdep.c:
2976 * filemode.c:
2977 * filelock.c:
2978 * bidi.c: Likewise.
2979
49d9e6b0
DN
2980 Remove prefix-args.c
2981 * prefix-args.c: Remove file.
2982 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2983 * Makefile.in (temacs${EXEEXT}): Remove references to
2984 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2985 (mostlyclean): Remove reference to prefix-args.
2986 (prefix-args): Remove.
2987
313d9eb2
DN
2988 Simplify cstart_of_data, start_of_code and related code.
2989 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2990 (start_of_data): Merge into start_of_data function.
2991 * sysdep.c (start_of_text): Remove. Move simplified versions of
2992 it in the only users: unexaix.c and unexec.c.
2993 (read_input_waiting): Remove local declaration of quit_char.
2994 (start, etext): Remove declarations.
2995 (start_of_data): Merge with the version in mem-limits.h and move
2996 to vm-limits.c.
2997 * vm-limit.c (start_of_data): Merged and simplified version of the
2998 code formerly in mem-limits.h and sysdep.c.
2999 * unexec.c (start): New declaration, moved from sysdep.c.
3000 (start_of_text): Simplified version of the code formerly in sysdep.c.
3001 * unexaix.c (start_of_text): Simplified version of the code
3002 formerly in sysdep.c.
3003 * m/alpha.h (HAVE_TEXT_START): Remove.
3004 (TEXT_START): Move ...
3005 * unexalpha.c (TEXT_START): ... here.
3006 * s/hpux10-20.h (TEXT_START): Remove.
3007 * s/darwin.h (TEXT_START):
3008 * m/mips.h (TEXT_START):
3009 * m/macppc.h (HAVE_TEXT_START):
3010 * m/m68k.h (TEXT_START):
3011 * m/iris4d.h (TEXT_START):
3012 * m/intel386.h (TEXT_START):
3013 * m/ibmrs6000.h (TEXT_START):
3014 * m/ia64.h (HAVE_TEXT_START):
3015 * s/msdos.h (TEXT_START): Likewise.
3016
72af86bd
AS
30172010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3018
3019 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3020 (overrun_check_free, xstrdup, allocate_string)
3021 (allocate_string_data, compact_small_strings, Fmake_string)
3022 (make_unibyte_string, make_multibyte_string)
3023 (make_string_from_bytes, make_specified_string, make_float)
3024 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3025 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3026 memcpy, memmove, memset, memcmp.
3027 * atimer.c (start_atimer, set_alarm): Likewise.
3028 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3029 (mmap_realloc, init_buffer_once): Likewise.
3030 * callint.c (Fcall_interactively): Likewise.
3031 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3032 (getenv_internal_1): Likewise.
3033 * casefiddle.c (casify_object): Likewise.
3034 * ccl.c (ccl_driver): Likewise.
3035 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3036 * charset.c (load_charset_map_from_file)
3037 (load_charset_map_from_file, load_charset_map_from_vector)
3038 (Fdefine_charset_internal): Likewise.
3039 * cm.c (Wcm_clear): Likewise.
3040 * coding.c (decode_eol, decode_coding_object)
3041 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3042 * data.c (Faset): Likewise.
3043 * dired.c (directory_files_internal, file_name_completion_stat):
3044 Likewise.
3045 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3046 (clear_glyph_row, copy_row_except_pointers)
3047 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3048 (save_current_matrix, restore_current_matrix)
3049 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3050 (mirror_line_dance, scrolling_window): Likewise.
3051 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3052 Likewise.
3053 * doprnt.c (doprnt): Likewise.
3054 * editfns.c (Fuser_full_name, make_buffer_string_both)
3055 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3056 * emacs.c (sort_args): Likewise.
3057 * eval.c (Fapply, Ffuncall): Likewise.
3058 * fileio.c (Ffile_name_directory, make_temp_name)
3059 (Fexpand_file_name, search_embedded_absfilename)
3060 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3061 (auto_save_error): Likewise.
3062 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3063 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3064 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3065 (Fmake_hash_table): Likewise.
3066 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3067 * ftfont.c (ftfont_text_extents): Likewise.
3068 * getloadavg.c (getloadavg): Likewise.
3069 * image.c (define_image_type, make_image, make_image_cache)
3070 (x_create_x_image_and_pixmap, xbm_image_p)
3071 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3072 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3073 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3074 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3075 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3076 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3077 Likewise.
3078 * indent.c (scan_for_column, compute_motion): Likewise.
3079 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3080 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3081 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3082 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3083 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3084 (store_user_signal_events, menu_bar_items, tool_bar_items)
3085 (process_tool_bar_item, append_tool_bar_item)
3086 (read_char_minibuf_menu_prompt, read_key_sequence)
3087 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3088 Likewise.
3089 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3090 Likewise.
3091 * lisp.h (STRING_COPYIN): Likewise.
3092 * lread.c (Fload, read1, oblookup): Likewise.
3093 * msdos.c (Frecent_doskeys): Likewise.
3094 * nsfns.m (Fx_create_frame): Likewise.
3095 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3096 Likewise.
3097 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3098 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3099 Likewise.
3100 * nsmenu.m (ns_update_menubar): Likewise.
3101 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3102 * print.c (print_unwind, printchar, strout, print_string)
3103 (print_error_message): Likewise.
3104 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3105 (Fmake_network_process, Fnetwork_interface_list)
3106 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3107 (init_process): Likewise.
3108 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3109 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3110 Likewise.
3111 * scroll.c (do_scrolling, do_direct_scrolling)
3112 (scrolling_max_lines_saved): Likewise.
3113 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3114 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3115 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3116 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3117 (emacs_set_tty): Likewise.
3118 * term.c (encode_terminal_code, calculate_costs)
3119 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3120 Likewise.
3121 * termcap.c (tgetst1, gobble_line): Likewise.
3122 * termhooks.h (EVENT_INIT): Likewise.
3123 * tparam.c (tparam1): Likewise.
3124 * unexalpha.c (unexec): Likewise.
3125 * unexec.c (write_segment): Likewise.
3126 * unexmacosx.c (unexec_write_zero): Likewise.
3127 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3128 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3129 * w32font.c (w32font_list_family, w32font_text_extents)
3130 (w32font_list_internal, w32font_match_internal)
3131 (w32font_open_internal, compute_metrics, Fx_select_font):
3132 Likewise.
3133 * w32menu.c (set_frame_menubar, add_menu_item)
3134 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3135 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3136 * w32uniscribe.c (uniscribe_list_family): Likewise.
3137 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3138 * window.c (make_window, replace_window, set_window_buffer)
3139 (Fsplit_window): Likewise.
3140 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3141 (add_to_log, message3, x_consider_frame_title)
3142 (append_space_for_newline, extend_face_to_end_of_line)
3143 (decode_mode_spec_coding, init_glyph_string): Likewise.
3144 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3145 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3146 (face_attr_equal_p, make_realized_face, make_face_cache)
3147 (free_realized_faces, lookup_named_face, smaller_face)
3148 (face_with_height, lookup_derived_face)
3149 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3150 (Finternal_set_font_selection_order, realize_default_face)
3151 (compute_char_face, face_at_buffer_position)
3152 (face_for_overlay_string, face_at_string_position, merge_faces):
3153 Likewise.
3154 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3155 (Fx_window_property, x_create_tip_frame)
3156 (Fx_backspace_delete_keys_p): Likewise.
3157 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3158 (xfont_text_extents): Likewise.
3159 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3160 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3161 * xselect.c (x_queue_event, x_get_window_property)
3162 (receive_incremental_selection): Likewise.
3163 * xsmfns.c (x_session_check_input): Likewise.
3164 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3165 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3166 Likewise.
3167 * character.h (BCOPY_SHORT): Removed.
3168 * config.in: Regenerate.
3169 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3170 * emacs.c (main) [PROFILING]: Don't declare
3171 dump_opcode_frequencies.
3172 * lisp.h (safe_bcopy): Remove declaration.
3173 (memset) [!HAVE_MEMSET]: Declare.
3174 (memcpy) [!HAVE_MEMCPY]: Likewise.
3175 (memmove) [!HAVE_MEMMOVE]: Likewise.
3176 (memcmp) [!HAVE_MEMCMP]: Likewise.
3177 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3178 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3179 Don't define.
3180 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3181 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3182 (BCOPY_DOWNWARD_SAFE): Don't define.
3183 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3184 (memcpy) [!HAVE_MEMCPY]: Define.
3185 (memmove) [!HAVE_MEMMOVE]: Define.
3186 (memcmp) [!HAVE_MEMCMP]: Define.
3187
cb768704
J
31882010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3189
3190 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3191 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3192 New functions.
cb768704
J
3193 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3194 select on empty input mask.
3195 (init_process): Initialize kbd_is_on_hold to 0.
3196
3197 * process.h (hold_keyboard_input, unhold_keyboard_input)
3198 (kbd_on_hold_p): Declare.
3199
3200 * keyboard.c (input_available_signal): Declare.
3201 (kbd_buffer_nr_stored): New function.
3202 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3203 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3204 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3205 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3206 (tty_read_avail_input): If input is on hold, return.
3207 Don't read more that free slots in kbd_buffer (Bug#6571).
3208
3a8ce822
EZ
32092010-07-07 Eli Zaretskii <eliz@gnu.org>
3210
3211 * msdos.h:
3212 * msdos.c:
3213 * dosfns.c:
3214 * w16select.c: Convert function definitions to ANSI C.
3215
a628ad9d
JB
3216 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3217 Remove unused prototypes.
3a8ce822 3218
cf84bb53
JB
32192010-07-07 Juanma Barranquero <lekktu@gmail.com>
3220
3221 * coding.c, sysdep.c: Convert some more functions to standard C.
3222
1a4990fb
JB
32232010-07-07 Juanma Barranquero <lekktu@gmail.com>
3224
3225 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3226 (encode_coding_object): Use SPECPDL_INDEX.
3227 (syms_of_coding): Use DOS_NT.
3228
c0f2f16b
DN
32292010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3230
48fb6855
DN
3231 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3232
c0f2f16b
DN
3233 Make the function member of Lisp_Subr use standard C prototypes.
3234 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3235 (DECL_ALIGN): Add a cast for the function.
3236 * eval.c (Feval, Ffuncall): Use the proper type for each type
3237 function call.
3238
67aecef9
CY
32392010-07-06 Chong Yidong <cyd@stupidchicken.com>
3240
3241 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3242 fringe face id, so face-remapping-alist works (Bug#6091).
3243
b56ceb92
JB
32442010-07-06 Juanma Barranquero <lekktu@gmail.com>
3245
3246 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3247 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3248 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3249
7af07b96
AS
32502010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3251
3252 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3253 * lisp.h: Declare x_get_keysym_name.
3254 * keyboard.c (modify_event_symbol): Don't declare
3255 x_get_keysym_name here.
3256
69e24e34
DN
32572010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3258
3259 * ecrt0.c: Revert conversion to standard C.
3260
d3da34e0 32612010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3262
3263 * vm-limit.c (memory_warnings):
3264 * keyboard.c (modify_event_symbol):
3265 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3266 (round2, emacs_rint):
3267 * process.c (send_process, old_sigpipe): Convert function
3268 definitions and declarations to standard C.
3269
32702010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3271
3272 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3273 * xdisp.c: Convert function definitions to standard C.
3274
3275 * cm.c (cmputc): Arg C is now int, not char.
3276 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3277
00be444c
J
32782010-07-05 James Cloos <cloos@jhcloos.com>
3279
3280 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3281
3282 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3283 _NET_WM_ICON_NAME atoms.
3284
3285 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3286 and _NET_WM_ICON_NAME properties, too, matching what is
3287 done in the Gtk+ case.
3288
e4c8d29a
J
32892010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3290
ff919460
J
3291 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3292
e4c8d29a
J
3293 * xsmfns.c (SSDATA): New macro.
3294 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3295 passed to strlen/strcpy/strcat.
3296 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3297 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3298
3299 * xsettings.c (something_changedCB, parse_settings)
3300 (apply_xft_settings): Reformat prototype.
3301 (something_changedCB, init_gconf): Remove unused variable i.
3302 (read_settings): Remove unused variable long_len.
3303
3304 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3305 (xg_get_image_for_pixmap, create_dialog)
3306 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3307 (menuitem_highlight_callback, make_menu_item)
3308 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3309 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3310 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3311 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3312 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3313 (xg_tool_bar_item_expose_callback): Reformat prototype.
3314 (xg_update_menubar): GList *group => GSList *group.
3315 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3316 before use.
3317 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3318 to GTK_IMAGE (wimage).
3319
dd4c5104
DN
33202010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3321
898b4c5c
DN
3322 * atimer.c: Use "" instead of <> for local includes for
3323 consistency with the rest of the code.
3324
dd4c5104
DN
3325 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3326 * xrdb.c (get_system_name):
3327 * window.c (shrink_windows):
3328 * syntax.c (forw_comment):
3329 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3330 (ins_del_costs):
3331 * mem-limits.h (start_of_data):
3332 * lread.c (readevalloop):
3333 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3334 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3335 * frame.c (x_get_focus_frame):
3336 * floatfns.c (fmod_float):
3337 * fileio.c (choose_write_coding_system):
3338 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3339 (malloc_initialize_hook, sort_args, synchronize_locale):
3340 * doprnt.c (doprnt):
3341 * dired.c (compile_pattern):
3342 * data.c (fmod_float):
3343 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3344 (map_char_table_for_charset):
3345 * charset.c (define_charset_internal):
3346 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3347 to standard C.
3348
9a39b306 33492010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3350 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3351
3352 * lread.c (read1): Fix up last change to not mess up `c'.
3353
e6cb2cbb
JB
33542010-07-04 Juanma Barranquero <lekktu@gmail.com>
3355
3356 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3357
438105ed
JB
33582010-07-04 Juanma Barranquero <lekktu@gmail.com>
3359
3360 Fix prototypes.
3361
e5447b22 3362 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3363 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3364 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3365 arg, as required by internal_condition_case_1.
dcc7404b 3366 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3367 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3368 (analyse_first): Fix "const const".
e5447b22 3369 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3370 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3371 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3372
971de7fb
DN
33732010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3374
3375 * alloc.c: Convert function definitions to standard C.
3376 * atimer.c:
3377 * bidi.c:
3378 * bytecode.c:
3379 * callint.c:
3380 * callproc.c:
3381 * casefiddle.c:
3382 * casetab.c:
3383 * category.c:
3384 * ccl.c:
3385 * character.c:
3386 * charset.c:
3387 * chartab.c:
3388 * cmds.c:
3389 * coding.c:
3390 * composite.c:
3391 * data.c:
3392 * dbusbind.c:
3393 * dired.c:
3394 * dispnew.c:
3395 * doc.c:
3396 * doprnt.c:
3397 * ecrt0.c:
3398 * editfns.c:
3399 * fileio.c:
3400 * filelock.c:
3401 * filemode.c:
3402 * fns.c:
3403 * font.c:
3404 * fontset.c:
3405 * frame.c:
3406 * fringe.c:
3407 * ftfont.c:
3408 * ftxfont.c:
3409 * gtkutil.c:
3410 * indent.c:
3411 * insdel.c:
3412 * intervals.c:
3413 * keymap.c:
3414 * lread.c:
3415 * macros.c:
3416 * marker.c:
3417 * md5.c:
3418 * menu.c:
3419 * minibuf.c:
3420 * prefix-args.c:
3421 * print.c:
3422 * ralloc.c:
3423 * regex.c:
3424 * region-cache.c:
3425 * scroll.c:
3426 * search.c:
3427 * sound.c:
3428 * strftime.c:
3429 * syntax.c:
3430 * sysdep.c:
3431 * termcap.c:
3432 * terminal.c:
3433 * terminfo.c:
3434 * textprop.c:
3435 * tparam.c:
3436 * undo.c:
3437 * unexelf.c:
3438 * window.c:
3439 * xfaces.c:
3440 * xfns.c:
3441 * xfont.c:
3442 * xftfont.c:
3443 * xgselect.c:
3444 * xmenu.c:
3445 * xrdb.c:
3446 * xselect.c:
3447 * xsettings.c:
3448 * xsmfns.c:
3449 * xterm.c: Likewise.
3450
ae492bec
EZ
34512010-07-03 Eli Zaretskii <eliz@gnu.org>
3452
76ea4cc9
EZ
3453 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3454 frames other than the initial one. Fix reversal of colors when
3455 `reverse' is specified in the frame parameters. Call
3456 update_face_from_frame_parameter instead of
3457 internal-set-lisp-face-attribute. Initialize screen colors from
3458 initial_screen_colors[] when f->default_face_done_p is zero,
3459 instead of depending on being called with default-frame-alist as
3460 the alist argument.
3461
3462 * xfaces.c (update_face_from_frame_parameter): Move out of
3463 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3464 with HAVE_WINDOW_SYSTEM.
3465
1e6255ae
EZ
3466 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3467 to menu-bar-mode, if not set in the frame parameters or in
3468 default-frame-alist.
3469
ae492bec
EZ
3470 * w32console.c (sys_tputs): Adjust argument list to prototype in
3471 term.c.
3472
3a35a84c
JB
34732010-07-03 Juanma Barranquero <lekktu@gmail.com>
3474
3475 * lisp.h (memory_warnings): Fix prototype.
3476
3477 * cm.h (evalcost): Fix prototype.
3478
3479 * cm.c (evalcost): Fix arg type.
3480
c532d349
DN
34812010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3482
3483 * term.c (term_clear_mouse_face, Fidentity):
3484 * syssignal.h (signal_handler_t):
3485 * lisp.h (memory_warnings):
3486 * coding.h (preferred_coding_system):
3487 * cm.h (evalcost):
3488 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3489
c0b36d46
EZ
34902010-07-02 Eli Zaretskii <eliz@gnu.org>
3491
3492 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3493 from prototypes.
3494
3495 * msdos.h (load_pixmap): Don't define away.
3496
383e0970
J
34972010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3498
f57e2426
J
3499 * lisp.h:
3500 * atimer.h: Remove define for P_.
3501
3502 * alloc.c: Remove __P and P_ from .c and .m files.
3503 * atimer.c:
3504 * buffer.c:
3505 * callint.c:
3506 * category.c:
3507 * charset.c:
3508 * chartab.c:
3509 * cm.c:
3510 * coding.c:
3511 * composite.c:
3512 * data.c:
3513 * dired.c:
3514 * dispnew.c:
3515 * doc.c:
3516 * editfns.c:
3517 * emacs.c:
3518 * eval.c:
3519 * fileio.c:
3520 * filelock.c:
3521 * fns.c:
3522 * font.c:
3523 * fontset.c:
3524 * frame.c:
3525 * ftfont.c:
3526 * ftxfont.c:
3527 * gmalloc.c:
3528 * gtkutil.c:
3529 * image.c:
3530 * indent.c:
3531 * intervals.c:
3532 * keyboard.c:
3533 * keymap.c:
3534 * lread.c:
3535 * marker.c:
3536 * menu.c:
3537 * minibuf.c:
3538 * print.c:
3539 * process.c:
3540 * scroll.c:
3541 * search.c:
3542 * sound.c:
3543 * strftime.c:
3544 * syntax.c:
3545 * sysdep.c:
3546 * term.c:
3547 * terminal.c:
3548 * textprop.c:
3549 * unexalpha.c:
3550 * w32console.c:
3551 * w32fns.c:
3552 * w32font.c:
3553 * w32menu.c:
3554 * w32term.c:
3555 * w32uniscribe.c:
3556 * window.c:
3557 * xdisp.c:
3558 * xfaces.c:
3559 * xfns.c:
3560 * xfont.c:
3561 * xftfont.c:
3562 * xmenu.c:
3563 * xselect.c:
3564 * xterm.c: Likewise.
3565
383e0970 3566 Remove P_ and __P macros.
f57e2426
J
3567 * atimer.h: Remove P_ and __P macros.
3568 * buffer.h:
383e0970
J
3569 * category.h:
3570 * ccl.h:
3571 * character.h:
3572 * charset.h:
3573 * cm.h:
3574 * coding.h:
3575 * composite.h:
3576 * dispextern.h:
3577 * disptab.h:
9e892c8d 3578 * dosfns.h:
383e0970
J
3579 * font.h:
3580 * fontset.h:
3581 * frame.h:
3582 * gtkutil.h:
3583 * indent.h:
3584 * intervals.h:
3585 * keyboard.h:
3586 * keymap.h:
3587 * lisp.h:
3588 * macros.h:
3589 * md5.h:
3590 * menu.h:
3591 * msdos.h:
3592 * nsterm.h:
3593 * puresize.h:
3594 * region-cache.h:
3595 * syntax.h:
3596 * syssignal.h:
3597 * systime.h:
3598 * termhooks.h:
9e892c8d 3599 * w32font.h:
383e0970
J
3600 * w32term.h:
3601 * widget.h:
3602 * window.h:
3603 * xgselect.h:
3604 * xsettings.h:
3605 * xterm.h: Likewise.
3606
98601119
DN
36072010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3608
d9170db5
DN
3609 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3610
98601119
DN
3611 Cleanup old code.
3612 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3613 * syssignal.h: Remove code for Lynx, not supported anymore.
3614 * vm-limit.c: Remove unused code the depends on emacs not being
3615 defined and NO_LIM_DATA being defined.
3616 * mem-limits.h: Remove dead code.
3617
1f984e12
J
36182010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3619
c49d071a
J
3620 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3621
9d5405ec
J
3622 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3623 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3624
7a18115b
J
3625 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3626 parameters, they are already absolute.
3627
a628ad9d
JB
3628 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3629 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3630
a628ad9d 3631 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3632
a628ad9d
JB
3633 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3634 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3635
a628ad9d
JB
3636 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3637 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3638
c1ef4455
CY
36392010-06-30 Chong Yidong <cyd@stupidchicken.com>
3640
3641 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3642 check default-frame-alist.
3643
ce8f5a9a
AS
36442010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3645
3646 * process.c (create_process): Avoid using invalid file descriptors.
3647
3648 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3649
bf935339
J
36502010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3651
3652 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3653 Improve documentation. Return font regardless of use_system_font.
3654 (syms_of_xsettings): Improve documentation for font-use-system-font.
3655
7c33a057
CY
36562010-07-10 Chong Yidong <cyd@stupidchicken.com>
3657
2ec1b5ee
CY
3658 * xfaces.c (realize_face): Garbage the frame if a face is removed
3659 (Bug#6593).
3660
36612010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3662
3663 * keyboard.c: Remove duplicate <setjmp.h>.
3664 (read_key_sequence): Remove volatile qualifiers.
3665
36662010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3667
3668 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3669 (struct glyph_row): New members left_fringe_offset and
3670 right_fringe_offset.
3671
3672 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3673 specially.
3674 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3675 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3676
3677 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3678 Take account of bitmap offset.
2ec1b5ee
CY
3679 (draw_window_fringes): Take account of window vscroll.
3680 (update_window_fringes): Likewise. Extend top-aligned top indicator
3681 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3682 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3683 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3684
36852010-07-04 Juanma Barranquero <lekktu@gmail.com>
3686
3687 * w32fns.c (Qtooltip): Declare.
3688 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3689
36902010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3691
3692 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3693 grab on just Press (Bug#6499).
3694
36952010-07-02 Chong Yidong <cyd@stupidchicken.com>
3696
3697 * frame.c (Qtooltip): New var.
3698 (delete_frame): Use it. Fix faulty if statement. Don't update
3699 mode line for tooltip frames. Suggested by Martin Rudalics.
3700
3701 * xfns.c (x_create_tip_frame):
3702 * w32fns.c (x_create_tip_frame): Use it.
3703
37042010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3705
3706 * xftfont.c (xftfont_open): Check font width one by one also when
3707 spacing is dual.
3708
3709 * ftfont.c (ftfont_open): Ditto.
3710
6259c2ec
GM
37112010-06-30 Glenn Morris <rgm@gnu.org>
3712
a46007e9
GM
3713 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3714
6259c2ec
GM
3715 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3716
3717 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3718 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3719 * s/darwin.h (SYSTEM_MALLOC):
3720 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3721
5d1d3d04
J
37222010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3723
3724 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3725 (ns_get_screen): Don't assign integer to f.
3726 (Fx_display_color_cells): Declarations before statements.
3727
e547b051
J
37282010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3729
5fc8e5bc
J
3730 * xfns.c (x_default_font_parameter): Remove got_from_system
3731 (Bug#6526).
3732
e547b051
J
3733 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3734 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3735 defines based on what configure finds.
3736
3737 * xterm.c (XTflash): Use gtk_widget_get_window.
3738 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3739 gtk_adjustment_get_page_size.
3740 (handle_one_xevent): Use gtk_widget_get_mapped.
3741 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3742 messages.
3743
3744 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3745
3746 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3747 HAVE_GTK_FILE_SELECTION_NEW.
3748
3749 * gtkutil.c (xg_display_open, xg_display_close): Remove
3750 HAVE_GTK_MULTIDISPLAY, it is always defined.
3751 (xg_display_open): Return type is void.
3752 (gtk_widget_set_has_window)
3753 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3754 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3755 (gtk_adjustment_set_page_increment)
3756 (gtk_adjustment_get_step_increment): #define these if not found
3757 by configure.
3758 (remove_submenu): New define based on Gtk+ version.
3759 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3760 gtk_widget_get_window.
3761 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3762 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3763 (create_dialog): Use gtk_dialog_get_action_area and
3764 gtk_dialog_get_content_area.
3765 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3766 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3767 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3768 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3769 g_object_ref and g_object_unref.
3770 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3771 gtk_widget_get_sensitive.
3772 (xg_update_submenu): Use remove_submenu.
3773 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3774 properties instead to get old x and y position.
3775 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3776 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3777 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3778 (xg_get_tool_bar_widgets): New function.
3779 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3780 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3781 (toolbar_set_orientation): New #define based on if configure
3782 finds gtk_orientable_set_orientation.
3783 (xg_create_tool_bar): Call toolbar_set_orientation.
3784 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3785 instead of gtk_box_pack_start_defaults.
3786
b9229673
CY
37872010-06-28 Chong Yidong <cyd@stupidchicken.com>
3788
3789 * cmds.c (Fdelete_backward_char): Move into Lisp.
3790
bbc803b0
DN
37912010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3792
3793 * s/freebsd.h (BSD4_2): Remove redundant definition.
3794 bsd-common.h defines it already.
3795
6431f2e6
CY
37962010-06-27 Chong Yidong <cyd@stupidchicken.com>
3797
3798 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3799 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3800 tool-bar-mode, which are now set using these X resources at
3801 startup, to determine the defaults (Bug#2249).
3802
3803 * w32fns.c (Fx_create_frame):
3804 * nsfns.m (Fx_create_frame): Likewise.
3805
3806 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3807
8c079ebb
JB
38082010-06-24 Juanma Barranquero <lekktu@gmail.com>
3809
3810 * gtkutil.c (xg_update_scrollbar_pos):
3811 Avoid C99 mid-block variable declaration.
3812
e9b7ab96
JD
38132010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3814
bc869eca
JD
3815 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3816
2b7e356a 3817 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3818
3819 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3820 if height is less than scroll bar min size.
3821 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3822
e9b7ab96
JD
3823 * xfns.c (x_default_font_parameter): Try to open font from system
3824 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3825
a628ad9d 38262010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3827
3828 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3829
70c4cfbb
EZ
38302010-06-20 Eli Zaretskii <eliz@gnu.org>
3831
3832 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3833 most-positive-fixnum, be extra accurate when scrolling window
3834 start, to avoid missing the cursor line.
3835
ad5a12b5
EZ
38362010-06-19 Eli Zaretskii <eliz@gnu.org>
3837
3838 * xdisp.c (try_scrolling): Compute the limit for searching point
3839 in forward scroll from scroll_max, instead of an arbitrary limit
3840 of 10 screen lines. See
3841 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3842 and
3843 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3844 for details.
3845
2a64315a 38462010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3847
3848 * editfns.c (Fbyte_to_string): Pacify compiler.
3849
288cf4e9
SM
38502010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3851
3852 * lread.c (read1): Phase out old-style backquotes a bit more.
3853
6e6e5760
EZ
38542010-06-12 Eli Zaretskii <eliz@gnu.org>
3855
cbc4fd20
EZ
3856 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3857 bidimirror.h.
3858
3859 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3860
317fbf33
EZ
3861 * bidi.c (bidi_initialize): Remove explicit initialization of
3862 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3863 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3864 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3865
3866 * biditype.h: New file.
3867
cbc4fd20
EZ
3868 * bidimirror.h: New file.
3869
6e6e5760
EZ
3870 * window.c (syms_of_window): Doc fix (bug#6409).
3871
4176cba2
RF
38722010-06-12 Romain Francoise <romain@orebokech.com>
3873
3874 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3875 ediff-hook.
3876
cb4bfcb5
GM
38772010-06-10 Glenn Morris <rgm@gnu.org>
3878
64c60c2f
GM
3879 * editfns.c (Fbyte_to_string): Pacify compiler.
3880
cb4bfcb5
GM
3881 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3882
2ec1b5ee
CY
38832010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3884
3885 * alloc.c (Fmake_byte_code): Don't access undefined argument
3886 (Bug#6517).
3887
38882010-06-25 Chong Yidong <cyd@stupidchicken.com>
3889
3890 * xdisp.c (next_element_from_image): Ensure that after-strings are
3891 read the next time we hit handle_stop (Bug#1336).
3892
38932010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3894
3895 * lread.c (read1): Signal error if #s is not followed by paren.
3896
38972010-06-19 Chong Yidong <cyd@stupidchicken.com>
3898
3899 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3900
3901 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3902
39032010-06-15 Glenn Morris <rgm@gnu.org>
3904
3905 * editfns.c (Fbyte_to_string): Pacify compiler.
3906
e454a4a3
SM
39072010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3908
3909 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3910 Check `object's type before accessing its guts.
3911
c1b1acc2
DN
39122010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3913
3914 * s/usg5-4.h: Fix previous change.
3915 Suggested by Lawrence Mitchell <wence@gmx.li>
3916
657d4c0b
AS
39172010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3918
3919 * minibuf.c (Fall_completions): Add more checks.
3920
9b27fd9f
JB
39212010-06-08 Juanma Barranquero <lekktu@gmail.com>
3922
3923 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3924
a99ebb40
DN
39252010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3926
d7c5d87d
DN
3927 * lread.c (X_OK): Remove, unused.
3928
0263a941
DN
3929 * dispnew.c: Remove obsolete comment.
3930
a99ebb40
DN
3931 Remove INCLUDED_FCNTL.
3932 * xterm.c (INCLUDED_FCNTL):
3933 * callproc.c (INCLUDED_FCNTL):
3934 * alloc.c (INCLUDED_FCNTL):
3935 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3936 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3937
13b5221f
MR
39382010-06-07 Martin Rudalics <rudalics@gmx.at>
3939
3940 * window.c (Fselect_window): Move `record_buffer' up to the
3941 beginning of this function, so the buffer gets recorded
3942 even if the selected window does not change.
3943 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3944
5220357f
JB
39452010-06-07 Juanma Barranquero <lekktu@gmail.com>
3946
3947 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3948 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3949
3085237c
DN
39502010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3951
3952 Remove BSTRING related code, all platforms define it.
3953 * s/usg5-4.h (BSTRING): Remove definition.
3954 * s/template.h (BSTRING):
3955 * s/msdos.h (BSTRING):
3956 * s/ms-w32.h (BSTRING):
3957 * s/hpux10-20.h (BSTRING):
3958 * s/gnu-linux.h (BSTRING):
3959 * s/darwin.h (BSTRING):
3960 * s/cygwin.h (BSTRING):
3961 * s/bsd-common.h (BSTRING):
3962 * s/aix4-2.h (BSTRING): Likewise.
3963 * sysdep.c: Remove code depending on BSTRING not being defined.
3964
409f2919
JB
39652010-06-05 Juanma Barranquero <lekktu@gmail.com>
3966
3967 Remove obsolete macro BASE_LEADING_CODE_P.
3968 * character.h (BASE_LEADING_CODE_P): Remove.
3969 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3970 * buffer.c (Fset_buffer_multibyte):
3971 * indent.c (scan_for_column, compute_motion):
3972 * insdel.c (count_combining_before, count_combining_after):
3973 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3974
087fc47a
JB
39752010-06-04 Juanma Barranquero <lekktu@gmail.com>
3976
3977 Turn `directory-sep-char' into a noop.
3978
3979 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3980 (DIRECTORY_SEP): Define unconditionally.
3981
3982 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3983
3984 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3985 call dostounix_filename directly.
3986
3987 * fileio.c (CORRECT_DIR_SEPS): Remove.
3988 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3989 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3990 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3991 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3992
3993 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3994 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3995
0eb7675e
AS
39962010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3997
a628ad9d
JB
3998 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3999 (Bug#6346)
0eb7675e 4000
78edd3b7
JB
40012010-06-03 Juanma Barranquero <lekktu@gmail.com>
4002
4003 * ccl.c (Fccl_program_p): Fix typo in docstring.
4004
eb697db5
DN
40052010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4006
4007 Move UNEXEC definition to autoconf.
4008 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4009 * s/sol2-10.h (UNEXEC):
4010 * s/irix6-5.h (UNEXEC):
4011 * s/hpux10-20.h (UNEXEC):
4012 * s/gnu-linux.h (UNEXEC):
4013 * s/darwin.h (UNEXEC):
4014 * s/cygwin.h (UNEXEC):
4015 * s/bsd-common.h (UNEXEC):
4016 * s/aix4-2.h (UNEXEC):
4017 * m/alpha.h (UNEXEC): Likewise.
4018 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4019
aa3830c4
JB
40202010-06-03 Juanma Barranquero <lekktu@gmail.com>
4021
4022 Remove obsolete pre-unicode2 macros.
4023 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4024 * composite.c (composition_reseat_it):
4025 * data.c (Faset):
4026 * fns.c (Ffillarray):
4027 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4028 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4029
d234d13e
JL
40302010-06-03 Juri Linkov <juri@jurta.org>
4031
4032 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4033 (Fswitch_to_buffer): Remove unused variable `err'.
4034
0d4bcf4d
GM
40352010-06-03 Glenn Morris <rgm@gnu.org>
4036
e23dc1e2
GM
4037 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4038
05b09564
GM
4039 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4040 now that AH_BOTTOM does it.
4041
824e2978
GM
4042 * m/hp800.h (HAVE_ALLOCA):
4043 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4044
0d4bcf4d
GM
4045 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4046 Remove NOT_C_CODE tests, it is always true now.
4047
c55d2abf
DN
40482010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4049
08a494a3
DN
4050 Fix config.h includes.
4051 * xsettings.c:
4052 * xgselect.c:
4053 * nsterm.m:
4054 * nsselect.m:
4055 * nsimage.m:
4056 * nsfont.m:
4057 * nsfns.m:
4058 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4059 other files do.
4060
75934b1d
DN
4061 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4062
9f32a766
DN
4063 * s/sol2-6.h: Remove obsolete comments.
4064
c55d2abf
DN
4065 Remove unnecessary alloca.h includes.
4066 * keymap.c: Do not include alloca.h, config.h does that.
4067 * sysdep.c: Likewise. Do not define fwrite, not used.
4068
06ac62b4
SM
40692010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4070
4071 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4072 the HAVE_TERMIO where it belongs (bug#6149).
4073
1ab8293c
SM
40742010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4075
4076 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4077 of bug#6305).
4078
6dcfd253
EZ
40792010-05-30 Eli Zaretskii <eliz@gnu.org>
4080
4081 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4082 state is always cached (bug#6306).
4083
6d26bbb2
EZ
40842010-05-29 Eli Zaretskii <eliz@gnu.org>
4085
06fa4a23
EZ
4086 Fix cursor motion in bidi-reordered continued lines.
4087 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4088 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
4089 over continuation lines in bidi-reordered buffers. Return
4090 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4091 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4092
f5783df3
MA
40932010-05-28 Michael Albinus <michael.albinus@gmx.de>
4094
4095 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4096
7d56b2dd
KH
40972010-05-28 Kenichi Handa <handa@m17n.org>
4098
4099 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4100 Don't sheck SPEC if it is nil.
4101 (font_list_entities): Call font_delete_unmatched if
b925d231 4102 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4103
e58d4ff7
GM
41042010-05-28 Glenn Morris <rgm@gnu.org>
4105
4106 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4107
f1a5d776
CY
41082010-05-27 Chong Yidong <cyd@stupidchicken.com>
4109
4110 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4111 whether to trash.
4112 (internal_delete_file, Frename_file): Callers changed.
4113 (delete_by_moving_to_trash): Doc fix.
4114 (Fdelete_directory_internal): Don't move to trash.
4115
4116 * callproc.c (delete_temp_file):
4117 * buffer.c (Fkill_buffer): Callers changed.
4118
4119 * lisp.h: Update prototype.
4120
f44a59e6
CY
41212010-05-27 Chong Yidong <cyd@stupidchicken.com>
4122
4123 * xdisp.c (redisplay_window): After redisplay, check if point is
4124 still valid before setting it (Bug#6177).
4125
81ac4f35
GM
41262010-05-27 Glenn Morris <rgm@gnu.org>
4127
4128 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4129 Convert comments to Makefile format.
4130
4131 * Makefile.in (bootstrap-clean): No more Makefile.c.
4132
ccd89fb3
GM
41332010-05-26 Glenn Morris <rgm@gnu.org>
4134
90278cb6
GM
4135 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4136 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4137
ccd89fb3
GM
4138 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4139 Remove.
4140 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4141
b7050583
KH
41422010-05-26 Kenichi Handa <handa@m17n.org>
4143
4144 * composite.c (composition_compute_stop_pos): Fix condition for
4145 backward scanning.
4146
e5458003
GM
41472010-05-25 Glenn Morris <rgm@gnu.org>
4148
c345fe90
GM
4149 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4150 Move before TEMACS_LDFLAGS.
4151 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4152 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4153
2e0689ab
GM
4154 * Makefile.in (NOT_C_CODE): No longer define.
4155 (config.h): No longer include.
4156
8009a5e8
GM
4157 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4158 variables it may reference.
4159
e5458003
GM
4160 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4161 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4162
10f72a37
KH
41632010-05-25 Kenichi Handa <handa@m17n.org>
4164
4165 * dispextern.h (struct composition_it): New members rule_idx and
4166 charpos.
4167
4168 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4169 that the character positions of IT point the last character of the
4170 current grapheme cluster.
4171 (next_element_from_composition): Don't change character positions
4172 of IT.
4173 (append_composite_glyph): Set glyph->charpos to
4174 it->cmp_it.charpos.
4175
4176 * composite.c (autocmp_chars): Change the first argument to RULE,
4177 and try composition with RULE only.
4178 (composition_compute_stop_pos): Record the index number of the
4179 composition rule in CMP_IT->rule_idx.
4180 (composition_reseat_it): Call autocmp_chars repeatedly until the
4181 correct rule of the composition is found.
4182 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4183 is at the last character of the current grapheme cluster when
4184 CMP_IT->reversed_p is nonzero.
4185
171eda53 41862010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4187
171eda53
SM
4188 * editfns.c (Fbyte_to_string): New function.
4189
66a9f7f4
SM
41902010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4191
4192 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4193 Suggested by Masatake YAMATO <yamato@redhat.com>.
4194
d8c315d1
EZ
41952010-05-23 Eli Zaretskii <eliz@gnu.org>
4196
171eda53 4197 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4198
f5b416d2 41992010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4200
4201 * s/netbsd.h: If terminfo is found, use it in preference to
4202 termcap. (Bug#6190) [Backport from trunk]
4203
0416466c
EZ
42042010-05-19 Eli Zaretskii <eliz@gnu.org>
4205
11117830 4206 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4207
4208 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4209 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4210 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4211 and maxpos members instead of start.pos and end.pos, respectively.
4212
4213 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4214 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4215 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4216 (try_window_reusing_current_matrix, try_window_id):
4217 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4218 (init_from_display_pos, init_iterator): Use EMACS_INT for
4219 character and byte positions.
66a9f7f4 4220 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4221 arguments for minimum and maximum buffer positions seen by
4222 display_line for this row. Don't use iterator to find the
4223 position following the maximum one; instead, increment the
11117830
EZ
4224 position found by display_line directly. Fix logic; eol_pos
4225 should be tested before the rest. Handle the case of characters
4226 delivered from display vector (bug#6036). Fix tests related to
4227 it->method. Handle the truncated_on_right_p rows.
4228 (RECORD_MAX_MIN_POS): New macro.
4229 (display_line): Use it to record the minimum and maximum buffer
4230 positions for glyphs in the row being assembled. Record the
4231 position of the newline that terminates the line. If word wrap is
4232 in effect, restore minimum and maximum positions seen up to the
4233 wrap point, when iterator returns to it.
4234 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4235 row and cursor not already at point. Restore original pre-bidi
4236 code for unidirectional buffers.
d36fe237
EZ
4237
4238 * dispnew.c (increment_row_positions, check_matrix_invariants):
4239 Increment and check row->start.pos and row->end.pos, in addition
4240 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4241
11117830
EZ
4242 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4243 Display truncated_on_left_p and truncated_on_right_p flags.
4244 Formatting fixes.
4245 (pmtxrows): Display the ordinal number of each row. Don't display
4246 rows beyond the last one.
4247
4248 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4249 it is not copied by bidi_copy_it.
4250
6e83d800
EZ
42512010-05-22 Eli Zaretskii <eliz@gnu.org>
4252
4253 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4254 (Bug#6237)
4255
110683ad
CY
42562010-05-22 Chong Yidong <cyd@stupidchicken.com>
4257
4258 * image.c (Fimage_flush): Rename from image-refresh.
4259
98fe5161
CY
42602010-05-21 Chong Yidong <cyd@stupidchicken.com>
4261
4262 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4263 just one window.
4264
4265 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4266 (clear_image_cache): If the number of cached images is unusually
4267 large, decrease the cache eviction delay (Bug#6230).
4268
e8752c66
GM
42692010-05-21 Glenn Morris <rgm@gnu.org>
4270
66dbf213
GM
4271 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4272 Move these rules to ns.mk.
4273 * ns.mk: New file.
4274
04384b2d
GM
4275 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4276
e8752c66
GM
4277 * Makefile.in (CANNOT_DUMP): New, set by configure.
4278 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4279
2e2bbddb
JL
42802010-05-20 Juri Linkov <juri@jurta.org>
4281
4282 * fileio.c (Fdelete_file): Change interative spec to use
4283 `read-file-name' like in `find-file-read-args' where the default
4284 value is `default-directory' instead of `buffer-file-name'.
4285 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4286
31c4aaf6
KR
42872010-05-20 Kevin Ryde <user42@zip.com.au>
4288
4289 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4290 (Voverriding_terminal_local_map, Vsystem_key_alist)
4291 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4292
9d5cf9b6
GM
42932010-05-20 Glenn Morris <rgm@gnu.org>
4294
4295 * Makefile.in (DEPDIR): New constant.
4296 (DEPFLAGS): Set with configure, not cpp.
4297 (MKDEPDIR): New, set by configure.
4298 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4299 (clean): Use $DEPDIR.
4300 (deps_frag): Include from configure.
4301 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4302 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4303
ead6f8f5
EZ
4304 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4305 reallocation of the cache. (Bug#6210)
4306
7f34aec3
GM
43072010-05-19 Glenn Morris <rgm@gnu.org>
4308
d494e8f2
GM
4309 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4310
c1d0dcfd
GM
4311 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4312 (GNULIB_VAR): Remove.
4313 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4314
4315 * m/ibms390x.h (LINKER):
4316 * m/macppc.h (LINKER) [GNU_LINUX]:
4317 * s/aix4-2.h (ORDINARY_LINK):
4318 * s/cygwin.h (LINKER):
4319 * s/darwin.h (ORDINARY_LINK):
4320 * s/gnu.h (ORDINARY_LINK):
4321 * s/netbsd.h (LINKER):
4322 * s/usg5-4.h (ORDINARY_LINK):
4323 Move to configure.
4324
7f34aec3
GM
4325 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4326
754790b6
CY
43272010-05-18 Chong Yidong <cyd@stupidchicken.com>
4328
4329 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4330 prevent stack overflow if number of arguments is too large
4331 (Bug#6214).
4332
161e44d1
JB
43332010-05-18 Juanma Barranquero <lekktu@gmail.com>
4334
4335 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4336
be4ff9da
GM
43372010-05-18 Glenn Morris <rgm@gnu.org>
4338
9539dc5d
GM
4339 * s/gnu-linux.h: Combine two conditionals.
4340
4341 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4342 $(POST_ALLOC_OBJ).
4343
40dc6bf4
GM
4344 * Makefile.in (RALLOC_OBJ): New, set by configure.
4345 (rallocobj): Replace with the previous variable.
4346 (otherobj): Use $RALLOC_OBJ.
4347
4348 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4349 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4350
be4ff9da
GM
4351 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4352 (gmallocobj, vmlimitobj): Replace with previous two variables.
4353 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4354
16455a85
GM
43552010-05-17 Glenn Morris <rgm@gnu.org>
4356
4357 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4358 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4359
5fdb7468
GM
43602010-05-16 Glenn Morris <rgm@gnu.org>
4361
7ca1f3f9
GM
4362 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4363
7541dad5
GM
4364 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4365
da53fab9
GM
4366 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4367 trailing "/".
4368
b02a6645
GM
4369 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4370 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4371
8877ca0f
GM
4372 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4373 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4374 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4375 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4376 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4377
5fdb7468
GM
4378 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4379 Remove ${STARTFLAGS}, nothing ever sets it.
4380
95adb4b1
DN
43812010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4382
4383 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4384
676b6304
GM
43852010-05-16 Glenn Morris <rgm@gnu.org>
4386
9beab9ce
GM
4387 * Makefile.in (LIBX_BASE): Always define.
4388
8a95f0e7
GM
4389 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4390
676b6304
GM
4391 * Makefile.in (LIBXT): Always define.
4392
6e546d18
GM
43932010-05-15 Glenn Morris <rgm@gnu.org>
4394
4235ca47 4395 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4396
6e546d18
GM
4397 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4398 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4399
8c5ff6dd
KR
44002010-05-15 Ken Raeburn <raeburn@raeburn.org>
4401
560bb7ae 4402 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4403 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4404
8b4eb796
KR
4405 * emacs.c (main): Initialize initial-environment and
4406 process-environment before generating from env, not after.
4407
8c5ff6dd
KR
4408 Handle --version reasonably in CANNOT_DUMP configuration.
4409 * emacs.c (emacs_version, emacs_copyright): New string variables.
4410 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4411 (syms_of_emacs): Defvar them, and initialize them from the C
4412 string variables.
4413 (main): If initialization hasn't been done, print initial version
4414 info from the C strings, instead of starting an interactive session.
4415
dbd3f723
EZ
44162010-05-15 Eli Zaretskii <eliz@gnu.org>
4417
d20e1419
EZ
4418 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4419 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4420 (bidi_paragraph_init): Remove redundant assertion that we are at
4421 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4422
4423 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4424 (syms_of_xdisp): Defsubr it.
4425
d36fe237
EZ
4426 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4427
dbd3f723
EZ
4428 * Makefile.in: Fix MSDOS-related comments.
4429
02be533b
GM
44302010-05-15 Glenn Morris <rgm@gnu.org>
4431
1a82cca9
GM
4432 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4433 (really-lwlib, really-oldXMenu): Always define.
4434 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4435
3df7b338
GM
4436 * Makefile.in: Simplify cpp conditional.
4437
2b5f541b
GM
4438 * Makefile.in (${ns_appdir}): Simplify using umask.
4439
02be533b
GM
4440 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4441
4e2db1fe
SM
44422010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4443
4444 * eval.c (specbind): Remove left-over duplicate test.
4445 Disallow let-binding frame-local vars. Add comment.
4446
4b292a22
EZ
44472010-05-14 Eli Zaretskii <eliz@gnu.org>
4448
2fe72643 4449 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4450 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4451 (bidi_init_it): Call it.
4452 (bidi_cache_iterator_state): Enlarge the cache if needed.
4453
4e2db1fe 4454 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4455 bidi_get_next_char_visually. All callers changed.
4456
82ebc97b
KH
44572010-05-14 Kenichi Handa <handa@m17n.org>
4458
4459 * dispextern.h (struct composition_it): New member reversed_p.
4460
4461 * composite.c (composition_compute_stop_pos): Search backward if
4462 ENDPOS < CHARPOS.
4463 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4464 Set CMP_IT->reversed_p.
b4b6e17e 4465 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4466
4e2db1fe
SM
4467 * xdisp.c (set_iterator_to_next):
4468 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4469 scanning backward. Call composition_compute_stop_pos if scan
4470 direction is changed.
4471 (next_element_from_buffer): Call composition_compute_stop_pos with
4472 negative ENDPOS if we are scanning backward.
4473 (next_element_from_composition): Pay attention to
4474 IT->cmp_it.reversed_p.
4475
0e5d7800
KH
44762010-05-14 Kenichi Handa <handa@m17n.org>
4477
560bb7ae 4478 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4479
cb027b32
GM
44802010-05-14 Glenn Morris <rgm@gnu.org>
4481
177b0288
GM
4482 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4483
fbc00890
GM
4484 * Makefile.in (mktime, X11, register): Move undefs to configure.
4485
f14d1dfd
GM
4486 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4487 (MSDOS_X_OBJ): New variable.
4488 (MSDOS_SUPPORT_REAL): New constant.
4489 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4490 (obj): Use MSDOS_X_OBJ.
4491 (lisp): Use MSDOS_SUPPORT as a variable.
4492
11842bd8
GM
4493 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4494 (GPM_MOUSE_SUPPORT): Now it's a constant.
4495 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4496 not cpp.
4497
489d31a4 4498 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4499 (ns_appresdir): Remove, unused.
e20f1f07 4500
489d31a4
GM
4501 * Makefile.in (SHELL): Move outside cpp section.
4502
cb027b32
GM
4503 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4504
5a903aa9
GM
45052010-05-13 Glenn Morris <rgm@gnu.org>
4506
3369c79f
GM
4507 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4508 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4509
d5e982a6
GM
4510 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4511 HAVE_WINDOW_SYSTEM must be too.
4512
6192e163
GM
4513 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4514 (lisp): Remove WINNT_SUPPORT.
4515
472c5d6b
GM
4516 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4517 Let configure set these variables (to empty) in this case as well.
4518
0116466b
GM
4519 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4520 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4521
5a903aa9
GM
4522 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4523 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4524 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4525 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4526 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4527 the values output by configure.
5a903aa9
GM
4528 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4529
1a0d7c06
GM
45302010-05-12 Glenn Morris <rgm@gnu.org>
4531
b5457f14
GM
4532 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4533 (LINKER_WAS_SPECIFIED): Remove.
4534
1a0d7c06
GM
4535 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4536 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4537 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4538 * s/cygwin.h (LIB_GCC):
4539 * s/freebsd.h (LIB_GCC):
4540 * s/gnu-linux.h (LIB_GCC):
4541 * s/msdos.h (LIB_GCC):
4542 * s/netbsd.h (LIB_GCC):
4543 Move to configure.
4544
3ffd4615 45452010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4546
4547 * ftfont.c: Fix incorrect parentheses of #if condition for
4548 definining M17N_FLT_USE_NEW_FEATURE.
4549
acddf8ae
GM
45502010-05-11 Glenn Morris <rgm@gnu.org>
4551
4552 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4553 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4554
ae5e04fa
EZ
45552010-05-10 Eli Zaretskii <eliz@gnu.org>
4556
4557 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4558 unibyte buffers. See
4559 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4560
7490175b
GM
45612010-05-10 Glenn Morris <rgm@gnu.org>
4562
97efb629
GM
4563 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4564 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4565 (LIBES): Use LIBS_SYSTEM as a variable.
4566 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4567 * s/aix4-2.h (LIBS_SYSTEM):
4568 * s/freebsd.h (LIBS_SYSTEM):
4569 * s/hpux10-20.h (LIBS_SYSTEM):
4570 * s/sol2-6.h (LIBS_SYSTEM):
4571 * s/unixware.h (LIBS_SYSTEM):
4572 Move to configure.
4573
7490175b
GM
4574 * s/aix4-2.h (MAIL_USE_LOCKF):
4575 * s/bsd-common.h (MAIL_USE_FLOCK):
4576 * s/darwin.h (MAIL_USE_FLOCK):
4577 * s/gnu-linux.h (MAIL_USE_FLOCK):
4578 * s/irix6-5.h (MAIL_USE_FLOCK):
4579 * s/template.h (MAIL_USE_FLOCK):
4580 Move to configure.
4581
0235128c 45822010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4583
4584 * Version 23.2 released.
4585
0235128c 45862010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4587
4588 * composite.c (autocmp_chars): Save point as marker before calling
4589 auto-composition-function (Bug#5984).
4590
4591 * lisp.h (restore_point_unwind): Add prototype.
4592
4593 * fileio.c (restore_point_unwind): Remove static attribute.
4594
0235128c 45952010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4596
4597 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4598 new feature of libotf and m17n-flt.
0235128c
SM
4599 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4600 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4601 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4602 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4603 that OUT is NULL. Use OTF_drive_gsub_with_log and
4604 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4605 OTF_drive_gpos.
4606 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4607 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4608 Setup mflt_enable_new_feature and mflt_try_otf.
4609
4721152c
J
46102010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4611
4612 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4613
4614 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4615 box and toolbar (Bug #6139).
4616 (xg_create_tool_bar): Remove comment (Bug #6139).
4617 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4618 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4619
ee0a16cf
JB
46202010-05-08 Juanma Barranquero <lekktu@gmail.com>
4621
4622 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4623 Update dependencies.
4624
96d79611
EZ
46252010-05-08 Eli Zaretskii <eliz@gnu.org>
4626
4627 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4628 R2L lines.
4629
40c17879
GM
46302010-05-08 Glenn Morris <rgm@gnu.org>
4631
7b42b29f
GM
4632 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4633
40c17879
GM
4634 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4635 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4636 (termcapobj): Replace with TERMCAP_OBJ.
4637 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4638 (LIBES): Use LIBS_TERMCAP as a variable.
4639
4640 * s/freebsd.h (osreldate.h): No longer include, since this file
4641 does not use __FreeBSD_version any more.
4642
4643 * s/aix4-2.h (TERMINFO):
4644 * s/cygwin.h (TERMINFO):
4645 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4646 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4647 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4648 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4649 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4650 * s/irix6-5.h (TERMINFO):
4651 * s/netbsd.h (LIBS_TERMCAP):
4652 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4653 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4654 * s/usg5-4.h (TERMINFO):
4655 Move to configure.
4656
94b612ad
SM
46572010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4658
4659 * eval.c (unbind_to): Don't unbind a local binding into the global
4660 binding when the local binding disappeared. Inversely, don't unbind
4661 a global binding into a newly created local binding.
4662 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4663 can specify the frame to use, when applicable. Adjust callers.
4664
15e12598 46652010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4666 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4667
4668 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4669
f724825e
EZ
46702010-05-07 Eli Zaretskii <eliz@gnu.org>
4671
5cba3209
EZ
4672 * w32fns.c: Include w32.h.
4673 (Fw32_shell_execute): Decode the error message before passing it
4674 to `error'. (Bug#6126)
4675
d16bdfc3
EZ
4676 * msdos.c (dos_set_window_size):
4677 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4678 instead of `XSYMBOL (foo)->value'.
4679
59d93e87
EZ
46802010-05-07 Eli Zaretskii <eliz@gnu.org>
4681
9fdec8bc
EZ
4682 Fix the MS-DOS build, broken by autoconfiscation.
4683
4684 * Makefile.in: Don't use Make-style comments past the "start of
4685 cpp stuff" line.
4686 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4687
4688 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4689 edited directly by msdos/sed1v2.inp).
f724825e 4690
2f86b22b
GM
46912010-05-07 Glenn Morris <rgm@gnu.org>
4692
4693 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4694 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4695 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4696 move out of cpp section.
4697 * s/freebsd.h (LD_SWITCH_SYSTEM):
4698 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4699 * s/netbsd.h (LD_SWITCH_SYSTEM):
4700 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4701
49ebbd65
DN
47022010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4703
4704 Define LIB_STANDARD and START_FILES using autoconf.
4705 * s/usg5-4.h (LIB_STANDARD):
4706 * s/netbsd.h (START_FILES):
4707 * s/irix6-5.h (LIB_STANDARD):
4708 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4709 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4710 * s/freebsd.h (START_FILES):
4711 * s/darwin.h (START_FILES):
4712 * s/cygwin.h (START_FILES):
4713 * s/aix4-2.h (LIB_STANDARD):
4714 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4715 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4716 autoconf, not cpp.
4717
d43c06d6
DN
47182010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4719
28823648
DN
4720 Remove NEED_BSDTTY and NEED_UNISTD_H.
4721 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4722 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4723 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4724 <sys/ptyio.h> and <unistd.h>.
4725
aca00430
DN
4726 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4727
d43c06d6
DN
4728 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4729 * s/gnu.h (START_FILES): Remove empty definition.
4730
3e56b11d
JD
47312010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4732
4733 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4734
e3cf0cde
GM
47352010-05-06 Glenn Morris <rgm@gnu.org>
4736
4737 * Makefile.in (CPP, LN_S): Remove unused variables.
4738
774b9a60
SM
47392010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4740
4741 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4742
4ab92842
LM
47432010-05-05 Lawrence Mitchell <wence@gmx.li>
4744
4745 * m/sparc.h: Fix typo in earlier change.
4746
178f2507
SM
47472010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4748
4749 Misc tweaks.
4750 * eval.c (Fdefvaralias): Remove unintended nested if.
4751 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4752
80f00217 47532010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4754
4755 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4756
ef03a4e6
DN
47572010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4758
58eb6cf0
DN
4759 Remove BSD_PGRPS.
4760 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4761 * s/gnu-linux.h (BSD_PGRPS): Remove.
4762 * term.c (dissociate_if_controlling_tty):
4763 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4764 (init_sys_modes, reset_sys_modes):
4765 * emacs.c (main):
4766 * callproc.c (Fcall_process, child_setup): Remove code depending
4767 on BSD_PGRPS.
4768
ef03a4e6
DN
4769 Remove POSIX_SIGNALS.
4770 * s/usg5-4.h (POSIX_SIGNALS):
4771 * s/netbsd.h (POSIX_SIGNALS):
4772 * s/msdos.h (POSIX_SIGNALS):
4773 * s/ms-w32.h (POSIX_SIGNALS):
4774 * s/hpux11.h (POSIX_SIGNALS):
4775 * s/gnu.h (POSIX_SIGNALS):
4776 * s/gnu-linux.h (POSIX_SIGNALS):
4777 * s/freebsd.h (POSIX_SIGNALS):
4778 * s/darwin.h (POSIX_SIGNALS):
4779 * s/cygwin.h (POSIX_SIGNALS):
4780 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4781 * s/unixware.h:
4782 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4783 * process.c (create_process):
4784 * syssignal.h:
4785 * sysdep.c (wait_for_termination, init_signals):
4786 * process.c (create_process):
4787 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4788 remove all code that assumes the contrary.
4789
49628785
GM
47902010-05-04 Glenn Morris <rgm@gnu.org>
4791
27a2cdfc
GM
4792 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4793 variable.
4794 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4795 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4796 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4797 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4798 LD_SWITCH_SYSTEM_tmp.
4799 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4800 New variables, set by configure.
4801
eb21eab5
GM
4802 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4803 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4804 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4805 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4806 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4807
49628785
GM
4808 * s/aix4-2.h (C_SWITCH_SYSTEM):
4809 * m/alpha.h (C_SWITCH_MACHINE):
4810 Move to configure.in.
4811 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4812 New variables, set by configure.
4813 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4814 $c_switch_machine and $c_switch_system.
4815
7dff330b
DN
48162010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4817
4818 * s/hpux10-20.h (LIB_STANDARD): New definition.
4819 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4820 on it, not used anymore.
4821
53967e09
CY
48222010-05-03 Chong Yidong <cyd@stupidchicken.com>
4823
4824 * eval.c (internal_condition_case_n): Rename from
4825 internal_condition_case_2.
4826 (internal_condition_case_2): New function.
4827
4828 * xdisp.c (safe_call): Use internal_condition_case_n.
4829
4830 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4831 (internal_delete_file, Frename_file): Callers changed.
4832
4833 * buffer.c (Fkill_buffer):
4834 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4835
4836 * lisp.h: Update prototypes.
4837
3dee6fdb
GM
48382010-05-03 Glenn Morris <rgm@gnu.org>
4839
4840 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4841 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4842 (LIBXT): Set with configure, not cpp.
4843 (LIBX): Remove.
4844 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4845
a101e0fb
DN
48462010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4847
4848 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4849 The FreeBSD is not needed, the default works, Solaris version is
4850 not needed, and the remaining case is not supported by configure.
4851
f63d0028
JD
48522010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4853
4854 * xsmfns.c (CHDIR_OPT): New define.
4855 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4856 restarting emacs.
4857
4858 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4859 shut_down_emacs.
4860
4861 * emacs.c (USAGE1): Mention --chdir.
4862 (main): Handle --chdir.
4863 (standard_args): Add --chdir.
4864 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4865 #5552).
4866
e4814a9f
DN
48672010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4868
cd03c74a
DN
4869 Remove LD_SWITCH_MACHINE.
4870 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4871 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4872
c3a398a1
DN
4873 Clean up IRIX code.
4874 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4875 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4876
87e7285c
DN
4877 Clean up AIX code.
4878 * m/ibmrs6000.inp: Remove file, unused.
4879 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4880 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4881 definition ...
4882 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4883
80f00217
JB
4884 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4885 unused.
e4814a9f 4886
59ca28de
EZ
48872010-05-01 Eli Zaretskii <eliz@gnu.org>
4888
197daef4
EZ
4889 Emulate POSIX_SIGNALS on MS-Windows.
4890
4891 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4892 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4893
4894 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4895 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4896 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4897
80f00217
JB
4898 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4899 New stubs.
197daef4 4900
af7c7572
EZ
4901 Miscellaneous fixes of bidi display.
4902
59ca28de
EZ
4903 * xdisp.c (find_row_end): New function, refactored from display_line.
4904 (display_line): Use it.
017ea819
EZ
4905 (extend_face_to_end_of_line): In almost-filled rows, extend only
4906 if the row is R2L and not continued.
166e930d 4907 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4908 Preserve overlay and string info in row->end.
166e930d
EZ
4909 (insert_left_trunc_glyphs): Support addition of left truncation
4910 glyphs to R2L rows.
b47e0dcf 4911 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4912 glyph between adjacent windows. Fix a crash when a display string
4913 is continued to the next line. Don't return zero if cursor was
4914 found by `cursor' property of a display string.
b47e0dcf
EZ
4915 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4916 test for that explicitly.
59ca28de 4917
7acac9f4
GM
49182010-05-01 Glenn Morris <rgm@gnu.org>
4919
4920 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4921 for clarity.
4922 (OTHER_OBJ): Remove.
4923 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4924 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4925
45841e65
KK
49262010-05-01 Karel Klíč <kklic@redhat.com>
4927
4928 * fileio.c (Ffile_selinux_context): Context functions may return null.
4929
afc61943
DN
49302010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4931
80f00217 4932 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4933
5a1bb006
GM
49342010-04-30 Glenn Morris <rgm@gnu.org>
4935
4936 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4937 (OTHER_OBJ): Define as a separate variable, for clarity.
4938
210af043
J
49392010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4940
4941 * xsettings.c: include limits.h and update file comment.
4942
0a7df391
GM
49432010-04-30 Glenn Morris <rgm@gnu.org>
4944
d5096f16
GM
4945 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4946 Set with configure, not cpp.
4947 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4948
7eb1ac33
GM
4949 * Makefile.in (mallocobj): Remove.
4950 (otherobj): Simplify using @OTHER_OBJ@.
4951
517d086b
GM
4952 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4953 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4954 Don't bother making nsgui.h dependency platform-specific.
4955
0a7df391
GM
4956 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4957
d6d23852
SM
49582010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4959
d2630aef
SM
4960 * process.c (read_process_output, exec_sentinel): Don't burp if the
4961 sentinel/filter kills the current buffer (bug#6060).
4962
f9dddf52 4963 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4964 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4965 Remove unused var `args'.
4966 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4967 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4968 * doc.c (store_function_docstring): Use XSETCAR.
4969
f1e3642a
GM
49702010-04-28 Glenn Morris <rgm@gnu.org>
4971
faf535f8
GM
4972 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4973 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4974
c40f9449
GM
4975 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4976
658f86ca
GM
4977 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4978 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4979
bc0b5f61
GM
4980 * Makefile.in (FONT_OBJ): New, set by configure.
4981 (FONT_DRIVERS): Use $FONT_OBJ.
4982
294c50a0
GM
4983 * Makefile.in (LIBXMU): Set with configure, not cpp.
4984 * s/aix4-2.h (LIBXMU):
4985 * s/hpux10-20.h (LIBXMU):
4986 Remove definition, now set in configure.
4987
e6ec4e99
GM
4988 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4989
f1e3642a
GM
4990 * m/amdx86-64.h [i386]: Move this test to configure.in.
4991
c6ea2936
GM
49922010-04-27 Glenn Morris <rgm@gnu.org>
4993
8fdac2c3
GM
4994 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4995 * s/unixware.h (NEED_LIBW): Remove definition.
4996
986fb647
GM
4997 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4998 (TOOLKIT_LIBW): New, set by configure.
4999 (@X_TOOLKIT_TYPE@): No longer define it.
5000
c6ea2936
GM
5001 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5002 (MOTIF_LIBW): Set with configure, not cpp.
5003 * s/aix4-2.h (LIB_MOTIF):
5004 * s/gnu-linux.h (LIB_MOTIF):
5005 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5006
aaa36002
DN
50072010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5008
5009 Reduce CPP usage.
5010 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5011 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
5012 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5013 definitions and undefs. Inline definitions in the only user.
5014 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 5015
b678dd8b
GM
50162010-04-27 Glenn Morris <rgm@gnu.org>
5017
76cda504
GM
5018 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5019 since the defaults (set by the system file) are fine in most cases.
5020 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5021 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5022 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5023 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5024 Remove definitions, since they are set correctly in s/gnu-linux.h.
5025 * s/freebsd.h (START_FILES, LIB_STANDARD):
5026 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5027 * s/hpux10-20.h (START_FILES):
5028 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5029 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5030
b678dd8b
GM
5031 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5032 (MOTIF_LIBW): Use $LIBXP.
5033 (otherobj): Use $WIDGET_OBJ.
5034
9452ded1
DN
50352010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5036
7e10844c
DN
5037 * Makefile.in (LIBS_MACHINE): Remove, unused.
5038
9452ded1
DN
5039 Use autoconf instead of cpp for LIB_MATH.
5040 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5041 * s/cygwin.h (LIB_MATH): Likewise.
5042 * Makefile.in (LIB_MATH): Do not define with cpp.
5043 (LIBES): Use autoconf for LIB_MATH.
5044
fcebfc6a
KH
50452010-04-26 Kenichi Handa <handa@m17n.org>
5046
5047 * composite.c (Ffind_composition_internal): Fix the return value
5048 for an automatic composition.
5049
39e2ad1b
DN
50502010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5051
5052 Remove all NO_ARG_ARRAY uses.
5053 * fns.c (concat2, concat3, nconc2):
5054 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5055 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5056 * m/xtensa.h (NO_ARG_ARRAY):
5057 * m/template.h (NO_ARG_ARRAY):
5058 * m/sparc.h (NO_ARG_ARRAY):
5059 * m/sh3.h (NO_ARG_ARRAY):
5060 * m/mips.h (NO_ARG_ARRAY):
5061 * m/macppc.h (NO_ARG_ARRAY):
5062 * m/iris4d.h (NO_ARG_ARRAY):
5063 * m/intel386.h (NO_ARG_ARRAY):
5064 * m/ibms390x.h (NO_ARG_ARRAY):
5065 * m/ibms390.h (NO_ARG_ARRAY):
5066 * m/ibmrs6000.h (NO_ARG_ARRAY):
5067 * m/ia64.h (NO_ARG_ARRAY):
5068 * m/hp800.h (NO_ARG_ARRAY):
5069 * m/arm.h (NO_ARG_ARRAY):
5070 * m/amdx86-64.h (NO_ARG_ARRAY):
5071 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5072
adf4f59c
EZ
50732010-04-25 Eli Zaretskii <eliz@gnu.org>
5074
6bdf5d65
EZ
5075 * xdisp.c (display_line): Don't assume 2nd call to
5076 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
5077 (iterate_out_of_display_property): New function, body from pop_it.
5078 (pop_it): Use it.
adf4f59c 5079
dfbbda83
GM
50802010-04-24 Glenn Morris <rgm@gnu.org>
5081
5082 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5083 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5084 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5085 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5086
2d4018aa
EZ
50872010-04-24 Eli Zaretskii <eliz@gnu.org>
5088
a49884a6
EZ
5089 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5090 use `get_next_display_element' and `set_iterator_to_next' to
5091 advance to the next character, when looking for the character that
5092 begins the next row.
5093
76db6fcc 5094 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5095 definition of "struct Lisp_Symbol".
5096
70eab5c1
GM
50972010-04-24 Glenn Morris <rgm@gnu.org>
5098
5099 * Makefile.in (CRT_DIR): New variable, set by configure.
5100 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5101 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5102
1ad4cc3d
DN
51032010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5104
e769f484
DN
5105 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5106
4196ff33
DN
5107 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5108
879b0ee4
DN
5109 Remove redundant flags.
5110 * s/freebsd.h (C_SWITCH_SYSTEM):
5111 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5112 * s/netbsd.h (C_SWITCH_SYSTEM):
5113 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5114 of these.
5115
03cbbcb8
DN
5116 Simplify m/intel386.h.
5117 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5118 user: ecrt0.c.
5119 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5120 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5121 the only user: s/unixware.h.
5122 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5123 from m/intel386.h.
5124 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5125 moved here from m/intel386.h.
5126
1ad4cc3d
DN
5127 * m/mips.h: Remove #if 0 code.
5128
8785b888
EZ
51292010-04-23 Eli Zaretskii <eliz@gnu.org>
5130
728588cc
EZ
5131 Fix display of composed characters from L2R scripts in bidi buffers.
5132 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5133 After advancing IT past the composition, resync the bidi iterator
5134 with IT's position. (Bug#5977)
5135
a63f80b4
DN
51362010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5137
5138 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5139 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5140
ff5dec5c
SM
51412010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5142
5143 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5144
8785b888
EZ
51452010-04-23 Eli Zaretskii <eliz@gnu.org>
5146
58ccf243 5147 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5148 * xdisp.c (pop_it): When the stack is popped after displaying
5149 from a string, bidi-iterate to exit from the text portion covered
5150 by the `display' property or overlay. (Bug#5988, bug#5920)
5151
feeb1604
DN
51522010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5153
8e324eb6
DN
5154 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5155 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5156
809fcaba
DN
5157 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5158 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5159
ed710380
DN
5160 Simplify STARTFILES definition.
5161 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5162 relying on Makefile.in to define it.
5163 * s/cygwin.h (START_FILES): Likewise.
5164 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5165
feeb1604
DN
5166 Clean up Solaris code.
5167 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5168 (LIB_MOTIF): Remove, configure takes care of this.
5169 (NOT_USING_MOTIF): Remove, unused.
5170 * xrdb.c: Remove #if 0-ed #include.
5171 (SYSV): Remove conditional for old SysV.
5172 * sysdep.c (closedir): Remove conditional code for Solaris,
5173 Solaris has closedir.
5174
a0d0b563
JD
51752010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5176
5177 * xsettings.c (read_and_apply_settings): Check if current_font is
5178 NULL before strcmp (Bug#6001).
5179
56bae7c7
DN
51802010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5181
5182 Clean up HP-UX files.
5183 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5184 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5185 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5186 * s/hpux10-20.h: ... to the only user, here.
5187
372b7a95
EZ
51882010-04-21 Eli Zaretskii <eliz@gnu.org>
5189
5190 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5191 use buffer-local values of paragraph-start and paragraph-separate.
5192 <paragraph_start_re, paragraph_separate_re>: Rename from
5193 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5194 (Bug#5992)
5195
f904c0f9
JD
51962010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5197
5198 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5199 current_tool_bar_style are new.
5200 (store_config_changed_event): Rename from store_font_changed_event.
5201 (XSETTINGS_TOOL_BAR_STYLE): New define.
5202 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5203 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5204 HAVE_XFT.
5205 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5206 store_config_changed_event.
f904c0f9
JD
5207 (parse_settings): Rename from parse_xft_settings. Read
5208 non-xft xsettings outside #ifdef HAVE_XFT.
5209 (read_settings): Renamed from read_xft_settings.
5210 (apply_xft_settings): Take current settings as parameter. Do not
5211 call read_(xft)_settings.
5212 (read_and_apply_settings): New function.
5213 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5214 read_and_apply_settings if there are settings to be read.
5215 (init_xsettings): Renamed from init_xfd_settings.
5216 Call read_and_apply_settings unconditionally.
5217 (xsettings_initialize): Call init_xsettings.
5218 (Ftool_bar_get_system_style): New function.
5219 (syms_of_xsettings): Define Qmonospace_font_name and
5220 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5221 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5222 dynamic-setting.
31a01b90 5223 Move misplaced HAVE_GCONF
f904c0f9
JD
5224
5225 * xsettings.h (Ftool_bar_get_system_style): Declare.
5226
5227 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5228 Qtext, Qboth, Qboth_horiz are new.
5229 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5230 Vtool_bar_style, tool_bar_max_label_size.
5231
5232 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5233
5234 * keyboard.c: QClabel is new.
5235 (parse_tool_bar_item): Take out QClabel from tool bar items.
5236 Try to construct a label if ther is no QClabel.
5237 (syms_of_keyboard): Intern :label as QClabel.
5238
5239 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5240 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5241 New.
5242
5243 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5244 dynamic-setting.el.
5245
5246 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5247 (xg_make_tool_item, xg_show_toolbar_item): New function.
5248 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5249 Call xg_make_tool_item to make a tool bar item.
5250 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5251
5252 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5253 into account for toolbars.
5254
c632dfda
JD
52552010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5256
5257 * data.c (make_blv): Declarations before code (Bug#5993).
5258
10efe302
GM
52592010-04-21 Glenn Morris <rgm@gnu.org>
5260
5261 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5262 Define using autoconf, not cpp.
5263 (LIBXSM): New variable, set by autoconf.
5264 (LIBXT): Use $LIBXSM.
5265
4285ac5a
DN
52662010-04-21 Dan Nicolaescu <local_user@dannlt>
5267
3ec759e7
DN
5268 Remove NOMULTIPLEJOBS, unused.
5269 * s/template.h (NOMULTIPLEJOBS):
5270 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5271
4285ac5a
DN
5272 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5273 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5274 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5275 detects -znocombreloc and passes it to the linker
5276 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5277
2807228d
GM
52782010-04-21 Glenn Morris <rgm@gnu.org>
5279
5280 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5281
574c05e2
KK
52822010-04-21 Karel Klíč <kklic@redhat.com>
5283
5284 * Makefile.in (LIBSELINUX_LIBS): New.
5285 (LIBES): Add $LIBSELINUX_LIBS.
5286 * eval.c, lisp.h (call7): New function.
5287 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5288 (Ffile_selinux_context, Fset_file_selinux_context):
5289 New functions.
5290 (Fcopy_file): New parameter preserve-selinux-context.
5291 (Frename_file): Preserve selinux context when renaming by copy-file.
5292
91eac4bb 52932010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5294 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5295
50426a04
JB
5296 Don't depend on cm.c or termcap.c on Windows, use stubs.
5297 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5298 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5299 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5300 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5301 (sys_tputs, sys_tgetstr): New stubs.
5302 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5303 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5304
938efb77
JB
53052010-04-20 Juanma Barranquero <lekktu@gmail.com>
5306
5307 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5308
b4bf28b7
SM
53092010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5310
8b1e1112
SM
5311 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5312 Just signal a warning rather than an error when inside a let.
5313 (Fmake_variable_frame_local): Add the same test.
5314
933ac235
SM
5315 * font.c (syms_of_font): Make the style table vars read-only.
5316
b4bf28b7
SM
5317 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5318 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5319
5320 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5321
93d68d0c
EZ
53222010-04-20 Eli Zaretskii <eliz@gnu.org>
5323
5324 Fix R2L paragraph display on TTY.
5325
5326 * xdisp.c (unproduce_glyphs): New function.
5327 (display_line): Use it when produced glyphs are discarded from R2L
5328 glyph rows.
5329 (append_composite_glyph): In R2L rows, prepend the glyph rather
5330 than appending it.
5331
5332 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5333 rather than append it. Set up the resolved_level and bidi_type
5334 attributes of the appended glyph.
283ccc18
EZ
5335 (produce_special_glyphs): Mirror the backslash continuation
5336 character in R2L lines.
93d68d0c 5337
283ccc18 5338 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5339
283ccc18
EZ
5340 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5341 append_stretch_glyph.
5342 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5343 off-by-one error in computing x at end of text in the row.
5344 (append_stretch_glyph): In reversed row, prepend the glyph rather
5345 than append it. Set resolved_level and bidi_type of the glyph.
5346 (extend_face_to_end_of_line): If the row is reversed, prepend a
5347 stretch glyph whose width is such that the rightmost glyph will be
5348 drawn at the right margin of the window. Fix off-by-one error on
5349 TTY frames in testing whether a line needs face extension. Fix
5350 face extension at ZV. If this is the last glyph row, use
5351 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5352 region face.
5353 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5354 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5355 row->continuation_lines_width.
283ccc18
EZ
5356 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5357 are at ZV. Fixes a crash when reseated to ZV by
5358 try_window_reusing_current_matrix.
45903529
EZ
5359 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5360 which happens with R2L glyph rows. Fixes a crash when inserting a
5361 character at end of an R2L line.
283ccc18
EZ
5362 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5363 treat them as having zero-width characters. Improve comments.
5364 Don't reverse pos_before and pos_after for reversed glyph rows.
5365 Set cursor.x to negative value when the cursor might be on the
5366 left fringe.
5367 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5368 left fringe, not the right one.
f951a506
EZ
5369 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5370 (erase_phys_cursor): For reversed cursor_row, support cursor on
5371 the left fringe.
5372
283ccc18
EZ
5373 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5374 of continuation indicators on the fringes.
5375 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5376 left fringe.
5377
f951a506
EZ
5378 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5379 draw cursor on the left fringe.
5380
5381 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5382 cursor on the left fringe.
5383
f951a506
EZ
5384 * dispnew.c (update_text_area): Handle reversed desired rows when
5385 the cursor is on the left fringe.
5386 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5387 below, not by 0, for when the cursor is on the left fringe.
5388
3bb49aaf
JD
53892010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5390
5391 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5392 widget is a scrollbar.
5393
c0be27fd
KH
53942010-04-20 Kenichi Handa <handa@m17n.org>
5395
5396 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5397 only when the arg CHARSET_LIST is nil.
5398
ce5b453a
SM
53992010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5400
5401 Make variable forwarding explicit rather the using special values.
5402 Basically, this makes the structure of buffer-local values and object
5403 forwarding explicit in the type of Lisp_Symbols rather than use
5404 special Lisp_Objects for that. This tends to lead to slightly more
5405 verbose code, but is more C-like, simpler, and makes it easier to make
5406 sure we handled all cases, among other things by letting the compiler
5407 help us check it.
5408 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5409 Removing forwarding objects.
5410 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5411 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5412 explicit rather than hiding them inside Lisp_Object "values".
5413 (XFWDTYPE): New macro.
5414 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5415 (XBUFFER_LOCAL_VALUE): Remove.
5416 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5417 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5418 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5419 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5420 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5421 Remove the Lisp_Misc_* header.
5422 (struct Lisp_Buffer_Local_Value): Redefine.
5423 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5424 (struct Lisp_Misc_Any): Add filler to get the right size.
5425 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5426 Lisp_Intfwd.
5427 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5428 (DEFVAR_KBOARD): Allocate a forwarding object.
5429 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5430 (let_shadows_global_binding_p): New function.
5431 (union Lisp_Val_Fwd): New type.
5432 (make_blv): New function.
5433 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5434 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5435 (swap_in_symval_forwarding, find_symbol_value, Fset)
5436 (let_shadows_buffer_binding_p, set_internal, default_value)
5437 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5438 (Fkill_local_variable, Fmake_variable_frame_local)
5439 (Flocal_variable_p, Flocal_variable_if_set_p)
5440 (Fvariable_binding_locus):
5441 * xdisp.c (select_frame_for_redisplay):
5442 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5443 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5444 * frame.c (store_frame_param):
5445 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5446 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5447 value structure.
5448 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5449 (clone_per_buffer_values): Only adjust markers into the current buffer.
5450 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5451 (Fbuffer_local_value, set_buffer_internal_1)
5452 (swap_out_buffer_local_variables):
5453 Adapt to the new symbol value structure.
5454 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5455 (defvar_per_buffer): Take a new arg for the fwd object.
5456 (buffer_lisp_local_variables): Return a proper alist (different fix
5457 for bug#4138).
5458 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5459 (Fgarbage_collect): Don't handle buffer_defaults specially.
5460 (mark_object): Handle new symbol value structure rather than the old
5461 special Lisp_Misc_* objects.
5462 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5463 * term.c (set_tty_color_mode):
5464 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5465 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5466 a buffer_local_flags.
5467 * print.c (print_object): Get rid of impossible forwarding objects.
5468
fd3998ff
EZ
54692010-04-19 Eli Zaretskii <eliz@gnu.org>
5470
5471 * bidi.c (bidi_get_type, bidi_get_category)
5472 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5473 (bidi_type_of_next_char, bidi_level_of_next_char):
5474 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5475
e42cd1a7
JB
54762010-04-19 Juanma Barranquero <lekktu@gmail.com>
5477
5478 * dired.c (Ffile_attributes): Fix typo in docstring.
5479
6e104790 54802010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5481
5482 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5483 NSInteger (Bug#5811).
5484
6e104790 54852010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5486
5487 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5488 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5489
6e104790 54902010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5491
5492 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5493
6e104790
SM
54942010-04-19 Chong Yidong <cyd@stupidchicken.com>
5495
5496 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5497 terminal frames (Bug#5837).
5498
37dcfea0
EZ
54992010-04-19 Eli Zaretskii <eliz@gnu.org>
5500
d1da276f
EZ
5501 * .gdbinit (xsubchartable): New command.
5502
37dcfea0
EZ
55032010-04-19 Eli Zaretskii <eliz@gnu.org>
5504
5505 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5506 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5507 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5508 and
5509 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5510
e9515805
SM
55112010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5512
5513 * alloc.c (Fpurecopy): Hash-cons if requested.
5514 (syms_of_alloc): Update purify-flag docstring.
5515
22aa44a8
JD
55162010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5517
5518 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5519 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5520
ebb5722e
EZ
55212010-04-17 Eli Zaretskii <eliz@gnu.org>
5522
5523 Fix a crash when an NSM character is inserted at BEGV.
5524
5525 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5526 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5527 NEUTRAL_B or UNKNOWN_BT.
5528
0f4442ef
EZ
55292010-04-16 Eli Zaretskii <eliz@gnu.org>
5530
5531 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5532 other rows with cursor unless they are different from this row and
5533 this row is part of a continued line. (Bug#5943)
5534
7d4e45f8
DN
55352010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5536
5537 * s/freebsd.h: Restore osreldate.h include.
5538 Suggested by Naohiro Aota.
5539
5ba5ec85
J
55402010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5541
5542 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5543
20af301d
CY
55442010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5545
5546 * s/cygwin.h: Avoid linking against static libgcc.
5547
a4b000fb
JL
55482010-04-15 Juri Linkov <juri@jurta.org>
5549
5550 * window.c: Add Qscroll_command.
5551 Remove Vscroll_preserve_screen_position_commands.
5552 (window_scroll_pixel_based, window_scroll_line_based): Check the
5553 `scroll-command' property on the last command instead of searching
5554 the last command in Vscroll_preserve_screen_position_commands.
5555 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5556 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5557 (scroll-preserve-screen-position): Doc fix.
5558 (Vscroll_preserve_screen_position_commands): Remove variable.
5559
bc319ba4
DN
55602010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5561
6bb24457
DN
5562 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5563
19d4c244
DN
55642010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5565
5566 Reduce cpp use in Makefile.in.
5567 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5568 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5569 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5570 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5571 (CRT0_COMPILE): Remove, inline it in the only user.
5572
32129746
JL
55732010-04-14 Juri Linkov <juri@jurta.org>
5574
5575 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5576 `scroll-up-command' and `M-v' from `scroll-down' to
5577 `scroll-down-command'.
5578
9013a7f8
JL
55792010-04-14 Juri Linkov <juri@jurta.org>
5580
5581 * window.c (Vscroll_preserve_screen_position_commands): New variable
5582 with the default value as the list of Qscroll_down and Qscroll_up.
5583 (window_scroll_pixel_based, window_scroll_line_based): Search the
5584 last command in the list Vscroll_preserve_screen_position_commands
5585 instead of comparing with Qscroll_up and Qscroll_down.
5586
4bef8d26
JD
55872010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5588
92848133
JD
5589 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5590 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5591 does that.
5592
4bef8d26
JD
5593 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5594 to zero.
5595
58b963f7
SM
55962010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5597
84164a0d
SM
5598 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5599
2b0a91e7
SM
5600 Try to solve the problem of spurious EOF chars in long lines of text
5601 sent to interactive subprocesses.
5602 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5603 (system_process_attributes): Remove unused var `ttotal'.
5604 * process.c (send_process): Don't bother breaking long line with EOF
5605 chars when talking to ttys any more.
5606 (wait_reading_process_output): Output a warning when called in such
5607 a way that it could block without being interruptible.
5608
58b963f7
SM
5609 Try to detect file modification within the same second.
5610 * buffer.h (struct buffer): New field modtime_size.
5611 * buffer.c (reset_buffer): Initialize it.
5612 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5613 (Fverify_visited_file_modtime): Check it.
5614 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5615 (Fset_visited_file_modtime): Set (or clear) it.
5616
01f5787b
SM
56172010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5618
5619 * process.c (status_notify): Remove unused var `ro'.
5620
83725342
JD
56212010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5622
5623 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5624 more than one visual (Bug#5938).
5625
b9465836
DN
56262010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5627
50426a04
JB
5628 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5629 Undefine.
b9465836 5630
8d9c8ece
DN
56312010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5632
b1f52161
DN
5633 Remove C_SWITCH_SYSTEM_TEMACS.
5634 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5635 (malloc, realloc, free): Use emacs, not temacs for conditional
5636 definition.
5637
5638 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5639 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5640
8d9c8ece
DN
5641 Use autoconf, not cpp for some variables.
5642 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5643 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5644 (ALL_CFLAGS): Use them as make variables.
5645 (really-lwlib, really-oldXMenu): Do not pass them.
5646
1ecb2d3f
JD
56472010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5648
5649 * xmenu.c (apply_systemfont_to_dialog): New.
5650 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5651
3a4fa2f2
SM
56522010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5653
97e53006
SM
5654 * process.c (exec_sentinel): Preserve current-buffer.
5655
3a4fa2f2
SM
5656 * process.c (read_process_output): Move the save-current-buffer to
5657 apply to both the filter and the non-filter branches.
5658
88df7221
DN
56592010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5660
5661 * s/msdos.h (UNEXEC): New definition.
5662
5634ff85
YM
56632010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5664
6eff5c3d
YM
5665 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5666 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5667
5668 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5669 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5670 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5671 TRY_WINDOW_CHECK_MARGINS.
5672
5673 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5674 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5675 width only when it is for padding.
5634ff85 5676
b13aef54
J
56772010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5678
5679 * xfns.c (Fx_show_tip): Call try_window in a loop until
5680 fonts_changed_p is zero (Bug#2423).
5681
21d28484
EZ
56822010-04-08 Eli Zaretskii <eliz@gnu.org>
5683
5684 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5685 the end of TEXT_AREA. (Bug#5856)
5686
0269ef77
JD
56872010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5688
5689 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5690 HAVE_GCONF.
5691
5930fe97
EZ
56922010-04-08 Eli Zaretskii <eliz@gnu.org>
5693
5694 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5695 prev.orig_type, for resolving type of NSM. (Bug#5858)
5696
99852628
JD
56972010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5698
5699 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5700 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5701 in current_font.
5702 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5703 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5704 New functions.
5705 (syms_of_xsettings): Initialize current_font.
5706 defsubr Sfont_get_system_normal_font.
99852628 5707
686b968e
JB
5708 * xsettings.h (Ffont_get_system_normal_font)
5709 (xsettings_get_system_normal_font): Declare.
99852628
JD
5710
5711 * xfns.c (extern xlwmenu_default_font): Remove.
5712 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5713 to xlwmenu.c.
5714
5715 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5716 menu items in UTF-8.
5717
5718 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5719 (apply_systemfont_to_menu): New function.
5720 (set_frame_menubar, create_and_show_popup_menu): Call
5721 apply_systemfont_to_menu.
5722
7fc874c4
J
57232010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5724
5725 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5726 FRAME_LINE_TO_PIXEL_Y.
5727
5728 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5729 pixelwidth/height.
5730
863bf481
DN
57312010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5732
5e5a3b92
DN
5733 Simplify code for HP machines.
5734 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5735 for GNU_LINUX, not needed.
5736 (UNEXEC, NEED_BSDTTY): Move definitions...
5737 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5738
863bf481
DN
5739 * m/iris4d.h (UNEXEC): Move definition ...
5740 * s/irix6-5.h (UNEXEC): ... here.
5741
3e6bec3b
JD
57422010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5743
5744 * xfns.c (set_machine_and_pid_properties): New function.
5745 (Fx_create_frame): Call set_machine_and_pid_properties.
5746
2912322b
SM
57472010-04-03 Eli Zaretskii <eliz@gnu.org>
5748
1502b819
EZ
5749 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5750 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5751 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5752
2912322b
SM
5753 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5754 in this function. (Bug#5703)
5755
57562010-04-03 Chong Yidong <cyd@stupidchicken.com>
5757
5758 * nsterm.h: Fix last change.
5759
c435b432
DN
57602010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5761
a568f507
DN
5762 * m/intel386.h (NO_REMAP): Move definition ...
5763 * s/msdos.h (NO_REMAP): ... here.
5764
4cd9f6c2
DN
5765 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5766
c435b432
DN
5767 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5768 used on those platforms.
5769
42a2c622
DN
57702010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5771
5772 Remove extern errno declarations.
5773 * xterm.c:
5774 * xrdb.c:
5775 * w32term.c:
5776 * unexec.c:
5777 * unexaix.c:
5778 * sysdep.c:
5779 * process.c:
5780 * lread.c:
5781 * keyboard.c:
5782 * floatfns.c:
5783 * filelock.c:
5784 * fileio.c:
5785 * emacs.c (main):
5786 * ecrt0.c:
5787 * dispnew.c:
5788 * callproc.c:
5789 * buffer.c: Remove errno extern declarations.
5790 * s/netbsd.h (NEED_ERRNO): Remove.
5791
8224f93d
DN
57922010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5793
5794 Remove all uses of LIBX11_SYSTEM.
5795 * Makefile.in (LIBX11_SYSTEM): Remove.
5796 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5797 instead.
5798
814062c7
EZ
57992010-04-01 Eli Zaretskii <eliz@gnu.org>
5800
ed68db4d
EZ
5801 Remove support for DJGPP v1.x (bug#5813).
5802
5803 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5804 * s/msdos.h:
5805 * unexec.c (make_hdr, copy_text_and_data):
5806 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5807 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5808 (IT_set_terminal_modes, __write, _rename, gethostname)
5809 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5810 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5811 the value of __DJGPP__.
ed68db4d
EZ
5812 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5813 compatibility code.
8224f93d
DN
5814 * lread.c:
5815 * gmalloc.c (memalign):
5816 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5817 * emacs.c (main):
5818 * dosfns.c (init_dosfns):
ed68db4d
EZ
5819 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5820
52f4d8d5
EZ
58212010-04-01 Eli Zaretskii <eliz@gnu.org>
5822
814062c7
EZ
5823 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5824 string with `cursor' property comes from an `after-string'
5825 overlay. (Bug#5816)
5826
0dc2e11d
GM
58272010-04-01 Glenn Morris <rgm@gnu.org>
5828
5829 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5830 Define as Makefile variables.
5831 (LIBX): Use above variables rather than directly using autoconf.
5832
1d29df59
DN
58332010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5834
5835 Clean up BSD_SYSTEM use.
5836 * xterm.c:
5837 * process.c:
5838 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5839 for including <sys/ioctl.h>.
5840 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5841 code is only used for MSDOS.
5842
1546c559
JL
58432010-03-31 Juri Linkov <juri@jurta.org>
5844
5845 * image.c: Add `Qextension_data'.
5846 (syms_of_image): Initialize and staticpro `Qextension_data'.
5847 (Fimage_metadata): Rename from `Fimage_extension_data'.
5848 (gif_load): Put GIF extension data to the property
5849 `Qextension_data'.
5850
6521c534
CY
58512010-03-31 Chong Yidong <cyd@stupidchicken.com>
5852
5853 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5854 * nsterm.h: Fix prototype.
5855
52c30783
EZ
58562010-03-31 Eli Zaretskii <eliz@gnu.org>
5857
5858 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5859 trailing whitespace in right-to-left rows.
5860
855a0da7
SM
58612010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5862
5863 Get rid of the direct_output optimizations.
5864 * keyboard.c (nonundocount): Remove extern declaration.
5865 (command_loop_1): Remove brittle optimisation for cheap and
5866 common operations.
5867 * xdisp.c (redisplay_internal): Don't bother checking
5868 redisplay_performed_directly_p any more.
5869 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5870 any more.
5871 * dispnew.c (redisplay_performed_directly_p)
5872 (direct_output_for_insert, direct_output_forward_char):
5873 * dispextern.h (redisplay_performed_directly_p)
5874 (direct_output_for_insert, direct_output_forward_char): Remove.
5875 * cmds.c (nonundocount): Make it static.
5876
85738751 58772010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5878
5879 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5880
85738751 58812010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5882
5883 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5884 invisible (Bug#5766).
5885
85738751 58862010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5887
855a0da7
SM
5888 * xdisp.c (x_consider_frame_title, update_window_cursor):
5889 Remove HAVE_NS conditionals.
194d44e7 5890 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5891
5892 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5893 filename for the title.
5894 (ns_set_doc_edited): Do nothing if the selected window is a
5895 minibuffer window.
5896
5897 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5898 ns_set_doc_edited.
5899
5900 * nsterm.m: Remove unneeded prototype.
5901
85738751 59022010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5903
5904 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5905 in the DOC file. (Bug#5336)
5906
85738751 59072010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5908
5909 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5910
75d1428c
SM
59112010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5912
5913 * window.c (keys_of_window): Remove redundant/overridden bindings.
5914
82043cfb
EZ
59152010-03-30 Eli Zaretskii <eliz@gnu.org>
5916
5917 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5918 Restore original behavior when the iterator is not bidi_p.
5919
b5dd0ae7
DN
59202010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5921
5922 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5923
bd924a5d
EZ
59242010-03-30 Eli Zaretskii <eliz@gnu.org>
5925
5926 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5927 are outside the range of cached character positions.
5928
3580374b
JB
59292010-03-30 Juanma Barranquero <lekktu@gmail.com>
5930
5931 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5932
a7b02820
EZ
59332010-03-30 Eli Zaretskii <eliz@gnu.org>
5934
5935 Initial support for bidirectional editing.
5936
5937 * Makefile.in (obj): Include bidi.o.
5938 (bidi.o): New target.
5939
5940 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5941 ($(BLD)/bidi.$(O)): New target.
5942
5943 * bidi.c: New file.
5944
5945 * buffer.h (struct buffer): New members bidi_display_reordering
5946 and bidi_paragraph_direction.
5947
5948 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5949 and bidi_paragraph_direction.
5950 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5951 and bidi-paragraph-direction.
5952 (Fbuffer_swap_text): Swap the values of
5953 bidi_display_reordering and bidi_paragraph_direction.
5954
5955 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5956 (bidi_type_t, bidi_dir_t): New types.
5957 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5958 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5959 prev_stop, base_level_stop, and eol_pos.
5960 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5961 (IT_STACK_SIZE): Enlarge to 5.
5962 (struct glyph_row): New member reversed_p.
5963 <string_buffer_position>: Update prototype.
5964 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5965 glyph_row if bidi_it.paragraph_dir == R2L.
5966 (struct glyph): New members resolved_level and bidi_type.
5967
5968 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5969 processing or buffer's direction is right-to-left.
5970 (prepare_desired_row): Preserve the reversed_p flag.
5971 (row_equal_p): Compare the reversed_p attributes as well.
5972
5973 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5974 bidi_init_it and set it->paragraph_embedding from the current
5975 buffer's value of bidi_paragraph_direction.
5976 (reseat_1): Initialize bidi_it.first_elt.
5977 (set_iterator_to_next, next_element_from_buffer): Use the value of
5978 paragraph_embedding to determine the paragraph direction.
5979 (set_iterator_to_next): Under bidi reordering, call
5980 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5981 new_paragraph flag is set in the bidi iterator.
5982 (next_element_from_buffer): If bidi_it.first_elt is set,
5983 initialize paragraph direction and find the first character to
5984 display in the visual order. If reseated to a middle of a line,
5985 prime the bidi iterator starting at the line's beginning. Handle
5986 the situation where we overstepped stop_charpos due to
5987 non-linearity of the bidi iteration. Likewise for when we back up
5988 beyond the previous stop_charpos. When moving across stop_charpos,
5989 record it in prev_stop.
5990 (display_line): Set row->end and it->start for the next row to the
5991 next character in logical order. Always extend reversed_p rows to
5992 the end of line, even if they end at ZV. Copy the reversed_p flag
5993 to the next glyph row. Keep calling set_cursor_from_row for
5994 bidi-reordered rows even if we already have a possible candidate
5995 for cursor position. Set row_end after all the row's glyphs have
5996 been produced, by looping over the glyphs. Record the position
5997 after EOL in it->eol_pos, and use it to set end_pos of the last
5998 row produced for a continued line.
5999 <Qright_to_left, Qleft_to_right>: New variables.
6000 (syms_of_xdisp): Initialize and staticpro them.
6001 (string_buffer_position_lim): New function.
6002 (string_buffer_position): Most of code moved to
6003 string_buffer_position_lim. Last argument and return value are
6004 now EMACS_INT; all callers changed.
6005 (set_cursor_from_row): Rewritten to support bidirectional text and
6006 reversed glyph rows.
6007 (text_outside_line_unchanged_p, try_window_id): Disable
6008 optimizations if we are reordering bidirectional text and the
6009 paragraph direction can be affected by the change.
6010 (append_glyph, append_composite_glyph)
6011 (produce_image_glyph, append_stretch_glyph): Set the
6012 resolved_level and bidi_type members of each glyph.
6013 (append_glyph): If the glyph row is reversed, prepend the glyph
6014 rather than appending it.
6015 (handle_stop_backwards): New function.
6016 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6017 (reseat): call handle_stop_backwards to recompute prev_stop and
6018 base_level_stop for the new position.
6019 (handle_invisible_prop): Under bidi iteration, skip invisible text
6020 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6021 paragraph direction. Update IT->prev_stop after skipping
6022 invisible text.
6023 (move_it_in_display_line_to): New variables prev_method
6024 and prev_pos. Compare for strict equality in
6025 BUFFER_POS_REACHED_P.
6026 (try_cursor_movement): Examine all the candidate rows that occlude
6027 point, to return the best match. If rows are bidi-reordered
6028 and point moved backwards, back up to the row that is not a
6029 continuation line, and start looking for a suitable row from
6030 there.
6031
6032 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6033 rather than appending, if the glyph_row's reversed_p flag is set.
6034 Set the resolved_level and bidi_type members of each glyph.
6035
6036 * .gdbinit (pbiditype): New command.
6037 (pgx): Use it to display bidi level and type of the glyph.
6038 (pitx): Display some bidi information about the iterator.
6039 (prowlims, pmtxrows): New commands.
6040
32a8894e
DN
60412010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6042
6043 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6044 * s/usg5-4.h (LIBS_DEBUG):
6045 * s/irix6-5.h (C_DEBUG_SWITCH):
6046 * s/gnu-linux.h (LIBS_DEBUG):
6047 * s/darwin.h (LIBS_DEBUG):
6048 * s/bsd-common.h (LIBS_DEBUG):
6049 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6050 * m/iris4d.h (LIBS_DEBUG):
6051 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6052
6053 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6054 (LIBS_DEBUG): Remove definition.
6055
649dbf36
CY
60562010-03-27 Chong Yidong <cyd@stupidchicken.com>
6057
6058 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6059 Windows.
6060
cad4261f
YM
60612010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6062
6063 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6064 `connect' (Bug#5723).
6065
cd591dbc
HE
60662010-03-25 Helmut Eller <eller.helmut@gmail.com>
6067
6068 * process.c (Fmake_network_process): Call `select' for interrupted
6069 `connect' rather than creating new socket (Bug#5173).
6070
e867cb5d 60712010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
6072
6073 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6074
6075 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6076
6077 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6078
e867cb5d 60792010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
6080
6081 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6082 XLoadQueryFont.
6083
e867cb5d 60842010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
6085
6086 * coding.c (decode_coding_ccl): Fix previous change for the
6087 multibyte case.
fb608df3
KH
6088 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6089 case that the output buffer is fullfilled.
6090 (encode_coding): Setup ccl program here.
fbdc1721 6091
5845f0ed
DN
60922010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6093
814fb708
DN
6094 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6095
5845f0ed
DN
6096 Simplify LIBS_MACHINE definitions.
6097 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6098 * m/iris4d.h (LIBS_MACHINE): Likewise.
6099 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6100 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6101 * s/netbsd.h: Remove commented out code.
5845f0ed 6102
b7064064
DN
61032010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6104
df7734b2
DN
6105 Remove dead code dealing with POSIX_SIGNALS.
6106 * atimer.c (set_alarm): Remove dead code, all USG systems define
6107 POSIX_SIGNALS.
6108 * data.c (arith_error): Likewise.
6109 * keyboard.c (input_available_signal, handle_user_signal)
6110 (interrupt_signal): Likewise.
6111 * process.c (sigchld_handler): Likewise.
6112 (create_process): Remove if 0 code. Remove HPUX conditional when
6113 !defined (POSIX_SIGNALS), it cannot be true.
6114 * syssignal.h: Remove USG5_4 and USG conditionals when
6115 !POSIX_SIGNALS, they cannot be true.
6116
b7064064
DN
6117 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6118 NO_SOCK_SIGIO, not used anymore.
6119
55da5ee3
DN
61202010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6121
0be96e3a
DN
6122 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6123 support vax on BSDs.
6124
55da5ee3
DN
6125 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6126 * s/aix4-2.h (ORDINARY_LINK): ... here.
6127
c0282183
AS
61282010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6129
82c3d67a
AS
6130 * Makefile.in (abs_builddir): Define.
6131 (bootstrap_exe): Use it.
6132 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6133
3613edce
SM
61342010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6135
6136 * Makefile.in (bootstrap_exe): Use an absolute name.
6137
7f110ddc
DN
61382010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6139
22e87574
DN
6140 Remove support for old GNU/Linux using libc version 5.
6141 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6142 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6143
05a670e6
DN
6144 Consolidate redundant definitions in s/bsd-common.h.
6145 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6146 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6147 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6148 doing it in all files that include this one.
6149 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6150 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6151 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6152 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6153 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6154 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6155 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6156 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6157 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6158
2968f561
DN
6159 Consolidate redundant definitions.
6160 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6161 it's undefined in all files that include this one.
6162 (POSIX_SIGNALS): Define here instead of doing it in all files that
6163 include this one.
6164 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6165 (POSIX_SIGNALS): Do not define.
6166 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6167 (POSIX_SIGNALS): Do not define.
6168 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6169 (POSIX_SIGNALS): Do not define.
6170
15d25dc0
DN
6171 Remove support for old UNIX System V systems.
6172 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6173 * s/usg-5-4-2.h: Remove.
6174
07e339e4
DN
6175 Remove support for Solaris on PPC and for old versions.
6176 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6177 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6178 that cancel each other.
6179 * s/sol2-3.h:
6180 * s/sol2-4.h:
6181 * s/sol2-5.h: Remove.
6182 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6183 (NO_REMAP): Remove, unused.
6184 (UNEXEC): Move definition ...
6185 * s/aix4-2.h (UNEXEC): ... here.
6186
7f110ddc
DN
6187 * s/openbsd.h: Remove support for non-ELF and for systems that do
6188 not support shared libraries.
6189 * s/netbsd.h:
6190 * s/freebsd.h: Likewise.
6191
605f35cd
DN
61922010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6193
6194 Remove non-working support for lynxos 3.0.
6195 * s/lynxos.h: Remove file.
6196
6197 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6198 COFF_BSD_SYMBOLS, nothing defines it anymore.
6199
aed71cf4
DN
62002010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6201
6202 Remove obsolete uses of HAVE_SHM.
6203 * emacs.c (standard_args):
6204 (Fdump_emacs):
6205 (syms_of_emacs): Remove code depending on HAVE_SHM.
6206
6207 * alloc.c: Remove HAVE_SHM dependent definition.
6208
6209 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6210
aded53ff
GM
62112010-03-18 Glenn Morris <rgm@gnu.org>
6212
17284745
GM
6213 * emacs.c (USAGE4): Hard-code bug address.
6214 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6215 (bug_reporting_address): Remove.
6216 (main): Don't call bug_reporting_address.
6217
aded53ff
GM
6218 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6219 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6220
303500aa
CY
62212010-03-15 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * xfns.c (Fx_create_frame):
6224 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6225 on left.
6226
cef3058f
CY
62272010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6228
6229 * editfns.c (Fformat): Account for string precision when computing
6230 field width (Bug#5710).
6231
a647d59d
CY
62322010-03-12 Chong Yidong <cyd@stupidchicken.com>
6233
4fa42018
CY
6234 * xfns.c (Fx_create_frame): Set default to Qright.
6235
a647d59d
CY
6236 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6237 all window systems.
6238
6da23aaa
EZ
62392010-03-12 Eli Zaretskii <eliz@gnu.org>
6240
a96f6398 6241 These changes remove termcap.c from the build on Posix platforms.
83d02def 6242 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6243 (MSDOS_OBJ): ...to here.
6244 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6245 now identical to when LIBS_TERMCAP is defined.
6246
6247 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6248
6249 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6250
a96f6398 6251 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6252
288f9fc0
CY
62532010-03-10 Chong Yidong <cyd@stupidchicken.com>
6254
6255 * Branch for 23.2.
6256
d48cd3f4
SM
62572010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6258
6259 Cleanup setup of gl_state in various parts of the code.
6260 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6261 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6262 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6263 (skip_chars):
6264 * regex.c (regex_compile): Use it.
6265 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6266 it's now set in regex_compile when/if we need it.
6267
618db430
SM
62682010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6269
c0335e02
SM
6270 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6271 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6272 (QUIT): Use it to consolidate code and remove redundancy.
6273 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6274
254c06a8
SM
6275 * regex.c (regex_compile): Setup gl_state as well.
6276
618db430
SM
6277 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6278 (in_classes): Use CONSP before XCAR/XCDR.
6279
233f0c9f
CY
62802010-03-03 Chong Yidong <cyd@stupidchicken.com>
6281
6282 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6283 definitions, so that keyboard macros are correctly handled
6284 (Bug#5481).
6285
75f80e63
EZ
62862010-03-02 Eli Zaretskii <eliz@gnu.org>
6287
6288 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6289 text that could be relocated inside the call to emacs_mule_char.
6290 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6291 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6292
dcfb9bc4
KH
62932010-03-02 Kenichi Handa <handa@m17n.org>
6294
fc9a17bc
KH
6295 * character.c (parse_str_as_multibyte): Fix handling of the
6296 multibyte form of raw-bytes.
6297 (str_as_multibyte): Likewise.
6298
dcfb9bc4
KH
6299 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6300 form of raw-bytes.
6301
412c01b6
CY
63022010-02-28 Chong Yidong <cyd@stupidchicken.com>
6303
6304 * charset.c (load_charset_map_from_file)
6305 (load_charset_map_from_vector): Zero out allocated
6306 charset_map_entries before using them.
6307
df7e1ea0
AS
63082010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6309
6310 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6311
fe69a722
CY
63122010-02-27 Chong Yidong <cyd@stupidchicken.com>
6313
4ed28cf4
CY
6314 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6315 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6316
7379cfce
KH
63172010-02-26 Kenichi Handa <handa@m17n.org>
6318
f88cc4d6
KH
6319 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6320
7379cfce
KH
6321 * xdisp.c (reseat_to_string): Fix previous change.
6322
cf2fdcfb
CY
63232010-02-26 David Reitter <david.reitter@gmail.com>
6324
6325 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6326 Lisp_Object (Bug#4736).
6327
cc6c7c75
KH
63282010-02-25 Kenichi Handa <handa@m17n.org>
6329
6330 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6331
32e737d7
JD
63322010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6333
6334 * xterm.c (XTflash): Move declarations before statements.
6335
6336 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6337 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6338 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6339 (xg_create_tool_bar): Remove unused variables.
6340 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6341 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6342
676cae9f
CY
63432010-02-21 Chong Yidong <cyd@stupidchicken.com>
6344
6345 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6346
886cc2b8
SM
63472010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6348
6349 * term.c (fatal): Add a final \n if needed (bug#5596).
6350
ddb2d8e2
CY
63512010-02-18 Chong Yidong <cyd@stupidchicken.com>
6352
6353 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6354
2a4f8d3d
GM
63552010-02-18 Glenn Morris <rgm@gnu.org>
6356
6357 * callint.c (Finteractive): Doc fix.
6358
ebaf11b6
KH
63592010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6360
886cc2b8
SM
6361 * coding.c (record_conversion_result):
6362 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6363 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6364 memory allocation error.
6365
d0396581
KH
63662010-02-17 Kenichi Handa <handa@m17n.org>
6367
886cc2b8
SM
6368 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6369 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6370 (decode_coding): Setup ccl program here. Keep looping when the
6371 decoder stopped because the output buffer is
6372 fullfilled (bug#5534).
6373
6374 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6375
98599f74
JD
63762010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6377
471e4f04 6378 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6379 bug #5571.
886cc2b8 6380 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6381 overdrawn.
98599f74 6382
182659ae
JD
63832010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6384
6385 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6386 doing_interact here.
6387 (ice_connection_closed): New function.
6388 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6389 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6390 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6391 returns I/O error.
6392 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6393 bug #5512.
6394
9be32c4e 63952010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6396
6397 * nsfont.m (nsfont_open): The system's value for the font descent
6398 is negative, so round it down to avoid clipping.
6399
a2f3eb19
CY
64002010-02-06 Chong Yidong <cyd@stupidchicken.com>
6401
6402 * charset.c (load_charset_map_from_file)
6403 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6404 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6405
3088147c
CY
64062010-02-05 Chong Yidong <cyd@stupidchicken.com>
6407
6408 * charset.c (load_charset_map_from_file): Allocate large
6409 charset_map_entries structure on the heap rather than the stack.
6410 (Bug#5526).
6411
b57d9029
KH
64122010-01-31 Kenichi Handa <handa@m17n.org>
6413
6414 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6415 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6416
c67d885b
CY
64172010-01-31 Chong Yidong <cyd@stupidchicken.com>
6418
6419 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6420 <deactivated@gmail.com> (Bug#3605).
6421
8fab2362
CY
64222010-01-31 David De La Harpe Golden <david@harpegolden.net>
6423
6424 * fileio.c (Frename_file): Correctly rename symlinks to
6425 directories (Bug#5496).
6426
cb2a62f2
CY
64272010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6428
6429 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6430
944c7a26
AS
64312010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6432
6433 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6434
c024ac08
CY
64352010-01-29 Chong Yidong <cyd@stupidchicken.com>
6436
6437 * frame.c (DEFAULT_ROWS): Change default to 35.
6438
6439 * xfns.c (x_default_font_parameter): Change default XFT font to
6440 monospace-10 (Bug#3643).
6441
af93af83
EZ
64422010-01-29 Eli Zaretskii <eliz@gnu.org>
6443
6444 * w32inevt.c (key_event): Remove unnecessary comparison of
6445 event->uChar.AsciiChar with 128.
6446
ca0eb708
CY
64472010-01-28 Chong Yidong <cyd@stupidchicken.com>
6448
b242dbfc
CY
6449 * fileio.c (Frename_file): Fix last change (Bug#5487).
6450
ca0eb708
CY
6451 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6452
6453 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6454
45d45af5
JD
64552010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6456
6457 * xfns.c (Fx_create_frame): Remove window size matching code from
6458 2010-01-15.
a73f9c9d 6459 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6460
7e233730
JR
64612010-01-27 Jason Rumney <jasonr@gnu.org>
6462
6463 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6464 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6465
86e893e3
KH
64662010-01-27 Kenichi Handa <handa@m17n.org>
6467
6468 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6469 pattern string (Bug#4209).
86e893e3 6470
8719abec
CY
64712010-01-27 David De La Harpe Golden <david@harpegolden.net>
6472
6473 * fileio.c (Frename_file): Call copy-directory and
6474 delete-directory for directories, in order to handle cross-device
6475 renaming (Bug#3353).
6476
844794c8
JD
64772010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6478
aa3e13b5 6479 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6480 sizes 24 and 10. Bug #3643.
844794c8 6481
bd4b5750
SM
64822010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6483
8dc1adf6 6484 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6485 * keymap.c (shadow_lookup): Add `remap' arg.
6486 (describe_map, describe_vector): Update calls to shadow_lookup.
6487 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6488 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6489 perform remapping during shadow_lookup check of remapped_sequences.
6490
285d07e2
CY
64912010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6492
6493 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6494 png_check_sig, which has been removed in libpng 1.4.
6495
c6d09b8d
CY
64962010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6497
6498 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6499 lacks this header file).
6500
3d782998
YM
65012010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6502
6503 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6504 as in Emacs 22.
6505
2aff7c53
YM
65062010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6507
6508 * lisp.h (make_pure_string): String pointer arg now points to const.
6509
6510 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6511 args now point to const.
6512
74327f7a
EZ
65132010-01-22 Eli Zaretskii <eliz@gnu.org>
6514
6515 * lread.c (Fload): Don't treat files without .elc extension as
6516 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6517 them. (bug#5303)
6518
4d1e6632
KH
65192010-01-20 Kenichi Handa <handa@m17n.org>
6520
6521 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6522 treat the source as actual byte sequence.
6523
1fdede8f
AM
65242010-01-19 Alan Mackenzie <acm@muc.de>
6525
6526 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6527 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6528 `signal_after_change_p' to `coherent_change_p', and make the
6529 invocation of `modify_region' conditional on it.
6530
67477f30
JD
65312010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6532
6533 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6534 for debug purpose.
6535 (syms_of_xsettings): Declare xft-settings.
6536
244b023e
CY
65372010-01-18 Chong Yidong <cyd@stupidchicken.com>
6538
6539 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6540
617364fe
CY
65412010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6542
6543 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6544
4fe22cdf
CY
65452010-01-16 Chong Yidong <cyd@stupidchicken.com>
6546
6547 * emacs.c (standard_args): Adjust arg priorities to reflect how
6548 they are processed in startup.el.
6549
e118d2be
AS
65502010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6551
6552 * Makefile.in (lisp, shortlisp): Update.
6553
523ae620
SM
65542010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6555
6556 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6557 code, link the new kboard into all_kboard before running Lisp code,
6558 and protect the new terminal with GCPRO (Bug#5365).
6559 (x_term_init): Remove unused var `atom'.
6560 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6561
f0d13888
JD
65622010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6563
6564 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6565 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6566 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6567 this. Bug #3643.
f0d13888 6568
cc320f07
KH
65692010-01-15 Kenichi Handa <handa@m17n.org>
6570
6571 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6572
7ffdf101
CY
65732010-01-15 Chong Yidong <cyd@stupidchicken.com>
6574
6575 * nsterm.m (Qnone): Define.
6576
6577 * nsfns.m (Qnone): Move definition to nsterm.m.
6578
d12bd917
KH
65792010-01-14 Kenichi Handa <handa@m17n.org>
6580
6581 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6582 systems.
6583
d9a7c140
KH
65842010-01-14 Kenichi Handa <handa@m17n.org>
6585
6586 Make auto-composition work on all buffers even if they are
6587 fundamental mode.
6588
6589 * composite.c (Vauto_composition_mode): New variable.
6590 (composition_compute_stop_pos): Check Vauto_composition_mode
6591 instead of Vauto_composition_function.
6592 (composition_adjust_point, Ffind_composition_internal): Likewise.
6593 (syms_of_composite): Declare Lisp variable
6594 "auto-composition-mode" here.
6595
63286bb2
CY
65962010-01-13 Chong Yidong <cyd@stupidchicken.com>
6597
6598 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6599 during call to vendor-specific-keysyms (Bug#5365).
6600
c2623ee7
YM
66012010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6602
6603 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6604 Call SIGNAL_THREAD_CHECK (Bug#5333).
6605
6606 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6607 Call SIGNAL_THREAD_CHECK.
6608
0b5397c2
SM
66092010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6610
6611 Try to fix bug#5314. This is probably not the final word, tho.
6612 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6613 recent-auto-save-p as a side-effect.
6614 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6615 * buffer.c (Fkill_buffer, reset_buffer):
6616 * editfns.c (Fsubst_char_in_region):
6617 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6618 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6619
dc954cb2
KH
66202010-01-13 Kenichi Handa <handa@m17n.org>
6621
6622 Display buffer name, etc. in mode line by composing correctly.
6623
6624 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6625 STRING is not nil.
0b5397c2 6626 (display_mode_element): Adjust for the change of
dc954cb2
KH
6627 decode_mode_spec and display_line.
6628 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6629 (display_string): Handle the case that STRING is non-null and
6630 LISP_STRING is not nil.
6631
0b5397c2
SM
6632 * xterm.c (x_draw_composite_glyph_string_foreground):
6633 Pay attention to s->face->overstrike.
dc954cb2
KH
6634
6635 * composite.c (composition_reseat_it): Don't check PT if STRING is
6636 non nil.
6637
4a00eaca
YM
66382010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6639
6640 * keyboard.c (read_char): Don't apply previous change when current
6641 buffer is unchanged by command execution.
6642
60abb287
JD
66432010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6644
6645 * keyboard.c (read_char): Return after executing from special map.
6646
893db5bc
GM
66472010-01-12 Glenn Morris <rgm@gnu.org>
6648
6649 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6650 bug-gnu-emacs rather than emacs-pretest-bug.
6651
4d03ece0
CY
66522010-01-11 Chong Yidong <cyd@stupidchicken.com>
6653
6654 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6655 initializing the Lisp variables that depend on them.
6656
1df47e38
YM
66572010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6658
6659 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6660 Clear areas that will not be updated after change of menu bar lines.
6661 Clear the menu bar window's current matrix when the window gets empty.
6662
2f1c6384
CY
66632010-01-09 Chong Yidong <cyd@stupidchicken.com>
6664
e398c61c
CY
6665 * intervals.h, textprop.c (extend_property_ranges): Return value
6666 and args changed. Discard properties that begin at or after the
6667 new end (Bug#5306).
6668
6669 * editfns.c (Fformat): Caller changed.
6670
e5a29a10
CY
6671 * nsterm.m (ns_set_default_prefs): Delete function.
6672 (syms_of_nsterm): Initialize ns_command_modifier,
6673 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6674 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6675
2f1c6384
CY
6676 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6677 position (Bug#4040).
6678
d427a9fa
EZ
66792010-01-09 Eli Zaretskii <eliz@gnu.org>
6680
6681 * editfns.c (Ffloat_time): Doc fix.
6682
21b9df2f
JD
66832010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6684
6685 * xfns.c (Fx_create_frame): Don't create frame larger than display
6686 by default bug#3643.
6687
4b00d3b1
YM
66882010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6689
6690 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6691 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6692 windows above internal border.
6693
6694 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6695 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6696 windows above internal border.
6697
6698 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6699 tool bar windows specially.
6700
6701 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6702
6703 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6704 specially.
6705 (XTflash): Take account of menu bar height.
6706
6707 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6708 specially.
6709
5075d853
JD
67102010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6711
ac146f82 6712 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6713 also be true before we can return early (bug #5339).
6714
474217c8
CY
67152010-01-06 David Reitter <david.reitter@gmail.com>
6716
6717 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6718 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6719 (Bug#3233).
6720
c0e6d47d
JD
67212010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6722
d0cf45b7
JD
6723 * font.c (font_open_entity): Enable chache and call cached_font_ok
6724 for the driver if defined.
6725 (QCuser_spec): New symbol.
6726 (font_spec_from_name): Save name as user-spec.
6727 (font_load_for_lface): Keep user-spec instead of name.
6728 (font_open_by_name): Save name as user-spec.
6729 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6730 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6731
6732 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6733 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6734 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6735
6736 * font.h (struct font_driver): Add cached_font_ok.
6737
c0e6d47d
JD
6738 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6739
7c583cd8
JD
67402010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6741
6742 * xterm.c (x_new_font): Move code for setting rows/cols before
6743 resizing ...
ac146f82 6744 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6745
6746 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6747 (xg_frame_resized, xg_frame_set_char_size):
6748 Call xg_clear_under_internal_border.
7c583cd8 6749 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6750
03f77f0a
CY
67512010-01-05 Chong Yidong <cyd@stupidchicken.com>
6752
6753 * keyboard.c (read_key_sequence): Catch keyboard switch after
6754 making a new tty frame (Bug#5095).
6755
2a1ef5be
KH
67562010-01-05 Kenichi Handa <handa@m17n.org>
6757
6758 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6759
e3eb1dae
SM
67602010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6761
6762 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6763 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6764 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6765
777013f2
MA
67662010-01-03 Michael Albinus <michael.albinus@gmx.de>
6767
6768 * dbusbind.c (xd_add_watch): Improve debug message.
6769 (xd_remove_watch): Improve debug message. If DATA is the session
6770 bus, unset D-Bus session environment.
6771 (Fdbus_init_bus): Pass the bus as argument to
6772 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6773
8932b1c2
CY
67742010-01-01 Chong Yidong <cyd@stupidchicken.com>
6775
87231e2c
CY
6776 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6777
4801c5fa
CY
6778 * lread.c (syms_of_lread): Make it clearer that these are the
6779 names of loaded files (Bug#5068).
6780
8932b1c2
CY
6781 * eval.c (run_hook_with_args): Handle the case where the global
6782 value has the obsolete single-function form (Bug#5026).
6783
11e3c684
CY
67842009-12-27 Chong Yidong <cyd@stupidchicken.com>
6785
6786 * minibuf.c (Fall_completions): Minor optimization.
6787
5b28ce35
EZ
67882009-12-26 Eli Zaretskii <eliz@gnu.org>
6789
5ce6e4f4
JB
6790 * .gdbinit (pgx): Fix display of composite glyphs.
6791 Display cmp.from and cmp.to as well.
6792 (pitx): Fix last change.
5b28ce35 6793
bcffff46
KH
67942009-12-25 Kenichi Handa <handa@m17n.org>
6795
6796 * composite.h (composition_adjust_point): Update prototype.
6797
6798 * composite.c (composition_reseat_it): Don't make a composition
6799 spanning over point.
6800 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6801 composable characters.
6802 (composition_adjust_point): New arg NEW_PT. Callers changed.
6803
6804 * keyboard.c (command_loop_1): Force redisplay if the last point
6805 was within a composition.
6806 (adjust_point_for_property): Don't adjust point for automatic
6807 composition when called after buffer modification.
6808
3f670e9a
EZ
68092009-12-19 Eli Zaretskii <eliz@gnu.org>
6810
5ce6e4f4
JB
6811 * .gdbinit (pitx): Don't use enum names, use their values.
6812 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6813 (pgx): Don't use enum names, use their values.
6814 (pitmethod): New helper command.
6815 (pitx): Use it to display iteration method.
6816 (pgrowit): New command.
6817
ad903955
EZ
6818 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6819
3f670e9a
EZ
6820 Update dependencies in Makefile.in.
6821
6822 * Makefile.in (alloc.o): Depend on termhooks.h.
6823 (atimer.o): Depend on blockinput.h.
6824 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6825 and frame.h.
6826 (callint.o): Depend on systime.h, coding.h, and composite.h.
6827 (callproc.o): Depend on buffer.h.
6828 (casefiddle.o): Don't depend on charset.h.
6829 (casetab.o): Depend on character.h.
6830 (ccl.o): Depend on composite.h.
6831 (chartab.o): Depend on ccl.h.
6832 (cm.o): Depend on dispextern.h.
6833 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6834 (coding.o): Don't depend on $(INTERVALS_H).
6835 (composite.o): Don't depend on dispextern.h explicitly (it's in
6836 $(INTERVALS_H)). Depend on ccl.h.
6837 (data.o): Depend on systime.h, coding.h, composite.h,
6838 dispextern.h, font.h, and ccl.h.
6839 (dired.o): Depend on composite.h.
6840 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6841 composite.h (it's in $(INTERVALS_H)).
6842 (doc.o): Depend on systime.h, coding.h, and composite.h.
6843 (editfns.o): Don't depend explicitly on dispextern.h.
6844 (emacs.o): Depend on frame.h and coding.h.
6845 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6846 (fileio.o): Depend on frame.h and commands.h. Don't depend
6847 explicitly on dispextern.h.
6848 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6849 composite.h.
6850 (fns.o): Don't depend on termhooks.h.
6851 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6852 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6853 coding.h, $(INTERVALS_H), window.h, xterm.h.
6854 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6855 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6856 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6857 fontset.h, ccl.h, and ftfont.h.
6858 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6859 (gtkutil.o): Depend on dispextern.h and composite.h.
6860 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6861 termhooks.h, and ccl.h.
6862 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6863 (intervals.o): Depend on systime.h and coding.h.
6864 (keyboard.o): Depend on composite.h and coding.h.
6865 (keymap.o): Depend on coding.h and frame.h.
6866 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6867 (macros.o): Depend on systime.h, coding.h, and composite.h.
6868 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6869 and atimer.h.
6870 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6871 dispextern.h explicitly.
0b5397c2
SM
6872 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6873 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6874 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6875 (regex.o): Don't depend on charset.h.
6876 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6877 (search.o): Don't depend explicitly on composite.h.
6878 (sound.o): Depend on atimer.h and systime.h.
6879 (syntax.o): Don't depend explicitly on composite.h.
6880 (sysdep.o): Depend on coding.h and composite.h.
6881 (term.o): Depend on xterm.h and buffer.h.
6882 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6883 (textprop.o): Don't depend on dispextern.h explicitly.
6884 (undo.o): Depend on dispextern.h.
6885 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6886 dispextern.h and composite.h explicitly.
6887 (xdisp.o): Depend on ccl.h.
6888 (xfaces.o): Depend on coding.h and ccl.h.
6889 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6890 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6891 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6892 ftfont.h.
6893 (xgselect.o): New dependency.
6894 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6895 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6896 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6897 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6898 (xsmfns.o): Depend on frame.h and dispextern.h.
6899 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6900 sysselect.h.
6901
7a6f7fea
AS
69022009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6903
6904 * font.c (Fclear_font_cache): Pass correct cache argument to
6905 font_clear_cache.
6906
f4c21026
AS
69072009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6908
6909 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6910 twice.
6911
f7ab0997
CY
69122009-12-15 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6915 calling file-remote-p. Reported by Jim Meyering.
6916
fa8e045a
MA
69172009-12-15 Michael Albinus <michael.albinus@gmx.de>
6918
6919 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6920 avoid compiler warnings. (Bug #5217)
fa8e045a 6921
a63dba42
KH
69222009-12-14 Kenichi Handa <handa@m17n.org>
6923
6924 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6925 in 8-bit encoding.
6926
5ce6e4f4 69272009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6928
6929 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6930 tooltip windows.
6931
223e5fc6
JD
69322009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6933
36acb2a7
JD
6934 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6935 Xatom_net_window_type.
6936
6937 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6938 Xatom_net_window_type.
6939
b8f00677
JD
6940 * xterm.c (my_log_handler): New function.
6941 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6942 so we can filter out buggy messages. (Bug #5120).
b8f00677 6943
e5f0bc9a
JD
6944 * xterm.c (xg_scroll_callback): Parameter list changed,
6945 use parameter GtkScrollType to determine scroll/line/page.
6946 Only allow dragging if a button < 4 is grabbed (bug #5177).
6947 (xg_end_scroll_callback): New function.
6948 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6949 xg_create_scroll_bar.
6950
6951 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6952 (scroll_end_callback): Remove.
6953 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6954 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6955 bug #5177.
e5f0bc9a
JD
6956 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6957 bug #5177.
6958
6959 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6960 (xg_create_scroll_bar): Add GCallback end_callback.
6961
223e5fc6
JD
6962 * xftfont.c (QClcdfilter): New variable.
6963 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6964 (syms_of_xftfont): Initialize QClcdfilter.
6965
3c055b77
JD
69662009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6967
6968 * xsettings.c (struct xsettings): Add member seen.
6969 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6970 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6971 (apply_xft_settings): Only update Xft settings with what member seen
6972 indicates as new.
6973
05fe33ff
EZ
69742009-12-12 Eli Zaretskii <eliz@gnu.org>
6975
c4cc8b9a 6976 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6977 (struct glyph): Use EMACS_INT for charpos.
6978 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6979 region_beg_charpos, region_end_charpos,
6980 redisplay_end_trigger_charpos, and also for
6981 iterator_stack_entry.end_charpos and
6982 iterator_stack_entry.stop_charpos.
6983
e8d7886a
JD
69842009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6985
5ce6e4f4 6986 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6987 (xg_create_scroll_bar): Call scroll_end_callback on button release
6988 event (bug #5177).
6989 (xg_event_is_for_scrollbar): != replaced with ==.
6990
d0db2ec8
KH
69912009-12-12 Kenichi Handa <handa@m17n.org>
6992
6993 * ftfont.c (struct ftfont_info): New member matrix.
6994 (ftfont_open): Setup xftfont_info->matrix.
6995 (MFLTFontFT): New member matrix.
6996 (FLOOR, CEIL, ROUND): New macros.
6997 (ftfont_get_metrics): Handle matrix transformation.
6998 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6999
7000 * xftfont.c (struct xftfont_info): New member matrix.
7001 (xftfont_open): Setup xftfont_info->matrix.
7002
70032009-12-10 Kenichi Handa <handa@m17n.org>
7004
7005 * xdisp.c (append_space_for_newline): Consider face-remapping.
7006
2cc7b62f
AS
70072009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7008
b87dd913
AS
7009 * xsettings.c: Include "keyboard.h".
7010
eba5eb94
AS
7011 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7012
2cc7b62f
AS
7013 Fix implicit function declarations.
7014 * cmds.c: Include "frame.h".
7015 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7016 * frame.h: Move declaration of delete_frame outside of
7017 HAVE_WINDOW_SYSTEM.
7018
a4ef73c8
CY
70192009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7020
7021 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7022
7023 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7024 GTK builds.
7025
944a300c
AS
70262009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7027
7028 * unexelf.c (unexec): Don't search for .data twice.
7029
022eef62
CY
70302009-12-05 Chong Yidong <cyd@stupidchicken.com>
7031
426ac949
CY
7032 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7033 if push failed.
7034 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7035 of push_display_prop (Bug#5000).
7036
022eef62
CY
7037 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7038 value of font_list_entities (Bug#5085).
7039
be95bee9
JB
70402009-12-04 Juanma Barranquero <lekktu@gmail.com>
7041
7042 Fix `string-to-number' to deal consistently with integers and floats.
7043 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7044 trailing characters, not just whitespace.
7045 (read1): Pass new arg 0 to keep old behavior.
7046 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7047 trailing chars, as it is already done for integers. Doc fixes.
7048 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7049
24c2d7ce
EZ
70502009-12-04 Eli Zaretskii <eliz@gnu.org>
7051
0b5397c2
SM
7052 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7053 Delete unused enumeration value.
24c2d7ce 7054
7e694795
EZ
70552009-12-03 Eli Zaretskii <eliz@gnu.org>
7056
7057 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7058
84b31826
SM
70592009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7060
7061 * process.c (Fmake_network_process): Fix up the tests for
7062 "connectionless socket", so they DTRT for seqpacket sockets as well.
7063
f00c449b
SM
70642009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7065
7066 * process.c (Qseqpacket): New symbol.
7067 (HAVE_SEQPACKET): New macro.
7068 (Fmake_network_process): Accept new :type `seqpacket'.
7069 (init_process): Add `seqpacket' feature when applicable.
7070 (syms_of_process): Initialize Qseqpacket.
7071
8096a0ff
YM
70722009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7073
7074 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7075 if entity is Qnil.
7076
3e0de07f
SM
70772009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7078
7079 * print.c (print_preprocess): Preprocess the key_and_value table of
7080 hashtables, even tho they're "hidden" (bug#5082).
7081
abeafb2a
JD
70822009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7083
7084 * frame.c (frame_make_pointer_invisible)
7085 (frame_make_pointer_visible): Declare f before statements.
7086
4bf47195
EZ
70872009-11-28 Eli Zaretskii <eliz@gnu.org>
7088
7089 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7090 omitted dependencies on lisp.h.
7091
c525b3f2
JD
70922009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7093
ece2d4ed
JD
7094 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7095 is NULL.
7096
7097 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7098
7099 * frame.c (frame_make_pointer_invisible)
3e0de07f 7100 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7101 frame.
7102
c525b3f2
JD
7103 * search.c (simple_search): Remove warning by making *p const.
7104
2f00e299
DN
71052009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7106
7107 * xdisp.c (power_letter): Remove duplicate const.
7108
084b049b
JD
71092009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7110
a1fadc6f
JD
7111 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7112
5ce6e4f4 7113 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7114 defaults (bug #5025).
7115
28259cac
SM
71162009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7117
7118 * insdel.c (adjust_markers_for_delete): Move it in the
7119 right direction! (bug#4803)
7120
e8e14166
YM
71212009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7122
7123 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7124
7125 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7126
86677b58
GM
71272009-11-24 Glenn Morris <rgm@gnu.org>
7128
7129 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7130
581e51e8
JD
71312009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7132
cfc86c7a
JD
7133 * Makefile.in: Must create deps for ecrt0.o in its rule.
7134
581e51e8
JD
7135 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7136 because that is what Gtk+ font dialog understands.
7137
7138 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7139 of Fcopy_sequence.
7140 (font_open_by_name): Put name given into QCname for font-object returned.
7141
7142 * frame.c (x_set_font): Save original font name as frame parameter
7143 font-parameter.
7144
7145 * xsettings.c (set_default_xft_settings): New function.
7146 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7147 is found.
7148
8b264ecb
AS
71492009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7150
7151 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7152 searching backwards through multibyte buffer.
7153
872870b2
JD
71542009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7155
7156 * xterm.c: #include xgselect.h.
7157 (x_initialize): Call xgselect_initialize.
7158
7159 * xsettings.c (something_changedCB): C++ comments => C comments.
7160 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7161 does that now.
7162
7163 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7164 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7165 (scroll_bar_button_cb): Remove.
5ce6e4f4 7166 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7167 event.
7168 (xg_create_scroll_bar): Don't bind button-press-event and
7169 button-release-event.
7170
7171 * process.c: Include xgselect.h if defined (USE_GTK) ||
7172 defined (HAVE_GCONF).
7173 (wait_reading_process_output): Call xg_select for the same condition.
7174
7175 * xgselect.c (xg_select): New function to better integrate with
7176 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7177
7178 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7179
7180 * Makefile.in (XOBJ): Add xgselect.o.
7181
62a6e103
AS
71822009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7183
0b5397c2
SM
7184 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7185 Remove ignored second argument. All callers changed.
62a6e103
AS
7186 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7187 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7188 * xdisp.c (string_char_and_length): Likewise.
7189
b0ca0f33
DN
71902009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7191
7192 * xterm.c (x_new_font):
7193 * print.c (print_object):
7194 * cmds.c (Fself_insert_command): Move declarations before statements.
7195
dd5a6279
CY
71962009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7197
7198 * s/cygwin.h: Remove unneeded linker flags.
7199
4a8e097d
JD
72002009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7201
0d1d0d26
JD
7202 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7203
7204 * xsettings.h: Declare xsettings_get_system_font.
7205
7206 * xsettings.c (xsettings_get_system_font): New function.
7207 (init_gconf): No use initiating gconf unless we have Xft also.
7208 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7209 HAVE_GCONF.
7210
4a8e097d
JD
7211 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7212 add a blank entry so it doesn't collapse into nothing.
7213
8ab1650e
SM
72142009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7215
7216 * lread.c (Funintern): Comment out last change.
7217
82c602f0
RS
72182009-11-19 Richard Stallman <rms@gnu.org>
7219
7220 * lread.c (Funintern): Error if symbol is t or nil.
7221
87e32266
SM
72222009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7223
7224 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7225 representation of Lisp integers.
7226 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7227
1b9ac145
AS
72282009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7229
7230 * lisp.h: Remove declaration of Ffont_get_system_font.
7231 * xfns.c: Move include of "xsettings.h".
7232 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7233
dfb3c4c6
JD
72342009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7235
87e32266
SM
7236 * xsettings.c (something_changedCB, Ffont_get_system_font):
7237 Check use_system_font.
dfb3c4c6
JD
7238 (syms_of_xsettings): DEFVAR font-use-system-font.
7239
9370c1d8
AS
72402009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7241
25fe851a
AS
7242 * xfns.c (x_default_font_parameter): Remove dead assignment.
7243
9370c1d8
AS
7244 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7245
637fa988
JD
72462009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7247
87e32266 7248 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7249 not have FC_LCD_*. #define them if not there.
a6eb20d8 7250
87e32266 7251 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7252
637fa988
JD
7253 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7254
7255 * xterm.c (handle_one_xevent): Call xft_settings_event for
7256 ClientMessage, PropertyNotify and DestroyNotify.
7257 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7258 Call xsettings_initialize.
7259
7260 * xftfont.c (xftfont_fix_match): New function.
7261 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7262 Call xftfont_fix_match after XftFontMatch.
7263
7264 * xfont.c (xfont_driver): Initialize all members.
7265
87e32266
SM
7266 * xfns.c (x_default_font_parameter):
7267 Try font from Ffont_get_system_font.
637fa988
JD
7268 Do not get font from x_default_parameter if we got one from
7269 Ffont_get_system_font.
87e32266 7270 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7271
7272 * w32font.c (w32font_driver): Initialize all members.
7273
7274 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7275
7276 * lisp.h: Declare syms_of_xsettings.
7277
87e32266
SM
7278 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7279 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7280
7281 * ftfont.c (ftfont_filter_properties): New function.
7282
7283 * frame.c (x_set_font): Remove unused variable lval.
7284
87e32266 7285 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7286
7287 * font.c (font_put_extra): Don't return if val is nil, it means
7288 boolean option is off.
7289 (font_parse_fcname): Collect all extra properties in extra_props
7290 and call filter_properties for all drivers with extra_props and
7291 font as parameter.
87e32266
SM
7292 (font_open_entity): Do not use cache, it does not pick up new
7293 fontconfig settings like hinting.
637fa988
JD
7294 (font_load_for_lface): If spec had a name in it, store it in entity.
7295
a73f9c9d 7296 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7297
7298 * config.in: HAVE_GCONF is new.
7299
7300 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7301 xsettings.o is new.
7302
5a942932
KH
73032009-11-17 Kenichi Handa <handa@m17n.org>
7304
7305 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7306 back to the default font in case that no suitable font is found.
7307
b7c7a4d1
SM
73082009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7309
7310 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7311 Suggested by Chad Brown <yandros@mit.edu>.
7312 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7313
072f1e39
JD
73142009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7315
7316 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7317
5d1e70a2
AS
73182009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7319
87e32266 7320 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7321
a53cfbe5
JD
73222009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7323
473a99b7
JD
7324 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7325 has a parent.
7326
a53cfbe5 7327 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7328 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7329
7330 * config.in: Generated (AUTO_DEPEND).
7331
f04bb9b2
MA
73322009-11-13 Michael Albinus <michael.albinus@gmx.de>
7333
b7c7a4d1 7334 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7335 Vdbus_registered_functions_table, because it contains also
7336 properties. Fix docstring.
b7c7a4d1 7337 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7338
8f11f7ec
SM
73392009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7340
7341 * alloc.c (mark_object): Don't reprocess marked strings.
7342 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7343 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7344
8a605fe8
KH
73452009-11-13 Kenichi Handa <handa@m17n.org>
7346
8f11f7ec 7347 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7348 semantics of Vword_combining_categories.
7349 (Vword_combining_categories): Describe the slight change of the
7350 semantics.
7351
241c4680
EZ
73522009-11-13 Eli Zaretskii <eliz@gnu.org>
7353
7354 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7355
7356 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7357
5d58e44c
SM
73582009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7359
7360 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7361
5e13f9d3
JB
73622009-11-12 Juanma Barranquero <lekktu@gmail.com>
7363
7364 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7365
cf54c754
DR
73662009-11-11 David Reitter <david.reitter@gmail.com>
7367
7368 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7369 variables to fix 2009-11-09 change.
7370
a4ada374
DN
73712009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7372
91433552
DN
7373 * process.c (ifflag_def): Make flag_sym constant.
7374 (Fnetwork_interface_info): Use a constant pointer.
7375 (ifflag_table):
7376 * xfns.c (cursor_bits):
7377 * xdisp.c (power_letter):
7378 * termcap.c (speeds, esctab):
7379 * sysdep.c (baud_convert):
7380 * keyboard.c (lispy_accent_codes, modifier_names):
7381 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7382 (jpeg_format, tiff_format, gif_format, svg_format)
7383 (interlace_start, interlace_increment, gs_format):
7384 * gtkutil.c (separator_names):
7385 * fringe.c (swap_nibble):
7386 * fns.c (base64_value_to_char, base64_char_to_value):
7387 * fileio.c (make_temp_name_tbl):
7388 * coding.c (suffixes): Make constant.
7389
f4265f6c
DN
7390 * frame.c (make_initial_frame):
7391 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7392 build_string.
7393 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7394
04420943
DN
7395 * s/freebsd.h:
7396 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7397
0a5d24ae
DN
7398 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7399 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7400
a4ada374
DN
7401 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7402 * xterm.c (syms_of_xterm):
7403 * xfaces.c (syms_of_xfaces):
7404 * xdisp.c (syms_of_xdisp):
7405 * lread.c (syms_of_lread):
7406 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7407 build_string.
91433552 7408
a4ada374
DN
7409 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7410
af98fc7f
SM
74112009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7412
8ab1650e 7413 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7414
e90292a9
JD
74152009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7416
7417 * keyboard.h: Declare timer_check.
7418
7419 * keyboard.c (timer_check_2): New function that does what the old
7420 timer_check did.
7421 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7422 returned, i.e. don't return -1 with timers pending.
7423
7424 * process.c: Remove extern declaration of timer_check.
7425
7426 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7427 even if timer_check returned -1.
7428
af98fc7f
SM
7429 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7430 xg_dialog_data.
e90292a9
JD
7431 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7432 the event loop.
7433 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7434 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7435 Destroy the dialog after xg_dialog_run.
7436
045b83c0
SM
74372009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7438
7439 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7440
1fb99a3a
JD
74412009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7442
7443 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7444
04e452cb
JB
74452009-11-09 Juanma Barranquero <lekktu@gmail.com>
7446
7447 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7448
ef7417fd
SM
74492009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7450
7451 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7452 w32menu.c, and nsmenu.m.
7453 Simplify the obsolete case where position is nil.
7454 (cleanup_popup_menu): New function, moved from nsmenu.m.
7455 (struct skp): Remove slot `notreal'.
7456 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7457 adjust callers.
7458 (single_menu_item): Adjust call to parse_menu_item.
7459 (syms_of_menu): Defsubr x-popup-menu.
7460 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7461 (keymap_panes): Don't export any more.
7462 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7463 (xmenu_show): Declare.
7464 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7465 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7466 * keyboard.h (parse_menu_item): Update declaration.
7467 * xmenu.c (Fx_popup_menu): Remove.
7468 (syms_of_xmenu): Don't defsubr x-popup-menu.
7469 * w32menu.c (Fx_popup_menu): Remove.
7470 (syms_of_w32menu): Don't defsubr x-popup-menu.
7471 * nsmenu.m (cleanup_popup_menu): Remove.
7472 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7473 moved to menu.c's Fx_popup_menu.
7474 (Fx_popup_menu): Remove.
7475 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7476 menu_items (it's done in menu.c already).
7477
424d6179
SM
74782009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7479
7480 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7481 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7482
c0df13a6 74832009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7484
7485 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7486 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7487 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7488 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7489
2de9f71c
SM
74902009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7491
7492 Let integers use up 2 tags to give them one extra bit and thus double
7493 their range.
7494 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7495 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7496 New macros.
7497 (enum Lisp_Type): Use them. Give explicit values.
7498 (Lisp_Type_Limit): Remove.
7499 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7500 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7501 Pay attention to USE_2_TAGS_FOR_INTS.
7502 (INTEGERP): Use LISP_INT_TAG_P.
7503 * fns.c (internal_equal): Simplify the default case.
7504 (sxhash): Use case_Lisp_Int.
7505 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7506 any more.
7507 (Ftype_of): Use case_Lisp_Int.
7508 (store_symval_forwarding): Take into account the fact that Ints can
7509 now have more than one tag.
7510 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7511 (buffer_slot_type_mismatch):
2de9f71c
SM
7512 * xfaces.c (face_attr_equal_p):
7513 * print.c (print_object):
7514 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7515 Use case_Lisp_Int.
7516
323637a2
EZ
75172009-11-06 Eli Zaretskii <eliz@gnu.org>
7518
7ac65b38
EZ
7519 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7520
323637a2
EZ
7521 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7522 warning.
7523
e511451f
JD
75242009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7525
7526 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7527
7528 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7529
7530 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7531 ButtonPressRelease and MotionNotify (bug#4870).
7532
5e2327cf
DN
75332009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7534
5adc433e
DN
7535 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7536
d67b4f80
DN
7537 * xterm.c (syms_of_xterm):
7538 * xselect.c (syms_of_xselect):
7539 * xmenu.c (syms_of_xmenu):
7540 * xfns.c (syms_of_xfns):
7541 * xfaces.c (syms_of_xfaces):
7542 * xdisp.c (syms_of_xdisp):
7543 * window.c (syms_of_window):
7544 * w32fns.c (syms_of_w32fns):
7545 * undo.c (syms_of_undo):
7546 * textprop.c (syms_of_textprop):
7547 * terminal.c (syms_of_terminal):
7548 * syntax.c (syms_of_syntax):
7549 * sound.c (syms_of_sound):
7550 * search.c (syms_of_search):
7551 * print.c (syms_of_print):
7552 * minibuf.c (syms_of_minibuf):
7553 * macros.c (syms_of_macros):
7554 * keymap.c (syms_of_keymap, initial_define_key)
7555 (initial_define_lispy_key):
7556 * keyboard.c (syms_of_keyboard):
7557 * insdel.c (syms_of_insdel):
7558 * image.c (syms_of_image):
7559 * fringe.c (syms_of_fringe):
7560 * frame.c (syms_of_frame):
7561 * fontset.c (syms_of_fontset):
7562 * fns.c (syms_of_fns):
7563 * fns.c (syms_of_fns):
7564 * fileio.c (syms_of_fileio):
7565 * fileio.c (syms_of_fileio):
7566 * eval.c (syms_of_eval):
7567 * doc.c (syms_of_doc):
7568 * dispnew.c (syms_of_display):
7569 * dired.c (syms_of_dired):
7570 * dbusbind.c (syms_of_dbusbind):
7571 * data.c (syms_of_data):
7572 * composite.c (syms_of_composite):
7573 * coding.c (syms_of_coding):
7574 * cmds.c (syms_of_cmds):
7575 * charset.c (define_charset_internal, syms_of_character):
7576 * ccl.c (syms_of_ccl):
7577 * category.c (syms_of_category, init_category_once):
7578 * casetab.c (syms_of_casetab):
7579 * casefiddle.c (syms_of_casefiddle):
7580 * callint.c (syms_of_callint):
7581 * bytecode.c (syms_of_bytecode):
7582 * buffer.c (keys_of_buffer, syms_of_buffer):
7583 * alloc.c (syms_of_alloc):
7584 * process.c (syms_of_process, init_process):
7585 * lread.c (syms_of_lread, init_obarray):
7586 * font.c (build_style_table):
7587 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7588 intern_c_string, calls to make_pure_string with
7589 make_pure_c_string. Use pure_cons instead of Fcons.
7590
5e2327cf
DN
7591 * process.c (socket_options): Make it const.
7592 (set_socket_option, init_process): Use a const pointer.
7593
7594 * lread.c (intern_c_string): New function.
7595 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7596 (defvar_int): Uset it. Make the name const char*.
7597
7598 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7599 (defvar_int): Update prototypes.
7600 (DEFUN, EXFUN): Support for prototypes is now required.
7601 (intern_c_string): New prototype.
7602 (struct Lisp_Subr): Make symbol_name constant.
7603
7604 * font.c (struct table_entry): Remove unused member. Make NAMES
7605 constant.
7606 (weight_table, slant_table, width_table): Make constant.
7607
7608 * emacs.c (struct standard_args): Make name and longname constant.
7609
7610 * character.h (DEFSYM): Use intern_c_string.
7611
a56eaaef
DN
76122009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7613
7614 * alloc.c (make_pure_c_string): New function.
7615
7616 * eval.c (Fautoload): Purecopy all arguments.
7617
f6a07420
KH
76182009-11-05 Kenichi Handa <handa@m17n.org>
7619
7620 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7621 the buffer in case of replace.
7622
5d28d4b1
DN
76232009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7624
7625 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7626
b349d111
SM
76272009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7628
d528b1ce
SM
7629 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7630 when applicable (bug#4851).
7631
b349d111
SM
7632 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7633 (P_): Support for prototypes is now required.
7634
c38eb027
CY
76352009-10-31 Chong Yidong <cyd@stupidchicken.com>
7636
7637 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7638 (Bug#4827).
7639
0405f8d9
EZ
76402009-10-30 Eli Zaretskii <eliz@gnu.org>
7641
d528b1ce 7642 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7643
ca0a881a
DN
76442009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7645
7646 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7647
d528b1ce
SM
7648 * lread.c (Fload): Purecopy the file name when building
7649 Vpreloaded_file_list.
ca0a881a 7650
47e0e0e4
JR
76512009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7652
7653 * w32fns.c (syms_of_w32fns): Change default value of
7654 w32-scroll-lock-modifier to nil. (Bug#2827)
7655
057bce6f
JB
76562009-10-26 Juanma Barranquero <lekktu@gmail.com>
7657
782a943e 7658 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7659
242bc74c
AS
76602009-10-26 Andreas Schwab <schwab@redhat.com>
7661
7662 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7663
522d013a
JB
76642009-10-26 Juanma Barranquero <lekktu@gmail.com>
7665
7666 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7667 For delta < 0, skip check that only makes sense when the mini-window
7668 is going to be enlarged. (Bug#4534)
7669
18060980
CY
76702009-10-25 Chong Yidong <cyd@stupidchicken.com>
7671
7672 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7673 string in menu maps (Bug#4471).
7674
fec8f0fe
CY
76752009-10-24 Chong Yidong <cyd@stupidchicken.com>
7676
7677 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7678 FRAME_NS_VIEW on terminal frames (Bug#4765).
7679
10d66ec0
AS
76802009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7681
1cae01f7
AS
7682 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7683 DBUS_TYPE_UINTnn separately to get proper sign extension.
7684
58a12889
AS
7685 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7686 can properly handle unsigned types.
d528b1ce 7687 (make_uid, make_gid): Remove.
58a12889 7688
987c9327
AS
7689 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7690 types again.
7691
522d013a 7692 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7693 (system_process_attributes): Likewise.
7694
905a9ed3
DN
76952009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7696
7697 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7698
7699 * eval.c (Fautoload): Purecopy the filename. Simplify.
7700
7701 * category.c (Fdefine_category): Purecopy docstring.
7702
a599b3e8
AS
77032009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7704
7b792fc9
AS
7705 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7706
a599b3e8
AS
7707 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7708
b35ac83e
CY
77092009-10-23 Chong Yidong <cyd@stupidchicken.com>
7710
7711 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7712 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7713 (Bug#4775).
7714
e8903e00
SM
77152009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7716
7717 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7718 (init_fileio_once):
7719 * lisp.h (init_fileio_once): Remove.
7720 * emacs.c (main): Don't call init_fileio_once.
7721
8f43cbf3
DN
77222009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7723
7724 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7725
26898943
AS
77262009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7727
7728 * doprnt.c (doprnt): Fix overflow check.
7729
5c646d5a
JD
77302009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7731
3132a7ea
JD
7732 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7733
5c646d5a
JD
7734 * xterm.h (x_wait_for_event): Declare it.
7735
7736 * xterm.c (pending_event_wait): New variable.
7737 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7738 see pending_event_wait.eventtype.
7739 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7740 (x_new_font): Call change_frame_size with new rows/columns before we
7741 try to resize the frame.
5c646d5a 7742 (x_wait_for_event): New function.
d528b1ce
SM
7743 (x_set_window_size_1): Don't change gravity unless change_gravity
7744 is set.
5c646d5a
JD
7745 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7746 don't change frame size, instead wait for the ConfigureNotify.
7747 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7748 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7749 (x_initialize): Initialize pending_event_wait.
7750
7751 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7752 size.
7753
7754 * widget.c (EmacsFrameSetValues): Add comment.
7755 (EmacsFrameSetCharSize): Just call x_set_window_size.
7756
7757 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7758 x_wait_for_event.
d528b1ce 7759 (flush_and_sync): Remove again.
5c646d5a
JD
7760 (xg_get_font_name): Suggest monospace if no previous font is known.
7761
e9c1637d
SM
77622009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7763
7764 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7765 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7766
5a72cccb
YM
77672009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7768
7769 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7770 processing pending events when event is filtered for input method.
ab04798f 7771 (Bug#3681)
5a72cccb 7772
2629aa37
JB
77732009-10-20 Juanma Barranquero <lekktu@gmail.com>
7774
7775 * fns.c: Add #endif accidentally removed in previous change.
7776
c3417a74
DN
77772009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7778
7779 * fns.c: Remove code for unsupported system: MAC_OS.
7780 * image.c: Likewise. Include setjmp.h.
7781
9685cef2
JD
77822009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7783
7784 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7785 pixel -1 (bug #4742).
7786
d7306fe6
DN
77872009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7788
019d2c4c
DN
7789 * process.c (create_pty): Remove conditionals for no longer
7790 supported systems: UNIPLUS and RTU.
7791
ee6bacd4
DN
7792 * xterm.c:
7793 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7794
d7306fe6
DN
7795 * alloc.c: Do not define struct catchtag.
7796 * eval.c: Move struct catchtag definition ...
7797 * lisp.h: ... here.
7798
7799 * image.c: Move png.h #include earlier to avoid warnings.
7800
7801 * xterm.c:
7802 * xsmfns.c:
7803 * xselect.c:
7804 * xrdb.c:
7805 * xmenu.c:
7806 * xftfont.c:
7807 * xfont.c:
7808 * xfns.c:
7809 * xfaces.c:
7810 * xdisp.c:
7811 * window.c:
7812 * widget.c:
7813 * w32xfns.c:
7814 * w32uniscribe.c:
7815 * w32term.c:
7816 * w32select.c:
7817 * w32reg.c:
7818 * w32proc.c:
7819 * w32menu.c:
7820 * w32inevt.c:
7821 * w32heap.c:
7822 * w32font.c:
7823 * w32fns.c:
7824 * w32console.c:
7825 * w32.c:
7826 * w16select.c:
7827 * vm-limit.c:
7828 * unexsol.c:
7829 * unexec.c:
7830 * unexcw.c:
7831 * unexaix.c:
7832 * undo.c:
7833 * tparam.c:
7834 * textprop.c:
7835 * terminfo.c:
7836 * terminal.c:
7837 * termcap.c:
7838 * term.c:
7839 * syntax.c:
7840 * sound.c:
7841 * sheap.c:
7842 * search.c:
7843 * scroll.c:
7844 * region-cache.c:
7845 * regex.c:
7846 * ralloc.c:
7847 * process.c:
7848 * print.c:
b024548b
DN
7849 * nsterm.m:
7850 * nsselect.m:
7851 * nsmenu.m:
7852 * nsimage.m:
7853 * nsfont.m:
7854 * nsfns.m:
d7306fe6
DN
7855 * msdos.c:
7856 * minibuf.c:
7857 * menu.c:
7858 * marker.c:
7859 * macros.c:
7860 * keymap.c:
7861 * keyboard.c:
7862 * intervals.c:
7863 * insdel.c:
7864 * indent.c:
7865 * gtkutil.c:
7866 * ftxfont.c:
7867 * ftfont.c:
7868 * fringe.c:
7869 * frame.c:
7870 * fontset.c:
7871 * font.c:
7872 * fns.c:
7873 * floatfns.c:
7874 * filelock.c:
7875 * fileio.c:
7876 * emacs.c:
7877 * editfns.c:
7878 * dosfns.c:
7879 * doprnt.c:
7880 * doc.c:
7881 * dispnew.c:
7882 * dired.c:
7883 * dbusbind.c:
7884 * data.c:
7885 * composite.c:
7886 * coding.c:
7887 * cmds.c:
7888 * cm.c:
7889 * chartab.c:
7890 * charset.c:
7891 * character.c:
7892 * ccl.c:
7893 * category.c:
7894 * casetab.c:
7895 * casefiddle.c:
7896 * callproc.c:
7897 * callint.c:
7898 * bytecode.c:
7899 * buffer.c:
7900 * atimer.c: Include setjmp.h. (Bug#4643)
7901
fd5f21e6
SM
79022009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7903
4c0354d7
SM
7904 Remove leftover table unibyte_to_multibyte_table.
7905 * character.c (unibyte_to_multibyte_table): Remove.
7906 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7907 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7908 * character.h (UNIBYTE_TO_CHAR): New macro.
7909 (MAKE_CHAR_MULTIBYTE): Use it.
7910 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7911 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7912 (message_dolog, set_message_1):
7913 * search.c (Freplace_match):
7914 * editfns.c (Fcompare_buffer_substrings):
7915 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7916 (concat):
7917 * insdel.c (copy_text, count_size_as_multibyte):
7918 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7919 * term.c (produce_glyphs):
7920 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7921 * regex.c (RE_CHAR_TO_MULTIBYTE):
7922 * cmds.c (internal_self_insert):
7923 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7924
fd5f21e6
SM
7925 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7926
4418646e
DN
79272009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7928
7929 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7930
35f5c1d2
JB
79312009-10-16 Juanma Barranquero <lekktu@gmail.com>
7932
7933 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7934
a0cd8f6b
AR
79352009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7936
7937 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7938 still needed under Tiger.
7939
7940 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7941
7942 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7943 __Apple__.
7944
7945 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7946
01a8d3fa
KH
79472009-10-15 Kenichi Handa <handa@m17n.org>
7948
7949 * print.c (print_object): Escape a symbol like "2E10" too.
7950
bf6c75c9 79512009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7952
7953 Cleanups and changes for 64-bit compile under Snow Leopard.
7954 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7955
7956 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7957
c5959062 7958 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7959 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7960 cast argument.
7961 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7962 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7963
7964 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7965
7966 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7967 where appropriate.
7968
7969 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7970 where appropriate.
6e4780c5
JB
7971 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7972 Use stringWithUTF8String.
bf6c75c9
AR
7973 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7974
6e4780c5
JB
7975 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7976 Add formal protocol mention to inheritance.
bf6c75c9
AR
7977 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7978
6e4780c5
JB
7979 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7980 Fix printf format.
bf6c75c9
AR
7981 (ns_query_color): Use CGFloat where appropriate.
7982 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7983 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7984 argument.
7985
3d87f118
AR
7986 * config.in (NS_HAVE_NSINTEGER): Drop.
7987
a95c8102
AR
7988 * dbusbind.c (dbus-method-return-internal)
7989 (dbus-method-error-internal): Use long format in printf, and cast
7990 argument.
7991
7992 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7993 in printf, and cast argument.
7994
6873acca 7995 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7996 cast argument.
7997
9ec6f100
GM
79982009-10-11 Glenn Morris <rgm@gnu.org>
7999
8000 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8001
5be883cd
JD
80022009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8003
8004 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8005 menu bar with a small width so it doesn't enlarge the frame.
8006
d7a39b51
JB
80072009-10-08 Juanma Barranquero <lekktu@gmail.com>
8008
8009 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8010
0c2b6f8e
GM
80112009-10-06 Glenn Morris <rgm@gnu.org>
8012
8013 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8014 SOME_MACHINE_LISP (this enters indirectly via DOC).
8015
e02131a2
EZ
80162009-10-05 Eli Zaretskii <eliz@gnu.org>
8017
8018 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8019
b4744254
EZ
80202009-10-04 Eli Zaretskii <eliz@gnu.org>
8021
8022 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8023 Doc fix.
8024
dbf64827
JB
80252009-10-03 Martin Rudalics <rudalics@gmx.at>
8026
8027 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8028
e9a0aef8
MA
80292009-10-02 Michael Albinus <michael.albinus@gmx.de>
8030
d528b1ce 8031 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
8032 used anymore outside fileio.c.
8033
8034 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8035
64eb2b56
JB
80362009-10-01 Juanma Barranquero <lekktu@gmail.com>
8037
8038 * lisp.h (Qdelete_directory_internal):
8039 Declare, instead of Qdelete_directory.
8040
8041 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8042
9d28c33e
SM
80432009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8044
8045 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8046
9d8f3bd9
MA
80472009-10-01 Michael Albinus <michael.albinus@gmx.de>
8048
9d28c33e 8049 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
8050 Fdelete_directory. It is not a command anymore. It has no file
8051 name handler.
8052
9694740b
SM
80532009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8054
8055 * xdisp.c (get_next_display_element): Use an enum in last change.
8056
748e162f
KH
80572009-09-28 Kenichi Handa <handa@m17n.org>
8058
9694740b 8059 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
8060 unibyte_display_via_language_environment in handling
8061 Vnobreak_char_display.
8062
17efd58d
AR
80632009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8064
8065 * nsterm.h (ns_app_name): New extern variable.
8066
8067 * nsterm.m (ns_app_name): New variable.
8068 (ns_term_init): Set and use it.
8069 (ns_term_shutdown): Use it.
8070
8071 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8072 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8073
8074 * nsfns.m (ns_set_name_iconic, ns_set_name)
8075 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8076 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8077
9694740b
SM
8078 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8079 Remove double-casting in client_data comparison.
31c2d412 8080
3208cb35
YM
80812009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8082
8083 * keyboard.c (make_lispy_event): Remember last wheel direction.
8084 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8085
b7d552d6
GM
80862009-09-26 Glenn Morris <rgm@gnu.org>
8087
8088 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8089 internal.elc. Add term/pc-win.elc.
8090 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8091 term/x-win.elc.
8092 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8093 term/w32-win.elc.
8094 (NS_SUPPORT): New.
8095 (lisp): Add NS_SUPPORT.
8096 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8097
4ff670a8
DR
80982009-09-25 David Reitter <david.reitter@gmail.com>
8099
8100 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8101 on Mac OS X 10.6+ (bug#4513).
8102
feabfb6c
JB
81032009-09-24 Juanma Barranquero <lekktu@gmail.com>
8104
8105 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8106 some parts of Emacs code (like font selection) don't grok them.
8107 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8108
de59072a
AS
81092009-09-24 Andreas Schwab <schwab@redhat.com>
8110
8111 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8112
a489517b
JB
81132009-09-24 Juanma Barranquero <lekktu@gmail.com>
8114
8115 * dired.c (Fdirectory_files): Fix typo in docstring.
8116
0592970c
AR
81172009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8118
8119 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8120 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8121 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8122 under GNUstep.
8123 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8124
8125 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8126 glyph advancement.
8127
48e8a88b
AR
81282009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8129
8130 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8131 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8132
8133 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8134 deleted (bug #4492).
8135
e14f0a78
AR
8136 * nsfont.m (Vns_reg_to_script): New lisp variable.
8137 (syms_of_nsfont): Declare it.
8138 (ns_registry_to_script): New function.
8139 (ns_get_req_script): Call it.
8140 (ns_findfonts): Don't give up on non-unicode registry.
8141
8142 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8143
5b650faa
SM
81442009-09-20 Tom Tromey <tromey@redhat.com>
8145
8146 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8147 batch mode (bug#4228).
8148
a489517b 81492009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8150
8151 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8152 carefully. (Bug #4339)
0bae4e09 8153
fcfe06f3
CY
81542009-09-18 Chong Yidong <cyd@stupidchicken.com>
8155
d798ba87 8156 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8157
31642728
AR
81582009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8159
8160 * emacs.c (inhibit_x_resources): Update doc string for NS.
8161 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8162 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8163
8164 * nsterm.h (ns_no_defaults): Remove.
8165
8166 * nsterm.m (ns_no_defaults): Remove.
8167 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8168 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8169 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8170 don't update the NSWindow itself.
8171 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8172 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8173
8174 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8175 ns_use_qd_smoothing.
8176
8177 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8178 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8179 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8180 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8181
8686ac71
JB
81822009-09-17 Juanma Barranquero <lekktu@gmail.com>
8183
8184 * emacs.c (inhibit_x_resources): New variable.
8185 (main) [HAVE_NS]: Don't process --quick command line option.
8186 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8187
8188 * lisp.h (inhibit_x_resources): Declare it extern.
8189
8190 * w32reg.c (x_get_string_resource):
8191 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8192
e227ba05
EZ
81932009-09-17 Eli Zaretskii <eliz@gnu.org>
8194
362654a6
JB
8195 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8196 Add lisp/term/internal.elc.
e227ba05 8197
742d40e8
SM
81982009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8199
8200 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8201 (bug#4461).
8202
005bd5a2
DN
82032009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8204
8205 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8206
8207 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8208 (OBJECTS_MACHINE): Remove, unused.
8209
f9af9719
SM
82102009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8211
8212 * frame.c (x_get_resource_string): Remove unused.
8213
0307c7d2
JD
82142009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8215
8216 * xterm.c (x_new_font): Call change_frame_size before calling
8217 x_set_window_size, in case frame size won't change.
8218
8219 * frame.c (x_set_font): Remove dead code.
8220
428b13d6
SM
82212009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8222
8223 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8224
5766c380
SM
82252009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8226
8227 * lread.c (Fload): Don't output a message after loading an obsolete
8228 package any more (done in Lisp now).
8229
2fd0161b
CY
82302009-09-12 Chong Yidong <cyd@stupidchicken.com>
8231
8232 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8233
bc5e75b6
SM
82342009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8235
8236 * keymap.c (Fwhere_is_internal): Use nconc2.
8237
c31c985e
AM
82382009-09-11 Alan Mackenzie <acm@muc.de>
8239
8240 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8241 batch mode.
8242
78012bd2
AS
82432009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8244
8245 * xdisp.c (display_mode_element): Detect cycles.
8246
9d889332
SM
82472009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8248
8249 * keymap.c (where_is_internal): Don't erroneously return nil right after
8250 filling the cache.
8251 (where_is_internal_1): Fix up typo.
8252
7ab5d780
GM
82532009-09-11 Glenn Morris <rgm@gnu.org>
8254
8255 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8256 share a common doc-string.
8257
5238a749
SM
82582009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8259
66d77eda
SM
8260 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8261 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8262
5238a749
SM
8263 * keymap.c (QCadvertised_binding): New constant.
8264 (syms_of_keymap): Initialize it.
8265 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8266 if applicable.
8267
19f48442
SM
82682009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8269
50d4ba39
SM
8270 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8271 (parse_menu_item): Streamline since bindings are recomputed all the
8272 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8273 more and don't support lmenu's menu-alias any more either.
8274
a88a5372
SM
8275 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8276 (where_is_internal): Strip it down to only traverse the keymaps.
8277 Move the cache handling from Fwhere_is_internal to here.
8278 (Fwhere_is_internal): Move the handling of remapping and the choice of
8279 the best binding from where_is_internal to here.
8280 Unify the cached/noncached paths, so remapping is also handled
8281 correctly when the cache is used, and so the cache can be used to
8282 speed up remap-handling when applicable.
8283 Give preference to non-remapped bindings.
8284 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8285 non-remapped bindings.
8286 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8287 command remapping.
8288
19f48442
SM
8289 * xdisp.c (display_mode_element): Move list length limit from 50 to
8290 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8291
599498c3 82922009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8293
8294 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8295
f9b7b5ac
SM
82962009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8297
a53af587
JB
8298 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8299 (Bug#4334)
8300
f9b7b5ac
SM
8301 * keymap.c (where_is_internal): Filter out shadowed remappings.
8302 Assume that where_is_internal returns unshadowed bindings to simplify
8303 the code and get rid of the gotos. Use ASIZE.
8304
04f4b72d
JD
83052009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8306
4da146f2
JD
8307 * xterm.c (x_focus_changed): If we get a focusout and pointer
8308 is invisible, make it visible.
8309
04f4b72d
JD
8310 * xterm.h: Remove condition for declaration of
8311 x_*_window_to_frame.
8312
7cef7ce3
SM
83132009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8314
8315 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8316 initial terminal as well.
8317
a54fa5b7
JD
83182009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8319
8320 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8321 x_menubar_window_to_frame.
a54fa5b7 8322
50426a04 8323 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8324 (XTmouse_position): Do not return valid positions
8325 for clicks in the menubar and the toolbar for Gtk+.
8326
8327 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8328 if the widget for the event has the same top level as a frame,
8329 return the frame.
8330 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8331 internal windows, bug #4122.
8332 (x_non_menubar_window_to_frame): Remove.
8333
5a021dd0
GM
83342009-09-02 Glenn Morris <rgm@gnu.org>
8335
8336 * buffer.c (default-major-mode): Move most of the doc from here...
8337 (major-mode): ... to here.
8338
548fe2f3
NR
83392009-08-30 Nick Roberts <nickrob@snap.net.nz>
8340
8341 * process.c (wait_reading_process_output): Keep the descriptor
8342 when pty is used by a non-child process, e.g., in I/O buffer of
8343 GDB this allows inferior to be restarted.
8344
e0840eef
EZ
83452009-08-29 Eli Zaretskii <eliz@gnu.org>
8346
8347 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8348 both branches into one.
8349
82e98df4
SM
83502009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8351
8352 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8353 (main): Use enable-multibyte-characters rather than
8354 default-enable-multibyte-characters. Output a warning message when
8355 running a unibyte session.
8356
890617cb
YM
83572009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8358
8359 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8360 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8361 (copy_data_segment): Also copy __program_vars section.
8362 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8363 (dump_it) [LC_DYLD_INFO]: Use it.
8364
8365 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8366
e7adeadc
EZ
83672009-08-28 Eli Zaretskii <eliz@gnu.org>
8368
8369 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8370 $(SRC)/buildobj.h.
8371 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8372 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8373 $(SRC)/buildobj.h.
8374 (clean): Add buildobj.h.
8375
3ed8bbdc
TZ
83762009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8377
8378 * print.c (print_object): Set escapeflag to 1 when printing
8379 hashtable keys and values.
8380
155a6764
SM
83812009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8382
8383 * lread.c (read_integer): Use doubles (and potentially return a float
8384 number) as we do in string-to-number.
8385 (read1): Use strtol to read integers, signal errors on strtol's
8386 overflow and use floats if strtol's output is too large for
8387 Elisp integers.
8388
877610de
EZ
83892009-08-27 Eli Zaretskii <eliz@gnu.org>
8390
8391 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8392 (make-buildobj-SH): Fix last change.
8393 (SRC): Move to before where it's first used.
8394
ef73e7be
KH
83952009-08-27 Kenichi Handa <handa@m17n.org>
8396
550c8289
KH
8397 * process.c (send_process): Use encode_coding_object instead of
8398 encode_coding_string to perform eol-conversion even if the string
8399 is unibyte.
8400
60afa08d
KH
8401 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8402 character.
8403
ef73e7be 8404 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8405 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8406
7b3a82d7
DN
84072009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8408
5654bf63
DN
8409 * callproc.c (Fcall_process): Remove always true #if.
8410
7b3a82d7
DN
8411 * lisp.h: Replace #if 0 code for checking with text pointing to
8412 the --enable-checking configure flag.
8413
8414 * emacs.c (main): Mention the --enable-profiling configure flag
8415 instead of using CFLAGS.
8416
878bde49
KR
84172009-08-26 Ken Raeburn <raeburn@raeburn.org>
8418
8419 * Makefile.in (buildobj.h): New target.
8420 (doc.o): Depend on it.
8421 (temacs${EXEEXT}): Don't generate buildobj.lst.
8422 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8423 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8424 ($(BLD)/doc.$(O)): Depend on it.
8425 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8426 provided by Eli Zaretskii.)
8427 ($(TEMACS)): Don't generate buildobj.lst.
8428 * doc.c: Include buildobj.h.
8429 (buildobj): New static variable.
8430 (Fsnarf_documentation): Use it, instead of opening and reading
8431 buildobj.lst.
8432
1574224c
MA
84332009-08-25 Michael Albinus <michael.albinus@gmx.de>
8434
8435 * dbusbind.c (Fdbus_call_method)
8436 (Fdbus_call_method_asynchronously): Use English numeric format for
8437 timeout values in doc string.
8438
d9da2f45
KH
84392009-08-25 Kenichi Handa <handa@m17n.org>
8440
ef73e7be
KH
8441 * alloc.c (mark_char_table): New function.
8442 (mark_object): Use mark_char_table for a char-table.
8443
d9da2f45
KH
8444 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8445 (CHAR_TABLE_REF): Use it.
8446
c8edcc01
KR
84472009-08-23 Ken Raeburn <raeburn@raeburn.org>
8448
8449 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8450 before invoking the newly build emacs to check for load-path
8451 shadowing.
8452
7763401b
GM
84532009-08-22 Glenn Morris <rgm@gnu.org>
8454
8455 * Makefile.in (bootstrap_exe): New variable.
8456 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8457 Use ${bootstrap_exe}.
8458
729eadda
EZ
84592009-08-22 Eli Zaretskii <eliz@gnu.org>
8460
8461 * coding.h (encode_coding_string): Don't encode unibyte strings.
8462 (Bug#4047)
8463
eb4c6ace
MA
84642009-08-22 Michael Albinus <michael.albinus@gmx.de>
8465
8466 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8467
8468 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8469 intended as hotfix only.
8470 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8471
36e34d1b
AR
84722009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8473
8474 * nsterm.m (ns_get_color): Update documentation properly for last
8475 change, and clean up loose ends in the code left by it. Fix
8476 longstanding bug with 16-bit hex parsing, and add support for
8477 yet another X11 format (rgb:r/g/b) for compatibility.
8478 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8479 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8480
f983eb8a
SM
84812009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8482
8483 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8484
3f56d3c6
MA
84852009-08-20 Michael Albinus <michael.albinus@gmx.de>
8486
8487 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8488 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8489 (xd_initialize, xd_pending_messages): Check, whether
8490 $DBUS_SESSION_BUS_ADDRESS is set.
8491
fb641d68
YM
84922009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8493
8494 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8495
8496 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8497
cf59a374
GM
84982009-08-20 Glenn Morris <rgm@gnu.org>
8499
8500 * emacs.c (system-type): Doc fix.
8501
1373f3be
SM
85022009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8503
8504 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8505 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8506
058ed861
MA
85072009-08-18 Michael Albinus <michael.albinus@gmx.de>
8508
1373f3be
SM
8509 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8510 New functions.
058ed861
MA
8511 (xd_initialize): Revert change from 2009-08-16.
8512
563a866e 85132009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8514
8515 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8516 font-group vector, return nil.
5fc05db0 8517
e42bdf01
CY
85182009-08-17 Chong Yidong <cyd@stupidchicken.com>
8519
8520 * process.c (status_notify): Don't perform redisplay.
8521 (Fdelete_process, list_processes_1, process_send_signal):
8522 Expliticly perform redisplay.
8523 (wait_reading_process_output): Always check process status, but
8524 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8525
4230ab74
KR
85262009-08-17 Ken Raeburn <raeburn@raeburn.org>
8527
1373f3be 8528 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8529 (XFLOAT_INIT): New macro for storing a float value.
8530 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8531 * fns.c (sxhash): Copy out the value of a float in order to
8532 examine its bytes.
8533 * dbusbind.c (xd_append_arg): Likewise.
8534
4230ab74
KR
8535 * emacs.c (main): Don't call syms_of_data twice.
8536
a0645cdd
MA
85372009-08-16 Michael Albinus <michael.albinus@gmx.de>
8538
8539 * dbusbind.c (xd_initialize): Add connection file descriptor to
8540 input_wait_mask, in order to let select() detect, whether a new
8541 message has been arrived.
ca4f31ea 8542 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8543
485db0ba
MA
85442009-08-15 Michael Albinus <michael.albinus@gmx.de>
8545
1373f3be
SM
8546 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8547 New functions.
485db0ba
MA
8548
8549 * lisp.h (xd_pending_messages): Declare.
8550
8551 * keyboard.c (readable_events): Call xd_pending_messages.
8552
b5b98ff4
CY
85532009-08-15 Chong Yidong <cyd@stupidchicken.com>
8554
1373f3be 8555 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8556
f8354c6e
CY
8557 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8558
b5b98ff4
CY
8559 * buffer.c (set_buffer_internal_1)
8560 (swap_out_buffer_local_variables): Check for unbound local
8561 variables (Bug#4138).
8562
8b9fc636
EZ
85632009-08-14 Eli Zaretskii <eliz@gnu.org>
8564
8565 * process.c (create_pty): Fix last change.
8566
ce959360
CY
85672009-08-13 Chong Yidong <cyd@stupidchicken.com>
8568
8569 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8570 (xbm_load_image): Caller changed.
64b807c9 8571 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8572
c7baf7e9
NR
85732009-08-13 Nick Roberts <nickrob@snap.net.nz>
8574
8575 * process.c (create_pty): New function.
8576 (Fstart_process): Use it to allow Emacs to just associate a pty
8577 with the buffer. See associated change in gdb-mi.el.
8578 (list_processes_1): Deal with no program name.
8579 (start_process_unwind): Use pid == -2 to mean no process.
8580
1ac9108a
SM
85812009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8582
8583 * cmds.c (nonundocount): New global variable.
8584 (keys_of_cmds): Initialize it.
8585 (Fself_insert_command): Use it to combine upto 20 sequential chars
8586 into a single undo entry, just like the Qself_insert_command code in
8587 keyboard.c does.
8588 Call frame_make_pointer_invisible, also like the Qself_insert_command
8589 code in keyboard.c does.
8590 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8591 than its own local replacement for it.
8592
e267324c
KR
85932009-08-10 Ken Raeburn <raeburn@raeburn.org>
8594
1ac9108a 8595 * fns.c (concat): Don't re-set string length to its current value.
77437343 8596
1ac9108a
SM
8597 * coding.h (decode_coding_string, encode_coding_string):
8598 Use SBYTES macro.
f0bed503 8599
1ac9108a 8600 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8601 (doprnt): Merge with doprnt1, discarding lispstrings code.
8602 * lisp.h (doprnt_lisp): Don't declare.
8603
416e006d
JL
86042009-08-07 Juri Linkov <juri@jurta.org>
8605
8606 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8607
6f7d5780
DN
86082009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8609
8610 * print.c (syms_of_print): Undo previous change.
8611
f19a0f5b
TZ
86122009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8613
8614 * lread.c (read1, syms_of_lread): Read hashtables back from the
8615 readable format.
8616
8617 * print.c (print_preprocess, print_object): Print hashtables fully
8618 and readably.
8619 (syms_of_print): Provide 'hashtable-print-readable.
8620
b9173dc2
AR
86212009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8622
8623 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8624 no family set.
8625 (nsfont_open): Handle case when entity has no family.
8626
1586503c
AR
86272009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8628
8629 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8630 element, not a list, for match case.
8631
087048cd
KH
86322009-07-28 Kenichi Handa <handa@m17n.org>
8633
8634 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8635 rigidly.
8636
8637 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8638 font_parse_xlfd. Check font properties more rigidly.
8639
780c2506
DN
86402009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8641
31fd7c5c
JB
8642 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8643 bsd-common.h.
780c2506 8644
a8c0cc18
KH
86452009-07-27 Kenichi Handa <handa@m17n.org>
8646
8647 * xfaces.c (face_with_height): Call font_clear_prop.
8648
4fbe2306
CY
86492009-07-26 Chong Yidong <cyd@stupidchicken.com>
8650
111d9af3
CY
8651 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8652
8653 * xterm.c (x_term_init): Use Qx.
8654
4fbe2306
CY
8655 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8656
1ac9108a 8657 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8658 (ns_get_color): Revert 2009-07-16 change.
8659
beb0b7f9
EZ
86602009-07-25 Eli Zaretskii <eliz@gnu.org>
8661
8662 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8663 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8664
2baf5e76
KR
86652009-07-25 Ken Raeburn <raeburn@raeburn.org>
8666
1ac9108a
SM
8667 * coding.h (decode_coding_string, encode_coding_string):
8668 Use SCHARS macro.
8890e5f5 8669
2baf5e76 8670 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8671 (load_depth): Delete.
2baf5e76
KR
8672 (Qload_in_progress): New variable.
8673 (load_unwind): Don't reference load_depth or load_in_progress.
8674 (Fload): Likewise; specbind Qload_in_progress instead.
8675 (init_lread): Don't initialize load_depth.
8676 (syms_of_lread): Initialize and protect Qload_in_progress.
8677
1395c6f5
AR
86782009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8679
8680 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8681
4e2f36cf
AR
86822009-07-23 Yavor Doganov <yavor@gnu.org>
8683
8684 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8685
5dd9a6f7
AR
86862009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8687
8688 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8689 Bugs 3792, 3720, 2402.
8690 (ns_lookup_indexed_color): Check for bad index.
8691 (ns_index_color): Init unused slot to 0.
8692 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8693 Bug 3714, possibly 3082.
5dd9a6f7 8694
c902b920
JR
86952009-07-22 Jason Rumney <jasonr@gnu.org>
8696
1ac9108a
SM
8697 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8698 Position IME window at cursor (Bug#2570).
c902b920
JR
8699 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8700 (globals_of_w32fns): Dynamically load functions required above.
8701
8702 * w32term.c (w32_draw_window_cursor): Send message to reposition
8703 any IME window.
8704
090101cf
CY
87052009-07-21 Chong Yidong <cyd@stupidchicken.com>
8706
8707 * fileio.c: Revert 2009-07-16 changes.
8708 (Vauto_save_include_big_deletions): New variable.
8709 (Fdo_auto_save): Disable auto-save only if
8710 auto-save-include-big-deletions is nil.
8711
e6583e3d
CY
87122009-07-21 Chong Yidong <cyd@stupidchicken.com>
8713
8714 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8715 the overflowed pixels into account (Bug#3879).
8716
ece435a5
KR
87172009-07-21 Ken Raeburn <raeburn@raeburn.org>
8718
8719 * lread.c (load_depth): New variable.
8720 (Fload, load_unwind, init_lread): Set it to the load recursion
8721 depth; set load_in_progress as a simple boolean based on the
8722 current load_depth. (Bug#3892)
8723
40b2d973
AR
87242009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8725
8726 * nsfont.m (ns_has_attribute): Remove.
8727 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8728
10be7e0d
JL
87292009-07-18 Juri Linkov <juri@jurta.org>
8730
8731 * process.c (Fset_process_query_on_exit_flag): Mention killing
8732 a buffer in docstring.
8733
fa055055
KH
87342009-07-17 Kenichi Handa <handa@m17n.org>
8735
8736 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8737
042f7b69
YM
87382009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8739
8740 * nsfns.m (Fns_set_alpha): Remove function.
8741 (syms_of_nsfns): Don't defsubr it.
8742
8743 * nsterm.m (ns_get_color): Remove incompatible color formats.
8744 (ns_color_to_lisp): Generate #rrggbb color format string.
8745
4be941e3
RS
87462009-07-16 Richard Stallman <rms@gnu.org>
8747
8748 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8749 (Fset_buffer_auto_saved): Handle save_length = -2.
8750
4e6b227d
CY
87512009-07-16 Chong Yidong <cyd@stupidchicken.com>
8752
8753 * xterm.c (Qx_gtk_map_stock): New var.
8754
8755 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8756 of calling intern each time.
8757
a1856973
YM
87582009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8759
8760 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8761 does tiling.
8762
8763 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8764
497e54d8
KH
87652009-07-14 Kenichi Handa <handa@m17n.org>
8766
72d36834
KH
8767 * font.c (font_vconcat_entity_vectors): New function.
8768 (struct font_sort_data): New member font_driver_preference.
8769 (font_compare): Check font_driver_preference.
8770 (font_sort_entities): The format of the first argument changed.
8771 (font_delete_unmatched): Likewise.
8772 (font_list_entities): The return type changed.
8773 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8774 (font_find_for_lface): Adjuste for the above changes.
8775 Don't suppress the checking of C even if the repertory supports it.
8776 (Flist_fonts): Adjust for the above changes.
72d36834 8777
1ac9108a
SM
8778 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8779 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8780 Reject a font who has adstyle property that is different from a
8781 langname derived from registry property.
1ac9108a 8782 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8783
b6046155
EZ
87842009-07-13 Eli Zaretskii <eliz@gnu.org>
8785
8786 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8787 local copy of dirfilename.
8788
fb6b6049
KH
87892009-07-13 Kenichi Handa <handa@m17n.org>
8790
e2402a5e
KH
8791 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8792 against max_char.
8793
fb6b6049
KH
8794 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8795 calling XSYMBOL (sym).
8796
65156807
EZ
87972009-07-11 Eli Zaretskii <eliz@gnu.org>
8798
1ac9108a
SM
8799 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8800 New function.
8801 (directory_files_internal) [WINDOWSNT]:
8802 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8803 the filesystem of the directory is fast or slow.
8804
8805 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8806 file name.
8807 (is_slow_fs): New function.
8808 (stat): Use it to determine whether to issue more system calls to
8809 get accurate file attributes, when w32-get-true-file-attributes is
8810 `local'.
8811
e0ab5fcf
JD
88122009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8813
8814 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8815 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8816 parameter font-parameter as default to the font dialog.
8817
784ceded
KH
88182009-07-10 Kenichi Handa <handa@m17n.org>
8819
8820 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8821
fb8edc0b
EZ
88222009-07-09 Eli Zaretskii <eliz@gnu.org>
8823
1ac9108a 8824 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8825
fb8edc0b
EZ
8826 * w32.c (stat): Treat UNC file names as residing on remote
8827 drives. (Bug#3542)
8828
635c75b1
KH
88292009-07-09 Kenichi Handa <handa@m17n.org>
8830
8831 * fontset.c (fontset_find_font): Fix previous change.
8832
c1d5ce94
MA
88332009-07-08 Michael Albinus <michael.albinus@gmx.de>
8834
8835 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8836 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8837 error flag.
8838
edb61b39
KH
88392009-07-08 Kenichi Handa <handa@m17n.org>
8840
374bf7e4
KH
8841 * fontset.c (fontset_find_font): Fix the logic of handling
8842 charset_matched.
8843 (font_for_char): Delete unused var.
8844 (generate_ascii_font_name): Delete it.
8845
edb61b39
KH
8846 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8847
8848 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8849 (encode_coding_sjis): Fix the code range check.
8850
0f3f018c
CY
88512009-07-07 Chong Yidong <cyd@stupidchicken.com>
8852
8853 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8854 (Fexpand_file_name): Copy string data properly (Bug#3772).
8855
fcaf6f3a
JD
88562009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8857
8858 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8859 first MapNotify.
8860
6809ca75
KH
88612009-07-07 Kenichi Handa <handa@m17n.org>
8862
8863 * character.h (unibyte_has_multibyte_table): Delete extern.
8864 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8865
8866 * charset.c (Fset_charset_priority): Update charset_unibyte.
8867 (syms_of_charset): Initialize charset_unibyte.
8868
8869 * character.c (unibyte_has_multibyte_table): Delete it.
8870 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8871 charset_unibyte.
8872 (multibyte_char_to_unibyte_safe): Likewise.
8873 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8874
1ac9108a 8875 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8876 (x_produce_glyphs): Likewise.
8877
8878 * .gdbinit (xcharset): Fix the treating $arg0.
8879
ad9e2d54
EZ
88802009-07-04 Eli Zaretskii <eliz@gnu.org>
8881
8882 Emulation of `getloadavg' on MS-Windows.
50426a04 8883 * w32.c: Include float.h.
ad9e2d54
EZ
8884 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8885 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8886 (get_native_system_info, get_system_times): New functions.
8887 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8888 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8889 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8890 g_b_init_get_system_times, and num_of_processors.
8891
0a3472c7
JR
88922009-07-03 Jason Rumney <jasonr@gnu.org>
8893
8894 * w32term.c (w32_initialize): Use standard types.
8895
80904120
EZ
88962009-07-03 Eli Zaretskii <eliz@gnu.org>
8897
8898 * dired.c (Ffile_attributes): Decode user and group names by the
8899 locale's encoding. (Bug#3443)
8900
6978862d
DN
89012009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8902
f8d23104
DN
8903 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8904 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8905
8906 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8907
8908 * term.c (init_tty): Remove spurious #ifdef.
8909
6978862d
DN
8910 * m/mips.h: Mention this file is also used for netbsd.
8911 * m/pmax.h: Remove file.
8912
e044e4fc
JD
89132009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8914
8915 * xterm.h (struct x_display_info): Add invisible_cursor.
8916 (struct x_output): Add current_cursor.
8917
8918 * xterm.c (XTtoggle_invisible_pointer): New function.
8919 (x_define_frame_cursor): Don't define cursor if invisible or the
8920 same as before. Set current_cursor.
8921 (x_create_terminal): Set toggle_invisible_pointer_hook.
8922
8923 * xfns.c (make_invisible_cursor): New function.
8924 (x_set_mouse_color): Call make_invisible_cursor.
8925 Set current_cursor.
8926 (x_window): Set current_cursor.
8927
8928 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8929
8930 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8931 inserting a character.
8932 (read_avail_input): Call frame_make_pointer_visible.
8933
8934 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8935 (frame_make_pointer_invisible, frame_make_pointer_visible):
8936 New functions.
e044e4fc
JD
8937 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8938
8939 * frame.h: Declare frame_make_pointer_invisible and
8940 frame_make_pointer_visible.
8941 (struct frame): Add pointer_invisible.
8942
574c8efa
JD
89432009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8944
7b507248
JD
8945 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8946 frame isn't visible.
8947 (xg_frame_resized): If width/height is -1, get size of window
8948 from X server.
8949
8950 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8951 for MapNotify.
8952
835bdaa7 8953 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8954 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8955 (flush_and_sync): Reintroduce.
574c8efa 8956
3f1c6666 89572009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8958
31fd7c5c 8959 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8960
8961 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8962 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8963
8964 * frame.h: Declare Qsticky.
8965
cad9ef74
JD
8966 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8967
8968 * nsfns.m (ns_frame_parm_handlers): Ditto.
8969
8970 * frame.c: Declare Qsticky.
8971 (frame_parms): Add sticky.
8972
8973 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8974
8975 * xterm.h: Declare x_set_sticky.
8976
8977 * xterm.c (x_set_sticky): New function.
8978
69b16610
JD
8979 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8980 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8981 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8982
8983 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8984
8985 * frame.c: Qmaximized is new.
8986 (x_set_frame_parameters): Do not handle fullscreen specially.
8987 Only set width and height if explicitly set.
8988 (x_set_fullscreen): Handle Qmaximized.
8989 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8990 (syms_of_frame): Initialize Qmaximized.
8991
1ac9108a
SM
8992 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8993 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8994
8995 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8996 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8997 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8998 set gravity to NorthWestGravity when USE_GTK.
8999 (set_wm_state): New function.
31fd7c5c 9000 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
9001 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9002 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 9003 or the case when no window manager is running. That means remove calls
3f1c6666
JD
9004 to x_real_positions and x_fullscreen_adjust.
9005
9006 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9007 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9008 flush_and_sync.
9009 (xg_height_changed): New function.
9010 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
9011 and gtk_window_set_policy. Set frame gravity after parsing the
9012 geometry string.
3f1c6666
JD
9013 (xg_update_frame_menubar, free_frame_menubar)
9014 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9015 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9016 Remove calls to xg_frame_set_char_size.
9017
fd503d99
KH
90182009-07-01 Kenichi Handa <handa@m17n.org>
9019
9020 * keyboard.c (decode_keyboard_code): New function.
9021 (tty_read_avail_input): Decode the input bytes if necessary.
9022
1ac9108a
SM
9023 * coding.c (setup_coding_system):
9024 Initialize coding->carryover_bytes to 0.
fd503d99
KH
9025 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9026 use Qno_conversion.
9027
24ed93fb
YM
90282009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9029
9030 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9031
99061dfc
CY
90322009-06-30 Chong Yidong <cyd@stupidchicken.com>
9033
1ac9108a 9034 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 9035
ff90fbde
JR
90362009-06-30 Jason Rumney <jasonr@gnu.org>
9037
9038 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9039 is already loaded.
9040 Set user model ID if supported (bug#1849).
9041
5f445726
JM
90422009-06-29 Jim Meyering <meyering@redhat.com>
9043
9044 Remove useless if-before-xfree test.
9045 * nsfont.m (nsfont_close): Remove useless test.
9046 * term.c (delete_tty): Likewise.
9047 * w32.c (system_process_attributes): Likewise.
9048 * w32font.c (w32font_close): Likewise.
9049 * xfaces.c (x_free_gc): Likewise.
9050 * xselect.c (buffer): Likewise.
9051
b9607587
AS
90522009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9053
9054 * process.c (send_process): Keep decoded string in a local
9055 variable and protect it from GC. (Bug#3521)
9056
89ba96f4
EZ
90572009-06-28 Eli Zaretskii <eliz@gnu.org>
9058
9059 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9060 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9061
098a1589
CY
90622009-06-28 Chong Yidong <cyd@stupidchicken.com>
9063
485422be
CY
9064 * xdisp.c (start_display, handle_face_prop)
9065 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
9066 (redisplay_window, try_window_id, produce_image_glyph):
9067 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 9068
098a1589
CY
9069 * xterm.c (x_update_window_begin, x_new_focus_frame)
9070 (x_scroll_bar_handle_click, handle_one_xevent)
9071 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9072 (x_make_frame_visible, x_make_frame_invisible)
9073 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9074 code chunks that are now obsolete.
9075
78c38319
MA
90762009-06-28 Michael Albinus <michael.albinus@gmx.de>
9077
9078 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9079 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9080 for hours, when optimzation is enabled.
9081 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9082 (xd_read_message): Make them static.
9083
4189ed40
CY
90842009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9085
9086 * term.c (turn_on_face): Allow simultaneously bold and dim
9087 terminal faces (Bug#3530).
9088
cd9b5e16
CY
90892009-06-27 Chong Yidong <cyd@stupidchicken.com>
9090
4e23bedb
CY
9091 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9092
cd9b5e16
CY
9093 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9094 truncation glyphs (Bug#3686).
9095
07cc3c35
GM
90962009-06-27 Glenn Morris <rgm@gnu.org>
9097
9098 * m/pmax.h: Restore file, with only netbsd portions.
9099
31fd7c5c 91002009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9101
cd9b5e16 9102 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9103
42d4a64f
KH
91042009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9105
9106 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9107 the arg FORCE_SYMBOL.
9108
930fe55b 91092009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9110
9111 * fontset.c (fontset_find_font): When a usable rfont_def is found
9112 in a fallback font-group, make it the first element of the group.
9113
57ebc3fd
CY
91142009-06-24 Chong Yidong <cyd@stupidchicken.com>
9115
9116 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9117
f084f942
KH
91182009-06-24 Kenichi Handa <handa@m17n.org>
9119
9120 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9121 set for C.
9122 (fontset_font): Record the availability of a font for C both in
9123 the realized fontsets of the current one and the default one.
9124
2f686c87
DN
91252009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9126
9127 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9128 conditional, it is always defined on AIX.
9129
666e158e
MB
91302009-06-23 Miles Bader <miles@gnu.org>
9131
9132 * window.c (Vrecenter_redisplay): New variable.
9133 (syms_of_window): Initialize it.
9134 (Qtty): New extern declaration.
9135 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9136
c6da7cd2
JM
91372009-06-23 Jim Meyering <meyering@redhat.com>
9138
1ac9108a
SM
9139 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9140 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9141 pointer dereferences are guaranteed to be valid.
c6da7cd2 9142
678dca3d
KH
91432009-06-23 Kenichi Handa <handa@m17n.org>
9144
74d75424
KH
9145 * emacs.c (main): Call init_font ().
9146
9147 * font.h (Vfont_log): Extern it.
9148 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9149
9150 * font.c (font_sort_entities, font_list_entities)
9151 (font_matching_entity, font_open_entity)
9152 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9153 (Vfont_log): Delete static.
9154 (font_log_env_checked): Delete this variable.
9155 (font_add_log): Don't check font_log_env_checked.
9156 (font_deferred_log): Check Vfont_log.
9157 (init_font): New function.
9158
678dca3d
KH
9159 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9160
9161 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9162
9163 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9164
9165 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9166
9167 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9168 (face_for_char): Don't call font_deferred_log here.
9169 (font_for_char): Likewise.
9170
8a668709
CY
91712009-06-22 Chong Yidong <cyd@stupidchicken.com>
9172
9a01ee33
CY
9173 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9174 rather than its background_width for drawing the overline and
9175 underline (Bug#489).
9176
9177 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9178 rather than its background_width for drawing the overline and
9179 underline (Bug#489).
ec7c9926
CY
9180 (xg_default_icon_file): New variable.
9181 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9182 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9183
8a668709
CY
9184 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9185 (load_overlay_strings): Remove externs.
9186 (fast_find_position): Function deleted.
9187 (mouse_face_from_buffer_pos): New function, based on
9188 fast_find_position. Correctly handle before-strings,
9189 display-strings, and after-strings (Bug#1220).
9190 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9191
4d4c02d8
CY
91922009-06-21 Chong Yidong <cyd@stupidchicken.com>
9193
1ac9108a 9194 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9195 (move_it_in_display_line_to, move_it_in_display_line_to)
9196 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9197
70243478
CY
91982009-06-21 Chong Yidong <cyd@stupidchicken.com>
9199
9200 * Branch for 23.1.
9201
13087e59
JR
92022009-06-21 Jason Rumney <jasonr@gnu.org>
9203
9204 * w32term.c (keyboard_codepage): New static variable.
9205 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9206 (w32_read_socket) [WM_CHAR]: Use it to decode character
9207 input (bug#3237).
9208 (w32_initialize): Initialize it.
9209 (codepage_for_locale): New function.
9210
4735b74e
KR
92112009-06-20 Ken Raeburn <raeburn@raeburn.org>
9212
9213 * process.c (status_message): Pass Faset index argument as a lisp
9214 object, so as to work with USE_LISP_UNION_TYPE.
9215
0e727afa
YM
92162009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9217
9218 * coding.c (Ffind_coding_systems_region_internal):
9219 Cache checked characters.
9220
cf299835
KH
92212009-06-18 Kenichi Handa <handa@m17n.org>
9222
1ac9108a 9223 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9224
90f20d94
AS
92252009-06-18 Andreas Schwab <aschwab@redhat.com>
9226
9227 * xdisp.c (redisplay_internal): Check that the frame is still
9228 live after redisplay of its windows.
9229 (redisplay_windows): Check that the window is still live.
9230
7f1faf1c
KH
92312009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9232
9233 * coding.c (detect_coding_utf_16): Fix previous change.
9234
cc13543e
KH
92352009-06-16 Kenichi Handa <handa@m17n.org>
9236
9237 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9238 UTF-16 by checking the dispersion of Eth and Oth bytes.
9239
977b85f4
AS
92402009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9241
9242 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9243
66bd43d1
KH
92442009-06-15 Kenichi Handa <handa@m17n.org>
9245
9246 * process.c (status_message): Fix previous change. Be sure to
9247 decode a localized string.
9248
cb5ca9c5
YM
92492009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9250
9251 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9252 add comment explaining why.
9253
ec7709ba 92542009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9255
ec7709ba 9256 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9257
4b7f335c
AR
92582009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9259
9260 * nsfont.m (ns_attribute_value): Remove.
9261 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9262 (ns_has_attribute): Shrink the normal range.
9263 (ns_findfonts): Don't worry about requested spec in determining
9264 need for synthItal.
e41820ee 9265 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9266
73b26103
SZ
92672009-06-14 Seiji Zenitani <zenitani@mac.com>
9268
9269 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9270
5753e4da
KH
92712009-06-11 Kenichi Handa <handa@m17n.org>
9272
9273 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9274 overhang for the static composition case.
9275
3561b671
KH
92762009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9277
5753e4da
KH
9278 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9279 overhang for the automatic composition case.
9280
3561b671
KH
9281 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9282 composition case.
9283
852bbd41
CY
92842009-06-10 Chong Yidong <cyd@stupidchicken.com>
9285
9286 * xdisp.c (get_next_display_element): When handling wrap-prefix
9287 and line-prefix, treat \n as a control character (bug#3502).
9288
9903d1e6
KH
92892009-06-10 Kenichi Handa <handa@m17n.org>
9290
9291 * font.c (font_parse_family_registry): Fix for one-char foundry.
9292 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9293
0bcbaaaa
CY
92942009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9295
9296 * process.c (status_message): Fix handling of multibyte signal
9297 string (Bug#3499).
9298
40aa3f13
JM
92992009-06-09 Jim Meyering <meyering@redhat.com>
9300
1f80c7e2
CY
9301 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9302 color name is missing.
40aa3f13 9303
72d51285
KH
93042009-06-09 Kenichi Handa <handa@m17n.org>
9305
9306 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9307 FROM-CODE and TO-CODE are codepoints of CHARSET.
9308
c1d04d84
AR
93092009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9310
9311 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9312
93132009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9314
9315 Changes to support :script/:lang/:otf in NS font driver.
9316 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9317 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9318 indicate not part of font driver interface, and change callers.
9319 (ns_get_family): Remove pointless null check.
9320 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9321 ns_spec_to_descriptor, ns_descriptor_to_entity.
9322 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9323 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9324 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9325 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9326 (ns_get_req_script, ns_accumulate_script_ranges)
9327 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9328 New functions.
9329 (nsfont_list, nsfont_match): Use ns_findfonts.
9330 (nsfont_open): Use font descriptor instead of traits.
9331 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9332 (dump_glyphstring): Rename to ns_dump_glyphstring.
9333
c7eb9816
AR
9334 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9335
c1d04d84
AR
9336 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9337
9338 * fontset.c (fontset_from_font): Remove NS-specific code.
9339
ec7709ba 93402009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9341
9342 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9343 nonactive windows.
9344
31fd7c5c 93452009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9346
1ac9108a 9347 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9348
68852c13 93492009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9350
9351 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9352
6756cd1d
CY
93532009-06-07 Chong Yidong <cyd@stupidchicken.com>
9354
9355 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9356 account for the overflowing of newlines into the last glyph on the
9357 display line (Bug#3482).
9358
28bf482a
DR
93592009-06-05 David Reitter <david.reitter@gmail.com>
9360
ec7709ba
JB
9361 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9362 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9363 Fns_selection_exists_p, Fns_selection_owner_p.
9364
fdb55376
JR
93652009-06-03 Jason Rumney <jasonr@gnu.org>
9366
9367 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9368 available. (Bug#3379)
9369
05129fbe
KH
93702009-05-29 Kenichi Handa <handa@m17n.org>
9371
1ac9108a
SM
9372 * coding.c (get_translation_table):
9373 Check Venable_character_translation.
05129fbe 9374
ec7709ba 93752009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9376
ec7709ba
JB
9377 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9378 (x_make_frame_visible): Move frame to front rather than calling
15891144 9379 ns_raise_frame().
ec7709ba 9380 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9381 isn't key window.
ec7709ba 9382 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9383 drawRect may be called by NSView even if the frame is hidden.
9384
ec7709ba
JB
9385 * nsfns.m (Fx_create_frame): Follow other ports in
9386 determining visibility; default to t. Ensure async_visible is set.
15891144 9387
21f73755
EZ
93882009-05-23 Eli Zaretskii <eliz@gnu.org>
9389
9390 * dired.c (Ffile_attributes): Doc fix.
9391
34001e41
CY
93922009-05-22 Chong Yidong <cyd@stupidchicken.com>
9393
9394 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9395
46306a17
SM
93962009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9397
9398 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9399 and xfont_scratch_props.
9400 (syms_of_xfont): Do it here instead.
9401 (xfont_find_ccl_program): Delete, unused.
9402 (xfont_open): Delete unused var `i'.
9403
ef6e0694
KH
94042009-05-21 Kenichi Handa <handa@m17n.org>
9405
9406 * fontset.c (Qlatin): Don't make it static.
9407
46306a17
SM
9408 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9409 New functions.
ef6e0694
KH
9410 (xfont_scripts_cache, xfont_scratch_props): New variables.
9411 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9412 (xfont_list_pattern): Argument changed. Callers changed.
9413 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9414 (xfont_list): Don't reject a font spec with :script property.
9415 (xfont_has_char): Fix setting of encoding.
9416 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9417 xfont_scratch_props.
9418
94192009-05-19 Kenichi Handa <handa@m17n.org>
9420
46306a17 9421 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9422 Callers changed.
9423
94242009-05-18 Kenichi Handa <handa@m17n.org>
9425
9426 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9427
ac71ced7
SM
94282009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9429
9430 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9431 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9432
1c6d1051
YM
94332009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9434
9435 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9436 (x_delete_terminal): Dissociate resource database from display and
9437 then call XrmDestroyDatabase before closing display.
9438
9b9b779c
AR
94392009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9440
9441 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9442 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9443 whether selected frame is viable before raising it (based on patch
9444 by David Reitter), and improve commentary.
9445 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9446
cccd42d5
KH
94472009-05-15 Kenichi Handa <handa@m17n.org>
9448
9449 * font.c (Ffont_spec): Check arguments.
9450
337fbd17
CY
94512009-05-14 Chong Yidong <cyd@stupidchicken.com>
9452
9453 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9454 weight when testing attributes (Bug#3282).
9455
47a6002f
JD
94562009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9457
9458 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9459 what we expect to get in the next ConfigureNotify event.
9460
9cb363db
YM
9461 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9462 before Xft one (Bug#1696).
9463
b9126609
CY
94642009-05-07 David Reitter <david.reitter@gmail.com>
9465
9466 * nsfns.m (Fx_display_planes): Compute bitplanes using
9467 NSBitsPerPixelFromDepth (Bug#3207).
9468
27a69fd9
CY
94692009-05-10 Chong Yidong <cyd@stupidchicken.com>
9470
9471 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9472
00f37552
TTN
94732009-05-10 Ulrich Mueller <ulm@gentoo.org>
9474
9475 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9476
2d82a920
DR
94772009-05-07 David Reitter <david.reitter@gmail.com>
9478
ec7709ba
JB
9479 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9480 Respect mouse face background.
2d82a920 9481
46b0d52d
DR
94822009-05-07 David Reitter <david.reitter@gmail.com>
9483
ec7709ba
JB
9484 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9485 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9486 in ns_update_begin and ns_update_end.
9487
ce1b23bb
SM
94882009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9489
5996e1b7
SM
9490 * nsfns.m (ns_get_screen): Rewrite.
9491 Don't presume selected-frame is of type `ns'.
9492
ba98e3a0
SM
9493 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9494 all drivers.
9495
ce1b23bb
SM
9496 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9497
bcda200f
YM
94982009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9499
9500 * keyboard.h (add_user_signal): Fix typo in extern.
9501
9502 * lisp.h (add_user_signal): Remove extern.
9503
9504 * unexelf.c (unexec): Consider a section to precede the .bss section
9505 if its addresses overlap that of .bss.
9506 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9507 instead of dumping process.
9508
864660a2
SM
95092009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9510
9511 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9512
50da4e56
SM
95132009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9514
9515 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9516
51520a1a
DN
95172009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9518
9519 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9520 any statements.
9521
409ea3a1
AS
95222009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9523
59c4c60f
AS
9524 * process.c (read_process_output): Make sure the current buffer is
9525 always restored.
9526
409ea3a1
AS
9527 * coding.c (record_conversion_result): Don't modify
9528 Vlast_code_conversion_error for successful result.
9529 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9530
56f00ed2
KH
95312009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9532
9533 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9534 (load_charset_map): Remove unnecessary code.
56f00ed2 9535
4491c9d2
DR
95362009-04-30 David Reitter <david.reitter@gmail.com>
9537
35f5b128 9538 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9539 through f24.
9540
6970f632
CY
95412009-04-30 Chong Yidong <cyd@stupidchicken.com>
9542
9543 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9544
9545 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9546 face_at_buffer_position.
9547 (face_before_or_after_it_pos, get_next_display_element)
9548 (note_mouse_highlight): Update face_at_buffer_position call.
9549
9550 * term.c (term_mouse_highlight):
9551 * msdos.c (IT_note_mouse_highlight):
9552 * fontset.c (Finternal_char_font):
35f5b128 9553 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9554
9555 * dispextern.h (face_at_buffer_position): Update prototype.
9556
0c616f63
KH
95572009-04-30 Kenichi Handa <handa@m17n.org>
9558
35f5b128 9559 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9560
ad3aaf33
AS
95612009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9562
9563 * callproc.c (Fcall_process): Fix GC protection. Make sure
9564 current buffer is always restored.
9565
c3c963a0
YM
95662009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9567
9568 * atimer.c (init_atimer): Also clear stopped_atimers.
9569
9570 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9571
7e3386cb
YM
9572 * process.c (create_process): Clean up merger residues of
9573 2008-07-17 change.
9574
91f68422
CY
95752009-04-29 Ulrich Mueller <ulm@gentoo.org>
9576
9577 * lread.c (Vread_circle): New variable.
9578 (read1): Disable recursive read if Vread_circle is nil.
9579
24b34550
KH
95802009-04-29 Kenichi Handa <handa@m17n.org>
9581
9582 * fontset.h (set_default_ascii_font): Delete extern.
9583
9584 * fontset.c (set_default_ascii_font): Delete this unused function.
9585
9586 * frame.c (x_set_font): When ARG is a font-object, check if the
9587 font-object matches with the ASCII font-spec of the frame's
9c358bda 9588 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9589
77bf07e1
AS
95902009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9591
9592 * fns.c (Flocale_info): Protect vector from GC during decoding.
9593
9594 * process.c (Fstart_process): Protect argv strings from GC during
9595 encoding.
9596
2c55aacf
AS
95972009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9598
9599 * sysdep.c: Include <ctype.h>.
9600
b892d3c9
DR
96012009-04-27 David Reitter <david.reitter@gmail.com>
9602
35f5b128 9603 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9604 Remove commented-out code.
9605
9d0644c4
JB
96062009-04-26 Johan Bockgård <bojohan@gnu.org>
9607
9608 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9609
b7053016
JR
96102009-04-25 Jason Rumney <jasonr@gnu.org>
9611
9612 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9613
4e8231f3
YM
96142009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9615
9616 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9617 Swap bytes in short integer if fringe bitmap width > 8.
9618
493dcf2c
KH
96192009-04-23 Kenichi Handa <handa@m17n.org>
9620
9621 * xfaces.c (Fx_list_fonts): If a font size is specified in
9622 PATTERN, set it in returned scalable fonts.
9623
401e9e57
CY
96242009-04-22 Chong Yidong <cyd@stupidchicken.com>
9625
708e05dc
CY
9626 * keyboard.c (Fset_input_meta_mode): Doc fix.
9627
9628 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9629
1ac9108a 9630 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9631
9632 * coding.c (Fterminal_coding_system): Doc fix.
9633
9634 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9635 (Fx_display_pixel_height, Fx_display_planes)
9636 (Fx_display_color_cells, Fx_server_max_request_size)
9637 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9638 (Fx_display_mm_height, Fx_display_mm_width)
9639 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9640 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9641 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9642 (check_x_display_info): Handle terminal objects instead of
9643 terminal ids.
9644
401e9e57
CY
9645 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9646 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9647 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9648 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9649
df80c7f0
KH
96502009-04-21 Kenichi Handa <handa@m17n.org>
9651
5a8f12af 9652 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9653 (font_score): Check AVGWIDTH too.
908567ef 9654
df80c7f0
KH
9655 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9656 worst case.
1ac9108a
SM
9657 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9658 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9659
705af33f
JR
96602009-04-19 Jason Rumney <jasonr@gnu.org>
9661
9662 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9663 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9664
9665 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9666 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9667 get_phys_cursor_geometry.
9668
b71ac3dd 9669 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9670 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9671 using get_phys_cursor_geometry.
9672
9673 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9674 correctly calculated.
9675
dc2933eb
JD
96762009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9677
1ac9108a
SM
9678 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9679 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9680 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9681 is deprecated.
9682
973e7849
AS
96832009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9684
9685 * font.c (font_put_frame_data): Use xfree instead of free.
9686
314d66f4
JB
96872009-04-17 Juanma Barranquero <lekktu@gmail.com>
9688
9689 * w32font.c (Qja, Qko): Remove declarations.
9690 (syms_of_w32font): Don't DEFSYM them.
9691
cf702558
CY
96922009-04-17 Chong Yidong <cyd@stupidchicken.com>
9693
9694 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9695
9696 * font.h (Qja, Qko): Extern them.
9697
9698 * ftfont.c (Qja, Qko): Remove declarations.
9699
9700 * xfont.c (Qja, Qko): Remove declarations.
9701
b50504f5
KH
97022009-04-17 Kenichi Handa <handa@m17n.org>
9703
bde25748
KH
9704 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9705 string from a vector to handle Latin-1 characters correctly.
9706
b50504f5
KH
9707 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9708 entity even if the cache hits.
9709
f4646fff
AS
97102009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9711
9712 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9713 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9714
e7deaab0
AS
9715 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9716 * lisp.h: Adjust prototypes.
9717
0a0e7d49
CY
97182009-04-16 Chong Yidong <cyd@stupidchicken.com>
9719
9720 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9721 change (Bug#3003).
9722
3c908a57
KH
97232009-04-16 Kenichi Handa <handa@m17n.org>
9724
1ac9108a 9725 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9726
9727 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9728 adstyle.
9729
9730 * ftfont.c (Qja, Qko): Don't make them static.
9731 (enum ftfont_cache_for): New enum.
9732 (fc_charset_table): Undo the previous change.
9733 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9734 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9735 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9736 non-scarable font, try to get AVERAGE_WIDTH.
9737 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9738 Change ft_face_cache from a list of a hash-table. Don't check
9739 `ja' and `ko' adstyle here.
9740 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9741 FTFONT_CACHE_FOR_CHARET.
9742 (ftfont_get_charset): Undo the previous change.
1ac9108a 9743 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9744 (ftfont_close): Likewise.
9745 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9746
9747 * font.c (font_sort_entites): Change the meaning of the arg
9748 BEST-ONLY. Don't optimize for VEC of lenght 1.
9749 (font_select_entity): Just return the value of font_sort_entites.
9750
9751 * xfaces.c (merge_face_vectors): Reflect font properties in
9752 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9753 font_clear_prop if a face attribute doesn't change.
9754
3c908a57
KH
9755 * charset.h (charset_ksc5601): Extern it.
9756
9757 * charset.c (charset_ksc5601): New variable.
9758 (Fdefine_charset_internal): Set charset_ksc5601.
9759 (init_charset_once): Initialize charset_ksc5601 to -1.
9760
d65859c3
DN
97612009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9762
9763 * fileio.c (history_delete_duplicates): Remove unused declaration.
9764
9765 * callint.c (history_delete_duplicates): New declaration.
9766 (Fcall_interactively): Remove command history duplicates when
9767 history_delete_duplicates is true.
9768
3ba010e5
EZ
97692009-04-14 Eli Zaretskii <eliz@gnu.org>
9770
9771 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9772
06f19b91
KH
97732009-04-14 Kenichi Handa <handa@m17n.org>
9774
9775 * font.c (Ffont_info): Fix docstring. Fix the second element of
9776 the returned value (bug#2949).
9777
2cce8bfc
CY
97782009-04-14 Chong Yidong <cyd@stupidchicken.com>
9779
9780 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9781
d156542d
KH
97822009-04-14 Kenichi Handa <handa@m17n.org>
9783
9784 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9785 encoding charset is ascii_compatible.
9786
9787 * charset.c (Fdefine_charset_internal): Make charset
9788 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9789 code_offset is 0, and covers all ASCII characters.
9790
86fa089e
SM
97912009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9792
9793 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9794 (ns_string_to_pasteboard_internal):
9795 * nsmenu.m (process_dialog):
9796 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9797 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9798 * lisp.h (Fx_load_color_file): Declare.
9799
a8a3728b
KH
98002009-04-13 Kenichi Handa <handa@m17n.org>
9801
1ac9108a 9802 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9803 (font_select_entity): Suppress the code to optimize for the same
9804 kind of fonts.
9805 (font_load_for_lface): Get a font that supports at least ASCII
9806 characters.
9807
9808 * ftfont.c (Qja, Qko): New variables.
9809 (fc_charset_table): Delete uniquifier data for iso8859-1.
9810 (ftfont_get_latin1_charset): New function.
9811 (get_adstyle_property): New function.
9812 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9813 bitmap fonts.
9814 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9815 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9816 `ko' or `ja'.
9817 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9818 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9819 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9820 property.
9821 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9822 (syms_of_ftfont): DEFSYM Qja and Qko.
9823
483670b5
KH
98242009-04-09 Kenichi Handa <handa@m17n.org>
9825
12b55765
KH
9826 * charset.c (map_charset_chars): For a charset of `superset'
9827 method, fix calculation of code range.
9828
483670b5
KH
9829 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9830 from the list of extra properties.
9831 (font_clear_prop): Be sure to delete `:name' font property.
9832
57d3b93b
KH
98332009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9834
b4b2c2ca
YM
9835 * dispnew.c (redraw_overlapping_rows): Fix detection of
9836 overlapping for topmost and bottommost rows.
9837
1ac9108a 9838 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9839
472c3609
JR
98402009-04-06 Jason Rumney <jasonr@gnu.org>
9841
9842 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9843
ab193662
KH
98442009-04-06 Kenichi Handa <handa@m17n.org>
9845
9846 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9847
9848 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9849
0c26f026
KH
98502009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9851
9852 * ftfont.c (ftfont_open): Fix checking of the return value of
9853 FT_Load_Char. Fix setting font->underline_thickness.
9854
e173bbce
CY
98552009-04-04 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9858 (Fterminal_parameters, Fterminal_parameter)
9859 (Fset_terminal_parameter): In doc string, refer to terminal
9860 objects rather than terminal ids.
9861
693a2698
EZ
98622009-04-04 Eli Zaretskii <eliz@gnu.org>
9863
9864 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9865 ret_lim_data. (Bug#2867)
9866
d5221487
CY
98672009-04-03 Chong Yidong <cyd@stupidchicken.com>
9868
9869 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9870 so they don't get wider than the window, matching 2006-01-23
9871 change to the partner function in xdisp.c (Bug#2800).
9872
223509a3
KH
98732009-04-03 Kenichi Handa <handa@m17n.org>
9874
9875 * print.c (print_object): Make each lowest sub_char_table start a
9876 new line (Bug#2866).
9877
74fcd0b1
KH
98782009-04-02 Kenichi Handa <handa@m17n.org>
9879
9880 * fontset.c (fontset_font): Record no-font when a fontset
9881 explicitly tells not to try another font-specs.
9882
c542407d
SM
98832009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9884
9885 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9886
e3869731
KH
98872009-03-30 Kenichi Handa <handa@m17n.org>
9888
d8d2f142
KH
9889 * fontset.c (fontset_from_font): Specify only registry in a
9890 font-spec for all characters supported by that registry.
9891
e3869731
KH
9892 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9893 even if HAVE_M17N_FLT is not defined.
9894
5da5f805
CY
98952009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9896
9897 * ftfont.c: Conditionalize prototyping and use of
9898 ftfont_variation_glyphs.
9899
ab226c50
SM
99002009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9901
9628fed7
SM
9902 * frame.c (delete_frame): Work around compiler bug.
9903
9904 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9905 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9906 Some more EMACS_INT.
9907 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9908
9909 * xdisp.c (dump_glyph): Fix typo.
9910
ae19ba7c
SM
9911 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9912 (adjust_markers_gap_motion, adjust_markers_for_delete)
9913 (adjust_markers_for_insert, adjust_point)
9914 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9915 (make_gap, copy_text, count_size_as_multibyte, insert)
9916 (insert_and_inherit, insert_before_markers)
9917 (insert_before_markers_and_inherit, insert_1)
9918 (count_combining_before, count_combining_after, insert_1_both)
9919 (insert_from_string, insert_from_string_before_markers)
9920 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9921 (insert_from_buffer_1, adjust_after_replace)
9922 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9923 (replace_range_2, del_range, del_range_1, del_range_byte)
9924 (del_range_both, del_range_2, modify_region)
9925 (prepare_to_modify_buffer, signal_before_change)
9926 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9927 for buffer positions and sizes.
9928 * lisp.h: Adjust prototypes accordingly.
9929
9930 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9931 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9932 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9933
ab226c50
SM
9934 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9935
46dfb8fb
JD
99362009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9937
9938 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9939 lines and columns so we keep the same pixel height and width.
9940
9941 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9942 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9943 (x_handle_net_wm_state): New function to update frame parameter
9944 fullscreen.
9945 (x_term_init): Initialize atoms for _NET_WM_STATE.
9946
9947 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9948
d347e494
SM
99492009-03-27 Kevin Ryde <user42@zip.com.au>
9950
9951 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9952 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9953 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9954 (Fgpm_mouse_stop): Pass that new parameter.
9955 * termhooks.h (close_gpm): Adjust prototype.
9956
84db11d6
SM
99572009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9958
c95a5008
SM
9959 * lisp.h (Fx_focus_frame): Declare.
9960
84db11d6
SM
9961 * callint.c (Fcall_interactively): For '^' just delegate the work to
9962 handle-shift-selection.
9963 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9964
0a1958d6
CY
99652009-03-24 Chong Yidong <cyd@stupidchicken.com>
9966
0bfdff23
CY
9967 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9968
0a1958d6
CY
9969 * data.c (Qinteractive_form): New variable.
9970 (Finteractive_form): Use it.
9971
9972 * eval.c (Fcommandp): Use Qinteractive_form.
9973
58aec0d6
JR
99742009-03-24 Jason Rumney <jasonr@gnu.org>
9975
9976 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9977 Calculate total size precisely. Decode environment variables
9978 before substituting. (Bug#38)
9979
553dd618
KH
99802009-03-24 Kenichi Handa <handa@m17n.org>
9981
9982 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9983 encoding (Bug#2722).
553dd618 9984
c39ea606
JD
99852009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9986
9987 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9988 that gdpy is set.
9989
bc9b2b5e
AM
99902009-03-22 Alan Mackenzie <acm@muc.de>
9991
9992 * callint.c (Finteractive): Clarify the doc string - even
9993 promptless elements need \n separators.
9994
9f995a76
JR
99952009-03-22 Jason Rumney <jasonr@gnu.org>
9996
9997 * w32term.c (syms_of_w32term): Doc fix for
9998 x-use-underline-position-properties.
9999
22749e9a
EZ
100002009-03-21 Eli Zaretskii <eliz@gnu.org>
10001
10002 * w32.c (getpwuid): Change argument type to unsigned.
10003 (struct w32_id): Change type of `rid' member to unsigned.
10004 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10005 argument ID to unsigned. All callers changed.
10006 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10007
e00553bf
EZ
100082009-03-20 Eli Zaretskii <eliz@gnu.org>
10009
10010 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10011 negative, produce a float value.
10012
10013 * dired.c (make_uid, make_gid): New functions.
10014 (Ffile_attributes): Use them to avoid negative UID and GID.
10015
f761d6b6
JB
100162009-03-20 Juanma Barranquero <lekktu@gmail.com>
10017
10018 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10019 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10020 Fix typos in docstrings.
10021
d507f8d7
KH
100222009-03-19 Kenichi Handa <handa@m17n.org>
10023
10024 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
10025 changed, use font_load_for_lface to get a new font object.
10026 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
10027
10028 * frame.c (x_set_font): Handle the case that ARG is a cons.
10029
c68845e0
GM
100302009-03-19 Glenn Morris <rgm@gnu.org>
10031
10032 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10033
bfa49dd1
CY
100342009-03-19 Chong Yidong <cyd@stupidchicken.com>
10035
10036 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10037
8458d4c1
KH
100382009-03-19 Kenichi Handa <handa@m17n.org>
10039
10040 * charset.c (load_charset_map_from_file): When a mapfile can't be
10041 loaded, signal an error.
10042
78e7d1fe
EZ
100432009-03-18 Eli Zaretskii <eliz@gnu.org>
10044
10045 * dired.c (Ffile_attributes): Make sure UID and GID are always
10046 positive, even if the value is too large for a positive EMACS_INT.
10047 Doc fix.
10048
10049 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10050
5da9fdfa
YM
100512009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10052
10053 * xmenu.c (xdialog_show): Move Fredisplay call ...
10054 (Fx_popup_dialog): ... here.
10055
7519c40d
SM
100562009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10057
10058 * dired.c (file_name_completion): Disable the first optimization just
10059 installed, since it is not implemented correctly.
10060
2cd298e2
SM
100612009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10062
10063 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 10064 only if the entry can affect bestmatch.
2cd298e2
SM
10065 Stop the search early, as Ftry_completion already does.
10066
48d37adf
CY
100672009-03-17 Chong Yidong <cyd@stupidchicken.com>
10068
e10c9c93 10069 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 10070
9286b16a
CY
100712009-03-15 Chong Yidong <cyd@stupidchicken.com>
10072
10073 * keyboard.c (parse_menu_item): Don't display remappings as menu
10074 equivalent bindings (Bug#788).
10075
f7b146dc
JR
100762009-03-15 Jason Rumney <jasonr@gnu.org>
10077
10078 * w32term.h (WM_EMACS_PAINT): New message.
10079 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10080 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10081 before passing to lisp thread. (Bug#950)
10082
f761d6b6 100832009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 10084
d93f9575
CY
10085 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10086 variable as it was never reset.
10087 (ns_term_init): Remove initialization of Lisp-settable defaults
10088 and ns_expand_space.
10089 (-setPanelFromDefaultValues): Remove ns_expand_space.
10090 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10091 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
10092 i.e. no additional spacing, similar to Carbon port.
10093
d93f9575
CY
10094 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10095 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10096
305018ec
JD
100972009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10098
10099 * sound.c (alsa_configure): Remove call to deprecated
10100 snd_pcm_sw_params_set_xfer_align.
10101
f761d6b6 101022009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10103
10104 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10105 after clicking in a detached tool bar.
10106 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10107
46e722a9
SM
101082009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10109
348db3dd
SM
10110 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10111 int/Lisp_Object mixup).
46e722a9 10112
a3d16f39
KH
101132009-03-13 Kenichi Handa <handa@m17n.org>
10114
10115 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10116 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10117 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10118 (set_fontset_font): Change ARG to a vector. Handle range_list in
10119 ARG correctly.
10120 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10121 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10122 the above change.
10123 (fontset_from_font): Fix previous change.
fe24f56a 10124 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10125 entry. If FONTSET is the default fontset, don't set the extra
10126 slot of the returning char-table.
10127
b066e6b6
JB
101282009-03-12 Juanma Barranquero <lekktu@gmail.com>
10129
10130 * nsfns.m (Fx_close_connection): Doc fix.
10131 (Fns_do_applescript): Reflow docstring.
10132 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10133 (Fx_display_pixel_width, Fx_display_pixel_height)
10134 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10135 Fix typos in docstrings.
10136 (Fns_set_alpha): Fix typos in error messages.
10137
d472514e 101382009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10139
d472514e 10140 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10141 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10142 were used for such events.
10143
d472514e
JB
10144 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10145 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10146
d472514e 10147 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10148 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10149
fb930676
KH
101502009-03-11 Kenichi Handa <handa@m17n.org>
10151
ff85581a
KH
10152 * font.h (font_open_by_spec): Extern it.
10153
c50b7e98
KH
10154 * font.c (font_open_by_spec): New function.
10155 (font_open_by_name): Use font_open_by_spec.
10156
fb930676
KH
10157 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10158 fontset of the frame.
10159
10160 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10161 modify the default font of frames that use this fontset.
10162 (num_auto_fontsets): New variable.
10163 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10164 name. Be sure to set FONTSET_ASCII to the correct font name.
10165 (update_auto_fontset_alist): New function.
10166
df4e8455
JB
101672009-03-11 Juanma Barranquero <lekktu@gmail.com>
10168
10169 * makefile.w32-in: Update dependencies.
10170
0a375797
AR
101712009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10172
10173 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10174
61313fa3
SM
101752009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10176
10177 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10178
b55103fb
CY
101792009-03-10 Chong Yidong <cyd@stupidchicken.com>
10180
10181 * lread.c (Feval_buffer): Doc fix.
10182
dde2559c
KH
101832009-03-09 Kenichi Handa <handa@m17n.org>
10184
10185 * charset.c (Qfile_name_handler_alist): Extern it.
10186 (load_charset_map_from_file): Temporarily bind
10187 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10188
df4e8455 101892009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10190
47f588bb
GM
10191 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10192 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10193
4ddf94bd
AR
101942009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10195
4c9bdfc2
AR
10196 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10197 (x_set_window_size): Change back to calculated method of setting
10198 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10199 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10200 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10201
fe41ae9e
AR
10202 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10203
4c9bdfc2
AR
10204 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10205 accelerator in parens under GNUstep.
10206
825d0875
KH
102072009-03-06 Kenichi Handa <handa@m17n.org>
10208
10209 These changes are to detect incorrect composition sequence without
f3b3be74 10210 looking ahead the source. (Bug#2370)
825d0875
KH
10211
10212 * coding.h: Include "composite.h".
10213 (enum compisition_state): New enum.
10214 (struct compisition_status): New struct.
10215 (struct iso_2022_spec): New member cmp_status.
10216 (struct emacs_mule_spec): New struct.
10217 (struct coding_system): New members ctext_extended_segment_len and
10218 embedded_utf_8. Change the union member
10219 spec.emacs_mule_full_support to spec.emacs_mule.
10220
10221 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10222 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10223 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10224 (ADD_COMPOSITION_DATA): New arg nbytes.
10225 (emacs_mule_char): New arg cmp_status.
10226 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10227 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10228 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10229 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10230 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10231 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10232 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10233 (EMACS_MULE_COMPOSITION_END): New macro.
10234 (emacs_mule_finish_composition): New function.
10235 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10236 (decode_coding_emacs_mule): Avoid long looking ahead while
10237 handling composition.
10238 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10239 (ENCODE_COMPOSITION_RULE): New macro.
10240 (finish_composition): New function.
10241 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10242 (DECODE_COMPOSITION_START): New implementation.
10243 (DECODE_COMPOSITION_END): Likewise.
10244 (STORE_COMPOSITION_RULE): New macro.
10245 (decode_coding_iso_2022): Avoid long looking ahead while handling
10246 composition, CTEXT extended segment, and embedded UTF-8.
10247 (setup_coding_system): For a coding of type iso-2022, reset
10248 CODING_ISO_EXTSEGMENT_LEN (coding) and
10249 CODING_ISO_EMBEDDED_UTF_8 (coding).
10250 (get_translation): Delete arguments last_block, from_nchars,
10251 to_nchars. Callers changed.
10252 (produce_chars): Don't modify charbuf. Adjusted for the change of
10253 get_translation.
98a326f7 10254 (produce_composition): Adjust for the new annotation sequence.
825d0875 10255 (handle_composition_annotation): Likewise.
98a326f7 10256 (consume_chars): Adjust for the change of get_translation.
825d0875 10257
ccbc4452
AR
102582009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10259
4ddf94bd 10260 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10261
988a7ddb
KH
102622009-03-05 Kenichi Handa <handa@m17n.org>
10263
10264 * font.c (font_select_entity): New function.
10265 (font_find_for_lface): Use font_select_entity to select a font.
10266
10267 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10268 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10269 font with C restriction.
10270
98a326f7 102712009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10272
be1bce46 10273 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10274
10ea2b82
JR
102752009-03-04 Jason Rumney <jasonr@gnu.org>
10276
2c93b248 10277 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10278 characters that have already been read. (Bug#2569)
2c93b248 10279
10ea2b82
JR
10280 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10281 Log an error message if check_image_size failed.
10282 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10283 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10284
71a0c011
EZ
102852009-03-02 Eli Zaretskii <eliz@gnu.org>
10286
10287 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10288 when decoding process output.
10289
2f63bba8
RS
102902009-03-01 Richard M Stallman <rms@gnu.org>
10291
10292 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10293
10294 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10295
0a9564cb
EZ
102962009-02-28 Eli Zaretskii <eliz@gnu.org>
10297
10298 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10299 (decode_coding_emacs_mule, decode_coding_iso_2022)
10300 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10301 (decode_coding_raw_text, decode_coding_charset)
10302 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10303 Honor inhibit-eol-conversion. (Bug #2186)
10304
449148b3
JR
103052009-02-28 Jason Rumney <jasonr@gnu.org>
10306
10307 * coding.c (detect_coding_charset): If not checking latin extra,
10308 fail on characters between 0x80 and 0xA0. (Bug#2354)
10309
a4aee864
EZ
103102009-02-28 Eli Zaretskii <eliz@gnu.org>
10311
10312 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10313 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10314
d88bee5a
GM
103152009-02-27 Glenn Morris <rgm@gnu.org>
10316
10317 * callint.c (Finteractive): Doc fix.
10318
a808f22d
KH
103192009-02-27 Kenichi Handa <handa@m17n.org>
10320
10321 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10322
caf8d60c
CY
103232009-02-27 Chong Yidong <cyd@stupidchicken.com>
10324
10325 * font.c (font_style_to_value): Set value for unknown symbols to
10326 100 instead of 255.
b61137ea
CY
10327 (weight_table, slant_table, width_table): Treat "unspecified" as
10328 the default value.
caf8d60c 10329
1a0de25c
JB
103302009-02-26 Juanma Barranquero <lekktu@gmail.com>
10331
10332 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10333
8fc45744
JB
103342009-02-25 Juanma Barranquero <lekktu@gmail.com>
10335
107bd7d1
JB
10336 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10337 error as soon as a recursive load is detected.
8fc45744 10338
f097e223
AR
103392009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10340
10341 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10342 before caching.
10343
8810a12f
KH
103442009-02-24 Kenichi Handa <handa@m17n.org>
10345
10346 * fontset.c (fontset_find_font): Fix the condition for checking
10347 unavailable font.
10348
2c7d1565
GM
103492009-02-24 Glenn Morris <rgm@gnu.org>
10350
10351 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10352 whitespace that confuses documentation.
10353
a20878b6
MB
103542009-02-23 Miles Bader <miles@gnu.org>
10355
10356 * process.c (Flist_system_processes, Fprocess_attributes)
10357 (syms_of_process): Rename `system-process-attributes' to
10358 `process-attributes'.
10359
b3b58c01
AS
103602009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10361
1b3b981b
AS
10362 * coding.h (struct coding_system): Make safe_charsets a pointer to
10363 unsigned char.
10364 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10365 being 255.
10366 (SAFE_CHARSET_P): Likewise.
10367 (setup_iso_safe_charsets): Properly setup safe_charsets.
10368 (Fdefine_coding_system_internal): Likewise.
10369 (setup_coding_system): Likewise. Remove unneeded casts.
10370 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10371 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10372 unneeded casts.
10373
b3b58c01
AS
10374 * insdel.c (del_range_2): Don't modify gap contents when called
10375 from decode_coding_object. (Bug#1809)
10376
0b6f228c
CY
103772009-02-21 Chong Yidong <cyd@stupidchicken.com>
10378
10379 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10380 Qfont_object.
10381 (Ftype_of): Recognize font objects.
10382
10383 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10384
10385 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10386 moved to data.c.
10387
52f8870b
AR
103882009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10389
10390 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10391 async_iconified. Based on a patch by Christian Lynbech
10392 <christian.lynbech@tieto.com>.
10393 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10394
7087d5e9
GM
103952009-02-20 Glenn Morris <rgm@gnu.org>
10396
10397 * syntax.c (Fskip_chars_forward): Fix doc typo.
10398
41d2ceef
CY
103992009-02-20 Chong Yidong <cyd@stupidchicken.com>
10400
10401 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10402
1a3b7ca6
CY
104032009-02-19 Chong Yidong <cyd@stupidchicken.com>
10404
10405 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10406
73cce38d
KH
104072009-02-19 Kenichi Handa <handa@m17n.org>
10408
10409 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10410 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10411
a51092ee
DN
104122009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10413
10414 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10415
c423ecca
KH
104162009-02-18 Kenichi Handa <handa@m17n.org>
10417
10418 * font.c (font_check_otf_features): Fix handling of `nil' element.
10419 (Ffont_spec): Describe :lang and :otf in the docstring.
10420
4c1958f4
AS
104212009-02-16 Andreas Schwab <schwab@suse.de>
10422
10423 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10424 string.
10425
5704f39a
KH
104262009-02-16 Kenichi Handa <handa@m17n.org>
10427
10428 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10429 (Bug#1723)
5704f39a 10430
8f0085aa
CY
104312009-02-14 Chong Yidong <cyd@stupidchicken.com>
10432
a057d86a 10433 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10434
10435 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10436 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10437
aff01dd9
EZ
104382009-02-14 Eli Zaretskii <eliz@gnu.org>
10439
10440 * msdos.c (MAX_SCREEN_BUF): New macro.
10441 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10442 Encode the entire run of glyphs sharing the same face, instead of
10443 doing that one glyph at a time (fixes a bug with displaying
10444 double-size characters).
10445
ba301db3
AR
104462009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10447
10448 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10449
10450 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10451 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10452 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10453
10454 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10455 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10456
51d861de
SM
104572009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10458
ac146f82 10459 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10460 invisible areas.
10461
7fed8996
JR
104622009-02-12 Jason Rumney <jasonr@gnu.org>
10463
631ea4fb
JR
10464 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10465 (add_font_entity_to_list): Call check_face_name even when family
10466 is unspecified.
10467
cb4a3e42
JR
10468 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10469 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10470 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10471
7fed8996 10472 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10473 raster fonts. (Bug#2219)
7fed8996 10474
895416e3
KH
104752009-02-12 Kenichi Handa <handa@m17n.org>
10476
10477 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10478 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10479 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10480 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10481 (find_automatic_composition): While looking forward and backward,
10482 check static composition. Fix where to stop looking forward.
10483 (composition_adjust_point): Fix checking of static composition.
10484 (Fcomposition_get_gstring): Pay attention to
1dacf998 10485 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10486
10487 * lisp.h (fast_looking_at): Extern it.
10488
10489 * search.c (fast_looking_at): New function.
10490
51d861de 10491 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10492 <struct glyph>.u.cmp.to.
10493 (append_composite_glyph): Likewise.
10494
51d861de 10495 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10496 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10497 composition.
51d861de 10498 (append_composite_glyph): Adjust for the change of
895416e3
KH
10499 <strcut glyph>.u.cmp.to.
10500
8510724d
JB
105012009-02-11 Juanma Barranquero <lekktu@gmail.com>
10502
10503 * casetab.c (init_casetab_once):
10504 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10505 * font.c (font_update_lface):
10506 * fontset.c (Fnew_fontset):
10507 * ftfont.c (ftfont_drive_otf):
10508 * xfont.c (xfont_open):
10509 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10510
294fa707
SM
105112009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10512
10513 * fileio.c (Fwrite_region): !NILP -> CONSP.
10514
b5bfebec
AS
105152009-02-10 Andreas Schwab <schwab@suse.de>
10516
10517 * process.c (send_process): Properly relocate pointer into data
adab88bd 10518 when using encoded data. (Bug#2272)
b5bfebec 10519
cb84a2be
KH
105202009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10521
10522 * coding.c (detect_coding_charset): Fix previous change.
10523
89e09428
JR
105242009-02-08 Jason Rumney <jasonr@gnu.org>
10525
10526 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10527 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10528
4470a277
AS
105292009-02-07 Andreas Schwab <schwab@suse.de>
10530
10531 * unexelf.c (unexec): Fix error message.
10532
3175b12a
AR
105332009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10534
10535 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10536 when modal window is active. (Bug #2152)
3175b12a
AR
10537 (applicationShouldTerminate:): Remove now-unneeded while loop
10538 around NSRunAlertPanel.
10539
10540 * nsmenu.m (popupSession): New file-global variable.
10541 (pop_down_menu): End the popupSession before closing dialog.
10542 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10543 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10544 don't query NSApp for events (just sleep instead).
10545
8434d0b8
EZ
105462009-02-07 Eli Zaretskii <eliz@gnu.org>
10547
51d861de
SM
10548 * coding.c (syms_of_coding) <translation-table-for-input>:
10549 Modify doc string to discourage use for character code unification.
8434d0b8 10550
aa82edfd
CY
105512009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10552
10553 * atimer.c (run_timers): Update pending_atimers.
10554
2d283c7c
CY
105552009-02-06 Chong Yidong <cyd@stupidchicken.com>
10556
eb306cab
CY
10557 * image.c (svg_load_image): Fix last change.
10558
2d283c7c
CY
10559 * xfns.c (Fx_create_frame): Signal an error if no font is
10560 found (Bug#2147).
10561
4d8e170e
JB
105622009-02-05 Juanma Barranquero <lekktu@gmail.com>
10563
10564 * character.c (syms_of_character) <script-representative-chars>:
10565 Fix typo in docstring.
10566
c96169a0
AR
105672009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10568
10569 * nsmenu.m (pop_down_menu): New function.
10570 (ns_popup_dialog): Call it on unwind.
10571 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10572 call timer_check() (Bug#2154).
10573 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10574 handling_signal is set.
10575 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10576
31fd7c5c 10577 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10578
10579 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10580
10581 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10582
51d861de
SM
10583 * keyboard.c (poll_for_input_1, handle_async_input):
10584 Set handling_signal under HAVE_NS.
c96169a0 10585
aacd8ba1
GM
105862009-02-04 Glenn Morris <rgm@gnu.org>
10587
10588 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10589
4cb75c4b
KH
105902009-02-04 Kenichi Handa <handa@m17n.org>
10591
10592 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10593
10594 * charset.c (Fchar_charset): New optional arg restriction.
10595
10596 * coding.h (coding_system_charset_list): Extern it.
10597
10598 * coding.c (coding_system_charset_list): New function.
10599
10600 * composite.c: Include coding.h and termhooks.h.
10601 (composition_gstring_p): Fix for the terminal case.
10602 (composition_gstring_width): Likewise.
10603 (fill_gstring_body): Likewise.
10604 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10605 the frame.
10606 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10607 is within a composition.
867d4bb3 10608 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10609
10610 * term.c (encode_terminal_code): Fix handling of composition.
10611 (produce_composite_glyph): For static composition, get pixel_width
10612 from struct composition.
10613
826ba17e
AS
106142009-02-02 Andreas Schwab <schwab@suse.de>
10615
10616 * unexelf.c (unexec): Handle unaligned bss offset.
10617
8ad093db
AR
106182009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10619
10620 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10621 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10622
8ad093db
AR
10623 * keyboard.c (handle_interrupt): Don't call
10624 quit_throw_to_read_char() under NS.
d0a76a6e 10625
8ad093db
AR
10626 * blockinput.h: Remove NS-specific code.
10627
4d18a7a2
DN
106282009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10629
db878925
DN
10630 * dispnew.c (window_change_signal): Don't try to get the size of a
10631 suspended tty frame.
10632 * term.c (Fresume_tty): Resize if the size has changed while the
10633 tty was suspended.
10634
4d18a7a2
DN
10635 * alloc.c (mark_stack): Properly conditionalize previous change.
10636
8984df7c
JB
106372009-01-30 Juanma Barranquero <lekktu@gmail.com>
10638
10639 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10640 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10641 Remove; this code is not used on Windows.
10642
75f4f1ac
EZ
106432009-01-30 Eli Zaretskii <eliz@gnu.org>
10644
10645 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10646 EOLs that also has stray ^M characters.
10647
07a1e794
JB
106482009-01-30 Juanma Barranquero <lekktu@gmail.com>
10649
10650 * atimer.c (run_timers, alarm_signal_handler):
10651 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10652 * w32inevt.c (w32_console_read_socket):
10653 * w32term.c (w32_read_socket):
10654 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10655
a8b11cc9
CY
106562009-01-30 Chong Yidong <cyd@stupidchicken.com>
10657
10658 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10659 Initialize it as a relative filename pattern.
10660 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10661 (Fcall_process_region): Simplify temp file creation using
10662 temporary-file-directory.
10663
c279587b
EZ
106642009-01-29 Eli Zaretskii <eliz@gnu.org>
10665
10666 * msdos.c: Rename pending_signals to msdos_pending_signals.
10667 (sig_suspender, sigprocmask): Adjust.
10668
a8fe3242
CY
106692009-01-29 Chong Yidong <cyd@stupidchicken.com>
10670
10671 * keyboard.c (pending_signals): New var.
10672 (poll_for_input, input_available_signal, init_keyboard): Set it.
10673 (process_pending_signals): New function.
10674
10675 * lisp.h (QUIT): Check pending_signals instead of
10676 interrupt_input_pending. Use process_pending_signals.
10677
51d861de 10678 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10679
51d861de 10680 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10681
10682 * sysdep.c (emacs_write): Use process_pending_signals.
10683
10684 * xterm.c (XTread_socket): Update pending_signals.
10685
10686 * w32term.c (w32_read_socket): Update pending_signals.
10687
10688 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10689
6570a1c4
KH
106902009-01-29 Kenichi Handa <handa@m17n.org>
10691
10692 * xftfont.c (xftfont_has_char): New function.
10693 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10694
d72a4afa
AR
106952009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10696
10697 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10698 under GNUstep.
10699 (ns_query_color): New declaration.
10700
10701 * nsterm.m (ns_confirm_quit): New variable.
10702 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10703 (EmacsApp-applicationShouldTerminate:): Use it.
10704 (EmacsPrefsController): Let user set it.
10705 (ns_query_color): New function.
10706 (ns_defined_color): Use it.
10707 (ns_initialize): Drop.
10708 (ns_term_init): Add two lines from ns_initialize(), and set
10709 input_interrupt_mode to nil.
10710
10711 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10712 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10713
9fe78804
KH
107142009-01-28 Kenichi Handa <handa@m17n.org>
10715
10716 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10717 (fontset_get_font_group): Remember that no font-group is specified
10718 for C.
9fe78804 10719
fa57de36
CY
107202009-01-27 Chong Yidong <cyd@stupidchicken.com>
10721
930600e9
CY
10722 * fns.c (concat): Check for string overflow (bug#1787).
10723
fa57de36
CY
10724 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10725 Quadruple undo limits (bug#1501).
10726
7179ce7b
KH
107272009-01-27 Kenichi Handa <handa@m17n.org>
10728
10729 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10730 directly use GT_Get_Char_index.
10731
10732 * xftfont.c (struct xftfont_info): New member `index'.
10733
10734 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10735 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10736
5be8fcc0
CY
107372009-01-26 Kenichi Handa <handa@m17n.org>
10738
10739 * fontset.c (fontset_find_font): Fix handling of non-cons return
10740 value of fontset_get_font_group.
10741 (fontset_font): Revert last change.
10742
19ae3e61
JR
107432009-01-26 Jason Rumney <jasonr@gnu.org>
10744
10745 * w32font.c (w32font_list_internal): Return quickly if registry is
10746 unknown. Simplify final return.
10747 (add_font_entity_to_list): Break complex logic down into more
10748 manageable chunks. Move unknown registry check to
10749 w32font_list_internal.
10750
8612b71a
AR
107512009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10752
10753 Changes to remove Feval calls from GUI under NS.
10754
d8038940
JB
10755 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10756 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10757 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10758
10759 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10760 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10761 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10762 instead of NON_ASCII_KEYSTROKE_EVENT.
10763 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10764 (EmacsApp-applicationShouldTerminate:): Query user.
10765 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10766 instead of Feval.
10767
10768 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10769
10770 * keyboard.c (kbd_buffer_get_event): Check for it.
10771 (keys_of_keyboard): Define lispy keys for
10772 ns-put/unput-working-text.
10773
10774 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10775 versions.
10776 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10777
6288ae55
CY
107782009-01-25 Chong Yidong <cyd@stupidchicken.com>
10779
10780 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10781 setting current_buffer directly. (Bug#2044)
6288ae55 10782
289e7f8f
CY
107832009-01-24 Chong Yidong <cyd@stupidchicken.com>
10784
5ce87308 10785 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10786 any work. (Bug#1952, bug#1990).
5ce87308 10787
64cc3cf6 10788 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10789
b3243e6f
AR
107902009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10791
10792 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10793 (ns_no_defaults): New declaration.
10794 (main): Use it.
e0d2e69a 10795
d900b2af 10796 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10797
d900b2af 10798 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10799
d900b2af
AR
10800 * nsterm.m (ns_no_defaults): New variable.
10801 (ns_initialize): Don't read defaults when ns_no_defaults.
10802 (EmacsView-readSelectionFromPasteboard:)
10803 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10804 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10805 (ns_dumpglyphs_stretch): New function.
10806 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10807 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10808
e0d2e69a
AR
10809 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10810
3ac71f5d
CY
108112009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10812
10813 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10814 call for Sparc64.
10815
3fe53a83
AR
108162009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10817
10818 * nsfns.m:
10819 * nsgui.h:
10820 * nsmenu.m:
10821 * nsselect.m:
10822 * nsterm.h:
10823 * nsterm.m: Remove '23' comments that indicated code added during
10824 update from emacs-20 -> emacs-23.
10825
10f87c6f 108262009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10827
10828 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10829 ns_alternate_modifier. (Bug#1217)
a3b53a85 10830
c7cef62d
AR
10831 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10832 Display all shortcuts, including those w/o super modifier.
10833
575fb8bd
AR
10834 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10835
918b848b
CY
108362009-01-22 Chong Yidong <cyd@stupidchicken.com>
10837
10838 * fileio.c (Vwrite_region_post_annotation_function)
10839 (Vwrite_region_annotation_buffers): New vars.
10840 (build_annotations_unwind): Just reset
10841 Vwrite_region_annotation_buffers.
10842 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10843 Call write-region-post-annotation-function.
10844 (build_annotations): Add to Vwrite_region_annotation_buffers if
10845 buffer changes.
10846
a39e2539
AR
108472009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10848
10849 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10850 Tiger.
51d861de
SM
10851 * nsfns.m (ns_do_applescript):
10852 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10853
35ed44db
AR
108542009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10855
10856 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10857
cbe0b5bf
AR
108582009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10859
10860 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10861
6049d3a0
AR
10862 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10863
10864 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10865 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10866 handle Ctrl-tab. (Bug#1841)
10867 (ns_get_color): Use unsigned long long for scanned hex string value.
10868 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10869 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10870 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10871 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10872 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10873 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10874 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10875
d3810c21 10876 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10877 DPI. (Bug#1316)
d3810c21
AR
10878 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10879 values in onTiger section.
4c7077c3 10880
e301e634
CY
108812009-01-19 Chong Yidong <cyd@stupidchicken.com>
10882
7f82490b
CY
10883 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10884 Check return value of font_spec_from_name.
64cc3cf6 10885 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10886
10887 * font.c (font_spec_from_name): Return Qnil if font name could not
10888 be parsed.
10889 (font_parse_name): Treat a `?' character as part of an XLFD.
10890
e301e634
CY
10891 * fns.c (Fsubstring): Doc fix.
10892
1c0db158
KH
108932009-01-19 Kenichi Handa <handa@m17n.org>
10894
51d861de 10895 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10896 (ftfont_list): Likewise.
10897
acf20901
JB
108982009-01-18 Juanma Barranquero <lekktu@gmail.com>
10899
fff4e459
JB
10900 * dbusbind.c (Fdbus_register_signal):
10901 * process.c (conv_sockaddr_to_lisp):
10902 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10903
acf20901
JB
10904 * callproc.c (Fgetenv_internal): Doc fix.
10905
e7abcdfb
CY
109062009-01-16 Chong Yidong <cyd@stupidchicken.com>
10907
10908 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10909 it is not even used.
10910
b60861e6
GM
109112009-01-16 Glenn Morris <rgm@gnu.org>
10912
10913 * font.c (Ffont_variation_glyphs): Silence compiler.
10914
8db52afe
JB
109152009-01-15 Juanma Barranquero <lekktu@gmail.com>
10916
10917 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10918 Reported by David Robinow <drobinow@gmail.com>.
10919
4cddb209
KH
109202009-01-15 Kenichi Handa <handa@m17n.org>
10921
51d861de 10922 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10923
f247f67b
JR
109242009-01-14 Jason Rumney <jasonr@gnu.org>
10925
10926 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10927 never a fontset. (Bug#1562)
f247f67b 10928
f56a4450
KH
109292009-01-14 Kenichi Handa <handa@m17n.org>
10930
10931 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10932 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10933
4e99855e
CY
109342009-01-13 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * font.c (font_clear_prop): If clearing the family, clear the font
10937 width index too.
10938
fff4e459 10939 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10940
24f01470
JB
109412009-01-12 Juanma Barranquero <lekktu@gmail.com>
10942
10943 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10944 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10945 functions, use sizeof.
10946
a41240a3
MR
109472009-01-12 Martin Rudalics <rudalics@gmx.at>
10948
10949 * keyboard.c (read_char): Fix case where last_nonmenu_event
10950 returned a bad value with submenus. (Bug#447)
10951
944636b8
CY
109522009-01-12 Chong Yidong <cyd@stupidchicken.com>
10953
10954 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10955 family, clear the font width index too.
10956
0dad7c6f
JR
109572009-01-11 Jason Rumney <jasonr@gnu.org>
10958
10959 * keyboard.c (cmd_error_internal): Exit when errors occur before
10960 frame creation and not in daemon mode. (Bug#1836)
10961
7c2363af
CY
109622009-01-10 Chong Yidong <cyd@stupidchicken.com>
10963
10964 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10965 of a display vector, backtrack.
10966 (try_window_reusing_current_matrix): Check glyph type before
10967 referencing charpos member.
10968
97b1b294
EZ
109692009-01-10 Eli Zaretskii <eliz@gnu.org>
10970
10971 Fix Bug #876:
10972
10973 * coding.c (inhibit_null_byte_detection): New variable.
10974 (detect_coding, detect_coding_system): Don't pay attention to null
10975 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10976 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10977 <inhibit-iso-escape-detection>: Doc fix.
10978
4624b6e3
JR
109792009-01-09 Jason Rumney <jasonr@gnu.org>
10980
10981 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10982 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10983 Only report Unicode Plane 2 fonts as unicode-sip.
10984
323b840c
CY
109852009-01-09 Chong Yidong <cyd@stupidchicken.com>
10986
51d861de
SM
10987 * xfaces.c (Fx_font_family_list): Delete function.
10988 Move compatibility version to faces.el.
323b840c 10989
51d861de 10990 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10991
eba7400d
MR
109922009-01-09 Martin Rudalics <rudalics@gmx.at>
10993
10994 * frame.c (x_set_frame_parameters): Remember requested value for
10995 fullscreen before it's reset by the parameter handler.
10996
4b09796d
GM
109972009-01-09 Glenn Morris <rgm@gnu.org>
10998
10999 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 11000 (last_command_event): ... and update all users.
4b09796d
GM
11001 (last_input_char): For clarity, rename to...
11002 (last_input_event): ... and update all users.
11003 (last-command-char, last-input-char): Move to subr.el as aliases.
11004 * cmds.c, commands.h: Update for last_command_char rename.
11005
14ccea62
CY
110062009-01-08 Chong Yidong <cyd@stupidchicken.com>
11007
51d861de 11008 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 11009
5f004711
JR
110102009-01-08 Jason Rumney <jasonr@gnu.org>
11011
11012 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11013 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11014 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11015 Don't declare.
fff4e459 11016 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
11017 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11018
b71f6f73
KH
110192009-01-07 Kenichi Handa <handa@m17n.org>
11020
50b06221 11021 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 11022 remember the coding system used for decoding in
50b06221
KH
11023 coding_system (Bug#1039).
11024
b71f6f73 11025 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 11026 breaking the loop. (Bug#870)
b71f6f73
KH
11027 (decode_coding_utf_16, decode_coding_emacs_mule)
11028 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11029 (decode_coding_charset): Likewise.
11030
56f668f7
MR
110312009-01-05 Martin Rudalics <rudalics@gmx.at>
11032
11033 * frame.c (x_set_frame_parameters): Make sure height (width) get
11034 applied when fullwidth (fullheight) is set. (Bug#1522)
11035
5da9424d
JB
110362009-01-04 Juanma Barranquero <lekktu@gmail.com>
11037
11038 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11039 (utc_base): Declare as ULONGLONG, not long double.
11040 (convert_time_raw): Delete.
11041 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11042 (initialize_utc_base): New function.
11043 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11044 (convert_from_time_t): Use initialize_utc_base; compute result with
11045 64-bit arithmetic.
11046 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11047
c4605e09
EZ
110482009-01-03 Eli Zaretskii <eliz@gnu.org>
11049
9acef61c 11050 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
11051 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11052 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11053 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11054 [!subprocesses]: Define.
11055 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11056 (Flist_system_processes, Fsystem_process_attributes)
11057 [!subprocesses]: Call list_system_processes and
11058 system_process_attributes instead of returning Qnil.
11059
9acef61c
JB
11060 * dosfns.c (system_process_attributes, list_system_processes):
11061 New functions.
c4605e09
EZ
11062
11063 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11064
11065 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11066 Don't use the default (no-op) implementation.
11067
8b7d0a16
JR
110682009-01-03 Jason Rumney <jasonr@gnu.org>
11069
a6d46bc1
JR
11070 * keyboard.c (parse_modifiers_uncached): Wheel events are
11071 clicks (bug#687).
11072
8b7d0a16
JR
11073 * w32term.c (x_query_colors, x_query_color): New functions.
11074
11075 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11076 (svg_load_image): Cast returned pointers from dynamically loaded
11077 functions. Eliminate W32 specific code.
11078
bfe11752
DN
110792009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11080
89e2438a
DN
11081 * nsfns.m (x_set_foreground_color, x_set_background_color)
11082 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11083 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11084 x_ prefix instead of ns_. Update references.
11085 (syms_of_nsfns): Add a FIXME comment.
11086
11087 * nsterm.m (x_set_cursor_type): New prototype.
11088 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11089
bfe11752
DN
11090 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11091 for Solaris instead of incorrectly providing Qutime and Qcutime.
11092
031da700
EZ
110932009-01-02 Eli Zaretskii <eliz@gnu.org>
11094
11095 * w32.c (process_times): Compute sum of utime and stime.
11096 (system_process_attributes): Add Qtime to the alist.
11097
11098 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11099 and add them to the alist.
11100
11101 * process.c (top level) <Qtime, Qctime>: New variables.
11102 (syms_of_process): staticpro them.
11103 (Fsystem_process_attributes): Add their documentation to the doc
11104 string.
11105
11106 * process.h: Declare Qtime and Qctime.
11107
df23bf08
JR
111082009-01-02 Jason Rumney <jasonr@gnu.org>
11109
9acef61c 11110 * image.c (Qgobject): New symbol.
df23bf08
JR
11111 (syms_of_image): Initialize it.
11112 (init_svg_functions): Load some functions from gobject library.
11113
5bbdf7aa
DN
111142009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11115
11116 * frame.c (make_terminal_frame): Remove redundant code and useless
11117 block.
11118
63136da6
AS
111192009-01-01 Andreas Schwab <schwab@suse.de>
11120
11121 * process.c (conv_sockaddr_to_lisp): Add workaround for
11122 getsockname bug on BSD.
11123
9ef69046
CY
111242009-01-01 Chong Yidong <cyd@stupidchicken.com>
11125
d6fafbe0
CY
11126 * xfns.c (x_create_tip_frame): Set border width of the X window.
11127
51d861de 11128 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11129
f9c34147
JR
111302009-01-01 Jason Rumney <jasonr@gnu.org>
11131
9acef61c 11132 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11133 Don't block input, as per earlier xterm.c changes.
11134
f5497e45
AR
111352008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11136
11137 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11138 (ns_appkit_version_int): New function.
11139 (x-server-version): Use ns_appkit_version_int and follow 21+
11140 convention of returning 3 integers.
11141
c19cab20
KH
111422008-12-30 Kenichi Handa <handa@m17n.org>
11143
11144 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11145 (CHAR_SURROGATE_PAIR_P): New macro.
11146
11147 * font.h (struct font_driver): New member get_variation_glyphs.
11148
9acef61c 11149 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11150 (Ffont_variation_glyphs): New function.
11151 (syms_of_font): Defsubr it.
11152
11153 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11154 ftfont_variation_glyphs.
11155 (setup_otf_gstring): New function.
11156 (ftfont_drive_otf): Use it.
11157 (ftfont_shape_by_flt): Handle variation selector.
11158 (ftfont_variation_glyphs): New function.
11159
28cd591f
MR
111602008-12-30 Martin Rudalics <rudalics@gmx.at>
11161
11162 * frame.c (Vemacs_iconified): Remove.
11163
7f714baf
JR
111642008-12-30 Jason Rumney <jasonr@gnu.org>
11165
11166 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11167 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11168
9d2d22ab
CY
111692008-12-30 Chong Yidong <cyd@stupidchicken.com>
11170
11171 * indent.c (Fvertical_motion): Don't advance iterator if we have
11172 reseated to the desired position.
11173
11174 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11175 checking for pos match.
11176
545312c2
KH
111772008-12-30 Kenichi Handa <handa@m17n.org>
11178
1ede3eb6
KH
11179 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11180 just get the low 8-bit of the code.
11181
545312c2
KH
11182 * font.c (font_intern_prop): Validate str as multibyte.
11183
bd7bbf29
DN
111842008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11185
31e0750e
DN
11186 * dispextern.h (struct face): Move lface and hash from the middle
11187 of bitfields.
11188
bd7bbf29
DN
11189 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11190
b5672e7c
DN
111912008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11192
11193 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11194 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11195 instead of intervals.h.
11196
d704470f
AS
111972008-12-26 Andreas Schwab <schwab@suse.de>
11198
11199 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11200 cons.
11201
54b33868
MR
112022008-12-26 Martin Rudalics <rudalics@gmx.at>
11203
11204 * textprop.c (Qminibuffer_prompt): New variable.
11205 (syms_of_textprop): Initialize it.
11206 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11207 in minibuffer-prompt face. (Bug#1662)
11208
40b615d6
JR
112092008-12-25 Jason Rumney <jasonr@gnu.org>
11210
11211 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11212
baae5c2d
JR
112132008-12-24 Jason Rumney <jasonr@gnu.org>
11214
11215 * ralloc.c (r_alloc_reset_variable): New function.
11216
11217 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11218 record of what points where. (Bug#716)
baae5c2d 11219
a9051c88
DN
112202008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11221
11222 * minibuf.c (read_minibuf): Follow the non-interactive case when
11223 running as a daemon, before detaching.
11224
8b146312
AS
112252008-12-22 Andreas Schwab <schwab@suse.de>
11226
11227 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11228 * gtkutil.c (free_widget_value): Use xfree instead of free.
11229
56f2de10
MR
112302008-12-22 Martin Rudalics <rudalics@gmx.at>
11231
11232 * frame.c (delete_frame): New function derived from
11233 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11234 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11235 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11236 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11237 * frame.h: Extern delete_frame.
11238 * window.c (window_loop):
11239 * terminal.c (delete_terminal):
11240 * xterm.c (x_connection_closed):
11241 * xfns.c (Fx_hide_tip):
9acef61c 11242 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11243
1fc200d6
JR
112442008-12-21 Jason Rumney <jasonr@gnu.org>
11245
11246 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11247 when character maps to .notdef character.
11248
5e252df2
SM
112492008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11250
11251 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11252
99b72cc4
JR
112532008-12-20 Jason Rumney <jasonr@gnu.org>
11254
11255 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11256 a graphical frame on Windows. (Bug#1325)
99b72cc4 11257
acc49a52
JD
112582008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11259
11260 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11261
6ea15123
CY
112622008-12-20 Chong Yidong <cyd@stupidchicken.com>
11263
11264 * minibuf.c (Fread_buffer): Doc fix.
11265
b2dab6c8
JR
112662008-12-20 Jason Rumney <jasonr@gnu.org>
11267
54ea0c87 11268 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11269 server name in UNC paths. (Bug#719)
54ea0c87 11270
b2dab6c8 11271 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11272 charbuf. (Bug#1035)
b2dab6c8 11273
6d1921be
DN
112742008-12-19 Daniel Engeler <engeler@gmail.com>
11275
11276 * sysdep.c (serial_configure): Fix typo.
11277
53934c98
DN
112782008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11279
11280 * sysdep.c: Include alloca.h.
f4f634e8
DN
11281 (system_process_attributes): Add implementation for Solaris.
11282
11283 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11284
06e111a6
DN
112852008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11286
11287 Reorganize implementation of Flist_system_processes and
11288 Fsystem_process_attributes. No functional changes.
11289 * process.c: Don't #include pwd.h, grp.h and limits.h.
11290 (Flist_system_processes): Just call list_system_processes.
11291 (Fsystem_process_attributes): Just call system_process_attributes.
11292 (procfs_list_system_processes, time_from_jiffies)
11293 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11294 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11295
11296 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11297 (list_system_processes): Rename from
11298 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11299 Provide a do nothing implementation.
11300 (system_process_attributes): Rename from
11301 procfs_list_system_processes.
11302 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11303 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11304
11305 * w32.c (list_system_processes): Rename from
11306 w32_list_system_processes.
11307 (system_process_attributes): Rename from
11308 w32_system_process_attributes.
11309
11310 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11311
11312 * process.h (w32_list_system_processes)
11313 (w32_system_process_attributes): Remove.
362654a6
JB
11314 (list_system_processes, system_process_attributes):
11315 New prototypes.
06e111a6 11316
6a705b23
KH
113172008-12-19 Kenichi Handa <handa@m17n.org>
11318
11319 * xfont.c (xfont_decode_coding_xlfd): New function.
11320 (xfont_encode_coding_xlfd): New function.
11321 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11322 (xfont_list): Decode and encode XLFD by iso-8859-1.
11323 (xfont_match): Likewise.
11324 (xfont_list_family): Likewise.
11325 (xfont_open): Likewise.
11326
d66c0241 11327 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11328 names are utf-8.
11329
d66c0241 11330 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11331 names are utf-8.
11332
5a130941
JD
113332008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11334
11335 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11336 changed.
bfd20325
JD
11337 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11338 clicked on a detached tool bar button.
5a130941 11339
fd95644b
DN
113402008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11341
11342 * emacs.c (main): Print and error and exit when no data is read
11343 from the pipe.
11344
e6eee6ae
JR
113452008-12-17 Jason Rumney <jasonr@gnu.org>
11346
11347 * w32font.c (w32font_has_char): Always return -1.
11348
a35dd56b
KH
113492008-12-16 Kenichi Handa <handa@m17n.org>
11350
11351 * font.c (font_open_entity): Fix previous change.
11352
0e3635c2
DN
113532008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11354
11355 * process.c: Include <limits.h>.
11356
d4835507 113572008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11358
11359 * font.c (font_update_drivers): Fix mistake in reconstructing the
11360 driver list.
11361
113622008-12-16 Chong Yidong <cyd@stupidchicken.com>
11363
11364 * font.c (font_clear_cache): Fix format of font cache data.
11365
e2cbc401
CY
113662008-12-15 Chong Yidong <cyd@stupidchicken.com>
11367
11368 * xftfont.c (xftfont_open): Free Xft font pattern if
11369 XftFontOpenPattern fails.
11370
11371 * xterm.c (x_free_frame_resources): Remove extraneous call to
11372 free_frame_faces.
11373
b131d535
CY
113742008-12-13 Chong Yidong <cyd@stupidchicken.com>
11375
11376 * xterm.c (x_delete_display): Move xim_close_dpy call to
11377 x_delete_terminal.
11378 (x_delete_terminal): Call xim_close_dpy.
11379
e6df5336
JR
113802008-12-13 Jason Rumney <jasonr@gnu.org>
11381
11382 * w32font.c (intern_font_name): New function.
11383 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11384 (w32font_open_internal, Fx_select_font): Decode font name.
11385 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11386
11387 * w32font.h (intern_font_name): Declare new function.
11388
11389 * w32uniscribe.c (add_opentype_font_name_to_list):
11390 Use intern_font_name.
11391
20d68145
CY
113922008-12-13 Chong Yidong <cyd@stupidchicken.com>
11393
9f2554de
CY
11394 * frame.c (Fdelete_frame): Call free_font_driver_list.
11395
3d9bec9a
CY
11396 * font.c (free_font_driver_list): Implement missing function.
11397
20d68145
CY
11398 * w32term.c (w32_term_init): Don't initialize the image cache
11399 here; it will be done in init_frame_faces.
11400
11401 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11402 (struct x_display_info): Remove unused member null_pixel. New
11403 member xim_callback_data.
11404
11405 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11406 (xim_initialize): Save pointer to callback function data.
11407 (xim_close_dpy): Free callback function data. Call XCloseIM,
11408 reverting 2008-11-04 change by David Smith.
11409 (x_term_init): Don't initialize the image cache here; it will be
11410 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11411 (x_delete_display): Free x_dnd_atoms member.
11412
96f9306b
KH
114132008-12-13 Kenichi Handa <handa@m17n.org>
11414
6dec9044
JB
11415 * font.c (font_rescale_ratio): Moved from xfaces.c.
11416 Argument type changed. Handle a font-spec too.
96f9306b 11417 (font_score): Check Vface_font_rescale_alist.
6dec9044 11418 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11419
11420 * xfaces.c (font_rescale_ratio): Moved to font.c.
11421
8d5b4964
CY
114222008-12-13 Chong Yidong <cyd@stupidchicken.com>
11423
11424 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11425
e6df5336
JR
114262008-12-12 Jason Rumney <jasonr@gnu.org>
11427
11428 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11429 Vwindow_system_version to the real w32 major version.
11430
97c6058a
DN
114312008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11432
11433 * term.c (init_tty): Move setting the terminal name before the
11434 potential user: maybe_fatal.
11435
ec4e88d7
CY
114362008-12-11 Chong Yidong <cyd@stupidchicken.com>
11437
d4835507
JB
11438 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11439 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11440
b4233ec9
JR
114412008-12-11 Jason Rumney <jasonr@gnu.org>
11442
8ec71e23 11443 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11444 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11445
b4233ec9 11446 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11447 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11448
011a0143
JB
114492008-12-11 Juanma Barranquero <lekktu@gmail.com>
11450
11451 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11452
3c309f34
JB
114532008-12-11 Juanma Barranquero <lekktu@gmail.com>
11454
11455 * process.c (Fsystem_process_attributes, syms_of_process):
11456 Fix typo in name of Ssystem_process_attributes.
11457 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11458
fedc6ab5
JB
114592008-12-11 Juanma Barranquero <lekktu@gmail.com>
11460
11461 * syntax.c (Fmodify_syntax_entry): Doc fix.
11462
ba3de0e8
JB
114632008-12-10 Juanma Barranquero <lekktu@gmail.com>
11464
11465 * font.c (Ffont_spec): Move usage to end of docstring.
11466
174f1c74
JR
114672008-12-10 Jason Rumney <jasonr@gnu.org>
11468
11469 * w32font.c (Qcham): New symbol.
11470 (font_supported_scripts): Add cham, and comments for other new
11471 scripts in bitfield from OpenType spec.
9d32f818
JR
11472 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11473 contain characters beyond the bmp.
174f1c74 11474
7b649478
KH
114752008-12-10 Kenichi Handa <handa@m17n.org>
11476
11477 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11478 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11479 Qunicode_sip.
11480
2133e2d1
JB
114812008-12-10 Juanma Barranquero <lekktu@gmail.com>
11482
11483 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11484 (Fcoding_system_put): Use QCdefault_char.
11485 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11486
9af886ee
CY
114872008-12-09 Chong Yidong <cyd@stupidchicken.com>
11488
74d819eb
CY
11489 * xftfont.c (syms_of_xftfont): Fix typo.
11490
4ccfa1c0 11491 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11492
7c19d3ae
DN
114932008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11494
11495 * emacs.c (main): Close daemon_pipe on exec.
11496
567826bb
CY
114972008-12-08 Chong Yidong <cyd@stupidchicken.com>
11498
11499 * termchar.h (struct tty): New members termcap_term_buffer and
11500 termcap_strings_buffer.
11501
11502 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11503 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11504 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11505 All callers changed.
11506 (init_tty): Store termcap data and string buffers in new struct
11507 tty members termcap_term_buffer and termcap_strings_buffer.
11508 (delete_tty): Free them.
4ccfa1c0 11509 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11510
aa96c42b
SZ
115112008-12-07 Seiji Zenitani <zenitani@mac.com>
11512
11513 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11514 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11515
b7e1d896
CY
115162008-12-06 Chong Yidong <cyd@stupidchicken.com>
11517
11518 * coding.c (make_conversion_work_buffer): Disable buffer
11519 modification hooks in the work buffer.
11520
b5ec91a5
EZ
115212008-12-05 Eli Zaretskii <eliz@gnu.org>
11522
11523 * process.c (procfs_system_process_attributes): If `nread' has a
11524 negative value, assign zero to it.
11525
a5d2a52b
CY
115262008-12-05 Chong Yidong <cyd@stupidchicken.com>
11527
68c5540b 11528 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11529
7bf1bb21
KH
115302008-12-05 Kenichi Handa <handa@m17n.org>
11531
11532 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11533 second character is a combining character.
11534
2fdc7d00
EZ
115352008-12-05 Eli Zaretskii <eliz@gnu.org>
11536
11537 * process.c (procfs_system_process_attributes): Don't use cmd,
11538 cmdsize, and q without initializing them first.
11539
bf6bfba8
JR
115402008-12-04 Jason Rumney <jasonr@gnu.org>
11541
11542 * w32font.c (w32font_draw): Initialize orig_clip before getting
11543 it, and delete it when finished.
11544
a3b1a468
DN
115452008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11546
11547 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11548 case when running as a daemon before detaching.
11549
8b8be8eb
JB
115502008-12-03 Juanma Barranquero <lekktu@gmail.com>
11551
805f2638 11552 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11553
b1bde622
KH
115542008-12-03 Kenichi Handa <handa@m17n.org>
11555
e500c47d
KH
11556 * font.c (font_at): Set `multibyte' at first.
11557
ca516334
KH
11558 * coding.c (decode_coding_charset): Check type of an element of
11559 vector VALIDS.
7bf1bb21 11560 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11561
4ccfa1c0 11562 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11563 (font_for_char): Likewise.
11564
1e5ecd37
CY
115652008-12-03 Chong Yidong <cyd@stupidchicken.com>
11566
d5b01609 11567 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11568 (font_update_lface): Handle fonts with corrupted size specs,
11569 i.e. non-int and non-float.
d5b01609 11570
11e3a6e4 11571 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11572 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11573 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11574
ab06788b
CY
11575 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11576
1e5ecd37 11577 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11578 underline_minimum_offset for underline position.
1e5ecd37 11579
63c125ab
DN
115802008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11581
11582 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11583
11584 * character.c (c_string_width): Specify the type for LEN.
11585
3a8406e1
KH
115862008-12-03 Kenichi Handa <handa@m17n.org>
11587
4ccfa1c0 11588 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11589 (decode_coding_utf_8): Likewise.
4ccfa1c0 11590 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11591 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11592
651df7d9
CY
115932008-12-02 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * keyboard.c (make_lispy_position): Only use PT if the selected
11596 window is current.
11597
1f625c6c
AS
115982008-12-02 Andreas Schwab <schwab@suse.de>
11599
f7741ce9
AS
11600 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11601
1f625c6c
AS
11602 * doprnt.c (doprnt1): Fix size of charbuf.
11603
92bc2678
CY
116042008-12-02 Chong Yidong <cyd@stupidchicken.com>
11605
11606 * keyboard.c (timer_check): Revert last change.
11607
93b9e8cc
JB
116082008-12-02 Juanma Barranquero <lekktu@gmail.com>
11609
11610 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11611
fd7a37d5
JB
116122008-12-01 Juanma Barranquero <lekktu@gmail.com>
11613
11614 * makefile.w32-in: Update dependencies.
11615 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11616
c115043b
AS
116172008-12-01 Andreas Schwab <schwab@suse.de>
11618
11619 * font.c (register_font_driver): Use xmalloc.
11620 (font_put_frame_data): Likewise.
11621
f5668d2a
CY
116222008-12-01 Chong Yidong <cyd@stupidchicken.com>
11623
860d96be
CY
11624 * xfaces.c (realize_x_face): Make abort condition clearer.
11625
f5668d2a
CY
11626 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11627
379c17e7
CY
116282008-11-30 Chong Yidong <cyd@stupidchicken.com>
11629
11630 * keyboard.c (timer_check): After a timer runs, ensure that the
11631 selected window's buffer is current.
11632
35f36d65
JB
116332008-11-30 Juanma Barranquero <lekktu@gmail.com>
11634
f952c61c
JB
11635 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11636 It was accidentally restored by the Unicode merge.
11637
35f36d65
JB
11638 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11639
b23077df
JB
116402008-11-29 Juanma Barranquero <lekktu@gmail.com>
11641
11642 * w32proc.c: Include "coding.h".
11643 (Fw32_short_file_name): Encode filename passed to Windows API.
11644 (Fw32_long_file_name): Encode filename passed to Windows API and
11645 decode back the result. (Bug#1433)
11646
b8ebe9dd
KH
116472008-11-29 Kenichi Handa <handa@m17n.org>
11648
8cc53f96
KH
11649 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11650 not before accessing it.
11651
b8ebe9dd
KH
11652 * charset.c (Fdefine_charset_internal): After calculating
11653 min_char, max_char, and fastmap, copy the charset structure again.
11654 (encode_char): Fix the previous change.
11655
59bc82c0
SZ
116562008-11-28 Seiji Zenitani <zenitani@mac.com>
11657
11658 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11659
11660 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11661
11662 * nsterm.m (x_set_frame_alpha): New function.
11663
32247e3d
EZ
116642008-11-27 Eli Zaretskii <eliz@gnu.org>
11665
11666 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11667
b003e5ff
JB
116682008-11-27 Juanma Barranquero <lekktu@gmail.com>
11669
11670 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11671 pointer to check_face_name.
11672
708550f5
KH
116732008-11-27 Kenichi Handa <handa@m17n.org>
11674
11675 * category.h (SET_CATEGORY_SET): Call set_category_set.
11676 (set_category_set): Extern it.
11677
11678 * category.c (hash_get_category_set): New function.
11679 (Fmodify_category_entry): Adjusted for the change of
11680 char_table_ref_and_range. Call hash_get_category_set to get a
11681 category set to store in the table.
11682
11683 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11684 Funify_charset.
11685
2ae37cf0 11686 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11687 (DECODE_CHAR): Check if the decoder vector is ready.
11688 (ENCODE_CHAR): Check if the encoder char-table is ready.
11689 (maybe_unify_char): Extern it.
11690
11691 * charset.c (Vchar_unified_charset_table): Delete it.
11692 (inhibit_load_charset_map): New variable.
11693 (temp_charset_work): New variable.
11694 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11695 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11696 New macros.
11697 (load_charset_map): Meaning of control_flag changed. If
11698 inhibit_load_charset_map is nonzero, setup a table in
11699 temp_charset_work.
11700 (load_charset): New argument control_flag.
11701 (map_charset_for_dump): New function.
11702 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11703 map_charset_for_dump.
11704 (Fdefine_charset_internal): If the charset method is MAP, load
11705 mapping tables by calling load_charset.
11706 (Funify_charset): Don't load a mapping table but directly set
11707 Vchar_unify_table.
11708 (maybe_unify_char): New function.
11709 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11710 Handle the case of inhibit_load_charset_map being nonzero.
11711 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11712 Handle the case of inhibit_load_charset_map being nonzero.
11713 (Fclear_charset_maps): Just free temp_charset_work.
11714 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11715 variable.
11716
11717 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11718 change of char_table_ref_and_range.
11719 (char_table_ref_and_range): Change the meaning of argument FROM
11720 and TO. Now the caller must provide initial values for *FROM
11721 and *TO.
11722
11723 * fontset.c (fontset_add): Adjusted for the change of
11724 char_table_ref_and_range.
11725 (fontset_get_font_group): Likewise.
11726 (Ffontset_info): Likewise.
11727
11728 * keymap.c (describe_vector): Adjusted for the change of
11729 char_table_ref_and_range. For char-table, put boundary between
11730 non-ASCII and 8-bit characters.
11731
11732 * print.c (print_object): For bool-vector, delete unnecessary
11733 check of ASCII_BYTE_P.
11734
9196133b
JR
117352008-11-26 Jason Rumney <jasonr@gnu.org>
11736
11737 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11738 leading in font height. (Bug#879)
9196133b 11739
9f688acf
GM
117402008-11-26 Glenn Morris <rgm@gnu.org>
11741
11742 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11743 redefinition with ifdef. (Bug#1383)
11744
90d19aff
AR
117452008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11746
11747 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11748
4ccfa1c0 117492008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11750
11751 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11752 New EmacsView methods.
11753 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11754 Fixes bug #1048,1357,1414.
11755
117562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11757
11758 Fix bug #1362.
11759 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11760 is not an indexed color.
11761 * nsterm.m (free_indexed_color): Add argument checking.
11762 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11763
e7d5ecb3
CY
117642008-11-24 Chong Yidong <cyd@stupidchicken.com>
11765
11766 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11767 Document confirm-after-completion value for
11768 minibuffer-completion-confirm.
11769
c285743c
JR
117702008-11-24 Jason Rumney <jasonr@gnu.org>
11771
11772 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11773 warning.
11774
b0857706
JR
117752008-11-23 Jason Rumney <jasonr@gnu.org>
11776
11777 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11778 restored before returning.
11779
11780 * w32font.c (check_face_name): New function.
11781 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11782 fonts. (Bug#642)
b0857706 11783
ee50ff07
MR
117842008-11-22 Martin Rudalics <rudalics@gmx.at>
11785
11786 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11787 confirm-nonexistent-file-or-buffer in doc-string.
11788
b8ff72fa
SM
117892008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11790
11791 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11792 Fix copy/paste typo. Add checks.
11793
cee53ed4
KH
117942008-11-21 Kenichi Handa <handa@m17n.org>
11795
11796 * coding.c (detect_coding_iso_2022): Reject invalid composition
11797 sequence.
11798 (DECODE_COMPOSITION_START): If the current source is the last
11799 block, and the current composition doesn't end, regard this
11800 sequence as invalid.
11801 (decode_coding_iso_2022): Handle invalid composition sequence.
11802
f6ef1e65
MR
118032008-11-20 Martin Rudalics <rudalics@gmx.at>
11804
11805 * window.c (coordinates_in_window): Don't return
11806 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11807 line when the window is not the rightmost one. (Bug#1372)
11808
e08b1705
MR
118092008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11810
11811 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11812
ad98e89f
EZ
118132008-11-15 Eli Zaretskii <eliz@gnu.org>
11814
11815 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11816 and bright_bg if noninteractive is non-zero.
11817
fb098a4b
CY
118182008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11819
11820 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11821 x_draw_glyph_string_background.
11822
11823 * w32term.c (x_draw_glyph_string): Likewise.
11824
ce952b6e
CY
118252008-11-15 Chong Yidong <cyd@stupidchicken.com>
11826
11827 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11828 the next glyph string once past the overhang width.
11829
11830 * nsterm.m (ns_draw_glyph_string): Likewise.
11831
11832 * w32term.c (x_draw_glyph_string): Likewise.
11833
26ea7079
CY
118342008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11835
11836 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11837 double file close.
11838
1c33c906
MR
118392008-11-14 Martin Rudalics <rudalics@gmx.at>
11840
11841 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11842 dedicated status of window before attempting to display another
11843 buffer in it.
11844
8fc29035
JB
118452008-11-14 Juanma Barranquero <lekktu@gmail.com>
11846
11847 * msdos.c (Fmsdos_long_file_names):
11848 (syms_of_msdos) <dos-unsupported-char-glyph>:
11849 * dosfns.c (Fint86): Fix typos in docstrings.
11850
55fb4286
EZ
118512008-11-14 Eli Zaretskii <eliz@gnu.org>
11852
11853 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11854
3fda0315
KY
118552008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11856
11857 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11858
7e849c17
CY
118592008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11860
11861 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11862
11863 * frame.h: Negative alpha means "don't touch".
11864
11865 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11866
11867 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11868
b9fd67bd
DN
118692008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11870
11871 * hftctl.c:
11872 * chpdef.h:
11873 * acldef.h: Remove files used only for systems no longer supported.
11874
11875 * Makefile.in: Fix .o alphabetical ordering.
11876 (hftctl.o): Remove dependency, file removed.
11877 (keymap.o, print.o): Depend on charset.h.
11878
d5998e03
KH
118792008-11-10 Kenichi Handa <handa@m17n.org>
11880
2ae37cf0 11881 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11882
be70e183
CY
118832008-11-08 Chong Yidong <cyd@stupidchicken.com>
11884
11885 * dired.c (file_name_completion): If completion_ignore_case is
11886 enabled, ignore case when checking completion-regexp-list.
11887
7cf94eac
EZ
118882008-11-08 Eli Zaretskii <eliz@gnu.org>
11889
11890 * vm-limit.c (get_lim_data): Fix last change.
11891
ee107a89
KH
118922008-11-08 Kenichi Handa <handa@m17n.org>
11893
11894 * character.c (Fget_byte): New function.
11895 (syms_of_character): Defsubr Fget_byte.
11896
5fd15622
CY
118972008-11-07 Chong Yidong <cyd@stupidchicken.com>
11898
11899 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11900 cursor position is valid after scrolling.
11901
13d62fad
JB
119022008-11-06 Juanma Barranquero <lekktu@gmail.com>
11903
11904 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11905
a1dd2936
GM
119062008-11-06 Glenn Morris <rgm@gnu.org>
11907
11908 * xterm.c (handle_one_xevent): Don't let popup menus cause
11909 mouse-autoselect-window related window switching. (Bug#1261)
11910
860cd236
CY
119112008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11912
11913 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11914
653a3150
AS
119152008-11-04 Andreas Schwab <schwab@suse.de>
11916
11917 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11918
870f5cac
CY
119192008-11-03 Chong Yidong <cyd@stupidchicken.com>
11920
11921 * xfns.c (Fx_wm_set_size_hint): New function.
11922
1e02f3cb
MR
119232008-11-03 Martin Rudalics <rudalics@gmx.at>
11924
11925 * textprop.c (Fprevious_single_char_property_change): Return 0
11926 when there's no change in a string. (Bug#1301)
11927
e630dfc6
MR
119282008-11-02 Martin Rudalics <rudalics@gmx.at>
11929
11930 * frame.c (do_switch_frame): New argument NORECORD passed to
11931 Fselect_window.
11932 (Fselect_frame): New argument NORECORD passed to
11933 do_switch_frame.
11934 (Fset_frame_selected_window): New argument NORECORD passed to
11935 Fselect_frame.
11936 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11937 in call of do_switch_frame.
11938 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11939 Handle NORECORD argument in call of Fselect_frame.
11940 * lisp.h (do_switch_frame, Fselect_frame)
11941 (Fset_frame_selected_window): Adjust declarations.
11942 * window.c (select_frame_norecord): New function.
11943 (run_window_configuration_change_hook): Use it and call
11944 Fselect_frame with NORECORD set.
11945 (Fselect_window): Pass NORECORD to Fselect_frame.
11946 (Fset_window_configuration): Handle NORECORD argument in call of
11947 do_switch_frame.
11948 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11949 Fset_frame_selected_window.
11950 * keyboard.c (command_loop_1): Handle NORECORD in call of
11951 Fselect_frame (currently ifdefd).
11952
9020b223
GM
119532008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11954
11955 * emacs.c (USAGE2): Untabify.
11956
793ffee8
SM
119572008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * composite.c (fill_gstring_header): Fix copy/paste typo.
11960
ab6d1131
MR
119612008-10-31 Martin Rudalics <rudalics@gmx.at>
11962
11963 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11964 (Fother_window): Rename argument and rewrite doc-string.
11965 (select_window_norecord): Fix return value. (Bug#1276)
11966
601a9cf1
JB
119672008-10-30 Juanma Barranquero <lekktu@gmail.com>
11968
11969 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11970 new frames overriding foreground for tooltips. Based on similar patch
11971 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11972
813b0652
CY
119732008-10-29 Chong Yidong <cyd@stupidchicken.com>
11974
11975 * emacs.c (Fdaemon_initialized): Initialize nfd.
11976
4414f58f
MR
119772008-10-29 Martin Rudalics <rudalics@gmx.at>
11978
11979 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11980 (Fwindow_text_height): Clarify doc-strings.
11981 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11982 doc-string of window-scroll-functions.
11983
ecdcaa09
RS
119842008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11985
11986 * category.c (syms_of_category): Fix typo in docstring.
11987
23fe745a
JB
119882008-10-28 Juanma Barranquero <lekktu@gmail.com>
11989
11990 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11991 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11992 Fix typos in docstrings.
11993
ff808935
DN
119942008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11995
11996 * emacs.c (daemon_pipe): Make non-static.
11997 (IS_DAEMON): Move definition ...
11998 * lisp.h (IS_DAEMON): ... here.
11999 (daemon_pipe): Declare.
12000 (is_daemon): Remove.
12001 * dispnew.c (init_display): Use IS_DAEMON.
12002
fc012771
SM
120032008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12004
12005 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12006 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12007
12008 * emacs.c (is_daemon): Remove.
12009 (main): Don't set is_daemon.
12010 (IS_DAEMON): New macro.
12011 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 12012 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
12013 parent exits.
12014 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12015
d8bdbe6f
CY
120162008-10-27 Chong Yidong <cyd@stupidchicken.com>
12017
d1a072bf
CY
12018 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12019 over-sized glyph, draw it with the default glyph width.
12020
e2e325aa
CY
12021 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12022 glyph, draw it with the default glyph width.
12023
12024 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12025 glyph, draw it with the default glyph width.
12026
d8bdbe6f
CY
12027 * xdisp.c (try_scrolling): When computing the distance from the
12028 scroll margin to PT, try moving some distance past the window
12029 bottom before giving up.
12030
7bfac547
MR
120312008-10-27 Martin Rudalics <rudalics@gmx.at>
12032
12033 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12034 (Fset_window_buffer): Explain in doc-string that a window can be
12035 "strongly" dedicated to its buffer.
12036
4ff029f6
DN
120372008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12038
12039 * emacs.c (daemon_name): New variable.
12040 (main): Deal with --daemon=SERVER_NAME.
12041 (Fdaemonp): Return a name if one was passed to --daemon.
12042
5790ef40
DN
120432008-10-26 Romain Francoise <romain@orebokech.com>
12044
f9bd0df9 12045 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
12046 (main): Create a pipe before forking, make the parent exit only after
12047 the child has closed its end of the pipe. Move closing the
12048 descriptors ...
12049 (Fdaemon_initialized): ... here. New function.
12050
f5385255
SM
120512008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12052
4d632321
SM
12053 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12054 the previous unoptimized table.
12055
f5385255
SM
12056 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12057 the distinction between non-nil and non-t value of `dedicated'.
12058
6c56a0f3
CY
120592008-10-25 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 12062 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 12063
fec89261
MR
120642008-10-25 Martin Rudalics <rudalics@gmx.at>
12065
12066 * window.c (Fget_buffer_window, Fdelete_windows_on)
12067 (Freplace_buffer_in_windows): Make buffer argument optional and
12068 rename to buffer_or_name.
12069
34fcddd0
CY
120702008-10-24 Chong Yidong <cyd@stupidchicken.com>
12071
f5385255
SM
12072 * xdisp.c (handle_single_display_spec, handle_display_prop):
12073 Undo 2005-05-16 change.
34fcddd0
CY
12074 (handle_stop): Pop iterator if it's loaded with an empty string.
12075 (get_overlay_strings_1): Don't save iterator if it's loaded with
12076 an empty string (bug#1201).
12077
064766f2
KH
120782008-10-24 Kenichi Handa <handa@m17n.org>
12079
12080 * ftfont.c (ftfont_otf_features): Fix previous change.
12081 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12082 calling ftfont_otf_features.
12083
f9bd0df9 120842008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
12085
12086 * font.c (font_match_p): Fix for the case that a vector of
12087 characters is in script-representative-chars.
12088
1dae9197
MA
120892008-10-24 Michael Albinus <michael.albinus@gmx.de>
12090
12091 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 12092 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
12093 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12094 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12095 macro. (Bug#1186)
1dae9197 12096
f9bd0df9 120972008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12098
12099 * s/sol2-10.h: New file.
12100
878a4584
JB
121012008-10-23 Juanma Barranquero <lekktu@gmail.com>
12102
12103 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12104 poor beast has survived 9+ years and the jump from xterm.c!).
12105
cd265ca6
MR
121062008-10-23 Martin Rudalics <rudalics@gmx.at>
12107
12108 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12109 Reword doc-string.
f5385255 12110 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12111
472a4dc9
JB
121122008-10-23 Juanma Barranquero <lekktu@gmail.com>
12113
12114 * character.c (syms_of_character) <script-representative-chars>:
12115 <unicode-category-table>: Doc fixes.
12116
159bd5a2
NF
121172008-10-23 Noah Friedman <friedman@splode.com>
12118
12119 * coding.c (make_conversion_work_buffer): Check that
12120 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12121 Fget_buffer_create.
12122
49f9c344
KH
121232008-10-23 Kenichi Handa <handa@m17n.org>
12124
12125 * font.c (font_add_log): Check the values of extra properties.
12126
12bb3111
MR
121272008-10-22 Martin Rudalics <rudalics@gmx.at>
12128
12129 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12130 Reword doc-string.
12131 (Fset_window_parameter): Use NILP.
12132 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12133 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12134
bbeb4e99
JB
121352008-10-22 Juanma Barranquero <lekktu@gmail.com>
12136
12137 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12138
121392008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12140
12141 * nsfns.m (ns_appkit_version): New function.
12142 (x-server-version): Use it.
12143 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12144 (x-server-vendor): Don't check_ns().
12145
12146 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12147
a9b555d3
JB
121482008-10-22 Juanma Barranquero <lekktu@gmail.com>
12149
12150 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12151 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12152
4626499f
KH
121532008-10-22 Kenichi Handa <handa@m17n.org>
12154
e3681952
KH
12155 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12156 scripts.
12157
4626499f
KH
12158 * category.c (word_boundary_p): Check scripts instead of charset.
12159 Handle nil value in word-separating-categories and
12160 word-combining-categories.
12161 (syms_of_category): Fix docstrings of word-separating-categories
12162 and word-combining-categories.
12163
1560f91a
EZ
121642008-10-21 Eli Zaretskii <eliz@gnu.org>
12165
12166 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12167 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12168
f4668441
MR
121692008-10-21 Martin Rudalics <rudalics@gmx.at>
12170
12171 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12172 Rename arg "buffer" to "buffer_or_name".
12173 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12174 it optional.
12175 (no_switch_window): Remove since the return value is not used.
a9b555d3 12176 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12177 Consider window as dedicated when Fwindow_dedicated_p returns a
12178 non-nil value.
12179 * lisp.h: Remove prototype for no_switch_window.
12180
fd75ddb2
JD
121812008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12182
12183 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12184 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12185
07295713
KH
121862008-10-21 Kenichi Handa <handa@m17n.org>
12187
12188 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12189 check Vlatin_extra_code_table.
12190
712adc82
EZ
121912008-10-20 Eli Zaretskii <eliz@gnu.org>
12192
12193 * fileio.c (Fset_file_modes): Doc fix.
12194
f549eb0b
MA
121952008-10-19 Michael Albinus <michael.albinus@gmx.de>
12196
12197 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12198 in arrays.
12199
aac0c6e3
MR
122002008-10-19 Martin Rudalics <rudalics@gmx.at>
12201
12202 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12203 Mention kill-buffer in doc-string.
12204 (Fset_window_buffer): Reinsert tem check removed in last commit.
12205 (Fenlarge_window, Fshrink_window): Have argument names and
12206 doc-string follow Elisp manual more closely.
12207
122082008-10-18 Eli Zaretskii <eliz@gnu.org>
12209
12210 * fileio.c (Fset_file_modes): Doc fix.
12211
122122008-10-18 Martin Rudalics <rudalics@gmx.at>
12213
12214 * window.c (Fwindow_width, Fset_window_start)
12215 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12216 (Fdelete_windows_on, Freplace_buffer_in_windows):
12217 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12218 (Fwindow_dedicated_p): Make window argument optional.
12219 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12220 (Fset_window_buffer): Respect any non-nil dedicated value for
12221 window. Rename "buffer" argument to "buffer_or_name".
12222
122232008-10-18 Ulrich Mueller <ulm@gentoo.org>
12224
12225 * m/sh3.h: New file, machine description for SuperH.
12226
122272008-10-17 Martin Rudalics <rudalics@gmx.at>
12228
12229 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12230
122312008-10-17 Kenichi Handa <handa@m17n.org>
12232
12233 * ftfont.c (ftfont_otf_features): Fix indexing
12234 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12235
122362008-10-16 Magnus Henoch <mange@freemail.hu>
12237
12238 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12239 (Fdbus_call_method_asynchronously): Ditto.
12240 This change makes C-h f display the argument list.
12241
122422008-10-16 Chong Yidong <cyd@stupidchicken.com>
12243
12244 * fileio.c (Fexpand_file_name): Doc fix.
12245
12246 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12247 of :foreground and :background equivalent to unspecified (20.x
12248 compatibility).
12249
122502008-10-15 Eli Zaretskii <eliz@gnu.org>
12251
12252 * buffer.c (syms_of_buffer): Doc fix.
12253
122542008-10-14 Kenichi Handa <handa@m17n.org>
12255
12256 * font.c (font_clear_prop): When clearing font width, clear the
12257 average width field too.
12258
122592008-10-12 Andreas Schwab <schwab@suse.de>
12260
12261 * ftfont.c (ftfont_shape_by_flt): Make static.
12262 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12263
12264 * font.c: Don't include <m17n-flt.h>.
12265
122662008-10-10 Eli Zaretskii <eliz@gnu.org>
12267
12268 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12269
122702008-10-09 Eli Zaretskii <eliz@gnu.org>
12271
12272 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12273 away code.
12274
122752008-10-09 Chong Yidong <cyd@stupidchicken.com>
12276
12277 * dispnew.c (update_text_area): Avoid looping due to large glyph
12278 overhangs (bug#1070).
12279
122802008-10-09 Kenichi Handa <handa@m17n.org>
12281
12282 * fontset.c (face_for_char): If face->fontset is negative, just
12283 return ascii_face.
12284
f5385255
SM
12285 * font.c (font_delete_unmatched): Fix previous change.
12286 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12287
122882008-10-09 Martin Rudalics <rudalics@gmx.at>
12289
12290 * frame.c (Fraise_frame): On text-only terminals select frame in
12291 order to make it visible. (Bug#1061)
12292
122932008-10-08 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * fontset.c (fontset_find_font): Check frame validity.
12296
122972008-10-07 Chong Yidong <cyd@stupidchicken.com>
12298
a9b555d3 12299 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12300 (xg_display_close): Allow Emacs to close all displays (bug#985).
12301
123022008-10-06 Andreas Schwab <schwab@suse.de>
12303
f5385255 12304 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12305
123062008-10-06 Chong Yidong <cyd@stupidchicken.com>
12307
f5385255 12308 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12309
a9b555d3 12310 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12311
12312 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12313 during initialization.
12314
123152008-10-04 Eli Zaretskii <eliz@gnu.org>
12316
12317 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12318 whole thing on MSDOS frames as well as on a TTY.
12319
12320 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12321 well as for TTY.
12322 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12323 well as on a TTY.
12324
12325 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12326 as well as for TTY.
12327
12328 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12329
12330 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12331 MSDOS frames as well.
12332
123332008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12334
12335 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12336 correct arguments.
b71ac3dd 12337 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12338
123392008-10-03 Glenn Morris <rgm@gnu.org>
12340
12341 * emacs.c (USAGE1): Add --daemon.
12342
123432008-10-02 Eli Zaretskii <eliz@gnu.org>
12344
12345 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12346 100, so it's in percents as advertised.
12347
123482008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12349
12350 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12351 (ns_output.current_cursor, ns_output.desired_cursor)
12352 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12353 (FRAME_NEW_CURSOR_COLOR): Remove.
12354
12355 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12356 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12357 enumeration (HOLLOW_BOX_CURSOR, etc.).
12358
12359 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12360 (draw_window_cursor): Simplify code.
f5385255
SM
12361 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12362 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12363 updates manually.
a9b555d3
JB
12364 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12365 Use core Emacs cursor types.
aac0c6e3 12366
b8ff72fa 12367 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12368
123692008-10-02 Martin Rudalics <rudalics@gmx.at>
12370
12371 * process.c (Faccept_process_output): Fix doc-string.
12372
123732008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12374
12375 * gmalloc.c (__sbrk): Also define for uClibc.
12376
12377 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12378 for uClibc.
12379
123802008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12381
12382 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12383 styles.
12384 (nsfont_open): Reenable the cache.
12385
123862008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12387
12388 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12389 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12390
123912008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12392
12393 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12394 a suspended terminal.
12395
123962008-09-30 Michael Albinus <michael.albinus@gmx.de>
12397
12398 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12399
124002008-09-30 Eli Zaretskii <eliz@gnu.org>
12401
12402 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12403
124042008-09-30 Chong Yidong <cyd@stupidchicken.com>
12405
12406 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12407 in a continued line coincides with a line beginning.
12408
124092008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12410
12411 * nsfont.m (nsfont_trait_distance): Fix bug.
12412 (nsfont_list): Return a list rather than a vector (syncs with Handa
12413 changes of 2008-05-14).
12414 (nsfont_open): Improve logging.
12415
124162008-09-29 Andreas Schwab <schwab@suse.de>
12417
12418 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12419
124202008-09-28 Martin Rudalics <rudalics@gmx.at>
12421
12422 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12423 name as char-resolve-modifiers.
12424 Reported by: Markus Triska <markus.triska@gmx.at>
12425
124262008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12427
12428 * dispnew.c (init_display): Return earlier when running as a daemon.
12429
124302008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12431
12432 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12433
124342008-09-27 Eli Zaretskii <eliz@gnu.org>
12435
12436 * composite.c (Fcomposition_get_gstring)
12437 (Fcompose_region_internal, Fcompose_string_internal)
12438 (Ffind_composition_internal): Doc fix.
12439 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12440 (syms_of_composite) <auto-composition-function>: Doc fix.
12441 (syms_of_composite) <composition-function-table>: Doc fix.
12442
124432008-09-25 Chong Yidong <cyd@stupidchicken.com>
12444
12445 * search.c (wordify): New argument for lax word-ends.
12446 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12447
124482008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12449
12450 * lisp.h (is_daemon): Declare.
12451 * dispnew.c (init_display): Do not try to initialize the terminal
12452 when running as a daemon.
12453
124542008-09-22 Chong Yidong <cyd@stupidchicken.com>
12455
12456 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12457 x_display_pixel_height.
12458
124592008-09-22 Martin Rudalics <rudalics@gmx.at>
12460
12461 * undo.c (record_point): Don't call Fundo_boundary for first
12462 change. (Bug#731)
12463
124642008-09-22 Juanma Barranquero <lekktu@gmail.com>
12465
12466 * emacs.c (Fdaemonp): Doc fix.
12467
124682008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12469
12470 * emacs.c (main): Place #ifdef in the proper place.
12471
124722008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12473
12474 * emacs.c (standard_args): Add --daemon.
12475 (main): Disconnect from the terminal when --daemon is passed.
12476 (is_daemon): New variable.
12477 (Fdaemonp): New function.
12478 (syms_of_emacs): Defsubr it.
12479
124802008-09-20 Chong Yidong <cyd@stupidchicken.com>
12481
12482 * xdisp.c (get_next_display_element): Handle string display
12483 correctly when checking for the end of a box run.
12484
124852008-09-20 Glenn Morris <rgm@gnu.org>
12486
12487 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12488 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12489 (Frename_file): Avoid copying to trash if a rename involves
12490 a delete. (Bug#964).
12491
124922008-09-20 Eli Zaretskii <eliz@gnu.org>
12493
12494 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12495 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12496 frames as well as termcap frames.
12497 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12498 get_named_tty.
12499
125002008-09-19 Eli Zaretskii <eliz@gnu.org>
12501
12502 * process.c (procfs_system_process_attributes): Fix cmdline in
12503 case /proc/PID/cmdline is empty.
12504
12505 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12506 x_display_pixel_height.
12507
125082008-09-19 Juanma Barranquero <lekktu@gmail.com>
12509
12510 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12511
12512 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12513 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12514
125152008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12516
12517 * dispextern.h (struct it): Move line_wrap away from the middle of
12518 bitfields. Move voffset in struct iterator_stack_entry after the
12519 bitfields. Move tab_width near after another short.
12520
125212008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12522
12523 * frame.h (struct frame): Move alpha from the middle of bitfields.
12524
12525 * window.h (struct window): Move frozen_window_start_p after the
12526 rest of the bitfields to reduce padding.
12527
125282008-09-18 Chong Yidong <cyd@stupidchicken.com>
12529
12530 * xterm.h (x_display_info): Remove `height' and `width' members.
12531
12532 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12533
12534 * w32term.h (w32_display_info): Remove `height', `width',
12535 `height_in', and `width_in' members.
12536
b8ff72fa
SM
12537 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12538 New functions.
aac0c6e3
MR
12539 (x_calc_absolute_position): Use them.
12540 (x_term_init): Omit removed `height' and `width' members.
12541
b8ff72fa
SM
12542 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12543 New functions.
aac0c6e3
MR
12544 (w32_read_socket, x_calc_absolute_position): Use them.
12545 (w32_initialize_display_info, w32_term_init): Omit removed members
12546 of w32_display_info.
12547
b8ff72fa
SM
12548 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12549 New functions.
12550 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12551
b8ff72fa
SM
12552 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12553 New functions.
aac0c6e3
MR
12554 (x_calc_absolute_position): Use them.
12555 (x_term_init): Omit removed `height' and `width' members.
12556
12557 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12558 (compute_tip_xy):
12559 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12560 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12561 x_display_pixel_width.
12562
125632008-09-18 Kenichi Handa <handa@m17n.org>
12564
12565 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12566 (composition_compute_stop_pos): Fix handling of static composition.
12567 (Fcomposition_get_gstring): Check FROM and TO at first.
12568
125692008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12570
46e722a9 12571 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12572 mixup (YAILOM).
12573
125742008-09-17 Chong Yidong <cyd@stupidchicken.com>
12575
12576 * indent.c (Fvertical_motion): Use position reported by iterator
12577 instead of PT for determining screen motion (bug#943).
12578
125792008-09-17 Romain Francoise <romain@orebokech.com>
12580
12581 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12582
125832008-09-17 Kenichi Handa <handa@m17n.org>
12584
12585 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12586
12587 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12588 if necessary.
12589
125902008-09-16 Kenichi Handa <handa@m17n.org>
12591
12592 * coding.c (make_conversion_work_buffer): Avoid calling
12593 Fget_buffer_create if it is not necessary.
12594
125952008-09-15 Martin Rudalics <rudalics@gmx.at>
12596
12597 * window.c (Fselect_window): Don't update window_select_count and
12598 use_time when norecord is not nil.
12599
126002008-09-14 Kenichi Handa <handa@m17n.org>
12601
12602 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12603 specpdl_ptr.
12604
126052008-09-12 Kenichi Handa <handa@m17n.org>
12606
12607 * indent.c (scan_for_column): Don't handle automatic composition
12608 if the current buffer is not associated with a window.
12609
12610 * composite.c (composition_reseat_it): If the current buffer is
12611 not associated with a window, ignore the automatic composition.
12612 (find_automatic_composition): Likewise.
12613
126142008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12615
12616 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12617 (Fgpm_mouse_stop): Use it.
12618 * termhooks.h (close_gpm): Declare.
12619 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12620 connection if Gpm_GetEvent fails.
12621
12622 * window.c (set_window_buffer): Always preserve current-buffer.
12623
126242008-09-12 Glenn Morris <rgm@gnu.org>
12625
12626 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12627
126282008-09-11 Glenn Morris <rgm@gnu.org>
12629
12630 * charset.c (charset-map-path): Doc fix.
12631
126322008-09-10 Kenichi Handa <handa@m17n.org>
12633
12634 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12635
12636 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12637 compose a grapheme cluster with the preceding base glyph.
12638
12639 * composite.c (composition_compute_stop_pos): Fix previous change.
12640 Reset cmp_it->id to -1 at first.
12641
126422008-09-10 Glenn Morris <rgm@gnu.org>
12643
12644 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12645
126462008-09-09 Chong Yidong <cyd@stupidchicken.com>
12647
12648 * keyboard.c (read_key_sequence): Reapply translation maps when
12649 switching keyboards.
12650
126512008-09-09 Kenichi Handa <handa@m17n.org>
12652
12653 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12654 characters.
12655
12656 * composite.c (FORWARD_CHAR): Fix calculation
12657 of (POSITION).pos_byte.
12658 (composition_compute_stop_pos): Limit the search of composition to
12659 at most 500 characters ahead. If we reach the limit or find a
12660 newline, set cmp_it->ch to -2 and return 0.
12661 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12662
126632008-09-08 Kenichi Handa <handa@m17n.org>
12664
12665 * indent.c (Fvertical_motion): Be sure to set
12666 it_overshoot_expected if it.cmp_it.id is non-negative.
12667
126682008-09-07 Andreas Schwab <schwab@suse.de>
12669
12670 * callproc.c (Fcall_process): Don't hold references to string data
12671 across garbage collection. Move initialisation of new_argv down
12672 to avoid compiler bug.
12673
126742008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12675
12676 * process.c (Fsystem_process_attributes): Doc fix.
12677
126782008-09-07 Chong Yidong <cyd@stupidchicken.com>
12679
12680 * callproc.c (Fcall_process): Canonicalize current directory name.
12681
12682 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12683 iterator advances to the next line if the current line ends in a
12684 continued tab.
12685
126862008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12687
12688 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12689 member to point to cmp_from.
12690
12691 * xdisp.c: Doc fix for references to gidx data member.
12692
126932008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12694
12695 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12696
126972008-09-07 Kenichi Handa <handa@m17n.org>
12698
12699 * composite.c (FORWARD_CHAR): Check STOP after
12700 incrementing (POSITION).pos.
12701
127022008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12703
12704 * process.c (Fsystem_process_attributes): Doc fix.
12705
127062008-09-06 Chong Yidong <cyd@stupidchicken.com>
12707
12708 * keyboard.c (Ftop_level): Doc fix.
12709
127102008-09-06 Eli Zaretskii <eliz@gnu.org>
12711
12712 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12713 minibuffer, don't let lower part of menu invade the echo area.
12714
12715 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12716 "char *q" to access menu text and advance through it. Revert the
12717 change that displayed ">" instead of ASCII character 0x10.
12718
127192008-09-05 Eli Zaretskii <eliz@gnu.org>
12720
12721 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12722 toggle boxes and radio buttons on MS-DOS as well.
12723
127242008-09-05 Kenichi Handa <handa@m17n.org>
12725
12726 * composite.c (autocmp_chars): Check lookback count.
12727 (composition_compute_stop_pos): Set cmp_it->lookback.
12728 (composition_reseat_it): Check lookback count.
12729 (struct position_record): New struct.
12730 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12731 (find_automatic_composition): New function.
12732 (composition_adjust_point): Use find_automatic_composition.
12733
12734 * dispextern.h (struct composition_it): New member lookback.
12735
127362008-09-02 Chong Yidong <cyd@stupidchicken.com>
12737
12738 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12739 if moving by a single line.
12740
127412008-09-02 Andreas Schwab <schwab@suse.de>
12742
12743 * xterm.c (x_delete_display): Fix merge error.
12744
12745 * fileio.c (Fexpand_file_name): Remove unused variables.
12746
127472008-09-02 Eli Zaretskii <eliz@gnu.org>
12748
12749 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12750 storage on all platforms, not just on DOS_NT.
12751
127522008-09-02 Jason Rumney <jasonr@gnu.org>
12753
b8ff72fa
SM
12754 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12755 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12756
127572008-09-01 Chong Yidong <cyd@stupidchicken.com>
12758
12759 * xfaces.c (Finternal_set_alternative_font_family_alist)
12760 (Finternal_set_alternative_font_registry_alist): Properly copy
12761 entire alist structure.
12762
127632008-09-01 Kenichi Handa <handa@m17n.org>
12764
d66c0241 12765 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12766 representative chars of the script is a vector.
d66c0241
JB
12767 (ftfont_list): Handle the case where the representative chars of
12768 the script is a vector.
aac0c6e3
MR
12769
12770 * character.c (syms_of_character): Docstring of
12771 script-representative-chars fixed.
12772
127732008-08-31 Eli Zaretskii <eliz@gnu.org>
12774
12775 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12776 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12777 the menu. Allocate larger buffer for `text', to account for
12778 possible ^C characters.
12779
127802008-08-31 Martin Rudalics <rudalics@gmx.at>
12781
12782 * xdisp.c (prepare_menu_bars): Don't call
12783 Vwindow_size_change_functions with arg Qt.
12784
127852008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12786
12787 * font.h (font_range):
12788 * fileio.c (report_file_error):
46e722a9
SM
12789 * composite.c (composition_update_it): Yet another int/Lisp_Object
12790 mixup (YAILOM).
aac0c6e3
MR
12791
127922008-08-30 Glenn Morris <rgm@gnu.org>
12793
12794 * data.c (Fmake_variable_frame_local): Doc fix.
12795
12796 * frame.c (Fmodify_frame_parameters): Doc fix.
12797
127982008-08-30 Eli Zaretskii <eliz@gnu.org>
12799
12800 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12801 needed by GetTokenInformation.
12802 (w32_system_process_attributes): Check return values of all system
12803 APIs.
12804
12805 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12806 only when the state changes.
12807 (IT_update_begin, IT_update_end): Add termscript trace.
12808
12809 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12810 clipboard is unavailable. Set dst to NULL if it doesn't point to
12811 malloc'ed data.
12812 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12813 passing random values to xfree.
12814
12815 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12816 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12817
128182008-08-29 Jason Rumney <jasonr@gnu.org>
12819
12820 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12821
128222008-08-29 Eli Zaretskii <eliz@gnu.org>
12823
12824 * composite.c (fill_gstring_body): Avoid compiler warnings.
12825
12826 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12827 LGLYPH_SET_CODE to avoid compiler warnings.
12828
2ae37cf0 12829 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12830
12831 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12832
12833 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12834 LGLYPH_SET_CODE.
12835
128362008-08-29 Kenichi Handa <handa@m17n.org>
12837
12838 * fileio.c (report_file_error): Don't downcase the first character
12839 of errstring if it is still unibyte.
12840
128412008-08-29 Kenichi Handa <handa@m17n.org>
12842
12843 These changes are to re-implement the automatic composition so
12844 that it doesn't use text properties.
12845
12846 * Makefile.in (ftfont.o): Depend on composite.h.
12847 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12848
12849 * character.h (Vunicode_category_table): Extern it.
12850
12851 * character.c (Vunicode_category_table): New variable.
12852 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12853
12854 * chartab.c (optimize_sub_char_table): Perform more greedy
12855 optimization.
12856
b8ff72fa
SM
12857 * composite.h (enum composition_method):
12858 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12859 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12860 (Vcomposition_function_table): Extern it.
12861 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12862 (composition_gstring_put_cache, composition_gstring_from_id)
12863 (composition_gstring_p, composition_gstring_width)
12864 (composition_compute_stop_pos, composition_reseat_it)
12865 (composition_update_it, composition_adjust_point): Extern them.
12866 (Fcomposition_get_gstring): EXFUN it.
12867
d66c0241 12868 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12869 (Vcomposition_function_table)
12870 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12871 (gstring_hash_table, gstring_work, gstring_work_headers):
12872 New variables.
aac0c6e3
MR
12873 (gstring_lookup_cache, composition_gstring_put_cache)
12874 (composition_gstring_from_id, composition_gstring_p)
12875 (composition_gstring_width, fill_gstring_header)
12876 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12877 (composition_reseat_it, composition_update_it)
b8ff72fa 12878 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12879 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12880 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12881 Defsubr composition_get_gstring.
aac0c6e3
MR
12882
12883 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12884 cmp_id.
12885 (struct glyph_string): Delete the member gidx. New members
12886 cmp_id, cmp_from, and cmp_to.
12887 (enum it_method): Delete GET_FROM_COMPOSITION.
12888 (struct composition_it): New struct.
12889 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12890 Delete c, len, cmp_id, cmp_len in u.comp.
12891
12892 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12893 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12894 (enum lglyph_indices): Likewise.
b8ff72fa 12895 (font_range): Adjust extern.
aac0c6e3
MR
12896 (font_fill_lglyph_metrics): Extern it.
12897
12898 * font.c (QCf): New variable.
12899 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12900 (font_prepare_composition): Delete this function.
12901 (font_range): Type and arguments changed.
12902 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12903 (font_fill_lglyph_metrics): New function.
b8ff72fa 12904 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12905 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12906 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12907 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12908
12909 * fontset.h (font_for_char): Extern it.
12910
12911 * fontset.c (font_for_char): New function.
12912
12913 * ftfont.c: Include composite.h.
12914 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12915 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12916
12917 * indent.c: Include composite.h and dispextern.h.
12918 (check_composition): Delete this function.
12919 (scan_for_column): Handle composition by
12920 composition_compute_stop_pos, composition_reseat_it, and
12921 composition_update_it.
12922 (compute_motion): Likewise.
12923 (Fvertical_motion): Fix checking of composition.
12924
12925 * keyboard.c (adjust_point_for_property): Check composition by
12926 composition_adjust_point.
12927
b8ff72fa 12928 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12929 struct glyph_string.
12930
b8ff72fa
SM
12931 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12932 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12933 struct glyph.
12934 (produce_composite_glyph): Likewise.
12935
b8ff72fa
SM
12936 * w32term.c (x_draw_composite_glyph_string_foreground):
12937 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12938 (x_draw_glyph_string): Likewise.
12939
12940 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12941 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12942
12943 * xdisp.c: Include font.h.
12944 (it_props): Delete the entry for Qauto_composed.
12945 (init_iterator): Initialize it->cmp_it.id to -1.
12946 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12947 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12948 (handle_auto_composed_prop): Delete it.
12949 (handle_composition_prop): Handle only static composition.
12950 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12951 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12952 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12953 (pop_it): Likewise.
12954 (get_next_element): Delete next_element_from_composition.
12955 (CHAR_COMPOSED_P): New macro.
12956 (get_next_display_element): For automatic composition, get a face
12957 from the font in the glyph-string.
12958 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12959 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12960 (next_element_from_string): Check if the character at the current
12961 position is composed by CHAR_COMPOSED_P.
12962 (next_element_from_buffer): Likewise.
d66c0241
JB
12963 (next_element_from_composition): Adjust for the change of struct it.
12964 Update it->cmp_it.
b8ff72fa
SM
12965 (dump_glyph): Adjust for the change of struct glyph.
12966 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12967 it and struct glyph. Don't handle automatic composition here.
12968 (fill_gstring_glyph_string): New function.
12969 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12970 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12971 (BUILD_GSTRING_GLYPH_STRING): New macro.
12972 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12973 automatic composition.
b8ff72fa 12974 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12975 struct glyph.
b8ff72fa 12976 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12977
b8ff72fa 12978 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12979 the change of struct glyph_string.
12980 (x_draw_glyph_string): Likewise.
12981
129822008-08-29 Glenn Morris <rgm@gnu.org>
12983
12984 * buffer.c (word-wrap): Doc fix.
12985 * xdisp.c (truncate-partial-width-windows): Doc fix.
12986 Increase default to 50.
12987
129882008-08-29 Chong Yidong <cyd@stupidchicken.com>
12989
12990 * xdisp.c (update_tool_bar_unwind): New function.
12991 (update_tool_bar): Temporarily set selected frame before building
12992 tool-bar items.
12993
129942008-08-28 Michael Albinus <michael.albinus@gmx.de>
12995
12996 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12997 snprintf, respectively.
12998 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12999
130002008-08-28 Chong Yidong <cyd@stupidchicken.com>
13001
13002 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13003 LDFLAGS to GNUstep CC invocation.
13004
130052008-08-27 Chong Yidong <cyd@stupidchicken.com>
13006
13007 * indent.c (Fvertical_motion): Revert last change. Handle the
13008 general case where we are moving forward, and PT spans multiple
13009 screen lines.
13010
13011 * eval.c (find_handler_clause): Temporarily increase
13012 max-lisp-eval-depth while printing the backtrace buffer, to
13013 guarantee that help-mode code can run.
13014
130152008-08-27 Eli Zaretskii <eliz@gnu.org>
13016
13017 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13018 colors under -rv.
13019 (IT_set_frame_parameters): Don't swap foreground and background
13020 colors if `(reverse . t)' is present in the frame properties.
13021 (internal_terminal_init): Call init_frame_faces only for the
13022 initial frame.
13023
130242008-08-27 Andreas Schwab <schwab@suse.de>
13025
13026 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13027
130282008-08-27 Andreas Schwab <schwab@suse.de>
13029
13030 * search.c (search_buffer): Set char_base to zero only at the end.
13031
130322008-08-27 Kenichi Handa <handa@m17n.org>
13033
b8ff72fa 13034 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
13035
130362008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13037
13038 * xterm.c (x_term_init): Temporarily hide the partially
13039 initialized terminal while calling vendor-specific-keysyms.
13040
130412008-08-26 Eli Zaretskii <eliz@gnu.org>
13042
13043 * msdos.c (internal_terminal_init): Most initializations done only
13044 once, especially initial_screen_colors[] and termscript open.
13045
130462008-08-26 Chong Yidong <cyd@stupidchicken.com>
13047
13048 * eval.c (Fcondition_case): Doc fix.
13049
13050 * widgetprv.h (EmacsFramePart): Change font member to the new font
13051 struct.
13052
13053 * widget.c: Include character.h and font.h for XSETFONT.
13054 (setup_frame_gcs): Compute X font id from font struct, just once.
13055
130562008-08-26 Eli Zaretskii <eliz@gnu.org>
13057
13058 * term.c (get_named_tty): Fix last change.
13059
130602008-08-26 Chong Yidong <cyd@stupidchicken.com>
13061
13062 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 13063 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
13064
130652008-08-25 Eli Zaretskii <eliz@gnu.org>
13066
13067 * frame.c (do_switch_frame): Mark previously displayed frame as
13068 obscured for FRAME_MSDOS_P frames as well.
13069
130702008-08-24 Eli Zaretskii <eliz@gnu.org>
13071
13072 * frame.c (make_terminal_frame): Initialize f->terminal,
13073 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13074 Set the top frame to newly created frame.
13075 (Fmake_terminal_frame): Reuse the_only_display_info.
13076
13077 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13078 estimating available memory.
13079
b97439ce 130802008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
13081
13082 * nsterm.m (ns_draw_window_cursor): Don't call
13083 NSDisableScreenUpdates and NSEnableScreenUpdates on
13084 non-NS_IMPL_COCOA systems.
13085
130862008-08-23 Andreas Schwab <schwab@suse.de>
13087
13088 * process.c (procfs_system_process_attributes): Fix use of
13089 uninitialized variables.
13090
130912008-08-23 Eli Zaretskii <eliz@gnu.org>
13092
13093 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13094
13095 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13096 calling tty-set-up-initial-frame-faces.
13097
b8ff72fa
SM
13098 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13099 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13100
13101 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13102 addition to output_termcap.
13103
13104 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13105
13106 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13107 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13108 highlight.
13109
13110 * process.c [!subprocesses]: Define QCname.
13111 (syms_of_process): Intern and staticpro it.
13112
13113 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13114 Adjust for changes in encoding/decoding routines.
13115 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13116 encode_coding and decode_coding.
13117
b8ff72fa 13118 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13119
13120 * dosfns.c: Include frame.h before termhooks.h.
13121 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13122 variable termscript.
13123
13124 * s/msdos.h (USER_FULL_NAME): Define.
13125 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13126
13127 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13128 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13129 pw->pw_gecos.
13130
13131 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13132 SELECTED_FRAME as additional (1st) argument.
13133 (tty_read_avail_input): Handle output_msdos_raw in
13134 addition to output_termcap.
13135
13136 * msdos.c: Include frame.h before termhooks.h.
13137 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13138 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13139 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13140 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13141 (IT_set_terminal_modes, IT_reset_terminal_modes)
13142 (IT_set_frame_parameters): Use tty->termscript instead of a global
13143 variable termscript.
13144 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13145 global variable terminal_coding. Don't refer to
13146 Vnonascii_translation_table.
13147 (internal_terminal_init): Set Vwindow_system in current_kboard.
13148 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13149 Announce date and time of session start, if termscript is open.
13150 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13151 term.c:init_tty). Open termscript only of not already open.
13152 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13153 here instead of dos_ttraw. Don't initialize display if this is an
13154 initial tty. Don't set FRAME_FONT.
13155 (Vwindow_system_version): Bump to 23.
13156 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13157 is available, set up mouse_position_hook.
13158 (dos_ttraw, IT_set_terminal_modes): If called with initial
13159 terminal, do nothing.
13160 (IT_set_frame_parameters): Handle the Qtty_type frame
13161 parameter by calling internal_terminal_init.
13162 (dos_set_window_size, show_mouse_face)
13163 (clear_mouse_face, IT_note_mode_line_highlight)
13164 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13165 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13166 (initialize_msdos_display): New function.
13167 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13168 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13169 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13170 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13171 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13172 (request_sigio, unrequest_sigio): Don't define, now defined on
13173 sysdep.c.
13174 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13175
13176 * term.c [MSDOS]: Include msdos.h.
13177 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13178 conditional to DOS_NT. Allow only one call to this function in a
13179 session. Don't allocate a new struct tty_display_info; instead,
13180 reuse the_only_display_info. Call get_tty_size to get screen
13181 dimensions. Call init_baud_rate to set bad_rate.
13182 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13183 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13184 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13185 (get_tty_terminal, get_named_tty, Ftty_type)
13186 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13187 output_termcap.
b8ff72fa
SM
13188 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13189 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13190 only when subprocesses are supported.
aac0c6e3
MR
13191
13192 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13193 f->output_data.x.
13194 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13195 terminal devices.
13196
5582fbc7 13197 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13198 x_output.
13199 (FRAME_FONT): Use output_data.tty.
13200 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13201 (struct x_display_info): Rename from display_info. Update all users in
13202 msdos.c.
aac0c6e3 13203 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13204 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13205 (dos_ttraw): Update prototype.
13206
13207 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13208 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13209
132102008-08-23 Jason Rumney <jasonr@gnu.org>
13211
13212 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13213 (fn_TIFFSetDirectory): New library function used.
13214 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13215 (tiff_load): Use :index to select among multiple images. Set count
13216 property when multiple images exist.
13217 (gif_format): Use :index, not :image.
13218
132192008-08-23 Chong Yidong <cyd@stupidchicken.com>
13220
13221 * xdisp.c (try_scrolling): Check INT_MAX instead of
13222 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13223 to obtain INT_MAX.
13224
132252008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13226
13227 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13228
132292008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13230
13231 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13232 GNUstep library location.
13233
132342008-08-21 Chong Yidong <cyd@stupidchicken.com>
13235
13236 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13237 before using it.
13238
13239 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13240
132412008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13242
13243 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13244 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13245 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13246 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13247 (EmacsApp-cursor_blink_handler): Remove declaration.
13248 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13249 match 01 Feb 2008 changes in xterm.c.
13250 (ns_read_socket): Add cast to avoid warning.
13251 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13252 GNUstep.
13253
132542008-08-20 Chong Yidong <cyd@stupidchicken.com>
13255
13256 * xselect.c (x_get_foreign_selection): Return nil if desired
13257 selection could not be obtained, instead of signalling an error.
13258
132592008-08-20 David Reitter <david.reitter@gmail.com>
13260
13261 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13262 * nsterm.m: Remove ns-specific code for cursor blinking.
13263 (ns_draw_window_cursor): Clear cursor properly rather than
13264 redrawing the area. Respect width of bar cursors.
13265 These changes enable the use of generic blink-cursor-mode and
13266 generic cursor types in NS and support smooth cursor movements (do
13267 not blink off after command).
13268 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13269 Nextstep, too.
13270
132712008-08-19 Kenichi Handa <handa@m17n.org>
13272
13273 * font.c (Vfont_log_deferred): New variable.
13274 (font_add_log): Check Vfont_log_deferred.
13275 (font_deferred_log): New function.
13276
13277 * font.h (font_deferred_log): Extern it.
13278
13279 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13280 for sorting.
13281 (face_for_char): Use deferred log.
13282
132832008-08-18 Kenichi Handa <handa@m17n.org>
13284
13285 * fontset.c (face_for_char): Add font log.
13286
13287 * font.c (font_add_log): Add the font properties :script, :lang,
13288 and :otf in the log.
13289
132902008-08-17 Chong Yidong <cyd@stupidchicken.com>
13291
13292 * xdisp.c: Remove dead code.
13293 (handle_invisible_prop, next_overlay_string): Defer call to
13294 setup_for_ellipsis.
13295 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13296
132972008-08-15 Chong Yidong <cyd@stupidchicken.com>
13298
13299 * xfaces.c (lookup_derived_face): Properly handle possible zero
13300 return value of get_lface_attributes.
13301 (merge_faces): Don't tell lookup_derived_face to signal an error
13302 if face is not found.
13303
13304 * dired.c (Fdirectory_files): Doc fix.
13305
13306 * process.c (make_process): Initialize kill_without_query struct
13307 member.
13308
133092008-08-15 Eli Zaretskii <eliz@gnu.org>
13310
13311 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13312 Alternative calculation of totphys for Visual Studio 6.
13313
13314 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13315
13316 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13317 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13318 All users changed.
13319 (stat): Only root directory passed to GetDriveType. Allow RAM
13320 disk as well as local fixed disk when w32-get-true-file-attributes
13321 is set to `local'.
13322 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13323 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13324 (w32_cached_id, w32_add_to_cache): New functions.
13325 (get_name_and_id): Look account names in the cache before calling
13326 lookup_account_sid.
13327 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13328 New initialization flags.
13329 (globals_of_w32): Initialize them to zero.
13330 (w32_system_process_attributes): Use w32_cached_id and
13331 w32_add_to_cache.
13332
133332008-08-14 Lawrence Mitchell <wence@gmx.li>
13334
13335 * lread.c (Fread_char, Fread_char_exclusive): If no character
13336 event is read before timeout is reached, return nil, rather than
13337 converting to a number.
13338
133392008-08-14 Chong Yidong <cyd@stupidchicken.com>
13340
13341 * fns.c (use_dialog_box): Doc fix.
13342
13343 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13344 on OS X.
13345
133462008-08-13 Chong Yidong <cyd@stupidchicken.com>
13347
13348 * frame.c (Qns_parse_geometry): New var.
13349 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13350
133512008-08-11 Chong Yidong <cyd@stupidchicken.com>
13352
13353 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13354 space character in calculating tabs.
13355
133562008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13357
13358 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13359
133602008-08-10 Glenn Morris <rgm@gnu.org>
13361
13362 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13363 silence gcc "limited range of data type" warnings in some
13364 make_fixnum_or_float calls.
13365
133662008-08-09 Eli Zaretskii <eliz@gnu.org>
13367
13368 * w32.c (w32_system_process_attributes): If the process does not
13369 exist, return nil.
13370
13371 * w32.c: Include thelp32.h, psapi.h and coding.h.
13372 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13373 declarations.
13374 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13375 (Process32Next_Proc): New typedefs.
13376 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13377 (g_b_init_process32_next, g_b_init_open_thread_token)
13378 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13379 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13380 (g_b_init_get_process_working_set_size)
13381 (g_b_init_global_memory_status_ex): New static variables.
13382 (globals_of_w32): Initialize them.
13383 (create_toolhelp32_snapshot, process32_first, process32_next)
13384 (open_thread_token, impersonate_self, revert_to_self)
13385 (get_process_memory_info, get_process_working_set_size)
13386 (global_memory_status, global_memory_status_ex): New wrapper
13387 functions.
13388 (w32_list_system_processes, w32_system_process_attributes)
13389 (enable_privilege, restore_privilege, ltime, process_times):
13390 New functions.
13391 (convert_time_raw): New function.
13392 (convert_time): Remove conversion of FILETIME into time in 100
13393 nsec units, call convert_time_raw instead.
13394
13395 * process.h (w32_list_system_processes, w32_system_process_attributes):
13396 Add prototypes.
13397 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13398 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13399 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13400 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13401
13402 * process.c (Fsystem_process_attributes): Doc fix.
13403
134042008-08-08 Chong Yidong <cyd@stupidchicken.com>
13405
13406 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13407 a continued multi-char glyph; if so, advance to the actual glyph.
13408
134092008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13410
13411 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13412
13413 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13414 (.m.o): Use it.
13415 * config.in: Regenerate.
13416
134172008-08-07 Chong Yidong <cyd@stupidchicken.com>
13418
13419 * xdisp.c (redisplay_window): Revert last change.
13420 (try_window): Check bottom scroll margin too.
13421
134222008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13423
13424 * config.in: Regenerate.
13425
13426 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13427 -list-load-path-shadows'.
13428 (nsgui.h): Reduce number of things depending on it.
13429
134302008-08-06 Chong Yidong <cyd@stupidchicken.com>
13431
13432 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13433 instead of window-end which does the wrong thing at eob.
13434 (try_cursor_movement): Minor optimization.
13435 (redisplay_window): If scroll margin is defined, don't assume
13436 window doesn't need scrolling.
13437
134382008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13439
13440 * config.in: Regenerate.
13441
13442 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13443 (mostlyclean): Don't delete *.d under NS.
13444
13445 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13446
134472008-08-06 Kenichi Handa <handa@m17n.org>
13448
13449 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13450
134512008-08-06 Andreas Schwab <schwab@suse.de>
13452
13453 * config.in: Regenerate.
13454
134552008-08-05 Chong Yidong <cyd@stupidchicken.com>
13456
13457 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13458 forcing a window start.
13459
13460 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13461 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13462
134632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13464
13465 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13466 argument.
13467
134682008-08-05 Juanma Barranquero <lekktu@gmail.com>
13469
13470 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13471 <scroll-down-aggressively, before-change-functions>:
13472 <after-change-functions>: Reflow docstrings.
13473
134742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13475 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13476
13477 Dock menu customization, based on a patch by Ken Raeburn, plus some
13478 other fixes.
13479 * nsmenu.m (dockMenu): New variable.
13480 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13481
13482 * nsterm.h (dockMenu): Declare.
13483
13484 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13485 (ns_term_init): Initialize dockMenu.
13486 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13487 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13488 left.
13489
13490 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13491
134922008-08-04 Chong Yidong <cyd@stupidchicken.com>
13493
13494 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13495
13496 * config.in: Regenerate.
13497
134982008-08-04 Seiji Zenitani <zenitani@mac.com>
13499
13500 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13501
135022008-08-04 Chong Yidong <cyd@stupidchicken.com>
13503
13504 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13505
135062008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13507
13508 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13509
13510 * keyboard.h: Comment an #endif.
13511
13512 * lisp.h (have_menus_p): Adjust comment.
13513
13514 * menu.c (find_and_return_menu_selection): Fix comparison with
13515 client_data.
13516
13517 * nsmenu.m (popup_activated_flag): New variable.
13518 (popup_activated): New function.
13519 (menu-or-popup-active-p): New exported lisp definition.
13520 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13521 when popup done.
13522 (ns_popup_dialog): Set popup_activated_flag.
13523
13524 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13525 version for GNUstep (handled by conditional typedef in nsterm.m).
13526 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13527 in rgb.txt).
13528
13529 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13530
13531 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13532
13533 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13534
13535 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13536 shortcircuit if popup_activated like GTK and X toolkit.
13537
13538 * m/inter386.h: Change DARWIN to DARWIN_OS.
13539
13540 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13541 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13542 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13543 comment on NO_SOCK_SIGIO.
13544
135452008-08-03 Chong Yidong <cyd@stupidchicken.com>
13546
13547 * nsterm.m (windowDidResize): Remove stopModal call.
13548
135492008-08-03 Andreas Schwab <schwab@suse.de>
13550
13551 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13552 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13553
135542008-08-02 Chong Yidong <cyd@stupidchicken.com>
13555
13556 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13557 Don't use uninitialized pointer variable when using getrlimit.
13558
135592008-08-02 Jason Rumney <jasonr@gnu.org>
13560
13561 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13562
135632008-08-02 Eli Zaretskii <eliz@gnu.org>
13564
13565 * alloc.c (NSTATICS): Bump to 0x640.
13566
13567 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13568
13569 * lisp.h: Add prototype for directory_files_internal.
13570
13571 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13572 New functions.
13573 (syms_of_process): Defsubr them. Add initializations for various
13574 Q* symbols used in procfs_system_process_attributes.
13575 (procfs_list_system_processes, procfs_system_process_attributes)
13576 [HAVE_PROCFS]: New functions.
13577 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13578 (procfs_get_total_memory): New functions.
13579
135802008-08-01 Juanma Barranquero <lekktu@gmail.com>
13581
13582 * xfaces.c (Fx_load_color_file): Fix previous change;
13583 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13584
135852008-08-01 Michael Albinus <michael.albinus@gmx.de>
13586
13587 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13588
135892008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13590
13591 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13592
135932008-08-01 Chong Yidong <cyd@stupidchicken.com>
13594
13595 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13596
13597 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13598 define NSApplicationDelegateReplySuccess.
13599 (EmacsView -converstationIdentifier): Use long instead of
13600 NSInteger for GNUstep, since it doesn't have NSInteger.
13601
13602 * xmenu.c: Revert last change.
13603
13604 * keyboard.h: Fix last change.
13605
136062008-08-01 Juanma Barranquero <lekktu@gmail.com>
13607
13608 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13609 on Windows.
13610
136112008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13612
13613 Warning clearing and clean-up in NS port.
13614 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13615 Add prototypes.
13616 * nsgui.h (FACE_DEFAULT): Remove, unused.
13617 (XGCValues): Change colors to unsigned long.
13618 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13619 nsterm.m.
13620 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13621 (ns_list_fonts): Remove, unused.
13622 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13623 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13624 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13625 (nsfont_draw): Compare face colors to 0, not nil.
13626 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13627 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13628 (-addSubmenuWithTitle:): Use NSMenuItem class.
13629 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13630 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13631 (ns_clip_to_row): Make gc arg a BOOL.
13632 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13633 ns_clip_to_row() call.
13634 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13635 used). Cast FRAME_FONT assignments.
13636 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13637 (ns_string_to_lispmod): Change arg to const char.
13638 (ns_term_init): Use NSMenuItem class.
13639 (EmacsApp -openFile:): Move to different section of file.
13640 (EmacsApp -application:openFiles:): Don't return a value, call
13641 -replyToOpenOrPrint:.
13642 (EmacsView -keyDown:): Fix up cast.
13643 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13644 (EmacsView -menuDown:): Cast tag in call to
13645 find_and_call_menu_selection().
13646 (ns_list_fonts): Remove, unused.
13647 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13648 (ns_fontname_to_xlfd): Make static.
13649 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13650 Remove prototypes (now in keyboard.h).
13651 (next_menubar_widget_id): Remove, unused.
13652 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13653 Remove prototypes (now in keyboard.h).
13654 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13655
136562008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13657
13658 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13659 (floatfns.o): Depend on syssignal.h.
13660 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13661
13662 * systty.h: Fix previous change that removed BSD_TERMIOS.
13663 Add comments to #ifdefs.
13664
136652008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13666
13667 * w32fns.c (w32-load-color-file): Remove.
13668 (x-open-connection): Use renamed Fx_load_color_file.
13669 * xfaces.c (x-load-color-file): Add.
13670 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13671 Emacs.clr.
13672 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13673
136742008-07-31 Michael Albinus <michael.albinus@gmx.de>
13675
13676 * dbusbind.c (Fdbus_call_method_asynchronously)
13677 (Fdbus_method_error_internal): New defuns.
13678 (xd_read_message): Handle also reply messages.
13679 (Vdbus_registered_functions_table): Extend docstring.
13680
136812008-07-31 Juanma Barranquero <lekktu@gmail.com>
13682
13683 * keyboard.c (gobble_input): Fix previous change.
13684
136852008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13686
13687 * bitmaps/README:
13688 * xfns.c:
13689 * termcap.c:
13690 * term.c:
13691 * syswait.h:
13692 * systty.h:
13693 * systime.h:
13694 * syssignal.h:
13695 * sysdep.c:
13696 * process.h:
13697 * process.c:
13698 * print.c:
13699 * ndir.h:
13700 * lread.c:
13701 * keyboard.c:
13702 * getpagesize.h:
13703 * floatfns.c:
13704 * fileio.c:
13705 * emacs.c:
13706 * doc.c:
13707 * dispnew.c:
13708 * dired.c:
13709 * data.c:
13710 * callproc.c:
13711 * buffer.c:
13712 * README:
13713 * Makefile.in:
13714 * s/template.h:
13715 * s/msdos.h:
13716 * m/vax.h: Remove VMS support.
13717 * s/vms.h:
13718 * vlimit.h:
13719 * uaf.h:
13720 * temacs.opt:
13721 * param.h:
13722 * ioctl.h: Remove file.
13723
137242008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13725
13726 * s/ms-w32.h (MULTI_KBOARD): Remove.
13727 * xterm.c:
13728 * xselect.c:
13729 * xfns.c:
13730 * window.c:
13731 * w32term.c:
13732 * w32fns.c:
13733 * terminal.c:
13734 * termhooks.h:
13735 * term.c:
13736 * sysdep.c:
13737 * keyboard.h:
13738 * keyboard.c:
13739 * frame.h:
13740 * frame.c:
13741 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13742 * config.in: Regenerate.
13743
137442008-07-30 Jason Rumney <jasonr@gnu.org>
13745
13746 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13747
13748 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13749 (w32font_open_internal): Get unicode version of textmetrics.
13750 Don't enable or disable glyph indices here.
13751 (w32font_open): Disable use of glyph indices.
13752
13753 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13754
137552008-07-30 Chong Yidong <cyd@stupidchicken.com>
13756
13757 * minibuf.c (Vread_buffer_function): Doc fix.
13758
137592008-07-30 John Paul Wallington <jpw@pobox.com>
13760
13761 * minibuf.c (read_buffer_completion_ignore_case): New var.
13762 (Fread_buffer): Use it.
13763
137642008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13765
13766 * systty.h (sensemode): Remove empty #if. Remove reference to
13767 BSD_TERMIOS, unused.
13768
13769 * sysdep.c: Remove reference to DGUX.
13770 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13771
13772 * config.in: Regenerate.
13773
137742008-07-30 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13777
137782008-07-29 Jason Rumney <jasonr@gnu.org>
13779
13780 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13781 is populated.
13782 (uniscribe_encode_char): Always use uniscribe.
13783 Avoid using context if cache is populated.
13784
137852008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13786
13787 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13788 open menu.
13789
13790 * gtkutil.c (menu_nav_ended): Remove.
13791 (create_menus): Remove signal connect for menu_nav_ended.
13792
137932008-07-28 Chong Yidong <cyd@stupidchicken.com>
13794
13795 * xdisp.c (redisplay_window): Check return value of
13796 compute_window_start_on_continuation_line before forcing a window
13797 start.
13798
137992008-07-28 Jason Rumney <jasonr@gnu.org>
13800
13801 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13802
13803 * w32term.c (w32_enable_unicode_output, cleartype_active):
13804 Remove obsolete display options.
13805 (x_draw_glyph_string_background): Don't use old cleartype_active
13806 workaround.
13807 (w32_initialize): Remove cleartype_active initialization.
13808 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13809
138102008-07-28 Andreas Schwab <schwab@suse.de>
13811
13812 * lisp.h (init_weak_hash_tables, syms_of_font)
13813 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13814 (remove_hash_entry): Don't declare.
13815 * eval.c (maybe_call_debugger): Make static and move before use.
13816 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13817 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13818 * xterm.h (x_set_frame_alpha): Declare.
13819
138202008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13821
13822 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13823 (create_menus): Connect selection-done to menu_nav_ended.
13824
138252008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13826
13827 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13828 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13829 parameter with read of 'alpha' one.
13830 (Qns_frame_parameter): Remove.
5582fbc7 13831 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13832 (next-selection-coding-system, Vselection_coding_system)
13833 (Vnext_selection_coding_system): Drop.
13834
138352008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13836
13837 * nsfns.m (do-applescript, do_applescript): Rename to
13838 ns-do-applescript, ns_do_applescript, and move within file.
13839
138402008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13841
13842 Remove support for Mac Carbon.
13843 * mactoolbox.c:
13844 * macterm.h:
13845 * macterm.c:
13846 * macselect.c:
13847 * macmenu.c:
13848 * macgui.h:
13849 * macfns.c:
13850 * mac.c: Remove file.
13851 * s/darwin.h:
13852 * m/intel386.h:
13853 * xfaces.c:
13854 * xdisp.c:
13855 * window.c:
13856 * tparam.c:
13857 * termhooks.h:
13858 * termcap.c:
13859 * term.c:
13860 * syssignal.h:
13861 * sysselect.h:
13862 * sysdep.c:
13863 * process.c:
13864 * lread.c:
13865 * lisp.h:
13866 * keyboard.c:
13867 * image.c:
13868 * fringe.c:
13869 * frame.h:
13870 * frame.c:
13871 * fontset.c:
13872 * font.h:
13873 * font.c:
13874 * fns.c:
13875 * fileio.c:
13876 * emacs.c:
13877 * dispnew.c:
13878 * dispextern.h:
13879 * config.in:
13880 * atimer.c:
2ae37cf0 13881 * Makefile.in: Remove code for Carbon.
aac0c6e3 13882
f0131492 138832008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13884
13885 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13886
138872008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13888
13889 * macterm.h (kCGBitmapByteOrder32Host): New define for
13890 non-universal SDKs.
13891
13892 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13893 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13894
13895 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13896 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13897
138982008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13899
13900 * w32inevt.c: Include dispextern.h.
13901
139022008-07-26 Andreas Schwab <schwab@suse.de>
13903
13904 * print.c (print_object): Fix off-by-one in last change.
13905
139062008-07-25 Juanma Barranquero <lekktu@gmail.com>
13907
13908 * term.c (syms_of_term): Don't initialize default_orig_pair,
13909 default_set_foreground and default_set_background on Windows.
13910
139112008-07-25 Jason Rumney <jasonr@gnu.org>
13912
13913 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13914 ScriptItemize. Clean up return value checking. Remove unused
13915 variables.
13916 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13917 shaping engine.
13918
13919 * w32font.c (w32font_has_char): Handle the case where we can't
13920 determine the script for a character.
13921
139222008-07-25 Chong Yidong <cyd@stupidchicken.com>
13923
13924 * term.c (syms_of_term): Initialize default_orig_pair,
13925 default_set_foreground, and default_set_background.
13926
13927 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13928 clash (bug#86).
13929 (getloadavg): Callers changed.
13930
13931 * image.c (svg_load_image): Fix last change.
13932 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13933 image size is valid. Use g_object_unref instead of deprecated
13934 rsvg_handle_free to free rsvg handle.
13935 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13936
139372008-07-25 Jason Rumney <jasonr@gnu.org>
13938
13939 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13940 surrogates before looking up glyph index.
13941 (w32font_text_extents): Encode as surrogates if falling back to
13942 functions that need UTF-16 wide chars.
13943
13944 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13945 BMP as surrogates before looking up glyph index.
13946
139472008-07-25 Chong Yidong <cyd@stupidchicken.com>
13948
13949 * image.c (svg_load_image): Check for failure in return value of
13950 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13951
139522008-07-25 Jason Rumney <jasonr@gnu.org>
13953
13954 * w32font.c (Fx_select_font): Reverse sense of second arg.
13955
139562008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13957
13958 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13959 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13960
13961 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13962 (PURESIZE): Use it.
13963
139642008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13965
13966 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13967 * m/alpha.h (TEXT_END):
13968 * m/ibmrs6000.h (TEXT_END):
13969 * m/macppc.h (TEXT_END):
13970 * s/darwin.h (TEXT_END):
13971 * s/msdos.h (TEXT_END): Remove, unused.
13972 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13973 * s/cygwin.h: Remove comment.
13974
13975 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13976 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13977 * m/intel386.h (DOT_GLOBAL_START):
13978 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13979 (USG): Remove, file not used on USG platforms.
13980
13981 * Makefile.in (HAVE_X11): Remove empty #else.
13982
139832008-07-24 Andreas Schwab <schwab@suse.de>
13984
13985 * fileio.c (Finsert_file_contents): Properly adjust undo list
13986 after format conversion.
13987
139882008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13989
13990 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13991 (menu_nav_ended): Remove.
13992 (create_menus): Remove signal connect for menu_nav_ended.
13993 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13994 create_menus.
13995 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13996
139972008-07-23 Jason Rumney <jasonr@gnu.org>
13998
13999 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14000 with opened font.
14001 (w32font_open): Set font type to gdi.
14002
14003 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14004
140052008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14006
14007 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14008 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14009 defines it.
14010 * unexec.c (ADDR_CORRECT): Define unconditionally.
14011
14012 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14013
14014 * unexec.c: Remove code depending on !COFF and USG, the file is
14015 not used for such systems.
14016
14017 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14018 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14019 (LD_SWITCH_SYSTEM_1): Remove, update users.
14020
14021 * s/darwin.h (DATA_END):
14022 * m/intel386.h (DATA_END):
14023 * m/ibmrs6000.h (DATA_END):
14024 * m/alpha.h (DATA_END): Remove, unused.
14025
14026 * config.in: Regenerate.
14027 * s/ms-w32.h (subprocesses): Define unconditionally.
14028 * s/template.h (subprocesses): Update comment.
14029 * s/vms.h (subprocesses):
14030 * s/usg5-4.h (subprocesses):
14031 * s/hpux10-20.h (subprocesses):
14032 * s/gnu-linux.h (subprocesses):
14033 * s/cygwin.h (subprocesses):
14034 * s/bsd-common.h (subprocesses):
14035 * s/aix4-2.h (subprocesses):
14036 * s/darwin.h (subprocesses): Do not define, defined by default now.
14037
14038 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14039 Remove all references.
14040 (temacs): Add GNUstep specific ld flags.
14041
14042 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14043 similarly to what X does.
14044
140452008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14046
14047 * nsfns.m (x-list-fonts): Remove.
14048 (syms_of_nsfns): Drop the x-list-fonts declaration.
14049 * nsterm.m: Get rid of remaining "//" comments.
14050
140512008-07-22 Chong Yidong <cyd@stupidchicken.com>
14052
14053 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14054
14055 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14056 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14057 (Fns_own_selection_internal, Fx_disown_selection_internal)
14058 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14059
14060 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14061 ... */' style of docstrings. Doc fixes.
14062
140632008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14064
14065 * terminfo.c (UP, BC, PC): Undo previous change.
14066
14067 * nsfns.m: Rename ns prefixed functions/variables to the
14068 corresponding x versions. Update references.
14069
140702008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14071
14072 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14073
140742008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14075
14076 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14077 Remove forwarding functions.
14078 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14079 non-static.
14080 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14081 non-static.
14082 (ns_frame_parm_handlers): Use the new names.
14083 (syms_of_nsfns): Move to the end of file.
14084
14085 * nsterm.m (syms_of_nsterm): Move to the end of file.
14086
14087 * dispnew.c (init_display): Remove code for X10.
14088
140892008-07-22 Jason Rumney <jasonr@gnu.org>
14090
14091 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14092 bare drive.
14093
140942008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14095
14096 * nsterm.m (syms_of_nsterm): Remove debugging println.
14097
140982008-07-22 David Reitter <david.reitter@gmail.com>
14099
14100 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14101 Carbon implementation of the same functionality: execute arbitrary
14102 AppleScript code.
14103
141042008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14105
14106 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14107 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14108 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14109 (Fx_display_mm_height, Fx_display_mm_width)
14110 (Fx_display_backing_store, Fx_display_visual_class)
14111 (Fx_display_save_under, Fx_open_connection)
14112 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14113 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14114 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14115 (Fx_display_pixel_width, Fx_display_pixel_height)
14116 (Fx_display_usable_bounds, Fx_display_planes)
14117 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14118 ... */' style of docstrings.
14119
141202008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14121
14122 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14123 on this platform.
14124 (mips):
14125 * m/iris4d.h (mips): Do not define.
14126 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14127
14128 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14129
14130 * image.c:
14131 * nsfns.m:
14132 * nsselect.m:
14133 * nsterm.h:
14134 * nsterm.m: Rename ns prefixed functions/variables to the
14135 corresponding x versions. Update references.
14136
14137 * m/ibms390x.h (NO_REMAP): Do not undefine.
14138
14139 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14140
141412008-07-21 Chong Yidong <cyd@stupidchicken.com>
14142
14143 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14144 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14145 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14146 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14147 (Fns_display_mm_height, Fns_display_mm_width)
14148 (Fns_display_backing_store, Fns_display_visual_class)
14149 (Fns_display_save_under, Fns_open_connection)
14150 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14151 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14152 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14153 (Fns_display_pixel_width, Fns_display_pixel_height)
14154 (Fns_display_usable_bounds, Fx_display_planes)
14155 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14156
141572008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14158
14159 * print.c (print_object): Check print_depth before searching for
14160 circularities.
14161
141622008-07-21 Michael Albinus <michael.albinus@gmx.de>
14163
14164 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14165 only sprintf.
14166
141672008-07-21 Kenichi Handa <handa@m17n.org>
14168
14169 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14170
141712008-07-20 Andreas Schwab <schwab@suse.de>
14172
14173 * syntax.c (find_start_pos, find_start_value)
14174 (find_start_value_byte, find_start_begv, find_defun_start)
14175 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14176
141772008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14178
14179 * s/sol2-3.h: Insert contents of s/sol2.h.
14180 (LD_SWITCH_SYSTEM): Remove redundant definition.
14181 * s/sol2.h: Remove, unused.
14182
141832008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14184
14185 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14186
141872008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14188
14189 * Makefile.in (ns_appdir): Fix typo in find command.
14190
141912008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14192
14193 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14194
14195 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14196 added not supported anymore.
14197
14198 * s/usg5-4-2.h (LIBS_SYSTEM):
14199 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14200
14201 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14202 * s/lynxos.h (GETPGRP_NO_ARG):
14203 * s/hpux10-20.h (NO_SIOCTL_H):
14204 * s/gnu.h (GETPGRP_NO_ARG):
14205 * s/gnu-linux.h (NO_SIOCTL_H):
14206 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14207 * s/cygwin.h (GETPGRP_NO_ARG):
14208 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14209 (C_DEBUG_SWITCH): Remove duplicate definition.
14210
14211 * m/ibms390.h: Remove boilerplate comments.
14212
14213 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14214
14215 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14216 (wait_reading_process_output): Remove code for SunOS, platform not
14217 supported anymore. Use SOLARIS2 instead of sun.
14218
142192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14220
14221 * font.c (font_open_by_name): Under NS, default lface height to zero.
14222 (font_open_for_lface): Under NS, set size based on frame fontsize.
14223 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14224 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14225
142262008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14227
14228 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14229 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14230 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14231 YES/NO.
14232 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14233 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14234 * Makefile.in (clean): Clear out build destination dir.
14235
142362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14237
14238 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14239 xterm, xselect.
14240 * lisp.h: Remove declaration of hash_remove.
14241 * nsgui.h: Remove redefinitions of hash_remove.
14242 * fns.c (hash_remove): Rename to hash_remove_from_table.
14243
142442008-07-19 Seiji Zenitani <zenitani@mac.com>
14245
14246 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14247 strdup() the family UTF8String before modifying it.
14248
142492008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14250
14251 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14252 NS_FACE_BACKGROUND with 0 instead of nil.
14253 * nsfont.m (nsfont_draw): Same.
14254
142552008-07-19 Chong Yidong <cyd@stupidchicken.com>
14256
14257 * nsfns.m (ns_set_background_color): Fix crash.
14258
142592008-07-18 Chong Yidong <cyd@stupidchicken.com>
14260
14261 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14262
142632008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14264
14265 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14266
142672008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14268
14269 * gtkutil.c: Include <config.h> instead of "config.h".
14270
14271 * lisp.h (Foverlay_buffer): Add EXFUN.
14272
14273 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14274 child process to complete child_setup. Undo 2005-09-21 change.
14275
14276 * s/darwin.h: Mention setsid after vfork.
14277
142782008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14279
14280 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14281 Depend on macgui.h.
14282
14283 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14284 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14285
14286 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14287 and f19.
14288 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14289
14290 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14291 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14292 Remove enumerators.
14293
14294 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14295 Check if FACE_FROM_ID returns NULL.
14296
142972008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14298
14299 * w32inevt.c (change_frame_size): Remove extern declaration.
14300 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14301 change_frame_size.
14302
143032008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14304
14305 * getloadavg.c: Revert last change (2008-07-15).
14306
143072008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14308
14309 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14310 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14311 from configure.
14312
143132008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14314
14315 * s/sol2.h:
14316 * s/sol2-4.h: Reorganize conditionals.
14317
14318 * ecrt0.c: Remove code depending on m68000, not used anymore.
14319
14320 * fns.c (hash_remove): Make static.
14321 * lisp.h (hash_remove): Don't prototype.
14322
14323 * m/ibmrs6000.h:
14324 * m/ibms390x.h:
14325 * m/macppc.h: Remove boilerplate comments.
14326
14327 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14328 Solaris, which does not need them.
14329
14330 * m/vax.h: Remove comments about unsupported systems.
14331
14332 * s/darwin.h: Reorganize ifdefs.
14333
143342008-07-17 Andreas Schwab <schwab@suse.de>
14335
14336 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14337
143382008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14339
14340 Use SDATA. Follow coding convention of placing operators at
14341 beginning of next line rather than end of previous line, and placing
14342 spaces around infix operators.
14343
14344 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14345 in case it was defined already.
14346 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14347 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14348 ns_default.
14349 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14350 Lisp_Objects.
14351 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14352 (ns_defined_color, ns_color_to_lisp): Declare.
14353 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14354 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14355 it's accepted even with USE_LISP_UNION_TYPE.
14356 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14357 (update_frame_tool_bar): Remove apparently obsolete tests for
14358 non-integerness of f->tool_bar_lines.
14359 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14360 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14361 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14362 (nsfont_open): Don't confuse NULL for Qnil.
14363 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14364 * menu.h (find_and_call_menu_selection):
14365 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14366 (find_and_return_menu_selection): Always return something.
14367 * frame.h: Include dispextern.h for Display_Info.
14368 (display_x_get_resource): Declare.
14369
143702008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14371
14372 * syntax.c: Remove stdio.h include accidentally introduced in
14373 Emacs.app commit.
14374 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14375 NS_IMPL_COCOA.
14376 * keyboard.c (handle_async_input, input_available_signal): Remove
14377 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14378
143792008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14380
14381 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14382 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14383 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14384 Use SDATA.
14385
14386 * keymap.c: Remove all NS-specific code.
14387 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14388 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14389 where_is_preferred_modifier, return a different value depending on how
14390 preferred is the binding.
14391 (where_is_internal): Adjust accordingly.
14392 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14393 Adjust to new preferred_sequence_p.
14394 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14395 * keyboard.c (parse_solitary_modifier): Not static any more.
14396 * keyboard.h (parse_solitary_modifier): Declare.
14397
143982008-07-16 Andreas Schwab <schwab@suse.de>
14399
14400 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14401 of easymenu.
14402
144032008-07-16 Chong Yidong <cyd@stupidchicken.com>
14404
14405 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14406 that we don't move off the line.
14407
144082008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14409
14410 * keyboard.c (Qsuper): Remove.
14411 (parse_menu_item): Don't call where_is_internal specially for NS.
14412
144132008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14414
14415 * s/gnu-linux.h: Remove boilerplate comments.
14416
14417 * m/alpha.h (__ELF__): Consolidate conditions.
14418
14419 * m/m68k.h (linux): Use GNU_LINUX instead.
14420 Remove boilerplate comments.
14421
14422 * m/intel386.h: Undo refactoring from previous change.
14423 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14424 too, remove dead code.
14425 (linux): Use GNU_LINUX instead.
14426
144272008-07-16 Jason Rumney <jasonr@gnu.org>
14428
14429 * w32gui.h: Repeat 26 June changes lost by last change.
14430
144312008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14432
14433 * systty.h: Remove code for Aix on 386, unsupported platform.
14434
14435 * s/ms-w32.h: Remove boilerplate comments.
14436 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14437
14438 * s/gnu-linux.h (TERM): Remove support.
14439 (HAVE_SYSVIPC): Remove, unused.
14440 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14441 for this system.
14442
14443 * process.c: Remove support for IRIS, unused.
14444 Remove support for TERM, not relevant anymore.
14445
14446 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14447 used with the definition.
14448
14449 * s/aix4-2.h (static): Do not undef.
14450
14451 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14452 only used on Aix.
14453 (HAVE_SYSVIPC): Remove, unused.
14454
14455 * m/hp800.h (CANNOT_DUMP): Do not undef.
14456
14457 * m/alpha.h: Fix comment.
14458
14459 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14460 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14461 used by this configuration.
14462 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14463 * unexec.c: Remove code depending on HPUX and
14464 USG_SHARED_LIBRARIES, not used with this file. Remove code
14465 depending on IRIS, unused. Remove if 0-ed code.
14466
14467 * s/template.h: Remove comments about static.
14468
14469 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14470 Remove if 0-ed code.
14471 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14472 were the same as the default.
14473 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14474 Remove boilerplate comments.
14475 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14476 (HAVE_SYSVIPC): Remove, unused.
14477 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14478
14479 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14480 Remove boilerplate comments.
14481 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14482 Remove boilerplate comments.
14483 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14484 Remove boilerplate comments.
14485 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14486
14487 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14488 USG systems which do not use DATA_SEG_BITS.
14489 Refactor code. Remove boilerplate comments.
14490
14491 * m/ibms390.h:
14492 * m/m68k.h:
14493 * s/bsd-common.h:
14494 * s/cygwin.h:
14495 * s/darwin.h:
14496 * s/freebsd.h:
14497 * s/gnu.h:
14498 * s/msdos.h: Remove boilerplate comments.
14499
14500 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14501 do not use this file.
aac0c6e3
MR
14502 (IRIS_4D): Remove, unused.
14503
14504 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14505 do not use this file.
aac0c6e3
MR
14506 (SIGN_EXTEND_CHAR):
14507 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14508 * unexmips.c: Remove file, unused.
14509
14510 * editfns.c (Fuser_full_name): Replace the only use of
14511 USER_FULL_NAME with its value.
14512 * config.in: Regenerate.
14513
145142008-07-16 David Reitter <david.reitter@gmail.com>
14515
14516 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14517 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14518
145192008-07-16 Glenn Morris <rgm@gnu.org>
14520
14521 * emacs.c (system-type): Doc fix.
14522
145232008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14524
14525 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14526 If the cache doesn't work, let's fix it, rather than work around it.
14527
145282008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14529
14530 * Makefile.in: Correct additions for nsfont.o in last commit.
14531 * nsfont.m: New file (forgot last commit).
14532
145332008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14534
14535 * callproc.c (set_initial_environment): Initialize
14536 Vprocess_environment under CANNOT_DUMP (fixes crash when
14537 batch-compiling for bootstrap).
14538
145392008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14540 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14541
c4cc8b9a
JB
14542 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14543 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14544
145452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14546
14547 Changes and additions for NeXTstep windowing system (Cocoa and
14548 GNUstep) support.
14549
14550 * Makefile.in:
14551 * config.in: Support defines and build commands for NS port.
14552 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14553 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14554 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14555 windowing.
14556 (struct face): Add synth_ital field.
14557 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14558 (init_display): Initialize Vinitial_window_system to "ns" when so
14559 compiled.
14560 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14561 (display_arg): Use under NS.
14562 (main): Under NS, allocate autorelease pool and handle command line
14563 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14564 (standard_args): Add NS-specific args.
14565 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14566 * font.c (DEFAULT_ENCODING): New variable.
14567 (font_find_for_lface): Use it.
14568 (syms_of_font): Load syms_of_nsfont under NS.
14569 * font.h: Declare nsfont_driver when compiled under NS.
14570 * fontset.c: When compiling under NS, include nsterm.h.
14571 (fontset_from_font): Autoconstruct fontset under NS.
14572 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14573 symbol, document and use it.
14574 (do_switch_frame): When for_deletion under Cocoa, add
14575 Fraise_frame(Qnil).
14576 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14577 (x_get_arg): Allow "yes" and "no" as boolean values.
14578 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14579 Qright under Cocoa.
14580 (focus-follows-mouse): Default to 0 under NS.
14581 * frame.h (enum output_method): Add output_ns.
14582 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14583 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14584 (FRAME_WINDOW_P): NS-specific definition.
14585 * fringe.c (max_used_fringe_bitmap): Make public.
14586 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14587 (getloadavg): Use NeXT code under descendant OS's.
14588 * image.c (includes and header section, x_create_bitmap_from_data)
14589 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14590 (image_background_transparent, x_clear_image_1)
14591 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14592 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14593 (x_to_xcolors, x_from_xcolors, x_disable_image)
14594 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14595 other GUIs, including XPM support using code originally written for
14596 Carbon GUI.
14597 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14598 using NS API.
14599 (image_ascent): Use font metrics macros instead of direct struct field
14600 access.
14601 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14602 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14603 Also, handle NS as GTK for menu bar purposes.
14604 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14605 toolkit where they differ.
14606 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14607 use cachelist, still needed under NS.
14608 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14609 (struct widget_value): Define it here for menu.c.
14610 * keymap.c (includes): Include modifier internals.
14611 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14612 NS.
14613 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14614 support for preferring sequences using certain modifiers, specified by
14615 the FIRSTONLY argument.
14616 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14617 under NS GNUstep implementation.
14618 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14619 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14620 * menu.c: Include nsterm.h under NS.
14621 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14622 (free_menubar_widget_tree_value, update_submenu_strings)
14623 (find_and_call_menu_selection): Treat NS as X and NT.
14624 (find_and_return_menu_selection): New function, used for popup menus.
14625 * nsgui.h:
14626 * nsterm.h:
14627 * nsfns.m:
14628 * nsimage.m:
14629 * nsmenu.m:
14630 * nsselect.m:
14631 * nsterm.m: New files.
14632 * process.c (wait_reading_process_output): Under NS, call ns_select()
14633 instead of plain select().
14634 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14635 beginning of buffer.
14636 * sysselect.h (init_process): Rename when compiling under Cocoa to
14637 avoid name conflict.
14638 * termhooks.h (display_info): Add ns_display_info to union.
14639 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14640 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14641 COCOA environment.
14642 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14643 unexec() signature. (Note, this will dump, but the resulting file
14644 crashes; unexosx is used instead; keeping around for reference and
14645 possible aid in getting dump working under GNUstep.)
14646 * w32gui.h (button_type, widget_value): Remove definitions (now in
14647 keyboard.h).
14648 * window.c: Include nsterm.h when compiling under NS.
14649 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14650 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14651 other GUI windowing systems.
14652 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14653 GTK.
14654 (x_consider_frame_title): Under NS, set icon type and frame
14655 modified-state indicator; use ns_set_name_as_filename() when using
14656 formatted title.
14657 (update_window_cursor): Make public when compiling under NS.
14658 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14659 (hourglass_atimer, Vhourglass_delay
14660 * xfaces.c (header section, init_frame_faces, clear_font_table)
14661 (defined_color, unload_color, x_face_list_fonts)
14662 (prepare_face_for_display): Add NS support parallel to other GUIs.
14663 Emulate GCs like other non-X GUIs.
14664 (split_font_name): Don't lowercase font name under NS.
14665 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14666 under NS.
14667 * s/darwin.h: Add support for compilation under NS.
14668
146692008-07-15 Jason Rumney <jasonr@gnu.org>
14670
14671 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14672 (w32_show_hourglass): Rename from show_hourglass.
14673 (w32_hide_hourglass): Rename from hide_hourglass.
14674 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14675 (Vhourglass_delay): Declare extern.
14676 (hourglass_started): Remove.
14677
14678 * xdisp.c (Vhourglass_delay): Remove static.
14679 (hourglass_started, start_hourglass, cancel_hourglass):
14680 Don't include these versions on WINDOWSNT.
14681
146822008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14683
14684 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14685 variables (formerly in xfns.c).
14686 (show_hourglass, hide_hourglass): New prototypes (same).
14687 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14688 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14689 in xfns.c).
14690 (syms_of_xdisp): Declare/initialize display-hourglass,
14691 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14692 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14693 formerly in xfns.c.
14694 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14695 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14696 (start_hourglass, cancel_hourglass): Remove.
14697 (show_hourglass, hide_hourglass): Remove prototypes and static
14698 modifiers.
14699 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14700 hourglass_atimer, hourglass_shown_p declaration/initialization.
14701 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14702 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14703 (start_hourglass, cancel_hourglass): Remove.
14704 (show_hourglass, hide_hourglass): Remove prototypes and static
14705 modifiers.
14706 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14707 hourglass_atimer, hourglass_shown_p declaration/initialization.
14708 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14709 (DEFAULT_HOURGLASS_DELAY): Remove.
14710 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14711 hourglass_shown_p declaration/initialization.
14712
147132008-07-14 Jason Rumney <jasonr@gnu.org>
14714
14715 * w32fns.c (w32_get_arg): Remove wrapper function.
14716 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14717 directly.
14718 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14719
147202008-07-14 Kenichi Handa <handa@m17n.org>
14721
14722 * xfont.c (xfont_open): Add workaround for X's bug.
14723
147242008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14725
14726 * fontset.c: Include <stdio.h> unconditionally.
14727
147282008-07-13 Michael Albinus <michael.albinus@gmx.de>
14729
14730 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14731 for filtering.
14732
147332008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14734
14735 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14736
14737 * m/macppc.h:
14738 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14739
c4cc8b9a 14740 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14741 (SPECIAL_EMACS_INT):
14742 * m/ia64.h (SPECIAL_EMACS_INT):
14743 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14744 * s/gnu.h (NLIST_STRUCT):
14745 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14746 * s/gnu-linux.h (LINUX):
14747 * s/msdos.h (HAVE_FACES):
14748 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14749
14750 * systty.h:
14751 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14752 anymore.
14753
147542008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14755
14756 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14757 always defined as int.
14758
14759 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14760 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14761 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14762 * s/freebsd.h (HAVE_WAIT_HEADER):
14763 * s/bsd-common.h (HAVE_UNION_WAIT):
14764 * s/aix4-2.h (HAVE_WAIT_HEADER):
14765 * m/mips.h (HAVE_UNION_WAIT):
14766 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14767 (COFF, static): Do not define, they are undefined later in the file.
14768
14769 * process.c (update_status): Don't use a union.
14770 (status_convert):
14771 (sigchld_handler): Use int instead of WAITTYPE.
14772
147732008-07-12 Chong Yidong <cyd@stupidchicken.com>
14774
14775 * indent.c (Fvertical_motion): Restore hscroll before moving to
14776 goal column.
14777
147782008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14779
14780 * lisp.h: Remove left over code.
14781
147822008-07-11 Andreas Schwab <schwab@suse.de>
14783
14784 * lisp.h: Fix logic in last change.
14785
14786 * menu.h: New file.
14787 * menu.c: Include it.
14788 * xmenu.c: Likewise.
14789 * Makefile.in: Update dependencies.
14790
147912008-07-11 Kenichi Handa <handa@m17n.org>
14792
14793 * fontset.c (fontset_from_font): Cancel the previous change.
14794
147952008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14796
14797 * lisp.h:
14798 * w32heap.c:
14799 * emacs.c:
14800 * alloc.c: Replace all references of NO_UNION_TYPE with
14801 USE_LISP_UNION_TYPE.
14802
14803 * m/xtensa.h (NO_UNION_TYPE):
14804 * m/vax.h (NO_UNION_TYPE):
14805 * m/template.h (NO_UNION_TYPE):
14806 * m/sparc.h (NO_UNION_TYPE):
14807 * m/mips.h (NO_UNION_TYPE):
14808 * m/macppc.h (NO_UNION_TYPE):
14809 * m/m68k.h (NO_UNION_TYPE):
14810 * m/iris4d.h (NO_UNION_TYPE):
14811 * m/intel386.h (NO_UNION_TYPE):
14812 * m/ibms390x.h (NO_UNION_TYPE):
14813 * m/ibms390.h (NO_UNION_TYPE):
14814 * m/ibmrs6000.h (NO_UNION_TYPE):
14815 * m/ia64.h (NO_UNION_TYPE):
14816 * m/hp800.h (NO_UNION_TYPE):
14817 * m/arm.h (NO_UNION_TYPE):
14818 * m/amdx86-64.h (NO_UNION_TYPE):
14819 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14820 defining it the same.
14821
148222008-07-10 Chong Yidong <cyd@stupidchicken.com>
14823
14824 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14825
148262008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14827
14828 * fileio.c:
50426a04 14829 * sysdep.c:
aac0c6e3
MR
14830 * systty.h:
14831 * m/ibmrs6000.h:
14832 * m/iris4d.h:
14833 * s/aix4-2.h:
14834 * s/freebsd.h:
14835 * s/gnu-linux.h:
14836 * s/hpux10-20.h:
14837 * s/hpux11.h:
14838 * s/netbsd.h:
14839 * s/sol2-3.h:
14840 * s/sol2-4.h:
14841 * s/sol2.h:
14842 * s/usg5-4.h:
14843 * s/vms.h: Remove references to unused variables.
14844
148452008-07-10 Andreas Schwab <schwab@suse.de>
14846
14847 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14848 pattern before matching the generic family.
14849
148502008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14851
14852 * unexec.c:
14853 * s/vms.h:
14854 * s/usg5-4-2.h:
14855 * s/sol2-5.h:
14856 * s/freebsd.h:
14857 * s/darwin.h: Remove dead code.
14858
14859 * m/template.h:
14860 * m/sparc.h:
14861 * m/mips.h:
14862 * m/m68k.h:
14863 * m/iris4d.h:
14864 * m/intel386.h:
14865 * m/ibms390x.h:
14866 * m/ibms390.h:
14867 * m/ia64.h:
14868 * m/hp800.h:
14869 * m/arm.h:
14870 * m/amdx86-64.h: Remove dead code and references to unused
14871 and compiler defined symbols.
14872
14873 * unexmips.c:
14874 * unexelf.c: Remove references to desupported systems.
14875
14876 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14877
14878 * m/powermac.h: Remove boilerplate comments.
14879 (NO_REMAP): Remove unused definition.
14880
14881 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14882 define them.
14883
148842008-07-10 Kenichi Handa <handa@m17n.org>
14885
14886 * xfont.c (xfont_open): Log the reason of failure.
14887
148882008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14889
14890 * fontset.c (fontset_get_font_group):
14891 * font.c (font_check_otf): Specify argument types.
14892
148932008-07-09 Kenichi Handa <handa@m17n.org>
14894
14895 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14896 non-ASCII char is found.
14897
14898 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14899 (reorder_font_vector): Change the arg preferred_family to font.
14900 Prefer the spec matching with font.
14901 (fontset_get_font_group): New function.
14902 (fontset_find_font): Change the format of an element of a realized
14903 fontset. Use fontset_get_font_group.
14904 (fontset_font): Try the current fontset, the default fontset, the
14905 fallbacks of the current fontset, and the fallbacks of the default
14906 fontset in this order.
14907 (face_for_char): Delete the shortcut to use the current font.
14908 (fontset_from_font): Don't set fonts for Latin in the fontset.
14909
14910 * font.h (font_make_object, font_match_p): Adjust prototypes.
14911
14912 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14913
14914 * font.c (font_make_object): New arg entity and pixelsize.
14915 (font_check_otf_features, font_check_otf): New functions.
14916 (font_match_p): Check :lang, :script, and :otf properties.
14917
14918 * xfont.c (xfont_open): Adjust it for the change of
14919 font_make_object.
14920 (xfont_text_extents): Fix initial setting of metrics.
14921
14922 * ftfont.c (struct ftfont_info): New member index, delete member
14923 fc_charset_idx. Make the member order compatible with struct
14924 xftfont_info.
14925 (fc_charset_table): Change charset names to registry names.
14926 (ftfont_pattern_entity): Delete the args registry and
14927 fc_charset_idx. Change the value of :font-entity property
14928 to (FONTNAME . INDEX). Always set :registry property to
14929 `iso10646-1'.
14930 (struct ftfont_cache_data): New struct.
14931 (ftfont_lookup_cache): New arg for_face.
14932 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14933 (ftfont_driver): Set the member otf_capability.
14934 (ftfont_get_charset): Adjust it for the change of
14935 fc_charset_table.
14936 (OTF_TAG_SYM): New macro.
14937 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14938 for the change of fc_charset_table.
14939 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14940 ftfont_pattern_entity. Add FC_INDEX to objset.
14941 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14942 and ftfont_pattern_entity.
14943 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14944 font_make_object, struct ftfont_info.
14945 (ftfont_has_char): Use ftfont_get_fc_charset.
14946 (ftfont_otf_features, ftfont_otf_capability): New functions.
14947 (ftfont_shape): Use ftfont_get_otf.
14948 (ftfont_text_extents): Fix initial setting of metrics.
14949
14950 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14951 member order compatible with struct ftfont_info.
14952 (xftfont_open): Add FC_CHARSET to the pattern. Set
14953 xftfont_info->ft_size. Don't unlock the face. Check BDF
14954 properties if appropriate.
14955 (xftfont_close): Unlock the face.
14956 (xftfont_anchor_point, xftfont_shape): Deleted.
14957 (syms_of_xftfont): Don't set members anchor_point and shape of
14958 xftfont_driver.
14959
14960 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14961 font_make_object.
14962
14963 * w32font.c (w32font_open): Adjust it for the change of
14964 font_make_object.
14965 (w32font_open_internal): Don't set properties of font_object here.
14966
149672008-07-08 Chong Yidong <cyd@stupidchicken.com>
14968
14969 * macfns.c (x_create_tip_frame):
14970 * w32fns.c (x_create_tip_frame):
14971 * xfns.c (x_create_tip_frame): Pass parameter argument to
14972 face-set-after-frame-default.
14973
14974 * xfaces.c (Finternal_merge_in_global_face): Save merged
14975 attributes for the default face back into the face vector.
14976
149772008-07-08 Andreas Schwab <schwab@suse.de>
14978
14979 * fontset.h: Declare fontset_from_font. Don't declare
14980 new_fontset_from_font and fontset_from_font_name.
14981 * xterm.c: Include "fontset.h".
14982 * Makefile.in (xterm.o): Update dependencies.
14983
149842008-07-08 Glenn Morris <rgm@gnu.org>
14985
14986 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14987 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14988
149892008-07-07 Chong Yidong <cyd@stupidchicken.com>
14990
14991 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14992 (x_set_frame_parameters): Don't bind it.
14993
149942008-07-07 Juanma Barranquero <lekktu@gmail.com>
14995
14996 * w32fns.c (map_w32_filename): Declare extern.
14997
149982008-07-07 Jason Rumney <jasonr@gnu.org>
14999
15000 * w32term.c (WS_EX_LAYERED): Define if not already.
15001
150022008-07-06 Chong Yidong <cyd@stupidchicken.com>
15003
15004 * xfaces.c (set_font_frame_param): Don't try to set the font
15005 parameter if it is still unspecified in the lface.
15006
150072008-07-05 Chong Yidong <cyd@stupidchicken.com>
15008
15009 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15010 face if it didn't already exist.
15011
15012 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15013
150142008-07-05 Andreas Schwab <schwab@suse.de>
15015
15016 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15017
150182008-07-05 Chong Yidong <cyd@stupidchicken.com>
15019
15020 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15021 word-wrapping.
15022 (IT_DISPLAYING_WHITESPACE): New macro.
15023 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15024 when word-wrapping. Simplify word-wrapping logic. Use correct
15025 pixel positions when saving copies of the iterator.
15026 (display_line): Use proper wrap point if the last character on a
15027 line was preceded by whitespace.
15028
150292008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15030
15031 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15032
150332008-07-04 Kenichi Handa <handa@m17n.org>
15034
15035 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15036
15037 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15038
150392008-07-02 Jason Rumney <jasonr@gnu.org>
15040
15041 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 15042 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
15043
15044 * xdisp.c (next_element_from_display_vector): Move assignment out
15045 of if statement.
15046
150472008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15048
15049 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15050
15051 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15052 (syms_of_fileio): Initialize and export them.
15053 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15054
15055 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15056 (Fsystem_move_file_to_trash): New function.
15057 (syms_of_w32fns): Export it to lisp.
15058
150592008-07-01 Jason Rumney <jasonr@gnu.org>
15060
15061 * w32font.c (w32font_text_extents): Don't count overhang as part
15062 of width.
15063
150642008-06-30 Miles Bader <miles@gnu.org>
15065
15066 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15067 Add `avoid_cursor_p' field.
15068
15069 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15070 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15071 (append_glyph, append_composite_glyph, produce_image_glyph)
15072 (append_stretch_glyph): Initialize avoid_cursor_p.
15073 (get_it_property): Rename from `get_line_height_property'.
15074 (x_produce_glyphs): Use get_it_property.
15075 (handle_line_prefix, push_display_prop): New functions.
15076 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15077 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15078 New variables.
15079 (syms_of_xdisp): Initialize them.
15080
150812008-06-30 Kenichi Handa <handa@m17n.org>
15082
15083 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15084 XftDefaultSubstitute (they are called in XftFontMatch).
15085 (xftfont_open): Fix args to ftfont_font_format.
15086
15087 * ftfont.c (fc_charset_table): New member lang.
15088 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 15089 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
15090 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15091 (ftfont_open): Fix args to ftfont_font_format.
15092 (ftfont_font_format): New arg filename.
15093
150942008-06-30 Chong Yidong <cyd@stupidchicken.com>
15095
15096 * xfaces.c (Finternal_merge_in_global_face): If default face was
15097 modified, realize it again. Update the font face attribute.
15098
150992008-06-29 Jason Rumney <jasonr@gnu.org>
15100
15101 * w32term.c (x_set_frame_alpha): Fix logic.
15102
151032008-06-29 Kenichi Handa <handa@m17n.org>
15104
15105 * fontset.c (Finternal_char_font): Return font-object instead of
15106 font-name.
15107
15108 * composite.c (get_composition_id): Fix the width calculation for TAB.
15109
151102008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * indent.c (Fvertical_motion): Properly handle float column arg.
15113
151142008-06-28 Jason Rumney <jasonr@gnu.org>
15115
15116 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15117 (pfnSetLayeredWindowAttributes): New function pointer.
15118 (w32_initialize): Initialize it when supported.
15119 (x_set_frame_alpha): New function.
15120
15121 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15122 (w32_frame_parm_handlers): Set alpha handler.
15123
15124 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15125
151262008-06-27 Jason Rumney <jasonr@gnu.org>
15127
15128 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15129 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15130 (w32_to_x_charset, x_to_w32_charset)
15131 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15132 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15133 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15134 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15135 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15136 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15137 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15138 (Qw32_charset_unicode): Remove.
15139 (syms_of_w32fns): Update for above changes.
15140
15141 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15142 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15143 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15144 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15145 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15146 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15147 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15148 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15149 (syms_of_w32font): Update for above changes.
15150
151512008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15152
15153 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15154 removed #if.
15155 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15156
151572008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15158 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15159
15160 * makefile.w32-in (LOCAL_FLAGS):
15161 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15162
15163 * sysdep.c (_spawnlp, _getpid):
15164 Declare with explicit _cdecl instead of _CRTAPI1.
15165
15166 * editfns.c (Fget_internal_run_time):
15167 Check for WINDOWSNT with #ifdef, not #if.
15168
151692008-06-26 Jason Rumney <jasonr@gnu.org>
15170
15171 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15172
15173 * w32term.c (x_draw_glyph_string_foreground)
15174 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15175 Use FONT_HANDLE macro.
15176 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15177
15178 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15179 (uniscribe_encode_char): Use FONT_HANDLE macro.
15180
15181 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15182 (w32font_text_extents): Use precast w32_font.
15183 (w32font_close): Free cached metrics.
15184 (w32font_open_internal): Allocate space for name on stack.
15185
151862008-06-26 Chong Yidong <cyd@stupidchicken.com>
15187
15188 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15189
151902008-06-26 Jason Rumney <jasonr@gnu.org>
15191
15192 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15193 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15194
151952008-06-26 Juanma Barranquero <lekktu@gmail.com>
15196
15197 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15198
151992008-06-26 Jason Rumney <jasonr@gnu.org>
15200
15201 * w32bdf.c, w32bdf.h: Remove obsolete files.
15202
15203 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15204
15205 * w32gui.h: Don't include w32bdf.h.
15206 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15207 Remove obsolete font support.
15208
15209 * w32font.h (struct w32font_info): Remove compat_w32_font.
15210 Add hfont member.
15211 (FONT_COMPAT): Remove obsolete macro.
15212
15213 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15214 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15215 (w32font_open_internal): Remove compat code. Set new hfont member.
15216 (Fx_select_font): Use new hfont member.
15217
15218 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15219 (uniscribe_encode_char): Use new hfont member.
15220
15221 * w32term.c (x_draw_glyph_string_foreground)
15222 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15223 (x_draw_glyph_string): Use metrics in w32font_info.
15224
152252008-06-26 Kenichi Handa <handa@m17n.org>
15226
15227 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15228
152292008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15230
15231 * unexnext.c:
15232 * m/ews4800.h:
15233 * m/hp9000s300.h:
15234 * m/ibm370aix.h:
15235 * m/mips-siemens.h:
15236 * m/ncr386.h:
15237 * m/next.h:
15238 * m/pmax.h:
15239 * m/powerpcle.h:
15240 * m/tandem-s2.h:
15241 * s/386bsd.h:
15242 * s/bsd386.h:
15243 * s/bsd4-1.h:
15244 * s/bsd4-2.h:
15245 * s/bsdos2-1.h:
15246 * s/bsdos2.h:
15247 * s/bsdos3.h:
15248 * s/bsdos4.h:
15249 * s/nextstep.h:
15250 * s/ultrix4-3.h:
15251 * s/usg5-0.h:
15252 * s/usg5-2-2.h:
15253 * s/usg5-2.h:
15254 * s/usg5-4-3.h:
15255 * s/ux4800.h:
15256 * s/uxpds.h:
15257 * s/uxpv.h: Remove support for obsolete systems.
15258 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15259 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15260 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15261 Remove, insert contents in s/aix4-2.h.
15262 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15263 * s/bsd4-3.h: Rename to ...
15264 * s/bsd-common.h: ... this.
15265 * data.c:
15266 * doc.c:
15267 * ecrt0.c:
15268 * emacs.c:
15269 * fileio.c:
15270 * floatfns.c:
15271 * keyboard.c:
15272 * mem-limits.h:
15273 * print.c:
15274 * process.c:
15275 * sysdep.c:
15276 * syssignal.h:
15277 * systty.h:
15278 * syswait.h:
15279 * term.c:
15280 * unexec.c:
15281 * unexelf.c:
15282 * unexhp9k800.c:
15283 * m/hp800.h:
15284 * m/ibmrs6000.h:
15285 * m/mips.h:
15286 * m/vax.h:
15287 * s/darwin.h:
15288 * s/freebsd.h:
15289 * s/gnu.h:
15290 * s/ms-w32.h:
15291 * s/msdos.h:
15292 * s/netbsd.h:
15293 * s/template.h: Remove references to obsolete variables.
15294
15295 * Makefile.in: Add dependencies for all unexec files.
15296 (admindir): Remove unused variable.
15297 (UNEXEC_SRC): Remove references.
15298
152992008-06-25 Chong Yidong <cyd@stupidchicken.com>
15300
15301 * xfns.c (x_default_font_parameter): If Xft is available, first
15302 try Monospace-12 for the default font.
15303
153042008-06-25 Jason Rumney <jasonr@gnu.org>
15305
15306 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15307
153082008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15309
15310 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15311
15312 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15313
153142008-06-25 Juanma Barranquero <lekktu@gmail.com>
15315
15316 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15317 <scroll-conservatively>: Fix typo in docstring.
15318
15319 * xselect.c (Fx_send_client_event): Doc fix.
15320
153212008-06-25 Kenichi Handa <handa@m17n.org>
15322
15323 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15324
15325 * font.c (font_parse_fcname): Remove unused variables.
15326 (font_sort_entites): Delete the arg SPEC. Caller changed.
15327 Fix for the case of ! best_only.
15328 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15329
15330 * lisp.h (Fstring_to_unibyte): EXFUN it.
15331
15332 * character.h (str_to_unibyte): Extern it.
15333
15334 * character.c (str_to_unibyte): New function.
15335
15336 * fns.c (Fstring_to_unibyte): New function.
15337 (syms_of_fns): Defsubr it.
15338
153392008-06-24 Kenichi Handa <handa@m17n.org>
15340
15341 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15342 DPI too.
15343 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15344
153452008-06-24 Andreas Schwab <schwab@suse.de>
15346
15347 * Makefile.in (${lispsource}loaddefs.el): Rename from
15348 ../lisp/loaddefs.el.
15349 (bootstrap-clean): Do what distclean does but don't remove
15350 Makefile.
15351 (distclean): Depend on bootstrap-clean and remove Makefile.
15352
153532008-06-24 Chong Yidong <cyd@stupidchicken.com>
15354
15355 * buffer.h (struct buffer): New member word_wrap.
15356
15357 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15358 word-wrap.
15359 (init_buffer_once): Initialize them.
15360
15361 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15362 line_wrap enum possessing three possible values.
15363
15364 * termopts.h: Replace truncate_partial_width_windows with
15365 Vtruncate_partial_width_windows.
15366
15367 * dispnew.c (direct_output_for_insert): Avoid direct output when
15368 inserting a space with word wrap on.
15369
15370 * indent.c (compute_motion): Obey integer values of
15371 truncate-partial-width-windows.
15372
15373 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15374 replacing truncate_partial_width_windows.
15375 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15376 truncate only if the window width is below that integer.
15377 (start_display, resize_mini_window, produce_stretch_glyph)
15378 (display_string, move_it_in_display_line_to): Use line_wrap.
15379 (back_to_previous_visible_line_start, reseat_1): Reset
15380 string_from_display_prop_p.
15381 (display_line): Extend default face to end of line when wrapping.
15382
153832008-06-24 Kim F. Storm <storm@cua.dk>
15384
15385 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15386 to wrap continued lines at word boundaries.
15387
153882008-06-24 Jason Rumney <jasonr@gnu.org>
15389
15390 * font.c (Ffont_face_attributes): Multiply pixel size before point
15391 conversion to avoid multiplying rounding error.
15392
153932008-06-23 Jason Rumney <jasonr@gnu.org>
15394
15395 * w32term.c (x_draw_glyph_string_background)
15396 (x_draw_glyph_string): Remove old bdf font code.
15397
15398 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15399
154002008-06-22 Kenichi Handa <handa@m17n.org>
15401
15402 * font.c (font_find_for_lface): Try the adstyle specified in
15403 the property of LFACE_FONT of LFACE (if any).
15404
154052008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15406 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15407
15408 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15409
154102008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15411
15412 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15413 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15414 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15415 (witness-emacs): Remove.
15416 (lisp, shortlisp): Move loaddefs.el earlier.
15417 (mostlyclean): Forget about witness-emacs.
15418
154192008-06-22 Glenn Morris <rgm@gnu.org>
15420
15421 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15422 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15423
154242008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15425
15426 * Makefile.in (PRECOMP): Remove.
15427 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15428 (witness-emacs): Run `compile-first'.
15429 (.el.elc): Use the new compile-onefile target.
15430
154312008-06-21 Kenichi Handa <handa@m17n.org>
15432
15433 * xftfont.c (xftfont_open): Handle QCembolden only when
15434 FC_EMBOLDEN is defined.
15435
154362008-06-21 Andreas Schwab <schwab@suse.de>
15437
15438 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15439 (.el.elc): Likewise.
15440
154412008-06-21 Miles Bader <miles@gnu.org>
15442
15443 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15444 build dir, not the lisp source dir.
15445
154462008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15447
15448 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15449 (bootstrapclean): Remove.
15450 (.el.elc): New rule.
15451 (PRECOMP): New var.
15452 (../lisp/subdirs.el): Remove.
15453 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15454 (witness-emacs): New target.
15455 (mostlyclean): Remove witness-emacs as well.
15456 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15457 Add witness-emacs dependency.
15458
154592008-06-20 Chong Yidong <cyd@stupidchicken.com>
15460
15461 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15462 defined by the font.
15463
154642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15465
15466 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15467 (bootstrap-clean): New target that keeps TAGS around.
15468 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15469 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15470
154712008-06-20 Jason Rumney <jasonr@gnu.org>
15472
15473 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15474 Remove obsolete font code.
15475
15476 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15477 to determine language support.
15478
154792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15480
15481 * sysdep.c (cfsetspeed): New fun extracted from the code.
15482 (cfmakeraw): Move before first use.
15483
154842008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15485
15486 * sysdep.c (cfmakeraw): Provide fallback implementation.
15487 (serial_configure): Provide fallback implementation of cfsetspeed.
15488
154892008-06-20 Kenichi Handa <handa@m17n.org>
15490
15491 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15492 the pattern.
15493
15494 * fontset.c (fontset_from_font): Copy font_spec before changing
15495 the elements.
15496
15497 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15498
154992008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15500
15501 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15502 for explicit `font' parameters.
15503
15504 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15505
155062008-06-19 Kenichi Handa <handa@m17n.org>
15507
15508 * frame.c: Include <ctype.h>.
15509 (x_set_font_backend): Allow spacing characters in the X resource
15510 for FontBackend.
15511
155122008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15513
15514 * w32fns.c, xfns.c (Qfont_param): New var.
15515 (syms_of_w32fns): Initialize it.
15516 (x_default_font_parameter): Record explicit `font' into
15517 `font-parameter'.
15518
155192008-06-18 Kenichi Handa <handa@m17n.org>
15520
15521 * font.c (font_parse_xlfd): Fix previous change.
15522 (font_parse_fcname): Don't use :fc-unknown-spec.
15523 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15524 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15525 (font_add_log): Prepend the driver name to the resulting fonts.
15526
15527 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15528 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15529 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15530
15531 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15532 (QCembolden): New variables.
15533 (syms_of_xftfont): DEFSYM them.
15534 (xftfont_open): Call XftFontMatch. Don't trust the result of
15535 XftTextExtents8 if the pixel_size is less than 5.
15536
155372008-06-18 Andreas Schwab <schwab@suse.de>
15538
15539 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15540 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15541
155422008-06-18 Jason Rumney <jasonr@gnu.org>
15543
15544 * w32font.c (w32font_list, w32font_match): Add logging.
15545
15546 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15547
155482008-06-17 Chong Yidong <cyd@stupidchicken.com>
15549
15550 * font.c (font_parse_fcname): Store divider characters for
15551 unknown-spec list. For known key symbols, intern using correct
15552 symbol name.
15553
155542008-06-17 Kenichi Handa <handa@m17n.org>
15555
15556 * xfaces.c (realize_default_face): If the frame is not on window
15557 system, set the fontset of face to nil.
15558
155592008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15560
15561 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15562
155632008-06-16 Juanma Barranquero <lekktu@gmail.com>
15564
15565 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15566 (build_font_name_from_vector): Delete externs.
15567
15568 * xfaces.c (struct font_name): Don't declare.
15569
155702008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15571
15572 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15573
155742008-06-16 Chong Yidong <cyd@stupidchicken.com>
15575
15576 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15577
155782008-06-16 Juanma Barranquero <lekktu@gmail.com>
15579
15580 * font.c (Ffont_spec): Fix usage in docstring.
15581 (Ffont_face_attributes): Doc fix.
15582
155832008-06-16 Andreas Schwab <schwab@suse.de>
15584
15585 * font.c (Ffont_face_attributes): Fix definition.
15586
155872008-06-16 Jason Rumney <jasonr@gnu.org>
15588
15589 * font.h (font_style_symbolic_from_value): Remove.
15590
15591 * font.c (font_style_symbolic_from_value): Remove.
15592 (font_style_symbolic): Revert to pre 2008-06-13 version.
15593
15594 * w32font.c (w32_to_fc_weight): New function.
15595 (w32font_full_name, logfont_to_fcname): Use it.
15596
155972008-06-16 Kenichi Handa <handa@m17n.org>
15598
15599 * font.c (font_check_object): Delete it.
15600 (font_clear_cache): Check if a font-object is alive.
15601 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15602 font-object to nil.
15603 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15604 (font_at): Don't call font_check_object.
15605 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15606
156072008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15608
15609 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15610
156112008-06-16 Chong Yidong <cyd@stupidchicken.com>
15612
15613 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15614
156152008-06-15 Chong Yidong <cyd@stupidchicken.com>
15616
15617 * font.c (font_parse_fcname): Only one decimal point.
15618 (font_unparse_fcname): Handle data in family and foundry indices
15619 as symbols, not strings.
15620 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15621
15622 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15623
15624 * font.h (font_unparse_gtkname): Add prototype.
15625
156262008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15627
15628 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15629
156302008-06-15 Andreas Schwab <schwab@suse.de>
15631
15632 * font.c (font_update_drivers): Fix crash when no drivers match.
15633
156342008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15635
15636 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15637 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15638
156392008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15640
15641 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15642
156432008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15644
15645 * process.c (Fserial_process_configure, Fprocess_send_eof):
15646 Use EQ to compare Lisp_Objects.
15647
156482008-06-13 Jason Rumney <jasonr@gnu.org>
15649
15650 * w32fns.c (Fw32_select_font): Remove old font API function.
15651
15652 * w32font.c (logfont_to_fcname): New function.
15653 (Fx_select_font): New font dialog function compatible with
15654 GTK/fontconfig version.
15655
15656 * font.c (font_style_symbolic_from_value): New function.
15657 (font_style_symbolic): Use it.
15658
15659 * font.h (font_style_symbolic_from_value): Declare new function.
15660
156612008-06-13 Juanma Barranquero <lekktu@gmail.com>
15662
15663 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15664 <font-width-table>: Fix typos in docstrings.
15665
156662008-06-13 Daniel Engeler <engeler@gmail.com>
15667
15668 These changes add serial port access.
15669 * process.c: Add HAVE_SERIAL.
15670 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15671 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15672 (list_processes_1, select_wrapper, Fstop_process)
15673 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15674 (status_notify): Modify to handle serial processes.
15675 [HAVE_SERIAL] (Fserial_process_configure)
15676 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15677 New functions.
15678 * process.h (struct Lisp_Process): Add `type'.
15679 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15680 New functions.
15681 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15682 serial ports.
b71ac3dd 15683 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15684 * w32.h: Add FILE_SERIAL.
15685 (struct _child_process): Add ovl_read, ovl_write.
15686
156872008-06-13 Kenichi Handa <handa@m17n.org>
15688
15689 * dispextern.h (enum lface_attribute_index): New member
15690 LFACE_FOUNDRY_INDEX.
15691
15692 * font.c (font_score): Delete arg alternate_families. Check only
15693 weight, slant, width, and size. Ignore the difference of alias
15694 style symbols.
15695 (font_sort_entites): Adjust for the above change. Reflect the
15696 order of font-driver to scores.
15697 (font_list_entities): Don't check alternate_familes here.
15698 (font_clear_prop): Handle foundry.
15699 (font_update_lface): Don't parse "foundry-family" form here.
15700 Handle FONT_FOUNDRY_INDEX.
15701 (font_find_for_lface): Likewise. Handle alternate families here.
15702 If registry is nil, try iso8859-1 and ascii-0.
15703 (font_open_for_lface): Pay attention to size in ENTITY.
15704 (font_open_by_name): Simplify by calling font_load_for_lface.
15705 (free_font_driver_list): Delete it.
15706 (font_update_drivers): Preserve the order of backends.
15707 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15708 of font_score and font_sort_entites.
15709 (font_update_sort_order): Likewise.
15710
15711 * xfaces.c (LFACE_FOUNDRY): New macro.
15712 (check_lface_attrs): Check foundry.
15713 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15714 (merge_face_vectors): Check foundry.
15715 (merge_face_ref): Likewise.
15716 (Finternal_set_lisp_face_attribute): Likewise.
15717 (x_update_menu_appearance): Likewise.
15718 (Finternal_get_lisp_face_attribute): Likewise.
15719 (lface_hash): Likewise.
15720 (lface_same_font_attributes_p): Likewise.
15721 (x_supports_face_attributes_p): Likewise.
15722 (tty_supports_face_attributes_p): Likewise.
15723 (Finternal_set_alternative_font_family_alist): Intern strings.
15724 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15725 (realize_default_face): Set LFACE_FOUNDRY (lface).
15726
15727 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15728 font-driver at first.
15729
15730 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15731
157322008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15733
15734 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15735
157362008-06-12 Jim Meyering <meyering@redhat.com>
15737
15738 Make unexec_free handle NULL the same way free does.
15739 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15740
157412008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15742
15743 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15744 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15745 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15746 (WEAK_ALIAS): Simplify.
15747 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15748 when searching a unibyte buffer.
15749
157502008-06-12 Chong Yidong <cyd@stupidchicken.com>
15751
15752 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15753
157542008-06-12 Juanma Barranquero <lekktu@gmail.com>
15755
15756 * w32font.c: Include ctype.h.
15757
157582008-06-11 Jason Rumney <jasonr@gnu.org>
15759
15760 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15761 misreported as space.
15762 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15763 as aliases for registry iso10646-1.
15764
157652008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15766
15767 * buffer.c (clone_per_buffer_values): Skip `name'.
15768
157692008-06-11 Chong Yidong <cyd@stupidchicken.com>
15770
15771 * font.c (font_parse_fcname): Fix last change; accept decimal
15772 points in font size.
15773
157742008-06-10 Jason Rumney <jasonr@gnu.org>
15775
15776 * w32uniscribe.c (add_opentype_font_name_to_list):
15777 Skip non unicode fonts.
15778
157792008-06-10 Chong Yidong <cyd@stupidchicken.com>
15780
15781 * xfns.c (Fx_font_dialog): New function.
15782
15783 * gtkutil.c (xg_dialog_response_cb): Rename from
15784 xg_file_response_callback.
15785 (pop_down_dialog): Rename from pop_down_file_dialog.
15786 (xg_get_file_name): Callers changed.
15787 (xg_get_font_name): New function.
15788
15789 * gtkutil.h (xg_get_font_name): Insert prototype.
15790
157912008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15792
15793 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15794 x_underline_minimum_display_offset.
15795 (syms_of_xdisp): Declare it here rather than in xterm.c.
15796 * dispextern.h (underline_minimum_offset): Declare it.
15797 * w32term.c (x_draw_glyph_string): Use it.
15798 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15799 (syms_of_xterm): Don't declare it any more.
15800 (x_draw_glyph_string): Adjust to the new name.
15801
8719abec 158022008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15803
15804 * xterm.c (x_underline_minimum_display_offset): New var.
15805 (x_draw_glyph_string): Use it.
15806 (syms_of_xterm): Declare it.
15807
158082008-06-10 Chong Yidong <cyd@stupidchicken.com>
15809
15810 * font.c (font_parse_fcname): Accept GTK-style font names too.
15811
158122008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15813
15814 * dired.c (file_name_completion): Don't return t if the match is exact
15815 but with different capitalization.
15816 * minibuf.c (Ftry_completion): Simplify.
15817
15818 * window.c (Vwindow_point_insertion_type): New var.
15819 (set_window_buffer): Use it.
15820 (syms_of_window): Init and export it to Lisp.
15821
158222008-06-10 Kenichi Handa <handa@m17n.org>
15823
15824 * font.h (font_intern_prop): Prototype adjusted.
15825
15826 * font.c (font_intern_prop): New arg force_symbol.
15827 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15828 Adjust for the change of font_intern_prop.
15829
15830 * ftfont.c (ftfont_pattern_entity):
15831 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15832 (w32_registry):
15833 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15834 the change of font_intern_prop.
15835
158362008-06-09 Juanma Barranquero <lekktu@gmail.com>
15837
15838 * w32menu.c (digest_single_submenu): Declare extern.
15839
158402008-06-09 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15843
15844 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15845 (parse_single_submenu): Remove.
15846 (digest_single_submenu): Remove.
15847 (syms_of_w32menu): Don't initialise variables that have moved
15848 to menu.c.
15849 (set_frame_menubar): Sync with version in xmenu.c.
15850 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15851
15852 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15853 Make static again.
15854
158552008-06-09 Jason Rumney <jasonr@gnu.org>
15856
15857 Changes to w32 files related to the move of common menu code
15858 to menu.c on 2008-06-08 by Chong Yidong.
15859
15860 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15861 defs to w32gui.h.
15862 (single_keymap_panes, push_menu_item, push_menu_pane):
15863 Make globally visible.
15864
15865 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15866 (local_free, malloc_widget_value, free_widget_value)
15867 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15868 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15869 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15870 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15871 (menu_items, menu_items_allocated, menu_items_used)
15872 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15873 (init_menu_items, finish_menu_items, discard_menu_items)
15874 (grow_menu_items, push_submenu_start, push_submenu_end)
15875 (push_left_right_boundary, push_menu_pane, push_menu_item)
15876 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15877 (free_menubar_widget_tree_value, parse_single_submenu)
15878 (update_submenu_strings): Remove functions.
15879 (xmalloc_widget_value): Remove and declare extern.
15880
15881 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15882 (OBJ1): Build it.
15883
15884 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15885 (local_heap, local_alloc, local_free, malloc_widget_value)
15886 (free_widget_value): Define here.
15887
158882008-06-09 Kenichi Handa <handa@m17n.org>
15889
15890 * font.h (Qascii_0): Extern it.
15891
15892 * font.c (Qascii_0): New variable.
15893 (syms_of_font): DEFSYM it.
15894 (font_open_by_name): If the registry "iso8859-1" fails, try also
15895 "ascii-0".
15896
15897 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15898
158992008-06-08 Kenichi Handa <handa@m17n.org>
15900
15901 * .gdbinit (xfont): New command.
15902
159032008-06-08 Andreas Schwab <schwab@suse.de>
15904
15905 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15906 * Makefile.in (menu.o): Update dependencies.
15907
15908 * Makefile.in (obj): Always add menu.o.
15909 * emacs.c (main): Always call syms_of_menu.
15910 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15911
159122008-06-08 Chong Yidong <cyd@stupidchicken.com>
15913
15914 * Makefile.in: Compile menu.c.
15915
15916 * lisp.h: Declare syms_of_menu.
15917
15918 * emacs.c (main): Call syms_of_menu.
15919
15920 * keyboard.h: Relocate platform-independent menu definitions from
15921 xmenu.c.
15922
15923 * menu.c: New file. Relocate platform-independent menu
15924 definitions from xmenu.c. Suggested by Adrian Robert.
15925
15926 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15927 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15928 (menu_items_used, menu_items_n_panes)
15929 (menu_items_submenu_depth): Move to keyboard.h.
15930 (init_menu_items, finish_menu_items, unuse_menu_items)
15931 (discard_menu_items, restore_menu_items, save_menu_items)
15932 (grow_menu_items, push_submenu_start, push_submenu_end)
15933 (push_left_right_boundary, push_menu_pane, push_menu_item)
15934 (keymap_panes, single_keymap_panes, single_menu_item)
15935 (list_of_panes, list_of_items, find_and_call_menu_selection)
15936 (xmalloc_widget_value, free_menubar_widget_value_tree)
15937 (parse_single_submenu, digest_single_submenu)
15938 (update_submenu_strings): Move to menu.c.
15939
159402008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15941
15942 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15943
159442008-06-06 Miles Bader <miles@gnu.org>
15945
15946 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15947 face, not frame default.
15948
159492008-06-05 Martin Rudalics <rudalics@gmx.at>
15950
15951 * window.c (pop_up_windows, pop_up_frames)
15952 (display_buffer_reuse_frames, Vpop_up_frame_function)
15953 (Vdisplay_buffer_function, Veven_window_heights)
15954 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15955 (Vspecial_display_function, Vsame_window_buffer_names)
15956 (Vsame_window_regexps, split_height_threshold)
15957 (Vsplit_window_preferred_function): Move those vars to window.el.
15958 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15959 (Fdisplay_buffer): Move those functions to window.el.
15960 (syms_of_window): Remove corresponding declarations.
15961 (display_buffer): New function.
15962 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15963 * dispnew.c (Flast_nonminibuf_frame): New function.
15964 * buffer.c (Fpop_to_buffer): Move to window.el.
15965
159662008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15967
15968 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15969
159702008-06-05 Kenichi Handa <handa@m17n.org>
15971
15972 * coding.c (detect_coding): Fix previous change.
15973 (detect_coding_system): Likewise.
15974
159752008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15976
15977 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15978
15979 * keymap.c (Vminibuffer_local_filename_must_match_map):
15980 Rename from Vminibuffer_local_must_match_filename_map.
15981 (syms_of_keymap):
15982 * minibuf.c (Fcompleting_read): Adjust accordingly.
15983 * commands.h: Rename declaration as well.
15984
159852008-06-05 Kenichi Handa <handa@m17n.org>
15986
15987 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15988 family name.
15989 (Ffont_put): Likewise.
15990
15991 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15992 current font-spec.
15993
15994 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15995 is unspecified.
15996
15997 * xfaces.c (realize_x_face): If the font-related face attributes
15998 are the same as those of default face, realize a new fontset from
15999 default->fontset.
16000 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16001
160022008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16003
16004 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16005 (move_it_in_display_line): New wrapper.
16006
16007 * window.c (window_scroll_pixel_based_preserve_x)
16008 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16009 (window_scroll_pixel_based, window_scroll_line_based):
16010 Use them to preserve column positions.
16011 (syms_of_window): Initialize them.
16012
16013 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16014 (HPOS . VPOS) pair.
16015
16016 * dispextern.h (move_it_in_display_line): Declare.
16017
160182008-06-05 Juanma Barranquero <lekktu@gmail.com>
16019
16020 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16021 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16022 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16023
160242008-06-04 Juanma Barranquero <lekktu@gmail.com>
16025
16026 * window.c (Fset_window_parameter): Doc fix.
16027 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16028
160292008-06-04 Joakim Verona <joakim@verona.se>
16030
16031 * window.h (struct window): Add new member window_parameters.
16032
16033 * window.c (Fwindow_parameters, Fwindow_parameter)
16034 (Fset_window_parameter): New defuns.
16035 (syms_of_window): Defsubr the new defuns.
16036 (make_window): Initialize window_parameters to nil.
16037
160382008-06-04 John Paul Wallington <jpw@pobox.com>
16039
16040 * eval.c (Fdefmacro): Doc fix.
16041
160422008-06-04 Kenichi Handa <handa@m17n.org>
16043
16044 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16045 Be sure to call setup_coding_system when we find a proper coding system.
16046 (detect_coding_system): Fix handling of coding->head_ascii.
16047
160482008-06-03 Andreas Schwab <schwab@suse.de>
16049
16050 * font.c (font_prop_validate_spacing): Fix last change.
16051
160522008-06-03 Kenichi Handa <handa@m17n.org>
16053
16054 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16055 (font_parse_fcname): Fix handling of unknown key.
16056
16057 * xfont.c (xfont_list): Try an alias.
16058
16059 * charset.c (char_charset): Return NULL if the arg charset_list is
16060 specified and C doesn't belong to any of them.
16061
160622008-06-02 Chip Coldwell <coldwell@redhat.com>
16063
16064 * font.c (font_pixel_size): Don't take cdr of an integer.
16065
160662008-06-02 Jim Meyering <meyering@redhat.com>
16067
16068 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16069 * alloc.c (xfree): Return right away for a NULL arg.
16070 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16071 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16072 * mac.c (create_apple_event_from_event_ref): Likewise.
16073 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16074 Likewise.
16075 * doprnt.c (doprnt1): Likewise.
16076 * frame.c (frame): Likewise.
16077 * keyboard.c (wipe_kboard): Likewise.
16078 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16079 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16080 * term.c (tty_default_color_capabilities, maybe_fatal)
16081 (delete_tty): Likewise.
16082 * w16select.c (string): Likewise.
16083 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16084 * w32bdf.c (w32_free_bdf_font): Likewise.
16085 * w32fns.c (w32_unload_font): Likewise.
16086 * w32font.c (w32font_close): Likewise.
16087 * window.c (size_window): Likewise.
16088 * xselect.c (receive_incremental_selection): Likewise.
16089 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16090 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16091 * w32.c (stat): Likewise.
16092
16093 Remove useless if-before-free tests.
16094 * editfns.c (Fset_time_zone_rule): Likewise.
16095 * lread.c (nosuffix): Likewise.
16096 * ralloc.c (get_bloc): Likewise.
16097 * regex.c (reg_free): Likewise.
16098 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16099 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16100 * xsmfns.c (smc_save_yourself_CB): Likewise.
16101
161022008-06-02 Kenichi Handa <handa@m17n.org>
16103
16104 * font.c (font_find_for_lface): Handle float font size.
16105 (font_open_for_lface): Likewise.
16106
16107 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16108 comparing the properties.
16109
161102008-06-01 Jason Rumney <jasonr@gnu.org>
16111
16112 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16113 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16114 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16115 Don't add empty script list.
16116 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16117
161182008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16119
16120 * Makefile.in (dot, dotdot): Remove, update users.
16121 ".." has been used elsewhere in the file for a long time.
16122 (LIBXT_STATIC): Remove conditional based on unused variable.
16123
161242008-06-01 Miles Bader <miles@gnu.org>
16125
16126 * xfaces.c (Vface_remapping_alist): New variable.
16127 (syms_of_xfaces): Initialize it.
16128 (enum named_merge_point_kind): New type.
16129 (struct named_merge_point): Add `named_merge_point_kind' field.
16130 (push_named_merge_point): Make cycle detection respect different
16131 named-merge-point kinds.
16132 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16133 Remove face-name alias resolution.
16134 (lface_from_face_name): New definition using
16135 `lface_from_face_name_no_resolve'.
16136 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16137 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16138 (get_lface_attributes): New definition that layers face-remapping on
16139 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16140 (lookup_basic_face): New function.
16141 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16142 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16143 `get_lface_attributes'.
16144 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16145 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16146 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16147
16148 * xdisp.c (init_iterator): Pass base_face_id through
16149 `lookup_basic_face' when we actually use it as a face-id.
16150 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16151 DEFAULT_FACE_ID.
16152
16153 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16154 lookup the initial face-id.
16155
16156 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16157
161582008-06-01 Juanma Barranquero <lekktu@gmail.com>
16159
16160 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16161 (Fremove_text_properties): Fix typos in docstrings.
16162
161632008-05-31 Kenichi Handa <handa@m17n.org>
16164
16165 * font.c (font_list_entities): Fix the car part of data to be
16166 stored in the cache.
16167
16168 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16169
161702008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16171
16172 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16173 Add a `test' argument so another predicate than `equal' can be used.
16174 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16175 (map_char_table): Remove unused vars `c' and `i'.
16176 * lisp.h (Foptimize_char_table): Adjust declaration.
16177 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16178
161792008-05-30 Kenichi Handa <handa@m17n.org>
16180
16181 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16182 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16183 defined.
16184
161852008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16186
16187 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16188 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16189 frame-local settings for the same variable.
16190
161912008-05-30 Kenichi Handa <handa@m17n.org>
16192
16193 * fontset.c (Ffont_info): Move to font.c.
16194 (syms_of_fontset): Delete defsubr of Sfont_info.
16195
16196 * font.c (font_style_to_value, font_score): Delete casting of the
16197 args to xstcasecmp.
16198 (register_font_driver): Increment num_font_drivers only when
16199 registering the driver globally.
16200 (Ffont_info): Move from fontset.c. Handle a font object too.
16201 (syms_of_font): Defsubr Sfont_info.
16202
162032008-05-29 Kenichi Handa <handa@m17n.org>
16204
16205 * coding.h (enum define_coding_utf8_arg_index): New enum.
16206 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16207 coding_attr_utf_bom.
16208 (enum utf_bom_type): Rename from utf_16_bom_type.
16209 (struct utf_16_spec): Adjust for the above change.
16210 (struct coding_system): Add utf_8_bom in `spec' union.
16211
16212 * coding.c (CODING_UTF_8_BOM): New macro.
16213 (enum coding_category): Delete coding_category_utf_8, add
16214 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16215 coding_category_utf_8_sig.
16216 (CATEGORY_MASK_UTF_8): Delete it.
16217 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16218 (CATEGORY_MASK_UTF_8_SIG): New macros.
16219 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16220 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16221 CATEGORY_MASK_UTF_8_SIG.
16222 (CATEGORY_MASK_UTF_8): New macro.
16223 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16224 (detect_coding_utf_8): Check BOM.
16225 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16226 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16227 (encode_coding_utf_16): Likewise.
16228 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16229 (detect_coding, detect_coding_system): Handle utf-8-auto.
16230 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16231 (syms_of_coding): Fix setting up of Vcoding_category_table.
16232
162332008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16234
16235 * process.c (Faccept_process_output): If `millisec' is non-nil,
16236 `seconds' default to 0.
16237 (wait_reading_process_output): Also return non-nil if we read output
16238 from a non-running process.
16239
162402008-05-29 Jason Rumney <jasonr@gnu.org>
16241
16242 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16243 `raster' specified.
16244 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16245 in the uniscribe backend, but disallow any font that has no
16246 unicode subrange support.
16247
162482008-05-29 Juanma Barranquero <lekktu@gmail.com>
16249
16250 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16251 Fix typos in docstrings.
16252
162532008-05-29 Kenichi Handa <handa@m17n.org>
16254
16255 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16256 (Fx_family_fonts): Set frame correctly.
16257
162582008-05-28 Jason Rumney <jasonr@gnu.org>
16259
16260 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16261
162622008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16263
16264 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16265 calling build_annotations.
16266
162672008-05-28 Juanma Barranquero <lekktu@gmail.com>
16268
16269 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16270 (Fencode_coding_string):
16271 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16272 <latin-extra-code-table>: Fix typos in docstrings.
16273 (syms_of_coding) <coding-system-alist>: Doc fix.
16274 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16275
162762008-05-28 Kenichi Handa <handa@m17n.org>
16277
16278 * fontset.c (Ffont_info): Don't call font_close_object.
16279
16280 * font.c (font_parse_family_registry): Use Ffont_put to validate
16281 foundry and family.
16282 (font_delete_unmatched): Don't check spacing.
16283 (font_list_entities): Add spacing to the spec to list fonts.
16284
16285 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16286 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16287
16288 * coding.c (encode_coding_raw_text): Fix previous change.
16289 (encode_coding_object): When the dst_object is a buffer and is
16290 different from src_object, move gap to PT.
16291
162922008-05-27 Chong Yidong <cyd@stupidchicken.com>
16293
16294 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16295
162962008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16297
16298 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16299 all branches. Compute it differently.
16300
16301 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16302
163032008-05-27 Juanma Barranquero <lekktu@gmail.com>
16304
16305 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16306 into "else if () ... else ...".
16307
163082008-05-27 Jason Rumney <jasonr@gnu.org>
16309
16310 * w32font.c (w32font_open_internal): Determine if glyph indices
16311 are likely to work here.
16312
163132008-05-27 Chong Yidong <cyd@stupidchicken.com>
16314
16315 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16316 draw overlap glyphs with appropriate highlighting.
16317
163182008-05-27 Kenichi Handa <handa@m17n.org>
16319
16320 * xfont.c (xfont_open): Fix calculation of font->average_width.
16321
163222008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16323
16324 * casefiddle.c (casify_object): Try to guess better whether the
16325 argument is a byte or a char.
16326
163272008-05-26 Andreas Schwab <schwab@suse.de>
16328
16329 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16330 Always send multiples of format size.
16331
16332 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16333
163342008-05-26 Jason Rumney <jasonr@gnu.org>
16335
16336 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16337 (compute_metrics): Don't set failure if we just cleared the cache.
16338 (w32_weight_table): Remove unused variable.
16339 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16340 backwards compatibility.
16341
163422008-05-25 Kenichi Handa <handa@m17n.org>
16343
16344 * w32term.c (x_draw_glyph_string):
16345 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16346
16347 * xfaces.c: Delete unused function prototypes.
16348 (xstrlwr, font_frame): Delete them.
16349 (clear_face_cache): Delete unused variable.
16350
16351 * xftfont.c (xftfont_open): Delete unused variable.
16352 If underline_thickness is not 1, adjust underline_position.
16353
16354 * ftxfont.c (ftxfont_open): Delete unused variable.
16355
16356 * fontset.c (face_for_char): Optimize for the case of no charset
16357 property.
16358
16359 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16360 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16361 (otf_open, font_otf_capability, generate_otf_features)
16362 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16363 Comment out by surrounding "#if 0" and "#endif" for the moment.
16364 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16365 (syms_of_font): Codes for accessing above commented out.
16366
163672008-05-24 Eli Zaretskii <eliz@gnu.org>
16368
16369 * w32proc.c: Include dispextern.h.
16370
16371 * w32.c: Include dispextern.h.
16372
163732008-05-23 Juanma Barranquero <lekktu@gmail.com>
16374
16375 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16376 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16377 Fix typos in docstrings.
16378
163792008-05-23 Jason Rumney <jasonr@gnu.org>
16380
16381 * xsmfns.c: Remove includes that are already included by config.h.
16382
163832008-05-23 Kenichi Handa <handa@m17n.org>
16384
16385 * charset.c (Qemacs, charset_emacs): New variables.
16386 (char_charset): Fix for non-Unicode characters.
16387 (syms_of_charset): Define charset_emacs.
16388
16389 * w32term.c (x_draw_glyph_string): Be sure to update
16390 s->underline_thickness and s->underline_position. Be sure to draw
16391 underline within the current line area.
16392
16393 * xterm.c (x_draw_glyph_string): Be sure to update
16394 s->underline_thickness and s->underline_position. Be sure to draw
16395 underline within the current line area.
16396
16397 * fontset.c: Delete unused variables and add casting for char *
16398 throughout the file.
16399 (fontset_font): Try the fallback fonts of the current fontset
16400 before consulting the default fontset.
16401
16402 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16403
16404 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16405
164062008-05-22 Jason Rumney <jasonr@gnu.org>
16407
16408 * font.c: Don't include strings.h.
16409
16410 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16411
16412 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16413 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16414 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16415 to call xstrcasecmp.
16416
16417 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16418
16419 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16420
16421 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16422
16423 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16424
164252008-05-22 Kenichi Handa <handa@m17n.org>
16426
16427 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16428
16429 * font.c (font_prop_validate_style): Adjust for the format
16430 change of font_style_table.
16431
16432 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16433 two args.
16434
16435 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16436 two args.
16437
164382008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16439
16440 * minibuf.c (keys_of_minibuf): Delete.
16441 * lisp.h (keys_of_minibuf): Delete.
16442 * emacs.c (main): Don't call keys_of_minibuf.
16443
164442008-05-22 Kenichi Handa <handa@m17n.org>
16445
16446 * ftfont.c (ftfont_resolve_generic_family): Rename from
16447 ftfont_list_generic_family. Return a single family for each
16448 generic family.
16449 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16450 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16451 Call font_add_log.
16452 (ftfont_match): Call font_add_log.
16453
16454 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16455 (FONT_DEBUG): Define it.
16456 (font_add_log): Extern it.
16457 (font_assert): Rename from xassert.
16458
16459 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16460 (xfont_list_family): Call font_add_log.
16461 (xfont_match): Likewise.
16462 (memq_no_quit): Delete.
16463
16464 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16465 call of Ffont_xlfd_name.
16466
16467 * xfaces.c (struct table_entry, slant_table, weight_table)
16468 (swidth_table): Move to font.c.
16469
16470 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16471 xassert are changed to font_assert. Delete many unused variables.
16472 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16473 New variables.
16474 (struct table_entry): Move from xfaces.c and modified.
16475 (weight_table, slant_table, width_table): Move from xfaces.c and
16476 contents adjusted for the change of struct table_entry.
16477 (font_style_to_value, font_style_symbolic): Adjust for the
16478 format change of font_style_table.
16479 (font_parse_family_registry): Don't overwrite existing foundry and
16480 family of font_spec.
16481 (font_score): Fix calculation of diff for sizes.
16482 (font_sort_entites): Call font_add_log.
16483 (font_delete_unmatched): Return a newly created list.
16484 (font_list_entities): Fix previous change. Call font_add_log.
16485 (font_matching_entity, font_open_entity, font_close_entity):
16486 Call font_add_log.
16487 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16488 (Finternal_set_font_style_table): Delete.
16489 (BUILD_STYLE_TABLE): New macro.
16490 (build_style_table): New function.
16491 (Vfont_log, font_log_env_checked): New variables.
16492 (font_add_log): New function.
16493 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16494 Declare Lisp variables "font-weight-table", "font-slant-table",
16495 "font-width-table", and "font-log". Initialize font_style_table.
16496
164972008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16498
16499 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16500
165012008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16502 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16503
16504 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16505 (Vframe_alpha_lower_limit): New variable.
16506 (x_set_alpha): New function.
16507
16508 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16509
16510 * xfns.c (x-create-frame, Qalpha):
16511 Initialize the frame parameter `alpha'.
16512 * xterm.c (OPAQUE, OPACITY): New.
16513 (x_set_frame_alpha): New function.
16514 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16515
16516 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16517 * w32fns.c (w32_frame_parm_handlers): Likewise.
16518
165192008-05-20 Jason Rumney <jasonr@gnu.org>
16520
16521 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16522 truetype fonts to opentype list.
16523
165242008-05-20 Juanma Barranquero <lekktu@gmail.com>
16525
16526 * fontset.c (Ffontset_info): Doc fix.
16527 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16528 <ignore-relative-composition>: Fix typos in docstrings.
16529
16530 * font.c (syms-of-font) <font-encoding-alist>:
16531 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16532 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16533 (Ffont_otf_alternates): Doc fixes.
16534
165352008-05-20 Kenichi Handa <handa@m17n.org>
16536
16537 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16538 font.h through out the file.
16539 (FONT_DRIVERS): Rename from FONTOBJ.
16540 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16541 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16542
16543 * emacs.c (main): Call syms_of_font unconditionally.
16544
16545 * font.h (find_font_encoding): Extern it.
16546
16547 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16548 fontset.c.
194d44e7 16549 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16550 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16551 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16552 only when HAVE_WINDOW_SYSTEM is defined.
16553 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16554 when HAVE_WINDOW_SYSTEM is defined.
16555
16556 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16557 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16558
16559 * xfaces.c: Include font.h unconditionally.
16560 (merge_face_ref, merge_face_vectors)
16561 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16562
165632008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16564
16565 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16566 indirect_variable.
16567 * eval.c (lisp_indirect_variable): New fun.
16568 (Fuser_variable_p): Use it.
16569
165702008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16571
16572 * lisp.h (indirect_variable):
16573 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16574 Use Lisp_Symbol pointers rather than Lisp_Object.
16575 Adjust callers.
16576 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16577 To this end, change calling-convention.
16578
16579 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16580 if some non-hidden buffers are selected by string&pred.
16581
165822008-05-19 Chong Yidong <cyd@stupidchicken.com>
16583
16584 * process.c (wait_reading_process_output): Always check status
16585 when in batch mode.
16586
165872008-05-19 Kenichi Handa <handa@m17n.org>
16588
16589 * font.c (font_list_entities): Fix handling of cache.
16590 (font_matching_entity): Likewise.
16591
16592 * ftfont.c (cs_iso8859_1): Delete.
16593 (ft_face_cache): New variable.
16594 (struct ftfont_info): New member fc_charset_idx.
16595 (ftfont_build_basic_charsets): Delete.
16596 (fc_charset_table): New variable.
16597 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16598 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16599 Callers changed.
16600 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16601 (ftfont_spec_pattern): New argument fc_charset_idx.
16602 Check registry more rigidly. Change callers.
16603 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16604 change of :font-entity property of the font.
16605
16606 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16607 property of the font.
16608
166092008-05-18 Juanma Barranquero <lekktu@gmail.com>
16610
16611 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16612 (Funencodable_char_position, Fcheck_coding_systems_region)
16613 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16614 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16615 (Ffind_operation_coding_system, Fset_coding_system_priority)
16616 (Fcoding_system_eol_type): Doc fixes.
16617
166182008-05-17 Glenn Morris <rgm@gnu.org>
16619
16620 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16621
166222008-05-16 Eli Zaretskii <eliz@gnu.org>
16623
16624 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16625 and st_gid.
16626
16627 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16628 HAVE_WINDOW_SYSTEM is not defined.
16629
16630 * xfaces.c (merge_face_ref, merge_face_vectors)
16631 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16632 HAVE_WINDOW_SYSTEM is defined.
16633 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16634
166352008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16636
16637 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16638
166392008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16640
16641 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16642
166432008-05-15 Kenichi Handa <handa@m17n.org>
16644
16645 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16646 preference.
16647
166482008-05-15 Glenn Morris <rgm@gnu.org>
16649
16650 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16651
166522008-05-15 Chong Yidong <cyd@stupidchicken.com>
16653
16654 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16655 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16656
16657 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16658
166592008-05-15 Kenichi Handa <handa@m17n.org>
16660
16661 * ftfont.c (ftfont_list): Downcase family name to check generic
16662 families.
16663
16664 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16665 font-spec for QCfont value.
16666
16667 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16668 buffer. Check the return value of it.
16669
166702008-05-14 Jason Rumney <jasonr@gnu.org>
16671
16672 * w32term.c (w32_get_glyph_overhangs): Remove.
16673 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16674
166752008-05-14 Kenichi Handa <handa@m17n.org>
16676
16677 * font.c (font_prop_validate): Make nil a valid value.
16678 (font_clear_cache): Check if the cached vector of entities is nil
16679 or not.
16680
166812008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16682
16683 * emacs.c (main_thread): Conditionalize on
16684 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16685 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16686
16687 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16688 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16689 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16690
166912008-05-14 Kenichi Handa <handa@m17n.org>
16692
16693 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16694 has no corresponding coding system.
16695
166962008-05-14 Jason Rumney <jasonr@gnu.org>
16697
16698 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16699
16700 * w32font.h (w32font_open_internal): Update declaration.
16701
16702 * w32font.c (w32font_open_internal): Change last argument from
16703 w32font_info struct to font object. Fill in font object from
16704 font_entity. Get Outline metrics if possible. Use them to
16705 calculate underline position and thickness. Use xlfd name as name
16706 property. Don't set codepage.
16707 (w32font_open): Pass font_object to w32font_open_internal. Don't
16708 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16709 (w32font_draw): Use s->font.
16710 (clear_cached_metrics): Don't clear non-existent blocks.
16711
16712 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16713 font was not found.
16714 (x_draw_glyph_string): Use underline position and thickness from font.
16715
16716 * w32uniscribe.c (uniscribe_open): Pass font_object to
16717 w32font_open_internal.
16718
167192008-05-14 Kenichi Handa <handa@m17n.org>
16720
16721 These changes are to delete all legacy font-handling codes, and
16722 make Emacs use only font-backends.
16723
16724 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16725 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16726
16727 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16728
16729 * charset.h (Vcharset_non_preferred_head)
16730 (Vcurrent_iso639_language): Extern them.
16731
16732 * charset.c (Vcharset_non_preferred_head): New variable.
16733 (Vcurrent_iso639_language): New variable.
16734 (syms_of_charset): Declare it as a Lisp variable.
16735 (char_charset): Don't check non preferred charsets. As a last
16736 resort, return charset_unicode.
16737 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16738
16739 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16740 conditionals. Don't check enable_font_backend. Delete all codes
16741 used only when USE_FONT_BACKEND is not defined.
16742
16743 * dispextern.h (struct glyph_string): Change type of `font' to
16744 `struct font *'.
16745 (struct glyph_string): New member underline_position and
16746 underline_thickness.
16747 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16748 (struct face): Change type of `font' to `struct font *'. Remove
16749 members `font_name', `font_info_id'.
16750 (per_char_metric, encode_char): Delete externs.
16751 (calc_pixel_width_or_height): Adjust the prototype.
16752
16753 * emacs.c (enable_font_backend): Delete extern.
16754 (main): Don't set enable_font_backend. Don't check the command
16755 line argument "-disable-font-backend".
16756
16757 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16758 (enum font_property_index): New members FONT_DPI_INDEX,
16759 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16760 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16761 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16762 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16763 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16764 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16765 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16766 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16767 (struct font_spec, struct font_entity): New structs.
16768 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16769 (struct font): Many members from old "struct font_info" moved to
16770 here. Members font and entity deleted.
16771 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16772 the new font-related objects.
16773 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16774 (CHECK_FONT_GET_OBJECT): Likewise.
16775 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16776 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16777 (struct font_driver): New members case_sensitive anc check. Type
16778 of the member list and open changed.
16779 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16780 (font_symbolic_width, font_find_object, font_get_spec)
16781 (font_set_lface_from_name): Delete extern.
16782 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16783
16784 * font.c: Include <strings.h>.
16785 (enable_font_backend): Delete it.
16786 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16787 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16788 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16789 (null_string): Delete it.
16790 (null_vector): Make it static.
16791 (font_family_alist): Delete it.
16792 (Qnormal): Extern it.
16793 (QCextra, QClanguage): Delete it.
16794 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16795 (font_make_spec, font_make_entity, font_make_object)
16796 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16797 the string. Callers changed.
16798 (font_pixel_size): Adjusted for the format change of font-related
16799 objects.
16800 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16801 (font_style_to_value, font_style_symbolic): New function.
16802 (build_font_family_alist): Delete it.
16803 (font_registry_charsets): Use Fassoc_string instead of
16804 assq_no_quit.
16805 (font_prop_validate_symbol): Don't return null_string.
16806 (font_prop_validate_style): Adjusted for the change of
16807 style-related values in a font vector.
16808 (font_property_table): Delete entries for QClanguage and
16809 QCantialias, add entries for QCavgwidth.
16810 (get_font_prop_index): Delete the 2nd argument FROM.
16811 (font_prop_validate): Arguments changed.
16812 (font_put_extra): Adjusted for the change of font-related objects.
16813 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16814 (font_parse_fcname, font_unparse_fcname)
16815 (font_prepare_composition): Likewise.
16816 (font_parse_family_registry): Renamed from font_merge_old_spec.
16817 (otf_open): Delete the 1st arg entity.
16818 (font_otf_capability): Adjusted for the above change.
16819 (font_score): New arg alternate_families. Adjusted for the change
16820 of font-related objects.
16821 (font_sort_entites): New arg best_only.
16822 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16823 Delete them.
16824 (font_match_p): Check alternate families.
16825 (font_find_object): Delete it.
16826 (font_check_object): New function.
16827 (font_clear_cache): Adjusted for the change of font-related objects.
16828 (font_delete_unmatched): New arg.
16829 (font_list_entities): Call font_driver->list with a spec that
16830 doesn't specify style-related properties.
16831 (font_matching_entity): Arguments changed. Caller changed.
16832 (font_open_entity): Adjusted for the change of font-related objects.
16833 (font_close_object, font_has_char, font_encode_char)
16834 (font_get_name, font_get_spec): Likewise.
16835 (font_spec_from_name, font_clear_prop, font_update_lface):
16836 New functions.
16837 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16838 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16839 (font_at): Adjusted for the change of font-related objects.
16840 (font_range): New function.
16841 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16842 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16843 (Fcopy_font_spec, Fmerge_font_spec): New function.
16844 (Ffont_family_list): Renamed from list-families.
16845 (Finternal_set_font_style_table): Arguments changed.
16846 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16847 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16848 change of font-related objects.
16849 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16850
16851 * fontset.h (struct font_info): Delete it. Most members go to
16852 struct font.
16853 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16854 (enum FONT_SPEC_INDEX): Delete it.
16855 (font_info, list_fonts_func, load_font_func, query_font_func)
16856 (set_frame_fontset_func, find_ccl_program_func)
16857 (get_font_repertory_func, new_fontset_from_font_name): Delete
16858 externs.
16859 (fontset_from_font_name): Extern it.
16860 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16861 (FONT_INFO_FROM_FACE): Deleted.
16862 (face_for_font): Adjust prototype.
16863
16864 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16865 conditionals. Don't check enable_font_backend. Delete all codes
16866 used only when USE_FONT_BACKEND is not defined.
16867 (get_font_info_func, list_font_func, load_font_func)
16868 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16869 (get_font_repertory_func): Delete them.
16870 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16871 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16872 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16873 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16874 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16875 (fontset_compare_rfontdef): New function.
16876 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16877 rfont-defs by qsort. Adjusted for the change of font-group vector.
16878 (load_font_get_repertory): Deleted.
16879 (fontset_find_font): Use new macros to ref/set elements of
16880 font-def and rfont-def.
16881 (fontset_font): Fix the timing of remembering that no font for C.
16882 (free_face_fontset): Do nothing if the face has no fontset.
16883 (face_suitable_for_char_p): Use new macros to ref/set elements of
16884 rfont-def.
16885 (face_for_char): Likewise. Call face_for_char with font_object.
16886 (fs_load_font): Delete. Delete #pragma surrounding it.
16887 (fs_query_fontset): Use strcasecmp instead of strcmp.
16888 (generate_ascii_font_name): Adjusted for the format change of
16889 font-spec.
16890 (Fset_fontset_font): Likewise. Use new macros to set elements of
16891 font-def.
16892 (Fnew_fontset): Use font_unparse_xlfd to generate
16893 FONTSET_ASCII (fontset).
16894 (new_fontset_from_font_name): Deleted.
16895 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16896 a fontset is already created for the font. FIx updating of
16897 Vfontset_alias_alist.
16898 (fontset_ascii_font): Deleted.
16899 (Ffont_info): Adjusted for the format change of font-spec.
16900 (Finternal_char_font): Likewise.
16901 (Ffontset_info): Likewise.
16902 (syms_of_fontset): Don't check load_font_func.
16903
16904 * fns.c (internal_equal): Handle PREV_FONT.
16905
16906 * frame.h: Delete USE_FONT_BACKEND conditional.
16907
16908 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16909 conditionals. Don't check enable_font_backend. Delete all codes
16910 used only when USE_FONT_BACKEND is not defined.
16911 (x_set_font): Call x_new_font, not x_new_fontset2.
16912 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16913 already set for the frame.
16914
16915 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16916 a font-entity by font_make_entity. Use font_intern_prop instead
16917 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16918 font property. If a font is scalable, set avgwidth property to 0.
16919 Set font-entity property by font_put_extra.
16920 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16921 (ffont_driver): Adjusted for the change of struct font_driver.
16922 (ftfont_spec_pattern): New function.
16923 (ftfont_list): Return a list, not vector.
16924 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16925 (ftfont_list_family): Don't downcase names.
16926 (ftfont_free_entity): Deleted.
16927 (ftfont_open): Return a font-object. Adjusted for the change of
16928 struct font. Get underline_thickness and underline_position from
16929 font property. Don't update dpyinfo->smallest_font_height and
16930 dpyinfo->smallest_char_width.
16931 (ftfont_close): Don't free `struct font'.
16932 (ftfont_has_char): Adjusted for the format change of font-entity.
16933 (ftfont_encode_char, ftfont_text_extents): Likewise.
16934
16935 * ftxfont.c (ftxfont_list): Return a list, not vector.
16936 (ftxfont_open): Return a font-object. Adjusted for the change of
16937 struct font. Get underline_thickness and underline_position from
16938 font property. Don't update dpyinfo->smallest_font_height and
16939 dpyinfo->smallest_char_width.
16940 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16941 (ftxfont_draw): Adjusted for the change of struct font.
16942
16943 * image.c (image_ascent): Don't include "charset.h". Include
16944 "character.h" and "font.h".
16945
16946 * lisp.h (enum pvec_type): New member PREV_FONT.
16947 (Fassoc_string): EXFUN it.
16948
16949 * print.c: Include font.h.
16950 (print_object): Handle font-related objects.
16951
16952 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16953 conditionals. Don't check enable_font_backend. Delete all codes
16954 used only when USE_FONT_BACKEND is not defined.
16955 (handle_auto_composed_prop): Do nothing if it->f is not on a
16956 window system. Check how many following characters can be
16957 displayed by the same font.
16958 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16959 'struct font *'.
16960 (get_char_face_and_encoding): Assign the whole encoding task to
16961 the `encode-char' method of a font driver.
16962 (fill_composite_glyph_string): Adjusted for the change of `struct
16963 face' and `struct glyph_string'.
16964 (fill_glyph_string): Likewise.
16965 (get_per_char_metric): Arguments changed.
16966 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16967 and `struct glyph_string'.
16968 (produce_stretch_glyph, calc_line_height_property)
16969 (x_produce_glyphs): Likewise.
16970
16971 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16972 conditionals. Don't check enable_font_backend. Delete all codes
16973 used only when USE_FONT_BACKEND is not defined. Use
16974 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16975 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16976 (Qp): Extern them.
16977 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16978 Deleted.
16979 (struct font_name): Deleted.
16980 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16981 (compare_fonts_by_sort_order): New function.
16982 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16983 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16984 Deleted.
16985 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16986 compare_fonts_by_sort_order.
16987 (Fx_font_family_list): Call Ffont_family_list.
16988 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16989 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16990 (face_symbolic_slant, face_symbolic_swidth)
16991 (split_font_name_into_vector, build_font_name_from_vector)
16992 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16993 (font_rescale_ratio, split_font_name, build_font_name)
16994 (free_font_names, sort_fonts, x_face_list_fonts)
16995 (face_font_available_p, sorted_font_list, cmp_font_names)
16996 (font_list_1, concat_font_list, font_list, remove_duplicates):
16997 Deleted.
16998 (Fx_list_fonts): Use Ffont_list.
16999 (LFACE_AVGWIDTH): Deleted.
17000 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17001 by FONTP.
17002 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17003 (set_lface_from_font_name): Delete it.
17004 (set_lface_from_font): Renamed from
17005 set_lface_from_font_and_fontset. Caller changed. Don't set
17006 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17007 for face.
17008 (merge_face_vectors): Copy font-spec if necessary.
17009 Clear properties of the font-spec if necessary.
17010 (merge_face_ref): Clear properties of the font-spec if necessary.
17011 (Finternal_set_lisp_face_attribute): Likewise.
17012 (set_font_frame_param): Use font_load_for_lface to load a
17013 font-object, and call Fmodify_frame_parameters with it.
17014 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17015 font name by Ffont_xlfd_name.
17016 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17017 QCslant, and QCwidth.
17018 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17019 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17020 Compare fonts by EQ.
17021 (lookup_non_ascii_face): Deleted.
17022 (face_for_font): The 2nd argument changed.
17023 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17024 Check atomic font properties by case insensitive.
17025 (realize_non_ascii_face): Set face->overstrike correctly.
17026 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17027 (dump_realized_face): Get font name from
17028 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17029
17030 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17031 conditionals. Don't check enable_font_backend. Delete all codes
17032 used only when USE_FONT_BACKEND is not defined.
17033 (xic_create_xfontset): Original code deleted and renamed from
17034 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17035 (x_make_gc): Don't set GCFont in GCs.
17036 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17037 opened by "fixed".
17038 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17039 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17040 get_font_repertory_func.
17041
17042 * xfont.c: Include <stdlib.h> and "ccl.h".
17043 (struct xfont_info): New structure.
17044 (xfont_query_font): Deleted.
17045 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17046 moved from xterm.c.
17047 (xfont_driver): Adjusted for the change of struct font_driver.
17048 (compare_font_names): New function.
17049 (xfont_list_pattern): Sort font names case insensitively. Make
17050 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17051 (xfont_list): Return a list, not vector.
17052 (xfont_match): If the font doesn't have QCname property, generate
17053 a name from the other font properties.
17054 (xfont_open): Return a font-object. Adjusted for the change of
17055 struct font. Get underline_thickness and underline_position from
17056 font property. Don't update dpyinfo->smallest_font_height and
17057 dpyinfo->smallest_char_width.
17058 (xfont_close): Don't free struct font.
17059 (xfont_prepare_face): Adjusted for the change of struct font.
17060 (xfont_done_face): Deleted.
17061 (xfont_has_char): Adjusted for the change of struct font.
17062 (xfont_encode_char, xfont_draw): Likewise.
17063 (xfont_check): New function.
17064
17065 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17066 callback function.
17067 (xftfont_match): Adjusted for the format change of font-entity.
17068 (xftfont_open): Adjusted for the format change of font-entity and
17069 font-object. Adjusted for the change of struct font. Return a
17070 font-object. Don't update dpyinfo->smallest_font_height and
17071 dpyinfo->smallest_char_width.
17072 (xftfont_close): Block input while calling XftFontClose.
17073 (xftfont_prepare_face): Don't block input while calling
17074 xftfont_get_colors. Adjusted for the change of struct font.
17075 (xftfont_shape): Return value of error case fixed.
17076
17077 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17078
17079 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17080 conditionals.
17081 (FONT_WIDTH): Return (f)->max_width.
17082 (struct x_display_info): Delete member `font'.
17083 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17084 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17085 (struct x_output): Change type of `font' to `struct font *'.
17086
17087 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17088 conditionals. Don't check enable_font_backend. Delete all codes
17089 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17090 (x_per_char_metric, x_encode_char): Deleted.
17091 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17092 (x_compute_glyph_string_overhangs): Adjusted for the change of
17093 `struct face'.
17094 (x_draw_glyph_string_foreground)
17095 (x_draw_composite_glyph_string_foreground): Likewise.
17096 (x_draw_glyph_string): Likewise. Use font->underline_position and
17097 font->underline_thickness.
17098 (x_new_font): Renamed from x_new_fontset2.
17099 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17100 (x_check_font): Call `check' method of a font driver.
17101 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17102 (x_query_font, x_get_font_repertory): Deleted.
17103 (x_find_ccl_program): Renamed and moved to xfont.c.
17104 (x_redisplay_interface): Adjusted for the change of `struct
17105 redisplay_interface'.
17106
17107 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17108 conditionals. Don't check enable_font_backend. Delete all codes
17109 used only when USE_FONT_BACKEND is not defined. Surround non-used
17110 code by "#ifdef OLD_FONT" and "endif".
17111 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17112
17113 * w32font.h (struct w32font_info): New member.
17114 (FONT_COMPAT): New macro.
17115 (w32font_open_internal): Prototype adjusted.
17116
17117 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17118 OLD_FONT" and "endif".
17119
17120 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17121 conditionals. Don't check enable_font_backend. Delete all codes
17122 used only when USE_FONT_BACKEND is not defined.
17123 (w32font_open): Return a font-object. Make a font-object by
17124 font_make_object. Adjusted for the change of struct w32font_info.
17125 (w32font_close): Don't free struct font. Adjusted for the change
17126 of struct w32font_info.
17127 (w32font_encode_char, w32font_text_extents, w32font_draw):
17128 Adjusted for the change of struct w32font_info.
17129 (w32font_draw): Likewise.
17130 (w32font_list_internal): Return a list, not vector.
17131 (w32font_open_internal): Change the 4th arg to font-object.
17132 Adjusted for the change of struct w32font_info and font-object format.
17133 (add_font_name_to_list): Don't downcase names.
17134 (w32_enumfont_pattern_entity): Make a font-entity by
17135 font_make_entity. Adjusted for the format change of font-entity.
17136 Use FONT_SET_STYLE to set a style-related font property. If a
17137 font is scalable, set avgwidth property to 0. Set font-entity
17138 property by font_put_extra.
17139 (font_matches_spec): Adjusted for the format change of font-entity.
17140 (w32_weight_table, w32_decode_weight): New variables.
17141 (w32_encode_weight): New function.
17142 (fill_in_logfont): Adjusted for the format change of font-spec.
17143 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17144 weight value.
17145 (w32font_driver): Adjusted for the change of struct font_driver.
17146
17147 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17148 conditionals. Don't check enable_font_backend. Surround non-used
17149 code by "#ifdef OLD_FONT" and "endif".
17150 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17151 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17152
17153 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17154 conditionals. Don't check enable_font_backend. Delete all codes
17155 used only when USE_FONT_BACKEND is not defined. Surround non-used
17156 code by "#ifdef OLD_FONT" and "endif".
17157
17158 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17159 (uniscribe_open): Return value changed to font-object.
17160 Adjusted for the format change of font-object.
17161 (uniscribe_otf_capability): Adjusted for the change of struct font.
17162 (add_opentype_font_name_to_list): Don't downcase names.
17163 (uniscribe_font_driver): Adjusted for the change of struct
17164 font_driver.
17165
171662008-05-13 Chong Yidong <cyd@stupidchicken.com>
17167
17168 * dispnew.c (update_frame_1): Check if tty output is still valid
17169 before flushing it.
17170
171712008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17172
17173 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17174 to Gtk+ menus.
17175
171762008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17177
17178 * dired.c (file_name_completion): Tweak the code so as to always do it
17179 in a single pass. Tighten the scope of some variables.
17180
17181 * dired.c (Qdefault_directory): New var.
17182 (file_name_completion): Use it instead of Fexpand_file_name.
17183 (syms_of_dired): Initialize it.
17184
171852008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17186
17187 * fileio.c (double_dollars): Remove dead code.
17188
171892008-05-10 Eli Zaretskii <eliz@gnu.org>
17190
17191 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17192 Mention w32-get-true-file-attributes in doc string.
17193
17194 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17195
171962008-05-09 Glenn Morris <rgm@gnu.org>
17197
17198 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17199 2008-04-23.
17200
172012008-05-09 Eli Zaretskii <eliz@gnu.org>
17202
17203 Support for reporting owner and group of each file on MS-Windows:
17204 * dired.c (stat_uname, stat_gname): New functions, with special
17205 implementation for w32.
17206 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17207
17208 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17209 (dflt_group_name): New static variable.
17210 (dflt_group): Rename from the_group.
17211 (init_user_info): Init dflt_group fields. Get user's group name
17212 from LookupAccountSid.
17213 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17214 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17215 New initialization states.
17216 (globals_of_w32): Initialize them to zero. Initialize the default
17217 group name to "None".
17218 (GetFileSecurity_Name): New global var, the name of the function
17219 to call for GetFileSecurity.
17220 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17221 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17222 (get_file_security, get_security_descriptor_owner)
17223 (get_security_descriptor_group, is_valid_sid)
17224 (get_file_security_desc, get_rid, get_name_and_id)
17225 (get_file_owner_and_group): New functions.
17226 (stat): Use get_file_security_desc and get_file_owner_and_group to
17227 report the owner and primary group of each file. Don't ignore the
17228 high 32 bits of file's size, now that st_size is 64-bit wide.
17229 Fix test when to get true file attributes.
17230 (init_user_info): Use get_rid instead of equivalent inline code.
17231 (fstat): Don't ignore the high 32 bits of file's size.
17232
172332008-05-09 Chong Yidong <cyd@stupidchicken.com>
17234
17235 * image.c (png_load): Use correct bit-depth for setting background
17236 color.
17237
172382008-05-08 Eli Zaretskii <eliz@gnu.org>
17239
17240 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17241 epa-hook.elc.
17242
172432008-05-08 Juanma Barranquero <lekktu@gmail.com>
17244
17245 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17246
172472008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17248
17249 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17250 because the original parameters are in pure storage now.
17251 (mac_window): Remove unused params. Update callers.
17252
172532008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17254
17255 * lread.c (substitute_object_recurse): Use lower-level primitives.
17256 Don't signal errors when traversing sub-char-tables.
17257 Don't loop over all the possible characters when traversing char-tables.
17258
17259 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17260 just like we do in print.c.
17261
172622008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17263
17264 * minibuf.c (Ftry_completion): Remove code left over from when we used
17265 scmp instead of Fcompare_strings.
17266
172672008-05-04 Juanma Barranquero <lekktu@gmail.com>
17268
17269 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17270
172712008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17272
17273 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17274 Create bitmap context in native byte order.
17275
17276 * macterm.c (XDrawLine)
17277 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17278 context in native byte order.
17279
172802008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17281
17282 * config.in: Regenerate.
17283
17284 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17285 New definitions for Image I/O support.
17286 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17287 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17288 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17289 (mac_data_provider_release_data, image_load_image_io)
17290 [USE_MAC_IMAGE_IO]: New functions.
17291 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17292 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17293 (init_image_func_pointer) [MAC_OSX]: Remove function.
17294 (image_load_quartz2d) [MAC_OSX]: Check availability of
17295 CGImageCreateWithPNGDataProvider at compile time.
17296 Use lowercase `false' for boolean constant.
17297 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17298 Use image_load_image_io.
17299 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17300 Don't check MyCGImageCreateWithPNGDataProvider.
17301 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17302 Don't call init_image_func_pointer.
17303
17304 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17305
17306 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17307 Make variable non-static.
17308 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17309 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17310
17311 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17312 (RED_FROM_ULONG): Mask off higher bits.
17313 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17314
17315 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17316 Include AvailabilityMacros.h.
17317 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17318 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17319
173202008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17321
17322 * chartab.c (Fset_char_table_range): If range is t, really set all
17323 chars to that value.
17324
173252008-05-03 Eli Zaretskii <eliz@gnu.org>
17326
17327 * dired.c (Ffile_attributes): Don't allow the device number become
17328 negative.
17329
173302008-05-02 Daiki Ueno <ueno@unixuser.org>
17331
17332 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17333
173342008-05-02 Juri Linkov <juri@jurta.org>
17335
17336 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17337 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17338 DEFAULT argument as a list of default values in docstrings.
17339
173402008-05-01 Chong Yidong <cyd@stupidchicken.com>
17341
17342 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17343
173442008-05-01 Martin Rudalics <rudalics@gmx.at>
17345
17346 * dispnew.c (change_frame_size_1): Preserve small windows when
17347 shrinking frames by calling set_window_height|width with third
17348 arg 2.
17349
17350 * window.h (struct window): Replace field too_small_ok by field
17351 resize_proportionally.
17352
17353 * window.c (make_window): Initialize resize_proportionally.
17354 (enlarge_window): Temporarily set resize_proportionally to make
17355 sure that shrink_windows does scale the window proportionally.
17356 (shrink_windows): When window has resize_proportionally set try
17357 to shrink it proportionally by stealing from other windows.
17358 (struct saved_window, Fset_window_configuration)
17359 (compare_window_configurations): Handle resize_proportionally.
17360 (WINDOW_TOTAL_SIZE): New macro.
17361 (window_min_size, shrink_windows, size_window): Use it.
17362 (check_min_window_sizes): Remove. Invalid values of
17363 window-min-height|width are handled by window_min_size_2 now.
17364 (size_window, Fsplit_window, enlarge_window)
17365 (adjust_window_trailing_edge, grow_mini_window): Don't call
17366 check_min_window_sizes.
17367 (window_min_size_2, window_min_size_1, window_min_size):
17368 New argument safe_p for retrieving "safe" minimum sizes.
17369 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17370 (adjust_window_trailing_edge, grow_mini_window):
17371 Adjust arguments of window_min_size... functions.
17372 (shrink_windows): Argument min_size removed. New argument
17373 safe_p allows shrinking windows to their safe minimum sizes.
17374 Calculate minimum size and decide whether a window shall be
17375 deleted for each window individually.
17376 (size_window): When nodelete_p equals 2, tell shrink_windows to
17377 delete windows only if their new minimum size is no more safe.
17378 (shrink_window_lowest_first): Call window_min_size_1 to make
17379 sure to preserve modeline of bottom-most window when resizing
17380 the minibuffer.
17381 (Fset_window_configuration, Fcurrent_window_configuration)
17382 (compare_window_configurations): Do not handle
17383 window-min-height|width any more.
17384 (syms_of_window): Clarify window-min-height|width doc-strings.
17385
173862008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17387
17388 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17389 some more. Copy some of the code from Ftry_completions.
17390 Remove special case code that dates back to initial revision when the
17391 slash was only added when necessary and that can't trigger nowadays.
17392
173932008-04-27 Kenichi Handa <handa@m17n.org>
17394
17395 * font.c (font_prop_validate): Signal `error' instead of `font'.
17396
173972008-04-29 Jason Rumney <jasonr@gnu.org>
17398
17399 * w32fns.c (Fw32_battery_status): New defun.
17400 (syms_of_w32fns): Defsubr it.
17401
174022008-04-28 Andreas Schwab <schwab@suse.de>
17403
17404 * dired.c (file_name_completion): Fix another mixing of encoded
17405 and decoded names.
17406
174072008-04-28 Juanma Barranquero <lekktu@gmail.com>
17408
17409 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17410
174112008-04-27 Juanma Barranquero <lekktu@gmail.com>
17412
17413 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17414
174152008-04-27 Andreas Schwab <schwab@suse.de>
17416
17417 * dired.c (file_name_completion): Fix inappropriate mixing of
17418 encoded and decoded names.
17419
17420 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17421
17422 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17423
174242008-04-26 Eli Zaretskii <eliz@gnu.org>
17425
17426 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17427 2008-03-31, it's not needed anymore with `struct stat' definition
17428 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17429 for the same reasons.
17430
174312008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17432
17433 * m/sparc.h: Additional redefinitions for GNU/Linux.
17434
174352008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17436
17437 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17438 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17439 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17440 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17441 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17442 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17443 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17444 Likewise.
17445
17446 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17447 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17448 (mac_ax_number_of_characters): Add externs.
17449 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17450 [USE_MAC_TSM]: Likewise.
17451 (mac_handle_text_input_event) [MAC_OSX]:
17452 Handle kEventTextInputOffsetToPos for no active input area case.
17453 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17454 (mac_handle_document_access_event)
17455 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17456 (install_application_handler) [MAC_OSX]: Register handlers for
17457 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17458 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17459 Register mac_handle_document_access_event.
17460
17461 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17462 Make functions non-static.
17463
174642008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17465
17466 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17467 (read_file_name_completion_ignore_case, insert_default_directory)
17468 (Qdefault_directory): Move to minibuffer.el.
17469 (Fread_file_name): Call the new `read-file-name' instead.
17470
174712008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17472
17473 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17474 Make function non-static.
17475 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17476 Remove function.
17477 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17478 Move to mactoolbox.c.
17479 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17480
17481 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17482 (mac_rect_make): New macro.
17483
17484 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17485 instead of float.
17486 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17487 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17488 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17489 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17490 CGRectMake.
17491 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17492 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17493 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17494 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17495 instead of WindowRef in argument type.
17496 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17497 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17498 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17499 instead of DISPLAY. All uses changed.
17500 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17501 (x_calc_absolute_position): Simplify so as not to use
17502 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17503
17504 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17505 instead of WindowRef in argument type.
17506 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17507 [TARGET_API_MAC_CARBON]: Remove externs.
17508 (create_apple_event, mac_event_parameters_to_lisp)
17509 [TARGET_API_MAC_CARBON]: Add externs.
17510
17511 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17512 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17513 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17514 is clicked.
17515 (x_activate_menubar): Remove extern for saved_menu_event_location.
17516 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17517 Move from mac.c.
17518
175192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17520
17521 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17522 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17523
175242008-04-23 Jason Rumney <jasonr@gnu.org>
17525
17526 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17527 attributes only for local files.
17528
17529 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17530 default to Qlocal.
17531
175322008-04-22 Juri Linkov <juri@jurta.org>
17533
17534 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17535 read-buffer-to-switch instead of using the letter "B".
17536
175372008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17538
17539 * fileio.c (Qdefault_directory): New variable.
17540 (Fread_file_name): Use it to pass `dir' to the completion functions.
17541
175422008-04-20 Chong Yidong <cyd@stupidchicken.com>
17543
17544 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17545
175462008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17547
17548 * keyboard.c (Vpre_help_message): Remove.
17549 (show_help_echo): Remove default C code.
17550
17551 * dired.c (directory_files_internal, file_name_completion):
17552 Only call ENCODE_FILE if the string is indeed decoded.
17553
175542008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17555
17556 * Makefile.in (TOOLKIT_DEFINES): Remove.
17557 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17558
175592008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17560
17561 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17562 (mactoolbox.o): New target.
17563
17564 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17565 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17566
17567 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17568 Use mac_set_frame_window_background instead of XSetWindowBackground.
17569 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17570 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17571 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17572 instead of SetWindowTitleWithCFString.
17573 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17574 Move function to mactoolbox.c.
17575 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17576 Use mac_set_window_modified instead of SetWindowModified.
17577 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17578 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17579 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17580 FrontNonFloatingWindow. Use mac_activate_window instead of
17581 ActivateWindow. Use mac_active_non_floating_window instead of
17582 ActiveNonFloatingWindow.
17583 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17584 Use mac_show_hourglass and mac_hide_hourglass.
17585 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17586 instead of GetGlobalMouse.
17587 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17588 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17589 Use mac_bring_window_to_front instead of BringToFront.
17590 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17591 mactoolbox.c.
17592 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17593 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17594 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17595 mactoolbox.c.
17596
17597 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17598 (XtPointer): Move typedef from macmenu.c.
17599 (enum button_type): Move enum from macmenu.c.
17600 (widget_value): Move typedef from macmenu.c.
17601 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17602 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17603 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17604 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17605 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17606 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17607 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17608 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17609 (Selection): Move typedef from macselect.c.
17610 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17611 macterm.c.
17612 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17613 (mac_is_window_collapsed, mac_bring_window_to_front)
17614 (mac_send_window_behind, mac_hide_window, mac_show_window)
17615 (mac_collapse_window, mac_front_non_floating_window)
17616 (mac_active_non_floating_window, mac_activate_window)
17617 (mac_move_window_structure, mac_move_window, mac_size_window)
17618 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17619
17620 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17621 (enum mac_menu_kind): Move enum to mactoolbox.c.
17622 (min_menu_id): Move variable to mactoolbox.c.
17623 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17624 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17625 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17626 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17627 [TARGET_API_MAC_CARBON]: Likewise.
17628 (XtPointer): Move typedef to macgui.h.
17629 (enum button_type): Move enum to macgui.h.
17630 (widget_value): Move typedef to macgui.h.
17631 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17632 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17633 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17634 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17635 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17636 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17637 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17638 (popup_activated_flag): Make variable non-static.
17639 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17640 (add_menu_item, fill_menu, dispose_menus):
17641 Move functions to mactoolbox.c.
17642 (restore_show_help_function, menu_target_item_handler)
17643 (install_menu_target_item_handler, mac_handle_dialog_event)
17644 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17645 [TARGET_API_MAC_CARBON]: Likewise.
17646 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17647 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17648 (find_and_call_menu_selection, name_is_separator): Make function
17649 non-static.
17650 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17651 to mactoolbox.c.
17652 (set_frame_menubar): Don't call install_menu_quit_handler.
17653 (menu_item_selection): New variable.
17654 (mac_menu_show): Use create_and_show_popup_menu.
17655 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17656 selection but set variable menu_item_selection. All uses changed.
17657 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17658 Call install_menu_quit_handler. Move to mactoolbox.c.
17659
17660 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17661 (Selection): Move typedef to macgui.h.
17662 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17663 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17664 Make variables non-static.
17665 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17666 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17667 Make functions non-static.
17668 (Vmac_service_selection) [MAC_OSX]: Likewise.
17669 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17670 (mac_valid_selection_target_p, mac_clear_selection)
17671 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17672 (mac_put_selection_value, mac_selection_has_target_p)
17673 (mac_get_selection_value, mac_get_selection_target_list)
17674 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17675 Move functions to mactoolbox.c.
17676 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17677 Likewise.
17678 (copy_scrap_flavor_data, mac_handle_service_event)
17679 (install_service_handler) [MAC_OSX]: Likewise.
17680 (syms_of_macselect) <Vmac_dnd_known_types>:
17681 Use mac_dnd_default_known_types.
17682
17683 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17684 Move to mactoolbox.c.
17685 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17686 (Fx_selection_owner_p): Add EXFUN.
17687 (install_window_handler, remove_window_handler, XSetWindowBackground):
17688 Remove externs.
17689 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17690 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17691 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17692 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17693 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17694 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17695 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17696 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17697 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17698 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17699 (mac_valid_selection_target_p, mac_clear_selection)
17700 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17701 (mac_put_selection_value, mac_selection_has_target_p)
17702 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17703 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17704 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17705 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17706 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17707 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17708 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17709 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17710 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17711
17712 * mactoolbox.c: New file.
17713
177142008-04-18 Jason Rumney <jasonr@gnu.org>
17715
17716 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17717
177182008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17719
17720 * character.c (Fmultibyte_char_to_unibyte):
17721 Return latin1 chars unchanged.
17722
17723 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17724 relocated if it points to `name'.
17725
177262008-04-17 Kenichi Handa <handa@m17n.org>
17727
17728 * data.c (Faset): Allow setting a multibyte character in an
17729 ASCII-only unibyte string.
17730
17731 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17732
177332008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17734
17735 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17736 done in config.h.
17737
177382008-04-16 Juanma Barranquero <lekktu@gmail.com>
17739
17740 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17741 (Fchar_direction): Add usage in the docstring.
17742
177432008-04-15 Chong Yidong <cyd@stupidchicken.com>
17744
17745 * keyboard.c (read_key_sequence): Remove always-true checks.
17746
177472008-04-14 Jason Rumney <jasonr@gnu.org>
17748
17749 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17750 compatibility struct, for better underline positioning.
17751
177522008-04-13 David Hansen <david.hansen@gmx.net>
17753
17754 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17755 string.
17756
177572008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17758
17759 * m/hp800.h (XUINT, XSET): Remove.
17760
177612008-04-12 Juanma Barranquero <lekktu@gmail.com>
17762
17763 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17764 previous change.
17765
177662008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17767
17768 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17769 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17770
177712008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17772
17773 * keymap.h (map_keymap_canonical): Declare.
17774 * xmenu.c (single_keymap_panes): Use it.
17775
177762008-04-11 Glenn Morris <rgm@gnu.org>
17777
17778 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17779 set the target's value to that of the alias.
17780
177812008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17782
17783 * term.c (set_tty_color_mode): Left over typo.
17784
177852008-04-10 Michael Albinus <michael.albinus@gmx.de>
17786
17787 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17788 only after check for file name handler functions. Signal, when
17789 native functionality is not supported.
17790 (syms_of_fileio): Declare it unconditionally.
17791
177922008-04-10 Jason Rumney <jasonr@gnu.org>
17793
17794 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17795 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17796
17797 * w32.c (logon_network_drive): Also logon to remote drives that
17798 are mapped to drive letters.
17799
178002008-04-10 Glenn Morris <rgm@gnu.org>
17801
17802 * xdisp.c (truncate-partial-width-windows): Doc fix.
17803
178042008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17805
17806 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17807 Move functions to minibuffer.el.
17808 (syms_of_fileio): Don't declare them.
17809
178102008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17811
17812 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17813 (syms_of_minibuf): Remove its initialization.
17814
17815 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17816
178172008-04-09 Juanma Barranquero <lekktu@gmail.com>
17818
17819 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17820
178212008-04-09 Jason Rumney <jasonr@gnu.org>
17822
17823 * makefile.w32-in (distclean): Delete makefile too.
17824 (maintainer-clean): New target.
17825
17826 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17827
17828 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17829 for new font backend and composite cases.
17830
178312008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17832
17833 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17834 Most of the code moved to run_timers.
17835 (do_pending_atimers): Call run_timers.
17836 (run_timers): New function.
17837
17838 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17839 run atimers.
17840
17841 * process.c (wait_reading_process_output): The same as above.
17842
178432008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17844
17845 * minibuf.c (last_exact_completion): Remove variable.
17846 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17847 (complete_and_exit_1, complete_and_exit_2)
17848 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17849 (Fdisplay_completion_list, display_completion_list_1)
17850 (Fminibuffer_completion_help, Fself_insert_and_exit)
17851 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17852 minibuffer.el.
17853 (syms_of_minibuf): Remove corresponding initializations.
17854
17855 * keyboard.c (Qdeactivate_mark): New var.
17856 (command_loop_1): Use it to call `deactivate-mark'.
17857 (syms_of_keyboard): Initialize it.
17858
17859 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17860 to another frame.
17861 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17862 Don't call set_tty_color_mode.
17863 (store_frame_param): Reset previous_frame rather than call
17864 set_tty_color_mode.
17865 * term.c (set_tty_color_mode): Rewrite.
17866 * dispextern.h (set_tty_color_mode): New type.
17867 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17868
178692008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17870
17871 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17872 for generic chars, which do not exist any more in emacs-unicode.
17873
178742008-04-08 Michael Albinus <michael.albinus@gmx.de>
17875
17876 * coding.c (detect_coding_emacs_mule)
17877 (Ffind_operation_coding_system): Fix typo.
17878
178792008-04-08 Jason Rumney <jasonr@gnu.org>
17880
17881 * w32uniscribe.c (SNAME): Extract only symbol name.
17882
17883 * w32font.h (struct w32_metric_cache): New struct.
17884 (w32font_info): Use it.
17885 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17886 (CACHE_BLOCKSIZE): New constants.
17887
17888 * w32font.c (Qja, Qko, Qzh): New symbols.
17889 (syms_of_w32font): Initialise them.
17890 (font_matches_spec): Use them to filter by language.
17891 (recompute_cached_metrics): Remove function.
17892 (compute_metrics, clear_cached_metrics): New functions.
17893 (w32font_encode_char): Use them to manage metric cache.
17894 (w32font_text_extents): Cache metrics for all glyphs on demand.
17895 Delay converting glyph indices to WORD until needed.
17896 (w32font_open_internal): Initialize metric cache to empty.
17897 (registry_to_w32_charset): Charset should always be a symbol.
17898 (fill_in_logfont, list_all_matching_fonts): Family should
17899 always be a symbol.
17900
179012008-04-06 Jason Rumney <jasonr@gnu.org>
17902
17903 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17904 Give up if glyph indices not supported. Use uniscribe obtained
17905 ABC widths for individual metrics. Map glyph clusters back to
17906 characters using fClusterStart flag. Return number of glyphs
17907 produced, not chars processed.
17908 (uniscribe_shape): Map char at FROM to current glyph.
17909
179102008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17911
17912 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17913 Use SetMenuItemHierarchicalMenu.
17914
179152008-04-05 Jason Rumney <jasonr@gnu.org>
17916
17917 * image.c (pbm_load): Allow color values up to 65535.
17918 Throw an error if max_color_idx is outside the supported range.
17919 Report an error when image size is invalid.
17920 Read two bytes at a time when raw images have max_color_idx above 255.
17921
aac0c6e3
MR
179222008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17923
17924 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17925 append "CCL: Quitted" when the CCL program is quitted.
17926 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17927
17928 * ccl.h (struct ccl_program): New member quit_silently.
17929
179302008-04-05 Chong Yidong <cyd@stupidchicken.com>
17931
17932 * search.c (compile_pattern_1): Treat non-nil and non-string of
17933 search-spaces-regexp as nil.
17934
17935 * minibuf.c (Fassoc_string): Tweak docstring.
17936
179372008-04-05 Eli Zaretskii <eliz@gnu.org>
17938
17939 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17940 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17941 2008-03-14 to force inode be positive.
17942
17943 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17944 _S_* ones, since we now use our own sys/stat.h.
17945 (stat, fstat): Don't mangle the inode number.
17946 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17947
179482008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17949
17950 * frame.h (struct frame): Give one more bit to `visible' since we use
17951 values larger than 1 to indicate obscured frames on ttys.
17952
17953 * keymap.c (Qkeymap_canonicalize): New var.
17954 (Fmap_keymap_internal): New fun.
17955 (describe_map): Use keymap-canonicalize.
17956
17957 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17958 (Fundo_boundary): Set them.
17959 (syms_of_undo): Initialize them.
17960 (record_point): Use them instead of last_point_position*.
17961 (last_undo_buffer): Change type.
17962
179632008-04-04 Jason Rumney <jasonr@gnu.org>
17964
17965 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17966 (recompute_cached_metrics): Don't set ascent and descent per char.
17967
17968 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17969 (uniscribe_check_otf): Add GC protection before consing.
17970 Rearrange loop for counting features.
17971
179722008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17973
17974 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17975 buffer with byte-size of source buffer.
17976
179772008-04-03 Chong Yidong <cyd@stupidchicken.com>
17978
17979 * callint.c (Fcall_interactively): Handle temporary region even
17980 when shift-select-mode is off.
17981
179822008-04-03 Jason Rumney <jasonr@gnu.org>
17983
17984 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17985
179862008-04-03 Kenichi Handa <handa@m17n.org>
17987
17988 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17989 (CATEGORY_MASK_UTF_16): Likewise.
17990 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17991 binary file.
17992 (detect_coding): Add null-byte detection for a binary file.
17993 (detect_coding_system): Likewise.
17994
179952008-04-03 Jason Rumney <jasonr@gnu.org>
17996
17997 * w32uniscribe.c: New file.
17998
17999 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18000
18001 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18002
18003 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18004 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18005 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18006 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18007 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18008 (Qphonetic): New symbols.
18009 (syms_of_w32font): Initialize them.
18010 (font_supported_scripts): Use them.
18011 (w32font_list_family): List all charsets.
18012 (w32font_text_extents, recompute_cached_metrics): Fix metric
18013 calculations.
18014 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18015 Give opentype fonts their own format.
18016 (font_matches_spec): New arguments backend and logfont.
18017 Handle :otf spec for uniscribe backend.
18018 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18019 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18020
18021 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18022 font backend.
18023 (globals_of_w32fns): Initialize uniscribe font backend.
18024
18025 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18026 dependencies.
18027 (w32uniscribe.$(O)): New file to build.
18028 (FONT_OBJ): Include w32uniscribe.$(O).
18029 (LIBS): Add uniscribe libraries.
18030
18031 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18032
180332008-04-02 Chong Yidong <cyd@stupidchicken.com>
18034
18035 * callint.c (Vshift_select_mode): New var.
18036 (Finteractive): Document new ^ spec.
18037 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18038 is present.
18039
18040 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18041 (command_loop_1): Avoid running the direct display versions of
18042 forward-char and backward-char if shift-selection may occur.
18043 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18044 shift-translation takes place.
18045
18046 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18047 avoid clobbering by define-minor-mode.
18048
18049 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18050 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18051
18052 * syntax.c (Fforward_word): Add ^ interactive spec.
18053
18054 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18055 (Fscroll_right): Add ^ interactive spec.
18056
180572008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18058
18059 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18060
18061 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18062
18063 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18064
180652008-03-31 Juri Linkov <juri@jurta.org>
18066
18067 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18068
180692008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18070
18071 * gtkutil.c (xg_set_geometry): Fix indentation.
18072 (xg_resize_outer_widget): Remove.
18073 (x_wm_size_hint_off): Fix indentation.
18074 (xg_frame_set_char_size): Call flush_and_sync after
18075 gtk_window_resize.
18076 (x_wm_set_size_hint): Pass NULL as geometry window to
18077 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18078 Add menu bar and tool bar height to base height.
18079 (xg_update_frame_menubar, free_frame_menubar)
18080 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18081 (update_frame_tool_bar, free_frame_tool_bar):
18082 Change xg_resize_outer_widget to xg_frame_set_char_size.
18083
180842008-03-30 Michael Albinus <michael.albinus@gmx.de>
18085
18086 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18087 (Fdbus_call_method): New parameter TIMEOUT.
18088 (dbus-send-signal): Optimize UNGCPRO call.
18089
180902008-03-29 Juri Linkov <juri@jurta.org>
18091
18092 * window.c (Fdisplay_buffer): Move call to
18093 Vsplit_window_preferred_function out of conditions that check
18094 if window is eligible for vertical splitting.
18095 When Vsplit_window_preferred_function is non-nil, call it and use
18096 its non-nil return value as window. Otherwise, continue doing
18097 vertical splitting using Fsplit_window with arg horflag=nil.
18098 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18099 default value from `split-window' to nil.
18100
181012008-03-29 Juri Linkov <juri@jurta.org>
18102
18103 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18104 for interactive code letters 'b' and 'B'.
18105
181062008-03-29 Eli Zaretskii <eliz@gnu.org>
18107
18108 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18109 multibyte string.
18110
181112008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18112
18113 * keyboard.c (pending_funcalls): New var.
18114 (timer_check): Run it.
18115 (syms_of_keyboard): Initialize it.
18116 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18117 (Vdelete_terminal_functions): New vars.
18118 (syms_of_terminal): Initialize them.
18119 (Fdelete_terminal): Run delete-terminal-functions.
18120 * xdisp.c (safe_eval): Rewrite.
18121 (safe_call2): New fun.
18122 * frame.c (Qdelete_frame_functions): New var.
18123 (syms_of_frame): Initialize it.
18124 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18125 * lisp.h (safe_call2, pending_funcalls): Declare.
18126
181272008-03-28 Andreas Schwab <schwab@suse.de>
18128
18129 * indent.c (Fmove_to_column): Move declaration before statements.
18130
181312008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18132
18133 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18134 (struct frame): Use bit fields for boolean vars.
18135
18136 * process.c (server_accept_connection): Simplify naming.
18137 (emacs_get_tty_pgrp): Use SDATA.
18138
18139 * coding.c (decode_coding_object): Fix last change.
18140
181412008-03-27 Jason Rumney <jasonr@gnu.org>
18142
18143 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18144
181452008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18146
18147 * charset.c (Fdefine_charset_internal): Change the way of
18148 registering charsets in Vcharset_order_list.
18149 (syms_of_charset): Make the charset `eight-bit' supplementary.
18150
181512008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18152
18153 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18154 operations, to avoid having the difference between pointers
18155 overflow.
18156
181572008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18158
18159 * indent.c (check_display_width): New fun.
18160 (scan_for_column): Use it.
18161
18162 * data.c (syms_of_data): Mark most-positive-fixnum and
18163 most-negative-fixnum as constants.
18164
18165 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18166
18167 * indent.c (scan_for_column): Extract from current_column_1.
18168 Merge with the same code from Fmove_to_column.
18169 (current_column_1, Fmove_to_column): Use it.
18170
181712008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18172
18173 * keymap.c (map_keymap_internal): New fun.
18174 (map_keymap): Use it.
18175 (Fmap_keymap_internal): New fun.
18176 (Fmap_keymap): Remove left-out test from before make_save_value.
18177
18178 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18179
18180 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18181 Use XCAR/XCDR.
18182
18183 * process.h (struct Lisp_Process): Remove filter_multibyte.
18184 * process.c (QCfilter_multibyte): Remove.
18185 (setup_process_coding_systems): Don't use filter_multibyte.
18186 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18187 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18188 (Fset_process_filter_multibyte): Change the coding-system to
18189 approximate the previous behavior.
18190 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18191 coding-system.
18192
18193 * coding.c (decode_coding_object): When not decoding into a buffer,
18194 obey the coding system's preference of (uni|multi)byte.
18195
181962008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18197
18198 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18199 every char is changed and has a different byte-length.
18200 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18201 Fix int -> EMACS_INT.
18202
182032008-03-23 David Hansen <david.hansen@gmx.net>
18204
18205 * dbusbind.c (xd_read_message): Remove extra copying of message
18206 strings. Check for NULL `interface' or `member'.
18207
182082008-03-22 Eli Zaretskii <eliz@gnu.org>
18209
18210 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18211 cFileName a file name that includes `?' characters, use the 8+3
18212 alias in cAlternateFileName instead.
18213
182142008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18215
18216 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18217
182182008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18219
18220 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18221 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18222 work on current_buffer only instead (that was already the case
18223 for some of the code anyway).
18224 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18225 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18226 (SET_PT, SET_PT_BOTH): Adjust.
18227 * intervals.h (set_point, temp_set_point, set_point_both)
18228 (temp_set_point_both): Remove redundant declarations.
18229
182302008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18231
18232 * fileio.c (Finsert_file_contents):
18233 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18234 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18235 when buffer != current_buffer anyway.
18236
182372008-03-20 Andreas Schwab <schwab@suse.de>
18238
18239 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18240 as default.
18241
182422008-03-19 Jason Rumney <jasonr@gnu.org>
18243
18244 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18245 (syms_of_w32fns): Initialize them.
18246 (HOURGLASS_ID): New constant.
18247 (x_window_to_frame): Don't check hourglass_window.
18248 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18249 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18250 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18251 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18252 Only change the cursor if hourglass is not active.
18253 (Fx_create_frame): Initialize frame's current_cursor.
18254 (hourglass_atimer): Remove.
18255 (hourglass_started): New function.
18256 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18257 (show_hourglass): Adapt to w32, changing argument to frame.
18258
18259 * w32term.h (struct w32_output): Remove hourglass_window.
18260 Add current_cursor.
18261
18262 * eval.c (call_debugger, Fsignal):
18263 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18264 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18265 (Fexecute_extended_command, cancel_hourglass_unwind):
18266 * minibuf.c (read_minibuf):
18267 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18268
182692008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18270
18271 * window.c (run_funs): New fun.
18272 (run_window_configuration_change_hook): Use it to run the buffer-local
18273 and the global part of the hook.
18274
18275 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18276 (unwind_format_mode_line): Restore selected window.
18277 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18278
182792008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18280
18281 * editfns.c (Fchar_equal): Check they are valid characters.
18282
18283 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18284
182852008-03-17 Andreas Schwab <schwab@suse.de>
18286
18287 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18288 against a charset.
18289
18290 * lisp.h (Fbuffer_list): Declare.
18291
182922008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18293
aac0c6e3
MR
18294 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18295 handlebox_widget is != 0.
18296
182972008-03-16 Juri Linkov <juri@jurta.org>
18298
18299 * callint.c (Fcall_interactively): For interactive code letters
18300 'b' and 'B' put the buffer list into the list of default "future"
18301 values of the minibuffer.
18302
183032008-03-16 Andreas Schwab <schwab@suse.de>
18304
18305 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18306 modifiers.
18307
18308 * regex.c (re_match_2_internal): Correct matching of a charset
18309 against latin-1 characters.
18310
183112008-03-16 Kenichi Handa <handa@m17n.org>
18312
18313 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18314 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18315 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18316 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18317 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18318 CHAR_STRING_ADVANCE.
18319 (produce_chars): Fix for the case that the source and the
18320 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18321 instead of CHAR_STRING_ADVANCE.
18322 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18323 STRING_CHAR_ADVANCE.
18324
183252008-03-15 Andreas Schwab <schwab@suse.de>
18326
18327 * regex.c (re_match_2_internal): Correct matching of eight bit
18328 characters in unibyte strings.
18329
183302008-03-15 Martin Rudalics <rudalics@gmx.at>
18331
18332 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18333 at end of range when it coincides with the end of the buffer.
18334
183352008-03-14 Eli Zaretskii <eliz@gnu.org>
18336
18337 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18338
18339 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18340
183412008-03-14 Jason Rumney <jasonr@gnu.org>
18342
18343 * editfns.c (initial_tz): New variable.
18344 (syms_of_editfns): Initialize it.
18345 (Fset_time_zone_rule): Set it when first called.
18346 Use it when TZSTRING is nil.
18347
18348 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18349 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18350 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18351 (globals_of_w32fns): Initialize them.
18352 (compute_tip_xy): Use them to position tooltips.
18353
183542008-03-14 Glenn Morris <rgm@gnu.org>
18355
18356 * emacs.c (main): Revert previous change.
18357 (standard_args): Revert -internal-script back to -scriptload,
18358 and remove the long-option form.
18359
183602008-03-13 Glenn Morris <rgm@gnu.org>
18361
18362 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18363 Remove option -enable-font-backend.
18364
183652008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18366
18367 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18368
183692008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18370
18371 * xterm.c (x_connection_closed): For GTK: If this is the last
18372 terminal just exit without closing the display.
18373
183742008-03-11 Jason Rumney <jasonr@gnu.org>
18375
18376 * w32font.c (w32font_full_name): Use floor to round.
18377
f0131492 183782008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18379
18380 * sound.c (alsa_configure): Declare vol at beginning of block.
18381
18382 * fontset.c (Ffontset_info): Remove extra semicolon.
18383
183842008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18385
18386 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18387 size of resulting string.
18388
183892008-03-10 Jason Rumney <jasonr@gnu.org>
18390
18391 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18392
183932008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18394
18395 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18396 Don't pretend as if characters with display property haven't been
18397 consumed for string-replacing-string case.
18398
183992008-03-08 Kim F. Storm <storm@cua.dk>
18400
18401 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18402 (get_next_display_element, next_element_from_string)
18403 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18404
184052008-03-08 Andreas Schwab <schwab@suse.de>
18406
18407 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18408
184092008-03-06 Jason Rumney <jasonr@gnu.org>
18410
18411 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18412 when charset not specified. Only translate ANSI to unicode when
18413 font_type is truetype.
18414 (w32font_coverage_ok): New function.
18415 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18416
184172008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18418
18419 * lread.c (Fread_char): Resolve modifiers.
18420 (Fread_char_exclusive): Likewise.
18421
18422 * character.c (char_resolve_modifier_mask): New function.
18423 (char_string): Use char_resolve_modifier_mask.
18424 (Fchar_resolve_modifiers): New function.
18425 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18426 function.
18427
184282008-03-04 Jason Rumney <jasonr@gnu.org>
18429
18430 * makefile.w32-in: Always include w32font.c in the build.
18431 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18432
184332008-03-04 Andreas Schwab <schwab@suse.de>
18434
18435 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18436 (versionclean): Likewise.
18437
184382008-03-04 Juanma Barranquero <lekktu@gmail.com>
18439
18440 * .cvsignore: Add oo.
18441
184422008-03-03 Andreas Schwab <schwab@suse.de>
18443
18444 * coding.c (decode_coding_object): Inhibit gap shrinking while
18445 decoding in place.
18446
184472008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18448
18449 * w32term.c: Remove unused include "gnu.h".
18450 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18451
18452 * gnu.h: Rename to ...
18453 * emacs-icon.h: ... this.
18454 * xterm.c: Use emacs-icon.h instead of gnu.h.
18455 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18456
184572008-03-03 Juanma Barranquero <lekktu@gmail.com>
18458
18459 * w32font.c: Include math.h.
18460
184612008-03-03 Jason Rumney <jasonr@gnu.org>
18462
18463 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18464 Compute options separately.
18465 (w32font_open_internal): Set glyph_idx before caching metrics.
18466
18467 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18468 Define if system headers don't.
18469 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18470 (w32font_encode_char): Don't declare here.
18471
18472 * w32font.c (Quniscribe, QCformat): New symbols.
18473 (syms_of_w32font): Define them.
18474 (w32font_has_char): Indicate uncertainty.
18475 (w32font_encode_char): Encode as glyph point. Make static.
18476 (recompute_cached_metrics): New function.
18477 (w32font_open_internal): Use it. Set font to use glyph points
18478 initially. Set format based on type of font.
18479 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18480 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18481 on it. Set format based on information available here.
18482 (add_font_entity_to_list): Identify backend based on opentype_only.
18483
184842008-03-02 Andreas Schwab <schwab@suse.de>
18485
18486 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18487
18488 * coding.c (decode_coding_big5, produce_chars):
18489 Fix typos in last change.
18490
184912008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18492
18493 * gnu.h: New icon.
18494
184952008-03-02 Kenichi Handa <handa@m17n.org>
18496
18497 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18498 `dos', don't decode '\r' if that is the last in the source.
18499 (decode_coding_utf_16, decode_coding_emacs_mule)
18500 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18501 (decode_coding_raw_text, decode_coding_charset): Likewise.
18502 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18503
185042008-03-01 Jason Rumney <jasonr@gnu.org>
18505
18506 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18507
185082008-03-01 Kim F. Storm <storm@cua.dk>
18509
18510 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18511
185122008-03-01 Jason Rumney <jasonr@gnu.org>
18513
18514 * w32font.c (w32font_full_name): New function.
18515 (w32font_open_internal): Use it.
18516
185172008-03-01 Kim F. Storm <storm@cua.dk>
18518
18519 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18520
185212008-03-01 Jason Rumney <jasonr@gnu.org>
18522
18523 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18524
185252008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18526
18527 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18528 xg_frame_resized when the event is for the edit widget.
18529
18530 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18531
18532 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18533 set_char_size.
18534 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18535 operations on widgets here. Just set frame size if needed.
18536 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18537 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18538 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18539 the whole frame.
18540 (xg_create_tool_bar): Move attachment of the tool bar to
18541 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18542 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18543
185442008-03-01 Jason Rumney <jasonr@gnu.org>
18545
18546 * w32fns.c (w32_msg_pump): Disable debug code.
18547
185482008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18549
18550 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18551
185522008-02-29 Chong Yidong <cyd@stupidchicken.com>
18553
18554 * xdisp.c (next_overlay_string): Don't set
18555 overlay_strings_at_end_processed_p if we're currently reading from
18556 a display string.
18557
185582008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18559
18560 * xdisp.c (get_overlay_strings_1): Fix typo.
18561
185622008-02-29 Chong Yidong <cyd@stupidchicken.com>
18563
18564 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18565
185662008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18567
18568 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18569
18570 * xdisp.c (display_mode_element): Cancel the previous change.
18571 (decode_mode_spec): Likewise.
18572 (handle_auto_composed_prop): Don't make composition if it->string
18573 is a string.
18574
185752008-02-27 Kim F. Storm <storm@cua.dk>
18576
18577 * lisp.h (GLYPH): Change type from int to struct with separate char
18578 and face_id members.
18579 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18580 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18581 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18582 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18583 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18584 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18585 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18586 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18587 handle new Lisp glyph code encoding, either an integer or a cons.
18588
18589 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18590 (GLYPH_ALIAS): Delete.
18591 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18592 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18593 (GLYPH_FROM_CHAR): Replace macro by ...
18594 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18595
18596 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18597 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18598 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18599 (GLYPH_INVALID_P): New macro.
18600 (spec_glyph_lookup_face): Update prototype.
18601
18602 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18603 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18604 new glyph code encoding.
18605 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18606 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18607
18608 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18609 Adapt to new glyph type and new glyph code encoding.
18610
18611 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18612
18613 * indent.c (current_column, current_column_1, Fmove_to_column)
18614 (compute_motion): Adapt to new glyph code encoding.
18615
18616 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18617
186182008-02-27 Chong Yidong <cyd@stupidchicken.com>
18619
18620 * process.c (wait_reading_process_output): Check for window
18621 changes caused by timers.
18622 Suggested by Johan Bockgård.
18623
186242008-02-27 Glenn Morris <rgm@gnu.org>
18625
18626 * emacs.c (USAGE1): Add `--disable-font-backend'.
18627
186282008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18629
18630 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18631 is made to the buffer.
18632
186332008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18634
18635 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18636 (face_at_string_position):
18637 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18638 (face_at_string_position):
18639 * xdisp.c (display_string, next_overlay_change):
18640 * buffer.h (overlays_at):
18641 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18642 Update callers.
18643
186442008-02-26 Chong Yidong <cyd@stupidchicken.com>
18645
18646 * editfns.c (Fformat): Doc fix.
18647
186482008-02-26 Juanma Barranquero <lekktu@gmail.com>
18649
18650 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18651 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18652 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18653
186542008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18655
18656 * buffer.c (Fbuffer_swap_text): New function.
18657 (syms_of_buffer): Defsubr it.
18658
186592008-02-25 Chong Yidong <cyd@stupidchicken.com>
18660
18661 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18662
186632008-02-25 Jason Rumney <jasonr@gnu.org>
18664
18665 * w32font.c (w32font_draw): Draw one character at a time when padding.
18666
186672008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18668
18669 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18670 Handle a nil arg. Use run_window_configuration_change_hook.
18671 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18672 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18673 Use run_window_configuration_change_hook.
18674
186752008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18676
18677 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18678 1-pixel width.
18679
186802008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18681
18682 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18683 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18684 if the glyph in the font is zero pixel with.
18685
18686 * dispextern.h (struct glyph_string): New member padding_p.
18687
18688 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18689
18690 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18691
18692 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18693
18694 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18695
18696 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18697
186982008-02-25 Jason Rumney <jasonr@gnu.org>
18699
18700 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18701
187022008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18703
18704 Allow fine-grained image-cache flushing.
18705 * dispextern.h (struct image): Add `dependencies' field.
18706 (clear_image_caches): Change arg to Lisp_Object.
18707 * image.c (make_image): Initialize `dependencies' field.
18708 (clear_image_cache): Change arg to allow fine-grained flushing.
18709 Perform the flush even if image-cache-eviction-delay is nil.
18710 (clear_image_caches): Change arg to Lisp_Object.
18711 (Fclear_image_cache): Expand meaning of the argument.
18712 (mark_image): Mark `dependencies' field.
18713 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18714 (lface_hash): Use XHASH rather than XFASTINT.
18715 (face_at_buffer_position): Fix int -> EMACS_INT position.
18716 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18717 (select_frame_for_redisplay): Remove code duplication.
18718 (redisplay_internal): Adapt arg to call to clear_image_caches.
18719
187202008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18721
18722 * s/vms4-0.h:
18723 * s/vms4-2.h:
18724 * s/vms4-4.h:
18725 * s/vms5-5.h: Remove, unused.
18726
18727 * s/irix5-2.h:
18728 * s/irix6-0.h:
18729 * s/riscos5.h:
18730 * s/mach-bsd4-3.h:
18731 * m/mips4.h: Remove files for obsolete systems.
18732
18733 * Makefile.in:
18734 * filelock.c:
18735 * unexmips.c:
18736 * m/hp9000s300.h:
18737 * m/iris4d.h:
18738 * s/aix3-1.h:
18739 * s/hpux.h:
18740 * s/msdos.h:
18741 * s/usg5-0.h:
18742 * s/usg5-2-2.h:
18743 * s/usg5-2.h:
18744 * s/usg5-3.h: Remove references to obsolete variables.
18745
18746 * s/irix5-0.h: Remove, move all the contents ...
18747 * s/irix6-5.h: ... here. Simplify.
18748 * config.in: Regenerate.
18749
187502008-02-24 Jason Rumney <jasonr@gnu.org>
18751
18752 * w32term.c (x_draw_glyph_string_background): Clear the background
18753 manually when cleartype is in use.
18754 (x_draw_glyph_string_foreground): Draw text transparently when
18755 cleartype is in use.
18756
18757 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18758 a font into it unless we have to.
18759
187602008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18761
18762 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18763 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18764
aac0c6e3
MR
187652008-02-18 Jason Rumney <jasonr@gnu.org>
18766
18767 * w32fns.c (Fw32_shell_execute): Encode parameters.
18768
187692008-02-09 Eli Zaretskii <eliz@gnu.org>
18770
18771 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18772
187732008-02-05 Juanma Barranquero <lekktu@gmail.com>
18774
18775 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18776
187772008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18778
18779 * xterm.c (x_set_offset): Don't change the gravity if
18780 CHANGE_GRAVITY is -1.
18781
187822008-02-23 Chong Yidong <cyd@stupidchicken.com>
18783
18784 * fileio.c (auto_save_error_occurred): New var.
18785 (auto_save_error): Set it.
18786 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18787 error occurred.
18788
187892008-02-23 Eli Zaretskii <eliz@gnu.org>
18790
18791 * w32.c (globals_of_w32): Add initializations for
18792 g_b_init_get_sid_sub_authority and
18793 g_b_init_get_sid_sub_authority_count.
18794
187952008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18796
18797 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18798 (font_parse_xlfd): Use them for sanity check.
18799 (Finternal_set_font_style_table): Make sure the table is bijective.
18800
18801 Consolidate the image_cache to the terminal struct.
18802 * termhooks.h (P_): Remove redundant def.
18803 (struct terminal): New field `image_cache'.
18804 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18805 of FRAME_X_IMAGE_CACHE.
18806 * xterm.h (struct x_display_info): Remove image_cache field.
18807 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18808 * w32term.h (struct w32_display_info): Remove image_cache field.
18809 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18810 * macterm.h (struct mac_display_info): Remove image_cache field.
18811 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18812 * xterm.c (x_term_init):
18813 * w32term.c (w32_term_init):
18814 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18815 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18816 Remove declarations.
18817 (clear_image_caches, mark_image_cache): New declarations.
18818 * xfaces.c (clear_face_cache):
18819 * xdisp.c (redisplay_internal): Use clear_image_caches.
18820 * image.c (clear_image_cache): Don't check that a frame is on
18821 a window-system before checking if it shares the same cache.
18822 (clear_image_caches): New function.
18823 (Fclear_image_cache): Use it.
18824 (mark_image): Move from allo.c.
18825 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18826 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18827 (mark_object): Don't call mark_image_cache for frames.
18828 (mark_terminals): Call mark_image_cache.
18829
18830 * lisp.h (Fdelete_terminal): Declare.
18831
18832 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18833 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18834 wrong_type_argument.
18835
188362008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18837
18838 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18839 malayalam.el, and tamil.el. Add sinhala.el.
18840
188412008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18842
18843 * xterm.c (x_connection_closed): Consolidate identical tests.
18844 (x_delete_terminal): Don't crash if called via x_connection_closed.
18845
188462008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18847
18848 * xdisp.c (decode_mode_spec): New arg string.
18849 (display_mode_element): Adjust for the above change.
18850
188512008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18852
18853 * callint.c (Fcall_interactively): Use AREF.
18854
188552008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18856
18857 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18858
188592008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18860
18861 * xfns.c (Fx_show_tip): Set string to " " if empty.
18862
188632008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18864
18865 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18866 with Qt.
18867
188682008-02-17 Kenichi Handa <handa@m17n.org>
18869
18870 * ftfont.c (ftfont_shape): Return Lispy number.
18871
18872 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18873 for GCs.
18874 (Finternal_set_font_selection_order): Call font_update_sort_order
18875 only when enable_font_backend is set.
18876 (realize_x_face): Set face->font_info to that of default face only
18877 when enable_font_backend is set.
18878
18879 * xdisp.c (handle_composition_prop): Set it->c to the fist
18880 character of the composed region.
18881 (fill_composite_glyph_string): Set base_face->font_info to
18882 s->font_info. Get a face for ascii from base_face->ascii_face.
18883 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18884 with a face already decided.
18885 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18886 non-negative.
18887 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18888 call font_prepare_composition unconditionally.
18889
18890 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18891
18892 * xterm.h (struct x_display_info): New member font.
18893
18894 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18895 (x_set_mouse_face_gc, x_new_font): Likewise.
18896 (x_term_init): Setup display_info->font.
18897 (x_delete_terminal): Free display_info->font.
18898
18899 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18900
18901 * ftxfont.c (ftxfont_default_fid): Delete it.
18902 (ftxfont_open): Set xfont->fid to 0.
18903 (ftxfont_end_for_frame): Clear data specific to the frame and the
18904 font-driver.
18905
18906 * xftfont.c (xftfont_default_fid): Delete it.
18907 (xftfont_open): Set xfont->fid to 0.
18908
18909 * fontset.c (FONTSET_OBJLIST): New macro.
18910 (fontset_find_font): Update font-object list of the fontset.
18911 (free_realized_fontset): New function.
18912 (free_face_fontset): Call free_realized_fontset.
18913 (Ffont_info): Call font_close_object only when enable_font_backend
18914 is set.
18915
18916 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18917 [HAVE_NTGUI]: Include w32term.h.
18918 [MAC_OS]: Include macterm.ch.
18919 (font_otf_ValueRecord): Use make_number.
18920 (font_finish_cache): Fix handling of reference count.
18921 (font_clear_cache): Update num_fonts.
18922 (font_open_entity): Update smallest_char_width and
18923 smallest_font_height of the frame.
18924 (font_close_object): Update num_fonts.
18925 (Fclear_font_cache): Fix finding the target cache data.
18926
189272008-02-16 Glenn Morris <rgm@gnu.org>
18928
18929 * fontset.c (Finternal_char_font): Fix compilation warning.
18930
189312008-02-16 Eli Zaretskii <eliz@gnu.org>
18932
18933 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18934 instead of char arrays. Enlarge the size of array passed to
18935 get_token_information.
18936
18937 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18938 warnings.
18939
189402008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18941
18942 * .gdbinit: Don't set `args', it breaks gdb --args.
18943
189442008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18945
18946 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18947 within a narrowed buffer.
18948
189492008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18950
18951 * coding.c (decode_coding_object, encode_coding_object):
18952 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18953
189542008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18955
18956 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18957 hardcoding 1.
18958 (detect_coding_system):
18959 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18960 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18961 * insdel.c (insert_from_gap):
18962 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18963 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18964 (string_to_multibyte):
18965 * character.c (chars_in_text, multibyte_chars_in_text):
18966 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18967
18968 * character.h (FETCH_STRING_CHAR_ADVANCE)
18969 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18970 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18971 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18972
18973 * casefiddle.c (casify_region): Only call after-change and composition
18974 functions on the part of the region that was changed.
18975
18976 * keyboard.c (read_avail_input):
18977 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18978
189792008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18980
18981 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18982 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18983
189842008-02-11 Juanma Barranquero <lekktu@gmail.com>
18985
18986 * w32menu.c (push_submenu_start, push_submenu_end)
18987 (push_left_right_boundary, push_menu_pane, push_menu_item):
18988 * keyboard.c (read_key_sequence): Don't pass args with side effects
18989 to AREF, it fails when compiling with -DENABLE_CHECKING.
18990
189912008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18992
18993 * Makefile.in (${lispsource}international/charprop.el):
18994 Delete this target.
18995
18996 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18997 emacs-unicode-2.
18998
189992008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19000
19001 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19002
190032008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19004
19005 * frame.c (Qnoelisp): New symbol.
19006 (syms_of_frame): Initialize it.
19007 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19008 harmless Elisp code, from a strong `force' from x_connection_closed.
19009 * frame.h (Qnoelisp): Declare.
19010 * xterm.c (x_connection_closed): Pass `noelisp'.
19011
19012 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19013 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19014 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19015 rather than `int' for the type of `type'.
19016
190172008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19018
19019 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19020
19021 * Makefile.in (GNUC): Remove support for gcc-1.x.
19022
190232008-02-10 Richard Stallman <rms@gnu.org>
19024
19025 * lisp.h (ASET): Use AREF, not ASLOT.
19026
190272008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19028
19029 * lisp.h (ASET): Check bounds.
19030
190312008-02-10 Glenn Morris <rgm@gnu.org>
19032
19033 * buffer.c (mode-name): Doc fix.
19034
190352008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19036
19037 * Makefile.in:
19038 * emacs.c:
19039 * gmalloc.c:
19040 * keyboard.c:
19041 * lisp.h:
19042 * m/ibm370aix.h:
19043 * process.c:
19044 * regex.c:
19045 * s/hpux.h:
19046 * sysdep.c:
19047 * sysselect.h:
19048 * systty.h:
19049 * unexec.c:
19050 * w32term.c:
19051 * xsmfns.c:
19052 * xterm.c: Remove code that deals with obsolete variables.
19053
19054 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19055
19056 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19057 nothing else needs it anymore.
19058
190592008-02-09 Eli Zaretskii <eliz@gnu.org>
19060
19061 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19062 instead of unibyte_char_to_multibyte.
19063
190642008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19065
19066 * s/gnu-linux.h: Remove commented out code.
19067
19068 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19069
19070 * Makefile.in: Update what RMS says about using autoconf.
19071 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19072 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19073 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19074 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19075
190762008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19077
19078 * keymap.c (Fkey_description): Move side effect outside of macro call.
19079
19080 * xfaces.c (Finternal_make_lisp_face):
19081 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19082
19083 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19084 (syms_of_fontset): Use ASET.
19085
19086 * fns.c (concat): Move side effect outside of macro call.
19087 (hash_clear): Use ASET.
19088
190892008-02-08 Richard Stallman <rms@gnu.org>
19090
19091 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19092 If FORCE, and frame has a surrogate minibuffer for another frame,
19093 delete the other frame first.
19094
190952008-02-07 Timo Savola <timo.savola@iki.fi>
19096
19097 * xterm.c (x_detect_focus_change): Handle embed client message.
19098 (handle_one_xevent): Ditto.
19099 (handle_one_xevent): If embedded and we get a button press/release,
19100 request focus.
19101 (xembed_set_info, xembed_send_message): New functions.
19102 (x_make_frame_visible): Call xembed_set_info if embedded.
19103 (x_make_frame_invisible): Call xembed_set_info if embedded.
19104 (x_term_init): Initialize Xatom_XEMBED.
19105 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19106 (x_iconify_frame): Ditto.
19107
19108 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19109 (enum xembed_info, enum xembed_message, enum xembed_focus)
19110 (enum xembed_modifier, enum xembed_accelerator): New.
19111 (xembed_set_info, xembed_send_message): Declare.
19112 (FRAME_X_EMBEDDED_P): New.
19113
19114 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19115 gtk_plug_new.
19116
19117 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19118 window ID of a frame.
19119 (x_window): Reparent frame if embedded.
19120 (Fx_create_frame): Don't set border width if embedded.
19121
19122 * emacs.c (USAGE3): Add --parent-id.
19123 (standard_args): Ditto.
19124
191252008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19126
19127 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19128
191292008-02-07 Jim Meyering <meyering@redhat.com>
19130
19131 Use "do...while (0)", not "if (1)...else" in macro definitions.
19132 The latter provokes a warning from gcc about the empty else, when
19133 followed by ";". Also, without that trailing semicolon, it would
19134 silently swallow up any following statement.
19135 * syntax.h (SETUP_SYNTAX_TABLE)
19136 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19137 * buffer.h (DECODE_POSITION): Likewise.
19138 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19139 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19140 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19141 (FETCH_CHAR_ADVANCE): Likewise.
19142 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19143
191442008-02-07 Jim Meyering <meyering@redhat.com>
19145
19146 * lread.c [lint]: Don't include <sys/inode.h>.
19147
191482008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19149
19150 * xselect.c (x_handle_dnd_message):
19151 * xmenu.c (digest_single_submenu, xmenu_show):
19152 * xdisp.c (with_echo_area_buffer_unwind_data)
19153 (format_mode_line_unwind_data, unwind_format_mode_line)
19154 (display_menu_bar):
19155 * eval.c (Ffetch_bytecode):
19156 * doc.c (store_function_docstring):
19157 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19158 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19159 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19160
191612008-02-07 Kenichi Handa <handa@m17n.org>
19162
19163 * ftxfont.c (ftxfont_open): Don't set
19164 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19165
19166 * ftfont.c (ftfont_open): Fix previous change.
19167
191682008-02-06 Jason Rumney <jasonr@gnu.org>
19169
19170 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19171 Use cached metrics for ASCII characters.
19172 (w32font_open_internal): Don't set font's owning_frame.
19173 Cache metrics for ASCII characters.
19174
19175 * w32font.h (struct w32font_info): Add ascii_metrics.
19176 Remove owning_frame.
19177
191782008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19179
19180 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19181 to negative value.
19182
19183 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19184
19185 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19186
19187 * charset.c (syms_of_charset): Set QCtest and Qeq.
19188
191892008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * process.c (Fstart_process):
19192 * callproc.c (Fcall_process): Handle the case where
19193 Funhandled_file_name_directory returns nil.
19194
19195 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19196 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19197 * font.c (check_gstring): Use them and AREF to access the vector before
19198 we know it's really a gstring.
19199 (Ffont_shape_text): Fix typo.
46e722a9 19200 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19201
19202 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19203 Declare.
19204
19205 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19206
192072008-02-05 Jason Rumney <jasonr@gnu.org>
19208
19209 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19210 Set smallest_font_height and smallest_char_width in display info.
19211
192122008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19213
19214 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19215
192162008-02-05 Miles Bader <miles@gnu.org>
19217
19218 * xfaces.c (get_lface_attributes, merge_named_face)
19219 (lookup_named_face, lookup_derived_face, realize_named_face):
19220 Revert 2008-02-01 change by cyd@stupidchicken.com.
19221
192222008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19223
19224 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19225 fallback fonts.
19226 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19227
192282008-02-04 Jason Rumney <jasonr@gnu.org>
19229
19230 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19231 set full_name.
19232 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19233
192342008-02-03 Jason Rumney <jasonr@gnu.org>
19235
19236 * makefile.w32-in (OBJ1): Include font.o here.
19237 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19238
192392008-02-02 Jason Rumney <jasonr@gnu.org>
19240
19241 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19242
192432008-02-01 Jason Rumney <jasonr@gnu.org>
19244
19245 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19246
19247 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19248
192492008-02-01 Andreas Schwab <schwab@suse.de>
19250
19251 * Makefile.in (shortlisp, lisp): Update for rename of
19252 ../lisp/language/myanmar.el.
19253
192542008-02-01 Chong Yidong <cyd@stupidchicken.com>
19255
19256 * xfaces.c (get_lface_attributes): Delete function.
19257 (merge_named_face, lookup_named_face, lookup_derived_face)
19258 (realize_named_face): Call lface_from_face_name directly, and use
19259 the fact that merge_face_vectors does not alter its FROM argument.
19260
192612008-02-01 Jason Rumney <jasonr@gnu.org>
19262
19263 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19264 input in the default locale. Handle non-Unicode multibyte input.
19265
192662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19267
19268 * fontset.c (reorder_font_vector): Exclude nil elements from the
19269 font group. Don't try multiple fonts.
19270 (fontset_font): Adjust for the above change.
19271 (Finternal_char_font): Return nil if the found font doesn't
19272 contain the character ch.
19273
19274 * Makefile.in (lisp, shortlisp): Add cham.el.
19275
192762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19277
19278 * font.h (FONTP): Make it return 1 also for a font-object.
19279
19280 * .gdbinit (xfontset): New function.
19281
19282 * font.c (font_find_for_lface): Check if the character C is
19283 supported or not only for the first font.
19284
19285 * fontset.c (reorder_font_vector): Fix typo.
19286 (fontset_find_font): Don't add a font-spec specifying a script.
19287 Use 0 (not Qt) for the indication of empty font-group. Change the
19288 format of RFONT-DEF. Return Qt if no font in the font-group
19289 support the character.
19290 (fontset_font): Adjust for the above change. If no font was
19291 found the character, remember that.
19292 (face_for_char): Adjust for the change of RFONT-DEF.
19293 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19294 no font for the target.
19295 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19296
192972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19298
19299 * font.c (font_load_for_face): Handle the case that the font in
19300 face->lface is a string.
19301
193022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19303
19304 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19305
193062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19307
19308 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19309 Fix previous change. If the frame is not on a window system,
19310 signal an error.
19311
193122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19313
19314 * coding.c (decode_coding_object, encode_coding_object): Adjust
19315 marker positions after conversion.
19316
19317 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19318
193192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19320
19321 * font.c (font_find_for_lface): Fix the handling of the return
19322 value of font_has_char.
19323 (Ffont_shape_text): Fix previous change.
19324
19325 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19326 (fontset_ref_and_range): Delete it.
19327 (fontset_find_font): Call char_table_ref_and_range instead of
19328 FONTSET_REF_AND_RANGE.
19329 (make_fontset): Don't setup font groups of Latin here.
19330 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19331 (new_fontset_from_font): Make the specified font the default for
19332 all Latin characters.
19333
193342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19335
19336 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19337 is on a window system before accessing the fontset of the frame.
19338
193392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19340
19341 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19342
19343 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19344 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19345
19346 * font.c (Ffont_shape_text): If the font driver doesn't have a
19347 shaper function, make zero-width glyphs to have at least one-pixel
19348 width. Fix setting of `to' field of glyphs.
19349
193502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19351
19352 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19353 glyphs.
19354
19355 * font.h (struct font_driver): Improve docstring of member `shape'.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * composite.c (syms_of_composite): Fix docstring of
19360 auto-composition-function.
19361
19362 * font.h (LGLYPH_SIZE): New macro.
19363
19364 * font.c (Ffont_fill_gstring): Stop filling when a character not
19365 supported by the font is found.
19366 (Ffont_shape_text): When a shape callback function returns nil,
19367 try at most two more times with larger gstring.
19368 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19369
19370 * xdisp.c (handle_auto_composed_prop): Change the argument to
19371 auto-composition-function.
19372
19373 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19374 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19375 Lispy glyph and store it in the lgstring.
19376
19377 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19378
19379 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19380
193812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19382
19383 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19384
19385 * fontset.c (Vfont_encoding_charset_alist): New variable.
19386 (syms_of_fontset): DEFVAR it.
19387 (reorder_font_vector, fontset_find_font): Optimize for the case of
19388 no need of reordering.
19389 (face_for_char): Map the charset property by
19390 Vfont_encoding_charset_alist.
19391
193922008-02-01 Jason Rumney <jasonr@gnu.org>
19393
19394 * w32font.c (logfonts_match): Don't check adstyle here.
19395 (font_matches_spec): Check here against physical font instead.
19396 (add_font_entity_to_list): Avoid some substitutions.
19397
19398 * font.c (font_parse_fcname): Default weight and slant to normal.
19399 (font_score): Prefer normal fonts if weight or slant unspecified.
19400 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19401 match freetype scores.
19402
194032008-02-01 Jason Rumney <jasonr@gnu.org>
19404
19405 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19406 font, as it may have been deleted.
19407 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19408 most common hyphenless variation.
19409 (logfonts_match): Check generic family.
19410 (font_matches_spec): Don't check generic family here.
19411 (fill_in_logfont): Set generic family based on adstyle.
19412
19413 * w32font.h (w32font_get_cache): Update declaration.
19414
194152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19416
19417 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19418
19419 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19420 If none of the new drivers are available, call font_update_drivers
19421 with the old drivers.
19422
19423 * w32font.c (w32font_get_cache): Adjust the argument type.
19424
19425 * xfont.c (xfont_get_cache): Adjust the argument type.
19426
19427 * font.h (struct font_driver): Change argument type of get_cache.
19428
19429 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19430
19431 * font.c (Ffont_get): Fix arguments to Fassoc.
19432 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19433 (font_clear_cache): New function.
19434 (font_list_entities, font_matching_entity): Use font_get_cache.
19435 (font_update_drivers): Call font_clear_cache when finishing a driver.
19436
19437 * fontset.c (fontset_find_font): Fix previous change.
19438
194392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19440
19441 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19442 dpyinfo->font_table.
19443 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19444 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19445
19446 * font.c (font_at): Handle the case that the arg C is negative.
19447 Handle the unibyte case.
19448 (Ffont_at): Call font_at with the arg C -1.
19449
19450 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19451 the position here, and call font_at with the arg C -1.
19452 Don't check the range of the existing composition at the point.
19453
194542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19455
19456 * fontset.c (fontset_add): New args charset_id and family.
19457 Change caller.
19458 (load_font_get_repertory, fontset_find_font): Assume that
19459 font_spec is always a font-spec object.
19460 (Fset_fontset_font): Always store a font-spec object in a fontset.
19461
19462 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19463 instead of get_property_and_range.
19464
194652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19466
19467 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19468 (xftfont_open): Don't keep locking face.
19469 (xftfont_close): Don't unlock face.
19470 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19471
19472 * fontset.c (fontset_find_font): Don't prefer a font of
19473 supplementary charset.
19474
194752008-02-01 Kenichi Handa <handa@m17n.org>
19476
19477 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19478 script, langsys_tag to langsys, new member script.
19479 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19480 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19481 listing to the script specified in that property. Fix arg to
19482 OTF_check_features.
19483
194842008-02-01 Jason Rumney <jasonr@gnu.org>
19485
19486 * w32font.h: New file.
19487
19488 * w32font.c: Include it.
19489 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19490 (w32font_open): Set owning_frame.
19491 (w32font_text_extents): Use owning_frame.
19492 (struct font_callback_data): Add opentype_only field.
19493 (add_font_entity_to_list): Use it to filter fonts.
19494 Don't check against full name.
19495 (w32font_list_internal): New function.
19496 (w32font_list): Use it.
19497 (w32font_match_internal): New function.
19498 (w32font_match): Use it.
19499 (w32font_open_internal): New function.
19500 (w32font_open): Use it.
19501 (w32font_get_cache, w32font_close, w32font_has_char)
19502 (w32font_encode_char, w32font_text_extents, w32font_draw):
19503 Make non-static.
19504
19505 * makefile.w32-in (w32font.o): Depend on w32font.h.
19506
195072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19508
19509 * charset.c (Fdefine_charset_internal): Record a supplementary
19510 charset at the tail of Vcharset_order_list.
19511
19512 * font.c (Ffont_shape_text): Fix the return value.
19513
19514 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19515
19516 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19517
195182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19519
19520 * ftfont.c (struct OpenTypeSpec): New struct.
19521 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19522 (ftfont_get_open_type_spec): New function.
19523 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19524
19525 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19526
195272008-02-01 Jason Rumney <jasonr@gnu.org>
19528
19529 * w32font.c (add_font_entity_to_list): Compare only the beginning
19530 of full name.
19531
195322008-02-01 Kenichi Handa <handa@m17n.org>
19533
19534 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19535 Never return HANDLED_RECOMPUTE_PROPS.
19536
195372008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * font.c (font_gstring_produce): Delete it.
19540
19541 * composite.h (COMPOSITION_METHOD):
19542 Handle COMPOSITION_WITH_GLYPH_STRING.
19543
195442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19545
19546 * xfont.c (Qx): Delete.
19547 (syms_of_xfont): Don't initialize Qx.
19548
19549 * composite.h (enum composition_method):
19550 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19551
195522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19553
19554 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19555 (choose_face_font): Accept new form of font-spec.
19556
19557 * frame.h (font_driver_list): Declare it unconditionally.
19558 (struct frame): Define members font_driver_list and font_data_list
19559 unconditionally.
19560
19561 * fontset.c: Include "font.h" unconditionally.
19562 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19563 (Fset_fontset_font): Accept a font-spec object.
19564
19565 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19566 PIXEL_SIZE part a wild card.
19567
19568 * dispextern.h (struct glyph_string): Define members clip and
19569 num_clips unconditionally.
19570 (struct face): Define members font_info and extra unconditionally.
19571
19572 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19573 ftfont_info only when HAVE_LIBOTF is defined.
19574
195752008-02-01 Andreas Schwab <schwab@suse.de>
19576
19577 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19578 and end.
19579
195802008-02-01 Jason Rumney <jasonr@gnu.org>
19581
19582 * w32font.c (w32font_driver): Add new fields.
19583
195842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19585
19586 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19587 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19588 (LIBES): Add @M17N_FLT_CFLAGS@.
19589
19590 * composite.c (compose_text): Don't treat the new style
19591 composition specially.
19592
19593 * emacs.c (main): Call syms_of_font unconditionally.
19594
19595 * font.h (FONT_ENTITY_NOT_LOADABLE)
19596 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19597 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19598 (struct font_driver): New member shape.
19599 (font_registry_charsets): Extern it.
19600 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19601 (font_otf_capability, font_drive_otf): Delete their externs.
19602
19603 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19604 (font_charset_alist, font_registry_charsets): Move from xfont.c
19605 and rename.
19606 (font_prop_validate_otf): New function.
19607 (font_property_table): Register it for QCotf.
19608 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19609 (font_drive_otf): Delete.
19610 (font_prepare_composition): New arg F. Adjust for the change of
19611 lispy gstring.
19612 (font_find_for_lface): New arg C.
19613 (font_load_for_face): Adjust for the change of font_find_for_lface.
19614 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19615 lispy gstring.
19616 (Ffont_shape_text): New function.
19617 (Fopen_font): If the font size is not given, use 12-pixel.
19618 (Ffont_at): New arg STRING.
40b1a3a9 19619 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19620 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19621 conditionally.
19622
19623 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19624 fonts of the same font-spec. Change the format of RFONT-DEF.
19625 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19626 Adjust for the change of RFONT-DEF.
19627 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19628
19629 * ftfont.h: New file.
19630
19631 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19632 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19633 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19634 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19635 font_otf_capability and font_drive_otf, set ftfont_shape.
19636 (ftfont_list): Adjust for the change of :otf property value.
19637 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19638 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19639 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19640 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19641 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19642 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19643
19644 * w32term.c (x_draw_composite_glyph_string_foreground):
19645 Adjust for the change of lispy gstring.
19646
19647 * xdisp.c (handle_composition_prop): Adjust for the change of
19648 lispy gstring. Call a function for auto-composition with the
19649 third arg it->window.
19650 (fill_composite_glyph_string): Adjust for the change of lispy string.
19651 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19652
19653 * xfaces.c (set_font_frame_param): Adjust for the change of
19654 font_find_for_lface.
19655
19656 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19657 (xfont_registry_charsets): Likewise. Change caller.
19658 (syms_of_xfont): Don't handle x_font_charset_alist.
19659
19660 * xftfont.c: Include "ftfont.h".
19661 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19662 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19663 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19664 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19665 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19666 Set xftfont_driver.shape to xftfont_shape.
19667
19668 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19669 the change of lispy gstring.
19670
196712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19672
19673 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19674
196752008-02-01 Jason Rumney <jasonr@gnu.org>
19676
19677 * w32font.c (w32font_draw): Fill background manually.
19678
196792008-02-01 Jason Rumney <jasonr@gnu.org>
19680
19681 * font.c (Qfontp): Remove unused symbol.
19682 (QCantialias): New symbol.
19683 (syms_of_font): Define it.
19684 (font_property_table): Set a validator for QCantialias.
19685
19686 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19687 Define if not already.
19688 (QCfamily): Share with xfaces.c.
19689 (Qstandard, Qsubpixel, Qnatural): New symbols.
19690 (syms_of_w32font): Define them. Don't define QCfamily here.
19691 (w32_antialias_type, lispy_antialias_type): New functions.
19692 (w32_enumfont_pattern_entity): New arg requested_font.
19693 Set antialias parameter if non-default was requested.
19694 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19695
196962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19697
19698 * lread.c (read1): Undo the previous change.
19699
197002008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19701
19702 * frame.c (Fdelete_frame): Call font_update_drivers only when
19703 USE_FONT_BACKEND is defined.
19704
197052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19706
19707 * font.h (struct font_bitmap): New member bits_per_pixel.
19708 (struct font_driver): New members start_for_frame and end_for_frame.
19709 (struct font_data_list): New struct.
19710 (font_put_frame_data, font_get_frame_data): Extern them.
19711
19712 * frame.h (struct frame): New member font_data_list.
19713
19714 * font.c (font_update_drivers): Call driver->start_for_frame and
19715 driver->end_for_frame at proper timings.
19716 (font_put_frame_data, font_get_frame_data): New functions.
19717 (Ffont_spec): Add usage in the docstring.
19718
19719 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19720 (Fdelete_frame): Call font_update_drivers.
19721
19722 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19723 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19724 (xftfont_get_xft_draw): New function.
19725 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19726 (xftfont_end_for_frame): New function.
19727 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19728
19729 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19730 Change argument. Cache GCs in the per-frame data.
19731 (struct ftxfont_frame_data): New struct.
19732 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19733 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19734 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19735 (ftxfont_end_for_frame): New function.
19736 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19737
19738 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19739
197402008-02-01 Kenichi Handa <handa@m17n.org>
19741
19742 * xselect.c (Vselection_coding_system)
19743 (Vnext_selection_coding_system): Delete them.
19744 (syms_of_xselect): Don't declare selection-coding-system and
19745 next-selection-coding-system. They are declared in select.el.
19746
197472008-02-01 Jason Rumney <jasonr@gnu.org>
19748
19749 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19750
19751 * w32fns.c: Include imm.h.
19752 (get_composition_string_fn, get_ime_context_fn): New optional
19753 system functions.
19754 (globals_of_w32fns): Load them from imm32.dll.
19755 (ignore_ime_char): New flag.
19756 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19757 WM_IME_ENDCOMPOSITION messages.
19758
19759 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19760 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19761
197622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19763
19764 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19765 (READCHAR_REPORT_MULTIBYTE): New macro.
19766 (readchar): New 2nd arg MULTIBYTE.
19767 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19768 Make symbol's name multibyte according to the multibyteness of the
19769 source.
19770
197712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19772
19773 * xfaces.c (face_for_overlay_string): Call lookup_face with
19774 correct arguments (fix of synching with the trunk).
19775
197762008-02-01 Kenichi Handa <handa@m17n.org>
19777
19778 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19779 (font_prop_validate_non_neg, font_prop_validate_spacing):
19780 Delete argument prop_index.
19781 (font_property_table): Change arguments to validater. Change Callers.
19782 (font_lispy_object): Delete.
19783 (font_at): Use font_find_object instead fo font_lispy_object.
19784
197852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19786
19787 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19788 and file names.
19789
197902008-02-01 Jason Rumney <jasonr@gnu.org>
19791
19792 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19793 (font_matches_spec): Remove debug output.
19794 (add_font_entity_to_list): Avoid using substituted fonts.
19795
197962008-02-01 Jason Rumney <jasonr@gnu.org>
19797
19798 * doc.c (Fsnarf_documentation):
19799 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19800
198012008-02-01 Miles Bader <miles@gnu.org>
19802
19803 * dispextern.h (struct glyph_row): Only define "clip" field if
19804 HAVE_WINDOW_SYSTEM is defined.
19805
198062008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19807
19808 Fix up multi-tty merge.
19809
19810 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19811 and indentation.
19812
19813 * xfaces.c (free_realized_face, clear_face_gcs):
19814 Include font_done_for_face in the input_blocked section, just in case.
19815
19816 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19817 (get_char_face_and_encoding): Undo last change and remove the *other*
19818 duplicate definition (i.e. keep the one that's better scoped and that
19819 includes code for the font-backend).
19820
19821 * terminal.c (create_terminal): Default keyboard_coding to
19822 `no-conversion' and terminal_coding to `undecided'.
19823
19824 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19825
19826 * fontset.c (free_realized_fontsets): Check that the table entry does
19827 contain a fontset before trying to compare it to `base'.
19828
19829 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19830 syms_of_charset, and syms_of_coding earlier because init_window_once
19831 now needs Vcoding_system_hash_table to be setup.
19832
19833 * coding.h (default_buffer_file_coding): Remove.
19834
19835 * coding.c (default_buffer_file_coding): Remove.
19836 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19837 than ->symbol, and use the terminal-local coding system.
19838 (syms_of_coding): Don't setup the coding-systems that are not
19839 terminal-local.
19840 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19841
19842 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19843 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19844
19845 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19846 in chartab.c and were re-added here by mistake.
19847 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19848
19849 * doc.c (Fsnarf_documentation):
19850 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19851 src to etc.
19852
19853 * ChangeLog.10: Add mistakenly removed entry.
19854
198552008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19856
19857 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19858
198592008-02-01 Miles Bader <miles@gnu.org>
19860
19861 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19862 Add extra args to FACE_FOR_CHAR.
19863
198642008-02-01 Kenichi Handa <handa@m17n.org>
19865
19866 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19867 in sequence.
19868
19869 * chartab.c (map_sub_char_table, map_char_table): If the range
19870 contains just one character, call the function with that character
19871 even if the depth is not 3.
19872
198732008-02-01 Jason Rumney <jasonr@gnu.org>
19874
19875 * w32font.c (w32font_text_extents): Calculate metrics for the
19876 whole string.
19877
198782008-02-01 Jason Rumney <jasonr@gnu.org>
19879
19880 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19881
198822008-02-01 Jason Rumney <jasonr@gnu.org>
19883
19884 * w32term.c (x_set_glyph_string_clipping): Use
19885 get_glyph_string_clip_rects.
19886 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19887 Adjust for the change of struct glyph_string.
19888
19889 * w32font.c (w32font_draw): Do clipping here.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * xftfont.c (xftfont_draw): Adjust for the change of struct
19894 glyph_string.
19895
19896 * xterm.c (x_set_glyph_string_clipping): Use
19897 get_glyph_string_clip_rects.
19898 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19899 Adjust for the change of struct glyph_string.
19900
19901 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19902 the resulting clip(s}.
19903 (expose_overlaps): Add arg r. Change callers. Set it to
19904 row->clip temporarily.
19905 (expose_window): Redraw rows overlapping the exposed area.
19906
19907 * dispextern.h (struct glyph_row): New member clip.
19908 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19909 clip_height, new member clip, and num_clips.
19910
199112008-02-01 Kenichi Handa <handa@m17n.org>
19912
19913 * data.c (Fchar_or_string_p): Fix docstring.
19914
199152008-02-01 Kenichi Handa <handa@m17n.org>
19916
19917 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19918 create a temporary XftDraw object.
19919
199202008-02-01 Kenichi Handa <handa@m17n.org>
19921
19922 * font.c (Ffontp): Fix docstring.
19923
19924 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19925 strong evidence of ISO-2022.
19926
199272008-02-01 Kenichi Handa <handa@m17n.org>
19928
19929 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19930 SYNTAX_ENTRY_FOLLOW_PARENT.
19931
199322008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19933
19934 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19935 its type.
19936 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19937 Update to the new type of weak_hash_tables and next_weak.
19938
19939 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19940 a plain C pointer to Lisp_Hash_Table.
19941
19942 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19943 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19944 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19945 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19946 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19947 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19948 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19949 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19950 (GC_EQ): Remove since they've been identical to their non-GC_
19951 alter-egos ever since the markbit was eradicated.
19952
19953 * alloc.c:
19954 * buffer.c:
19955 * buffer.h:
19956 * data.c:
19957 * fileio.c:
19958 * filelock.c:
19959 * fns.c:
19960 * frame.h:
19961 * lisp.h:
19962 * macterm.c:
19963 * print.c:
19964 * process.c:
19965 * w32fns.c:
19966 * w32menu.c:
19967 * w32term.c:
19968 * xfns.c:
19969 * xmenu.c:
19970 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19971
199722008-02-01 Kenichi Handa <handa@m17n.org>
19973
19974 * chartab.c (map_sub_char_table): Make it work for the top-level
19975 char-table. Fix handling of parent char-table.
19976 (map_char_table): Adjust for the above change.
19977
199782008-02-01 Jason Rumney <jasonr@gnu.org>
19979
19980 * w32font.c (Qgdi): Rename from Qw32.
19981
199822008-02-01 Jason Rumney <jasonr@gnu.org>
19983
19984 * w32bdf.c (get_quoted_string): Make function static.
19985
199862008-02-01 Kenichi Handa <handa@m17n.org>
19987
19988 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19989 bigger ascent and descent than those of the font, use them as
19990 font's ascent and descent.
19991
199922008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * Makefile.in (${lispsource}international/charprop.el): Move this
19995 target within "#ifdef HAVE_UNIDATA" and "#endif".
19996
199972008-02-01 Kenichi Handa <handa@m17n.org>
19998
19999 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20000 (shortlisp): Add ../lisp/language/tai-viet.el.
20001
200022008-02-01 Ulrich Mueller <ulm@gentoo.org>
20003
20004 * Makefile.in (${lispsource}international/charprop.el): Depend on
20005 temacs${EXEEXT}.
20006
200072008-02-01 Jason Rumney <jasonr@gnu.org>
20008
20009 * w32font.c (w32font_close): Delete the GDI font object.
20010
20011 * w32menu.c: Include character.h.
20012
20013 * w32proc.c: Likewise.
20014
20015 * w32select.c: Likewise.
20016
20017 * makefile.w32-in (w32proc.o): Depend on character.h.
20018
200192008-02-01 Jason Rumney <jasonr@gnu.org>
20020
20021 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20022
20023 * w32menu.c (syms_of_w32menu): Likewise.
20024
20025 * w32proc.c (syms_of_ntproc): Likewise.
20026
20027 * w32select.c (syms_of_w32select): Likewise.
20028
20029 * w32term.c (syms_of_w32term): Likewise.
20030
200312008-02-01 Jason Rumney <jasonr@gnu.org>
20032
20033 * w32font.c (w32font_draw): Delete brush after using it.
20034
200352008-02-01 Jason Rumney <jasonr@gnu.org>
20036
20037 * w32font.c (w32font_open): Don't set font_idx.
20038 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20039 to font settings.
20040 (w32font_draw): Fill background explicitly.
20041
200422008-02-01 Jason Rumney <jasonr@gnu.org>
20043
20044 * w32term.c (w32_initialize): Don't call w32font_initialize.
20045
20046 * w32font.c (w32font_info): Remove subranges.
20047 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20048 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20049 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20050 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20051 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20052 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20053 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20054 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20055 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20056 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20057 New symbols.
20058 (font_callback_data): New struct.
20059 (w32font_list, w32font_match): Use it.
20060 (w32font_open): Don't populate subranges.
20061 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20062 (w32font_encode_char): Always return unicode code-point as-is.
20063 (w32font_text_extents): Supply a transformation matrix to
20064 GetGlyphOutline. Never look up by glyph index. Avoid looping
20065 twice. Use unicode version of GetTexExtentPoint32 instead of
20066 glyph index version.
20067 (set_fonts_frame): Remove.
20068 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20069 set frame parameter. Use backward compatible fake foundries.
20070 Save generic family in extra slot under QCfamily. Make width slot
20071 constant. Save QCspacing value. Save list of scripts instead of
20072 binary subranges.
20073 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20074 (add_font_entity_to_list): Use font_callback_data struct. Filter
20075 unwanted fonts.
20076 (add_one_font_entity_to_list): Use font_callback_data struct.
20077 (w32_registry): Default to iso10646_1.
20078 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20079 string font registries. Don't fill in font name if it is a generic
20080 family name, fill family instead. Use spacing, family and script
20081 extra info to fill pitch, family and charset fields.
20082 (list_all_matching_fonts): Use font_callback_data struct.
20083 (unicode_range_for_char): Remove.
20084 (font_supported_scripts): New function.
20085 (w32font_initialize): Remove.
20086 (syms_of_w32font): Update which symbols are defined.
20087
200882008-02-01 Jason Rumney <jasonr@gnu.org>
20089
20090 * font.c (font_pixel_size): Reverse assq_no_quit args.
20091
20092 * w32term.h (FONT_WIDTH): Report max width, not average.
20093 (FONT_MAX_WIDTH): Remove.
20094 (FONT_AVG_WIDTH): New macro.
20095
20096 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20097 redefinition of FONT_WIDTH.
20098
20099 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20100 (w32_cache_char_metrics): Use FONT_WIDTH.
20101
20102 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20103
201042008-02-01 Jason Rumney <jasonr@gnu.org>
20105
20106 * w32font.c (w32font_open): Make lfHeight negative.
20107
20108 * w32fns.c (x_default_font_parameter): Use new style font name.
20109 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20110
201112008-02-01 Jason Rumney <jasonr@gnu.org>
20112
20113 * w32font.c (QCsubranges): New symbol.
20114 (w32font_open, w32font_has_char): Get subranges from subproperty
20115 of extra.
20116 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20117 (syms_of_w32font): Define :subranges symbol.
20118
20119 * font.c (font_put_extra): Expose externally.
20120
20121 * font.h (font_put_extra): Move declaration from font.c.
20122
20123 * font.c (Ffont_get): Use font driver to determine otf capability.
20124 (adjust_anchor): Check if driver defines anchor_point before using.
20125
20126 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20127 (w32font_draw): Use options.
20128 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20129 Fix detection of truetype fonts.
20130 (registry_to_w32_charset): Handle charsets other than iso8859-1
20131 expressed as lisp symbols.
20132 (w32_registry): Express charset as lisp symbol.
20133 (fill_in_logfont): Reverse pixel and point height logic.
20134 Don't set width here. Set quality to default.
20135
20136 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20137 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20138
20139 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20140 Remove redundant loop and allocation.
20141
20142 * makefile.w32-in (font.o, w32font.o): New objects.
20143 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20144 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20145
20146 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20147 STORE_XCHARB a valid l-value.
20148
20149 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20150 calculations for non-Truetype fonts.
20151 (x_draw_glyph_string): Sync with xterm.c.
20152 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20153 Remove redundant code.
20154 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20155
20156 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20157 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20158
20159 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20160 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20161
20162 * w32font.c: New file for w32 font backend.
20163
201642008-02-01 Kenichi Handa <handa@m17n.org>
20165
20166 * term.c: Don't include "buffer.h" twice.
20167
201682008-02-01 Kenichi Handa <handa@m17n.org>
20169
20170 * character.c (Funibyte_string): New function.
20171 (syms_of_character): Defsubr it.
20172
201732008-02-01 Jason Rumney <jasonr@gnu.org>
20174
20175 * w32term.c [USE_FONT_BACKEND]:
20176 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20177 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20178 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20179 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20180 (x_free_frame_resources): Sync with xterm.c.
20181
201822008-02-01 Andreas Schwab <schwab@suse.de>
20183
20184 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20185 char-table size.
20186
201872008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20190
201912008-02-01 Kenichi Handa <handa@m17n.org>
20192
20193 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20194 font_otf_gpos, add font_drive_otf.
20195
20196 * fontset.c (fontset_find_font): Pay attention to font size
20197 specified for a font.
20198 (reorder_font_vector): Check contents of font_def.
20199
20200 * font.c (struct otf_list): Delete it.
20201 (otf_list): Make it a lisp variable.
20202 (otf_open): Use lispy otf_list.
20203 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20204 (check_otf_features): New function.
20205 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20206 New functions.
20207 (font_drive_otf): New function merging font_otf_gsub and
20208 font_otf_gpos.
20209 (font_open_for_lface): New arg spec. Change argument order.
20210 (font_load_for_face): Adjust for the change of font_open_for_lface.
20211 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20212 Ffont_otf_gpos.
20213 (syms_of_font): Staticpro otf_list. Delete defsubr of
20214 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20215
20216 * xfaces.c (set_font_frame_param): Adjust for the change of
20217 font_open_for_lface.
20218
20219 * font.h (font_open_for_lface): Adjust prototype.
20220 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20221 member otf_drive.
20222 (font_otf_gsub, font_otf_gpos): Delete externs.
20223 (font_drive_otf): Extern it.
20224
202252008-02-01 Kenichi Handa <handa@m17n.org>
20226
20227 * font.c (font_at): If the window W is not on a window system,
20228 return Qnil.
20229
20230 * coding.c (produce_chars, encode_coding): Don't call
20231 insert_from_gap if no characters to produce.
20232
202332008-02-01 Kenichi Handa <handa@m17n.org>
20234
20235 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20236 Fclear_face_cache.
20237
20238 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20239
202402008-02-01 Miles Bader <miles@gnu.org>
20241
20242 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20243 Parse "--disable-font-backend" option.
20244 (standard_args): Add "--disable-font-backend" option.
20245
202462008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 * fontset.c (fontset_find_font): New function.
20249 (fontset_font): Use fontset_find_font.
20250 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20251 Register the specified font for all Latin characters.
20252 (new_fontset_from_font): Register the specified font for all Latin
20253 characters.
20254 (dump_fontset): For a realized fontset, include the base fontset
20255 name in the returned vector.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * character.h (CHAR_STRING): Cast C to unsigned on calling
20260 char_string.
20261
20262 * character.c (char_string): Type of arg C changed to unsigned.
20263 Signal an error if C is an invalid character code.
20264
20265 * editfns.c (general_insert_function, Fchar_to_string):
20266 Use CHARACTERP, not INTEGERP.
20267
202682008-02-01 Kenichi Handa <handa@m17n.org>
20269
20270 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20271 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20272
20273 * regex.c (analyse_first): Fix for multibyte characters in "case
20274 charset:" and "case categoryspec:".
20275
202762008-02-01 Andreas Schwab <schwab@suse.de>
20277
20278 * Makefile.in (LIBES): Move standard libraries to the end.
20279
202802008-02-01 Kenichi Handa <handa@m17n.org>
20281
20282 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20283 nonzero, don't shrink the buffer nextb.
20284
20285 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20286
20287 * coding.c (coding_alloc_by_making_gap): New arg offset.
20288 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20289 offset.
20290 (decode_coding_iso_2022): Update coding->safe_charsets.
20291 (decode_coding_gap): Temporarily set
20292 current_buffer->text->inhibit_shrinking to 1.
20293
202942008-02-01 Kenichi Handa <handa@m17n.org>
20295
20296 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20297 indexing into elements of s->cmp and s->char2b.
20298
202992008-02-01 Juanma Barranquero <lekktu@gmail.com>
20300
20301 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20302
203032008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20306 target_multibyte instead of multibyte.
20307 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20308 (bcmp_translate): Change the argument name from multibyte to
20309 target_multibyte.
20310
203112008-02-01 Kenichi Handa <handa@m17n.org>
20312
20313 These changes are to compile a regexp into a pattern that can be
20314 used both for multibyte and unibyte targets.
20315
20316 * Makefile.in (search.o): Depend on charset.h.
20317
20318 * character.c (multibyte_char_to_unibyte_safe): New function.
20319
20320 * search.c: Include "charset.h".
20321 (compile_pattern_1): Delete argument multibyte. Don't set
20322 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20323 (compile_pattern): Don't compare cp->buf.target_multibyte.
20324 Compare cp->buf.charset_unibyte.
20325 (compile_pattern): Set cp->buf.target_multibyte.
20326
20327 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20328
20329 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20330
20331 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20332 multibyte. Change callers.
20333 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20334 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20335 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20336 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20337 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20338 (regex_compile): Make the compiled pattern usable both for
20339 multibyte and unibyte targets.
20340 (analyse_first): Make the fastmap usable both for multibyte and
20341 unibyte targets.
20342 (TRANSLATE_VIA_MULTIBYTE): Delete.
20343 (re_match_2_internal): Pay attention to the case that the
20344 multibyteness of bufp and target may be different.
20345
203462008-02-01 Kenichi Handa <handa@m17n.org>
20347
20348 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20349 empty box occupy at least one column width.
20350
203512008-02-01 Miles Bader <miles@gnu.org>
20352
20353 * Makefile.in: Remove redundant HAVE_XFT clause.
20354
203552008-02-01 Kenichi Handa <handa@m17n.org>
20356
20357 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20358
203592008-02-01 Kenichi Handa <handa@m17n.org>
20360
20361 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20362 being nil.
20363
203642008-02-01 Kenichi Handa <handa@m17n.org>
20365
20366 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20367
203682008-02-01 Kenichi Handa <handa@m17n.org>
20369
20370 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20371
203722008-02-01 Kenichi Handa <handa@m17n.org>
20373
20374 * search.c (simple_search): Fix previous change.
20375
203762008-02-01 Kenichi Handa <handa@m17n.org>
20377
20378 * xftfont.c (ftfont_font_format): Extern declaration.
20379
20380 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20381
20382 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20383 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20384
20385 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20386 (ftfont_font_format): Fix previous change.
20387
20388 * font.h (Ffont_xlfd_name): EXFUN it.
20389
20390 * font.c (font_parse_xlfd): Fix the array size of `f'.
20391 (register_font_driver): Use EQ to compare driver->type.
20392
20393 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20394 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20395 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20396
203972008-02-01 Kenichi Handa <handa@m17n.org>
20398
20399 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20400 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20401
204022008-02-01 Kenichi Handa <handa@m17n.org>
20403
20404 * xfont.c (xfont_open): Set font->format.
20405
20406 * xftfont.c (xftfont_open): Set font->format.
20407
20408 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20409 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20410 (ftfont_open): Set font->format.
20411 (ftfont_font_format): New function.
20412
20413 * font.h (struct font): New member format.
20414
20415 * font.c (Qopentype): New variable.
20416 (syms_of_font): Defsym it.
20417 (Fquery_font): Change the format of the last element of the return
20418 value.
20419
204202008-02-01 Kenichi Handa <handa@m17n.org>
20421
20422 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20423 last resort.
20424
204252008-02-01 Kenichi Handa <handa@m17n.org>
20426
20427 * coding.c (detect_coding_charset): Fix detection of multi-byte
20428 charset.
20429
204302008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20431
20432 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20433
204342008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 * xdisp.c (get_next_display_element): Set it->face_id for the
20437 first component of a composition.
20438 (x_produce_glyphs): Check if the font is changed or not for composition.
20439
204402008-02-01 Kenichi Handa <handa@m17n.org>
20441
20442 * fontset.c (Qlatin): New variable.
20443 (syms_of_fontset): Define it as a lisp symbol.
20444 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20445
204462008-02-01 Kenichi Handa <handa@m17n.org>
20447
20448 * font.c (font_unparse_fcname): Pay attention to the case that
20449 some of font property is a null string.
20450
204512008-02-01 Kenichi Handa <handa@m17n.org>
20452
20453 * term.c: Include "composite.h".
20454 (encode_terminal_code): Output all components of composition.
20455 Check the size of encode_terminal_src.
20456 (produce_glyphs): For composition, call produce_composite_glyph.
20457 (append_composite_glyph, produce_composite_glyph): New functions.
20458
20459 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20460 is not found, get font_info from the current ascii face.
20461
204622008-02-01 Kenichi Handa <handa@m17n.org>
20463
20464 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20465 buffer-file-name to Qnil before calling insert_from_buffer.
20466
20467 * font.c (font_unparse_fcname): Pay attention to the case that
20468 foundry is a null string.
20469
204702008-02-01 Kenichi Handa <handa@m17n.org>
20471
20472 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20473
20474 * font.c (Qunicode_sip): New variable.
20475 (syms_of_font): Declare it as a Lisp symbol.
20476
20477 * font.h (Qunicode_sip): Extern it.
20478
204792008-02-01 Kenichi Handa <handa@m17n.org>
20480
20481 * composite.c (get_composition_id): Pay attention to TAB component.
20482
20483 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20484 TAB. Adjust for the change of s->char2b which always points to
20485 the first element of allocated memory.
20486
20487 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20488
20489 * xdisp.c (handle_composition_prop): Set it->c to the first
20490 non-TAB component.
20491 (fill_composite_glyph_string): Change argument.
20492 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20493 (x_produce_glyphs): Fix handling of left/right padding.
20494
204952008-02-01 Kenichi Handa <handa@m17n.org>
20496
20497 * coding.c (detect_coding_system): Fix for handling off
20498 inhibit_iso_escape_detection. Fix for the case that no coding
20499 system is defined for a specific coding category.
20500
205012008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 * font.c (font_matching_entity): Delete unused local var.
20504
20505 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20506 opening a font.
20507
20508 * fileio.c (Finsert_file_contents): On recovering a file, assume
20509 Unix-like eol.
20510 (choose_write_coding_system): On auto-saving a file, force
20511 Unix-like eol.
20512
20513 * coding.c (setup_coding_system): Fix setting of
20514 coding->common_flags based on eol_type.
20515 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20516 inherit from it.
20517
205182008-02-01 Kenichi Handa <handa@m17n.org>
20519
20520 * alloc.c (NSTATICS): Increas to 0x600.
20521
205222008-02-01 Kenichi Handa <handa@m17n.org>
20523
20524 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20525 (ftfont_list): Don't check :name property.
20526 (ftfont_match): New function.
20527 (ftfont_pattern_entity): If the pattern doesn't contain
20528 FC_SPACING, don't assume FC_MONO.
20529
20530 * font.h (struct font_driver): New member `match'.
20531 (font_update_drivers): Adjust prototype.
20532
20533 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20534 property of FONT.
20535 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20536 them unconditionally.
20537 (font_matching_entity): New function.
20538 (font_open_by_name): Try font_matching_entity if exact match is
20539 not found.
20540 (font_update_drivers): Delete the arg FONT. Return a list of
20541 actually used backends. Don't free faces, font caches here.
20542 Don't store data in frame parameters. Don't call x_set_font.
20543 (Ffont_spec): Store :name property as is.
20544 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20545 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20546 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20547 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20548 Call font->driver->otf_gsub instead of font_otf_gsub.
20549
20550 * frame.c (x_set_font_backend): Do more works that were done in
20551 font_update_drivers before.
20552
20553 * xfont.c (xfont_match): New function.
20554 (xfont_driver): Set xfont_driver.match to xfont_match.
20555 (xfont_draw): Set font in GC if necessary.
20556
20557 * ftxfont.c (ftxfont_match): New function.
20558 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20559
20560 * xftfont.c (xftfont_match): New function.
20561 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20562
205632008-02-01 Kenichi Handa <handa@m17n.org>
20564
20565 * font.h (struct font): New member scalable.
20566 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20567 (font_otf_gsub): Adjust prototype.
20568
20569 * font.c (font_otf_capability): Fix handling of the default langsys.
20570 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20571 Check the contents of SPEC.
20572 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20573 (check_gstring): New function.
20574 (REPLACEMENT_CHARACTER): New macro.
20575 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20576 glyph codes of GSTRING.
20577 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20578 (font_prepare_composition): Set cmp->glyph_len.
20579 (font_open_entity): Set font->scalable.
20580 (Ffont_get): Handle :otf property.
20581 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20582 functions.
20583 (Fquery_font): Use font->font.full_name.
20584 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20585 Sfont_otf_alternates.
20586
20587 * ftfont.c (ftfont_open): Set font->font.full_name and
20588 font->font.name properly. Fix calculation of font->font.height
20589 and font->min_width.
20590
20591 * ftxfont.c (ftxfont_create_gcs): New function.
20592 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20593 (ftxfont_draw_backgrond): Fix filling region.
20594 (ftxfont_default_fid): New function.
20595 (ftxfont_open): Set xfont->fid to the return value of
20596 ftxfont_default_fid.
20597 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20598 (ftxfont_done_face): Free only GCs that are created by
20599 ftxfont_create_gcs.
20600 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20601
20602 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20603 Clip to src->width, etc (not src->clip_XXX).
20604
20605 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20606 FontBackend frame parameter.
20607
206082008-02-01 Kenichi Handa <handa@m17n.org>
20609
20610 * font.h (struct font_driver_list): New member `on'.
20611 (Fclear_font_cache): EXFUN it.
20612 (font_update_drivers): Extern it.
20613
20614 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20615 (font_list_entities): Check driver_list->on.
40b1a3a9 20616 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20617 (font_update_drivers): New function.
20618 (Fclear_font_cache): Check driver_list->on.
20619
20620 * frame.h (Qfont_backend): Extern it.
20621 (x_set_font_backend): Extern it.
20622
20623 * frame.c (Qfont_backend): New variable.
20624 (frame_parms): New element for font-backend.
20625 (x_set_font_backend): New function.
20626
20627 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20628 FontBackend frame parameter.
20629 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20630 x_set_font_backend.
20631
20632 * xfont.c (xfont_list): Don't try listing by :name property if the
20633 name is not for XLFD.
20634
206352008-02-01 Kenichi Handa <handa@m17n.org>
20636
20637 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20638 (LGLYPH_SET_TO): New macros.
20639 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20640 element of G is vector or not.
20641 (font_at): Extern it.
20642
20643 * font.c: Include window.h.
20644 (font_lispy_object): New function.
20645 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20646 end of valid glyph.
20647 (font_close_object): Fix getting (struct font *).
20648 (font_at): New function.
20649 (Ffont_get): If FONT is a font-object, get entity from it.
20650 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20651 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20652 range check.
20653 (Ffont_at): New function.
20654 (syms_of_font): Defsubr Sfont_at.
20655
20656 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20657 before the entry for Qcomposition.
20658 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20659 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20660 the font in gstring.
20661 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20662 LGLYPH_FORM (g) to detect the end of valid glyph.
20663 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20664 we are composing with gstring.
20665
20666 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20667 Check if adjustment is vector or not.
20668
20669 * Makefile.in (font.o): Make it depends on window.h.
20670
206712008-02-01 Kenichi Handa <handa@m17n.org>
20672
20673 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20674 adjustment is vector or not.
20675
206762008-02-01 Miles Bader <miles@gnu.org>
20677
20678 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20679
206802008-02-01 Kenichi Handa <handa@m17n.org>
20681
20682 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20683 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20684 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20685
20686 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20687 (DEVICE_DELTA): Fix typo.
20688 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20689 LGLYPH format.
20690
20691 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20692 the change of LGLYPH format.
20693
206942008-02-01 Kenichi Handa <handa@m17n.org>
20695
20696 * ftfont.c (ftfont_list): Fix typo.
20697 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20698
206992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20700
20701 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20702
20703 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20704 xftface_info is non-NULL.
20705
207062008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20707
20708 * ftfont.c (ftfont_list): Move misplaced #endif.
20709
207102008-02-01 Kenichi Handa <handa@m17n.org>
20711
20712 * ftfont.c (ftfont_list): Pay attention to the case that
20713 FC_CAPABILITY is not defined.
20714
207152008-02-01 Kenichi Handa <handa@m17n.org>
20716
20717 * xftfont.c (xftfont_open): Set charset related members to -1.
20718
20719 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20720 QCname.
20721 (ftfont_open): Set charset related members to -1.
20722
20723 * fontset.c (Votf_script_alist): New variable.
20724 (syms_of_fontset): Initialize it.
20725 (fontset_font): Delete unused variable.
20726
20727 * fontset.h (Votf_script_alist): Extern it.
20728
20729 * font.c (font_find_for_lface): Optimize code.
20730
20731 * font.h (font_close_object, font_merge_old_spec): Extern them.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20736 (syms_of_font): Initialize them.
20737 (font_pixel_size): Allow float value in dpi.
20738 (font_prop_validate_type): Delete.
20739 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20740 Change caller.
20741 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20742 (font_prop_validate_extra): Delete.
20743 (font_prop_validate_spacing): New function.
20744 (font_property_table): Add elements for all known properties.
20745 (get_font_prop_index): Rename from check_font_prop_name. New
20746 argument FROM. Change caller.
20747 (font_prop_validate): Validate all known properties.
20748 (font_put_extra): Delete argument force. Change caller.
20749 (font_expand_wildcards): Make it static. Fix the way of shrinking
20750 the possible range.
20751 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20752 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20753 Change caller.
20754 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20755 (font_parse_fcname): Delete argument merge. Fix parsing of point
20756 size. Don't validate properties values here. Change caller.
20757 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20758 (font_open_by_name): Delete unused variable.
20759 (Ffont_spec): Likewise. Validate property values.
20760 (Ffont_match_p): New function.
20761
20762 * font.h (QCscalable): Extern it.
20763 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20764
20765 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20766
20767 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20768 (xfont_list_pattern): New function.
20769 (xfont_list): Use xfont_list_pattern.
20770
207712008-02-01 Kenichi Handa <handa@m17n.org>
20772
20773 * font.h (Flist_fonts): EXFUN it.
20774
207752008-02-01 Jason Rumney <jasonr@gnu.org>
20776
20777 * w32term.c (w32_initialize): Add back smoothing_type and
20778 smoothing_enabled definitions.
20779
207802008-02-01 Kenichi Handa <handa@m17n.org>
20781
20782 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20783 s->face->font on determining underline position.
20784
207852008-02-01 Kenichi Handa <handa@m17n.org>
20786
20787 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20788 (font_has_char): Accept font-object too.
20789 (font_find_for_lface): Try at first with a size specified in face.
20790
207912008-02-01 Kenichi Handa <handa@m17n.org>
20792
20793 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20794 font_open_by_name.
20795
207962008-02-01 Kenichi Handa <handa@m17n.org>
20797
20798 * font.h (QCspacing, QCdpi): Extern them.
20799 (enum font_spacing): New enum.
20800 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20801
20802 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20803 (QCspacing, QCdpi): New variables.
20804 (syms_of_font): Initialize them.
20805 (font_pixel_size): New function.
20806 (font_put_extra): New function.
20807 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20808 in FONT_EXTRA.
20809 (font_parse_fcname): Handle enumerated values (e.g. bold).
20810 Fix handling font size. Add QCname property that contains only
20811 unknown properties.
20812 (font_score): Change argument. Change caller. Pay attention to
20813 FONT_PIXEL_SIZE_QUANTUM.
20814 (font_sort_entites, font_list_entities, font_find_for_lface)
20815 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20816 (Ffont_spec): Add QCname property that contains only unknown properties.
20817
20818 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20819 include weight in listing pattern, instead check weight of each
20820 listed font. Don't include scalable in pattern. Pay attention to
20821 FONT_PIXEL_SIZE_QUANTUM.
20822
208232008-02-01 Kenichi Handa <handa@m17n.org>
20824
20825 * font.c (font_parse_fcname): Fix parsing of point-size.
20826 (font_unparse_fcname): Produce symbolic names for style properties.
20827 (font_list_entities): Handle float size correctly.
20828 (font_open_by_name): Prefer `normal' property values if the name
20829 doesn't specify them.
20830
20831 * fontset.c (Finternal_char_font): Use font_get_name, not
20832 Ffont_xlfd_name.
20833
20834 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20835 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20836 pattern. Don't force scalable.
20837
20838 * xftfont.c (xftfont_open): For generating a name, start from
20839 96-byte buffer.
20840
208412008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20842
20843 * frame.h (x_new_fontset2): Fix prototype.
20844
208452008-02-01 Kenichi Handa <handa@m17n.org>
20846
20847 * font.h (struct font_driver): Delete member parse_name.
20848 (font_match_p, font_get_spec, font_parse_fcname)
20849 (font_unparse_fcname): Extern them.
20850 (font_get_name): Adjust prototype.
20851
20852 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20853 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20854 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20855 unnecessary checks for weight, slant, and swidth.
20856 (font_parse_fcname): New function.
20857 (font_unparse_fcname): New function.
20858 (font_parse_name): New function.
20859 (font_match_p): New function.
20860 (font_get_name): Change return value to Lisp string.
20861 (font_get_spec): New function.
20862 (Qunspecified, Qignore_defface): Don't extern them.
20863 (font_find_for_lface): Assume that LFACE is fully specified.
20864 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20865 object, use it for FACE.
20866 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20867 driver->parse_name.
20868 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20869
20870 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20871 prototype.
20872
20873 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20874 argument F. Don't call Fnew_fontset. Instead, directly call
20875 make_fontset.
20876
20877 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20878
20879 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20880 of x_new_fontset2.
20881
20882 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20883 (Qsans__serif): New variables.
20884 (ftfont_generic_family_list): New variable.
20885 (syms_of_ftfont): Initialize the above variables.
20886 (ftfont_pattern_entity): Delete argument NAME.
20887 (ftfont_list_generic_family): New function.
20888 (ftfont_parse_name): Delete this function.
20889 (ftfont_list): Try generic family only when FcFontList found no font.
20890 (ftfont_list_family): Fix args to FcObjectSetBuild.
20891
20892 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20893 object in attrs[LFACE_FONT_INDEX].
20894 (set_lface_from_font_name): Cancel all changes for font-backend.
20895 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20896 function.
20897 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20898 font object in QCfont attribute.
20899 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20900 (realize_default_face) [USE_FONT_BACKEND]: Call
20901 set_lface_from_font_and_fontset.
20902
20903 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20904 "fixed", and signal error here if no suitable font was found.
20905
20906 * xfont.c (xfont_parse_name): Delete this function.
20907
20908 * xftfont.c (xftfont_open): Change coding style of error
20909 handling. Generate fontconfig's fontname pattern.
20910
20911 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20912 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20913
20914 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20915 Both args FONTSET and FONT_OBJECT must be existing ones.
20916
209172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20918
20919 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20920
209212008-02-01 Kenichi Handa <handa@m17n.org>
20922
20923 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20924
20925 * font.h (struct font): Fix typo.
20926
20927 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20928 XLFD_XXX_INDEX.
20929 (enum xlfd_field_mask): New enum.
20930 (intern_font_field): Changed argument. Change caller. If digits
20931 are followed by non-digits, return a symbol.
20932 (font_expand_wildcards): New function.
20933 (font_parse_xlfd): Fix wildcard handling.
20934 (Ffont_spec): If :name is specified, reflect the info in the other
20935 properties.
20936
20937 * ftfont.c (ftfont_pattern_entity): Fix typo.
20938 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20939 locale.
20940
209412008-02-01 Kenichi Handa <handa@m17n.org>
20942
20943 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20944
20945 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20946 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20947 registry doesn't specify encoding part.
20948 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20949 (font_open_by_name): At first try parsing the name.
20950 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20951 as Lisp symbols.
20952
20953 * fontset.c (reorder_font_vector): Pay attention to the case that
20954 the 3rd element of font_def is nil.
20955 (fontset_font): For the default fontset, append one more fontset
20956 elements for a script-based font specification. Don't add script
20957 attribute on finding a font.
20958 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20959 font name.
20960 (fontset_ascii_font): If a font can't be opened, return nil.
20961
20962 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20963 (ftfont_pattern_entity): New function.
20964 (ftfont_get_cache): Assume that freetype_font_cache is already
20965 initialized.
20966 (ftfont_list): Handle the case that a file is specified in font
20967 name. Use ftfont_pattern_entity to generate entities.
20968 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20969 (syms_of_ftfont): Initialize freetype_font_cache.
20970
20971 * xftfont.c (xftfont_open): Make the font name fontconfig's
20972 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20973 (xftfont_close): Free font->font.name if not NULL.
20974
20975 * xfont.c (xfont_list): If script is specified for a font, return
20976 null_vector.
20977 (xfont_list_family): Declare argument type.
20978
20979 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20980 name, set LFACE_FONT (lface) to nil.
20981
20982 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20983 return Qnil.
20984
209852008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20988 (standard_args): Add "-enable-font-backend".
20989
209902008-02-01 Kenichi Handa <handa@m17n.org>
20991
20992 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20993 (struct xftdraw_list, xftdraw_list): Delete them.
20994 (register_xftdraw, check_xftdraw): Delete them.
20995 (xftfont_prepare_face): Don't call register_xftdraw.
20996 (xftfont_done_face): Don't call check_xftdraw.
20997 (xftfont_draw): Get background color only when with_background is
20998 nonzero.
20999
21000 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21001
210022008-02-01 Kenichi Handa <handa@m17n.org>
21003
21004 These changes are for the new font handling codes.
21005
21006 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21007 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21008 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21009 (FONTSRC, FONTOBJ): New variables.
21010 (obj): Add $(FONTOBJ).
21011 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21012 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21013 @LIBOTF_LIBS@.
21014 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21015 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21016
21017 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21018
21019 * character.h (Vscript_representative_chars): Extern it.
21020
21021 * character.c (Vscript_representative_chars): New variable.
21022 (syms_of_character): Declare it as a Lisp variable.
21023
21024 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21025 enable_font_backend is nonzero, accept the composition method
21026 COMPOSITION_WITH_GLYPH_STRING.
21027
21028 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21029 enumeration COMPOSITION_WITH_GLYPH_STRING.
21030
21031 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21032 members clip_x, clip_y, clip_width, and clip_height.
21033 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21034
21035 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21036 --enable-font-backend. Call syms_of_font.
21037
21038 * fns.c (assoc_no_quit): New function.
21039
21040 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21041 (face_for_font, new_fontset_from_font)
21042 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21043
21044 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21045 (fontset_font, fontset_ascii, face_for_char)
21046 (make_fontset_for_ascii_face, Ffont_info)
21047 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21048 is nonzero, use font-backend mechanism.
21049 (find_font_encoding): Make it non-static.
21050 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21051 New functions.
21052
21053 * frame.h (struct frame): New members resx and resy.
21054 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21055 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21056
21057 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21058 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21059
21060 * lisp.h (assoc_no_quit): Extern it.
21061
21062 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21063 Through out the file, use FONT_INFO_FROM_FACE instead of
21064 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21065 rif->per_char_metric.
21066 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21067 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21068 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21069 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21070 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21071 nonzero, use font-backend mechanism.
21072 (get_per_char_metric): New function.
21073
21074 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21075 (set_lface_from_font_name)
21076 (set_font_frame_param, free_realized_face)
21077 (prepare_face_for_display, clear_face_gcs)
21078 (Finternal_set_font_selection_order, realize_x_face)
21079 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21080 font-backend mechanism.
21081 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21082 (load_face_font) [USE_FONT_BACKEND]: Abort.
21083 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21084 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21085
21086 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21087 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21088 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21089 nonzero, register all available font drivers. Call
21090 x_default_font_parameter for deciding a font.
21091 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21092
21093 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21094 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21095 (x_set_glyph_string_clipping_exactly)
21096 (x_compute_glyph_string_overhangs)
21097 (x_draw_glyph_string_foreground)
21098 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21099 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21100 enable_font_backend is nonzero, use font-backend mechanism.
21101 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21102
211032008-02-01 Kenichi Handa <handa@m17n.org>
21104
21105 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21106 system_eol_type.
21107 (syms_of_coding): Initialize system_eol_type.
21108
21109 * process.c (Fset_process_coding_system): Inherit system's eol
21110 format if necessary.
21111
211122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21113
21114 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21115
211162008-02-01 Kenichi Handa <handa@m17n.org>
21117
21118 * coding.c (decode_eol): Pay attention to buffer relocation in
21119 del_range_2.
21120 (decode_coding): Call decode_eol before restoring undo_list.
21121
211222008-02-01 Kenichi Handa <handa@m17n.org>
21123
21124 * charset.c (Fdefine_charset_internal): Fix setting of
21125 emacs_mule_bytes.
21126
211272008-02-01 Kenichi Handa <handa@m17n.org>
21128
21129 * keyboard.c (read_char): Check if C is a character or not before
21130 looking up Vkeyboard_translate_table.
21131
211322008-02-01 Kenichi Handa <handa@m17n.org>
21133
21134 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21135 condition to terminate the loop.
21136
211372008-02-01 Kenichi Handa <handa@m17n.org>
21138
21139 * coding.c (produce_composition): Compare charbuf[i] instead of
21140 args[i] against 0.
21141 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21142
211432008-02-01 Kenichi Handa <handa@m17n.org>
21144
21145 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21146 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21147 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21148 detect_coding.
21149 (emacs_mule_char): Handle old style (Emacs 20) component character
21150 of a composition.
21151 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21152 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21153 composition rule.
21154 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21155
211562008-02-01 Kenichi Handa <handa@m17n.org>
21157
21158 * coding.c (encode_coding_ccl): Allocate destination dynamically
21159 when necessary.
21160
211612008-02-01 Kenichi Handa <handa@m17n.org>
21162
21163 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21164 the loop. When quitted, show a proper error message.
21165
211662008-02-01 Kenichi Handa <handa@m17n.org>
21167
21168 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21169 src->clip_head and src->clip_tail temporarily instead of src->hl.
21170
21171 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21172 character sequence.
21173 (Fccl_execute_on_string): Use ASET, not XSET.
21174
211752008-02-01 Kenichi Handa <handa@m17n.org>
21176
21177 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21178
211792008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * coding.c (decode_coding): Fix the condition of terminating the
21182 decoding loop.
21183
211842008-02-01 Kenichi Handa <handa@m17n.org>
21185
21186 * data.c (Faset): On setting a character bigger than 255 in a
21187 unibyte string, signal an error instead of make the string multibyte.
21188
211892008-02-01 Kenichi Handa <handa@m17n.org>
21190
21191 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21192 made by a mapping table.
21193
211942008-02-01 Kenichi Handa <handa@m17n.org>
21195
21196 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21197 not.
21198 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21199 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21200
21201 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21202 s->face is NULL or not.
21203
212042008-02-01 Kenichi Handa <handa@m17n.org>
21205
21206 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21207 (x_draw_glyph_string): Fix drawing of right_overhang and
21208 left_overhang around/on cursor.
21209
21210 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21211
212122008-02-01 Kenichi Handa <handa@m17n.org>
21213
21214 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21215
212162008-02-01 Kenichi Handa <handa@m17n.org>
21217
21218 * coding.c (Fdefine_coding_system_internal)
21219 (Fdefine_coding_system_alias): Avoid a duplicated element in
21220 Vcoding_system_alist.
21221
212222008-02-01 Kenichi Handa <handa@m17n.org>
21223
21224 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21225
21226 * coding.c (Qcoding_system_define_form): New variable.
21227 (syms_of_coding): Intern and staticpro it.
21228 (Fcoding_system_p): Check Qcoding_system_define_form.
21229 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21230
21231 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21232 Fcoding_system_p.
21233 (CHECK_CODING_SYSTEM): If ID is not available, call
21234 Fcheck_coding_system.
21235 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21236 Try also Fcheck_coding_system.
21237
212382008-02-01 Kenichi Handa <handa@m17n.org>
21239
21240 * coding.c (code_conversion_restore): GCPRO arg.
21241
212422008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * character.c (lisp_string_width): Check multibyteness of STRING.
21245
212462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21247
21248 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21249 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21250 (decode_mac_font_name): Use decode_coding_c_string instead of
21251 decode_coding.
21252 (x_load_font): Initialize fontp->fontset to -1. Set
21253 fontp->encoding_type.
21254
212552008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * search.c (search_buffer): Give up BM search on case-fold-search
21258 if one of a target character has a case-equivalence of different
3b59c351 21259 byte length even if that target character is an ASCII.
aac0c6e3
MR
21260 (simple_search): Fix calculation of byte length of matched text.
21261 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21262
212632008-02-01 Kenichi Handa <handa@m17n.org>
21264
21265 * coding.c (decode_coding): Fix handling of invalid bytes.
21266
212672008-02-01 Kenichi Handa <handa@m17n.org>
21268
21269 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21270 Unicode characters.
21271
212722008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * coding.c (encode_coding_object): If a pre-write-conversion
21275 function makes a new buffer, kill it.
21276
212772008-02-01 Kenichi Handa <handa@m17n.org>
21278
21279 * coding.c (QCascii_compatible_p): New variable.
21280 (syms_of_coding): Initialize it.
21281 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21282 calling string_char.
21283 (record_conversion_result): Add `default:' case.
21284 (coding_charset_list): Delete unused variable `coding_type'.
21285 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21286 property in the plist of the coding system.
21287 (Fcoding_system_put): Check QCascii_compatible_p.
21288
212892008-02-01 Miles Bader <miles@gnu.org>
21290
21291 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21292 removed calculation of frame `f', as it's now used.
21293
212942008-02-01 Kenichi Handa <handa@m17n.org>
21295
21296 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21297 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21298 (UNIDATA): New variable.
21299 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21300 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21301 $(RUN_TEMACS) unconditionally.
21302
213032008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21306 (admindir): New variable.
21307 ($(lispsource)international/charprop.el): New target.
21308
213092008-02-01 Miles Bader <miles@gnu.org>
21310
21311 * character.c (chars-in-region): Remove obsolete function.
21312 (syms_of_character): Remove its initialization.
21313
213142008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21315
21316 * w32select.c (validate_coding_system)
21317 (setup_windows_coding_system): New functions.
21318 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21319 setup_windows_coding_system.
21320 (setup_config, Fw32_get_clipboard_data): Use
21321 validate_coding_system.
21322 (Fx_selection_exists): Move call to setup_config to a place
21323 where signals are allowed.
21324
21325 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21326 (Fcheck_coding_system): Add declarations.
21327
213282008-02-01 Kenichi Handa <handa@m17n.org>
21329
21330 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21331
213322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21333
21334 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21335 string as the second argument for x_new_fontset.
21336
213372008-02-01 Kenichi Handa <handa@m17n.org>
21338
21339 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21340 (encode_coding_object): Use safe_call instead of call2.
21341
213422008-02-01 Kenichi Handa <handa@m17n.org>
21343
21344 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21345
21346 * Makefile.in (lisp): Include charprop.el.
21347
213482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21349
21350 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21351 Not sure if it's unnecessary.
21352
213532008-02-01 Steven Tamm <steventamm@mac.com>
21354
21355 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21356 some possibly unnecessary fontset checking code that crashed
21357 when creating a new frame.
21358
213592008-02-01 Kenichi Handa <handa@m17n.org>
21360
21361 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21362 lookup_face.
21363
21364 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21365
21366 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21367
213682008-02-01 Kenichi Handa <handa@m17n.org>
21369
21370 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21371 (coding_charset_list): New function.
21372
21373 * coding.h (coding_charset_list): Extern it.
21374
213752008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21378 concatenation of family and registry.
21379
213802008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * character.h (BYTE8_STRING): Fix typo.
21383
21384 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21385 string to multibyte (sync to HEAD).
21386
21387 * casefiddle.c (casify_region): Handle changes in byte-length
21388 using replace_range_2 (sync to HEAD).
21389
213902008-02-01 Andreas Schwab <schwab@suse.de>
21391
21392 * chartab.c (map_char_table): GCPRO table and arg.
21393
213942008-02-01 Kenichi Handa <handa@m17n.org>
21395
21396 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21397 already at limit.
21398
213992008-02-01 Kenichi Handa <handa@m17n.org>
21400
21401 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21402 instead of fast_c_string_match_ignore_case.
21403 (find_font_encoding): Change argument to Lisp_Object. Use
21404 fast_string_match_ignore_case instead of
21405 fast_c_string_match_ignore_case. Change caller.
21406
214072008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * xdisp.c (get_next_display_element): In unibyte case, decide to
21410 display in octal form by checking a character by
21411 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21412
21413 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21414
21415 * character.c (unibyte_has_multibyte_table): New variable.
21416
21417 * character.h (unibyte_has_multibyte_table): Extern it.
21418 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21419
214202008-02-01 Kenichi Handa <handa@m17n.org>
21421
21422 * coding.c (encode_coding_iso_2022): Fix handling of charset
21423 annotation.
21424
214252008-02-01 Kenichi Handa <handa@m17n.org>
21426
21427 * coding.c (setup_coding_system): If coding_system is nil, use
21428 Qundecided.
21429 (Fterminal_coding_system): Return nil if terminal coding system is
21430 `undecided'.
21431 (syms_of_coding): Define coding-system `undecided' here. Setup
21432 terminal_coding as `undecided'.
21433
214342008-02-01 Kenichi Handa <handa@m17n.org>
21435
21436 * xdisp.c (message_dolog, set_message_1): Call
21437 unibyte_char_to_multibyte with arg type int.
21438
21439 * lread.c (read1): Fix reading of a char-table.
21440
21441 * print.c (print_object): Include sub char-table in circularities
21442 detection.
21443
214442008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21447 Append the found sequences in car of ARGS instead of prepending.
21448
214492008-02-01 Kenichi Handa <handa@m17n.org>
21450
21451 * fileio.c (report_file_error): Make a unibyte string from
21452 strerror (errorno).
21453 (Fsubstitute_in_file_name): Fix the arg to
21454 unibyte_char_to_multibyte. It is evaluated twice.
21455
214562008-02-01 Kenichi Handa <handa@m17n.org>
21457
21458 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21459
214602008-02-01 Kenichi Handa <handa@m17n.org>
21461
21462 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21463 BOM is not found.
21464 (detect_coding, detect_coding_system): Optimization for ISO-2022
21465 when no 8-bit data is found.
21466
214672008-02-01 Jason Rumney <jasonr@gnu.org>
21468
21469 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21470
214712008-02-01 Kenichi Handa <handa@m17n.org>
21472
21473 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21474 CHARS.
21475
214762008-02-01 Steven Tamm <steventamm@mac.com>
21477
21478 * macterm.c (mac_encode_char): Add charset argument and update
21479 to use encoding_type.
21480 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21481 switch to pure fontset.
21482 (decode_mac_font_name): Temporarily remove decoding.
21483 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21484 (x_load_font): Temporarily remove encoding.
21485
214862008-02-01 Kenichi Handa <handa@m17n.org>
21487
21488 * xfaces.c (Fface_font): If frame is not on a window system,
21489 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21490 refer to face->font.
21491 (split_font_name_into_vector, build_font_name_from_vector)
21492 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21493 when HAVE_WINDOW_SYSTEM is defined.
21494
214952008-02-01 Kenichi Handa <handa@m17n.org>
21496
21497 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21498 (x_produce_glyphs): Fix setting of members of cmp in case
21499 cmp->glyph_len is zero.
21500
21501 * fontset.c (Fset_fontset_font): Fix docstring.
21502 (Ffontset_info): Make it backward compatible. New arg ALL.
21503
215042008-02-01 Kim F. Storm <storm@cua.dk>
21505
21506 * process.c (read_process_output): Grow decoding_buf when needed;
21507 this could cause a crash in allocate_string and compact_small_strings.
21508
215092008-02-01 Kenichi Handa <handa@m17n.org>
21510
21511 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21512
215132008-02-01 Kenichi Handa <handa@m17n.org>
21514
21515 * coding.c (setup_coding_system): Set coding->common_flags
21516 correctly for raw-text.
21517 (consume_chars): On encoding unibyte text by raw-text, don't check
21518 multibyte form.
21519 (encode_coding): On encoding by raw-text, never use translation tables.
21520
21521 * fileio.c (e_write): Short cut for the case of no encoding.
21522
215232008-02-01 Kenichi Handa <handa@m17n.org>
21524
21525 * coding.c (detect_coding, detect_coding_system): Delete unused
21526 variables.
21527
215282008-02-01 Kenichi Handa <handa@m17n.org>
21529
21530 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21531 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21532
215332008-02-01 Kenichi Handa <handa@m17n.org>
21534
21535 * coding.c (Ffind_coding_systems_region_internal): Include
21536 raw-text and no-conversion in the result.
21537
215382008-02-01 Kenichi Handa <handa@m17n.org>
21539
21540 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21541 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21542 FONT_DEF.
21543 (font_def_arg, add_arg, from_arg, to_arg): New args.
21544 (set_fontset_font): Change argument.
21545 (Fset_fontset_font): Fix for the case that TARGET is a script
21546 name and charset name.
21547 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21548
215492008-02-01 Kenichi Handa <handa@m17n.org>
21550
21551 * fontset.c (fontset_font): Rename from fontset_face. Change return
21552 value.
21553 (face_suitable_for_char_p, face_for_char): Adjust for the change
21554 of fontset_font.
21555 (make_fontset_for_ascii_face): Fix setting of the fontset element
21556 for ASCII.
21557 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21558 to get a font name.
21559 (Ffontset_info): Adjust for the change of fontset_font.
21560
21561 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21562
21563 * character.h (LEADING_CODE_LATIN_1_MIN)
21564 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21565
215662008-02-01 Kenichi Handa <handa@m17n.org>
21567
21568 * editfns.c (check_translation): New function.
21569 (Ftranslate_region_internal): Handle M:N mapping.
21570
215712008-02-01 Kenichi Handa <handa@m17n.org>
21572
21573 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21574
215752008-02-01 Kenichi Handa <handa@m17n.org>
21576
21577 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21578 goto invalid_code.
21579 (decode_coding_iso_2022): Fix handling of invalid designation.
21580
21581 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21582 after calling code_conversion_save.
21583
215842008-02-01 Kenichi Handa <handa@m17n.org>
21585
21586 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21587
21588 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21589
21590 * fontset.c: Include "intervals.h".
21591 (fontset_face): Fix comparing of Lisp_Objects.
21592 (free_face_fontset, new_fontset_from_font_name): Fix
21593 Lisp_Object/int mixup.
21594
21595 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21596
21597 * coding.c: Add many prototypes for static functions.
21598 (get_translation_table): Allow max_lookup to be NULL.
21599 (decode_coding, Ffind_coding_systems_region_internal)
21600 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21601 get_translation_table with max_lookup NULL.
21602
216032008-02-01 Kenichi Handa <handa@m17n.org>
21604
21605 * coding.c (get_translation_table): Declare it as Lisp_Object.
21606 (LOOKUP_TRANSLATION_TABLE): New macro.
21607 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21608 instead of CHAR_TABLE_REF.
21609
216102008-02-01 Kenichi Handa <handa@m17n.org>
21611
21612 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21613 annotation data format.
21614 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21615 Change arguments FROM and TO to single argument NCHARS. Change caller.
21616 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21617 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21618 (decode_coding_ccl, decode_coding_charset): Pay attention to
21619 coding->charbuf_used.
21620 (get_translation): New function.
21621 (produce_chars): New arguments translation_table and last_block.
21622 Translate characters here. Return number of carryover chars.
21623 Change caller.
21624 (produce_composition): New argument pos. Change caller.
21625 Adjust for the change of annotation data format.
21626 (produce_charset, produce_annotation): Likewise.
21627 (decode_coding, encode_coding): Don't call translate_chars.
21628 (consume_chars): New arg translation_table. Change caller.
21629 (translate_chars): Delete.
21630 (syms_of_coding): Make translation-table's number of extra slots 2.
21631
216322008-02-01 Kenichi Handa <handa@m17n.org>
21633
21634 * search.c (simple_search): Fix setting this_pos_byte in backward
21635 search.
21636
21637 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21638 byte sequence.
21639 (detect_coding_ccl): Fix setting of the variable valids.
21640
216412008-02-01 Kenichi Handa <handa@m17n.org>
21642
21643 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21644
21645 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21646
21647 * editfns.c (Ftranslate_region_internal): Rename from
21648 Ftranslate_region. Accept a char-table in TABLE.
21649 (syms_of_editfns): Defsubr Stranslate_region_internal.
21650
21651 * xfaces.c (set_lface_from_font_name): If a font is specified for
21652 a frame, generate a fontset from the font.
21653 (build_scalable_font_name): If the scalable font is requested for
21654 a specific size, don't change that size.
21655 (try_font_list): Try a scalable font also in the case that a
21656 pattern string is specified.
21657
216582008-02-01 Kenichi Handa <handa@m17n.org>
21659
21660 * xfaces.c (Fface_font): New optional arg CHARACTER.
21661
216622008-02-01 Kenichi Handa <handa@m17n.org>
21663
21664 * charset.h (CHARSET_OFFSET): New macro.
21665
216662008-02-01 Kenichi Handa <handa@m17n.org>
21667
21668 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21669
21670 * fontset.c (fontset_face): Handle the case that repertory is a
21671 char-table.
21672 (find_font_encoding): Return nil for unknown encoding.
21673 (Fset_fontset_font): Ignore a font of unknown encoding.
21674
216752008-02-01 Kenichi Handa <handa@m17n.org>
21676
21677 * keymap.c (describe_vector): Handle default value of a char table.
21678
21679 * fontset.c (fontset_face): Handle fallback fonts correctly.
21680 (Ffontset_info): Return infomation about fallback fonts.
21681
216822008-02-01 Kenichi Handa <handa@m17n.org>
21683
21684 * fontset.c (FONTSET_DEFAULT): New macro.
21685 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21686 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21687 the case that it is nil.
21688 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21689 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21690
21691 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21692 subset or superset.
21693
216942008-02-01 Kenichi Handa <handa@m17n.org>
21695
21696 * emacs.c (main): Call init_charset after syms_of_XXX.
21697
21698 * charset.c (Vcharset_map_directory): Delete.
21699 (Vcharset_map_path): New variable.
21700 (load_charset_map_from_file): Use Vcharset_map_path instead.
21701 (init_charset): Initialize Vcharset_map_path.
21702 (syms_of_charset): Delete declaration of "charset-map-directory",
21703 add declaration of "charset-map-path".
21704
217052008-02-01 Kenichi Handa <handa@m17n.org>
21706
21707 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21708 ASCII only string.
21709
21710 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21711
21712 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21713 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21714
217152008-02-01 Kenichi Handa <handa@m17n.org>
21716
21717 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21718
21719 * coding.c (QCmnemonic, QCdefalut_char)
21720 (QCdecode_translation_table, QCencode_translation_table)
21721 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21722 (get_translation_table): Return a list of translation tables if
21723 necessary.
21724 (decode_coding): Call get_translation_table with ENCODEP 0.
21725 (char_encodable_p): If translation_table is non-nil, always call
21726 translate_char.
21727 (Fdefine_coding_system_internal): Accept list of translation
21728 tables as :encode-translation-table and :decode-translation-table.
21729 (Fcoding_system_put): New function.
21730 (syms_of_coding): Declare new symbols. Defsubr
21731 Scoding_system_put.
21732 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21733 typically JISX0212.
21734
21735 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21736 when the charset is superset type.
21737
21738 * character.c (translate_char): Accept list of translation tables.
21739
217402008-02-01 Kenichi Handa <handa@m17n.org>
21741
21742 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21743 (CODING_ATTR_TRANS_TBL): New macro.
21744
21745 * coding.c (get_translation_table): New function.
21746 (translate_chars): Fix the bug of skipping annotation data.
21747 (decode_coding, encode_coding): Utilize get_translation_table.
21748 (char_encodable_p, Funencodable_char_position): Translate char if
21749 necessary.
21750 (Ffind_coding_systems_region_internal)
21751 (Fcheck_coding_systems_region): Setup translation table for encode
21752 in a coding system attribute vector in advance.
21753 (Fdefine_coding_system_internal): Allow a symbol as translation
21754 table. For shift-jis type coding system, allow 4th charset.
21755
217562008-02-01 Kenichi Handa <handa@m17n.org>
21757
21758 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21759
21760 * xdisp.c (get_next_display_element): Pass -1 as POS to
21761 FACE_FOR_CHAR if displaying a C-string.
21762
217632008-02-01 Kenichi Handa <handa@m17n.org>
21764
21765 * composite.c (get_composition_id): Handle xoff and yoff in a
21766 composition rule.
21767
21768 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21769 (struct composition): New member lbearing and rbearing.
21770
21771 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21772 (x_get_glyph_overhangs): Handle a composition glyph.
21773 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21774
21775 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21776 composition glyph.
21777
217782008-02-01 Kenichi Handa <handa@m17n.org>
21779
21780 * print.c: Include charset.h.
21781 (Vprint_charset_text_property): New variable.
21782 (Qdefault): Extern it.
21783 (PRINT_STRING_NON_CHARSET_FOUND)
21784 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21785 (print_check_string_result): New variable.
21786 (print_check_string_charset_prop): New function.
21787 (print_prune_charset_plist): New variable.
21788 (print_prune_string_charset): New function.
21789 (print_object): Call print_prune_string_charset if
21790 Vprint_charset_text_property is not t.
21791 (print_interval): Print nothing if interval->plist is nil.
21792 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21793 variable. Init and staticpro print_prune_charset_plist.
21794
217952008-02-01 Kenichi Handa <handa@m17n.org>
21796
21797 * fontset.c (new_fontset_from_font_name): Use the specified font
21798 for all characters in the new fontset.
21799
21800 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21801 OBJECT args.
21802
21803 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21804 OBJECT args for composition too.
21805
21806 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21807 OBJECT args.
21808
218092008-02-01 Kenichi Handa <handa@m17n.org>
21810
21811 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21812
21813 * fontset.c (reorder_font_vector): Adjust for the change of
21814 FONT_DEF format.
21815 (fontset_face): New arg id. Change caller.
21816 (face_for_char): New args pos and object.
21817 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21818 (fs_query_fontset): Check NAME by Fassoc too.
21819 (Fset_fontset_font): Allow non-XLFD font name.
21820 (Ffontset_info): Adjust for the change of FONT_DEF format.
21821
21822 * fontset.h (face_for_char): Adjust prototype.
21823
21824 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21825 (append_space, extend_face_to_end_of_line)
21826 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21827 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21828
21829 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21830 POS and OBJECT args.
21831
21832 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21833 POS and OBJECT args.
21834
218352008-02-01 Jason Rumney <jasonr@gnu.org>
21836
21837 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21838 of GlobalAlloc'ed memory.
21839
218402008-02-01 Kenichi Handa <handa@m17n.org>
21841
21842 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21843
21844 * charset.h (charset_table_used): Delete extern.
21845
21846 * charset.c (charset_table_used): Make it static.
21847 (map_charset_chars): Fix args to c_function with.
21848
21849 * chartab.c (map_sub_char_table_for_charset): Fix args to
21850 c_function with.
21851
21852 * coding.h (enum coding_result_code): Delete
21853 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21854
21855 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21856 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21857 (Vlast_code_conversion_error): New variables.
21858 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21859 (ONE_MORE_BYTE): Record error if any instead of signaling an
21860 error. If non-ASCII multibyte char is found, return the negative
21861 value of the code. All callers changed to check it.
21862 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21863 (record_conversion_result): New function. Change all codes setting
21864 coding->result to call this function.
21865 (detect_coding_utf_8, decode_coding_utf_8)
21866 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21867 Don't use the local variable incomplete.
21868 (emacs_mule_char): Change the second arg to `const'.
21869 (decode_coding): Fix of flushing out unprocessed data.
21870 (make_conversion_work_buffer): Fix making of a work buffer.
21871 (decode_coding_object): Return coding->dst_object.
21872
21873 * fontset.c (set_fontset_font): Fix args.
21874
21875 * lisp.h (CHARACTERBITS): Define as 22.
21876
21877 * process.c (send_process): Be sure to set coding->src_multibyte.
21878
21879 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21880
218812008-02-01 Kenichi Handa <handa@m17n.org>
21882
21883 * xdisp.c (handle_auto_composed_prop): Give limit to
21884 Fnext_single_char_property_change.
21885
218862008-02-01 Kenichi Handa <handa@m17n.org>
21887
21888 * composite.c (syms_of_composite): Don't make the composition hash
21889 table weak.
21890
21891 * fontset.c (Fset_fontset_font): Fix docstring.
21892
21893 * lisp.h (detect_coding_system): Adjust prototype.
21894
21895 * fileio.c (kill_workbuf_unwind): Delete this function.
21896 (Finsert_file_contents): Adjust the call of detect_coding_system.
21897 Get conversion_buffer by code_conversion_save. Use the macro
21898 CODING_MAY_REQUIRE_DECODING. After decoding, update
21899 coding_system.
21900
21901 * coding.h (make_conversion_work_buffer): Delete extern.
21902 (code_conversion_save): Extern it.
21903
21904 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21905 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21906 (decode_coding_utf_8): Don't do eol converion.
21907 (detect_coding_utf_16): Check coding->src_chars, not
21908 coding->src_bytes. Add heuristics for those that have no signature.
21909 (decode_coding_emacs_mule, decode_coding_iso_2022)
21910 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21911 Don't do eol converion.
21912 (adjust_coding_eol_type): Return a new coding system.
21913 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21914 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21915 each change.
21916 (decode_coding): Pay attention to undo_list. Do eol conversion for
21917 all types of coding-systems (if necessary).
21918 (Vcode_conversion_work_buf_list): Delete it.
21919 (Vcode_conversion_reused_workbuf): Rename from
21920 Vcode_conversion_reused_work_buf.
21921 (Vcode_conversion_workbuf_name): New variable.
21922 (reused_workbuf_in_use): New variable.
21923 (make_conversion_work_buffer): Delete the arg DEPTH.
21924 (code_conversion_restore): Change argument to cons.
21925 (code_conversion_save): Delete the argument BUFFER. Change callers.
21926 (detect_coding_system): New argument src_chars. Change callers.
21927 Fix for utf-16 detection.
21928 (init_coding_once): Don't use ISO_carriage_return.
21929 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21930 reused_workbuf_in_use.
21931
219322008-02-01 Kenichi Handa <handa@m17n.org>
21933
21934 * keymap.c (store_in_keymap): Pay attention to the case that idx
21935 is a cons specifying a character range.
21936
219372008-02-01 Kenichi Handa <handa@m17n.org>
21938
21939 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21940 HANDLED_RECOMPUTE_PROPS.
21941
21942 * coding.c (Fdefine_coding_system_internal): Fix checking of
21943 ascii compatibility.
21944
219452008-02-01 Kenichi Handa <handa@m17n.org>
21946
21947 * charset.c (find_charsets_in_text): Delete unused locale variable.
21948 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21949
21950 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21951 Resync charset_list to Vemacs_mule_charset_list.
21952
21953 * keymap.c (store_in_keymap): Pay attention to the case that idx
21954 is a cons specifying a character range.
21955
219562008-02-01 Kenichi Handa <handa@m17n.org>
21957
21958 * composite.c (update_compositions): Bind inhibit-read-only, etc
21959 to t before calling remove-list-of-text-properties.
21960
21961 * print.c (print_object): Always print ASCII chars as is.
21962
219632008-02-01 Kenichi Handa <handa@m17n.org>
21964
21965 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21966
21967 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21968 is a char table.
21969
219702008-02-01 Kenichi Handa <handa@m17n.org>
21971
21972 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21973
219742008-02-01 Kenichi Handa <handa@m17n.org>
21975
21976 * xfaces.c (set_lface_from_font_name): Fix for the case that
21977 FONTNAME is not fontset name.
21978
219792008-02-01 Kenichi Handa <handa@m17n.org>
21980
21981 * fns.c (base64_encode_1): Fix previous change.
21982
219832008-02-01 Kenichi Handa <handa@m17n.org>
21984
21985 * fontset.c (set_fontset_font): New function.
21986 (Fset_fontset_font): If a font is specified for a charset, use
21987 map_charset_chars to store the font spec in a fontset.
21988
219892008-02-01 Kenichi Handa <handa@m17n.org>
21990
21991 * fontset.c (fontset_face): Create a fallback fontset on demand.
21992 (make_fontset): Don't create a fallback fontset here.
21993 (free_face_fontset): Free a fallback fontset (if any) too.
21994 (n_auto_fontsets): Delete this variable.
21995 (auto_fontset_alist): New variable.
21996 (new_fontset_from_font_name): Check auto_fontset_alist.
21997 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21998 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21999 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22000 Defsubr Sfontset_list_all.
22001
220022008-02-01 Kenichi Handa <handa@m17n.org>
22003
22004 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22005
220062008-02-01 Kenichi Handa <handa@m17n.org>
22007
22008 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22009
220102008-02-01 Kenichi Handa <handa@m17n.org>
22011
22012 * editfns.c (Fgoto_char): Fix docstring.
22013
220142008-02-01 Kenichi Handa <handa@m17n.org>
22015
22016 * insdel.c (insert_from_gap): Adjust intervals correctly.
22017
220182008-02-01 Jason Rumney <jasonr@gnu.org>
22019
22020 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22021 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22022 (w32_initialize): Try to load it.
22023 (x_get_font_repertory): Use it if available.
22024 (w32_encode_char): Add shortcut for unicode output.
22025
22026 * w32fns.c (w32_load_system_font): Default charset to -1.
22027 (x_to_w32_charset): Match all fonts for unicode.
22028 (w32_to_x_charset): New parameter matching. Don't return partial
22029 or wildcard charsets.
22030 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22031 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22032 (w32_to_x_font): Match charset to real charset.
22033 (enum_font_cb2): Always list unicode versions.
22034
22035 * makefile.w32-in (temacs): Increase EMHEAP.
22036
220372008-02-01 Jason Rumney <jasonr@gnu.org>
22038
22039 * w32term.c (w32_encode_char): New charset parameter.
22040 font_info.encoding becomes encoding_type.
22041 (x_get_font_repertory): New function. Warning: stub only!
22042 (x_new_font): Return quickly if font already set.
22043 (x_new_fontset): fontsetname parameter is Lisp_Object.
22044 Use new fs_query_fontset. Try new_fontset_from_font_name.
22045 Use fontset_name for return value.
22046
22047 * w32term.h: Declare x_get_font_repertory.
22048
22049 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22050 place of find_charset_in_text. Use encode_coding_object in place
22051 of encode_coding.
22052 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22053 decode_coding.
22054
22055 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22056 of x_new_fontset.
22057 (w32_load_system_font): Initialize charset as unicode.
22058 font_info.encoding becomes encoding_type.
22059 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22060 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22061 (syms_of_w32fns): Set get_font_repertory_func.
22062
22063 * w32console.c: Include character.h. Use terminal_encode_buffer
22064 from term.c.
22065 (write_glyphs): Use new version of encode_terminal_code. Use
22066 encode_coding_object in place of encode_coding.
22067
22068 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22069 encoding becomes encoding_type.
22070
22071 * term.c (terminal_encode_buffer): Make externally visible.
22072
22073 * makefile.w32-in: Add character.h dependancies.
22074 (character.o, chartab.o): New targets.
22075
220762008-02-01 Kenichi Handa <handa@m17n.org>
22077
22078 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22079 CODING_ID_EOL_TYPE.
22080
220812008-02-01 Andreas Schwab <schwab@suse.de>
22082
22083 * coding.c (produce_chars): Revert last change.
22084
220852008-02-01 Kenichi Handa <handa@m17n.org>
22086
22087 * charset.h (charset_unicode): Extern it.
22088
22089 * charset.c (string_xstring_p): Check by (C >= 0x100).
22090 (find_charsets_in_text): Change format of the arc CHARSETS. New
22091 arg MULTIBYTE.
22092 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22093 change of find_charsets_in_text.
22094 (Fsplit_char): Fix doc. Never return unknown.
22095
22096 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22097
22098 * coding.c (Fdefine_coding_system_alias): Update
22099 Vcoding_system_list.
22100
22101 * fontset.c (load_font_get_repertory): Pay attention to the case
22102 that ENCODING of a font is specified by a char-table.
22103
22104 * xterm.c (x_get_font_repertory): Handle the case that the
22105 encoding of font is other than Unicode.
22106
221072008-02-01 Kenichi Handa <handa@m17n.org>
22108
22109 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22110 if a character is encodable by the terminal coding system. If
22111 not, produces proper number of `?'s. Update
22112 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22113 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22114
221152008-02-01 Kenichi Handa <handa@m17n.org>
22116
22117 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22118 variables.
22119 (encode_terminal_code): Change argument. Encode multiple
22120 characters at once. Store the result of encoding in
22121 terminal_encode_buffer.
22122 (write_glyphs, insert_glyphs): Adjust for the change of
22123 encode_terminal_code.
22124 (term_init): Initialize terminal_encode_buffer and
22125 terminal_encode_buf_size.
22126
22127 * coding.c (consume_chars): If coding->src_object is nil, don't
22128 check annotation.
22129
221302008-02-01 Kenichi Handa <handa@m17n.org>
22131
22132 * character.c (char_string): Use ASCII_CHAR_P instead of
22133 SINGLE_BYTE_CHAR_P.
22134
221352008-02-01 Kenichi Handa <handa@m17n.org>
22136
22137 * xdisp.c (handle_auto_composed_prop): Check if the last
22138 characters of auto-composed region is newly composed with the
22139 following characters.
22140 (handle_composition_prop): Fix checking of point being inside
22141 composition.
22142
221432008-02-01 Kenichi Handa <handa@m17n.org>
22144
22145 * fns.c (concat): Don't change multibyteness of the result by
22146 concatenating an 8-bit character.
22147
22148 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22149 multibyteness of the result when newelt is an 8-bit character.
22150
221512008-02-01 Dave Love <fx@gnu.org>
22152
22153 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22154 EMACS_INT.
22155
22156 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22157
22158 * xfaces.c (face_numeric_value): Declare dim size_t.
22159 (Finternal_lisp_face_equal_p): Remove unused f.
22160
22161 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22162 (MATRIX_ROW): Remove unused vars.
22163 (draw_glyphs, x_insert_glyphs, fast_find_position)
22164 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22165 byte/char counts.
22166
22167 * regex.c (regex_compile): Remove unused var.
22168
22169 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22170
22171 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22172 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22173
22174 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22175
22176 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22177
22178 * fileio.c (Fwrite_region): Remove unused var.
22179
22180 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22181 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22182
22183 * composite.c (Fremove_list_of_text_properties): Declare.
22184
22185 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22186 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22187 (coding_inherit_eol_type): Remove unused attrs.
22188 (detect_coding): Cast arg of detect_eol.
22189
22190 * charset.c (syms_of_charset): Remove unused var p.
22191 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22192 byte/char counts.
22193
22194 * casetab.c (set_case_table): Remove unused var.
22195
22196 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22197 unused vars.
22198
221992008-02-01 Dave Love <fx@gnu.org>
22200
22201 * xterm.c (x_bitmap_mask): Declare.
22202
222032008-02-01 Dave Love <fx@gnu.org>
22204
22205 * xterm.c (x_term_init): Fix type error.
22206
22207 * lisp.h: Add Funibyte_char_to_multibyte.
22208
22209 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22210 (Fset_coding_system_priority): Doc fix.
22211
22212 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22213
22214 * indent.c (check_composition): Make start and end EMACS_INT.
22215
22216 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22217
22218 * xdisp.c (handle_composition_prop, check_point_in_composition):
22219 Make buffer positions EMACS_INT.
22220
22221 * composite.c (find_composition, run_composition_function)
22222 (update_compositions, Ffind_composition_internal): Make buffer
22223 positions EMACS_INT.
22224
22225 * composite.h (find_composition, update_compositions): Make
22226 position args EMACS_INT.
22227
22228 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22229
22230 * intervals.c (get_property_and_range):
22231 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22232
22233 * unexalpha.c: Don't include varargs.h.
22234
222352008-02-01 Dave Love <fx@gnu.org>
22236
22237 * coding.h (ENCODE_UTF_8): New.
22238
22239 * Makefile.in (gtkutil.o): Depend on coding.h.
22240
22241 * coding.c (Fset_coding_system_priority): Doc fix.
22242
222432008-02-01 Kenichi Handa <handa@m17n.org>
22244
22245 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22246 the case of auto saving.
22247
222482008-02-01 Andreas Schwab <schwab@suse.de>
22249
22250 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22251 `range' from GC.
22252
222532008-02-01 Kenichi Handa <handa@m17n.org>
22254
22255 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22256
222572008-02-01 Kenichi Handa <handa@m17n.org>
22258
22259 * fileio.c (choose_write_coding_system): Return a decided coding system.
22260 (Fwrite_region): Set Vlast_coding_system_used to the return value
22261 of choose_write_coding_system.
22262
222632008-02-01 Kenichi Handa <handa@m17n.org>
22264
22265 * charset.c (Fset_charset_priority): Pay attention to duplicated
22266 arguments.
22267
22268 * coding.c (QCcategory): New variable.
22269 (syms_of_coding): Defsym it. Set all elements of
22270 Vcoding_category_table and their symbol values.
22271 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22272 coding-category-XXX, and coding-category-list.
22273 (Fdefine_coding_system_internal): Add category in the plist.
22274
222752008-02-01 Kenichi Handa <handa@m17n.org>
22276
22277 * callproc.c (Fcall_process): Handle carryover correctly.
22278
22279 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22280 (raw_text_coding_system): Check NILP (coding_system).
22281 (coding_inherit_eol_type): Check NILP (coding_system) and
22282 NILP (parent).
22283 (consume_chars): Fix for the case of raw-text.
22284
22285 * process.c (read_process_output): Handle carryover correctly.
22286
222872008-02-01 Dave Love <fx@gnu.org>
22288
22289 * regex.c (re_search_2): Fix last change.
22290
222912008-02-01 Kenichi Handa <handa@m17n.org>
22292
22293 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22294 target_multibyte. Even in a unibyte case, return a converted
22295 multibyte char.
22296 (GET_CHAR_AFTER): New macro.
22297 (PATFETCH): Translate via multibyte char.
22298 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22299 (SETUP_MULTIBYTE_RANGE): New macro.
22300 (regex_compile): Setup compiled code so that its multibyteness
22301 matches that of a target. Fix the handling of "[X-YZ]" using
22302 SETUP_MULTIBYTE_RANGE.
22303 (analyse_first) <charset>: For filling fastmap for all multibyte
22304 characters, don't check by BASE_LEADING_CODE_P.
22305 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22306 the same as RE_MULTIBYTE_P (bufp) now.
22307 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22308 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22309 (TRANSLATE_VIA_MULTIBYTE): New macro.
22310 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22311 It is the same as RE_MULTIBYTE_P (bufp) now.
22312 <exactn>: Translate via multibyte.
22313 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22314 translate it.
22315 <charset, charset_not>: Fetch a character by
22316 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22317 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22318 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22319 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22320 by GET_CHAR_AFTER.
22321 (bcmp_translate): Likewise.
22322
22323 * search.c (compile_pattern): Check the member target_multibyte,
22324 not the member multibyte of buf.
22325
22326 * lread.c (read1): While reading a string, set force_singlebyte
22327 and force_multibyte correctly.
22328
22329 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22330 up of unibyte_to_multibyte_table.
22331
223322008-02-01 Kenichi Handa <handa@m17n.org>
22333
22334 * coding.c (setup_coding_system): If coding has
22335 post-read-conversion or pre-write-conversion, set
22336 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22337 respectively.
22338 (decode_coding_gap): Run post-read-conversion if any.
22339
22340 * fileio.c (Finsert_file_contents): Even if we read into a
22341 unibyte buffer, check if we must decode the result or not.
22342
223432008-02-01 Kenichi Handa <handa@m17n.org>
22344
22345 * coding.c (make_conversion_work_buffer): Change the work buffer
22346 name to the same one as that of Emacs 21.
22347
223482008-02-01 Kenichi Handa <handa@m17n.org>
22349
22350 * coding.h (make_conversion_work_buffer): Adjust prototype.
22351 (code_conversion_restore): Don't extern it.
22352
22353 * coding.c (detected_mask): Delete unused variable.
22354 (decode_coding_iso_2022): Pay attention to the byte sequence of
22355 CTEXT extended segment, and retain those bytes as is.
22356 (decode_coding_ccl): Delete unused variable `valids'.
22357 (setup_coding_system): Delete unused variable `category'.
22358 (consume_chars): Delete unused variable `category'. Make it work
22359 for non-multibyte case.
22360 (make_conversion_work_buffer): Change argument.
22361 (saved_coding): Delete unused variable.
22362 (code_conversion_restore): Don't check saved_coding->destination.
22363 (code_conversion_save): New function.
22364 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22365 instead of record_unwind_protect.
22366 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22367 (detect_coding_system): Delete unused variable `mask'.
22368 (Fdefine_coding_system_internal): Delete unused variable id.
22369
22370 * fileio.c (kill_workbuf_unwind): New function.
22371 (Finsert_file_contents): On replacing, call
22372 make_conversion_work_buffer with correct args, and call
22373 record_unwind_protect with the first arg kill_workbuf_unwind.
22374
22375 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22376
223772008-02-01 Kenichi Handa <handa@m17n.org>
22378
22379 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22380 (fontset_add): Fix for the case that TO is less than TO1.
22381 (Ffontset_info): Don't use fallback fontset on checking the
22382 default fontset.
22383 (dump_fontset): New function for debugging.
22384
22385 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22386 coding_type is Qcharset.
22387
223882008-02-01 Kenichi Handa <handa@m17n.org>
22389
22390 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22391 (map_char_table): Don't inherit the value from the parent on
22392 initializing VAL. Adjust for the above change.
22393
223942008-02-01 Kenichi Handa <handa@m17n.org>
22395
22396 * coding.c (Qsignature, Qendian): Delete these variables.
22397 (syms_of_coding): Don't initialize them.
22398 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22399 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22400 detect_info->found.
22401 (decode_coding_utf_16): Don't detect BOM here.
22402 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22403 is NOT utf_16_without_bom.
22404 (setup_coding_system): For a coding system of type utf-16, check
22405 if the attribute :endian is Qbig or not (not nil or not), and set
22406 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22407 (detect_coding): If coding type is utf-16 and BOM detection is
22408 required, detect it.
22409 (Fdefine_coding_system_internal): For a coding system of type
22410 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22411
224122008-02-01 Kenichi Handa <handa@m17n.org>
22413
22414 * coding.c (coding_set_source): Fix for the case that the current
22415 buffer is different from coding->src_object.
22416 (decode_coding_object): Don't use the conversion work buffer if
22417 DST_OBJECT is a buffer.
22418
224192008-02-01 Dave Love <fx@gnu.org>
22420
22421 * lread.c (read_emacs_mule_char) [len==2]: Index
22422 emacs_mule_charset correctly.
22423
224242008-02-01 Dave Love <fx@gnu.org>
22425
22426 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22427 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22428 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22429 treated specially.)
22430 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22431 (detected_mask): Remove Big5 bits.
22432
224332008-02-01 Kenichi Handa <handa@m17n.org>
22434
22435 The following changes are to make the font rescaling facility
22436 compatible with Emacs 21.
22437
22438 * xfaces.c (Vface_font_rescale_alist): Rename from
22439 Vface_resizing_fonts.
22440 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22441 (font_rescale_ratio): Rename from font_resizing_ratio.
22442 (split_font_name): Set font->rescale_ratio.
22443 (better_font_p): Pay attention to font->rescale_ratio.
22444 (build_scalable_font_name): Likewise. Change RESX, and RESY
22445 fields.
22446 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22447
224482008-02-01 Kenichi Handa <handa@m17n.org>
22449
22450 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22451 (Qutf_16_le): Remove these variables.
22452 (syms_of_coding): Don't DEFSYM them.
22453 (decode_coding_utf_16): Fix handling of BOM.
22454 (encode_coding_utf_16): Fix handling of BOM.
22455
224562008-02-01 Kenichi Handa <handa@m17n.org>
22457
22458 * fileio.c (Finsert_file_contents): On replacing, before decoding
22459 the file into the work buffer, set point of the work buffer to the end.
22460
224612008-02-01 Dave Love <fx@gnu.org>
22462
22463 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22464
224652008-02-01 Dave Love <fx@gnu.org>
22466
22467 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22468 and fix C types.
22469
224702008-02-01 Kenichi Handa <handa@m17n.org>
22471
22472 * xdisp.c (SKIP_GLYPHS): New macro.
22473 (set_cursor_from_row): Pay attention to string display properties.
22474
22475 * category.c (copy_category_entry): Fix for the case that RANGE
22476 is an integer.
22477
22478 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22479
22480 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22481
224822008-02-01 Kenichi Handa <handa@m17n.org>
22483
22484 * charset.c (Fcharset_id_internal): New function.
22485 (syms_of_charset): Defsubr it.
22486
22487 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22488 with the last arg charset_list acquired from coding.
22489 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22490 the attribute coding_attr_ccl_valids.
22491
22492 * coding.h (enum define_coding_ccl_arg_index): Set the first
22493 member coding_arg_ccl_decoder to coding_arg_max.
22494
22495 * ccl.h (ccl_driver): Adjust prototype.
22496
22497 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22498 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22499 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22500 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22501 last arg Qnil.
22502
225032008-02-01 Kenichi Handa <handa@m17n.org>
22504
22505 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22506 call encode_char.
22507
22508 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22509
225102008-02-01 Dave Love <fx@gnu.org>
22511
22512 * composite.c (syms_of_composite): Make composition_hash_table weak.
22513
225142008-02-01 Kenichi Handa <handa@m17n.org>
22515
22516 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22517 (font_name_registry): Don't extern them.
22518 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22519
22520 * fontset.h (Qfontset): Don't extern it.
22521 (new_fontset_from_font_name): Extern it.
22522
22523 * fontset.c: Give 8 extra slots to fontset objects.
22524 (Qfontset_info): New variable.
22525 (syms_of_fontset): Defsym it.
22526 (FONTSET_FALLBACK): New macro.
22527 (fontset_face): Try also the default fontset.
22528 (make_fontset): Realize a fallback fontset from the default fontset.
22529 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22530 using split_font_name_into_vector and build_font_name_from_vector.
22531 (Fset_fontset_font): Access the elements of font_spec by enum
22532 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22533 name by using split_font_name_into_vector.
22534 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22535 generate a proper font name from the fontset name. Update
22536 Vfontset_alias_alist.
22537 (n_auto_fontsets): New variable.
22538 (new_fontset_from_font_name): New function.
22539 (Ffont_info): Store the information about fonts generated from the
22540 default fontset in the first extra slot of the returned char-table.
22541
22542 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22543 (font_name_registry): Delete function.
22544 (split_font_name_into_vector): New function.
22545 (build_font_name_from_vector): New function.
22546 (font_list): The argument REGISTRY is now a list of registry names.
22547 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22548 specifies an explicit font name, return the name as is. Make a
22549 list of registy names.
22550
22551 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22552 of x_new_fontset.
22553 (Fx_create_frame): Don't call x_new_fontset here. Just use
22554 x_list_fonts to check the existence of fonts.
22555
22556 * xterm.h (x_new_fontset): Adjust prototype.
22557
22558 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22559 string. Use new_fontset_from_font_name to create a fontset from a
22560 font name.
22561
225622008-02-01 Kenichi Handa <handa@m17n.org>
22563
22564 * syntax.c (Vfind_word_boundary_function_table): New name for
22565 Vnext_word_boundary_function_table.
22566 (find-word-boundary-function-table): New name for
22567 next-word-boundary-function-table.
22568
225692008-02-01 Dave Love <fx@gnu.org>
22570
22571 * Makefile.in: Fix some dependencies.
22572
22573 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22574 set it to nil before returning.
22575
22576 * composite.c (update_compositions): Fix type error.
22577
22578 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22579
225802008-02-01 Kenichi Handa <handa@m17n.org>
22581
22582 * xterm.c (x_new_font): Optimize for the case that the font is
22583 already set for the frame.
22584
225852008-02-01 Kenichi Handa <handa@m17n.org>
22586
22587 * chartab.c (char_table_ascii): Check if the char table contents
22588 is sub-char-table or not.
22589 (char_table_set, char_table_set_range): Fix argument to
22590 char_table_ascii.
22591
22592 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22593 (detect_coding_utf_8, detect_coding_utf_16)
22594 (detect_coding_emacs_mule, detect_coding_iso_2022)
22595 (detect_coding_sjis, detect_coding_big5)
22596 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22597 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22598 sequence is valid in this coding system. Change callers.
22599 (MAX_ANNOTATION_LENGTH): New macro.
22600 (ADD_ANNOTATION_DATA): New macro.
22601 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22602 ADD_ANNOTATION_DATA. Change the format of annotation data.
22603 (ADD_CHARSET_DATA): New macro.
22604 (emacs_mule_char): New argument ID. Change callers.
22605 (decode_coding_emacs_mule, decode_coding_iso_2022)
22606 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22607 Produce charset annotation data in coding->charbuf.
22608 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22609 to charset annotation data in coding->charbuf.
22610 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22611 coding->common_flags if the coding system is iso-2022 based and
22612 uses designation.
22613 (produce_composition): Adjust for the new annotation data format.
22614 (produce_charset): New function.
22615 (produce_annotation): Handle charset annotation.
22616 (handle_composition_annotation, handle_charset_annotation): New
22617 functions.
22618 (consume_chars): Handle charset annotation. Utilize the above two
22619 functions.
22620 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22621 buffer, get the deleted text as a string and set
22622 coding->src_object to that string.
22623 (detect_coding, detect_coding_system): Use the new struct
22624 coding_detection_info.
22625
22626 * coding.h (struct coding_detection_info): New structure.
22627 (struct coding_system): Adjust prototype of the member `detector'.
22628 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22629
226302008-02-01 Kenichi Handa <handa@m17n.org>
22631
22632 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22633
226342008-02-01 Dave Love <fx@gnu.org>
22635
22636 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22637 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22638 to new local and nullify apropos_accumulate before returning.
22639 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22640
226412008-02-01 Kenichi Handa <handa@m17n.org>
22642
22643 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22644 correctly.
e3eea1fc 22645
aac0c6e3
MR
226462008-02-01 Dave Love <fx@gnu.org>
22647
22648 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22649
226502008-02-01 Kenichi Handa <handa@m17n.org>
22651
22652 The following changes are to make character composition happen
22653 automatically on displaying.
22654
22655 * Makefile.in (lisp, shortlisp): Add composite.elc.
22656
22657 * composite.h (Qauto_composed, Vauto_composition_function)
22658 (Qauto_composition_function): Extern them.
22659
22660 * composite.c (Vcomposition_function_table)
22661 (Qcomposition_function_table): Delete variables.
22662 (Qauto_composed, Vauto_composition_function)
22663 (Qauto_composition_function): New variables.
22664 (run_composition_function): Don't call
22665 compose-chars-after-function.
22666 (update_compositions): Clear `auto-composed' text property.
22667 (compose_chars_in_text): Delete this function.
22668 (syms_of_composite): Staticpro Qauto_composed and
22669 Qauto_composition_function. Declare Vauto_composition_function as
22670 a Lisp variable.
22671
22672 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22673
22674 * xdisp.c (it_props): Add an entry for Qauto_composed.
22675 (handle_auto_composed_prop): New function.
22676
22677 * xselect.c (selection_data_to_lisp_data): Don't call
22678 compose_chars_in_text.
22679
226802008-02-01 Dave Love <fx@gnu.org>
22681
22682 * keyboard.c (read_char): Modify checking around use of
22683 Vkeyboard_translate_table.
22684
22685 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22686 and fix C types.
22687
226882008-02-01 Kenichi Handa <handa@m17n.org>
22689
22690 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22691 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22692 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22693 the case that the last byte is '\r' correctly.
22694 (decode_coding): Flush out the unprocessed data correctly.
22695 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22696
226972008-02-01 Dave Love <fx@gnu.org>
22698
22699 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22700 Add XK_ISO... case.
22701 (xaw_scroll_callback): Revert last change.
22702
227032008-02-01 Kenichi Handa <handa@m17n.org>
22704
22705 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22706
227072008-02-01 Kenichi Handa <handa@m17n.org>
22708
22709 * xfaces.c (Vface_resizing_fonts): New variable.
22710 (struct font_name): New member `resizing_ratio'.
22711 (font_resizing_ratio): New function.
22712 (split_font_name): Set font->resizing_ratio.
22713 (better_font_p): Pay attention to font->resizing_ratio.
22714 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22715 RESX, and RESY fields.
22716 (try_alternative_families): Try scalable fonts if
22717 Vscalable_fonts_allowed is not Qt.
22718 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22719
227202008-02-01 Dave Love <fx@gnu.org>
22721
22722 * xterm.c (xaw_scroll_callback): Cast correctly.
22723
227242008-02-01 Dave Love <fx@gnu.org>
22725
22726 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22727 (lispy_kana_keys): Comment out.
22728 (make_lispy_event) [XK_kana_A]: Comment out.
22729
22730 * xterm.c (xaw_scroll_callback): Cast call_data.
22731 (XTread_socket): Deal with ASCII keysyms.
22732 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22733
227342008-02-01 Dave Love <fx@gnu.org>
22735
22736 * xterm.c (Vx_keysym_table): New.
22737 (syms_of_xterm): Initialize it.
22738 (XTread_socket): Use it.
22739 From head: Eliminate incorrect optimization that tried to avoid
22740 decoding the output of X*LookupString.
22741 (x_get_font_repertory): Delete charset declaration.
22742
227432008-02-01 Kenichi Handa <handa@m17n.org>
22744
22745 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22746 return 0.
22747 (Fdefine_coding_system_internal): Setup
22748 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22749
227502008-02-01 Dave Love <fx@gnu.org>
22751
22752 * coding.c (Fcheck_coding_system): Doc fix.
22753
22754 * editfns.c (Finsert_byte): Return a proper value.
22755
227562008-02-01 Kenichi Handa <handa@m17n.org>
22757
22758 * coding.c (decode_coding): Fix args to translate_chars. Pay
22759 attention to Vstandard_translation_table_for_decode.
22760 (encode_coding): Fix args to translate_chars. Pay attention to
22761 Vstandard_translation_table_for_encode.
22762
22763 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22764 SINGLE_BYTE_CHAR_P.
22765
22766 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22767 not by SINGLE_BYTE_CHAR_P.
22768
22769 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22770 SINGLE_BYTE_CHAR_P.
22771
22772 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22773 SINGLE_BYTE_CHAR_P.
22774
22775 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22776 by SINGLE_BYTE_CHAR_P.
22777
22778 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22779 SINGLE_BYTE_CHAR_P.
22780
227812008-02-01 Dave Love <fx@gnu.org>
22782
22783 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22784
227852008-02-01 Dave Love <fx@gnu.org>
22786
22787 * fns.c (Flanginfo): Fix typo.
22788
22789 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22790
227912008-02-01 Kenichi Handa <handa@m17n.org>
22792
22793 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22794 (detect_coding_emacs_mule, detect_coding_iso_2022)
22795 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22796 incomplete byte sequence. Don't update *mask when correctly detected.
22797 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22798 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22799 (detect_coding, detect_coding_system): Adjust for the changes above.
22800
228012008-02-01 Kenichi Handa <handa@m17n.org>
22802
22803 * character.c (char_string): Rename from
22804 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22805 (string_char): Rename from string_char.
22806
22807 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22808 if C is greater than MAX_3_BYTE_CHAR.
22809 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22810 string_char instead of string_char_with_unification.
22811
228122008-02-01 Dave Love <fx@gnu.org>
22813
22814 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22815
228162008-02-01 Kenichi Handa <handa@m17n.org>
22817
22818 * keymap.c (push_key_description): Pay attention to force_multibyte.
22819
22820 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22821
228222008-02-01 Dave Love <fx@gnu.org>
22823
22824 * charset.c (define_charset_internal): Rename `supprementary'.
22825
22826 * Makefile.in (lisp, shortlisp): Remove latin-N.
22827
228282008-02-01 Dave Love <fx@gnu.org>
22829
22830 * xfns.c (x_window, x_window): Use use_xim.
22831
22832 * xterm.c (use_xim): Initialize.
22833 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22834 (x_term_init): Maybe set use_xim.
22835
22836 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22837
228382008-02-01 Kenichi Handa <handa@m17n.org>
22839
22840 * search.c (search_buffer): Fix case-fold-search of multibyte
22841 characters.
22842 (boyer_moore): Rename the last argument to char_high_bits.
22843
228442008-02-01 Kenichi Handa <handa@m17n.org>
22845
22846 * xdisp.c (display_string): Fix for the case of zero width glyph.
22847
22848 * xfns.c (x_set_font): Change the error message of the case that
22849 x_new_fontset returns Qt.
22850
22851 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22852 (Finternal_set_lisp_face_attribute): Use signal_error for the
22853 error of invalid fontset.
22854
22855 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22856 fontset, return Qt.
22857
228582008-02-01 Dave Love <fx@gnu.org>
22859
22860 * unexelf.c (unexec): Make .got handling not SGI-specific.
22861
22862 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22863
22864 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22865
22866 * keyboard.c (read_key_sequence): Fix type error.
22867
22868 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22869 type error.
22870
22871 * fontset.c (fontset_add): Return Lisp_Object.
22872
228732008-02-01 Dave Love <fx@gnu.org>
22874
22875 * charset.h (charset_ordered_list_tick): Declare extern.
22876
228772008-02-01 Kenichi Handa <handa@m17n.org>
22878
22879 The following changes (and some of 2008-02-01 changes of mine) are
22880 for handling syntax, category, and case conversion for unibyte
22881 characters by converting them to multibyte on the fly. With these
22882 changes, we don't have to setup syntax and case tables for unibyte
22883 characters in each language environment.
22884
22885 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22886 multibyte if necessary.
22887
22888 * bytecode.c (Fbyte_code): Likewise.
22889
22890 * character.h (LEADING_CODE_LATIN_1_MIN)
22891 (LEADING_CODE_LATIN_1_MAX): New macros.
22892 (unibyte_to_multibyte_table): Extern it.
22893 (unibyte_char_to_multibyte): New macro.
22894 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22895 (CHAR_LEADING_CODE): New macro.
22896 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22897
22898 * character.c (unibyte_to_multibyte_table): New variable.
22899 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22900 (multibyte_char_to_unibyte): If C is an eight-bit character,
22901 convert it to the corresponding byte value.
22902
22903 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22904 not 1, signals an error. Update the elements of
22905 unibyte_to_multibyte_table.
22906 (init_charset_once): Initialize unibyte_to_multibyte_table.
22907 (syms_of_charset): Define the charset `iso-8859-1'.
22908
22909 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22910 as is without converting it to unibyte. In a unibyte buffer,
22911 convert C to multibyte before checking the syntax.
22912
22913 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22914
22915 * minibuf.c (Fminibuffer_complete_word): Use the macro
22916 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22917
22918 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22919
22920 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22921 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22922 that is zero, convert an eight-bit char to multibyte.
22923 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22924 non-emacs case.
22925 (PATFETCH): Convert an eight-bit char to multibyte.
22926 (HANDLE_UNIBYTE_RANGE): New macro.
22927 (regex_compile): Setup the compiled pattern for multibyte chars
22928 even if the given regex string is unibyte. Use PATFETCH_RAW
22929 instead of PATFETCH in many places. To handle `charset'
22930 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22931 only for ASCII chars.
22932 (analyse_first) <exactn>: Simplify because the compiled pattern
22933 is multibyte.
22934 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22935 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22936 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22937 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22938 multibyte always 1.
22939 (re_search_2): In emacs, set the locale variable multibyte to 1,
22940 otherwise to 0. New local variable target_multibyte. Check it
22941 to decide the multibyteness of STR1 and STR2. If
22942 target_multibyte is zero, convert unibyte chars to multibyte
22943 before translating and checking fastmap.
22944 (TARGET_CHAR_AND_LENGTH): New macro.
22945 (re_match_2_internal): In emacs, set the locale variable multibyte
22946 to 1, otherwise to 0. New local variable target_multibyte. Check
22947 it to decide the multibyteness of STR1 and STR2. Use
22948 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22949 <charset, charset_not>: If multibyte is nonzero, check fastmap
22950 only for ASCII chars. Call bcmp_translate with
22951 target_multibyte, not with multibyte.
22952 <begline>: Declare the local variable C as `unsigned'.
22953 (bcmp_translate): Change the last arg name to target_multibyte.
22954
22955 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22956 the regexp pattern and the matching target. Set cp->buf.multibyte
22957 to the multibyteness of the regexp pattern. Set
22958 cp->but.target_multibyte to the multibyteness of the matching target.
22959 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22960 FETCH_STRING_CHAR_ADVANCE.
22961 (Freplace_match): Convert unibyte chars to multibyte.
22962
22963 * syntax.c (char_quoted, back_comment, scan_words)
22964 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22965 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22966 unibyte chars to multibyte.
22967 (skip_chars): Delete the arg syntaxp, and move the code for
22968 handling syntaxes to skip_syntaxes. Change callers.
22969 Fix the case that the multibyteness of STRING and the current
22970 buffer doesn't match.
22971 (skip_syntaxes): New function.
22972 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22973 SINGLE_BYTE_CHAR_P.
22974
229752008-02-01 Kenichi Handa <handa@m17n.org>
22976
22977 * xfaces.c (QCfontset): New variable.
22978 (LFACE_FONTSET): New macro.
22979 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22980 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22981 (Finternal_set_lisp_face_attribute)
22982 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22983 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22984 check also LFACE_FONTSET_INDEX.
22985 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22986 attrs[LFACE_FONT_INDEX].
22987 (syms_of_xfaces): Intern and staticpro QCfontset.
22988
22989 * dispextern.h (enum lface_attribute_index): New member
22990 LFACE_FONTSET_INDEX.
22991
22992 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22993
229942008-02-01 Kenichi Handa <handa@m17n.org>
22995
22996 * coding.c (coding_set_destination): Fix coding->destination for
22997 the case converting a region.
22998 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22999 (encode_coding_object): Fix coding->dst_pos and
23000 coding->dst_pos_byte for the case converting a region.
23001
23002 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23003
23004 * character.h (BYTE8_STRING): New macro.
23005
23006 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23007
230082008-02-01 Kenichi Handa <handa@m17n.org>
23009
23010 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23011 characters by octal form.
23012
23013 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23014
23015 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23016 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23017 _fetch_multibyte_char_len.
23018 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23019
23020 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23021
23022 * casefiddle.c (casify_object): Simplify. Handle the case that
23023 the case conversion change the byte length.
23024 (casify_region): Likewise.
23025
23026 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23027
23028 * character.c (_fetch_multibyte_char_len): Delete this variable.
23029 (syms_of_character): Setup Vprintable_chars.
23030
23031 * editfns.c (Fchar_equal): Fix for the unibyte case.
23032 (Finsert_byte): New function.
23033 (syms_of_editfns): Defsubr it.
23034
23035 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23036 of direct code 0x3ffff.
23037
23038 * search.c (Freplace_match): Fix for the unibyte case.
23039
230402008-02-01 Kenichi Handa <handa@m17n.org>
23041
23042 * lread.c (safe_to_load_p): Fix the logic.
23043
23044 * syntax.c (scan_words): Don't treat characters belonging to
23045 different scripts as constituting a word.
23046
23047 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23048
23049 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23050
23051 * emacs.c (main): In the case of --unibyte, instead of aborting on
23052 finding non-empty buffer, make it unibyte.
23053
230542008-02-01 Kenichi Handa <handa@m17n.org>
23055
23056 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23057 to create a fontset.
23058
230592008-02-01 Dave Love <fx@gnu.org>
23060
23061 * character.c (Funibyte_char_to_multibyte): Doc fix.
23062
23063 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23064
230652008-02-01 Kenichi Handa <handa@m17n.org>
23066
23067 * fontset.c (fontset_add): Make the type `int'.
23068 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23069
23070 * character.c (unibyte_char_to_multibyte)
23071 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23072 charset_unibyte, not charset_primary.
23073
23074 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23075
23076 * charset.c (charset_unibyte): Rename from charset_primary.
23077 (Funibyte_charset): Rename from Fprimary_charset.
23078 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23079 (syms_of_charset): Adjust for the above changes.
23080
23081 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23082 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23083 it->multibyte_p is zero.
23084
23085 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23086 Delete extern.
23087
230882008-02-01 Kenichi Handa <handa@m17n.org>
23089
23090 * coding.c (Fdefine_coding_system_internal): Fix category setting
23091 for a coding system of type iso-2022.
23092
230932008-02-01 Kenichi Handa <handa@m17n.org>
23094
23095 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23096
230972008-02-01 Kenichi Handa <handa@m17n.org>
23098
23099 * syntax.c (Vnext_word_boundary_function_table): New variable.
23100 (next-word-boundary-function-table): Declare it as a Lisp variable
23101 in syms_of_syntax.
23102 (scan_words): Call functions in Vnext_word_boundary_function_table
23103 if any.
23104
23105 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23106
23107 * fontset.c (fs_load_font): If fontp->charset is not negative,
23108 return fontp without setting its members.
23109
231102008-02-01 Dave Love <fx@gnu.org>
23111
23112 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23113
23114 * m/sparc.h (HAVE_ALLOCA): Delete.
23115
23116 * s/irix6-5.h: Don't include strings.h.
23117 (bcopy, bzero, bcmp): Don't undef.
23118
23119 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23120
23121 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23122 (TIOCSIGSEND): Don't test IRIX6.
23123 (bcopy, bzero, bcmp): Define conditionally.
23124
231252008-02-01 Kenichi Handa <handa@m17n.org>
23126
23127 * buffer.c (Qas, Qmake, Qto): New variables.
23128 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23129 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23130
23131 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23132 we are inserting a process output into a multibyte buffer.
23133
23134 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23135 multibyte_char_to_unibyte.
23136
23137 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23138 by the primary charset, make it eight-bit char.
23139 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23140
23141 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23142 (charset_8_bit__control, charset_8_bit_graphic)
23143 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23144 (define_charset_internal): New function.
23145 (syms_of_charset): Call define_charset_internal for pre-defined
23146 charsets.
23147
23148 * charset.h (charset_8_bit): Extern it.
23149
23150 * coding.c (make_conversion_work_buffer): Adjust for the change
23151 of Fset_buffer_multibyte.
23152 (encode_coding_raw_text): Increment p0 in the loop.
23153
23154 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23155
23156 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23157 for the change of Fset_buffer_multibyte.
23158
23159 * fns.c (Fstring_to_multibyte): New function.
23160 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23161
231622008-02-01 Dave Love <fx@gnu.org>
23163
23164 * xfns.c (x_put_x_image): Declare args.
23165
23166 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23167 (try_font_list): Declare an arg.
23168
23169 * xdisp.c (message2_nolog, set_message): Declare an arg.
23170
23171 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23172
23173 * syntax.c (scan_sexps_forward): Declare an arg.
23174
23175 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23176 Declare an arg.
23177
23178 * lisp.h (Fnew_fontset): Declare.
23179
23180 * keymap.c (push_key_description): Call CHARACTERP correctly.
23181
23182 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23183 (face_for_char): Delete unused vars.
23184 (Fset_fontset_font): Doc fix. Delete unused vars.
23185
23186 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23187
23188 * composite.c (update_compositions): Declare arg.
23189
23190 * cm.c (calccost, cmgoto): Declare args.
23191
23192 * charset.c: Remove `emacs' conditional. Doc fixes.
23193 (map_char_table_for_charset): Declare.
23194
23195 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23196
23197 * ccl.c: Remove `emacs' conditional.
23198
231992008-02-01 Kenichi Handa <handa@m17n.org>
23200
23201 The following changes are to allow specifying multiple font
23202 patterns for a character range (specified by script or charset).
23203
23204 * Makefile.in (abbrev.o): Depend on syntax.h.
23205 (xfaces.o): Depend on charset.h.
23206
23207 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23208 SINGLE_BYTE_CHAR_P.
23209
23210 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23211
23212 * character.h (Vchar_script_table): Extern it.
23213
23214 * character.c (Vscript_alist): Delete.
23215 (Vchar_script_table, Qchar_script_table): New variable.
23216 (syms_of_character): Declare Vchar_script_table as a lisp variable
23217 and initialize it.
23218
23219 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23220 have property char-table-extra-slots, make no extra slot.
23221
23222 * dispextern.h (struct face): Delete member `charset'.
23223 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23224 SINGLE_BYTE_CHAR_P.
23225 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23226 Add prototypes.
23227 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23228 (generate_ascii_font_name): Rename from generate_ascii_font.
23229
23230 * fontset.h (get_font_repertory_func): New prototype.
23231 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23232 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23233
23234 * fontset.c (Qprepend, Qappend): New variables.
23235 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23236 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23237 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23238 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23239 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23240 (load_font_get_repertory): New functions.
23241 (fontset_set): Delete.
23242 (fontset_face): New arg FACE. Return face ID, not face.
23243 Complete re-write to handle new fontset structure. Change caller.
23244 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23245 (face_for_char): Don't call lookup_face.
23246 (make_fontset_for_ascii_face): New arg FACE.
23247 (fs_load_font): New arg CHARSET_ID. Don't check
23248 Vfont_encoding_alist here.
23249 (find_font_encoding): New function.
23250 (list_fontsets): Use STRINGP, not ! NILP.
23251 (accumulate_script_ranges): New function.
23252 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23253 re-written to handle new fontset structure.
23254 (Ffontset_font): Return a copy of element.
23255 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23256 docstring of font-encoding-alist.
23257
23258 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23259 (Fset_fotset_font): Fix arguments to 5.
23260
23261 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23262
23263 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23264 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23265 (highlight_trailing_whitespace): Adjust for the change of
23266 lookup_named_face.
23267
23268 * xfaces.c: Include charset.h.
23269 (load_face_font): Delete argument C. Change caller.
23270 (generate_ascii_font_name): Rename from generate_ascii_font.
23271 (font_name_registry): New function.
23272 (cache_face): Store ascii faces before non-ascii faces in buckets.
23273 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23274 Lookup only ascii faces.
23275 (lookup_non_ascii_face): New function.
23276 (lookup_named_face): Delete argument C. Change caller.
23277 (lookup_derived_face): Delete argument C. Change caller.
23278 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23279 a string, just call font_list with it.
23280 (choose_face_font): Delete arguments FACE and C. New arg
23281 FONT_SPEC. Change caller.
23282 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23283 Change caller.
23284 (realize_non_ascii_face): New function.
23285 (realize_x_face): Call load_face_font here.
23286 (realize_tty_face): Delete argument C. Change caller.
23287 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23288 get a face ID.
23289 (dump_realized_face): Don't print charset of FACE.
23290
23291 * xfns.c (x_set_font): Always call x_new_fontset and
23292 store_frame_parameter.
23293 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23294 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23295
23296 * xterm.h (x_get_font_repertory): Extern it.
23297
23298 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23299 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23300 it->multibyte_p is zero.
23301 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23302 (x_new_fontset): If FONTSETNAME doesn't match any existing
23303 fontsets, create a new one.
23304 (x_get_font_repertory): New function.
23305
233062008-02-01 Kenichi Handa <handa@m17n.org>
23307
23308 * coding.c (Ffind_coding_systems_region_internal): Detect an
23309 ASCII only string correctly.
23310
23311 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23312 version is 0.
23313
233142008-02-01 Kenichi Handa <handa@m17n.org>
23315
23316 * lread.c: Include "coding.h".
23317 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23318 (load_each_byte, unread_char): New variables.
23319 (readchar_backlog): Delete.
23320 (readchar): Return a character unless load_each_byte is nonzero.
23321 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23322 cons. If unread_char is not -1, simply return it.
23323 (unreadchar): Handle the case that readcharfun is
23324 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23325 (read_multibyte): Delete.
23326 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23327 (read_emacs_mule_char): New functions.
23328 (Fload): Even if the file doesn't have the extension ".elc", if
23329 safe_to_load_p returns a positive version number, assume that the
23330 file contains bytecompiled code. If the version is less than 22,
23331 load the file while decoding multibyte sequences by emacs-mule.
23332 (readevalloop): Don't use readchar_backlog.
23333 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23334 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23335 (read_escape): Delete the arg BYTEREP.
23336 (read1): Set load_each_byte to 1 temporarily while handling
23337 #@NUMBER. Don't call read_multibyte.
23338 (read_vector): Call Fread with a cons. If readcharfun is
23339 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23340 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23341 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23342 and Qload_force_doc_strings.
23343
233442008-02-01 Kenichi Handa <handa@m17n.org>
23345
23346 * xdisp.c (face_before_or_after_it_pos): Call
23347 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23348
233492008-02-01 Kenichi Handa <handa@m17n.org>
23350
23351 * character.h (TRAILING_CODE_P): New macro.
23352 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23353 (string_char_with_unification): Fix prototype.
23354 (Vscript_alist): Extern it.
23355
23356 * character.c (Vscript_alist): New variable.
23357 (string_char_with_unification, str_as_unibyte)
23358 (string_escape_byte8): Add `const' to local variables.
23359 (syms_of_character): Declare script-alist as a Lisp variable.
23360
23361 * charset.h (Vcharset_ordered_list): Extern it.
23362 (charset_ordered_list_tick): Extern it.
23363 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23364 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23365 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23366 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23367 (Funify_charset): Adjust for the change of Funify_charset.
23368
23369 * charset.c (charset_ordered_list_tick): New variable.
23370 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23371 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23372 deunify instead of unify a charset.
aac0c6e3
MR
23373 (string_xstring_p): Add `const' to local variables.
23374 (find_charsets_in_text): Add `const' to arguments and local variables.
23375 (encode_char): Adjust for the change of Funify_charset. Fix
23376 detecting of invalid code.
23377 (Fset_charset_priority): Increment charset_ordered_list_tick.
23378 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23379 and TO_CODE.
23380
23381 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23382 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23383 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23384 (decode_coding_ccl, consume_chars)
23385 (Ffind_coding_systems_region_internal)
23386 (Fcheck_coding_systems_region): Add `const' to local variables.
23387
23388 * print.c (print_object): Use octal form for printing the
23389 contents of a bool vector.
23390
233912008-02-01 Dave Love <fx@gnu.org>
23392
23393 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23394 <version == 20>: Refuse to load.
23395
233962008-02-01 Dave Love <fx@gnu.org>
23397
23398 * fns.c: Move coding.h.
23399 (Qcodeset, Qdays, Qmonths): New.
23400 (concat): Use CHARACTERP instead of INTEGERP.
23401 (Flocale_codeset): Delete.
23402 (Flanginfo): New function.
23403 (syms_of_fns): Change accordingly.
23404
23405 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23406
234072008-02-01 Dave Love <fx@gnu.org>
23408
23409 * casetab.c (init_casetab_once, init_casetab_once): Fix
23410 CHAR_TABLE_SET call.
23411
23412 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23413
23414 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23415
23416 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23417 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23418 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23419
23420 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23421
23422 * coding.c (ENCODE_DESIGNATION, decode_eol)
23423 (make_conversion_work_buffer, code_conversion_restore)
23424 (Fdefine_coding_system_internal): Convert Lisp types.
23425 (code_conversion_restore): Use EQ, not ==.
23426 (Fencode_coding_string): Fix code_convert_string call.
23427
23428 * coding.h (code_convert_region): Fix prototype.
23429
23430 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23431
23432 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23433 (Ffontset_info): Convert Lisp types.
23434
23435 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23436
23437 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23438
23439 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23440
23441 * chartab.c: Include "...h", not <...h> in some cases.
23442
23443 * callproc.c (Fcall_process): Remove unused variables.
23444
234452008-02-01 Dave Love <fx@gnu.org>
23446
23447 * coding.c (Fset_coding_system_priority): Allow null arg list.
23448
234492008-02-01 Dave Love <fx@gnu.org>
23450
23451 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23452 (Fself_insert_and_exit): Use CHARACTERP.
23453
23454 * callproc.c (Fcall_process): Remove unused vars.
23455
23456 * xterm.c (XTread_socket): Add extra dead keysyms.
23457
23458 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23459
23460 * dispextern.h: Remove prototypes for redraw_frame,
23461 redraw_garbaged_frames.
23462
23463 * cmds.c (Fself_insert_command): Use CHARACTERP.
23464
23465 * chartab.c (make_sub_char_table): Remove unused var.
23466 (Fset_char_table_default, Fmap_char_table): Doc fix.
23467
23468 * keymap.c (access_keymap): Remove generic char code.
23469 (push_key_description): Use CHARACTERP.
23470
234712008-02-01 Dave Love <fx@gnu.org>
23472
23473 * charset.c: Doc fixes.
23474 (Funify_charset): Extra checking.
23475
234762008-02-01 Dave Love <fx@gnu.org>
23477
23478 * lread.c: Remove some unused variables.
23479 (safe_to_load_p): If safe, return the magic number version byte.
23480 (Fload): Maybe use load-with-code-conversion.
23481
234822008-02-01 Kenichi Handa <handa@m17n.org>
23483
23484 * category.c (Fmodify_category_entry): Don't modify the contents
23485 of category_set for characters out of the range. Avoid
23486 unnecessary modification.
23487
23488 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23489 Vchar_unify_table. The default value of the table is now nil.
23490
23491 * character.c (syms_of_character): Setup Vchar_width_table for
23492 eight-bit-control and raw-byte chars.
23493
23494 * charset.h (enum define_charset_arg_index): Delete
23495 charset_arg_parents and add charset_arg_subset and
23496 charset_arg_superset.
23497 (enum charset_attr_index): Delete charset_parents and add
23498 charset_subset and charset_superset.
23499 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23500 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23501 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23502 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23503 (CHARSET_SUPERSET): New macros.
23504 (charset_work): Extern it.
23505 (ENCODE_CHAR): Use charset_work.
23506 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23507 (map_charset_chars): Extern it.
23508
23509 * charset.c (load_charset_map): Set the default value of encoder
23510 and deunifier char-tables to nil.
23511 (map_charset_chars): Change argument. Change callers. Use
23512 map_char_table_for_charset instead of map_char_table.
23513 (Fmap_charset_chars): New optional args from_code and to_code.
23514 (Fdefine_charset_internal): Adjust for the change of
23515 `define-charset' (:parents -> :subset or :superset).
23516 (charset_work): New variable.
23517 (encode_char, syms_of_charset): Adjust for the change of
23518 Fdefine_charset_internal.
23519 (Ffind_charset_string): Setup the vector `charsets' correctly.
23520
23521 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23522 the previous change.
23523 (char_table_ref_and_range): Adjust for the above change.
23524 (map_sub_char_table_for_charset): New function.
23525 (map_char_table_for_charset): New function.
23526
23527 * keymap.c (describe_vector): Handle a char-table directly here.
23528 (describe_char_table): Delete.
23529
23530 * lisp.h (map_charset_chars): Delete.
23531
235322008-02-01 Dave Love <fx@gnu.org>
23533
23534 * fns.c (count_combining): Comment out (unused).
23535 (Flocale_codeset): New.
23536 (syms_of_fns): Defsubr it.
23537
23538 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23539 (size_t): Remove.
23540
235412008-02-01 Dave Love <fx@gnu.org>
23542
23543 * Makefile.in (chartab.o): Depend on charset.h.
23544
235452008-02-01 Kenichi Handa <handa@m17n.org>
23546
23547 * character.c (syms_of_character): Set the default value of
23548 Vprintable_chars to Qnil.
23549
235502008-02-01 Dave Love <fx@gnu.org>
23551
23552 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23553
235542008-02-01 Kenichi Handa <handa@m17n.org>
23555
23556 * charset.c (load_charset_map): Handle the case that from < to
23557 correctly.
23558
23559 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23560 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23561 Pay attention to raw-8-bit chars.
23562
235632008-02-01 Kenichi Handa <handa@m17n.org>
23564
23565 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23566 It is not bytecompiled now.
23567
23568 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23569 (charset_jisx0208): New variables.
23570 (Fdefine_charset_internal): Setup them if appropriate.
23571 (init_charset_once): Initialize them to -1.
23572
23573 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23574 (charset_jisx0208): Extern them.
23575
23576 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23577 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23578 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23579 (setup_iso_safe_charsets): Fix arguments to Fassq.
23580 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23581 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23582 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23583 (encode_coding_iso_2022): Change the 1st arg to
23584 ENCODE_ISO_CHARACTER to a variable.
23585
235862008-02-01 Kenichi Handa <handa@m17n.org>
23587
23588 * charset.h (enum define_charset_arg_index): New enums
23589 charset_arg_min_code and charset_arg_max_code.
23590 (struct charset): New member char_index_offset.
23591
23592 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23593 Take charset->char_index_offset into account.
23594 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23595 args[charset_arg_max_code]. Setup charset.char_index_offset.
23596 (syms_of_charset): Fix args to Fdefine_charset_internal.
23597
235982008-02-01 Dave Love <fx@gnu.org>
23599
23600 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23601
236022008-02-01 Dave Love <fx@gnu.org>
23603
23604 * coding.c: Doc fixes.
23605 (Fcoding_system_aliases): Fix return value.
23606 (Qmac): Remove (duplicated) definition.
23607
236082008-02-01 Dave Love <fx@gnu.org>
23609
362654a6
JB
23610 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23611 New functions.
aac0c6e3
MR
23612
23613 * character.c (Fstring): Doc fix.
23614
23615 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23616
362654a6 23617 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23618 (font-encoding-alist): Doc fix.
23619
236202008-02-01 Dave Love <fx@gnu.org>
23621
23622 * term.c (costs_set): Declare static, non-initialized for pcc.
23623 (encode_terminal_code): Remove unused var.
23624
23625 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23626 for K&R.
23627
23628 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23629
23630 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23631 (suffixes): Move out of make_subsidiaries for K&R.
23632
23633 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23634
23635 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23636
236372008-02-01 Dave Love <fx@gnu.org>
23638
23639 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23640
23641 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23642
236432008-02-01 Yong Lu <lyongu@asia-infonet.com>
23644
23645 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23646
23647 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23648
236492008-02-01 Kenichi Handa <handa@m17n.org>
23650
23651 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23652 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23653
236542008-02-01 Kenichi Handa <handa@m17n.org>
23655
23656 * coding.c (decode_coding_charset): Adjust for the change of
23657 Fdefine_coding_system_internal.
23658 (Fdefine_coding_system_internal): For a coding system of
23659 `charset' type, store a list of charset IDs in
23660 `charset_attr_charset_valids' element of coding attributes.
23661
236622008-02-01 Kenichi Handa <handa@m17n.org>
23663
23664 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23665 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23666 caller. Handle 2-byte and 3-byte charsets correctly.
23667 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23668 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23669 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23670 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23671 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23672 sequence.
23673 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23674 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23675 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23676 and alt&rule composition.
23677 (decode_coding_iso_2022): Handle composition correctly.
23678 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23679
23680 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23681 re-defining a charset. If the charset has :emacs-mule-id, setup
23682 emacs_mule_bytes.
23683 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23684
236852008-02-01 Kenichi Handa <handa@m17n.org>
23686
23687 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23688 (encode_coding_big5, encode_coding_charset): If coding requires safe
23689 encoding, produce a character specified by
23690 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23691
236922008-02-01 Dave Love <fx@gnu.org>
23693
23694 * xterm.c (XSetIMValues): Declare.
23695
23696 * process.c: Conditionally include sys/wait.h, pty.h.
23697
23698 * print.c (print_object): Fix print format for 64-bit systems.
23699
23700 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23701
23702 * buffer.c (emacs_strerror): Declare.
23703
23704 * fontset.c (Fclear_face_cache): Declare.
23705 (accumulate_font_info): Comment-out (unused).
23706 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23707 variables.
23708
23709 * character.h (string_escape_byte8): Declare.
23710
23711 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23712 unused vars.
23713 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23714 (Fmap_charset_chars): Doc fix.
23715
23716 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23717 (Fset_coding_system_priority, Fset_coding_system_priority)
23718 (Fdefine_coding_system_internal): Doc fix.
23719
237202008-02-01 Dave Love <fx@gnu.org>
23721
23722 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23723
237242008-02-01 Kenichi Handa <handa@m17n.org>
23725
23726 * character.c (string_escape_byte8): Make multibyte string with
23727 correct size.
23728
23729 * charset.c (Fmake_char): Delete unnecessary code.
23730
237312008-02-01 Kenichi Handa <handa@m17n.org>
23732
23733 * xfns.c (x_encode_text): Allocate coding.destination here, and
23734 call encode_coding_object with dst_object Qnil.
23735
23736 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23737 multibyte form correctly.
23738
23739 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23740 against Vfont_encoding_alist.
23741
23742 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23743 handling of charset list.
23744 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23745 (decode_coding_object): Move point to coding->dst_pos before
23746 calling post-read-conversion function.
23747 (encode_coding_object): Give correct arguments to
23748 pre-write-conversion. Ignore the return value of
23749 pre-write-conversion function. Pay attention to the case that
23750 pre-write-conversion changes the current buffer. If dst_object is
23751 Qt, even if coding->src_bytes is zero, allocate at least one byte
23752 to coding->destination.
23753
23754 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23755
23756 * charset.c (Fmake_char): Make it more backward compatible.
23757 (Fmap_charset_chars): Fix docstring.
23758
237592008-02-01 Dave Love <fx@gnu.org>
23760
23761 * coding.c: Doc fixes.
23762 (Fdefine_coding_system_alias): Use names, not symbols, in
23763 coding-system-alist.
23764
237652008-02-01 Kenichi Handa <handa@m17n.org>
23766
23767 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23768 of calling free_realized_face.
23769
237702008-02-01 Yong Lu <lyongu@asia-infonet.com>
23771
23772 * charset.c (read_hex): Don't treat SPC as a comment starter.
23773 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23774 (Fdecode_char): Fix typo.
23775
237762008-02-01 Kenichi Handa <handa@m17n.org>
23777
23778 * charset.h (struct charset): New member `code_space_mask'.
23779
23780 * coding.c (coding_set_source): Delete the local variable beg_byte.
23781 (encode_coding_charset, Fdefine_coding_system_internal):
23782 Delete the local variable charset.
23783 (Fdefine_coding_system_internal): Setup
23784 attrs[coding_attr_charset_valids] correctly.
23785
23786 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23787 member to check if CODE is valid or not.
23788 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23789 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23790 is within the range of charset->min_code and carset->max_code.
23791
237922008-02-01 Dave Love <fx@gnu.org>
23793
23794 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23795
23796 * dispextern.h (generate_ascii_font): Fix return type.
23797
23798 * xfaces.c (generate_ascii_font): Fix arg declaration.
23799
23800 * coding.c (coding_inherit_eol_type)
23801 (Fset_terminal_coding_system_internal)
23802 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23803
238042008-02-01 Kenichi Handa <handa@m17n.org>
23805
23806 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23807 multiple charsets correctly.
23808
238092008-02-01 Kenichi Handa <handa@m17n.org>
23810
23811 * search.c (boyer_moore): Fix handling of multibyte character
23812 translation.
23813
23814 * xdisp.c (display_mode_element): When the variable `elt' is
23815 changed, update `this' and `lisp_string'.
23816
238172008-02-01 Kenichi Handa <handa@m17n.org>
23818
23819 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23820
23821 * callproc.c (Fcall_process): Be sure to give the current buffer
23822 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23823
23824 * charset.c (struct charset_map_entries): New struct.
23825 (load_charset_map): Rename from parse_charset_map. New args
23826 entries and n_entries. Change caller.
23827 (load_charset_map_from_file): Rename from load_charset_map.
23828 Change caller. New arg control_flag. Call load_charset_map at
23829 the tail.
23830 (load_charset_map_from_vector): New function.
23831 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23832 (encode_char): If the charset is compact, change a character index
23833 to a code point.
23834
23835 * coding.c (coding_alloc_by_making_gap): Check the case that the
23836 source and destination are the same correctly.
23837 (decode_coding_raw_text): Set coding->consumed_char and
23838 coding->consumed to 0.
23839 (produce_chars): If coding->chars_at_source is nonzero, update
23840 coding->consumed_char and coding->consumed before calling
23841 alloc_destination.
23842 (Fdefine_coding_system_alias): Register ALIAS in
23843 Vcoding_system_alist.
23844 (syms_of_coding): Define `no-conversion' coding system at the tail.
23845
23846 * fileio.c (Finsert_file_contents): Set coding_system instead of
23847 val. If the current buffer is multibyte, always call
23848 decode_coding_gap.
23849
23850 * xfaces.c (try_font_list): Give higher priority to fontset's
23851 family than face's family.
23852
238532008-02-01 Kenichi Handa <handa@m17n.org>
23854
23855 * callproc.c (Fcall_process): Be sure to give the current buffer
23856 to decode_coding_c_string.
23857
23858 * xfaces.c (try_font_list): Give a family specified in a fontset
23859 higher priority than a family specified in a face.
23860
238612008-02-01 Kenichi Handa <handa@m17n.org>
23862
23863 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23864 Fix arguments to insert_from_buffer.
23865
23866 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23867
238682008-02-01 Kenichi Handa <handa@m17n.org>
23869
23870 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23871 (decode_coding_gap): Set coding->dst_multibyte correctly.
23872
238732008-02-01 Kenichi Handa <handa@m17n.org>
23874
23875 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23876 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23877 (encode_coding_utf_16): Substitute coding->default_char for
23878 non-Unicode characters.
23879 (decode_coding): Don't call record_insert here.
23880 (setup_coding_system): Initialize `surrogate' of
23881 coding->spec.utf_16 to 0.
23882 (EMIT_ONE_BYTE): Fix for multibyte case.
23883
23884 * insdel.c (insert_from_gap): Call record_insert.
23885
238862008-02-01 Kenichi Handa <handa@m17n.org>
23887
23888 * casefiddle.c (casify_region): Fix multibyte case.
23889
23890 * character.c (c_string_width): Add return type `int'.
23891 (char_string_with_unification): Delete arg ADVANCED.
23892
23893 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23894 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23895 (CHAR_STRING_ADVANCE): Make it do-while statement.
23896
23897 * chartab.c (sub_char_table_set_range): Optimize for the case
23898 DEPTH == 3. Add workaround code for a GCC optimization bug.
23899
23900 * charset.c (parse_charset_map): Remove an unused variable.
23901
23902 * coding.c: Delete unused variables.
23903
23904 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23905 earlier. If inserted is zero and the coding system doesn't
23906 require flushing, don't call decode_coding_gap.
23907
23908 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23909
239102008-02-01 Kenichi Handa <handa@m17n.org>
23911
23912 The following changes are for using Unicode as an internal
23913 character model, and use UTF-8 format for buffer/string
23914 representation.
23915
23916 * .gdbinit (xchartable): Adjust for the change of char table structure.
23917 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23918
23919 * Makefile.in (obj): Add character.o and chartab.o.
23920 (lisp, shortlisp): Remove utf-8.elc.
23921 (*.o): For many files, change dependency on charset.h to
23922 character.h, and add dependency on character.h.
23923 (character.o, chartab.o): New targets.
23924
23925 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23926 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23927 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23928 of "charset.h".
23929
23930 * dired.c, filelock.c: Include "character.h".
23931
23932 * alloc.c: Include "character.h" instead of "charset.h".
23933 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23934 (syms_of_alloc): Remove defsubr for Smake_char_table.
23935
23936 * buffer.c: Include "character.h" instead of "charset.h", don't
23937 include "coding.h".
23938 (Fset_buffer_multibyte): Adjust for UTF-8.
23939
23940 * buffer.h: EXFUN Fbuffer_live_p.
23941
23942 * callproc.c: Include "character.h" instead of "charset.h".
23943 (Fcall_process): Big change for the new code-conversion APIs.
23944
23945 * casetab.c: Include "character.h" instead of "charset.h".
23946 (set_canon, set_identity, shuffle): Adjust for the new
23947 map_char_table spec.
23948 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23949 accessing the char table structure.
23950
23951 * chartab.c: New file that implements char table.
23952
23953 * category.c: Include "character.h".
23954 (copy_category_entry): New function.
23955 (copy_category_table): Call map_char_table and copy_category_entry.
23956 (Fmake_category_table): Initialize all top-level slots.
23957 (char_category_set): New function.
23958 (modify_lower_category_set): Delete.
23959 (Fmodify_category_entry): Call char_table_ref_and_range.
23960
23961 * category.h (CATEGORY_SET): Just call char_category_set.
23962
23963 * ccl.c: Include "character.h".
23964 (Qccl, Qcclp): New variables.
23965 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23966 it's less than 256.
23967 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23968 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23969 and DST type.
23970 (ccl_driver): Change types of argument, adjust code accordingly.
23971 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23972 ccl_driver.
23973 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23974
23975 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23976 New members src_multibyte, dst_multibyte, consumed, and produced.
23977 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23978 (CODING_SPEC_CCL_PROGRAM): New macro.
23979 (ccl_driver): Update prototype.
23980 (Qccl, Qcclp, Fccl_program_p): Extern them.
23981 (CHECK_CCL_PROGRAM): New macro.
23982
23983 * character.c, character.h, chartab.c: New files.
23984
23985 * charset.c: Mostly re-written. Move character and multibyte sequence
23986 handling codes to character.c.
23987
23988 * charset.h: Mostly re-written. Move character and multibyte sequence
23989 handling codes to character.h.
23990
23991 * coding.c, coding.h: Mostly re-written.
23992
23993 * composite.c: Include "character.h" instead of "charset.h".
23994 (CHAR_WIDTH): Move to character.h.
23995 (HASH_KEY, HASH_VALUE): Delete.
23996
23997 * composite.h (enum composition_method): Change order of enumeration
23998 symbols.
23999
24000 * data.c: Include "character.h" instead of "charset.h".
24001 (Faref): Call CHAR_TABLE_REF for a char table.
24002 (Faset): Call CHAR_TABLE_SET for a char table.
24003
24004 * dispextern.h (free_realized_face, check_face_attribytes)
24005 (generate_ascii_font): Extern them.
24006 (free_realized_multibyte_face): Delete extern.
24007
24008 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24009 table structure.
24010
24011 * editfns.c: Include "character.h" instead of "charset.h".
24012 (Fchar_to_string): Always call CHAR_STRING.
24013
24014 * emacs.c (main): Call init_charset_once, init_charset,
24015 syms_of_chartab, and syms_of_character.
24016
24017 * fileio.c: Include "character.h" instead of "charset.h".
24018 (Finsert_file_contents): Big change for the new code-conversion API.
24019 (choose_write_coding_system, Fwrite_region): Likewise.
24020 (build_annotations_2): Delete.
24021 (e_write): Big change for the new code-conversion API.
24022
24023 * fns.c: Include "character.h" instead of "charset.h".
24024 (copy_sub_char_table): Move to chartab.c.
24025 (Fcopy_sequence): Call copy_char_table for a char table.
24026 (concat): Delete codes calling count_multibyte.
24027 (string_char_to_byte, string_byte_to_char): Adjust for the new
24028 multibyte form.
24029 (internal_equal): Adjust for the change of char table structure.
24030 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24031 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24032 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24033 (char_table_translate, optimize_sub_char_table)
24034 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24035 chartab.c.
24036 (char_table_ref_and_index): Delete.
24037 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24038 (Fmd5): Call preferred_coding_system instead of accessing
24039 Vcoding_category_list. Adjust for the new code-conversion API.
24040 (syms_of_fns): Move defsubr for char table related functions to
24041 chartab.c.
24042
24043 * fontset.c: Mostly re-written.
24044
24045 * fontset.h (struct font_info): Change type of the member encoding_type.
24046 (enum FONT_SPEC_INDEX): New enum.
24047 (fontset_font_pattern, fs_load_font): Update prototype.
24048 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24049
24050 * indent.c: Include "character.h" instead of "charset.h".
24051 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24052
24053 * insdel.c: Include "character.h" instead of "charset.h".
24054 (copy_text): Don't refer to Vnonascii_translation_table.
24055 (insert_from_gap): New function.
24056
24057 * keyboard.c: Include "character.h" instead of "charset.h".
24058 (command_loop_1): Never call direct_output_forward_char before
24059 a non-ASCII character.
24060 (read_char): If Vkeyboard_translate_table is a char table, always
24061 translate a character.
24062
24063 * keymap.c: Include "character.h".
24064 (store_in_keymap): Handle the case that IDX is a cons.
24065 (Fdefine_key): Handle the case that KEY is a cons and the car part
24066 is also a cons (range).
24067 (push_key_description): Adjust for the new character code.
24068 (describe_vector): Call describe_char_table for a char table.
24069 (describe_char_table): New function.
24070
24071 * keymap.h (describe_char_table): Extern it.
24072
24073 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24074 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24075 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24076 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24077 Delete.
24078 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24079 structure.
24080 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24081 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24082 (CHARTAB_SIZE_BITS_3): New macros.
24083 (chartab_size): Extern it.
24084 (struct Lisp_Char_Table): Re-design.
24085 (struct Lisp_Sub_Char_Table): New structure.
24086 (HASH_KEY, HASH_VALUE): Move from fns.c.
24087 (CHARACTERBITS): Define as 22.
24088 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24089 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24090 (GC_SUB_CHAR_TABLE_P): New macro.
24091 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24092 (code_convert_string_norecord): Deleted extern.
24093 (init_character_once, syms_of_character, init_charset)
24094 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24095
24096 * lread.c: Include "character.h".
24097 (read_multibyte): New arg NBYTES.
24098 (read_escape): Change the meaning of returned *BYTEREP.
24099 (to_multibyte): Delete.
24100 (read1): Adjust the handling of char table and string.
24101
24102 * print.c: Include "character.h" instead of "charset.h".
24103 (print_string): Convert 8-bit raw bytes to octal form by
24104 string_escape_byte8.
24105 (print_object): Adjust for the new multibyte form. Print 8-bit
24106 raw bytes always in octal form. Handle sub char table correctly.
24107
24108 * process.c: Include "character.h" instead of "charset.h".
24109 (read_process_output, send_process): Adjust for the new
24110 code-conversion API.
24111
24112 * puresize.h (BASE_PURESIZE): Increase.
24113
24114 * regex.c: Include "character.h" instead of "charset.h".
24115 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24116 (regex_compile): Accept a range whose starting and ending
24117 character have different leading bytes.
24118 (analyse_first): Adjust for the above change.
24119
24120 * search.c: Include "character.h" instead of "charset.h".
24121 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24122 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24123
24124 * syntax.c: Include "character.h" instead of "charset.h".
24125 (syntax_parent_lookup): Delete.
24126 (Fmodify_syntax_entry): Accept a cons as CHAR.
24127 (skip_chars): Adjust for the new multibyte form.
24128 (init_syntax_once): Call char_table_set_range instead of directly
24129 accessing the structure of a char table.
24130
24131 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24132 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24133 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24134 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24135
24136 * term.c: Include "buffer.h" and "character.h".
24137 (encode_terminal_code, write_glyphs): Adjust for the new
24138 code-conversion API.
24139 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24140
24141 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24142
24143 * xdisp.c: Include "character.h".
24144 (get_next_display_element): Adjust for the new multibyte form.
24145 (disp_char_vector): Adjust for the new char table structure.
24146 (decode_mode_spec_coding): Adjust for the new structure of
24147 coding system.
24148 (decode_mode_spec): Adjust for the new code-conversion API.
24149
24150 * xfaces.c: Include "character.h" instead of "charset.h".
24151 (load_face_font): Adjust for the change of choose_face_font and
24152 FS_LOAD_FONT.
24153 (generate_ascii_font): New function.
24154 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24155 (set_font_frame_param): Adjust for the change of choose_face_font.
24156 (free_realized_face): Make it public.
24157 (free_realized_faces_for_fontset): Rename from
24158 free_realized_multibyte_face. Free also faces realized for ASCII.
24159 (choose_face_font): Change arguments. Adjust for the change of
24160 fontset_font_pattern and FS_LOAD_FONT.
24161
24162 * xfns.c: Include "character.h".
24163 (x_encode_text): Adjust for the new code-conversion API.
24164
24165 * xselect.c: Don't include "charset.h".
24166 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24167
24168 * xterm.c: Include "character.h".
24169 (x_encode_char): New argument CHARSET. Change caller.
24170 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24171 Call ENCODE_CHAR instead of SPLIT_CHAR.
24172 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24173 CHAR_WIDTH instead of CHARSET_WIDTH.
24174 (XTread_socket): Adjust for the new code-conversion API.
24175 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24176 (x_load_font): Adjust for the change of struct font.
24177
241782008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24179
24180 * xfaces.c (face_at_buffer_position): Remove unused vars.
24181
241822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24183
24184 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24185 Fix overflow checking.
24186
241872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24188
24189 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24190 Cancel previous change.
24191
241922008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24193
24194 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24195 ccl->eight_bit_control. Fix check for buffer overflow.
24196 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24197 (ccl_driver): Initialize extra_bytes to 0.
24198
241992008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24200
24201 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24202 return it ORed with ctrl_modifier.
24203
242042008-01-29 Miles Bader <miles@gnu.org>
24205
24206 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24207
242082008-01-28 Jason Rumney <jasonr@gnu.org>
24209
24210 * w32.c (stat): Don't double check for networked drive.
24211
242122008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24213
24214 * window.c (run_window_configuration_change_hook): New function.
24215 Code extracted from set_window_buffer. Set the selected frame.
24216 (set_window_buffer): Use it.
24217 * window.h (run_window_configuration_change_hook): Declare.
24218 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24219
24220 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24221
242222008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24223
24224 * Makefile.in: Remove references to unused macros.
24225
242262008-01-26 Eli Zaretskii <eliz@gnu.org>
24227
24228 * w32.c (g_b_init_get_sid_sub_authority)
24229 (g_b_init_get_sid_sub_authority_count): New static variables.
24230 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24231 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24232 (init_user_info): Use them to retrieve uid and gid.
24233 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24234 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24235 st_uid and st_gid of the file.
24236
242372008-01-26 Jason Rumney <jasonr@gnu.org>
24238
24239 * w32.c (logon_network_drive): New function.
24240 (stat): Use it.
24241
242422008-01-26 Chong Yidong <cyd@stupidchicken.com>
24243
24244 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24245 invisible text covered with an ellipsis.
24246
242472008-01-25 Richard Stallman <rms@gnu.org>
24248
24249 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24250 jump back to beginning. Move some other initializations after that.
24251 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24252 New variables.
24253 (syms_of_xdisp): Init them.
24254
24255 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24256
24257 * buffer.c (reset_buffer_local_variables):
24258 Implement `permanent-local-hook'.
24259 (Qpermanent_local_hook): New variable.
24260 (syms_of_buffer): Init and staticpro it.
24261
242622008-01-25 Michael Albinus <michael.albinus@gmx.de>
24263
24264 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24265
242662008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24267
24268 * fns.c (Fclrhash): Return TABLE.
24269
242702008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24271
24272 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24273 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24274 is set even without positional changes.
24275 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24276
24277 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24278
242792008-01-23 Jason Rumney <jasonr@gnu.org>
24280
24281 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24282
24283 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24284 the unicode range available in MULE by locale-coding-system.
24285 Improve dbcs lead byte detection. Set event timestamp and modifiers
24286 earlier.
24287
242882008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24289
24290 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24291 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24292 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24293 when used on child processes.
24294
242952008-01-21 Michael Albinus <michael.albinus@gmx.de>
24296
24297 * dbusbind.c (Fdbus_method_return_internal): Rename from
24298 Fdbus_method_return.
24299 (Fdbus_unregister_object): Move to dbus.el.
24300 (Fdbus_call_method, Fdbus_method_return_internal)
24301 (Fdbus_send_signal): Improve debug messages.
24302
243032008-01-20 Martin Rudalics <rudalics@gmx.at>
24304
24305 * undo.c (undo_inhibit_record_point): New variable.
24306 (syms_of_undo): Initialize it.
24307 (record_point): Don't record point when undo_inhibit_record_point
24308 is set.
24309
243102008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24311
24312 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24313
24314 * xdisp.c (Qauto_hscroll_mode): New var.
24315 (syms_of_xdisp): Initialize it.
24316 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24317 window's buffer.
24318 (hscroll_windows): Don't check automatic_hscrolling_p here.
24319
24320 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24321 vscroll if we're setting window-buffer to the value it already has.
24322
243232008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24324
24325 * m/intel386.h: Remove references to XENIX.
24326
243272008-01-17 Andreas Schwab <schwab@suse.de>
24328
24329 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24330 instead of HAVE_X86_64_LIB64_DIR.
24331 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24332
243332008-01-17 Glenn Morris <rgm@gnu.org>
24334
24335 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24336 to HAVE_X86_64_LIB64_DIR.
24337
243382008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24339
24340 * s/irix3-3.h:
24341 * s/irix4-0.h:
24342 * s/386-ix.h:
24343 * s/domain.h:
24344 * s/hpux9-x11r4.h:
24345 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24346
24347 * sysdep.c: Remove code containing references to symbols defined
24348 by unsupported systems.
24349
243502008-01-16 Glenn Morris <rgm@gnu.org>
24351
24352 * coding.c (select-safe-coding-system-function): Doc fix.
24353
243542008-01-15 Glenn Morris <rgm@gnu.org>
24355
24356 * config.in: Revert 2008-01-13 change: this is a generated file.
24357
243582008-01-13 Tom Tromey <tromey@redhat.com>
24359
24360 * lisp.h: Fix typo.
24361
243622008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24363
24364 * m/sequent-ptx.h:
24365 * m/sequent.h:
24366 * s/ptx.h:
24367 * s/ptx4-2.h:
24368 * s/ptx4.h: Remove files for systems no longer supported.
24369
24370 * callproc.c (Fcall_process): Fix previous change.
24371
243722008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24373
24374 * unexsunos4.c: Remove file, system not supported anymore.
24375
24376 * m/mips.h:
24377 * m/intel386.h:
24378 * callproc.c:
24379 * config.in:
24380 * ecrt0.c:
24381 * emacs.c:
24382 * fileio.c:
24383 * frame.c:
24384 * getpagesize.h:
24385 * keyboard.c:
24386 * lread.c:
24387 * process.c:
24388 * puresize.h:
24389 * sysdep.c:
24390 * systty.h:
24391 * syswait.h:
24392 * unexec.c:
24393 * xdisp.c:
24394 * alloc.c: Remove code containing references to symbols defined by
24395 unsupported systems.
24396
243972008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24398
24399 * coding.c (detect_coding_mask): Fix previous change.
24400
244012008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24402
24403 * coding.c (detect_coding_iso2022): New arg
24404 latin_extra_code_state. Allow Latin extra codes only
24405 when *latin_extra_code_state is nonzero.
24406 (detect_coding_mask): If there is a NULL byte, detect the encoding
24407 as UTF-16 or binary. If Latin extra codes exist, detect the
24408 encoding as ISO-2022 only when there's no other proper encoding is
24409 found.
24410
244112008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24412
24413 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24414 #ifdef MAC_OS.
24415
244162008-01-08 Richard Stallman <rms@gnu.org>
24417
24418 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24419
244202008-01-06 Nick Roberts <nickrob@snap.net.nz>
24421
24422 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24423 menu bar in parentheses.
24424
244252008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24426
24427 * m/7300.h:
24428 * m/acorn.h:
24429 * m/alliant-2800.h:
24430 * m/alliant.h:
24431 * m/alliant1.h:
24432 * m/alliant4.h:
24433 * m/altos.h:
24434 * m/amdahl.h:
24435 * m/apollo.h:
24436 * m/att3b.h:
24437 * m/aviion-intel.h:
24438 * m/aviion.h:
24439 * m/celerity.h:
24440 * m/clipper.h:
24441 * m/cnvrgnt.h:
24442 * m/convex.h:
24443 * m/cydra5.h:
24444 * m/delta88k.h:
24445 * m/dpx2.h:
24446 * m/dual.h:
24447 * m/elxsi.h:
24448 * m/f301.h:
24449 * m/gould-np1.h:
24450 * m/gould.h:
24451 * m/i860.h:
24452 * m/ibmps2-aix.h:
24453 * m/ibmrt-aix.h:
24454 * m/ibmrt.h:
24455 * m/irist.h:
24456 * m/is386.h:
24457 * m/isi-ov.h:
24458 * m/mega68.h:
24459 * m/mg1.h:
24460 * m/news-r6.h:
24461 * m/news-risc.h:
24462 * m/news.h:
24463 * m/nh3000.h:
24464 * m/nh4000.h:
24465 * m/ns16000.h:
24466 * m/ns32000.h:
24467 * m/nu.h:
24468 * m/orion.h:
24469 * m/orion105.h:
24470 * m/paragon.h:
24471 * m/pfa50.h:
24472 * m/plexus.h:
24473 * m/pyramid.h:
24474 * m/pyrmips.h:
24475 * m/sh3el.h:
24476 * m/sps7.h:
24477 * m/sr2k.h:
24478 * m/stride.h:
24479 * m/sun1.h:
24480 * m/sun2.h:
24481 * m/sun3-68881.h:
24482 * m/sun3-fpa.h:
24483 * m/sun3-soft.h:
24484 * m/sun3.h:
24485 * m/sun386.h:
24486 * m/symmetry.h:
24487 * m/tad68k.h:
24488 * m/tahoe.h:
24489 * m/targon31.h:
24490 * m/tek4300.h:
24491 * m/tekxd88.h:
24492 * m/tower32.h:
24493 * m/tower32v3.h:
24494 * m/ustation.h:
24495 * m/wicat.h:
24496 * m/xps100.h:
24497 * s/cxux.h:
24498 * s/cxux7.h:
24499 * s/dgux.h:
24500 * s/dgux4.h:
24501 * s/dgux5-4-3.h:
24502 * s/dgux5-4r2.h:
24503 * s/esix.h:
24504 * s/esix5r4.h:
24505 * s/hiuxmpp.h:
24506 * s/hiuxwe2.h:
24507 * s/iris3-5.h:
24508 * s/iris3-6.h:
24509 * s/isc2-2.h:
24510 * s/isc3-0.h:
24511 * s/isc4-0.h:
24512 * s/isc4-1.h:
24513 * s/newsos5.h:
24514 * s/newsos6.h:
24515 * s/osf1.h:
24516 * s/osf5-0.h:
24517 * s/riscix1-1.h:
24518 * s/riscix12.h:
24519 * s/sco4.h:
24520 * s/sco5.h:
24521 * s/sunos4-0.h:
24522 * s/sunos4-1.h:
24523 * s/sunos413.h:
24524 * s/sunos4shr.h:
24525 * s/umax.h:
24526 * s/unipl5-2.h:
24527 * s/xenix.h:
24528 * cxux-crt0.s:
24529 * unexapollo.c:
24530 * unexconvex.c:
24531 * unexenix.c:
24532 * unexsni.c: Remove files for systems no longer supported.
24533
24534 * m/intel386.h: Remove references to unsupported systems.
24535
24536 * w32.c (get_emacs_configuration): Remove reference to i860.
24537
24538 * sysdep.c: Remove dead code.
24539
245402008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24541
24542 * s/rtu.h:
24543 * m/masscomp.h: Remove files. Platform is obsolete.
24544
245452008-01-04 Michael Albinus <michael.albinus@gmx.de>
24546
24547 * dbusbind.c (Fdbus_method_return): New function.
24548 (xd_read_message): Add the serial number to the event.
24549 (Fdbus_register_method): Activate the function.
24550
245512008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24552
24553 * keyboard.c (read_key_sequence): Fix typo.
24554
245552008-01-03 Michael Albinus <michael.albinus@gmx.de>
24556
24557 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24558 (xd_signature, xd_append_arg): Handle element type detection for
24559 empty arrays.
24560 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24561 SDATA () calls; this must be solved more general.
24562 (Fdbus_register_signal): Use SBYTES instead of strlen.
24563
245642008-01-03 Magnus Henoch <magnus@zemdatav>
24565
24566 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24567 unsigned int for byte values (necessary for big-endian platform).
24568 (Fdbus_call_method): Handle the case of no returned arguments.
24569
245702007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24571
24572 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24573
245742007-12-31 Magnus Henoch <mange@freemail.hu>
24575
24576 * dbusbind.c (xd_signature): Signature of variant is just "v".
24577
245782007-12-30 Michael Albinus <michael.albinus@gmx.de>
24579
24580 * dbusbind.c: Fix several errors and compiler warnings.
24581 Reported by Tom Tromey <tromey@redhat.com>.
24582 (XD_ERROR, XD_DEBUG_MESSAGE)
24583 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24584 (xd_append_arg): Part for basic D-Bus types rewritten.
24585 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24586 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24587 appropriate.
24588 (xd_read_message): Return Qnil. Don't signal an error; it is not
24589 useful during event reading.
24590 (Fdbus_register_signal): Signal an error if the check for
24591 FUNCTIONP fails.
24592 (Fdbus_register_method): New function. The implementation is not
24593 complete, the call of the function signals an error therefore.
24594 (Fdbus_unregister_object): New function, renamed from
24595 Fdbus_unregister_signal. The initial check signals an error, if
24596 the object is not well formed.
24597
245982007-12-30 Richard Stallman <rms@gnu.org>
24599
24600 * textprop.c (get_char_property_and_overlay):
24601 Signal error if POSITION is out of range in a buffer.
24602
246032007-12-29 Martin Rudalics <rudalics@gmx.at>
24604
24605 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24606 because the original parameters are in pure storage now.
24607
246082007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24609
24610 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24611
246122007-12-22 Eli Zaretskii <eliz@gnu.org>
24613
24614 * callint.c (syms_of_callint) <command-history>: Add reference to
24615 history-length in the doc string.
24616
246172007-12-17 Jason Rumney <jasonr@gnu.org>
24618
24619 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24620 before passing as wParam.
24621
246222007-12-22 Michael Albinus <michael.albinus@gmx.de>
24623
24624 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24625 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24626 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24627 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24628 as number.
24629 (Fdbus_call_method): Fix docstring.
24630
246312007-12-21 Michael Albinus <michael.albinus@gmx.de>
24632
24633 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24634 New macros.
24635 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24636 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24637 Simplify.
24638 (xd_signature): New function.
24639 (xd_append_arg): Compute also signatures. Major rewrite.
24640 (xd_retrieve_arg): Make debug messages friendly.
24641 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24642 Check for signatures of arguments.
24643
246442007-12-19 Michael Albinus <michael.albinus@gmx.de>
24645
24646 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24647 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24648 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24649 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24650 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24651 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24652 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24653 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24654 (xd_retrieve_value): Remove. Functionality included in ...
24655 (xd_append_arg): New function.
24656 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24657
246582007-12-16 Michael Albinus <michael.albinus@gmx.de>
24659
24660 * dbusbind.c (top): Include <stdio.h>.
24661 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24662 dbus_message_new_method_call and dbus_message_new_signal.
24663 (Fdbus_register_signal): Rename unique_name to uname.
24664 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24665 non-existing unique name. Fix typos in matching rule. Return an
24666 object which is useful in Fdbus_unregister_signal.
24667 (Fdbus_unregister_signal): Reimplementation, in order to remove
24668 only the corresponding entry.
24669 (Vdbus_registered_functions_table): Change the order of entries.
24670 Apply these changes in xd_read_message and Fdbus_register_signal.
24671
246722007-12-16 Andreas Schwab <schwab@suse.de>
24673
24674 * fileio.c (Finsert_file_contents): Fix overflow check to not
24675 depend on undefined integer overflow.
24676
246772007-12-14 Jason Rumney <jasonr@gnu.org>
24678
24679 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24680 for characters above 127.
24681
246822007-12-13 Jason Rumney <jasonr@gnu.org>
24683
24684 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24685 before dereferencing array.
24686 (lookup_vk_code): Remove zero comparison.
24687
246882007-12-14 Michael Albinus <michael.albinus@gmx.de>
24689
24690 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24691 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24692 Use `unsigned int' instead of `uint'.
24693 (xd_read_message, Fdbus_register_signal): Split expressions into
24694 multiple lines before operators "&&" and "||", according to the
24695 GNU Coding Standards.
24696
246972007-12-14 Eli Zaretskii <eliz@gnu.org>
24698
24699 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24700
247012007-12-12 Juri Linkov <juri@jurta.org>
24702
24703 * buffer.c (Frename_buffer): In interactive spec replace
24704 `read-buffer' with `read-string' that uses `buffer-name-history'
24705 as history, and the current buffer's name as default.
24706
247072007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24708
24709 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24710 manipulating the backtrace manually.
24711 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24712 (struct backtrace, backtrace_list): Remove.
24713 (command_loop_1): Remove dead var `no_direct'.
24714
24715 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24716 preserve non-built-in buffer-local variables.
24717 (Fkill_all_local_variables): Don't re-create&re-set permanent
24718 buffer-local variables.
24719
247202007-12-09 Juri Linkov <juri@jurta.org>
24721
24722 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24723 Lisp code that uses `read-buffer' with current buffer as default.
24724
247252007-12-08 Michael Albinus <michael.albinus@gmx.de>
24726
24727 * dbusbind.c (xd_read_message): Generate an event for every
24728 registered handler. There might be several handlers registered
24729 for the same signal.
24730 (Fdbus_register_signal): Don't overwrite a registration for the
24731 same signal. Add a new registration if handlers are different.
24732 (Vdbus_registered_functions_table): Rework doc string.
24733
247342007-12-07 Michael Albinus <michael.albinus@gmx.de>
24735
24736 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24737 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24738 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24739 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24740 Unify argument lists.
24741 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24742 arguments and hash table keys. Use unique name for service.
24743 (Fdbus_unregister_signal): Remove checks.
24744 (Vdbus_registered_functions_table): Fix doc string.
24745
247462007-12-05 Magnus Henoch <mange@freemail.hu>
24747
24748 * process.c (make_process): Initialize pty_flag to 0.
24749
247502007-12-05 Jason Rumney <jasonr@gnu.org>
24751
24752 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24753 specified XBMs.
24754
247552007-12-05 Richard Stallman <rms@gnu.org>
24756
24757 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24758
247592007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24760
24761 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24762 New variable.
24763 (mac_try_close_socket) [MAC_OSX]: New function.
24764 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24765 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24766
24767 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24768 Use mac_try_close_socket.
24769
247702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24771
24772 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24773 reloc_base.
24774 (copy_dysymtab): Compute relocation base here.
24775 (rebase_reloc_address) [__ppc64__]: New function.
24776 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24777 changed.
24778
247792007-12-05 Jason Rumney <jasonr@gnu.org>
24780
24781 * w32proc.c (sys_spawnve): Quote args with wildcards.
24782
247832007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24784
24785 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24786 __objc_* sections.
24787 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24788
247892007-12-05 Michael Albinus <michael.albinus@gmx.de>
24790
24791 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24792 Move check for Vdbus_registered_functions_table to
24793 xd_read_queued_messages.
24794 (xd_read_queued_messages): Protect xd_read_message calls by
24795 internal_condition_case_1.
24796
247972007-12-04 Michael Albinus <michael.albinus@gmx.de>
24798
24799 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24800 Qdbus_system_bus and Qdbus_session_bus, respectively.
24801 (Vdbus_intern_symbols): Remove.
24802 (Vdbus_registered_functions_table): New hash table.
24803 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24804 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24805 Rewrite in order to manage registered functions by hash table
24806 Vdbus_registered_functions_table.
24807
248082007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24809
24810 * xterm.c: Update URL to Window Manager Specification in comment.
24811
248122007-12-02 Michael Albinus <michael.albinus@gmx.de>
24813
24814 * config.in (HAVE_DBUS): Add.
24815
24816 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24817 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24818 (obj): Add $(DBUS_OBJ).
24819 (LIBES): Add $(DBUS_LIBS).
24820 (dbusbind.o): New target.
24821
24822 * dbusbind.c: New file.
24823
24824 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24825
24826 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24827 (Qdbus_event): New Lisp symbol.
24828 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24829 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24830 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24831
24832 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24833
248342007-12-01 Richard Stallman <rms@gnu.org>
24835
24836 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24837
248382007-11-30 Jason Rumney <jasonr@gnu.org>
24839
24840 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24841 (w32con_reset_terminal_modes): Clear screen buffer.
24842 (w32_face_attributes): Don't use color indexes that are out of range.
24843 Only reverse the default colors.
24844
24845 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24846 WINDOWSNT.
24847
24848 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24849
248502007-11-29 Jason Rumney <jasonr@gnu.org>
24851
24852 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24853 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24854 if the terminal colors are initialized.
24855 (unspecified_fg, unspecified_bg): Remove unused declarations.
24856
248572007-11-29 Andreas Schwab <schwab@suse.de>
24858
24859 * keyboard.c (apply_modifiers): Fix typo.
24860
248612007-11-29 Richard Stallman <rms@gnu.org>
24862
24863 * keymap.c (Fcurrent_local_map): Doc fix.
24864
248652007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24866
24867 * s/gnu-kfreebsd.h: New file.
24868
248692007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24870
24871 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24872 Don't cast redundantly.
24873
24874 * keyboard.c (KEY_TO_CHAR): New macro.
24875 (parse_modifiers, apply_modifiers): Accept integer arguments.
24876 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24877 for chars and symbol keys.
24878 After doing such remapping, apply function-key-map again.
24879
248802007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24881
24882 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24883 compiled anymore.
24884
248852007-11-26 Andreas Schwab <schwab@suse.de>
24886
24887 * process.c (list_processes_1): Fix indentation level of the
24888 command column.
24889
248902007-11-23 Andreas Schwab <schwab@suse.de>
24891
24892 * editfns.c (Fformat): Handle %c specially since it requires the
24893 argument to be of type int.
24894
248952007-11-23 Markus Triska <markus.triska@gmx.at>
24896
24897 * emacs.c (main): Call init_editfns before init_process, since
24898 init_process sets Vprocess_connection_type depending on OS release.
24899
249002007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24901
24902 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24903 (find_symbol_value): Use do_symval_forwarding.
24904
24905 * data.c (set_internal): Set the value in the `cons-cell' (for
24906 Buffer_Local_values) not only for frame-local variables.
24907
249082007-11-22 Andreas Schwab <schwab@suse.de>
24909
24910 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24911 values to sprintf.
24912 * keymap.c (Fsingle_key_description): Likewise.
24913 * print.c (print_object): Likewise.
24914
249152007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24916
24917 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24918 file for image is nil.
24919
249202007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24921
24922 * term.c: Include stdarg.h.
24923 (fatal): Implement using varargs.
24924 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24925
249262007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24927
24928 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24929 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24930 Update call to buffer_slot_type_mismatch.
24931 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24932 (buffer_slot_type_mismatch): Update.
24933 * buffer.c (buffer_local_types): Remove.
24934 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24935 (defvar_per_buffer): Set the type in the buffer_objfwd.
24936
249372007-11-21 Jason Rumney <jasonr@gnu.org>
24938
24939 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24940 CreateFileMapping returns NULL on failure.
24941
249422007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24943
24944 * search.c (Fset_match_data): Remove the `evaporate' feature.
24945 (unwind_set_match_data): Don't use the `evaporate' feature.
24946
249472007-11-21 Jason Rumney <jasonr@gnu.org>
24948
24949 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24950
24951 * w32console.c (w32con_write_glyphs): Remove unused variables.
24952
249532007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24954
24955 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24956
24957 * s/darwin.h (MULTI_KBOARD): Remove.
24958
24959 * macfns.c (x_create_tip_frame, Fx_create_frame)
24960 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24961
249622007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24963
24964 * buffer.c (Fbuffer_local_value): Remove redundant test.
24965 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24966 than in `current-buffer' to match the comment.
24967 Do the swap using swap_in_global_binding.
24968
24969 * data.c (store_symval_forwarding, set_internal):
24970 * eval.c (specbind): Remove dead code.
24971
24972 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24973 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24974 Since we do not want to see internal Lisp_*fwd objects here.
24975
249762007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24977
24978 * sysdep.c (init_system_name): Use getaddrinfo if available.
24979
24980 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24981 (x_scroll_bar_note_movement): start, end, with, height in struct
24982 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24983
249842007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24985
24986 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24987
249882007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24989
24990 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24991 This undoes Richard's change of 14-Oct-2002.
24992
24993 * alloc.c (allocate_other_vector):
24994 * lisp.h (allocate_other_vector): Remove.
24995
24996 * window.c (struct save_window_data): Move non-lisp data to the end
24997 and make it `int' rather than Lisp_Object.
24998 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24999 Done wrap/unwrap integer values.
25000 (Fset_window_configuration, compare_window_configurations):
25001 Update use of fields to their new types.
25002
25003 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25004 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25005 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25006 (SET_SCROLL_BAR_X_WINDOW): Remove.
25007 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25008 Access the new x_window field directly.
25009 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25010 Don't wrap/unwrap integers into Lisp_Objects.
25011 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25012 (x_scroll_bar_report_motion):
25013 Don't wrap/unwrap integers into Lisp_Objects.
25014 (x_term_init): Use SDATA.
25015 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25016 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25017 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25018 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25019 * xfns.c (x_set_background_color):
25020 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25021 Access the new x_window field directly.
25022
25023 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25024 (allocate_pseudovector): Make non-static.
25025
25026 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25027 (allocate_pseudovector): Declare.
25028 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25029
250302007-11-15 Andreas Schwab <schwab@suse.de>
25031
25032 * editfns.c (Fformat): Correctly format EMACS_INT values.
25033 Also take precision into account when formatting an integer.
25034
25035 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25036
250372007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25038
25039 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25040 (syms_of_keyboard): Defsubr it.
25041
25042 * data.c (swap_in_global_binding): Fix longstanding bug where
25043 store_symval_forwarding was not called with the right second argument,
25044 thus causing objfwd-ing from being dropped.
25045
250462007-11-14 Juanma Barranquero <lekktu@gmail.com>
25047
25048 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25049 (Fx_display_pixel_height, Fx_display_planes)
25050 (Fx_display_color_cells, Fx_server_max_request_size)
25051 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25052 (Fx_display_visual_class, Fx_display_save_under):
25053 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25054 (Fx_display_pixel_height, Fx_display_planes)
25055 (Fx_display_color_cells, Fx_server_max_request_size)
25056 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25057 (Fx_display_mm_height, Fx_display_mm_width)
25058 (Fx_display_backing_store, Fx_display_visual_class)
25059 (Fw32_select_font, Fx_display_save_under):
25060 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25061 (Fx_display_pixel_height, Fx_display_planes)
25062 (Fx_display_color_cells, Fx_server_max_request_size)
25063 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25064 (Fx_display_save_under): Fix typos in docstrings.
25065
250662007-11-14 Juanma Barranquero <lekktu@gmail.com>
25067
25068 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25069 corresponding to deleted entries; they are an implementation detail.
25070 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25071 Remove variables.
25072 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25073 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25074 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25075 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25076 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25077 (Fw32_define_rgb_color, Fw32_load_color_file)
25078 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25079 Fix typos in docstrings.
25080 (Fx_server_version): Reflow docstring.
25081 (Fw32_shell_execute): Doc fixes.
25082
250832007-11-13 Juanma Barranquero <lekktu@gmail.com>
25084
25085 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25086 if w32_parse_hot_key returned nil.
25087
250882007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25089
25090 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25091
250922007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 25093
aac0c6e3
MR
25094 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25095
25096 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25097
25098 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25099 Remove W32_SCROLL_BAR_CLICK_EVENT.
25100
25101 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25102 Add MULTIMEDIA_KEY_EVENT.
25103
25104 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25105 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25106 (make_lispy_event) [WINDOWSNT]: Use it to translate
25107 MULTIMEDIA_KEY_EVENT.
25108
25109 * w32term.h (WM_APPCOMMAND): Define if not already.
25110 (GET_APPCOMMAND_LPARAM): Likewise.
25111
25112 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25113 WM_APPCOMMAND.
25114
25115 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25116 (syms_of_w32fns): Export and initialize it.
25117 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25118
251192007-11-09 Chong Yidong <cyd@stupidchicken.com>
25120
25121 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25122 twice.
25123
25124 * xdisp.c (handle_face_prop): Fix last change.
25125
251262007-11-09 Richard Stallman <rms@gnu.org>
25127
25128 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25129 not just for after-strings and before-strings.
25130 Call face_for_overlay_string and pass the overlay to it.
25131 (handle_display_prop): Determine whether property came from an overlay.
25132 Pass OVERLAY arg to handle_single_display_spec.
25133 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25134 (load_overlay_strings): Fill in it->string_overlays.
25135 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25136
25137 * xfaces.c (face_for_overlay_string): Function renamed from
25138 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25139
25140 * dispextern.h (struct it): New elt string_overlays.
25141 New elt from_overlay, also in stack.
25142 Rearrange a few elements.
25143 (face_for_overlay_string): Decl renamed from
25144 face_at_buffer_position_no_overlays, and add argument.
25145
251462007-11-09 Richard Stallman <rms@gnu.org>
25147
25148 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25149 to get the base face for an overlay string.
25150
25151 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25152
25153 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25154
25155 * xdisp.c (handle_stop): Move some code out of loop.
25156
251572007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25158
25159 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25160 Fix conversion from Lisp object to ATSUFontID.
25161
251622007-11-09 Jason Rumney <jasonr@gnu.org>
25163
25164 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25165
251662007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25167
25168 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25169 Don't assume regions are aligned to page boundary.
25170 (print_load_command_name): Add LC_UUID if defined.
25171
251722007-11-09 Richard Stallman <rms@gnu.org>
25173
25174 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25175
251762007-11-07 Jason Rumney <jasonr@gnu.org>
25177
25178 * s/windows95.h: Remove.
25179
251802007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25181
25182 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25183 abort with a message on unhandled store_type values.
25184
251852007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25186
25187 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25188 Remove HAVE_X11R5 and HAVE_X11R4.
25189
251902007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25191
25192 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25193
251942007-11-01 Johan Bockgård <bojohan@gnu.org>
25195
25196 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25197 Don't set s->stippled_p here, since it has already been set by
25198 x_set_glyph_string_gc from x_draw_glyph_string.
25199
252002007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25201
25202 * sunfns.c: Remove file.
25203
25204 * m/sun386.h:
25205 * m/sun2.h:
25206 * m/sparc.h: Remove Sun windows code.
25207
252082007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25209
25210 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25211 (init_keyboard): Set current_kboard's window-system to nil.
25212 (tty_read_avail_input): Typo.
25213 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25214
252152007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25216
25217 * s/usg5-4.h:
25218 * s/usg5-3.h:
25219 * s/ptx.h:
25220 * m/is386.h:
25221 * m/ibmps2-aix.h:
25222 * Makefile.in: Remove all mentions of X10.
25223
25224 * dispnew.c (syms_of_display): Don't mention version 10.
25225
252262007-10-28 Juanma Barranquero <lekktu@gmail.com>
25227
25228 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25229 ($(BLD)/abbrev.$(O)): Remove.
25230
252312007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25232
25233 Rewrite abbrev.c in Elisp.
25234 * image.c (Qcount): Don't declare as extern.
25235 (syms_of_image): Initialize and staticpro `Qcount'.
25236 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25237 * emacs.c (main): Don't call syms_of_abbrev.
25238 * Makefile.in (obj): Remove abbrev.o.
25239 (abbrev.o): Remove.
25240 * abbrev.c: Remove.
25241
252422007-10-26 Martin Rudalics <rudalics@gmx.at>
25243
25244 * window.c (window_min_size_2): Don't count header-line.
25245
252462007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25247
25248 * frame.h (struct frame): Move all bit fields after the first bit
25249 field to take advantage of the available space. Group all the
25250 chars together to reduce wasted space due to padding.
25251
252522007-10-26 Juanma Barranquero <lekktu@gmail.com>
25253
25254 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25255
25256 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25257 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25258 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25259 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25260 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25261 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25262 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25263 (last_marked, mark_object_loop_halt): Make static.
25264
25265 * frame.c (syms_of_frame) <delete-frame-functions>:
25266 Fix typo in docstring.
25267
252682007-10-25 Juanma Barranquero <lekktu@gmail.com>
25269
25270 * w32.c (init_environment): Fix tiny memory leak.
25271 (w32_get_resource): Remove unused variable `ok'.
25272
252732007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25274
25275 Make `window-system' into a keyboard-local variable (rather than
25276 frame-local as done originally by multi-tty).
25277
25278 * keyboard.h (struct kboard): Add Vwindow_system.
25279 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25280 (mark_kboards): Mark Vwindow_system.
25281
25282 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25283 (init_display): Don't set the obsolete `window-system' frame-param.
25284
25285 * xterm.c (x_term_init):
25286 * w32term.c (w32_create_terminal):
25287 * term.c (init_tty): Set Vwindow_system.
25288 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25289 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25290
25291 * xfns.c (Fx_create_frame, x_create_tip_frame):
25292 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25293 * macfns.c (Fx_create_frame):
25294 Don't set the obsolete `window-system' frame-param.
25295
25296 * frame.h (Qwindow_system): Remove.
25297 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25298 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25299
253002007-10-24 Richard Stallman <rms@gnu.org>
25301
25302 * frame.c (x_figure_window_size): For fullscreen case,
25303 set USPosition | PPosition without clobbering rest of window_prompting.
25304
25305 * keyboard.c (Fcurrent_idle_time): Doc fix.
25306
25307 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25308
253092007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25310
25311 * process.c (unwind_request_sigio): Only define if __ultrix__.
25312
25313 * callproc.c (child_setup): Remove spurious *.
25314
25315 * lisp.h (Fget_text_property): Declare.
25316 (have_menus_p): Declare it here rather than in sys-dep header files.
25317 * macterm.h (have_menus_p):
25318 * msdos.h (have_menus_p):
25319 * xterm.h (have_menus_p): Remove.
25320
25321 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25322 (Fmake_variable_frame_local): Just check the variable's const-ness
25323 rather than checking nil or t.
25324
253252007-10-22 Jason Rumney <jasonr@gnu.org>
25326
25327 * w32fns.c: Include math.h.
25328 (w32_abort): Declaration moved to nt/config.nt.
25329
25330 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25331 (abort): Redefinition moved to nt/config.nt.
25332
25333 * m/windowsnt.h: Remove.
25334
253352007-10-22 Juanma Barranquero <lekktu@gmail.com>
25336
25337 * emacs.c (Fdump_emacs): Fix typo in message.
25338 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25339 <installation-directory>: Reflow docstring.
25340
253412007-10-22 Juri Linkov <juri@jurta.org>
25342
25343 * minibuf.c: Allow minibuffer default to be a list of default values.
25344 With empty input use the first element of this list as returned default.
25345 (string_to_object)
25346 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25347 (read_minibuf): If defalt is cons, set histstring to its car.
25348 (Fread_string): If default_value is cons, set val to its car.
25349 (Fread_buffer): If def is cons, use its car.
25350 (Fcompleting_read): If defalt is cons, set val to its car.
25351
253522007-10-21 Michael Albinus <michael.albinus@gmx.de>
25353
25354 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25355
253562007-10-20 Juanma Barranquero <lekktu@gmail.com>
25357
25358 * doc.c (Fdocumentation): Check for advice in all cases.
25359
253602007-10-19 Chong Yidong <cyd@stupidchicken.com>
25361
25362 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25363
253642007-10-19 Richard Stallman <rms@gnu.org>
25365
25366 * doc.c (Fdocumentation): Check for and handle an advised function.
25367
253682007-10-19 Juanma Barranquero <lekktu@gmail.com>
25369
25370 * process.c (Fset_process_filter): Doc fix.
25371
253722007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25373
25374 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25375 which caused key-translation-map to applied repeatedly (thus breaking
25376 double-mode).
25377
253782007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25379
25380 * xselect.c (x_own_selection, x_handle_selection_clear)
25381 (x_clear_frame_selections):
25382 * w32menu.c (list_of_panes, list_of_items):
25383 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25384 * textprop.c (validate_plist, interval_has_all_properties)
25385 (interval_has_some_properties, interval_has_some_properties_list)
25386 (add_properties, text_property_list):
25387 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25388 * minibuf.c (Fassoc_string):
25389 * macselect.c (x_own_selection, x_clear_frame_selections)
25390 (Fx_disown_selection_internal):
25391 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25392 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25393
253942007-10-17 Chong Yidong <cyd@stupidchicken.com>
25395
25396 * process.c: Link to libs for calling res_init() if available.
25397 (Fmake_network_process): Call res_init() before getaddrinfo or
25398 gethostbyname, if possible.
25399
254002007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25401
25402 * lread.c (read1): Set pvectype for char_tables.
25403
25404 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25405 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25406 Add type checks.
25407 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25408
25409 * alloc.c (free_misc): Use XMISCTYPE.
25410 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25411
254122007-10-17 Glenn Morris <rgm@gnu.org>
25413
25414 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25415 (syms_of_minibuf): Add Qcompletion_ignore_case.
25416 * dired.c (Qcompletion_ignore_case): Change to external.
25417 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25418 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25419 (Fread_file_name): Use it rather than intern'ing.
25420
25421 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25422 (Fread_coding_system): Ignore case of user input.
25423
254242007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25425
25426 * xdisp.c (handle_display_prop): Ignore display specs after
25427 replacing one when string text is being replaced.
25428 (handle_single_display_spec): Pretend as if characters with display
25429 property haven't been consumed only when buffer text is being replaced.
25430
254312007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25432
25433 * xfns.c (Fx_create_frame, Fx_display_list):
25434 * window.c (window_fixed_size_p, enlarge_window)
25435 (shrink_window_lowest_first):
25436 * macterm.c (init_font_name_table):
25437 * macfns.c (Fx_create_frame, Fx_display_list):
25438 * lread.c (close_load_descs):
25439 * keyboard.c (read_char_x_menu_prompt):
25440 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25441 * coding.c (code_convert_region_unwind): Test the type of an object
25442 rather than just !NILP before extracting data from it.
25443
25444 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25445
25446 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25447 (XMISCANY): New macro.
25448 (XMISCTYPE): Use it.
25449 (struct Lisp_Misc_Any): New type.
25450 (union Lisp_Misc): Use it.
25451 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25452 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25453 (find_symbol_value, set_internal, default_value, Fset_default)
25454 (Fmake_variable_buffer_local, Fmake_local_variable)
25455 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25456 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25457 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25458 * alloc.c (allocate_buffer): Set the size and tag.
25459 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25460 Use XMISCANY.
25461 (die): Follow the GNU convention for error messages.
25462 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25463 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25464 tag any more.
25465 (set_buffer_internal_1):
25466 * frame.c (store_frame_param):
25467 * eval.c (specbind):
25468 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25469
25470 * doc.c (Fsnarf_documentation): Simplify.
25471
254722007-10-14 Juanma Barranquero <lekktu@gmail.com>
25473
25474 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25475 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25476
254772007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25478
25479 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25480
254812007-10-14 Juanma Barranquero <lekktu@gmail.com>
25482
25483 * eval.c (do_autoload): Don't save autoloads.
25484
25485 * data.c (Ffset): Save autoload of the function being set.
25486
254872007-10-07 John Paul Wallington <jpw@pobox.com>
25488
25489 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25490 parameter before setting up faces.
25491
254922007-10-13 Eli Zaretskii <eliz@gnu.org>
25493
25494 * ccl.c (Fregister_code_conversion_map):
25495 * keyboard.c (append_tool_bar_item): Reformat last change.
25496
25497 * lisp.h (eabs): Rename from `abs'. All callers changed.
25498
254992007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25500
25501 * buffer.c (add_overlay_mod_hooklist):
25502 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25503 * fontset.c (make_fontset):
25504 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25505 (append_tool_bar_item):
25506 * macmenu.c (grow_menu_items):
25507 * w32menu.c (grow_menu_items):
25508 * xmenu.c (grow_menu_items): Use larger_vector.
25509
255102007-10-13 Eli Zaretskii <eliz@gnu.org>
25511
25512 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25513 selected frame'' on MSDOS).
25514
255152007-10-12 Martin Rudalics <rudalics@gmx.at>
25516
25517 * frame.c (Qexplicit_name): New variable.
25518 (x_report_frame_params): Report it in parameter alist.
25519 (syms_of_frame): Intern and staticpro it.
25520
255212007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25522
25523 * macfns.c (x_create_tip_frame): Set terminal for frame.
25524
255252007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25526
25527 * frame.c (Qenvironment): Remove.
25528 (syms_of_frame) <Qenvironment>: Don't initialize.
25529 (Fdelete_frame): Don't treat the `environment' param specially.
25530 * frame.h (Qenvironment): Don't declare.
25531 * callproc.c (set_initial_environment): Don't set unused frame param.
25532
25533 * frame.c (Fframe_with_environment): Remove.
25534 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25535
25536 * lisp.h (Fframe_with_environment): Don't declare.
25537
255382007-10-10 Juanma Barranquero <lekktu@gmail.com>
25539
25540 * indent.c (indent_tabs_mode, last_known_column)
25541 (last_known_column_modified): Make static.
25542 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25543
255442007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25545
25546 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25547
255482007-10-09 Jason Rumney <jasonr@gnu.org>
25549
25550 * w32term.c (x_set_window_size): Disable code that attempts to tell
25551 Lisp code about a size change before it actually happens.
25552
255532007-10-09 Richard Stallman <rms@gnu.org>
25554
25555 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25556 return HANDLED_RETURN.
25557
255582007-10-08 Martin Rudalics <rudalics@gmx.at>
25559
25560 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25561 when there's an unread command event.
25562
25563 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25564 window autoselection act appropriately when leaving selected frame.
25565 (syms_of_frame): Initialize focus_follows_mouse.
25566 * frame.h (focus_follows_mouse): Extern it.
25567 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25568 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25569 * msdos.c (dos_rawgetc): Likewise.
25570 * w32term.c (w32_read_socket): Likewise.
25571 * xterm.c (handle_one_xevent): Likewise.
25572 * xdisp.c (syms_of_xdisp): In doc-string of
25573 mouse-autoselect-window mention focus-follows-mouse.
25574
255752007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25576
25577 * macterm.c (mac_load_query_font): Fix missing return value.
25578 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25579 Add BLOCK_INPUT.
25580
255812007-10-08 Richard Stallman <rms@gnu.org>
25582
25583 * xdisp.c (get_window_cursor_type): Implement documented behavior
25584 for cursor-in-non-selected-windows = t.
25585
255862007-10-08 Jason Rumney <jasonr@gnu.org>
25587
25588 * w32.c (w32_get_resource): Always close registry keys.
25589
255902007-10-08 Jason Rumney <jasonr@gnu.org>
25591
25592 * makefile.w32-in (LIBS): Add COMCTL32.
25593
25594 * w32fns.c (globals_of_w32fns): Init common controls.
25595
255962007-10-08 Richard Stallman <rms@gnu.org>
25597
25598 * image.c (our_memory_buffer): Rename from omfib_buffer.
25599
256002007-10-08 Richard Stallman <rms@gnu.org>
25601
25602 * buffer.c (Foverlays_at): Doc fix.
25603
256042007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25605
25606 * fns.c (Fplist_put): Preserve uneven tail data.
25607
256082007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25609
25610 * termhooks.h (enum event_kind): Remove trailing comma.
25611
25612 * frame.h (enum): Remove trailing comma.
25613
256142007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25615
25616 * w32proc.c (delete_child): Don't terminate threads of zombies.
25617
256182007-10-08 Martin Rudalics <rudalics@gmx.at>
25619
25620 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25621
25622 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25623 last-repeatable-command.
25624 (init_kboard): Initialize Vlast_repeatable_command.
25625 (command_loop_1): Set it to real_this_command unless that was
25626 bound to an input event.
25627 (mark_kboards): Mark it.
25628
256292007-10-08 Richard Stallman <rms@gnu.org>
25630
25631 * eval.c (condition-case): Doc fix.
25632
256332007-10-08 Masatake YAMATO <jet@gyve.org>
25634
25635 * xfaces.c (tty_supports_face_attributes_p): Fix code
25636 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25637 was copied and not edited.
25638
256392007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25640
25641 Add new `input-decode-map' keymap and use it for terminal
25642 escape sequences.
25643 * keyboard.h (struct kboard): Add Vinput_decode_map.
25644 Remove Vlocal_key_translation_map.
25645 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25646 (init_kboard): Init input-decode-map.
25647 Replace local-key-translation-map back with key-translation-map.
25648 (syms_of_keyboard): Declare input-decode-map.
25649 Remove local-key-translation-map. Update docstrings.
25650 (mark_kboards): Mark Vinput_decode_map.
25651 Don't mark Vlocal_key_translation_map.
25652 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25653 Replace local-key-translation-map back with key-translation-map.
25654 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25655 Bind in input-decode-map rather than function-key-map.
25656
25657 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25658 This was made redundant by the previous introduction of XSETPVECTYPE.
25659
256602007-10-09 Richard Stallman <rms@gnu.org>
25661
25662 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25663
256642007-09-29 Richard Stallman <rms@gnu.org>
25665
25666 * eval.c (internal_condition_case_2, internal_condition_case_1)
25667 (internal_condition_case): Reenable abort if x_catching_errors ()
25668 to see if that really happens and why.
25669
256702007-10-06 Andreas Schwab <schwab@suse.de>
25671
25672 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25673
256742007-10-04 Juanma Barranquero <lekktu@gmail.com>
25675
25676 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25677
256782007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25679
25680 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25681
256822007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25683
25684 * window.h (struct window):
25685 * window.c (struct save_window_data, struct saved_window):
25686 * termhooks.h (struct terminal):
25687 * process.h (struct Lisp_Process):
25688 * frame.h (struct frame):
25689 * buffer.h (struct buffer):
25690 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25691 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25692 The size field of (pseudo)vectors is now unsigned.
25693 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25694
25695 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25696 Turn `count' into an integer.
25697
25698 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25699 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25700 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25701 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25702 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25703
25704 * alloc.c (allocate_pseudovector): New fun.
25705 (ALLOCATE_PSEUDOVECTOR): New macro.
25706 (allocate_window, allocate_terminal, allocate_frame)
25707 (allocate_process): Use it.
25708 (mark_vectorlike): New function.
25709 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25710 (mark_terminals): Use it.
25711 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25712 (Fmake_byte_code): Use XSETPVECTYPE.
25713
25714 * frame.c (Fframe_parameters): Minor simplification.
25715
25716 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25717
25718 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25719
25720 * buffer.c (Fget_buffer_create, init_buffer_once):
25721 * lread.c (defsubr):
25722 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25723
25724 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25725 defined differently in the m/*.h files.
25726 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25727 (XSETPVECTYPE): New macro.
25728 (XSETPSEUDOVECTOR): Use it.
25729
25730 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25731 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25732
25733 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25734 * lread.c (defvar_per_buffer):
25735 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25736
25737 * window.c (candidate_window_p): Only consider as visible frames that
25738 are on the same terminal.
25739
25740 * m/ibms390x.h (MARKBIT): Remove unused macro.
25741
257422007-10-01 Juanma Barranquero <lekktu@gmail.com>
25743
25744 * lread.c (Fload): Fix typo in docstring.
25745
257462007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25747
25748 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25749 of a non-zero value can't yield zero.
25750
257512007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25752
25753 * term.c (term_clear_mouse_face, term_mouse_highlight)
25754 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25755
25756 * print.c (safe_debug_print): Use XHASH.
25757
25758 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25759 Lisp elements such as tags.
25760 (XHASH): New macro.
25761 (EQ): Use it.
25762 (SREF, SSET, STRING_COPYIN): Use SDATA.
25763 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25764
25765 * alloc.c (mark_terminal): Remove left-over declaration.
25766 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25767 (allocate_vectorlike): Remove type argument. Adjust callers.
25768 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25769 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25770
25771 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25772 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25773 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25774 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25775 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25776 Use them.
25777
25778 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25779 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25780 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25781
257822007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25783
25784 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25785 loaded by default.
25786
257872007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25788
25789 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25790 on this tty.
25791 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25792
25793 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25794 Update all users.
25795 (handle_one_term_event): Use Gpm_DrawPointer.
25796 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25797 Signal errors instead of returning nil. Always return nil.
25798 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25799 Make it a noop if gpm-mouse was not activated.
25800 (syms_of_term): Update names.
25801
258022007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25803
25804 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25805 (init_sys_modes): Check that gpm_tty is the current tty.
25806
25807 * alloc.c (allocate_terminal): Set the vector size to only count the
25808 lisp fields. Initialize those to nil.
25809 (mark_object): Don't treat terminals specially.
25810 (mark_terminal): Remove.
25811 (mark_terminals): Use mark_object instead.
25812
25813 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25814 the GC to the beginning.
25815
25816 * indent.h:
25817 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25818
25819 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25820
258212007-09-25 Jason Rumney <jasonr@gnu.org>
25822
25823 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25824
25825 * w32console.c (create_w32cons_output): Remove.
25826
25827 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25828
25829 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25830 (reset_sys_modes): Use reset_terminal_modes_hook.
25831
258322007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25833
25834 * eval.c (do_autoload): Don't output any message.
25835
258362007-09-24 Juri Linkov <juri@jurta.org>
25837
25838 * emacs.c (standard_args): Change priority of "--no-splash"
25839 from 40 to 3. Add "--no-desktop" with the same priority.
25840
258412007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25842
25843 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25844 and optimize the case where they are all 1.
25845
258462007-09-23 Johannes Weiner <hannes@saeurebad.de>
25847
25848 * lisp.h (abs): Define if not defined.
25849 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25850 Don't define `abs', since it's defined in lisp.h.
25851
258522007-09-22 Eli Zaretskii <eliz@gnu.org>
25853
25854 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25855 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25856 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25857 (init_tty): Use DEV_TTY instead of "/dev/tty".
25858 [WINDOWSNT]: No need to protect from NAME arg being null.
25859
258602007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25861
25862 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25863 up the tty state.
25864
258652007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25866
25867 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25868 (gpm_tty): Change its type.
25869 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25870 (gpm_tty): Change its type and initialize it.
25871 (Fterm_open_connection): Check the frame is indeed a tty.
25872 Use the new gpm_tty.
25873 (Fterm_close_connection): Use the new gpm_tty.
25874 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25875 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25876
258772007-09-21 Juanma Barranquero <lekktu@gmail.com>
25878
25879 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25880 underline_color, to draw strike-through.
25881
258822007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25883
25884 * lisp.h (allocate_terminal): Declare.
25885
25886 * window.c (candidate_window_p): Consider frames that are being placed
25887 by the user as somewhere between visible and iconified.
25888 (window_loop): Prefer windows on the current frame.
25889 (Fselect_window): Move the use of select-frame to the beginning so we
25890 can just delegate all the work (it'll call us back anyway).
25891
25892 * frame.c (Qdisplay_environment_variable):
25893 * frame.h (Qdisplay_environment_variable): Delete.
25894
25895 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25896 of the first arg, since that value may be a union.
25897
25898 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25899 parameter rather than Qdisplay_environment_variable. If all else
25900 fails, look for DISPLAY in initial-environment.
25901
259022007-09-21 Glenn Morris <rgm@gnu.org>
25903
25904 * Makefile.in (emacstool): Remove target.
25905 (lisp, shortlisp): Remove termdev.elc.
25906
259072007-09-21 Markus Triska <markus.triska@gmx.at>
25908
25909 * xterm.c (x_delete_display): Compile session management conditionally.
25910
259112007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25912
25913 * callproc.c (getenv_internal_1): New function.
25914 (getenv_internal): Use it.
25915 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25916
25917 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25918 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25919 (Fset_terminal_parameter): Work with dead terminals as well.
25920 (Fmodify_terminal_parameters): Remove.
25921
25922 * terminal.c (get_terminal): Handle terminals.
25923 Make sure the terminal returned is live.
25924 (create_terminal): Use allocate_terminal.
25925 (mark_terminals): Move to alloc.c.
25926 (delete_terminal): Use terminal->name as liveness status.
25927 NULL out fields after freeing their contents.
25928 Don't deallocate the object.
25929 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25930 rather than an int.
25931 (Fterminal_live_p): Accept non-integer arguments.
25932 (Fterminal_list): Return terminal objects rather than an ints.
25933
25934 * alloc.c (enum mem_type): New member for `terminal' objects.
25935 (allocate_terminal): New function.
25936 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25937 Handle terminals.
25938 (mark_terminal): New fun.
25939 (mark_terminals): Move from terminal.c.
25940
25941 * term.c (get_tty_terminal): Don't treat output_initial specially.
25942 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25943 (delete_tty): Use terminal->name as liveness status.
25944
25945 * termhooks.h (struct terminal): Make it into a pseudovector.
25946 Remove `deleted' replaced by checking `name's nullness.
25947
25948 * print.c (print_object): Handle terminals.
25949
25950 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25951 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25952
25953 * frame.c (make_terminal_frame):
25954 * keyboard.c (tty_read_avail_input):
25955 * w32term.c (x_delete_terminal):
25956 * xfns.c (Fx_create_frame, x_create_tip_frame):
25957 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25958
259592007-09-20 Glenn Morris <rgm@gnu.org>
25960
25961 * process.c (Fmake_network_process): Doc fix.
25962
259632007-09-19 Jason Rumney <jasonr@gnu.org>
25964
25965 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25966
259672007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25968
25969 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25970 Fix a C warning regarding variable constness.
25971
25972 * xterm.c (handle_one_xevent): Fix a C warning.
25973
259742007-09-18 Jason Rumney <jasonr@gnu.org>
25975
25976 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25977
259782007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25979
25980 * gtkutil.c (gdpy_def): New variable.
25981 (xg_initialize): Initialize gdpy_def.
25982 (xg_display_close): If no other display exists, set gdpy_def to a
25983 new connection.
25984
259852007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25986
25987 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25988 when we have no file name for the icon.
25989 (xg_tool_bar_expose_callback): Remove.
25990 (xg_create_tool_bar): Don't connect expose signal to
25991 xg_tool_bar_expose_callback.
25992 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25993
259942007-09-16 Andreas Schwab <schwab@suse.de>
25995
25996 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25997 values instead of zapping them.
25998
259992007-09-14 Glenn Morris <rgm@gnu.org>
26000
26001 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26002 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26003 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26004 scope and rename to omfib_buffer for clarity.
26005 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26006
260072007-09-14 Kenichi Handa <handa@m17n.org>
26008
26009 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26010
260112007-09-13 Jason Rumney <jasonr@gnu.org>
26012
26013 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26014
26015 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26016
26017 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26018 (mac_term_init): Call here instead, passing rif.
26019
260202007-09-13 Glenn Morris <rgm@gnu.org>
26021
26022 * s/hpux.h: No longer define `static' as nothing.
26023
260242007-09-13 Johan Bockgård <bojohan@gnu.org>
26025
26026 * callint.c (Fcall_interactively): Remove unused var `fun'.
26027
260282007-09-12 Romain Francoise <romain@orebokech.com>
26029
26030 * window.c (prefer_window_split_horizontally, display_buffer):
26031 Revert 2007-09-08 change.
26032
260332007-09-12 Glenn Morris <rgm@gnu.org>
26034
26035 * alloca.c: Remove file.
26036 * Makefile.in (alloca): Do not undef.
26037 (allocaobj, alloca.o): Remove.
26038 (otherobj): Remove allocaobj.
26039 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26040 * regex.c (C_ALLOCA): Remove all references and code that was only
26041 used when this was defined.
26042 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26043 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26044 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26045
26046 * Makefile.in (SOURCES, unlock, relock): Delete.
26047
26048 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26049 (menu_grab_callback): All uses changed.
26050
26051 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26052 (x_reply_selection_request): All uses changed.
26053
260542007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26055
26056 * lread.c (load_warn_old_style_backquotes): Change message to look
26057 better when it appears in the middle of byte-compiler messages.
26058
260592007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26060
26061 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26062
26063 * xterm.c (x_create_terminal): Add comment.
26064
26065 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26066
260672007-09-10 Richard Stallman <rms@gnu.org>
26068
26069 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26070
260712007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26072
26073 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26074 (DEFUN): Document `intspec', use it instead of `prompt'.
26075
26076 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26077
26078 * data.c (Finteractive_form): If the interactive specification starts
26079 with a `(', use it as a Lisp form.
26080
26081 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26082 name and file modes.
26083
26084 * callint.c (Fcall_interactively): Comment fixes.
26085
260862007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26087
26088 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26089 and compiled functions.
26090
260912007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26092
26093 * window.c (prefer_window_split_horizontally): New variable.
26094 (display_buffer): Consider splitting window horizontally depending
26095 on prefer_window_split_horizontally.
26096
260972007-09-08 Eli Zaretskii <eliz@gnu.org>
26098
26099 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26100
261012007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26102
26103 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26104
26105 * frame.c (x_set_frame_parameters): Check number is positive before
26106 using XFASTINT.
26107
26108 * window.c (freeze_window_start): Don't presume selected_window holds
26109 a window object.
26110 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26111
261122007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26113
26114 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26115
261162007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26117
26118 * window.c (Vsplit_window_preferred_function): New var.
26119 (Fdisplay_buffer): Use it.
26120 (syms_of_window): Export, and initialize it.
26121
261222007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26123
26124 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26125
261262007-09-06 Glenn Morris <rgm@gnu.org>
26127
26128 * gtkutil.c (menu_grab_callback) <cnt>:
26129 * xselect.c (x_reply_selection_request) <cnt>: Move static
26130 variable to file scope.
26131
261322007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26133
26134 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26135 consistent values of selected_frame and selected_window.
26136
261372007-09-04 Jason Rumney <jasonr@gnu.org>
26138
26139 * w32console.c (initialize_w32_display): Zero unused hooks.
26140
261412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26142
26143 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26144 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26145
261462007-09-04 Jason Rumney <jasonr@gnu.org>
26147
26148 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26149 in w32console.c. Set up input. Remove XXX comments that have been
26150 confirmed as correct.
26151
26152 * s/ms-w32.h (MULTI_KBOARD): Define.
26153
26154 * w32console.c (one_and_only_w32cons): Remove.
26155 (initialize_w32_display): Take terminal argument.
26156
26157 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26158 initialize_w32_display.
26159 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26160
26161 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26162
26163 * keyboard.c (discard_mouse_events): Discard it.
26164 (make_lispy_event): Translate it to a lisp event.
26165 (lispy_wheel_names): Add wheel-left and right events.
26166 (syms_of_keyboard): Enlarge wheel_syms.
26167
26168 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26169 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26170
26171 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26172
26173 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26174 from WM_MOUSEHWHEEL.
26175 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26176
26177 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26178 terminal.
26179
26180 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26181 keyboard for the terminal.
26182
261832007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26184
26185 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26186 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26187 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26188 and resume-tty-function to resume-tty-hook.
26189 (Fsuspend_tty, Fresume_tty): Use new names.
26190
261912007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26192
26193 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26194 if it starts with "n:".
26195
261962007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26197
26198 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26199
262002007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26201
26202 * frame.h:
26203 * frame.c (Qterm_environment_variable): Remove.
26204 (syms_of_frame): Don't init and staticpro it.
26205
26206 * callproc.c (getenv_internal): Remove special case for $TERM.
26207
26208 * callproc.c (Vinitial_environment): New variable.
26209 (set_initial_environment): Initialize it.
26210 (syms_of_callproc): Declare it.
26211 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26212 TERM under which a process runs is never related to the TERM in which
26213 Emacs is running.
26214
262152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26216
26217 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26218 * s/darwin.h: ... do it here.
26219
262202007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26221
26222 * lisp.h (set_initial_environment): Rename from set_global_environment.
26223
26224 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26225 removed by mistake on the multi-tty branch.
26226
26227 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26228 (Fmodify_frame_parameters): Return a value.
26229
26230 * image.c (png_load): Comment-out var only used in commented-out code.
26231
26232 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26233 before passing it to mark_object.
26234
26235 * xfaces.c (internal_resolve_face_name): Return a value.
26236 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26237
26238 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26239 (x_icon): Comment-out var only used in commented-out code.
26240
262412007-08-29 Romain Francoise <romain@orebokech.com>
26242
26243 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26244 QUIT hasn't been provided.
26245
262462007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26247
26248 * callproc.c (child_setup, getenv_internal): Use the
26249 display-environment-variable and term-environment-variable frame params.
26250 (set_initial_environment): Initialise Vprocess_environment.
26251
26252 * config.in: Disable multi-keyboard support on a mac.
26253
26254 * frame.c (Qterm_environment_variable)
26255 (Qdisplay_environment_variable): New variables.
26256 (syms_of_frame): Intern and staticpro them.
26257 (Fmake_terminal_frame): Disable output method test.
26258
26259 * frame.h: Declare them here.
26260
26261 * macfns.c (x_set_mouse_color): Get rif from the frame.
26262 (x_set_tool_bar_lines): Don't use updating_frame.
26263 (mac_window): Add 2 new parameters for consistency with other systems.
26264 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26265 frame parameters following what is done in X11 and w32. Don't use
26266 FRAME_MAC_DISPLAY_INFO.
26267 (Fx_open_connection, start_hourglass): Remove window-system check.
26268 (x_create_tip_frame): Get the keyboard from the terminal.
26269
26270 * macmenu.c: Reorder includes.
26271 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26272
26273 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26274 terminal parameter.
26275 (x_clear_frame): Add a frame parameter.
26276 (note_mouse_movement): Get rif from the frame.
26277 (mac_term_init): Initialize the terminal.
26278 (mac_initialize): Make static and move terminal initialization ...
26279 (mac_create_terminal): ... to this new function.
26280
26281 * macterm.h (struct mac_display_info): Add terminal.
26282 (mac_initialize): Delete declaration.
26283
26284 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26285
26286 * sysdep.c: Comment out text after #endif.
26287
26288 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26289 is defined. Better initialize ttys in windows. Use terminal
26290 specific mouse_position_hook.
26291
26292 * termhooks.h (union display_info): Add mac_display_info.
26293
26294 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26295 Set the default minibuffer frame, window_system and the rest of the
26296 frame parameters following what is done in X11.
26297
26298 * w32term.c (w32_initialize): Make static.
26299
26300 * xselect.c (x_handle_selection_clear): Only access
26301 terminal->kboard when MULTI_KBOARD is defined.
26302
26303 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26304 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26305
263062007-08-29 Jason Rumney <jasonr@gnu.org>
26307
26308 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26309 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26310
26311 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26312 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26313
26314 * keyboard.c (restore_kboard_configuration): Only define when
26315 MULTI_KBOARD defined.
26316
26317 * makefile.w32-in: Update dependancies from Makefile.in.
26318 (OBJ1): Add terminal.$(O)
26319
26320 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26321 Don't define function body.
26322 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26323
26324 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26325
26326 * w32.c (request_sigio, unrequest_sigio): Remove.
26327
26328 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26329 (w32con_clear_frame, w32con_clear_end_of_line)
26330 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26331 (w32con_delete_glyphs, w32con_set_terminal_window)
26332 (scroll_line, w32_sys_ring_bell): Add frame arg.
26333 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26334 Add terminal arg.
26335 (PICK_FRAME): Remove.
26336 (w32con_write_glyphs): Use frame specific terminal coding.
26337 (one_and_only_w32cons): New global variable.
26338 (initialize_w32_display): Use it for storing hooks.
26339 (create_w32cons_output): New function.
26340
26341 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26342 arg a frame.
26343
26344 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26345 Set window_system.
26346 (x_set_tool_bar_lines): Don't use updating_frame.
26347 (Fx_create_frame): Set terminal and ref count.
26348 (Fx_open_connection): Remove window-system check.
26349
26350 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26351
26352 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26353 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26354 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26355 Add frame arg.
26356 (x_delete_terminal, w32_create_terminal): New functions.
26357 (w32_term_init): Create a terminal.
26358 (w32_initialize): Move terminal specific initialization to
26359 w32_create_terminal.
26360
26361 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26362 (w32_clear_rect, w32_clear_area): Use background from frame.
26363 (w32_display_info): Add terminal.
26364 (w32_sys_ring_bell, x_delete_display): Declare here.
26365
26366 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26367
26368 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26369
263702007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26371
26372 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26373 Fix get_named_tty calls for the controlling tty.
26374
263752007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26376
194d44e7 26377 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26378
263792007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26380
26381 * term.c (tty_insert_glyphs): Add missing first parameter.
26382
263832007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26384
26385 * buffer.c (Fbuffer_list, Fbury_buffer):
26386 Take frame->buried_buffer_list into account.
26387
26388 * cm.c (current_tty): New variable, for cmputc().
26389 (cmputc): Use it.
26390 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26391 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26392 (cmgoto): Add tty parameter. Pass it on to calccost().
26393 Use emacs_tputs() instead of tputs().
26394
26395 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26396 tputs().
26397 (current_tty): New variable, for cmputc().
26398 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26399
26400 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26401 (internal_condition_case, internal_condition_case_1)
26402 (internal_condition_case_2): Don't abort when x_catching_errors.
26403
26404 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26405 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26406 prevent crashes caused by bogus longjmps in read_char.
26407
26408 * keymap.h (Fset_keymap_parent): Add EXFUN.
26409
26410 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26411 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26412 Remove redundant definition.
26413
26414 * macfns.c (x_set_mouse_color, x_make_gc):
26415 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26416
26417 * w32term.c (x_free_frame_resources):
26418 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26419 (w32_initialize): Use the accessor macros for terminal characteristics.
26420
26421 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26422 Use the accessor macros for terminal characteristics.
26423 * msdos.c (internal_terminal_init): Use the accessor macros for
26424 terminal characteristics.
26425 (ScreenVisualBell, internal_terminal_init):
26426 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26427
26428 * termopts.h (no_redraw_on_reenter): Declare.
26429
26430 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26431 (mark_terminals, mark_ttys): Declare.
26432 (Fgarbage_collect): Call them.
26433 (mark_object): Mark buried_buffer_list.
26434
26435 * prefix-args.c: Include stdlib.h for exit.
26436
26437 * syssignal.h: Add comment.
26438
26439 * indent.c: Include stdio.h.
26440
26441 * window.h (Vinitial_window_system): Declare.
26442 (Vwindow_system): Delete declaration.
26443
26444 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26445
26446 * image.c (lookup_image): Don't initialize `c' until the xasserts
26447 have been run.
26448
26449 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26450 FRAME_FOREGROUND_PIXEL.
26451
26452 * print.c (print_preprocess): Don't lose print_depth levels while
26453 iterating.
26454
26455 * widget.c (update_from_various_frame_slots):
26456 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26457
26458 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26459 frames.
26460 (window_internal_height): Remove bogus make_number call.
26461 (init_window_once): Call make_terminal_frame with two zero parameters.
26462
26463 * fileio.c (Fread_file_name): Update comment.
26464
26465 * callint.c (Fcall_interactively):
26466 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26467 Make sure it is correctly unwound.
26468
26469 * xsmfns.c (x_session_close): New function.
26470
26471 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26472 Delete declarations.
26473
26474 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26475 (x_output): Remove background_pixel and foreground_pixel fields.
26476 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26477 (x_delete_device, x_session_close): Declare.
26478
26479 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26480 (read_filtered_event): Call `read_char' with a local
26481 `wrong_kboard_jmpbuf'.
26482
26483 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26484 Don't call single_kboard_state. Use FRAME_RIF.
26485
26486 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26487 systems.
26488
26489 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26490 (Fframe_with_environment, Fset_input_meta_mode)
26491 (Fset_quit_char): EXFUN.
26492 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26493 (init_sys_modes, reset_sys_modes): Update prototypes.
26494 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26495
26496 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26497 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26498 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26499 Delete declarations.
26500 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26501 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26502 New declarations.
26503
26504 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26505 already does that during init_display(). Call syms_of_keymap
26506 before syms_of_keyboard. Call `syms_of_terminal'.
26507 Call set_initial_environment, not set_process_environment.
26508 (shut_down_emacs): Call reset_all_sys_modes() instead of
26509 reset_sys_modes().
26510
26511 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26512 (internal_resolve_face_name, resolve_face_name_error): New functions.
26513 (resolve_face_name): Protect against loops and errors thrown by Fget.
26514 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26515 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26516
26517 * scroll.c: Replace CURTTY() with local variables throughout the
26518 file (where applicable).
26519 (calculate_scrolling, calculate_direct_scrolling)
26520 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26521 characteristics.
26522
26523 * keymap.c (Vfunction_key_map): Remove.
26524 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26525 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26526 (Vkey_translation_map): Remove.
26527 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26528 (Fdescribe_buffer_bindings)
26529 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26530 Update for terminal-local key-translation-map.
26531
26532 * Makefile.in (callproc.o): Update dependencies.
26533 (lisp, shortlisp): Add termdev.elc.
26534 (obj): Add terminal.o.
26535 (terminal.o): Add dependencies.
26536 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26537 (data.o, fns.o): Add termhooks.h dependency.
26538 (SOME_MACHINE_LISP): Add dnd.elc.
26539 (minibuf.o): Fix typo.
26540 Update dependencies.
26541
26542 * data.c (do_symval_forwarding, store_symval_forwarding)
26543 (find_symbol_value): Use the selected frame's keyboard, not
26544 current_kboard.
26545
26546 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26547 Vwindow_system.
26548
26549 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26550 Fmenu_bar_open.
26551 (syms_of_xmenu): Update defsubr.
26552 (mouse_position_for_popup, Fx_popup_menu)
26553 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26554 (set_frame_menubar, free_frame_menubar)
b97439ce 26555 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26556 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26557 an X frame.
26558
26559 * xselect.c (x_own_selection): Abort if not an X frame.
26560 (some_frame_on_display): Check if it is an X frame.
26561 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26562
26563 * coding.c: Include frame.h and termhooks.h.
26564 (terminal_coding, keyboard_coding): Delete.
26565 (Fset_terminal_coding_system_internal)
26566 (Fset_keyboard_coding_system_internal)
26567 (Fkeyboard_coding_system)
26568 (Fterminal_coding_system): Add a terminal parameter.
26569 Get terminal_coding from the terminal.
26570 (init_coding_once): Don't call setup_coding_system here.
26571
26572 * dispextern.h (set_scroll_region, turn_off_insert)
26573 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26574 (tty_clear_end_of_line, tty_setup_colors)
26575 (delete_tty, updating_frame)
26576 (produce_special_glyphs, produce_glyphs, write_glyphs)
26577 (insert_glyphs): Remove.
26578 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26579 (tty_turn_off_highlight, get_tty_size): Add declaration.
26580 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26581
26582 * frame.h (enum output_method): Add output_initial.
26583 (struct x_output): Delete.
26584 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26585 Access foreground_pixel and background_pixel directly from the frame.
26586 (tty_display): Delete.
26587 (struct frame): Add buried_buffer_list, foreground_pixel,
26588 background_pixel and terminal. Delete kboard.
26589 (union output_data): Add tty.
26590 (FRAME_KBOARD): Get the kboard from the terminal.
26591 (FRAME_INITIAL_P): New macro.
26592 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26593 (Qterm_environment_variable, Qdisplay_environment_variable)
26594 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26595 New declarations.
26596
26597 * termchar.h (tty_output, tty_display_info): New structures.
26598 (tty_list): Declare.
26599 (FRAME_TTY, CURTTY): New macros.
26600 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26601 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26602 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26603 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26604
26605 * callproc.c: Include frame.h and termhooks.h, for terminal
26606 parameters.
26607 (add_env): New function.
26608 (child_setup): Use it.
26609 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26610 (getenv_internal): Fix get_terminal_param call.
26611 (Fgetenv_internal, egetenv): Update doc.
26612 (syms_of_callproc): Initialize Vprocess_environment to nil.
26613 Register and initialize them. Remove obsolete defvars. Update doc
26614 strings.
26615 (child_setup): Handle Vlocal_environment_variables.
26616 (getenv_internal): Add terminal parameter.
26617 Handle Vlocal_environment_variables.
26618 (Fgetenv_internal): Add terminal parameter.
26619 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26620 environment in a frame (not terminal) parameter. Update doc strings.
26621 (set_initial_environment): Rename from set_global_environment.
26622 Store Emacs environment in initial frame parameter.
26623
26624 * xdisp.c (redisplay_internal): Update references to
26625 `previous_terminal_frame'.
26626 (display_mode_line, Fformat_mode_line): Replace calls to
26627 `push_frame_kboard' with `push_kboard'.
26628 (get_glyph_string_clip_rects): Add extra parentheses and
26629 braces to prevent compiler warnings.
26630 (calc_pixel_width_or_height): Add xassert to check that the
26631 frame is alive. Don't call `lookup_image' on a termcap frame.
26632 (message2_nolog, message3_nolog, redisplay_internal)
26633 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26634 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26635 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26636 (Fx_display_pixel_width, Fx_display_pixel_height)
26637 (Fx_display_planes, Fx_display_color_cells)
26638 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26639 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26640 (Fx_display_backing_store, Fx_display_visual_class)
26641 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26642 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26643
26644 * xfns.c (x_set_foreground_color x_set_background_color)
26645 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26646 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26647 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26648 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26649 terminal that is being deleted.
26650 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26651 frame parameter, and make sure it overrides any user-supplied setting.
26652 (Fx_close_connection, Fx_synchronize): Unify argument names with
26653 the rest of the DEFUNs.
26654
26655 * dispnew.c (Fsend_string_to_terminal): Update call to
26656 `get_tty_terminal'.
26657 (Fredraw_frame, Fsend_string_to_terminal)
26658 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26659 FRAME_TERMCAP_P and FRAME_TTY.
26660 (window_change_signal): Don't believe width/height values that are
26661 impossibly small.
26662 (Vinitial_window_system): Rename from Vwindow_system.
26663 (termscript, Wcm, rif): Delete.
26664
26665 * termhooks.h (struct terminal): New struct containing the
26666 previously global text display hooks and new members NAME,
26667 DELETED and PARAM_ALIST.
26668 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26669 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26670 (FRAME_RIF): New macros.
26671 (get_terminal_param, get_device): New declarations.
26672 (termscript): Delete declaration.
26673
26674 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26675 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26676 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26677 FRAME_FOREGROUND_PIXEL.
26678 (x_fully_uncatch_errors): Disable definition.
26679 (x_scroll_bar_expose): Fix reference to foreground pixel.
26680 (XTread_socket): Disable loop on all X displays.
26681 (x_delete_terminal): Don't set terminal->deleted and let
26682 delete_terminal delete the frames on the terminal.
26683 (x_delete_display): Doc update to reflect changes in
26684 delete_terminal.
26685 (x_display_info) <terminal>: Move member earlier in the struct.
26686 (deleting_tty): Remove old variable.
26687 (Fsuspend_tty): Call clear_tty_hooks.
26688 (Fresume_tty, init_tty): Call set_tty_hooks.
26689 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26690 errors on X frames.
26691 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26692 (handle_one_xevent): Initialize `f' to NULL.
26693 (x_delete_terminal, x_create_terminal): New functions.
26694 (XTset_terminal_modes, XTreset_terminal_modes)
26695 (XTread_socket, x_connection_closed, x_term_init)
26696 (x_term_init, x_delete_display): Add terminal parameter.
26697 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26698 X connections.
26699
26700 * frame.c: Include termchar.h.
26701 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26702 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26703 (Qdisplay_environment_variable): New vars.
26704 (Fframep): Deal with output_initial.
26705 (Fframe-live-p): Doc fix.
26706 (Fwindow-system): New function.
26707 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26708 (make_terminal_frame): Don't create frames on a terminal that is
26709 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26710 (store_frame_param): Check for found_for_frame before calling XFRAME.
26711 (Fmake_terminal_frame): Handle NULL tty names correctly.
26712 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26713 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26714 frames to refer to a deleted frame in their 'environment parameter.
26715 (Fframe_with_environment): New function.
26716 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26717 (get_future_frame_param): New function.
26718 (Fmake_terminal_frame): Use it.
26719 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26720
26721 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26722 * sysdep.c (reset_sys_modes): Update for renames.
26723
26724 * keyboard.c (tty_read_avail_input): New function.
26725 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26726 (syms_of_keyboard): Defsubr them.
26727 (Fset_input_meta_mode, Fset_quit_char): New functions.
26728 (Fset_input_mode): Split to above functions.
26729 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26730 parameter. Use it in call to `read_char'.
26731 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26732 Set wrong_kboard_jmpbuf correctly in recursive calls.
26733 Use current_kboard to access Vkeyboard_translate_table.
26734 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26735 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26736 Update longjmp invocations. Remember the original current_kboard,
26737 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26738 changes it. Comment out unnecessary calls to
26739 `record_single_kboard_state' and `any_kboard_state'.
26740 Update recursive calls.
26741 (wrong_kboard_jmpbuf): Remove global variable.
26742 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26743 Handle deleted interrupted_kboards correctly; that is a legal
26744 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26745 and read_char calls. Abort if interrupted_kboard died in read_char.
26746 (any_kboard_state, single_kboard_state)
26747 (push_frame_kboard): Remove function.
26748 (pop_kboard): Switch out of single_kboard mode if the kboard has
26749 been deleted. Remove unused variable. Help debugging by not
26750 changing current_kboard unnecessarily. Set current_kboard to the
26751 kboard of the selected frame when the stored kboard object has
26752 been deleted before pop_kboard.
26753 (temporarily_switch_to_single_kboard): Change first parameter to a
26754 frame pointer. Throw an error when caller wants to change kboards
26755 while in single_kboard mode. Don't push_kboard if we weren't in
26756 single kboard state. Don't pop_kboard if we popped into any
26757 kboard state.
26758 (restore_kboard_configuration): Abort if pop_kboard changed the
26759 kboard in single_kboard mode. Call pop_kboard only after setting
26760 up single_kboard mode.
26761 (Frecursive_edit): Switch to single_kboard mode only in nested
26762 command loops.
26763 (cmd_error, command_loop, command_loop_1, timer_check):
26764 Comment out unnecessary call to `any_kboard_state' and
26765 `record_single_kboard_state'.
26766 (delete_kboard): Exit single_kboard mode if we have just deleted
26767 that kboard. Use FRAME_KBOARD.
26768 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26769 `fatal_error_signal'.
26770 (record_single_kboard_state): Don't push_kboard if we weren't in
26771 single kboard state. Don't pop_kboard if we popped into any
26772 kboard state.
26773 (push_frame_kboard): Rename to push_kboard.
26774 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26775 (read_avail_input): Read input from all terminals.
26776 (mark_kboards): Also mark Vkeyboard_translate_table.
26777 (kbd_buffer_store_event_hold): Simplify condition.
26778 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26779 (Vkeyboard_translate_table): Move to struct kboard.
26780 (init_kboard): Initialize Vkeyboard_translate_table.
26781 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26782 Vkeyboard_translate_table. Update doc strings. Update docs of
26783 local-function-key-map and function-key-map.
26784
26785 * terminal.c: New file.
26786
26787 * term.c: Include errno.h.
26788 (Vring_bell_function, device_list, initial_device)
26789 (next_device_id, ring_bell, update_begin, update_end)
26790 (set_terminal_window, cursor_to, raw_cursor_to)
26791 (clear_to_end, clear_frame, clear_end_of_line)
26792 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26793 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26794 (syms_of_term): Move their initialization to terminal.c.
26795 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26796 (Ftty_display_color_cells)
26797 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26798 (clear_tty_hooks, set_tty_hooks)
26799 (init_tty, maybe_fatal): New functions.
26800 (Ftty_type): Return nil if terminal is not on a tty instead of
26801 throwing an error. Doc update.
26802 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26803 Doc update. Initialize new subrs and variables.
26804 (delete_tty): Use terminal->deleted.
26805 (tty_set_terminal_modes): Rename from set_terminal_modes.
26806 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26807 (set_scroll_region): Rename to `tty_set_scroll_region'.
26808 (turn_on_insert): Rename to `tty_turn_on_insert'.
26809 (turn_off_insert): Rename to `tty_turn_off_insert'.
26810 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26811 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26812 (toggle_highligh): Rename to `tty_toggle_highlight'.
26813 (background_highlight): Rename to `tty_background_highlight'.
26814 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26815 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26816 (tty_set_scroll_region, tty_background_highlight)
26817 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26818 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26819 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26820 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26821 Add static modifier.
26822 (tty_reset_terminal_modes, tty_set_terminal_window)
26823 (tty_set_scroll_region, tty_background_highlight)
26824 (tty_highlight_if_desired, tty_cursor_to)
26825 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26826 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26827 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26828 renames.
26829
268302007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26831
26832 * keyboard.c: Qrtl is new.
26833 (parse_tool_bar_item): Handle :rtl keyword.
26834 (syms_of_keyboard): Intern :rtl keyword.
26835
26836 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26837
26838 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26839 so no Lisp code is executed.
26840 (file_for_image, find_rtl_image): New functions.
26841 (xg_get_image_for_pixmap): Use file_for_image.
26842 (update_frame_tool_bar): If direction is RTL, use RTL image if
26843 defined. Use Gtk stock images if defined.
26844
268452007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26846
26847 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26848 for nonexistent or zero-width glyph in composition glyph.
26849
268502007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26851
26852 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26853
26854 * xdisp.c (Finvisible_p): New function.
26855 (syms_of_xdisp): defsubr it.
26856
268572007-08-24 Juanma Barranquero <lekktu@gmail.com>
26858
26859 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26860 Doc fixes.
26861
268622007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26863
26864 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26865
268662007-08-24 Martin Rudalics <rudalics@gmx.at>
26867
26868 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26869 whether decoding has modified buffer contents.
26870
268712007-08-24 Jason Rumney <jasonr@gnu.org>
26872
26873 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26874 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26875 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26876 (init_svg_functions) [HAVE_NTGUI]: New function.
26877 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26878 (svg_load_image): Use them.
26879 (svg_load_image) [HAVE_NTGUI]: Implement background.
26880
268812007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26882
26883 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26884 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26885 (LIBX): Remove @RSVG_LIBS@.
26886 (LIBES): Add $(RSVG_LIBS).
26887
26888 * image.c (svg_load_image): Blend with specified background if exists.
26889 Use IMAGE_BACKGROUND. Add Mac OS Support.
26890
26891 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26892 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26893 Remove macros.
26894 [MAC_OSX] (socket_callback): Do nothing.
26895 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26896 ReceiveNextEvent.
26897 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26898 socket_callback.
26899 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26900
269012007-08-22 Glenn Morris <rgm@gnu.org>
26902
26903 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26904
269052007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26906
26907 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26908
26909 * image.c: Add support for SVG images. Some additional comments
26910 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26911 (svg_image_p): New function to test for SVG image.
26912 (svg_load): New function to load SVG image.
26913 (svg_load_image): New function, helper for svg_load.
26914 (Qsvg): New Lisp_object.
26915 (svg_keyword_index): New enum.
26916 (svg_format): New static `image_keyword' struct.
26917 (svg_type): New static `image_type' struct.
26918 (librsvg/rsvg.h): Include it.
26919
269202007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26921
26922 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26923
269242007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26925
26926 * lread.c (Qold_style_backquotes): New var.
26927 (syms_of_lread): Init and staticpro it.
26928 (load_warn_old_style_backquotes): New fun.
26929 (Fload): Use them to warn about old style backquotes.
26930 (end_of_file_error, Fload): Remove unused vars.
26931
26932 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26933
26934 * lread.c (Vold_style_backquotes): New var.
26935 (syms_of_lread): Init and export it to Elisp.
26936 (read1): Set it when we find an old-style (back)quote.
26937
269382007-08-22 Jason Rumney <jasonr@gnu.org>
26939
26940 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26941
269422007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26943
26944 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26945
269462007-08-19 Richard Stallman <rms@gnu.org>
26947
26948 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26949
269502007-08-19 Andreas Schwab <schwab@suse.de>
26951
26952 * alloc.c (pure): Round PURESIZE up.
26953
269542007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26955
26956 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26957 active frame.
26958
269592007-08-16 Richard Stallman <rms@gnu.org>
26960
26961 * eval.c (Fcommandp): Add parens to clarify.
26962
26963 * minibuf.c (Fall_completions): Use enum for type of table.
26964
26965 * emacs.c (USAGE2): Improve text.
26966
269672007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26968
26969 * term.c (tty_default_color_capabilities): Declare static
26970 variables in file scope, to avoid HPUX compiler problem.
26971
269722007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26973
26974 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26975 to gtk_toolbar_insert.
26976
269772007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26978
26979 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26980
26981 * insdel.c (reset_var_on_error): New fun.
26982 (signal_before_change, signal_after_change):
26983 Use it to reset (after|before)-change-functions to nil in case of error.
26984 Bind inhibit-modification-hooks to t.
26985 Don't bind (after|before)-change-functions to nil while they run.
26986
269872007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26988
26989 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26990 filling pixmap with stippled background.
26991
269922007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26993
26994 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26995 Don't use invisible frame as parent window for repositioning.
26996
269972007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26998
26999 * print.c (new_backquote_output): Rename from old_backquote_output.
27000 (print): Inverse its logic (according to its name) so as to match the
27001 behavior of new_backquote_flag in lread.c.
27002
270032007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27004
27005 * gmalloc.c (posix_memalign): New function.
27006
27007 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27008 ActivateControl/DeactivateControl here.
27009 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27010 frame-notice-user-settings is non-nil.
27011 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27012 for kEventParamFMFontStyle.
27013 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27014 mac_pass_command_to_system and mac_pass_control_to_system here.
27015 (XTread_socket): Call ActivateControl/DeactivateControl here.
27016 (XTread_socket) [TARGET_API_MAC_CARBON]:
27017 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27018 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27019 for window repositioning.
27020
270212007-08-08 Glenn Morris <rgm@gnu.org>
27022
27023 * Replace `iff' in doc-strings and comments.
27024
270252007-08-07 Chong Yidong <cyd@stupidchicken.com>
27026
27027 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27028
270292007-08-07 Martin Rudalics <rudalics@gmx.at>
27030
27031 * fileio.c (Finsert_file_contents): Run format-decode and
27032 after_insert_file_functions on entire buffer when REPLACE is
27033 non-nil and inhibit modification_hooks and point_motion_hooks.
27034 For consistency, run after_insert_file_functions iff something
27035 got inserted. Move signal_after_change and update_compositions
27036 after code running after_insert_file_functions. Make sure that
27037 undo_list doesn't record intermediate steps of the decoding process.
27038
270392007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27040
27041 * emacs.c (main)
27042 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27043 Call malloc_enable_thread on interactive startup.
27044
27045 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27046 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27047 [USE_PTHREAD]: Conditionalize with it.
27048 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27049 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27050 New functions.
27051
270522007-08-06 Chong Yidong <cyd@stupidchicken.com>
27053
27054 * xdisp.c (redisplay_window): When restoring original buffer
27055 position, make sure it is still valid.
27056
27057 * image.c (png_load): Ignore png-supplied background color.
27058
270592007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27060
27061 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27062 Use kCFAbsoluteTimeIntervalSince1970.
27063
27064 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27065 New variable.
27066 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27067 event loop should be quit.
27068 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27069 Quit dialog event loop if quit_dialog_event_loop is set.
27070
27071 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27072 (Selection): New typedef. Use instead of ScrapRef.
27073 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27074 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27075 (mac_clear_selection): Rename from clear_scrap.
27076 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27077 scrap_has_target_type. All uses changed.
27078 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27079 (mac_selection_has_target_p): New functions.
27080 (mac_put_selection_value): Rename from put_scrap_string.
27081 (mac_get_selection_value): Rename from get_scrap_string.
27082 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27083 (put_scrap_private_timestamp, scrap_has_target_type)
27084 (get_scrap_private_timestamp): Remove functions.
27085 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27086 (x_own_selection, x_get_local_selection):
27087 Use mac_valid_selection_value_p.
27088 (x_own_selection): Don't use put_scrap_private_timestamp.
27089 Record OWNERSHIP-INFO into Vselection_alist instead.
27090 (x_get_local_selection): Don't check type if request is local.
27091 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27092 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27093
270942007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27095
27096 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27097 add comment explaining why.
27098
270992007-08-03 Richard Stallman <rms@gnu.org>
27100
27101 * fileio.c (Fvisited_file_modtime): Use make_time.
27102
271032007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27104
27105 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27106 build.
27107
271082007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27109
27110 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27111
271122007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27113
27114 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27115
271162007-07-30 Richard Stallman <rms@gnu.org>
27117
27118 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27119
271202007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27121
27122 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27123
271242007-07-28 Nick Roberts <nickrob@snap.net.nz>
27125
27126 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27127 remote default-directory.
27128
27129 * buffer.c (mode-line-format): Update doc string.
27130
271312007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27132
27133 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27134 scroll bar gap.
27135 (x_scroll_bar_create): Set bar->fringe_extended_p.
27136 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27137 on frame edge. Check fringe background extension. Don't clear
27138 extended fringe background area.
27139
27140 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27141 (w32_fill_area): Enclose multiple statements with do ... while (0).
27142
27143 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27144 Extend fringe background to scroll bar gap.
27145 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27146 Set bar->fringe_extended_p.
27147 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27148 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27149 background extension. Don't clear extended fringe background area.
27150
27151 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27152 New member fringe_extended_p.
27153
271542007-07-25 Glenn Morris <rgm@gnu.org>
27155
27156 * Relicense all FSF files to GPLv3 or later.
27157
27158 * COPYING: Switch to GPLv3.
27159
271602007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27161
27162 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27163
27164 * data.c (Finteractive_form): Check for the presence of an
27165 `interactive-form' symbol property more thoroughly.
27166
27167 * data.c (Finteractive_form): Use an `interactive-form' property if
27168 present, analogous to the function-documentation property.
27169
271702007-07-24 Jason Rumney <jasonr@gnu.org>
27171
27172 * w32fns.c (x_real_positions): Get real position from OS instead of
27173 calculating it.
27174
271752007-07-23 Jason Rumney <jasonr@gnu.org>
27176
27177 * filelock.c (current_lock_owner): Allow for @ sign in username.
27178
271792007-07-22 Nick Roberts <nickrob@snap.net.nz>
27180
27181 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27182 remote default-directory.
27183
27184 * buffer.c (mode-line-format): Describe above case in doc string.
27185
271862007-07-20 Eli Zaretskii <eliz@gnu.org>
27187
27188 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27189 Define if not defined.
27190
271912007-07-18 Jason Rumney <jasonr@gnu.org>
27192
27193 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27194
271952007-07-18 Richard Stallman <rms@gnu.org>
27196
27197 * data.c (Fsetq_default): Doc fix.
27198
27199 * eval.c (Fsetq): Doc fix.
27200
272012007-07-18 Juanma Barranquero <lekktu@gmail.com>
27202
27203 * coding.c (Ffind_operation_coding_system):
27204 * eval.c (For, Fand): Doc fixes.
27205 Reported by Johan Bockgård.
27206
272072007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27208
27209 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27210
27211 * xterm.h: Declare x_ewmh_activate_frame.
27212
27213 * xterm.c (x_ewmh_activate_frame): New function.
27214 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27215
272162007-07-17 Martin Rudalics <rudalics@gmx.at>
27217
27218 * window.c (Fdisplay_buffer): If largest or LRU window is the
27219 only window, split it even if it is not eligible for splitting.
27220 This restores the original behavior broken by the 2007-07-15
27221 change.
27222
272232007-07-17 Glenn Morris <rgm@gnu.org>
27224
27225 * abbrev.c (abbrev_check_chars): New function.
27226 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27227 Call abbrev_check_chars to check abbrev characters are word
27228 constituents. Doc fix.
27229
272302007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27231
27232 * process.c (Fstart_process, Fmake_network_process)
27233 (read_process_output): Fix up last changes.
27234
272352007-07-16 Eli Zaretskii <eliz@gnu.org>
27236
27237 * makefile.w32-in (clean): Don't delete *~.
27238
272392007-07-16 Andreas Schwab <schwab@suse.de>
27240
27241 * window.c (Fdisplay_buffer): Use NILP.
27242 (Fset_window_scroll_bars): Likewise.
27243
272442007-07-15 Martin Rudalics <rudalics@gmx.at>
27245
27246 * window.c (window_min_size_2): New function.
27247 (window_min_size_1, size_window, Fdisplay_buffer)
27248 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27249 windows without mode- or header-lines when window-min-height is
27250 too small.
27251 (size_window): Reset nodelete_p after testing it, following an
27252 earlier note by Kim F. Storm.
27253 (display_buffer): Do not set split_height_threshold to twice the
27254 value of window_min_height to avoid changing the value of a
27255 customizable variable. Rather explicitly check whether the
27256 height of the window that shall be splitted is at least as large
27257 as split_height_threshold.
27258 (Fwindow_full_width_p): New defun.
27259 (syms_of_window): Defsubr it.
27260
27261 * window.h: Add EXFUN for Fwindow_full_width_p.
27262
272632007-07-14 Jason Rumney <jasonr@gnu.org>
27264
27265 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27266
272672007-07-14 Richard Stallman <rms@gnu.org>
27268
27269 * eval.c (maybe_call_debugger): New function.
27270 (find_handler_clause): Use maybe_call_debugger.
27271 Call it when the handler says `debug'.
27272 Eliminate DEBUGGER_VALUE_PTR.
27273 (Fsignal): Eliminate debugger_value.
27274 (Qdebug): New variable.
27275 (syms_of_eval): Initialize it.
27276
272772007-07-14 Juanma Barranquero <lekktu@gmail.com>
27278
27279 * eval.c (Fprogn):
27280 * keyboard.c (Ftrack_mouse):
27281 * print.c (Fwith_output_to_temp_buffer):
27282 * window.c (Fsave_window_excursion): Doc fix.
27283
272842007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27285
27286 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27287
272882007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27289
27290 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27291 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27292 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27293 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27294 Remove unused encoding_carryover.
27295 * process.c: Adjust all functions accordingly.
27296
272972007-07-12 Richard Stallman <rms@gnu.org>
27298
27299 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27300
273012007-07-11 Jason Rumney <jasonr@gnu.org>
27302
27303 * makefile.w32-in (LIBS): Include OLE32.
27304
27305 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27306 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27307
273082007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27309
27310 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27311 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27312 from a Lisp_Object into a bare pointer.
27313 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27314 Adjust the code correspondingly.
27315
27316 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27317
27318 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27319 (term_show_mouse_face): Remove unused var `j'.
27320 (handle_one_term_event): Remove unused vars `i' and `j'.
27321 Don't cast return value of ttyname since it's not necessary.
27322
273232007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27324
27325 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27326 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27327
27328 * fns.c (map_char_table): Use an array of int for `indices' rather than
27329 an array of Lisp_Objects (which are only ever integers anyway).
27330 (Fmap_char_table): Update caller.
27331 * lisp.h: Update prototype.
27332 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27333 * fontset.c (Ffontset_info):
27334 * casetab.c (set_case_table): Update callers.
27335
27336 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27337
27338 * keymap.c (struct accessible_keymaps_data)
27339 (struct where_is_internal_data): New structures.
27340 (accessible_keymaps_1, where_is_internal_1): Use them to change
27341 interface to adhere to the one used by map_keymap.
27342 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27343 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27344
27345 * keymap.h (map_keymap_function_t): More informative prototype.
27346
273472007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27348
27349 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27350 (looking_at_1): Don't change search_regs and last_thing_searched
27351 if `inhibit-changing-match-data' is non-nil.
27352 (string_match_1, search_buffer, set_search_regs): Likewise.
27353 (syms_of_search): Add Lisp level definition for
27354 `inhibit-changing-match-data' and set it to nil.
27355 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27356 start and end of the match, instead of using values in search_regs.
27357
273582007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27359
27360 * minibuf.c (Fcompleting_read): New value `confirm-only'
27361 for `require-match'.
27362
273632007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27364
27365 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27366 part of the 2007-06-27 change to syms_of_fileio.
27367
273682007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27369
27370 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27371 Check WINDOWP before using XWINDOW. Consolidate return statements.
27372
273732007-06-27 Richard Stallman <rms@gnu.org>
27374
27375 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27376
273772007-06-27 Juanma Barranquero <lekktu@gmail.com>
27378
27379 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27380
273812007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27382
27383 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27384 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27385 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27386 (_free_internal, memalign): Use them.
27387 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27388 Initialize to PTHREAD_MUTEX_INITIALIZER.
27389 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27390 (morecore_nolock): Rename from morecore. All uses changed.
27391 Use only nolock versions of internal allocation functions.
27392 (_malloc_internal_nolock, _realloc_internal_nolock)
27393 (_free_internal_nolock): New functions created from
27394 _malloc_internal, _realloc_internal, and _free_internal.
27395 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27396 Copy hook value to automatic variable before its use.
27397 (memalign): Copy hook value to automatic variable before its use.
27398
273992007-06-26 Kenichi Handa <handa@m17n.org>
27400
27401 * coding.c (Ffind_operation_coding_system): Docstring improved.
27402 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27403
274042007-06-25 David Kastrup <dak@gnu.org>
27405
27406 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27407 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27408 cater for additional parameter.
27409
27410 * keymap.h: Adjust number of parameters to `current-active-maps'.
27411
27412 * doc.c (Fsubstitute_command_keys): Adjust call of
27413 `current-active-maps'.
27414
274152007-06-25 David Kastrup <dak@gnu.org>
27416
27417 * callint.c (Fcall_interactively): Make the parsing of interactive
27418 specs somewhat more readable.
27419
274202007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27421
27422 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27423 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27424 if extended background has already been filled.
27425
274262007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27427
27428 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27429 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27430
27431 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27432 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27433 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27434 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27435 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27436 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27437 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27438 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27439 Run timers during dialog popup.
27440 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27441
274422007-06-21 Jason Rumney <jasonr@gnu.org>
27443
27444 * image.c (convert_mono_to_color_image): Swap fore and background.
27445
274462007-06-20 Jason Rumney <jasonr@gnu.org>
27447
27448 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27449 (w32_free_bdf_font): Unmap memory not handle.
27450
274512007-06-20 Sam Steingold <sds@gnu.org>
27452
27453 * gmalloc.c (__morecore): Fix the declaration to comply with the
27454 definition.
27455
274562007-06-20 Juanma Barranquero <lekktu@gmail.com>
27457
27458 * w32term.c (w32_delete_display): Remove leftover declaration.
27459 (w32_define_cursor, w32_initialize): Make static.
27460
27461 * w32.c (_wsa_errlist): Fix typo in error message.
27462 (init_environment): Ignore any environment variable from the
27463 registry having a null value.
27464
274652007-06-20 Glenn Morris <rgm@gnu.org>
27466
27467 * Makefile.in (LIBGIF): Default to -lgif.
27468
274692007-06-17 Jason Rumney <jasonr@gnu.org>
27470
27471 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27472 unicode strings.
27473
274742007-06-16 Juanma Barranquero <lekktu@gmail.com>
27475
27476 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27477 Fix typo in docstring.
27478
274792007-06-16 Eli Zaretskii <eliz@gnu.org>
27480
27481 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27482 and their keybindings.
27483
274842007-06-15 Chong Yidong <cyd@stupidchicken.com>
27485
27486 * composite.c (update_compositions): Fix last fix.
27487
274882007-06-14 Jason Rumney <jasonr@gnu.org>
27489
27490 * w32.c (get_process_times_fn): New function pointer.
27491 (globals_of_w32): Intialize it if present in kernel32.dll.
27492 (w32_get_internal_run_time): New function.
27493
27494 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27495
274962007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27497
27498 * composite.c (update_compositions): Check the validness of
27499 compositions.
27500
275012007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27502
27503 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27504 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27505
27506 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27507 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27508
27509 * macgui.h (USE_MAC_TOOLBAR): New define.
27510
27511 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27512 Return immediately unless popup is activated.
27513
27514 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27515 background to scroll bar gap.
27516 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27517 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27518 scroll bars on frame edge. Check fringe background extension.
27519 Don't clear extended fringe background area.
27520 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27521 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27522 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27523 [USE_MAC_TOOLBAR]: New macros.
27524 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27525 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27526 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27527 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27528 [USE_MAC_TOOLBAR]: New functions.
27529 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27530 manually if previous repositioning has failed.
27531 (mac_handle_keyboard_event): Use precomputed event kind.
27532 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27533 as tool bar item click. Handle mouse movement over tool bar items.
27534
27535 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27536 toolbar_win_gravity.
27537 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27538 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27539 Add externs.
27540
27541 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27542 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27543
275442007-06-14 Chong Yidong <cyd@stupidchicken.com>
27545
27546 * image.c (search_image_cache): Remove unused variable.
27547
275482007-06-13 Chong Yidong <cyd@stupidchicken.com>
27549
27550 * xfns.c, xmenu.c: Link to xaw3d if available.
27551
275522007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27553
27554 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27555 frame_foreground and frame_background.
27556
27557 * image.c (lookup_image): Save frame foreground and background colors.
27558 (search_image_cache): Check if saved and current frame colors match.
27559
275602007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27561
27562 * regex.c (regex_compile): Remove the `regnum' counter.
27563 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27564
275652007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27566
27567 * term.c: Include intervals.h to declare Fget_text_property.
27568
275692007-06-10 Jason Rumney <jasonr@gnu.org>
27570
27571 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27572
275732007-06-08 Juanma Barranquero <lekktu@gmail.com>
27574
27575 * callint.c (Fcall_interactively):
27576 * editfns.c (Fdelete_and_extract_region):
27577 * fileio.c (Fread_file_name):
27578 * fns.c (Fmapconcat):
27579 * keyboard.c (cmd_error_internal):
27580 * keymap.c (Fkey_description):
27581 * lread.c (openp):
27582 * minibuf.c (read_minibuf):
27583 * search.c (wordify):
27584 * sunfns.c (sel_read):
27585 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27586 * xfns.c (x_default_scroll_bar_color_parameter):
27587 * xmenu.c (menu_help_callback):
27588 * xselect.c (Fx_get_atom_name):
27589 * xterm.c (x_term_init): Use empty_unibyte_string.
27590
275912007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27592
27593 * alloc.c (init_strings): Initialize canonical empty strings.
27594 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27595 canonical empty string when the requested size is 0.
27596
27597 * emacs.c (empty_unibyte_string): Rename from empty_string.
27598 (empty_multibyte_string): New canonical empty string.
27599 (syms_of_emacs): Don't initialize empty_string.
27600
27601 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27602 string, if appropriate.
27603 (empty_unibyte_string, empty_multibyte_string): New externs.
27604 (empty_string): Remove extern.
27605
27606 * lread.c (syms_of_lread): Use empty_unibyte_string.
27607
276082007-06-07 Jason Rumney <jasonr@gnu.org>
27609
27610 * s/ms-w32.h: Don't define HAVE_TZNAME.
27611
27612 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27613
276142007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27615
27616 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27617
27618 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27619 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27620
27621 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27622 Don't call next handler.
27623 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27624 Remove argument. Install handler to application.
27625 (set_frame_menubar): Don't change deep_p.
27626 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27627 FRAME_OUTER_TO_INNER_DIFF_Y.
27628 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27629 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27630 [HAVE_DIALOGS]: New macros.
27631 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27632 Use them.
27633 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27634
27635 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27636 init_service_handler. All callers changed. Return OSStatus value.
27637
27638 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27639 All callers changed so as not to call SetPortWindowPort.
27640 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27641 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27642 mac_draw_string_common.
27643 (mac_draw_image_string_qd): Likewise.
27644 (mac_draw_string_common): Use them. Add INLINE.
27645 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27646 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27647 GetGlobalMouse.
27648 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27649 and FRAME_OUTER_TO_INNER_DIFF_Y.
27650 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27651 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27652 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27653 repositioning window to mac_handle_window_event.
27654 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27655 saving window location to mac_handle_window_event
27656 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27657 (install_menu_target_item_handler): Remove argument in extern.
27658 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27659 Also accept command events.
27660 (do_keystroke): New function created from XTread_socket.
27661 (init_command_handler): Remove functions.
27662 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27663 and save window location by kEventWindowShowing and kEventWindowHiding
27664 handlers here. Don't call next handler for window state change and
27665 focus events.
27666 (mac_handle_application_event, mac_handle_keyboard_event)
27667 [TARGET_API_MAC_CARBON]: New functions.
27668 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27669 kEventWindowShowing and kEventWindowHiding events. Move installation
27670 of mouse, font, text input and menu target item handlers to
27671 install_application_handler.
27672 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27673 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27674 New function.
27675 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27676 Register it.
27677 (XTread_socket) [TARGET_API_MAC_CARBON]:
27678 Consolidate SendEventToEventTarget calls.
27679 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27680 Move application activation handler to mac_handle_application_event.
27681 Move keyboard handler to mac_handle_keyboard_event.
27682 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27683 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27684 init_command_handler. Call install_application_handler.
27685
27686 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27687 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27688
276892007-06-07 Glenn Morris <rgm@gnu.org>
27690
27691 * emacs.c (main): Use `emacs-copyright' in --version output.
27692
276932007-06-06 Chong Yidong <cyd@stupidchicken.com>
27694
27695 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27696
276972007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27698
27699 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27700
27701 * macgui.h: Replace WindowPtr with WindowRef.
27702
27703 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27704 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27705 Replace ControlHandle with ControlRef.
27706 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27707
27708 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27709 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27710 Replace ControlHandle with ControlRef.
27711 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27712 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27713
27714 * macterm.h (struct scroll_bar): Rename member control_handle_low
27715 and control_handle_high to control_ref_low and control_ref_high.
27716 All uses changed.
27717 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27718 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27719 respectively. All uses changed.
27720 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27721 (install_window_handler, remove_window_handler): Replace WindowPtr
27722 with WindowRef in externs.
27723
277242007-06-05 Juanma Barranquero <lekktu@gmail.com>
27725
27726 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27727
277282007-06-03 Nick Roberts <nickrob@snap.net.nz>
27729
27730 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27731
27732 * frame.c (Fmouse_position, Fmouse_pixel_position):
27733 Condition on HAVE_GPM too.
27734
27735 * term.c (term_mouse_highlight): Remove unused variables.
27736 (Fterm_open_connection): Set gpm_zerobased to 1.
27737 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27738 Use zero based co-ordinates.
27739 (handle_one_term_event): Report a drag as mouse movement too.
27740
27741 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27742
277432007-06-03 Chong Yidong <cyd@stupidchicken.com>
27744
27745 * image.c (search_image_cache): New function. Require background
27746 color match if background color is unspecified in the image spec.
27747 (uncache_image, lookup_image): Use it.
27748
277492007-06-01 Juanma Barranquero <lekktu@gmail.com>
27750
27751 * window.c (Fshrink_window): Reflow docstring.
27752
277532007-06-02 Chong Yidong <cyd@stupidchicken.com>
27754
27755 * Version 22.1 released.
27756
277572007-06-01 Richard Stallman <rms@gnu.org>
27758
27759 * xfns.c (x_encode_text): Add GCPRO.
27760
277612007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27762
27763 * xfns.c (x_set_name_internal): Save encoded name before
27764 x_encode_text in case string data is relocated.
27765
277662007-05-31 Richard Stallman <rms@gnu.org>
27767
27768 * buffer.c (syms_of_buffer): Doc fix.
27769
277702007-05-30 Nick Roberts <nickrob@snap.net.nz>
27771
27772 * sysdep.c (init_sys_modes): Add rather than replace with
27773 O_NONBLOCK.
27774
27775 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27776 term_mouse_moveto.
27777
27778 * termhooks.h (term_mouse_moveto): New extern.
27779
27780 * term.c (mouse_face_window): Rename...
27781 (Qmouse_face_window): ...to this.
27782 (term_show_mouse_face, term_clear_mouse_face)
27783 (term_mouse_highlight): Use Qmouse_face_window.
27784 (term_mouse_moveto): New function.
27785 (term_mouse_position): Make it work.
27786 (syms_of_term): Uncomment assignment to mouse_position_hook.
27787 Staticpro Qmouse_face_window.
27788
277892007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27790
27791 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27792 around current_column call.
27793
277942007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27795
27796 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27797 * xdisp.c (next_element_from_buffer):
27798 * window.c (delete_window):
27799 * term.c (term_mouse_highlight):
27800 * msdos.c (getdefdir):
27801 * macterm.c (mac_create_bitmap_from_bitmap_data)
27802 (init_font_name_table):
27803 * fns.c (Fsxhash):
27804 * data.c (Fmake_local_variable):
27805 * ccl.c (ccl_driver): Likewise.
27806
278072007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27808
27809 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27810 Call mac_wakeup_from_rne on window size change.
27811
278122007-05-25 Chong Yidong <cyd@stupidchicken.com>
27813
27814 * image.c (uncache_image): Fix typo.
27815
278162007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27817
27818 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27819
278202007-05-22 Richard Stallman <rms@gnu.org>
27821
27822 * xterm.c (x_connection_closed): Remove NO_RETURN.
27823
278242007-05-22 Martin Rudalics <rudalics@gmx.at>
27825
27826 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27827
278282007-05-21 Chong Yidong <cyd@stupidchicken.com>
27829
27830 * image.c (uncache_image): New function.
27831 (Fimage_refresh): New function.
27832
278332007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27834
27835 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27836
278372007-05-20 Nick Roberts <nickrob@snap.net.nz>
27838
27839 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27840 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27841
278422007-05-20 Nick Roberts <nickrob@snap.net.nz>
27843
27844 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27845 conditional on [HAVE_GPM_H].
27846
278472007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27848
27849 * syntax.c (skip_chars): Update syntax-table only after we checked that
27850 the new location is valid.
27851
278522007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27853
27854 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27855 mac_get_window_bounds.
27856
278572007-05-20 Nick Roberts <nickrob@snap.net.nz>
27858
27859 * Makefile.in (LIBGPM): Allow it to be set from configure.
27860 If set then link Emacs with it.
27861
27862 * config.in: Regenerate.
27863
27864 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27865 New externs.
27866
27867 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27868 Include gpm.h.
27869 (handle_one_term_event, term_gpm): New externs.
27870
27871 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27872 and allow it to be interrupted by SIGIO.
27873
27874 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27875 (wait_reading_process_output): Wait on gpm_fd too.
27876 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27877 (add_gpm_wait_descriptor_called_flag): New variable.
27878 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27879
27880 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27881 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27882 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27883 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27884 (make_lispy_event): Add case GPM_CLICK_EVENT.
27885 (read_avail_input): Handle mouse input.
27886
27887 * term.c (write_glyphs_with_face): New function.
27888 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27889 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27890 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27891 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27892 (last_mouse_x, last_mouse_y): New variables.
27893 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27894 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27895 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27896 (Fterm_close_connection): New functions.
27897 (term_init): Initialise mouse_face_window.
27898
278992007-05-19 Chong Yidong <cyd@stupidchicken.com>
27900
27901 * xdisp.c (redisplay_window): If first window line is a
27902 continuation line, recompute the new window start instead of
27903 recentering.
27904
279052007-05-18 Glenn Morris <rgm@gnu.org>
27906
27907 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27908 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27909
279102007-05-17 Glenn Morris <rgm@gnu.org>
27911
27912 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27913
279142007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27915
27916 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27917 dead key repeat and up events.
27918
279192007-05-14 Chong Yidong <cyd@stupidchicken.com>
27920
27921 * image.c (pbm_load): Check image size for monochrome pbm.
27922
279232007-05-13 Chong Yidong <cyd@stupidchicken.com>
27924
27925 * xterm.c (XTread_socket): Revert last change.
27926
279272007-05-12 Chong Yidong <cyd@stupidchicken.com>
27928
27929 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27930
27931 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27932
279332007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27934
27935 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27936 mixup (YAILOM).
27937
279382007-05-07 Andreas Schwab <schwab@suse.de>
27939
27940 * keymap.c (Flookup_key): Fix typo in last change.
27941
279422007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27943
27944 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27945 mapping for unibyte strings.
27946
279472007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27948
27949 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27950 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27951
279522007-04-29 Richard Stallman <rms@gnu.org>
27953
27954 * insdel.c (replace_range): For undo, record insertion first.
27955
279562007-04-29 Andreas Schwab <schwab@suse.de>
27957
27958 * lisp.h (VECSIZE): Use OFFSETOF.
27959
279602007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27961
27962 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27963 disabled lines.
27964
279652007-04-28 Richard Stallman <rms@gnu.org>
27966
27967 * lread.c (read_escape): In a string, \s is always space.
27968
279692007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27970
27971 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27972
27973 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27974 submenu for menu bar items.
27975
27976See ChangeLog.10 for earlier changes.
27977
27978;; Local Variables:
27979;; coding: utf-8
27980;; add-log-time-zone-rule: t
aac0c6e3
MR
27981;; End:
27982
e3eb1dae 27983 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27984
27985 This file is part of GNU Emacs.
27986
27987 GNU Emacs is free software: you can redistribute it and/or modify
27988 it under the terms of the GNU General Public License as published by
27989 the Free Software Foundation, either version 3 of the License, or
27990 (at your option) any later version.
27991
27992 GNU Emacs is distributed in the hope that it will be useful,
27993 but WITHOUT ANY WARRANTY; without even the implied warranty of
27994 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27995 GNU General Public License for more details.
27996
27997 You should have received a copy of the GNU General Public License
27998 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27999
28000;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40