Remove unused arguments for unexec.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dd5ecd6b
DN
12010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Remove unused arguments for unexec.
4 The third one is never used, and the last two are always passed as zero.
5 * emacs.c (unexec): Add declaration.
6 (Fdump_emacs): Only pass the first two arguments to unexec.
7 Simplify #ifdef.
8 * unexw32.c (unexec):
9 * unexsol.c (unexec):
10 * unexhp9k800.c (unexec):
11 * unexcw.c (unexec): Remove the last 3 arguments, unused.
12 * unexelf.c (unexec): Remove the last 3 arguments, unused.
13 (find_section): Use const.
14 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
15 (unexec_error): Declare it NO_RETURN.
16 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
17 it as an argument, remove data_start and entry_address arguments, unused.
18 (unexec): Remove bss_start, data_start and
19 entry_address arguments.
20 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
21 it as an argument, remove data_start and entry_address arguments, unused.
22 (unexec): Remove bss_start, data_start and
23 entry_address arguments.
24
74f1829d
JB
252010-10-03 Juanma Barranquero <lekktu@gmail.com>
26
7f467e14
JB
27 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
28
74f1829d
JB
29 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
30 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
31 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
32 Fix typos in docstrings.
33 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
34 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
35
6926550f
CY
362010-10-03 Chong Yidong <cyd@stupidchicken.com>
37
38 * keyboard.c (command_loop_1): Make sure the mark is really alive
39 before using it (Bug#7044).
40
54b65f7b
JB
412010-10-02 Juanma Barranquero <lekktu@gmail.com>
42
43 * makefile.w32-in (tags): Rename target to full-tags.
44
383ebd15
EZ
452010-10-02 Eli Zaretskii <eliz@gnu.org>
46
47 * emacs.c (main): Remove !WINDOWSNT conditional.
48 (Fkill_emacs): Don't mention exemption on MS-Windows.
49
9c524fcb
GM
502010-10-02 Glenn Morris <rgm@gnu.org>
51
3226d6ca
GM
52 * character.c (Fchar_bytes): Remove obsolete function.
53 (syms_of_character): Remove Schar_bytes.
54
9c524fcb
GM
55 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
56 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
57 in batch-mode.
58 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
59 (kill-emacs-hook): Doc fix.
60
1b217849
LMI
612010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
62
63 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
64 (parse_region): Reworked to take regions instead of strings, and
65 renamed to reflect that these are the libxml functions.
66
54cc6a83
EZ
672010-10-01 Eli Zaretskii <eliz@gnu.org>
68
0ebf79de
EZ
69 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
70 screen dimensions in tty->Wcm.
71
54cc6a83
EZ
72 * xdisp.c (set_cursor_from_row): When the row is truncated and
73 point is outside the range of displayed characters, position the
74 cursor inside the scroll margin. (Bug#6349)
75
321401d1
DN
762010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
77
4cacd822
DN
78 Do not include stdlib.h and string.h, config.h does it.
79 * xfont.c:
80 * w32term.c:
81 * w32reg.c:
82 * w32inevt.c:
83 * w32heap.c:
84 * w32console.c:
85 * w16select.c:
86 * unexsol.c:
87 * term.c:
88 * sound.c:
89 * scroll.c (m):
90 * gtkutil.c:
91 * font.c:
92 * filelock.c:
93 * fileio.c:
94 * dosfns.c:
95 * dbusbind.c:
96 * bidi.c:
97 * callproc.c:
98 * process.c:
99 * msdos.c:
100 * charset.c: Do not include stdlib.h and string.h, config.h does it.
101
0781e7ab
DN
102 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
103
9bf58201
DN
104 * process.c: Move #include <pty.h> earlier.
105 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
106 (pty_name): Move definition later.
107
088dcc3e
DN
108 * nsselect.m (syms_of_nsselect):
109 * nsmenu.m (syms_of_nsmenu):
110 * nsfns.m (syms_of_nsfns):
111 * msdos.c (syms_of_msdos):
4cacd822 112
088dcc3e
DN
113 * image.c (syms_of_image):
114 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
115
321401d1
DN
116 * point.h: Remove, unused.
117
73077a9a
EZ
1182010-10-01 Eli Zaretskii <eliz@gnu.org>
119
120 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
121 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
122 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
123
55e572ef
DN
1242010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
125
126 * xml.c (parse_string): Use const.
127
d4b6d95d
LMI
1282010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
129
130 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
131 only override Vprint_level if it isn't already bound, and increase
132 the level to 8 to produce more useful backtraces for bug reports.
133
e4b6db12
DN
1342010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
135
136 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
137
1becef93
JB
1382010-09-30 Juanma Barranquero <lekktu@gmail.com>
139
140 * w32console.c (vga_stdcolor_name): Remove unused function;
141 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
142
df7fcaff
LMI
1432010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
144
bac5cef8
LMI
145 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
146 (Fgnutls_boot): Start the handshake.
147 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
148 (Fgnutls_boot): Remove some debugging messages.
149 Change indentation throughout to use the Emacs style.
150 (emacs_gnutls_handshake): Cast the fds to something that's
151 possibly the expected length.
152 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 153
df7fcaff
LMI
154 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
155
156 * process.c (make_process): Set the gnutls_p field to zero by
157 default.
158 (read_process_output): Always call the gnutls_read function if the
159 stream is a gnutls stream.
160 (send_process): Ditto for writes.
161
162 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
163 or write anything until the state is GNUTLS_STAGE_READY.
164 (Fgnutls_boot): Mark the stream as being a gnutls stream.
165
d585695f
EZ
1662010-09-29 Eli Zaretskii <eliz@gnu.org>
167
af7ef32d
EZ
168 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
169 NEUTRAL_DIR.
170 (handle_invisible_prop, iterate_out_of_display_property)
171 (next_element_from_buffer): If bidi_it.first_elt is set, call
172 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
173 (Bug#7128)
174
d585695f
EZ
175 * print.c (print_object): Fix format string and argument types for
176 printing a Lisp_Misc_Marker.
177
178 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
179 (load_overlay_strings, get_overlay_strings_1)
180 (get_overlay_strings, forward_to_next_line_start)
181 (back_to_previous_visible_line_start, reseat, reseat_to_string)
182 (get_next_display_element, next_element_from_string)
183 (next_element_from_c_string, next_element_from_buffer)
184 (move_it_vertically_backward, move_it_by_lines, add_to_log)
185 (message_dolog, message_log_check_duplicate, message2_nolog)
186 (message3, message3_nolog, vmessage, set_message, set_message_1)
187 (hscroll_window_tree, text_outside_line_unchanged_p)
188 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
189 (find_last_unchanged_at_beg_row)
190 (find_first_unchanged_at_end_row, row_containing_pos)
191 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
192 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
193 EMACS_INT for buffer and string positions.
194
195 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
196 (row_containing_pos): Adjust prototype.
197
198 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
199 (message2_nolog, set_message): Adjust prototypes.
200
a6f3211f
SM
2012010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
202
203 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
204 (Fgnutls_boot): Use SDATA.
205 (Fgnutls_handshake): Remove unused var `max_log_level'.
206
e0720500
MA
2072010-09-27 Michael Albinus <michael.albinus@gmx.de>
208
11a5af7c 209 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
210 (Bug#7113)
211
d8a4b27a
J
2122010-09-27 Jan Djärv <jan.h.d@swipnet.se>
213
42d3022b
J
214 * xgselect.c (xg_select): Clear file descriptors not set from
215 rfds and wfds.
216
d8a4b27a
J
217 * process.c (wait_reading_process_output): Add missing FD_CLR
218 for write_mask (must mirror connect_wait_mask).
219
8ed70bf3
LMI
2202010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
221
222 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
223 prefix.
224 (Fgnutls_boot): Use changed process members. Use log level with a
225 function parameter to set it. Bring back Emacs-level debugging
226 messages at log level 1 and 2.
227
228 * process.c (make_process): Initialize gnutls_log_level.
229
230 * process.h: Add gnutls_log_level and rename x509_cred and
231 anon_cred to have the gnutls_ prefix for consistency.
232
233 * gnutls.h (GNUTLS_LOG): Add convenience macro.
234
bedf4aab
JB
2352010-09-27 Juanma Barranquero <lekktu@gmail.com>
236
237 * w32.c (g_b_init_get_sid_identifier_authority)
238 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
239 Remove, not used.
240 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
241 (init_winsock): Remove useless assignment.
242 (open_process_token, get_token_information, lookup_account_sid)
243 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
244 (get_security_descriptor_owner, get_security_descriptor_group)
245 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
246 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
247 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
248 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
249 (unc_volume_file_attributes, convert_from_time_t)
250 (create_toolhelp32_snapshot, process32_first, process32_next)
251 (open_thread_token, impersonate_self, revert_to_self)
252 (get_process_memory_info, get_process_working_set_size)
253 (global_memory_status, global_memory_status_ex, socket_to_fd)
254 (shutdown_handler): Make static.
255
08609ffd
MA
2562010-09-27 Michael Albinus <michael.albinus@gmx.de>
257
258 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
259 (xd_pending_messages): Functions removed.
260 (xd_read_queued_messages): Add parameters fd, *data, for_read in
261 order to be compatible with add_read_fd. Determine bus from data,
262 and call xd_read_message just for this bus.
263 (xd_add_watch): Use xd_read_queued_messages as callback function.
264 Add data.
265
266 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
267
d2e9d0bb
LMI
2682010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
269
270 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 271 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 272
4be9765d
KH
2732010-09-27 Kenichi Handa <handa@m17n.org>
274
275 These changes are to remove restriction on the number of glyphs in
276 one composition.
277
278 * dispextern.h (struct glyph): Change the member "slice" to union.
279 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
280 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
281
282 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
283 instead of glyph->slice.
284 (marginal_area_string): Likewise.
285
286 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
287 glyph->u.cmp.
288 (append_composite_glyph): Likewise.
289
290 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
291 glyph->u.cmp.
292 (fill_gstring_glyph_string, x_get_glyph_overhangs)
293 (append_composite_glyph): Likewise.
294 (fill_image_glyph_string): Use glyph->slice.img instead of
295 glyph->slice.
296 (append_glyph, produce_image_glyph, append_stretch_glyph)
297 (note_mouse_highlight): Likewise.
298
3fad2ad2
J
2992010-09-26 Jan Djärv <jan.h.d@swipnet.se>
300
bf05eed6
J
301 * process.c (add_keyboard_wait_descriptor)
302 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
303 (wait_reading_process_output): Don't pass write_mask to select
304 if SELECT_CANT_DO_WRITE_MASK is defined.
305 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 306
3fad2ad2
J
307 * process.h (add_read_fd, delete_read_fd, add_write_fd)
308 (delete_write_fd): Declare.
309
310 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
311 (write_mask): New variable.
312 (max_input_desc): Renamed from max_keyboard_desc.
313 (fd_callback_info): New variable.
70e31436
JB
314 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
315 New functions.
3fad2ad2
J
316 (Fmake_network_process): FD_SET write_mask.
317 (deactivate_process): FD_CLR write_mask.
318 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
319 check_connect removed. check_write is new. Remove references to gpm.
320 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
321 NON_BLOCKING_CONNECT) instead of Connecting.
322 Loop over file descriptors and call callbacks in fd_callback_info
323 if file descriptor is ready for I/O.
324 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
325 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
326 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
327 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
328 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
329 (init_process): Initialize write_mask and fd_callback_info.
330
331 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
332
333 * dbusbind.c: Include process.h.
334 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
335 (xd_read_message_1): New functions.
70e31436
JB
336 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
337 Handle watch for both read and write.
3fad2ad2
J
338 (Fdbus_init_bus): Also register xd_toggle_watch.
339 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
340 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
341 to dbus_connection_flush.
70e31436 342 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
343 Call xd_read_message_1 until status is COMPLETE.
344
dce4c2ac
DN
3452010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
346
347 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
348 (init_tty): Reorder code to reduce the number of #ifdefs.
349 No code changes.
dce4c2ac 350
8af55556
TZ
3512010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
352
353 * process.h: Set up GnuTLS support.
354
355 * process.c (make_process, Fstart_process)
356 (read_process_output, send_process): Set up GnuTLS support for
357 process input/output file descriptors.
358
359 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
360
361 * gnutls.c: The source code for GnuTLS support in Emacs.
362
363 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
364
365 * config.in: Set up GnuTLS support.
366
367 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
368 (obj, LIBES): Set up GnuTLS support.
369
83e245c4
JB
3702010-09-26 Juanma Barranquero <lekktu@gmail.com>
371
372 * w32.c (get_emacs_configuration_options): Fix previous change.
373
d24ec09a
CY
3742010-09-25 Chong Yidong <cyd@stupidchicken.com>
375
376 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
377 alive before using it (Bug#6977).
378
b7bdc47c
LMI
3792010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
380
a952d5f3
LMI
381 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
382
383 * dispextern.h: EMACS_INT/int fixup.
384
385 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
386 fixup.
387
b7bdc47c
LMI
388 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
389
41118bd3
EZ
3902010-09-25 Eli Zaretskii <eliz@gnu.org>
391
2452438f
EZ
392 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
393 (Fselect_window, window_scroll_pixel_based)
394 (window_scroll_line_based, Frecenter, Fset_window_configuration):
395 Use EMACS_INT for buffer positions.
396
397 * textprop.c (validate_interval_range, interval_of)
398 (property_change_between_p, Fadd_text_properties)
399 (set_text_properties_1, Fremove_text_properties)
400 (Fremove_list_of_text_properties, Ftext_property_any)
401 (Ftext_property_not_all, copy_text_properties)
402 (text_property_list, extend_property_ranges)
403 (verify_interval_modification): Use EMACS_INT for buffer
404 positions.
405
f877c546
EZ
406 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
407 for buffer positions.
408
409 * process.c (read_process_output, send_process)
410 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
411 and string positions and size.
412
da43f021
EZ
413 * print.c (print_object, print_string, strout): Use EMACS_INT for
414 string indices.
415
416 * minibuf.c (string_to_object): Use EMACS_INT for string position
417 and size.
418
419 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
420
421 * lread.c <read_from_string_index, read_from_string_index_byte>
422 <read_from_string_limit, readchar_count>: Define EMACS_INT.
423 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
424 buffer positions and string length.
425
41118bd3
EZ
426 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
427 EMACS_INT.
428 (echo_truncate, adjust_point_for_property, read_char)
429 (gen_help_event, make_lispy_event, modify_event_symbol)
430 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
431 for buffer positions and string length.
432
433 * keyboard.h (gen_help_event): Adjust prototype.
434
435 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
436
437 * commands.h <last_point_position>: Declare EMACS_INT.
438
439 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
440 (truncate_echo_area): Accept EMACS_INT argument.
441
442 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
443
444 * lisp.h (truncate_echo_area): Adjust prototype.
445
446 * composite.c (composition_adjust_point): Return EMACS_INT.
447
448 * composite.h (composition_adjust_point): Adjust prototype.
449
ba3033ee
JB
4502010-09-25 Juanma Barranquero <lekktu@gmail.com>
451
452 * process.c (Fmake_network_process): When arg :host is 'local,
453 use address 127.0.0.1, not name "localhost". (Bug#6781)
454
4f3a2f8d
EZ
4552010-09-24 Eli Zaretskii <eliz@gnu.org>
456
5816888b
EZ
457 * indent.c (Fcurrent_indentation, indented_beyond_p)
458 (compute_motion): Use EMACS_INT for buffer position variables.
459
460 * lisp.h (indented_beyond_p): Adjust prototype.
461
462 * buffer.c (overlay_strings): Return EMACS_INT.
463
464 * buffer.h (overlay_strings): Adjust prototype.
465
466 * region-cache.c (pp_cache): Adjust format to arguments.
467
468 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
469 (call_debugger): Use EMACS_INT for specpdl_size related variables.
470 (verror): Use EMACS_INT for size of allocated buffer.
471
ace1712c
EZ
472 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
473 positions.
474
475 * xdisp.c (redisplay_internal, try_window_id)
476 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
477 EMACS_INT for buffer positions.
478
f5276b75 479 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
480
481 * dispnew.c (increment_matrix_positions)
482 (increment_row_positions, copy_glyph_row_contents)
483 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
484 positions.
485
486 * dispextern.h (mode_line_string, marginal_area_string)
487 (increment_matrix_positions, increment_row_positions): Adjust
488 prototypes.
489
490 * data.c (Faref, Faset): Use EMACS_INT for string length and
491 positions.
492
493 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
494 characters to insert.
495
496 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
497 position and size.
498
4f3a2f8d
EZ
499 * syntax.c (scan_words, update_syntax_table)
500 (prev_char_comend_first, back_comment, skip_chars)
501 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
502 EMACS_INT for buffer and string positions.
503
504 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
505
506 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
507 positions.
508
db063399
LMI
5092010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
510
f0812d35
LMI
511 * scroll.c (calculate_scrolling, line_ins_del)
512 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
513 conversion.
514
f5c7fc27
LMI
515 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
516 (region_cache_backward, region_cache_forward)
517 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
518 conversion.
519
db063399
LMI
520 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
521
522 * eval.c (verror): Fix EMACS_INT/int conversion.
523
07914cd0 524 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
525 (print_preprocess, print_check_string_charset_prop)
526 (print_object): Fix EMACS_INT/int conversion.
527
528 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
529
e6d4aefa
EZ
5302010-09-24 Eli Zaretskii <eliz@gnu.org>
531
69481da7
EZ
532 * callproc.c (Fcall_process): Use EMACS_INT for count of
533 characters read from the subprocess.
534
61bfec98
EZ
535 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
536 positions.
537 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
538 positions.
539
145582a0
EZ
540 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
541 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
542 length.
543 (advance_to_char_boundary, Fset_buffer_multibyte)
544 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
545 (overlay_touches_p, record_overlay_string, overlay_strings)
546 (recenter_overlay_lists, fix_start_end_in_overlays)
547 (modify_overlay, Fmove_overlay, report_overlay_modification)
548 (evaporate_overlays): Use EMACS_INT for buffer positions.
549
550 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
551 prototypes.
552
446470a9
EZ
553 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
554 positions.
555
e6d4aefa
EZ
556 * fns.c (Fcompare_strings, Fstring_lessp, concat)
557 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
558 (Fsubstring_no_properties, substring_both, Ffillarray)
559 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
560 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
561 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
562 (Fmd5): Use EMACS_INT for buffer and string positions and length
563 variables and arguments.
564
565 * lisp.h (substring_both): Adjust prototype.
566
eb652396
JB
5672010-09-24 Juanma Barranquero <lekktu@gmail.com>
568
569 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
570 * w32fns.c (clipboard_sequence_fn): Don't declare.
571 (globals_of_w32fns): Don't initialize it.
572
266a86bd 5732010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
574
575 * syntax.c (back_comment): Detect the case where a 1-char comment
576 starter is also the 2nd char of a 2-char comment ender.
577
266a86bd 5782010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
579
580 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
581
40283062
LMI
5822010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
583
db063399
LMI
584 * eval.c (verror): EMACS_INT/int cleanup.
585
faf8b5bc
LMI
586 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
587 unwind_protect more than 2GB worth of functions.
588
589 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
590
40283062
LMI
591 * lisp.h: Have oblookup take EMACS_INT to allow interning big
592 string and avoid compiler warnings.
593 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
594 all users.
595
596 * lread.c (oblookup): EMACS_INT/int cleanup.
597
598 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
599
fe3537c3
EZ
6002010-09-23 Eli Zaretskii <eliz@gnu.org>
601
602 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
603
604 * lisp.h (clip_to_bounds): Adjust prototype.
605
606 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
607
0350982f
LMI
6082010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
609
84c9ce05
LMI
610 * lisp.h: doprnt.c EMACS_INT/int cleanup.
611
612 * doprnt.c (doprnt): EMACS_INT/int cleanup.
613
614 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
615 cleanup.
616
0350982f
LMI
617 * lisp.h: Change the definition of all marker.c functions that
618 take and return buffer stuff to be EMACS_INT instead of int.
619
620 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
621 (buf_charpos_to_bytepos, bytepos_to_charpos)
622 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
623 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
624 for all buffer positions.
625
c50bd0d2
CY
6262010-09-23 Chong Yidong <cyd@stupidchicken.com>
627
628 * intervals.c (traverse_intervals, rotate_right, rotate_left)
629 (split_interval_right, find_interval, next_interval)
630 (delete_node, delete_interval, interval_deletion_adjustment)
631 (adjust_intervals_for_deletion, merge_interval_right)
632 (merge_interval_left, graft_intervals_into_buffer)
633 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
634
635 * intervals.h (traverse_intervals): Update prototype.
636
14162469
EZ
6372010-09-23 Eli Zaretskii <eliz@gnu.org>
638
c098fdb8
EZ
639 * indent.c (compute_motion): Use EMACS_INT for arguments to
640 region_cache_forward.
641
642 * region-cache.c (struct boundary, struct region_cache): Use
643 EMACS_INT for positions.
644 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
645 (delete_cache_boundaries, set_cache_region)
646 (invalidate_region_cache, know_region_cache)
647 (region_cache_forward, region_cache_backward, pp_cache): Use
648 EMACS_INT for buffer positions.
649
650 * region-cache.h (know_region_cache, invalidate_region_cache)
651 (region_cache_forward, region_cache_backward): Adjust prototypes.
652
653 * search.c (string_match_1, fast_c_string_match_ignore_case)
654 (looking_at_1, scan_buffer, scan_newline)
655 (find_next_newline_no_quit, find_before_next_newline)
656 (search_command, trivial_regexp_p, search_buffer, simple_search)
657 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
658 and string positions and length.
659
caefdbe7
EZ
660 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
661 (find_before_next_newline): Adjust prototypes.
c098fdb8 662
29cdc13e
EZ
663 * editfns.c (transpose_markers, update_buffer_properties)
664 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
665 (get_pos_property, Fconstrain_to_field)
666 (Fline_beginning_position, Fline_end_position, Fprevious_char)
667 (Fchar_after, Fchar_before, Finsert_char)
668 (Finsert_buffer_substring, Fcompare_buffer_substrings)
669 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
670 EMACS_INT for buffer and string position variables.
c098fdb8 671 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
672
673 * lisp.h (clip_to_bounds): Adjust prototype.
674
e79123aa
EZ
675 * intervals.c (traverse_intervals, rotate_right, rotate_left)
676 (balance_an_interval, split_interval_right, split_interval_left)
677 (find_interval, next_interval, update_interval)
678 (adjust_intervals_for_insertion, delete_node, delete_interval)
679 (interval_deletion_adjustment, adjust_intervals_for_deletion)
680 (offset_intervals, merge_interval_right, merge_interval_left)
681 (graft_intervals_into_buffer, adjust_for_invis_intang)
682 (move_if_not_intangible, get_local_map, copy_intervals)
683 (copy_intervals_to_string, compare_string_intervals)
684 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 685 and for interval tree size.
e79123aa
EZ
686
687 * intervals.h (traverse_intervals, split_interval_right)
688 (split_interval_left, find_interval, offset_intervals)
689 (graft_intervals_into_buffer, copy_intervals)
690 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
691 (update_interval): Adjust prototypes.
692
579c18d0
EZ
693 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
694 Use EMACS_INT for buffer position variables and arguments.
695
696 * composite.c (get_composition_id, find_composition)
697 (run_composition_function, compose_text)
698 (composition_gstring_width, autocmp_chars)
699 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
700 for buffer positions and string length variables and arguments.
701
702 * composite.h (get_composition_id, find_composition, compose_text)
703 (composition_gstring_width): Adjust prototypes.
704
705 * editfns.c (Fformat): Use EMACS_INT for string size variables.
706
707 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
708 EMACS_INT for string positions.
709
710 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
711 position arguments.
712
713 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
714
715 * character.c (parse_str_as_multibyte, str_as_multibyte)
716 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
717 (string_count_byte8, string_escape_byte8, c_string_width)
718 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
719 EMACS_INT for string length variables and arguments.
14162469
EZ
720
721 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
722 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
723 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
724 prototypes.
725
579c18d0
EZ
726 * font.c (font_intern_prop): Use EMACS_INT for string length
727 variables.
728
729 * font.c (font_intern_prop): Use EMACS_INT for string length
730 variables.
731
14162469
EZ
732 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
733 variables.
734
735 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
736 (Fmake_string): Protect against too large strings.
737 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
738 (live_misc_p): Use ptrdiff_t instead of int for pointer
739 differences.
740 (string_bytes, check_sblock, check_string_free_list)
741 (allocate_string_data, compact_small_strings, Fmake_string)
742 (Fmake_bool_vector, make_string, make_unibyte_string)
743 (make_multibyte_string, make_string_from_bytes)
744 (make_specified_string_string, Fmake_list, Fmake_vector): Use
745 EMACS_INT for string length variables and arguments.
746 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
747 (Fpurecopy): Use EMACS_INT for string size.
748 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
749 for vector size.
750
751 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
752 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
753 (make_pure_string, string_bytes, check_point_in_composition):
754 Adjust prototypes.
14162469 755
c8a66ab8
EZ
7562010-09-22 Eli Zaretskii <eliz@gnu.org>
757
758 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
759 (check_translation): Use EMACS_INT for buffer positions and
760 length.
761
762 * undo.c (record_marker_adjustment, record_delete)
763 (record_change, record_point, record_insert)
764 (record_property_change, Fprimitive_undo): Use EMACS_INT for
765 buffer positions.
766
767 * lisp.h (record_marker_adjustment, record_delete)
768 (record_change, record_point, record_insert)
769 (record_property_change, Fprimitive_undo): Adjust prototypes.
770
38c54d9d
JB
7712010-09-22 Juanma Barranquero <lekktu@gmail.com>
772 Eli Zaretskii <eliz@gnu.org>
773
774 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
775
413d18e7
EZ
7762010-09-22 Eli Zaretskii <eliz@gnu.org>
777
778 * minibuf.c (Fminibuffer_contents)
779 (Fminibuffer_contents_no_properties)
780 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
781 positions.
782
783 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
784 mark.
785
786 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
787 (allocate_string_data): Accept EMACS_INT for string length.
788
789 * editfns.c (Ffield_string, Ffield_string_no_properties)
790 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
791 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
792 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
793 (Ffield_end): Use EMACS_INT for buffer positions.
794
795 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
796 point with mark.
797
798 * lisp.h (allocate_string_data, make_uninit_string)
799 (make_uninit_multibyte_string, make_buffer_string)
800 (make_buffer_string_both): Adjust prototypes.
801
4b9832a6
CY
8022010-09-22 Chong Yidong <cyd@stupidchicken.com>
803
804 * xml.c: Switch to GNU indentation.
805 (make_dom): Change parse tree format to match xml.el.
806 (Fxml_parse_html_string_internal): Rename from html-parse-string.
807 (Fxml_parse_string_internal): Rename from xml-parse-string.
808
86282aab
KH
8092010-09-22 Kenichi Handa <handa@m17n.org>
810
811 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
812 only if we are not at a composition.
813 (set_iterator_to_next): Give it->end_charpos to
814 composition_compute_stop_pos.
815 (set_iterator_to_next, next_element_from_buffer): Likewise.
816
817 * dispnew.c (buffer_posn_from_coords): Fix position when the
818 current display element is a grapheme cluster in bidi-reordered
819 region.
820
840b985a
AR
8212010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
822
823 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
824 the regions may overlap.
825
5bc88f4b
JB
8262010-09-21 Juanma Barranquero <lekktu@gmail.com>
827
828 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
829
92bc9a36
DN
8302010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
831
d19e096e
DN
832 * emacs.c: Do not include sys/ioctl.h, not needed.
833
92bc9a36
DN
834 * doprnt.c: Do not include stdlib.h, config.h does it.
835 Move #include before macro definition.
836
15f844ac
DN
8372010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
838
48e24408
DN
839 * Makefile.in (temacs): Link using $(CC) not $(LD).
840 (LD_FIRSTFLAG): Define using autoconf.
841 (LD): Remove.
842
65539506
DN
843 Remove HAVE_TERMIOS definitions.
844 * s/usg5-4-common.h (HAVE_TERMIOS):
845 * s/template.h (HAVE_TERMIOS):
846 * s/gnu-linux.h (HAVE_TERMIOS):
847 * s/darwin.h (HAVE_TERMIOS):
848 * s/cygwin.h (HAVE_TERMIOS):
849 * s/bsd-common.h (HAVE_TERMIOS):
850 * s/aix4-2.h (HAVE_TERMIOS):
851 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
852 defined on all non-MS platforms.
853 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
854
15f844ac
DN
855 * xterm.c (xt_action_hook): Use const.
856
7d701334
JB
8572010-09-20 Juanma Barranquero <lekktu@gmail.com>
858
859 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
860 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
861 (gethostname) [!HAVE_SOCKETS]: Remove.
862 (SOCK_REPLACE_HANDLE): Remove macro.
863 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
864 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
865 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
866 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
867
f3ec267a
EZ
8682010-09-18 Eli Zaretskii <eliz@gnu.org>
869
870 * deps.mk (xml.o): Add dependencies.
871
93acd23d
JB
872 * xdisp.c (Fcurrent_bidi_paragraph_direction):
873 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
874
875 * bidi.c (bidi_paragraph_init): Accept an additional argument
876 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
877 search back until a paragraph with a strong directional character
878 is found, and use that to determine paragraph's base direction.
879
880 * dispextern.h (bidi_paragraph_init): Update prototype.
881
69e847be
EZ
8822010-09-17 Eli Zaretskii <eliz@gnu.org>
883
884 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
885 of w32api >= 3.15. (Bug#6989)
886
283357a7
LMI
8872010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
888
889 * process.c (wait_reading_process_output): Don't message about
890 accept-process-output unless the time limit really is zero.
891
4ddb20d6
SM
8922010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
893
894 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
895 int/Lisp_Object mixup).
896
e24ad6dd
J
8972010-09-17 Jan Djärv <jan.h.d@swipnet.se>
898
899 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
900 not HELP.
901
fb0cf781
J
9022010-09-17 Stephen Berman <stephen.berman@gmx.net>
903
904 * frame.c (Ftool_bar_pixel_width): New function to expose tool
905 bar's pixel width to Lisp (Bug#7048).
906
4ddb20d6
SM
9072010-09-14 Juanma Barranquero <lekktu@gmail.com>
908
909 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 910
318a04c6
J
9112010-09-17 Jan Djärv <jan.h.d@swipnet.se>
912
913 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
914 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
915
78a21772
KH
9162010-09-17 Kenichi Handa <handa@m17n.org>
917
918 * ftfont.c (ftfont_check_otf): Fix previous change.
919
fa3f6039
KH
9202010-09-14 Kenichi Handa <handa@m17n.org>
921
922 * ftfont.c (ftfont_check_otf): Fix the case of checking just
923 existence of GSUB or GPOS.
924
2b5491fa
JB
9252010-09-14 Juanma Barranquero <lekktu@gmail.com>
926
927 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
928
c97c655f
LMI
9292010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
930
2b5491fa 931 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
932 what it does.
933 (parse_string): Return nil when the document can't be parsed.
934
6664fc59 9352010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
936
937 * xterm.c (get_current_vm_state): New function.
938 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
939 want_fullscreen so set_wm_state calls are few (Bug#7013).
940 (x_handle_net_wm_state): Move code to get_current_vm_state and
941 call that function.
942
6664fc59 9432010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
944
945 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
946
6664fc59 9472010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
948
949 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
950 we may use designation or locking-shift.
951
6664fc59 9522010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
953
954 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
955 sequence when the source is multibyte.
956
1da70e99
AS
9572010-09-14 Andreas Schwab <schwab@linux-m68k.org>
958
6664fc59
JB
959 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
960 Don't make first argument optional. Doc fix.
1da70e99 961
26632d8d
LMI
9622010-09-14 Leo <sdl.web@gmail.com> (tiny change)
963
964 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
965 parameters for the doc string.
966
21fa8e37
LMI
9672010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
968
969 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
970
5616cc54
SM
9712010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
972
973 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
974 (syms_of_fns): Don't defsubr Sy_or_n_p.
975 * lisp.h: Don't declare Fy_or_n_p.
976 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
977
381408e2
LMI
9782010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
979
980 * xml.c (Fxml_parse_buffer): New function to parse XML files.
981
9822010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
983
984 * xml.c: New file.
985 (Fhtml_parse_buffer): New function to interface to the libxml2
986 html parsing function.
987
733946e7
JB
9882010-09-05 Juanma Barranquero <lekktu@gmail.com>
989
990 * biditype.h: Regenerate.
991
7574650a
AS
9922010-09-04 Andreas Schwab <schwab@linux-m68k.org>
993
994 * nsimage.m (ns_load_image): Check argument types.
995
996 * image.c: Remove all uses of gcpro.
997 (xpm_load): Check all lisp types.
998 (pbm_load): Likewise.
999 (png_load): Likewise.
1000 (jpeg_load): Likewise.
1001 (tiff_load): Likewise.
1002 (gif_load): Likewise.
1003 (imagemagick_load_image): Likewise.
1004 (imagemagick_load): Likewise.
1005 (svg_load): Likewise.
1006 (gs_load): Likewise.
1007
6e6b8e25
EZ
10082010-09-04 Eli Zaretskii <eliz@gnu.org>
1009
1010 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1011 try to reorder grapheme clusters, since LGSTRING should always
1012 hold them in the logical order.
1013 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1014 return glyph codes in the logical order.
1015
dbfe4532
AS
10162010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1017
1018 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 1019 (imagemagick_load_image): Fix type mismatch.
5e5992c2 1020 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 1021
6d7cc563
JD
10222010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1023
1024 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1025
1026 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1027
1028 * xselect.c: Remove declaration of cut-buffer objects and functions.
1029 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1030 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1031 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1032 (Fx_rotate_cut_buffers_internal): Remove.
1033 (syms_of_xselect): Remove defsubr of above.
1034 Remove intern of QCUT_BUFFERn.
1035
8f4e9110
SM
10362010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1037
1038 * cmds.c (Vblink_paren_function): Remove.
1039 (internal_self_insert): Make it insert N chars at a time.
1040 Don't call blink-paren-function.
1041 (Fself_insert_command): Adjust accordingly.
1042 (syms_of_cmds): Don't declare blink-paren-function.
1043
d419e1d9
KH
10442010-08-31 Kenichi Handa <handa@m17n.org>
1045
1046 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1047 characters.
1048
1049 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
1050 (produce_glyphs): Don't set it->char_to_display here.
1051 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
1052 (produce_special_glyphs): Set temp_it.char_to_display before
1053 calling produce_glyphs.
1054
1055 * xdisp.c (get_next_display_element): Set it->char_to_display
1056 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1057 characters.
1058 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1059 calling PRODUCE_GLYPHS.
1060 (append_space_for_newline): Save and store it->char_to_display.
1061 Set it->char_to_display before calling PRODUCE_GLYPHS.
1062 (extend_face_to_end_of_line): Set it->char_to_display before
1063 calling PRODUCE_GLYPHS.
1064 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1065 character to its byte value.
1066 (get_char_glyph_code): New function.
1067 (produce_stretch_glyph): Set it2.char_to_display too before
1068 calling x_produce_glyphs.
1069 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1070 non-ASCII characters. Don't set it->char_to_display here.
1071 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1072 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1073
b819f760
SM
10742010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1075
1076 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1077
07fa68a7
CY
10782010-08-31 Chong Yidong <cyd@stupidchicken.com>
1079
1080 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1081
cd196f12
SM
10822010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1083
1084 * marker.c (Fcopy_marker): Make the first arg optional.
1085
49a752bb
KH
10862010-08-30 Kenichi Handa <handa@m17n.org>
1087
1088 * composite.c (composition_update_it): Fix computing of
1089 cmp_it->width.
1090
769ae9e1
KH
10912010-08-29 Kenichi Handa <handa@m17n.org>
1092
9e69cb05 1093 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1094 corresponding bytes.
9e69cb05 1095
4520b858
J
10962010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1097
1098 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1099
fe50eb41
KH
11002010-08-26 Kenichi Handa <handa@m17n.org>
1101
1102 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1103 on calling composition_compute_stop_pos.
1104
f6aa6ec6
KH
11052010-08-25 Kenichi Handa <handa@m17n.org>
1106
9dfdbc0a
KH
1107 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1108 :otf.
1109
f6aa6ec6
KH
1110 * composite.c (composition_compute_stop_pos): Don't break
1111 composition at PT.
1112 (composition_reseat_it): Likewise. Fix calculation of character
1113 position starting a composition.
1114 (Fcomposition_get_gstring): Don't limit the number of components
1115 for automatic composition.
1116
ff94e32c
KH
11172010-08-25 Kenichi Handa <handa@m17n.org>
1118
1119 * composite.c (composition_compute_stop_pos): In forward search,
1120 pay attention to the possibility that some character after ENDPOS
1121 will be composed with charactrs before ENDPOS.
1122
1c409d0b
CY
11232010-08-24 Chong Yidong <cyd@stupidchicken.com>
1124
1125 * keyboard.c (command_loop_1): Don't clobber primary selection
1126 during handle-switch-frame (Bug#6872).
1127
0c372655
MA
11282010-08-23 Michael Albinus <michael.albinus@gmx.de>
1129
1130 * dbusbind.c: Accept UNIX domain sockets as bus address.
1131 (Fdbus_close_bus): New function.
1132 (Vdbus_registered_buses): New variable.
1133 (xd_initialize): Implement string as bus address.
1134 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1135 (Fdbus_get_unique_name, Fdbus_call_method)
1136 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1137 (Fdbus_method_error_internal, Fdbus_send_signal)
1138 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1139 check. This is done in xd_initialize_bus. Adapt doc string, if
1140 necessary.
1141 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1142 Vdbus_registered_buses.
1143 (Vdbus_registered_objects_table): Create hash.
1144
7133b7ee
JL
11452010-08-22 Juri Linkov <juri@jurta.org>
1146
1147 * keyboard.c (Fexecute_extended_command): Move reading a command name
1148 with `completing-read' to a new Elisp function `read-extended-command'.
1149 Call it to read a command to `function' (bug#5364, bug#5214).
1150
198a7a97
CY
11512010-08-22 Chong Yidong <cyd@stupidchicken.com>
1152
1153 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1154
b0126eac 11552010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1156
1157 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1158 instead of SAFE_ALLOCA.
1159
b0126eac 11602010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1161
1162 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1163 (Bug#6214).
1164
b0126eac 11652010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1166
1167 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1168
b0126eac
CY
11692010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1170
1171 * doc.c (Fsnarf_documentation): Initialize skip_file before
1172 build-files test.
1173
692f3ddc 11742010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1175
692f3ddc
JB
1176 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1177 New definitions.
b0126eac
CY
1178 (HAVE_TERMIO): Remove.
1179
5f2f0bc1
EZ
11802010-08-22 Eli Zaretskii <eliz@gnu.org>
1181
b613941b
EZ
1182 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1183
a583bbef
EZ
1184 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1185 for w32.
1186
1187 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1188 it's done in nt/config.nt.
1189
1190 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1191
5f2f0bc1
EZ
1192 * unexcoff.c (report_error, make_hdr, write_segment)
1193 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1194 Convert argument lists and prototypes to ANSI C.
1195 (make_hdr, write_segment): Remove unused variables.
1196 (unexec): Remove commented-out line. Initialize `new' to shut up
1197 compiler warnings.
1198
a7ebc409
DN
11992010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1200
1201 Simplify termio code.
1202 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1203 HAVE_TERMIO code is obsolete.
1204 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1205 * systty.h: Do not define HAVE_TCATTR.
1206 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1207 Do not define EMACS_HAVE_TTY_PGRP. Only define
1208 EMACS_GET_TTY_PGRP for !DOS_NT.
1209 * sysdep.c: Include sysselect.h unconditionally. Do not include
1210 sys/ioctl.h and termios.h, systty.h does it. Use
1211 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1212 (init_baud_rate): Remove HAVE_TERMIO code.
1213 (child_setup_tty): Remove HAVE_TERMIO code.
1214 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1215 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1216 (new_ltchars, new_tchars): Remove, unused.
1217 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1218 code. Remove special casing for __mips__, it was a no-op. Remove
1219 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1220 (init_sys_modes): Remove HPUX special case.
1221 * process.c: Include stdlib.h unconditionally. Do not include
1222 fcntl.h, systty.h does it. Remove conditional code for
1223 HAVE_SERIAL, it is always true.
1224 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1225 always true when SIGNALS_VIA_CHARACTERS is true.
1226 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1227 !WINDOWSNT means HAVE_TERMIOS.
1228 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1229 conditional, which is true for all HAVE_TERMIOS systems.
1230 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1231 instead of HAVE_TERMIOS.
1232 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1233 EMACS_HAVE_TTY_PGRP.
1234 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1235 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1236 anyway.
1237
40629f17
EZ
12382010-08-21 Eli Zaretskii <eliz@gnu.org>
1239
1240 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1241 mirroring pixel positions.
1242
d931da8c
DN
12432010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1244
b5c76d0c
DN
1245 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1246 write only.
1247 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1248 malloc_sbrk_used, nothing uses them.
1249
74815588
DN
1250 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1251 defined, unconditionally defined in lisp.h.
1252
f5817d1c
DN
1253 * term.c: Do not include <termios.h>, systty.h does it.
1254
d931da8c
DN
1255 * s/unixware.h (HAVE_TCATTR):
1256 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1257 systty.h defines it when HAVE_TERMIOS is defined.
1258
ff2de6d2 12592010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1260
b43c883c 1261 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1262 terminals: add one-character offset for R2L lines.
b43c883c 1263
491a1546
EZ
1264 * emacs.c <emacs_version>: Add a comment regarding
1265 msdos/mainmake.v2's dependency on the syntax of this declaration.
1266
2396cbba
EZ
12672010-08-20 Eli Zaretskii <eliz@gnu.org>
1268
1269 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1270 position for R2L lines by mirroring the pixel position wrt the
1271 text are box. Improve commentary.
1272
7df6150a
AS
12732010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1274
1275 * image.c (imagemagick_clear_image): Remove debugging output.
1276
a2e5caf7
SM
12772010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1278
1279 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1280 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1281 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1282 self-insert-face.
1283 (syms_of_cmds): Initialize the new vars.
1284
20d60baf
JR
12852010-08-19 Jason Rumney <jasonr@gnu.org>
1286
cc477da7
JR
1287 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1288
20d60baf
JR
1289 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1290
2c0ac867
J
12912010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1292
1293 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1294
93352106
EZ
12952010-08-18 Eli Zaretskii <eliz@gnu.org>
1296
1297 * xterm.c (x_draw_bar_cursor):
1298 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1299 R2L, draw the bar cursor on its right rather than on its left.
1300
c785836d
SM
13012010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1302
0193499f
SM
1303 * eval.c (Fdefmacro): Only obey one declaration.
1304
c785836d
SM
1305 * casefiddle.c (casify_region): Setup gl_state.
1306
9cb728a5
J
13072010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1308
1309 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1310
e1e18511
J
13112010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1312
1d77b63e 1313 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1314
64cb6c78
J
13152010-08-18 David De La Harpe Golden <david@harpegolden.net>
1316
1317 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1318 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1319 QPRIMARY => NXPrimaryPboard.
1320 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1321 NXPrimaryPboard => QPRIMARY.
1322 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1323 NXSecondaryPboard = SecondarySelection.
1324 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1325
0c9b8993
GM
13262010-08-18 Joakim Verona <joakim@verona.se>
1327
1328 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1329 defined:
1330 (imagemagick_image_p): New function to test for ImageMagic image.
1331 (imagemagick_load): New function to load ImageMagick image.
1332 (imagemagick_load_image): New function, helper for imagemagick_load.
1333 (imagemagick-types): New function.
1334 (Qimagemagick): New Lisp_object.
1335 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1336
c3554f68
SM
13372010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1338
1339 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1340 is a string.
1341
1ff2e434
J
13422010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1343
1344 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1345 x_set_tool_bar_position handler.
1346
0cc56427
EZ
13472010-08-17 Eli Zaretskii <eliz@gnu.org>
1348
1349 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1350 x_set_tool_bar_position handler, needed to support changes from
1351 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1352
e45a249b
JD
13532010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1354
921242c6
J
1355 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1356 declaration (Bug#6863).
573d150b 1357 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1358
e45a249b
JD
1359 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1360
1361 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1362
7c23dd44
CY
13632010-08-16 Chong Yidong <cyd@stupidchicken.com>
1364
1365 * keyboard.c (command_loop_1): Avoid setting selection twice,
1366 since it's done in deactivate-mark as well.
1367 (Vselect_active_regions): Change default to t. Replace `lazy'
1368 with non-default value `only', meaning only set PRIMARY for
1369 temporarily active regions.
1370
1371 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1372 select-active-regions.
1373
0005830c
J
13742010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1377 isn't a string.
1378
603dfc72
AS
13792010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1380
1381 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1382
c25ce9d0
J
13832010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1384
c3554f68
SM
1385 * keyboard.c (parse_tool_bar_item): malloc buf.
1386 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1387 new_lbl (Bug#6855).
c25ce9d0 1388
5872c762
EZ
13892010-08-14 Eli Zaretskii <eliz@gnu.org>
1390
b236615c
EZ
1391 * xterm.c (x_draw_stretch_glyph_string):
1392 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1393 the cursor on the right edge of the stretch glyph.
1394
c3554f68
SM
1395 * xdisp.c (window_box_right_offset, window_box_right):
1396 Fix commentary.
b236615c 1397
5872c762
EZ
1398 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1399 direction when point is inside a run of whitespace characters.
1400
1401 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1402
e66f9a1b
JR
14032010-08-14 Jason Rumney <jasonr@gnu.org>
1404
1405 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1406
79d6f59e
CY
14072010-08-14 Chong Yidong <cyd@stupidchicken.com>
1408
1409 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1410
1c9b4129
JR
14112010-08-13 Jason Rumney <jasonr@gnu.org>
1412
1413 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1414 (MessageBoxW_Proc): New function typedef.
1415 (unicode-message-box): New function pointer.
1416 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1417
2b4e6277
J
14182010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1419
1420 * frame.h (Qtool_bar_position): Declare.
1421
1422 * xfns.c (Fx_create_frame): Call x_default_parameter for
1423 Qtool_bar_position.
1424
94c97d85
EZ
14252010-08-13 Eli Zaretskii <eliz@gnu.org>
1426
8ee81892
EZ
1427 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1428 (report_error, report_error_1): Ditto.
1429 (write_segment): Remove "#if 0" unused code.
1430 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1431 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1432 (start_of_text): Remove unused function (was used only if NO_REMAP
1433 was NOT defined).
1434
891ef8f7
EZ
1435 * msdos.c (IT_set_face): Fix format string to match argument
1436 types.
1437 (IT_write_glyphs, IT_note_mode_line_highlight)
1438 (IT_set_frame_parameters): Remove unused variables.
1439 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1440 (IT_set_terminal_modes): Disambiguate expression in if clause.
1441 (Fmsdos_remember_default_colors): Return Qnil.
1442 (IT_set_frame_parameters): Add parens to disambiguate boolean
1443 expression for logging the cursor type to termscript.
1444 (keyboard_layout_list, keypad_translate_map)
1445 (grey_key_translate_map): Add braces in inner initializers.
1446 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1447 (dos_rawgetc): Remove unused label.
1448 (XMenuActivate): Add braces to remove ambiguous `else'.
1449 (dos_ttraw): Always return a value.
1450 (spawnve): Declare.
1451 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1452
1453 * dosfns.h (x_set_title): Declare.
1454
1455 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1456 Remove unused variables.
1457
1458 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1459 variables.
1460 (init_dosfns): Declare get_lim_data.
1461 (system_process_attributes): Declare Fget_internal_run_time.
1462
38e41e0e
EZ
1463 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1464 list to be consistent with menu.h.
1465
94c97d85
EZ
1466 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1467 warnings due to mixing of "char *" and "const char *".
1468
c5683ceb
SM
14692010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1470
1471 Introduce a new comment style "c" flag.
1472 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1473 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1474 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1475 (syntax_prefix_flag_p): New function.
1476 (Fstring_to_syntax): Understand new "c" flag.
1477 (Finternal_describe_syntax_value): Recognize new flag; use the
1478 SYNTAX_FLAGS_* macros.
1479 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1480 comment style to accomodate the new styles.
1481 (back_comment, forw_comment, Fforward_comment, scan_lists)
1482 (scan_sexps_forward): Update code to obey the new comment style flag.
1483
1484 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1485
1486 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1487
7aee76f4
J
14882010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1489
3a46642b
J
1490 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1491 first.
94dff98f 1492 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1493
1494 * gtkutil.h (xg_check_special_colors): Declare.
1495
1496 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1497 (xg_create_frame_widgets): Connect theme name changes to
1498 style_changed_cb.
1499
42ca4633
J
1500 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1501 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1502 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1503 string literal. file is const char*.
42ca4633
J
1504
1505 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1506 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1507 props. Free them at the end.
1508
1509 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1510
c5683ceb
SM
1511 * xrdb.c (get_system_app): Make path const and use char *p for
1512 non-const char.
42ca4633
J
1513
1514 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1515 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1516 char *.
1517 (button_names): Is const char *.
1518 (xdialog_show): error_name and pane_string is const.
1519
1520 * process.h (synch_process_death): Is const char*.
1521
1522 * w32menu.c (w32_menu_show):
1523 * nsmenu.m (ns_menu_show): error parameter is const char **.
1524
1525 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1526 is const char **.
1527
1528 * menu.c (Fx_popup_menu): error_name is const.
1529
1530 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1531 with unsigned char and XtPointer with void *.
1532
1533 * gtkutil.h: Replace widget_value with struct _widget_value.
1534 (enum button_type, struct _widget_value): Remove and use the one from
1535 keyboard.h.
1536
1537 * gtkutil.c (get_utf8_string): Always return an allocated string.
1538 Parameter is const.
1539 (create_dialog, xg_create_one_menuitem, create_menus)
1540 (xg_item_label_same_p, xg_update_menu_item): Free result from
1541 get_utf8_string.
1542 (xg_separator_p, xg_item_label_same_p): label is const.
1543
1544 * font.h (font_open_by_name): Make name const.
1545
1546 * font.c (font_open_by_name): Make name const.
1547
1548 * floatfns.c (matherr): Use a const char* variable for x->name.
1549
1550 * emacs.c (main): Pass char[] to putenv instead of literal.
1551
1552 * callproc.c (synch_process_death): Make const.
1553 (Fcall_process): Make signame const.
1554
9c5bd55a
J
1555 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1556 (addDisplayItemWithImage): Use const char*.
1557
1558 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1559 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1560
1561 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1562
1563 * keyboard.h (_widget_value): name, value and key are const char*.
1564
7aee76f4
J
1565 * unexmacosx.c (unexec_error): Use const char *.
1566
09d93395
DN
15672010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1568
1569 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1570 (font_parse_name, font_open_by_name):
09d93395 1571 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1572 (font_parse_name, font_open_by_name): Remove const.
09d93395 1573
671d409f
AS
15742010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1575
1576 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1577 definition.
1578
1579 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1580 * m/amdx86-64.h: Likewise.
1581 * m/arm.h: Likewise.
1582 * m/hp800.h: Likewise.
1583 * m/ia64.h: Likewise.
1584 * m/ibmrs6000.h: Likewise.
1585 * m/ibms390.h: Likewise.
1586 * m/intel386.h: Likewise.
1587 * m/iris4d.h: Likewise.
1588 * m/m68k.h: Likewise.
1589 * m/macppc.h: Likewise.
1590 * m/mips.h: Likewise.
1591 * m/sh3.h: Likewise.
1592 * m/sparc.h: Likewise.
1593 * m/template.h: Likewise.
1594 * m/vax.h: Likewise.
1595 * m/xtensa.h: Likewise.
1596 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1597 WORDS_BIG_ENDIAN.
1598 * lisp.h: Likewise.
1599 * md5.c: Likewise.
1600 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1601
8ea90aa3
DN
16022010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1603
1604 Use const char* instead of char*.
1605 Reduce the number of warnings with -Wwrite-strings.
1606 * xrdb.c (get_environ_db, get_system_name):
1607 * unexelf.c (find_section):
1608 * term.c (string_cost, string_cost_one_line, per_line_cost)
1609 (get_named_tty, init_tty):
1610 * sysdep.c (sys_subshell):
1611 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1612 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1613 * search.c (Freplace_match):
1614 * process.c (Fmake_network_process, send_process, init_process):
1615 * lread.c (Fload, init_lread):
1616 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1617 * keyboard.c (parse_tool_bar_item, struct event_head):
1618 * gtkutil.h (xg_get_font_name):
1619 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1620 (make_widget_for_menu_item, make_menu_item, create_menus)
1621 (xg_make_tool_item):
1622 * font.c (parse_matrix, font_parse_name):
1623 * floatfns.c (rounding_driver, float_error_fn_name):
1624 * filelock.c (get_boot_time_1, lock_file_1):
1625 * fileio.c (barf_or_query_if_file_exists, check_writable):
1626 * editfns.c (get_system_name, get_operating_system_release)
1627 (Fencode_time, Fset_time_zone_rule):
1628 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1629 * buffer.c (defvar_per_buffer): Use const.
1630
7815fe19 16312010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1632
692f3ddc 1633 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1634 (struct charset_sort_data): New struct.
1635 (charset_compare): New function.
692f3ddc 1636 (Fsort_charsets): New function.
7a84eee5
KH
1637 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1638
1639 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1640 number in CTEXT extended segment.
1641
7815fe19 16422010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1643
1644 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1645 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1646
7815fe19 16472010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1648
1649 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1650 (Fhash_table_size): Fix typos in docstrings.
1651 (Fmake_hash_table): Doc fix.
1652
7815fe19 16532010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1654
1655 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1656 Doc fix (bug#5625).
1657
7815fe19 16582010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1659
1660 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1661 the MSDOS definition.
1662
1b6d8cf0
DN
16632010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1664
675e2c69
DN
1665 Use const char* instead of char*.
1666 * xterm.c (x_create_toolkit_scroll_bar):
1667 * xfont.c (xfont_list_pattern):
1668 * xfns.c (x_default_scroll_bar_color_parameter)
1669 (xic_create_fontsetname, x_default_font_parameter)
1670 (x_screen_planes):
1671 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1672 (store_mode_line_string, decode_mode_spec, display_string):
1673 * menu.c (digest_single_submenu):
1674 * keymap.h (initial_define_key, initial_define_lispy_key):
1675 * keymap.c (initial_define_key, initial_define_lispy_key):
1676 * image.c (image_error, image_keyword):
1677 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1678 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1679 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1680 (ftfont_list, ftfont_match):
1681 * frame.c (frame_parm_table):
1682 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1683 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1684 (font_add_log, font_deferred_log):
1685 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1686 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1687 (font_add_log, font_deferred_log):
1688 * emacs.c (argmatch):
1689 * dispextern.h (struct it):
1690 * coding.c (ENCODE_DESIGNATION):
1691 * charset.c (define_charset_internal): Use const.
1692
25717ca1
DN
1693 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1694
c5683ceb
SM
1695 * xrdb.c: Remove include guard.
1696 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1697 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1698 realloc->xrealloc instead of using #defines.
1699
efb41e21
EZ
17002010-08-08 Eli Zaretskii <eliz@gnu.org>
1701
cd21226d 1702 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1703 * editfns.c (Fline_beginning_position, Fline_end_position):
1704 State in the doc strings that start and end of line are in the
1705 logical order.
cd21226d 1706
efb41e21
EZ
1707 * xdisp.c (display_line): Move the handling of overlay arrow after
1708 the call to find_row_edges. (Bug#6699)
1709
746812d9
CY
17102010-08-07 Chong Yidong <cyd@stupidchicken.com>
1711
1712 * keyboard.c (command_loop_1):
1713 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1714
9852377f
CY
17152010-08-07 Chong Yidong <cyd@stupidchicken.com>
1716
1717 * insdel.c (prepare_to_modify_buffer): Save active region text to
1718 Vsaved_region_selection.
1719
1720 * xselect.c (QPRIMARY): Move to keyboard.c.
1721
1722 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1723 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1724 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1725
0e9c8657
JB
17262010-08-07 Juanma Barranquero <lekktu@gmail.com>
1727
1728 * alloc.c (lisp_malloc):
1729 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1730 * charset.h (emacs_mule_charset):
1731 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1732 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1733 (bitch_at_user):
1734 * lisp.h (Fcheck_coding_system, Fget_text_property)
1735 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1736 Remove duplicate declarations.
1737
648801d1
DN
17382010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1739
32bc6709
DN
1740 * process.c: Simplify include logic.
1741
3ef1d108
DN
1742 * keyboard.h (quit_char): Add declaration.
1743 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1744 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1745 Add declarations.
3ef1d108
DN
1746 * sysdep.c:
1747 * w32.c: Remove the above declarations.
1748
97ec208f
DN
1749 Remove extern declarations in .c files, .h files have them.
1750 * xterm.c:
1751 * xdisp.c:
97ec208f
DN
1752 * msdos.c:
1753 * image.c:
1754 * gtkutil.c:
1755 * fileio.c:
1756 * eval.c: Remove declarations.
1757
94eed851
DN
1758 * frame.c (frame_params): Make const.
1759
36e053eb
DN
1760 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1761
0e843971
DN
1762 * emacs.c (emacs_copyright, emacs_version): Make static.
1763 (Vinitial_window_system, Vauto_save_list_file_name)
1764 (Vinhibit_redisplay): Remove declarations.
1765 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1766 for AIX.
1767
648801d1
DN
1768 Use const for some arrays and functions.
1769 * xterm.h (xg_set_icon_from_xpm_data):
1770 * xfns.c (xg_set_icon_from_xpm_data):
1771 * term.c (fkeys):
1772 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1773 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1774 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1775 (frame.c frame_parms):
1776 * emacs-icon.h (gnu_xpm_bits):
1777 * callint.c (callint_argfuns): Use const.
1778
8646d999
J
17792010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1780
1781 * sysdep.c: Move include term.h last of includes (Bug#6812).
1782
cb4545ad
EZ
17832010-08-06 Eli Zaretskii <eliz@gnu.org>
1784
1785 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1786
1787 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1788
1789 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1790
da7e2be6
JB
17912010-08-06 Juanma Barranquero <lekktu@gmail.com>
1792
1793 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1794
3d608a86
J
17952010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1796
7908fb60
J
1797 * xterm.h (x_get_focus_frame): Declare.
1798
1799 * keyboard.h (poll_for_input_1): Unconditionally declare.
1800
4094bf36
J
1801 * nsterm.h (x_set_menu_bar_lines): Declare.
1802
1803 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1804
3d608a86
J
1805 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1806
1807 * window.c: Include menu.h.
1808
1809 * unexmacosx.c (print_region_list, print_regions)
1810 (build_region_list, find_emacs_zone_regions)
1811 (unexec_regions_merge, read_load_commands, dump_it)
1812 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1813
1814 * term.c: Check HAVE_SYS_IOCTL_H.
1815
686b968e 1816 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1817
686b968e 1818 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1819
1820 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1821 (ns_ring_bell, ns_defined_color, hide_hourglass)
1822 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1823 Convert to ANSI C prototypes.
1824 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1825 before code.
1826
1827 * nsterm.h : Include sysselect.h.
1828 (x_sync, x_get_focus_frame, x_set_mouse_position)
1829 (x_set_mouse_pixel_position, x_make_frame_visible)
1830 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1831 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1832 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1833 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1834 Declare.
3d608a86
J
1835
1836 * nsmenu.m (popup_activated, name_is_separator)
1837 (syms_of_nsmenu): Convert to ANSI C prototypes.
1838 (runMenuAt): Prototypes and move declarations before code.
1839
1840 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1841
1842 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1843 prototypes.
1844
1845 * nsfns.m (have_menus_p, ns_display_info_for_name)
1846 (x_set_cursor_type, ns_appkit_version_str)
1847 (ns_appkit_version_int, ns_do_applescript)
1848 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1849 (syms_of_nsfns): Convert to ANSI C prototypes.
1850
1851 * menu.h (x_set_menu_bar_line): Declare.
1852 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1853
1854 * lisp.h (fmod_float): Declare.
1855
1856 * image.c (xpm_scan, xpm_make_color_table_v)
1857 (xpm_put_color_table_v, xpm_get_color_table_v)
1858 (xpm_make_color_table_h, xpm_put_color_table_h)
1859 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1860 (xpm_load): Convert to ANSI C prototypes.
1861
1862 * emacs.c: Include nsterm.h if HAVE_NS.
1863
1864 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1865
fce70521
DN
18662010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1867
1868 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1869 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1870 (socket_options): Use const char* for name.
1871
a11889ab
JB
18722010-08-06 Juanma Barranquero <lekktu@gmail.com>
1873
1874 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1875
1876 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1877 Don't declare xmalloc_widget_value and digest_single_submenu.
1878
1879 * w32font.c (Qlatin): Remove declaration.
1880
1881 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1882
c95b508f 1883 * dired.c (compile_pattern): Restore declaration.
a11889ab 1884
6254cdda
DN
18852010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1886
04bab72c
DN
1887 Remove extern declarations in .c files, .h files have them.
1888 * data.c:
1889 * dired.c:
1890 * editfns.c:
1891 * filelock.c:
1892 * fns.c:
1893 * font.c:
1894 * fontset.c:
1895 * frame.c:
1896 * fringe.c:
1897 * ftfont.c:
1898 * gtkutil.c:
1899 * indent.c:
1900 * keyboard.c:
1901 * keymap.c:
1902 * lread.c:
1903 * menu.c:
1904 * print.c:
1905 * search.c:
1906 * sound.c:
1907 * window.c:
1908 * xdisp.c:
1909 * xfaces.c:
1910 * xfns.c:
1911 * xfont.c:
1912 * xftfont.c:
1913 * xmenu.c:
1914 * xterm.c: Remove declarations.
1915
dff94ed5
DN
1916 Cleanup syssignal.h.
1917 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1918 (main_thread): Move down to remove #ifdef.
1919 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1920 Remove conditional definition following unconditional ones.
1921
99f3388e
DN
1922 * lisp.h: Remove HAVE_SHM code, unused.
1923 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1924 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1925 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1926 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1927 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1928 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1929 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1930 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1931 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1932 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1933 (Qwindow_scroll_functions, Vafter_load_alist)
1934 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1935 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1936 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1937 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1938 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1939 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1940 (initial_argv, last_nonmenu_event, load_in_progress)
1941 (noninteractive_need_newline, scroll_margin): Add declarations.
1942
1943 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1944 declarations, menu.h has them.
1945 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1946 (Vinput_method_function, Qinput_method_function)
1947 (Qevent_symbol_element_mask, last_event_timestamp):
1948 * dispextern.h (Voverflow_newline_into_fringe):
1949 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1950 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1951 (syms_of_w32font, syms_of_nsfont):
1952 * fontset.h (find_font_encoding, Qlatin):
1953 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1954 (Vtool_bar_mode, set_frame_menubar):
1955 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1956 * xterm.h (Qx_gtk_map_stock):
1957 * keymap.h (meta_prefix_char): Add declarations.
1958
9f5dd6f2
DN
1959 * term.c: Remove dead code.
1960
6254cdda
DN
1961 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1962 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1963 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1964 which is what was there before BSD_PGRPS was removed.
1965
29cf3e20
EZ
19662010-08-05 Eli Zaretskii <eliz@gnu.org>
1967
1968 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1969
1970 * unexcoff.c: Renamed from unexec.c.
1971
aaa0a19a
SM
19722010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1973
1974 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1975
8d1d9587
JB
19762010-08-03 Johan Bockgård <bojohan@gnu.org>
1977
1978 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1979 (Bug#6744)
8d1d9587 1980
9a747ba6
JD
19812010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1982
4d464ae4
JD
1983 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1984 to TRUE if depth of screen is < 16.
1985
ac01763e
JD
1986 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1987 USE_GTK_TOOLTIP.
e0d62a9b
JB
1988 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1989 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1990 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1991 USE_GTK_TOOLTIP.
1992 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1993
1994 * xterm.h (USE_GTK_TOOLTIP): New define.
1995 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1996
9a747ba6
JD
1997 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1998 to Control-D (Bug#6771).
1999
7b0815ba
JB
20002010-08-02 Juanma Barranquero <lekktu@gmail.com>
2001
2002 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2003 Wording by Drew Adams <drew.adams@oracle.com>.
2004
aa1859f5
J
20052010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2006
2007 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2008 ttip_lbl.
2009
2010 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2011 calling gtk_widget_queue_draw.
2012 (x_free_frame_resources): Call xg_free_frame_widgets.
2013
2014 * xfns.c (x_gtk_use_system_tooltips): New variable.
2015 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2016 new gtkutil tooltip functions to show the tooltip.
2017 (Fx_hide_tip): Call xg_hide_tooltip.
2018 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2019
2020 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2021 (xg_show_tooltip, xg_hide_tooltip): Declare.
2022
2023 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
2024 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2025 New functions.
aa1859f5
J
2026 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2027 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2028 Remove code that is commented out.
2029
76417ef4
SM
20302010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2031
2032 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2033
16041401
CY
20342010-07-31 Chong Yidong <cyd@stupidchicken.com>
2035
2036 * xselect.c (x_own_selection): Use list4.
2037
2c09a58f
DN
20382010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2039
2040 * buffer.c (Qwindow): Do not define, already defined in data.c.
2041 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2042
59df9fdd 20432010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 2044
59df9fdd
JB
2045 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2046 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2047 * config.in: Undef HAVE_DIRENT_H.
1c97e857 2048 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 2049 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 2050
1b231651
DN
20512010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2052
2053 Rename s/usg5-4.h -> s/usg5-4-common.h.
2054 * s/usg5-4.h: Rename file to ...
2055 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2056 * s/unixware.h:
2057 * s/sol2-6.h:
2058 * s/irix6-5.h: Update includes accordingly.
2059
bfeabdc3
JD
20602010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2061
2ebf1083
J
2062 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2063
bfeabdc3 2064 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
2065 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2066 Remove toolbar_height.
2067 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
2068 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2069 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2070 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2071
2072 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2073
2074 * xfns.c (x_set_tool_bar_position): New function.
2075 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2076 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2077 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2078
2079 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2080 and FRAME_TOOLBAR_LEFT_WIDTH.
2081
2082 * gtkutil.h (xg_change_toolbar_position): Declare.
2083
2084 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2085 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2086 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2087 (xg_create_frame_widgets): Create a hobox for placing widgets
2088 vertically. Use gtk_box_pack_start.
2089 (xg_height_or_width_changed): Renamed from xg_height_changed.
2090 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2091 (xg_update_frame_menubar, free_frame_menubar): Change to
2092 xg_height_or_width_changed.
2093 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2094 size correctly. Remove hardcoded 4, instead use handlebox size -
2095 toolbar size.
2096 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2097 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2098 (xg_pack_tool_bar): POS is a new parameter.
2099 Set orientation of tool bar based on pos.
2100 Only make handlebox_widget if NULL.
2101 Check if tool bar goes to vbox or hbox depending on pos.
2102 (xg_update_tool_bar_sizes): New function.
686b968e 2103 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2104 height, call xg_update_tool_bar_sizes instead.
2105 (free_frame_tool_bar): Remove from hbox or vbox depending on
2106 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2107 (xg_change_toolbar_position): New function.
2108
2109 * frame.h (struct frame): Add tool_bar_position.
2110 (Qbottom): Declare.
2111
2112 * frame.c (Qtool_bar_position): New variable.
2113 (make_frame): Set tool_bar_position to Qtop.
2114 (frame_parms): Add tool-bar-position.
2115 (x_report_frame_params): Store tool_bar_position.
2116 (x_set_fringe_width): Reset wm size hint after fringe changes.
2117
26469a38
DN
21182010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2119
2120 Make lisp_time_argument declaration work on all systems.
2121 * lisp.h (lisp_time_argument): Move declaration ...
2122 * systime.h (lisp_time_argument): ... here
2123 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2124
8848b728
JD
21252010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2126
2127 * vm-limit.c (POINTER): Add typedef for it.
2128 (start_of_data): Change return type from POINTER to char *.
2129
2130 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2131 HAVE_WINDOW_SYSTEM.
2132
76fd1ee9
DN
21332010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2134
0441987e
DN
2135 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2136 Remove reference to __osf__, unused.
2137
56a000c7
DN
2138 * mem-limits.h: Remove duplicated includes.
2139 (NULL): Remove definition, unused.
2140 (POINTER): Remove definition.
2141 (start_of_data): Use char* in prototype, as the function
2142 definition does.
2143
e6cba650
DN
2144 Remove extern declarations from .c files, and them to .h files.
2145 * keyboard.h (Qhelp_echo, waiting_for_input)
2146 (input_available_clear_time, ignore_mouse_drag_p)
2147 (Vdouble_click_time, real_this_command, Vthis_original_command):
2148 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2149 (Voverriding_local_map_menu_flag):
2150 * lisp.h (Qinteractive_form, use_file_dialog)
2151 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2152 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2153 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2154 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2155 (Qfunction, debug_on_next_call, Qfield)
2156 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2157 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2158 (Qfile_directory_p, Qinsert_file_contents)
2159 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2160 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2161 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2162 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2163 (Qminibuffer_prompt)
2164 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2165 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2166 (gray_bitmap_bits, xic_create_fontsetname):
2167 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2168
2169 * xsmfns.c (Vuser_login_name):
2170 * xrdb.c (Vdouble_click_time):
2171 * xfaces.c (xic_create_fontsetname):
2172 * w32select.c (waiting_for_input):
2173 * print.c (minibuffer_auto_raise):
2174 * msdos.c (Qhelp_echo):
2175 * macros.c (real_this_command):
2176 * keymap.c (Voverriding_local_map):
2177 * xterm.c (poll_for_input_1, gray_bitmap_width)
2178 (gray_bitmap_height, gray_bitmap_bits;
2179 * xmenu.c ( Voverriding_local_map)
2180 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2181 (use_file_dialog, Xt_app_con):
2182 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2183 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2184 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2185 (Qtool_bar_lines, ignore_mouse_drag_p):
2186 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2187 (Qrear_nonsticky, nconc2):
2188 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2189 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2190 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2191 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2192 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2193 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2194 (gc_in_progress):
2195 * doc.c (Voverriding_local_map, Qremap):
2196 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2197 (Vcompletion_regexp_list):
2198 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2199 (Qcompletion_ignore_case):
2200 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2201 (Vhistory_length, Vthis_original_command, real_this_command)
2202 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2203 * image.c (Qrisky_local_variable):
2204 * fontset.c (QCname):
2205 * fns.c (minibuffer_auto_raise, QCname):
2206 * dispnew.c (char_ins_del_cost):
2207 * composite.c (font_fill_lglyph_metrics):
2208 * cmds.c (Qface, Vtranslation_table_for_input):
2209 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2210 * ccl.c (charset_unicode):
2211 * callproc.c (Vtemporary_file_directory):
2212 * buffer.c (emacs_strerror): Remove extern declarations.
2213
2214 * data.c (Qwindow): Make non-static, used from other files too.
2215 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2216
76fd1ee9
DN
2217 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2218 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2219 * s/usg5-4.h (COFF):
2220 * s/template.h:
2221 * s/msdos.h (COFF, NO_REMAP):
2222 * s/ms-w32.h (NO_REMAP):
2223 * s/hpux10-20.h (NO_REMAP):
2224 * m/sparc.h (SEGMENT_MASK):
2225 * m/m68k.h (NO_REMAP):
2226 * m/intel386.h (SEGMENT_MASK):
2227 * m/arm.h (NO_REMAP):
2228 * m/alpha.h (COFF):
2229 * m/template.h: Remove references to unused defines.
2230
8a52f00a
JD
22312010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2232
2233 * xsettings.c (Ftool_bar_get_system_style): Also check for
2234 Qtext_image_horiz.
2235
2236 * xdisp.c (Qtext_image_horiz): Define.
2237 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2238 to documentation of tool-bar-style.
8a52f00a
JD
2239
2240 * lisp.h (Qtext_image_horiz): Declare.
2241
2242 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2243 style text_image_horiz.
2244
89dc303e
DN
22452010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2246
60799703
DN
2247 * emacs.c (Fkill_emacs): Remove return statement.
2248
37254dc1
DN
2249 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2250 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2251 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2252 local extern declarations.
2253
71c7345a
DN
2254 * xmenu.c: Do not included lwlib.h, not needed.
2255
6ba577cb
DN
2256 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2257
fdb183d6
DN
2258 * process.c: Move definitions earlier to minimize #ifdefs.
2259
2260 * xterm.h (x_get_customization_string, x_load_resources)
2261 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2262 (x_check_errors, x_property_data_to_lisp, defined_color)
2263 (xic_set_xfontset, x_defined_color): Use const.
2264
2265 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2266 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2267
2268 * xselect.c (selection_data_to_lisp_data)
2269 (x_property_data_to_lisp):
2270 * xrdb.c (x_get_string_resource, file_p)
2271 (x_get_customization_string, magic_file_p, search_magic_path)
2272 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2273 (x_get_string_resource): Use const.
2274
2275 * xfns.c: Include xlwmenu.h when USE_LUCID.
2276 (x_defined_color, xic_set_xfontset): Use const.
2277 (Fx_hide_tip): Remove local extern declaration.
2278
2279 * xfaces.c (Qmouse_face): Remove declaration.
2280 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2281 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2282
2283 * xdisp.c (do_mouse_tracking): Remove declaration.
2284 (add_to_log): Use const.
2285
2286 * minibuf.c (Qmouse_face): Remove declaration.
2287
2288 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2289
2290 * keyboard.h (do_mouse_tracking): Add declaration.
2291
2292 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2293 (QCdata, QCtype, Qcenter): Remove declarations.
2294
2295 * frame.c (x_get_resource_string, x_get_string_resource)
2296 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2297 (x_default_parameter): Use const.
2298
2299 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2300 (QCheight, QCsize, QCname): Remove declarations.
2301
2302 * emacs.c (main): Remove local extern declaration.
2303
2304 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2305 declarations.
2306
2307 * dispnew.c: Remove duplicate #include <unistd.h>.
2308 (update_window, update_frame_1, init_display): Remove local extern
2309 declarations.
2310
2311 * dispextern.h (add_to_log): Remove declaration.
2312 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2313 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2314
2315 * dired.c (scmp): Add const.
2316 (directory_files_internal): Remove local extern declaration.
2317
2318 * data.c (Finteractive_form): Use const.
2319
2320 * composite.c (syms_of_composite): Remove local extern declarations.
2321
2322 * charset.c (add_to_log): Remove declaration.
2323
2324 * character.c (strwidth, parse_str_to_multibyte): Add const.
2325
2326 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2327
2328 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2329
89dc303e 2330 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2331 (Lisp_Subr): Make doc and intspec constant.
2332 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2333 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2334 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2335 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2336 (display_arg): Add declarations.
89dc303e 2337
0ed082fe 23382010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2339
2340 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2341
0ed082fe
JB
2342 * window.c (Fwindow_height): Doc fix (bug#6518).
2343
23442010-07-27 Juanma Barranquero <lekktu@gmail.com>
2345
2346 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2347
ccaf0336
DN
23482010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2349
977105dc
DN
2350 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2351 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2352 functions.
2353
f5ada890
DN
2354 * frame.h (Qtty_color_mode): Add declaration.
2355
ccaf0336
DN
2356 * lisp.h (Ftop_level, Fexit_recursive_edit)
2357 (Fabort_recursive_edit): Mark as NO_RETURN.
2358
dfe3c90f
KH
23592010-07-26 Kenichi Handa <handa@m17n.org>
2360
2361 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2362 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2363
7d383292
JB
23642010-07-26 Juanma Barranquero <lekktu@gmail.com>
2365
2366 * lread.c (unreadpure, mapatoms_1): Make static.
2367
da31e629
JB
23682010-07-25 Juanma Barranquero <lekktu@gmail.com>
2369
2370 * terminfo.c (tparam): Fix prototype of tparm.
2371
7bfa6d77
AS
23722010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2373
dcc19aac
AS
2374 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2375 find start of text segment.
2376 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2377 is defined.
2378
7bfa6d77
AS
2379 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2380
63f9a672
KB
23812010-07-25 Ken Brown <kbrown@cornell.edu>
2382
2383 * vm-limit.c (check_memory_limits): Fix previous change;
2384 accidentally reverted an earlier change.
2385
24933075
KB
23862010-07-25 Ken Brown <kbrown@cornell.edu>
2387
2388 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2389 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2390
361358ea
JB
23912010-07-25 Juanma Barranquero <lekktu@gmail.com>
2392
2393 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2394 * dired.c (opendir, readdir): Fix prototypes.
2395 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2396 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2397 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2398 (telldir): Remove declaration.
2399 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2400 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2401 * syssignal.h (strsignal): Fix prototype.
2402 * term.c (tparam): Fix prototype.
2403 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2404 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2405 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2406 and __morecore.
2407 * w32gui.h (XParseGeometry): Fix prototype.
2408 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2409 * w32term.c (my_set_focus): Declare inside #if 0.
2410 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2411 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2412 (drain_message_queue, get_next_msg, post_msg, parse_button)
2413 (ClipboardSequence_Proc): Fix prototypes.
2414 (wait_for_sync): Remove declaration.
2415
630b9592
JB
24162010-07-24 Juanma Barranquero <lekktu@gmail.com>
2417
2418 * w32fns.c (w32_to_x_color): Remove, unused.
2419
6a0d6611
AS
24202010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2421
2422 * lisp.h: Remove leftover P_.
2423
4e8608ff
DN
24242010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2425
2426 * ecrt0.c, unexalpha.c: Remove files, unused.
2427
c8197983
AS
24282010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2429
2430 * cmds.c (internal_self_insert): Make static.
2431 * lisp.h (internal_self_insert): Remove declaration.
2432
97b372d7
JB
24332010-07-23 Juanma Barranquero <lekktu@gmail.com>
2434
33ac0414
JB
2435 * alloc.c (free_float):
2436 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2437 * frame.c (delete_frame_handler):
2438 * ralloc.c (reorder_bloc):
2439 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2440 Remove unused static functions.
2441
94da8397
JB
2442 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2443 it is called only from NS code.
2444
2e6c8532
JB
2445 * w32term.c (my_set_focus): #ifdef away; it is called only from
2446 "#ifdef 0" code.
2447
97b372d7
JB
2448 * w32fns.c (x_edge_detection):
2449 * xfaces.c (may_use_scalable_font_p):
2450 Remove obsolete static declarations.
2451
7c3320d8
JB
24522010-07-20 Juanma Barranquero <lekktu@gmail.com>
2453
2454 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2455 (emacs_blocked_realloc, uninterrupt_malloc):
2456 * fringe.c (w32_reset_fringes):
2457 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2458 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2459 * sound.c (be2hs, do_play_sound):
2460 * vm-limit.c (get_lim_data, ret_lim_data):
2461 * w32term.c (x_free_frame_resources):
2462 * xfaces.c (x_create_gc, x_free_gc):
2463 Convert definitions to standard C.
2464
d5273788
SM
24652010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2466
2467 * eval.c (Feval, Ffuncall): Use the new names.
2468
2469 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2470 (DEFUN): Add braces around the union initialisation and use ## to
2471 specify the right union alternative and avoid a cast.
2472
8d16a259
JB
24732010-07-18 Juanma Barranquero <lekktu@gmail.com>
2474
2475 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2476
3b8eff32
CY
24772010-07-17 Chong Yidong <cyd@stupidchicken.com>
2478
2479 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2480
499322ce
J
24812010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2482
2483 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2484 is related to the menu bar (Bug#6499).
a628ad9d 2485 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2486
f6003da5 24872010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2488
2489 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2490
2491 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2492
2493 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2494 i.e. don't put back ButtonRelease (Bug#6608).
2495
2496 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2497 instead of Window. Call xg_event_is_for_menubar when
2498 USE_GTK (Bug#6499).
2499
2500 * gtkutil.h (xg_event_is_for_menubar): Declare.
2501
2502 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2503
f6003da5 25042010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2505
2506 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2507 when it's the same as the old foreground. (Bug#6609)
2508
23243f29
J
25092010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2510
2511 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2512 widget is non-null (Bug#6645).
2513
2b23d2a6
AS
25142010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2515
01b564ff
AS
2516 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2517 Convert old-style definition.
2518
2b23d2a6
AS
2519 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2520 timestamp argument.
2521
c4affd2c
EZ
25222010-07-15 Eli Zaretskii <eliz@gnu.org>
2523
2524 * fringe.c (update_window_fringes): Restore mistakenly reverted
2525 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2526
cf28cebc
J
25272010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2528
2529 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2530 (SET_SAVED_KEY_EVENT): Remove (not used).
2531 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2532 remove size parameter.
2533 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2534 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2535 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2536 ButtonRelease.
6b2c4bd9
J
2537 (x_set_window_size_1): scroll_bar_actual_width is always
2538 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2539
2540 * xdisp.c (pending_menu_activation): Remove extern declaration.
2541 (prepare_menu_bars): Remove setting of pending_menu_activation.
2542
2543 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2544 (x_activate_menubar): Set popup_activated_flag for Xt also.
2545 Remove setting of pending_menu_activation.
cf28cebc
J
2546 (set_frame_menubar): Remove check of pending_menu_activation.
2547 Declare menubar_size before code. Correct spelling in comment.
2548
f6c1c771
KH
25492010-07-14 Kenichi Handa <handa@m17n.org>
2550
2551 * font.c (font_open_entity): Cancel previous change.
2552 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2553
20477505
EZ
25542010-07-13 Eli Zaretskii <eliz@gnu.org>
2555
77defa9a
EZ
2556 Remove subprocesses #ifdefs.
2557 * process.c <inhibit_sentinels>: Move to the common part.
2558 (Fwaiting_for_user_input_p): Move to the common part; return nil
2559 if async subprocesses aren't supported.
2560 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2561 MS-DOS. Remove "#ifdef subprocesses".
2562 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2563 (gettimeofday): Remove "#ifdef subprocesses".
2564 (wait_without_blocking): Remove function.
2565 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2566 Remove "#ifdef subprocesses".
2567 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2568 compiled on MS-DOS.
2569 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2570 wait_for_termination on MS-DOS.
2571 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2572 initialization of inhibit_sentinels.
2573 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2574 subprocesses" conditional.
2575 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2576 wait_for_termination, since `buffer' cannot be an integer when
2577 async subprocesses are not supported
2578 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2579 for ifdefing away the call to Fprocess_status.
2580
20477505
EZ
2581 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2582 away the entire body of the function.
2583
b3ffc17c
DN
25842010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2585
01faa934
DN
2586 Remove subprocesses #ifdefs from term.c.
2587 * process.c (add_keyboard_wait_descriptor)
2588 (delete_keyboard_wait_descriptor): Move to common section, do
2589 nothing when subprocesses is not defined.
a628ad9d
JB
2590 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2591 Remove subprocesses #ifdefs.
01faa934 2592
b3ffc17c
DN
2593 Convert maybe_fatal to standard C.
2594 * lisp.h (verror): Declare.
2595 * eval.c (verror): New function containing the code from ...
2596 (error): ... this. Call verror.
2597 * term.c (vfatal): New function containing the code from ...
2598 (fatal): ... this. Call vfatal.
2599 (maybe_fatal): Convert to standard C, use variable number of
2600 arguments. Declare as non-return.
2601 (init_tty): Fix maybe_fatal call.
2602
0521f580
DN
26032010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2604
2605 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2606 (_scroll_bar_note_movement): Convert definitions to standard C.
2607 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2608 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2609
ebd15611
DN
26102010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2611
2612 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2613 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2614 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2615 (xaw_jump_callback, xaw_scroll_callback)
2616 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2617 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2618 definitions to standard C.
2619 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2620 (popup_activate_callback, popup_deactivate_callback)
2621 (menu_highlight_callback, menubar_selection_callback)
2622 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2623 (free_frame_menubar, popup_selection_callback, as)
2624 (create_and_show_popup_menu, dialog_selection_callback)
2625 (create_and_show_dialog):
2626 * xfns.c (hack_wm_protocols, x_window):
2627 * xfaces.c (x_update_menu_appearance):
2628 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2629 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2630 (set_frame_size, update_wm_hints, setup_frame_gcs)
2631 (update_various_frame_slots, update_from_various_frame_slots)
2632 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2633 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2634 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2635
de06a2dd
AS
26362010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2637
a628ad9d 2638 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2639
fc549af9
EZ
26402010-07-12 Eli Zaretskii <eliz@gnu.org>
2641
2642 * process.c (setup_process_coding_systems): Move to the part
2643 shared by non-subprocesses systems, and make its body empty when
2644 subprocesses is not defined.
2645 (close_process_descs): Move to the part shared by non-subprocesses
2646 systems.
1408902e
EZ
2647 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2648 ANSI C.
fc549af9 2649
d5a3eaaf
AS
26502010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2651
2652 * editfns.c (transpose_markers): Convert old-style definition.
2653 * emacs.c (abort, shut_down_emacs, fixup_locale)
2654 (synchronize_system_time_locale)
2655 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2656 * floatfns.c (extract_float, matherr, init_floatfns)
2657 (syms_of_floatfns): Likewise.
2658 * fns.c (make_hash_table): Likewise.
2659 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2660 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2661 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2662 (ftfont_variation_glyphs): Likewise.
2663 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2664 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2665 * lread.c (read_filtered_event): Likewise.
2666 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2667 * process.c (wait_reading_process_output): Likewise.
2668 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2669 * search.c (search_buffer, boyer_moore): Likewise.
2670 * syntax.c (scan_sexps_forward): Likewise.
2671 * xdisp.c (try_scrolling): Likewise.
2672 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2673 (face_at_string_position): Likewise.
2674 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2675 * xselect.c (x_get_window_property, receive_incremental_selection)
2676 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2677 Likewise.
2678 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2679
6f704c76
DN
26802010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2681
ded80a25
DN
2682 * callproc.c (child_setup): Remove subprocesses conditional.
2683 Remove code dealing with SET_EMACS_PRIORITY, unused.
2684
49d937f4 2685 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2686 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2687
2688 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2689 (__do_global_dtors, __main): Use void in definition.
2690 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2691 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2692 the only users from ...
2693 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2694 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2695 (HAVE_VOLATILE): Remove, unused.
2696
6f704c76
DN
2697 Convert more function definitions to standard C.
2698 * xdisp.c (window_box_edges, handle_single_display_spec)
2699 (display_string): Convert definition to standard C.
2700 * scroll.c (do_direct_scrolling, scrolling_1):
2701 * dispnew.c (allocate_matrices_for_frame_redisplay)
2702 (mirrored_line_dance):
2703 * coding.c (code_convert_string):
2704 * charset.c (map_charset_chars):
2705 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2706 (Fregister_ccl_program, Fregister_code_conversion_map):
2707 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2708 (head_table): Make static and const.
2709
e6cfa7c3
AS
27102010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2711
2712 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2713 (PROFILING_LDFLAGS): Set from substitution.
2714 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2715 CFLAGS last.
2716
892dd565
KH
27172010-07-12 Kenichi Handa <handa@m17n.org>
2718
6f2cdcd1
KH
2719 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2720 (shortlisp): Likewise.
2721
892dd565
KH
2722 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2723
2724 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2725 of FONT_ENTITY_INDEX.
2726 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2727 property, get the property value dynamically.
2728 (Ffont_put): Accept font-entity and font-object too.
2729 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2730 return value changed.
2731 (syms_of_font): Adjusted for the above change.
2732
ae96d47a
AS
27332010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2734
c8fc18ee
AS
2735 * blockinput.h: Remove obsolete comment.
2736
89887d67
AS
2737 * lisp.h: Include <stddef.h>.
2738 (OFFSETOF): Don't define.
2739 (VECSIZE): Use offsetof instead of OFFSETOF.
2740 (PSEUDOVECSIZE): Likewise.
2741 * process.c (conv_sockaddr_to_lisp): Likewise.
2742 * alloc.c: Don't include <stddef.h>.
2743 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2744
ae96d47a
AS
2745 * process.c: Remove obsolete comment.
2746
635c0aa1
CY
27472010-07-11 Chong Yidong <cyd@stupidchicken.com>
2748
2749 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2750
a64df650
AS
27512010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2752
8966b757
AS
2753 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2754 index, rindex.
2755 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2756 * editfns.c (Fuser_full_name, Fformat): Likewise.
2757 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2758 * fileio.c (Ffile_symlink_p): Likewise.
2759 * filelock.c (current_lock_owner): Likewise.
2760 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2761 * fontset.c (fontset_pattern_regexp): Likewise.
2762 * lread.c (read1): Likewise.
2763 * sysdep.c (init_system_name): Likewise.
2764 * xfns.c (select_visual): Likewise.
2765 * s/hpux10-20.h (index, rindex): Don't define.
2766 * s/ms-w32.h (index): Likewise.
2767 * s/usg5-4.h: Likewise.
2768
cf237e27
AS
2769 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2770
a8fe7202
AS
2771 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2772 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2773 (egetenv): Likewise.
2774 * doprnt.c (doprnt): Likewise.
2775 * editfns.c (set_time_zone_rule, format2): Likewise.
2776 * emacs.c (decode_env_path): Likewise.
2777 * eval.c (signal_error, error): Likewise.
2778 * insdel.c (replace_range_2): Likewise.
2779 * keyboard.c (cmd_error_internal): Likewise.
2780 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2781 * print.c (write_string, write_string_1, print_error_message):
2782 Likewise.
2783 * vm-limit.c (warn_function, memory_warnings): Likewise.
2784 * xdisp.c (message1, message1_nolog, message_with_string)
2785 (vmessage, message, message_nolog): Likewise.
2786 * emacs.c: Remove duplicate declaration.
2787 * keyboard.h: Likewise.
2788 * lisp.h: Update prototypes.
2789
bb8e180f
AS
2790 * eval.c: Fix indentation problem.
2791
83380e65
AS
2792 * keyboard.c: Include "process.h"
2793
a64df650
AS
2794 * eval.c: Remove obsolete noinline declaration.
2795 * fns.c: Likewise.
2796
6a8033e1
KR
27972010-07-11 Ken Raeburn <raeburn@raeburn.org>
2798
2799 * doprnt.c (doprnt): Take a va_list argument instead of count and
2800 pointer.
2801 * eval.c (error): Change to a standard-C variadic function.
2802 * xdisp.c (vmessage): Renamed from message, made static, and
2803 changed to take a va_list argument.
2804 (message): New variadic wrapper.
2805 (message_nolog): Now a variadic function, calling vmessage.
2806 * lisp.h: Include stdarg.h for va_list.
2807 (doprnt, error, message, message_nolog): Decls updated.
2808
462aa963
EZ
28092010-07-11 Eli Zaretskii <eliz@gnu.org>
2810
2811 * process.c (syms_of_process) <delete-exited-processes>: Define
2812 even if !subprocesses.
2813 (delete_exited_processes): Ditto.
2814
2815 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2816 (delete_exited_processes): Don't define.
2817
48104462
CY
28182010-07-10 Chong Yidong <cyd@stupidchicken.com>
2819
2820 * frame.c (make_frame): Initialize menu_bar_lines and
2821 tool_bar_lines members.
2822 (make_initial_frame, make_terminal_frame): Initialize
2823 menu_bar_lines using value of menu-bar-mode.
2824
2825 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2826
f388c88a
EZ
28272010-07-10 Eli Zaretskii <eliz@gnu.org>
2828
2829 * process.c: Reshuffle #include's. Condition some of the global
2830 and static variables on `subprocesses'.
2831 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2832 Leave only one implementation.
2833 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2834 (kill_buffer_processes, Flist_system_processes)
2835 (Fprocess_attributes, init_process, syms_of_process): Unify the
2836 implementations for with subprocesses and without them.
2837
723f5a07
J
28382010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2839
2840 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2841 correct size for Motif.
2842 (free_frame_menubar): Call x_set_window_size to update frame size.
2843
2844 * xfns.c (x_window): Set borderWidth to 0 for pane and
2845 EmacsFrame. Frame size calculation is wrong otherwise.
2846
2536a4b7
MA
28472010-07-09 Michael Albinus <michael.albinus@gmx.de>
2848
2849 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2850 allows to suppress errors when polling in Emacs' main loop.
2851 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2852 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2853 (Fdbus_method_error_internal, Fdbus_send_signal)
2854 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2855 (Fdbus_register_method): Use it. (Bug#6579)
2856
5842a27b
DN
28572010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2858
2859 * alloc.c: Convert DEFUNs to standard C.
2860 * buffer.c:
2861 * bytecode.c:
2862 * callint.c:
2863 * callproc.c:
2864 * casefiddle.c:
2865 * casetab.c:
2866 * category.c:
2867 * character.c:
2868 * charset.c:
2869 * chartab.c:
2870 * cmds.c:
2871 * coding.c:
2872 * composite.c:
2873 * data.c:
2874 * dbusbind.c:
2875 * dired.c:
2876 * dispnew.c:
2877 * doc.c:
2878 * dosfns.c:
2879 * editfns.c:
2880 * emacs.c:
2881 * eval.c:
2882 * fileio.c:
2883 * filelock.c:
2884 * floatfns.c:
2885 * fns.c:
2886 * font.c:
2887 * fontset.c:
2888 * frame.c:
2889 * fringe.c:
2890 * image.c:
2891 * indent.c:
2892 * insdel.c:
2893 * keyboard.c:
2894 * keymap.c:
2895 * lread.c:
2896 * macros.c:
2897 * marker.c:
2898 * menu.c:
2899 * minibuf.c:
2900 * msdos.c:
2901 * nsfns.m:
2902 * nsmenu.m:
2903 * nsselect.m:
2904 * print.c:
2905 * process.c:
2906 * search.c:
2907 * sound.c:
2908 * syntax.c:
2909 * term.c:
2910 * terminal.c:
2911 * textprop.c:
2912 * undo.c:
2913 * w16select.c:
2914 * w32console.c:
2915 * w32fns.c:
2916 * w32font.c:
2917 * w32menu.c:
2918 * w32proc.c:
2919 * w32select.c:
2920 * window.c:
2921 * xdisp.c:
2922 * xfaces.c:
2923 * xfns.c:
2924 * xmenu.c:
2925 * xselect.c:
2926 * xsettings.c:
2927 * xsmfns.c: Likewise.
2928
d568829b
EZ
29292010-07-08 Eli Zaretskii <eliz@gnu.org>
2930
2931 * process.c (kbd_is_on_hold, hold_keyboard_input)
2932 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2933
52214050
J
29342010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2935
2936 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2937 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2938 unless USE_LUCID.
2939
313d9eb2
DN
29402010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2941
a628ad9d
JB
2942 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2943 declaration.
d8825aa3 2944
295d0d8f
DN
2945 Clean up include guards.
2946 * tparam.c: Remove include guards for config.h, string.h and code
2947 that assumes #ifndef emacs.
2948 * termcap.c:
2949 * unexalpha.c:
2950 * sysdep.c:
2951 * filemode.c:
2952 * filelock.c:
2953 * bidi.c: Likewise.
2954
49d9e6b0
DN
2955 Remove prefix-args.c
2956 * prefix-args.c: Remove file.
2957 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2958 * Makefile.in (temacs${EXEEXT}): Remove references to
2959 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2960 (mostlyclean): Remove reference to prefix-args.
2961 (prefix-args): Remove.
2962
313d9eb2
DN
2963 Simplify cstart_of_data, start_of_code and related code.
2964 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2965 (start_of_data): Merge into start_of_data function.
2966 * sysdep.c (start_of_text): Remove. Move simplified versions of
2967 it in the only users: unexaix.c and unexec.c.
2968 (read_input_waiting): Remove local declaration of quit_char.
2969 (start, etext): Remove declarations.
2970 (start_of_data): Merge with the version in mem-limits.h and move
2971 to vm-limits.c.
2972 * vm-limit.c (start_of_data): Merged and simplified version of the
2973 code formerly in mem-limits.h and sysdep.c.
2974 * unexec.c (start): New declaration, moved from sysdep.c.
2975 (start_of_text): Simplified version of the code formerly in sysdep.c.
2976 * unexaix.c (start_of_text): Simplified version of the code
2977 formerly in sysdep.c.
2978 * m/alpha.h (HAVE_TEXT_START): Remove.
2979 (TEXT_START): Move ...
2980 * unexalpha.c (TEXT_START): ... here.
2981 * s/hpux10-20.h (TEXT_START): Remove.
2982 * s/darwin.h (TEXT_START):
2983 * m/mips.h (TEXT_START):
2984 * m/macppc.h (HAVE_TEXT_START):
2985 * m/m68k.h (TEXT_START):
2986 * m/iris4d.h (TEXT_START):
2987 * m/intel386.h (TEXT_START):
2988 * m/ibmrs6000.h (TEXT_START):
2989 * m/ia64.h (HAVE_TEXT_START):
2990 * s/msdos.h (TEXT_START): Likewise.
2991
72af86bd
AS
29922010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2993
2994 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2995 (overrun_check_free, xstrdup, allocate_string)
2996 (allocate_string_data, compact_small_strings, Fmake_string)
2997 (make_unibyte_string, make_multibyte_string)
2998 (make_string_from_bytes, make_specified_string, make_float)
2999 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3000 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3001 memcpy, memmove, memset, memcmp.
3002 * atimer.c (start_atimer, set_alarm): Likewise.
3003 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3004 (mmap_realloc, init_buffer_once): Likewise.
3005 * callint.c (Fcall_interactively): Likewise.
3006 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3007 (getenv_internal_1): Likewise.
3008 * casefiddle.c (casify_object): Likewise.
3009 * ccl.c (ccl_driver): Likewise.
3010 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3011 * charset.c (load_charset_map_from_file)
3012 (load_charset_map_from_file, load_charset_map_from_vector)
3013 (Fdefine_charset_internal): Likewise.
3014 * cm.c (Wcm_clear): Likewise.
3015 * coding.c (decode_eol, decode_coding_object)
3016 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3017 * data.c (Faset): Likewise.
3018 * dired.c (directory_files_internal, file_name_completion_stat):
3019 Likewise.
3020 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3021 (clear_glyph_row, copy_row_except_pointers)
3022 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3023 (save_current_matrix, restore_current_matrix)
3024 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3025 (mirror_line_dance, scrolling_window): Likewise.
3026 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3027 Likewise.
3028 * doprnt.c (doprnt): Likewise.
3029 * editfns.c (Fuser_full_name, make_buffer_string_both)
3030 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3031 * emacs.c (sort_args): Likewise.
3032 * eval.c (Fapply, Ffuncall): Likewise.
3033 * fileio.c (Ffile_name_directory, make_temp_name)
3034 (Fexpand_file_name, search_embedded_absfilename)
3035 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3036 (auto_save_error): Likewise.
3037 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3038 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3039 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3040 (Fmake_hash_table): Likewise.
3041 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3042 * ftfont.c (ftfont_text_extents): Likewise.
3043 * getloadavg.c (getloadavg): Likewise.
3044 * image.c (define_image_type, make_image, make_image_cache)
3045 (x_create_x_image_and_pixmap, xbm_image_p)
3046 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3047 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3048 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3049 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3050 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3051 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3052 Likewise.
3053 * indent.c (scan_for_column, compute_motion): Likewise.
3054 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3055 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3056 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3057 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3058 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3059 (store_user_signal_events, menu_bar_items, tool_bar_items)
3060 (process_tool_bar_item, append_tool_bar_item)
3061 (read_char_minibuf_menu_prompt, read_key_sequence)
3062 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3063 Likewise.
3064 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3065 Likewise.
3066 * lisp.h (STRING_COPYIN): Likewise.
3067 * lread.c (Fload, read1, oblookup): Likewise.
3068 * msdos.c (Frecent_doskeys): Likewise.
3069 * nsfns.m (Fx_create_frame): Likewise.
3070 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3071 Likewise.
3072 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3073 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3074 Likewise.
3075 * nsmenu.m (ns_update_menubar): Likewise.
3076 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3077 * print.c (print_unwind, printchar, strout, print_string)
3078 (print_error_message): Likewise.
3079 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3080 (Fmake_network_process, Fnetwork_interface_list)
3081 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3082 (init_process): Likewise.
3083 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3084 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3085 Likewise.
3086 * scroll.c (do_scrolling, do_direct_scrolling)
3087 (scrolling_max_lines_saved): Likewise.
3088 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3089 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3090 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3091 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3092 (emacs_set_tty): Likewise.
3093 * term.c (encode_terminal_code, calculate_costs)
3094 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3095 Likewise.
3096 * termcap.c (tgetst1, gobble_line): Likewise.
3097 * termhooks.h (EVENT_INIT): Likewise.
3098 * tparam.c (tparam1): Likewise.
3099 * unexalpha.c (unexec): Likewise.
3100 * unexec.c (write_segment): Likewise.
3101 * unexmacosx.c (unexec_write_zero): Likewise.
3102 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3103 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3104 * w32font.c (w32font_list_family, w32font_text_extents)
3105 (w32font_list_internal, w32font_match_internal)
3106 (w32font_open_internal, compute_metrics, Fx_select_font):
3107 Likewise.
3108 * w32menu.c (set_frame_menubar, add_menu_item)
3109 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3110 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3111 * w32uniscribe.c (uniscribe_list_family): Likewise.
3112 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3113 * window.c (make_window, replace_window, set_window_buffer)
3114 (Fsplit_window): Likewise.
3115 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3116 (add_to_log, message3, x_consider_frame_title)
3117 (append_space_for_newline, extend_face_to_end_of_line)
3118 (decode_mode_spec_coding, init_glyph_string): Likewise.
3119 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3120 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3121 (face_attr_equal_p, make_realized_face, make_face_cache)
3122 (free_realized_faces, lookup_named_face, smaller_face)
3123 (face_with_height, lookup_derived_face)
3124 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3125 (Finternal_set_font_selection_order, realize_default_face)
3126 (compute_char_face, face_at_buffer_position)
3127 (face_for_overlay_string, face_at_string_position, merge_faces):
3128 Likewise.
3129 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3130 (Fx_window_property, x_create_tip_frame)
3131 (Fx_backspace_delete_keys_p): Likewise.
3132 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3133 (xfont_text_extents): Likewise.
3134 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3135 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3136 * xselect.c (x_queue_event, x_get_window_property)
3137 (receive_incremental_selection): Likewise.
3138 * xsmfns.c (x_session_check_input): Likewise.
3139 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3140 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3141 Likewise.
3142 * character.h (BCOPY_SHORT): Removed.
3143 * config.in: Regenerate.
3144 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3145 * emacs.c (main) [PROFILING]: Don't declare
3146 dump_opcode_frequencies.
3147 * lisp.h (safe_bcopy): Remove declaration.
3148 (memset) [!HAVE_MEMSET]: Declare.
3149 (memcpy) [!HAVE_MEMCPY]: Likewise.
3150 (memmove) [!HAVE_MEMMOVE]: Likewise.
3151 (memcmp) [!HAVE_MEMCMP]: Likewise.
3152 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3153 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3154 Don't define.
3155 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3156 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3157 (BCOPY_DOWNWARD_SAFE): Don't define.
3158 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3159 (memcpy) [!HAVE_MEMCPY]: Define.
3160 (memmove) [!HAVE_MEMMOVE]: Define.
3161 (memcmp) [!HAVE_MEMCMP]: Define.
3162
cb768704
J
31632010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3164
3165 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3166 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3167 New functions.
cb768704
J
3168 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3169 select on empty input mask.
3170 (init_process): Initialize kbd_is_on_hold to 0.
3171
3172 * process.h (hold_keyboard_input, unhold_keyboard_input)
3173 (kbd_on_hold_p): Declare.
3174
3175 * keyboard.c (input_available_signal): Declare.
3176 (kbd_buffer_nr_stored): New function.
3177 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3178 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3179 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3180 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3181 (tty_read_avail_input): If input is on hold, return.
3182 Don't read more that free slots in kbd_buffer (Bug#6571).
3183
3a8ce822
EZ
31842010-07-07 Eli Zaretskii <eliz@gnu.org>
3185
3186 * msdos.h:
3187 * msdos.c:
3188 * dosfns.c:
3189 * w16select.c: Convert function definitions to ANSI C.
3190
a628ad9d
JB
3191 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3192 Remove unused prototypes.
3a8ce822 3193
cf84bb53
JB
31942010-07-07 Juanma Barranquero <lekktu@gmail.com>
3195
3196 * coding.c, sysdep.c: Convert some more functions to standard C.
3197
1a4990fb
JB
31982010-07-07 Juanma Barranquero <lekktu@gmail.com>
3199
3200 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3201 (encode_coding_object): Use SPECPDL_INDEX.
3202 (syms_of_coding): Use DOS_NT.
3203
c0f2f16b
DN
32042010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3205
48fb6855
DN
3206 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3207
c0f2f16b
DN
3208 Make the function member of Lisp_Subr use standard C prototypes.
3209 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3210 (DECL_ALIGN): Add a cast for the function.
3211 * eval.c (Feval, Ffuncall): Use the proper type for each type
3212 function call.
3213
67aecef9
CY
32142010-07-06 Chong Yidong <cyd@stupidchicken.com>
3215
3216 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3217 fringe face id, so face-remapping-alist works (Bug#6091).
3218
b56ceb92
JB
32192010-07-06 Juanma Barranquero <lekktu@gmail.com>
3220
3221 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3222 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3223 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3224
7af07b96
AS
32252010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3226
3227 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3228 * lisp.h: Declare x_get_keysym_name.
3229 * keyboard.c (modify_event_symbol): Don't declare
3230 x_get_keysym_name here.
3231
69e24e34
DN
32322010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3233
3234 * ecrt0.c: Revert conversion to standard C.
3235
d3da34e0 32362010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3237
3238 * vm-limit.c (memory_warnings):
3239 * keyboard.c (modify_event_symbol):
3240 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3241 (round2, emacs_rint):
3242 * process.c (send_process, old_sigpipe): Convert function
3243 definitions and declarations to standard C.
3244
32452010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3246
3247 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3248 * xdisp.c: Convert function definitions to standard C.
3249
3250 * cm.c (cmputc): Arg C is now int, not char.
3251 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3252
00be444c
J
32532010-07-05 James Cloos <cloos@jhcloos.com>
3254
3255 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3256
3257 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3258 _NET_WM_ICON_NAME atoms.
3259
3260 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3261 and _NET_WM_ICON_NAME properties, too, matching what is
3262 done in the Gtk+ case.
3263
e4c8d29a
J
32642010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3265
ff919460
J
3266 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3267
e4c8d29a
J
3268 * xsmfns.c (SSDATA): New macro.
3269 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3270 passed to strlen/strcpy/strcat.
3271 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3272 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3273
3274 * xsettings.c (something_changedCB, parse_settings)
3275 (apply_xft_settings): Reformat prototype.
3276 (something_changedCB, init_gconf): Remove unused variable i.
3277 (read_settings): Remove unused variable long_len.
3278
3279 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3280 (xg_get_image_for_pixmap, create_dialog)
3281 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3282 (menuitem_highlight_callback, make_menu_item)
3283 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3284 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3285 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3286 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3287 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3288 (xg_tool_bar_item_expose_callback): Reformat prototype.
3289 (xg_update_menubar): GList *group => GSList *group.
3290 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3291 before use.
3292 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3293 to GTK_IMAGE (wimage).
3294
dd4c5104
DN
32952010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3296
898b4c5c
DN
3297 * atimer.c: Use "" instead of <> for local includes for
3298 consistency with the rest of the code.
3299
dd4c5104
DN
3300 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3301 * xrdb.c (get_system_name):
3302 * window.c (shrink_windows):
3303 * syntax.c (forw_comment):
3304 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3305 (ins_del_costs):
3306 * mem-limits.h (start_of_data):
3307 * lread.c (readevalloop):
3308 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3309 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3310 * frame.c (x_get_focus_frame):
3311 * floatfns.c (fmod_float):
3312 * fileio.c (choose_write_coding_system):
3313 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3314 (malloc_initialize_hook, sort_args, synchronize_locale):
3315 * doprnt.c (doprnt):
3316 * dired.c (compile_pattern):
3317 * data.c (fmod_float):
3318 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3319 (map_char_table_for_charset):
3320 * charset.c (define_charset_internal):
3321 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3322 to standard C.
3323
9a39b306 33242010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3325 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3326
3327 * lread.c (read1): Fix up last change to not mess up `c'.
3328
e6cb2cbb
JB
33292010-07-04 Juanma Barranquero <lekktu@gmail.com>
3330
3331 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3332
438105ed
JB
33332010-07-04 Juanma Barranquero <lekktu@gmail.com>
3334
3335 Fix prototypes.
3336
e5447b22 3337 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3338 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3339 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3340 arg, as required by internal_condition_case_1.
dcc7404b 3341 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3342 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3343 (analyse_first): Fix "const const".
e5447b22 3344 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3345 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3346 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3347
971de7fb
DN
33482010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3349
3350 * alloc.c: Convert function definitions to standard C.
3351 * atimer.c:
3352 * bidi.c:
3353 * bytecode.c:
3354 * callint.c:
3355 * callproc.c:
3356 * casefiddle.c:
3357 * casetab.c:
3358 * category.c:
3359 * ccl.c:
3360 * character.c:
3361 * charset.c:
3362 * chartab.c:
3363 * cmds.c:
3364 * coding.c:
3365 * composite.c:
3366 * data.c:
3367 * dbusbind.c:
3368 * dired.c:
3369 * dispnew.c:
3370 * doc.c:
3371 * doprnt.c:
3372 * ecrt0.c:
3373 * editfns.c:
3374 * fileio.c:
3375 * filelock.c:
3376 * filemode.c:
3377 * fns.c:
3378 * font.c:
3379 * fontset.c:
3380 * frame.c:
3381 * fringe.c:
3382 * ftfont.c:
3383 * ftxfont.c:
3384 * gtkutil.c:
3385 * indent.c:
3386 * insdel.c:
3387 * intervals.c:
3388 * keymap.c:
3389 * lread.c:
3390 * macros.c:
3391 * marker.c:
3392 * md5.c:
3393 * menu.c:
3394 * minibuf.c:
3395 * prefix-args.c:
3396 * print.c:
3397 * ralloc.c:
3398 * regex.c:
3399 * region-cache.c:
3400 * scroll.c:
3401 * search.c:
3402 * sound.c:
3403 * strftime.c:
3404 * syntax.c:
3405 * sysdep.c:
3406 * termcap.c:
3407 * terminal.c:
3408 * terminfo.c:
3409 * textprop.c:
3410 * tparam.c:
3411 * undo.c:
3412 * unexelf.c:
3413 * window.c:
3414 * xfaces.c:
3415 * xfns.c:
3416 * xfont.c:
3417 * xftfont.c:
3418 * xgselect.c:
3419 * xmenu.c:
3420 * xrdb.c:
3421 * xselect.c:
3422 * xsettings.c:
3423 * xsmfns.c:
3424 * xterm.c: Likewise.
3425
ae492bec
EZ
34262010-07-03 Eli Zaretskii <eliz@gnu.org>
3427
76ea4cc9
EZ
3428 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3429 frames other than the initial one. Fix reversal of colors when
3430 `reverse' is specified in the frame parameters. Call
3431 update_face_from_frame_parameter instead of
3432 internal-set-lisp-face-attribute. Initialize screen colors from
3433 initial_screen_colors[] when f->default_face_done_p is zero,
3434 instead of depending on being called with default-frame-alist as
3435 the alist argument.
3436
3437 * xfaces.c (update_face_from_frame_parameter): Move out of
3438 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3439 with HAVE_WINDOW_SYSTEM.
3440
1e6255ae
EZ
3441 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3442 to menu-bar-mode, if not set in the frame parameters or in
3443 default-frame-alist.
3444
ae492bec
EZ
3445 * w32console.c (sys_tputs): Adjust argument list to prototype in
3446 term.c.
3447
3a35a84c
JB
34482010-07-03 Juanma Barranquero <lekktu@gmail.com>
3449
3450 * lisp.h (memory_warnings): Fix prototype.
3451
3452 * cm.h (evalcost): Fix prototype.
3453
3454 * cm.c (evalcost): Fix arg type.
3455
c532d349
DN
34562010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3457
3458 * term.c (term_clear_mouse_face, Fidentity):
3459 * syssignal.h (signal_handler_t):
3460 * lisp.h (memory_warnings):
3461 * coding.h (preferred_coding_system):
3462 * cm.h (evalcost):
3463 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3464
c0b36d46
EZ
34652010-07-02 Eli Zaretskii <eliz@gnu.org>
3466
3467 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3468 from prototypes.
3469
3470 * msdos.h (load_pixmap): Don't define away.
3471
383e0970
J
34722010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3473
f57e2426
J
3474 * lisp.h:
3475 * atimer.h: Remove define for P_.
3476
3477 * alloc.c: Remove __P and P_ from .c and .m files.
3478 * atimer.c:
3479 * buffer.c:
3480 * callint.c:
3481 * category.c:
3482 * charset.c:
3483 * chartab.c:
3484 * cm.c:
3485 * coding.c:
3486 * composite.c:
3487 * data.c:
3488 * dired.c:
3489 * dispnew.c:
3490 * doc.c:
3491 * editfns.c:
3492 * emacs.c:
3493 * eval.c:
3494 * fileio.c:
3495 * filelock.c:
3496 * fns.c:
3497 * font.c:
3498 * fontset.c:
3499 * frame.c:
3500 * ftfont.c:
3501 * ftxfont.c:
3502 * gmalloc.c:
3503 * gtkutil.c:
3504 * image.c:
3505 * indent.c:
3506 * intervals.c:
3507 * keyboard.c:
3508 * keymap.c:
3509 * lread.c:
3510 * marker.c:
3511 * menu.c:
3512 * minibuf.c:
3513 * print.c:
3514 * process.c:
3515 * scroll.c:
3516 * search.c:
3517 * sound.c:
3518 * strftime.c:
3519 * syntax.c:
3520 * sysdep.c:
3521 * term.c:
3522 * terminal.c:
3523 * textprop.c:
3524 * unexalpha.c:
3525 * w32console.c:
3526 * w32fns.c:
3527 * w32font.c:
3528 * w32menu.c:
3529 * w32term.c:
3530 * w32uniscribe.c:
3531 * window.c:
3532 * xdisp.c:
3533 * xfaces.c:
3534 * xfns.c:
3535 * xfont.c:
3536 * xftfont.c:
3537 * xmenu.c:
3538 * xselect.c:
3539 * xterm.c: Likewise.
3540
383e0970 3541 Remove P_ and __P macros.
f57e2426
J
3542 * atimer.h: Remove P_ and __P macros.
3543 * buffer.h:
383e0970
J
3544 * category.h:
3545 * ccl.h:
3546 * character.h:
3547 * charset.h:
3548 * cm.h:
3549 * coding.h:
3550 * composite.h:
3551 * dispextern.h:
3552 * disptab.h:
9e892c8d 3553 * dosfns.h:
383e0970
J
3554 * font.h:
3555 * fontset.h:
3556 * frame.h:
3557 * gtkutil.h:
3558 * indent.h:
3559 * intervals.h:
3560 * keyboard.h:
3561 * keymap.h:
3562 * lisp.h:
3563 * macros.h:
3564 * md5.h:
3565 * menu.h:
3566 * msdos.h:
3567 * nsterm.h:
3568 * puresize.h:
3569 * region-cache.h:
3570 * syntax.h:
3571 * syssignal.h:
3572 * systime.h:
3573 * termhooks.h:
9e892c8d 3574 * w32font.h:
383e0970
J
3575 * w32term.h:
3576 * widget.h:
3577 * window.h:
3578 * xgselect.h:
3579 * xsettings.h:
3580 * xterm.h: Likewise.
3581
98601119
DN
35822010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3583
d9170db5
DN
3584 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3585
98601119
DN
3586 Cleanup old code.
3587 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3588 * syssignal.h: Remove code for Lynx, not supported anymore.
3589 * vm-limit.c: Remove unused code the depends on emacs not being
3590 defined and NO_LIM_DATA being defined.
3591 * mem-limits.h: Remove dead code.
3592
1f984e12
J
35932010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3594
c49d071a
J
3595 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3596
9d5405ec
J
3597 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3598 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3599
7a18115b
J
3600 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3601 parameters, they are already absolute.
3602
a628ad9d
JB
3603 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3604 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3605
a628ad9d 3606 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3607
a628ad9d
JB
3608 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3609 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3610
a628ad9d
JB
3611 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3612 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3613
c1ef4455
CY
36142010-06-30 Chong Yidong <cyd@stupidchicken.com>
3615
3616 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3617 check default-frame-alist.
3618
ce8f5a9a
AS
36192010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3620
3621 * process.c (create_process): Avoid using invalid file descriptors.
3622
3623 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3624
bf935339
J
36252010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3626
3627 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3628 Improve documentation. Return font regardless of use_system_font.
3629 (syms_of_xsettings): Improve documentation for font-use-system-font.
3630
7c33a057
CY
36312010-07-10 Chong Yidong <cyd@stupidchicken.com>
3632
2ec1b5ee
CY
3633 * xfaces.c (realize_face): Garbage the frame if a face is removed
3634 (Bug#6593).
3635
36362010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3637
3638 * keyboard.c: Remove duplicate <setjmp.h>.
3639 (read_key_sequence): Remove volatile qualifiers.
3640
36412010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3642
3643 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3644 (struct glyph_row): New members left_fringe_offset and
3645 right_fringe_offset.
3646
3647 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3648 specially.
3649 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3650 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3651
3652 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3653 Take account of bitmap offset.
2ec1b5ee
CY
3654 (draw_window_fringes): Take account of window vscroll.
3655 (update_window_fringes): Likewise. Extend top-aligned top indicator
3656 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3657 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3658 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3659
36602010-07-04 Juanma Barranquero <lekktu@gmail.com>
3661
3662 * w32fns.c (Qtooltip): Declare.
3663 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3664
36652010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3666
3667 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3668 grab on just Press (Bug#6499).
3669
36702010-07-02 Chong Yidong <cyd@stupidchicken.com>
3671
3672 * frame.c (Qtooltip): New var.
3673 (delete_frame): Use it. Fix faulty if statement. Don't update
3674 mode line for tooltip frames. Suggested by Martin Rudalics.
3675
3676 * xfns.c (x_create_tip_frame):
3677 * w32fns.c (x_create_tip_frame): Use it.
3678
36792010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3680
3681 * xftfont.c (xftfont_open): Check font width one by one also when
3682 spacing is dual.
3683
3684 * ftfont.c (ftfont_open): Ditto.
3685
6259c2ec
GM
36862010-06-30 Glenn Morris <rgm@gnu.org>
3687
a46007e9
GM
3688 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3689
6259c2ec
GM
3690 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3691
3692 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3693 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3694 * s/darwin.h (SYSTEM_MALLOC):
3695 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3696
5d1d3d04
J
36972010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3698
3699 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3700 (ns_get_screen): Don't assign integer to f.
3701 (Fx_display_color_cells): Declarations before statements.
3702
e547b051
J
37032010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3704
5fc8e5bc
J
3705 * xfns.c (x_default_font_parameter): Remove got_from_system
3706 (Bug#6526).
3707
e547b051
J
3708 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3709 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3710 defines based on what configure finds.
3711
3712 * xterm.c (XTflash): Use gtk_widget_get_window.
3713 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3714 gtk_adjustment_get_page_size.
3715 (handle_one_xevent): Use gtk_widget_get_mapped.
3716 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3717 messages.
3718
3719 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3720
3721 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3722 HAVE_GTK_FILE_SELECTION_NEW.
3723
3724 * gtkutil.c (xg_display_open, xg_display_close): Remove
3725 HAVE_GTK_MULTIDISPLAY, it is always defined.
3726 (xg_display_open): Return type is void.
3727 (gtk_widget_set_has_window)
3728 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3729 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3730 (gtk_adjustment_set_page_increment)
3731 (gtk_adjustment_get_step_increment): #define these if not found
3732 by configure.
3733 (remove_submenu): New define based on Gtk+ version.
3734 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3735 gtk_widget_get_window.
3736 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3737 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3738 (create_dialog): Use gtk_dialog_get_action_area and
3739 gtk_dialog_get_content_area.
3740 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3741 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3742 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3743 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3744 g_object_ref and g_object_unref.
3745 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3746 gtk_widget_get_sensitive.
3747 (xg_update_submenu): Use remove_submenu.
3748 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3749 properties instead to get old x and y position.
3750 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3751 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3752 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3753 (xg_get_tool_bar_widgets): New function.
3754 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3755 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3756 (toolbar_set_orientation): New #define based on if configure
3757 finds gtk_orientable_set_orientation.
3758 (xg_create_tool_bar): Call toolbar_set_orientation.
3759 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3760 instead of gtk_box_pack_start_defaults.
3761
b9229673
CY
37622010-06-28 Chong Yidong <cyd@stupidchicken.com>
3763
3764 * cmds.c (Fdelete_backward_char): Move into Lisp.
3765
bbc803b0
DN
37662010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3767
3768 * s/freebsd.h (BSD4_2): Remove redundant definition.
3769 bsd-common.h defines it already.
3770
6431f2e6
CY
37712010-06-27 Chong Yidong <cyd@stupidchicken.com>
3772
3773 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3774 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3775 tool-bar-mode, which are now set using these X resources at
3776 startup, to determine the defaults (Bug#2249).
3777
3778 * w32fns.c (Fx_create_frame):
3779 * nsfns.m (Fx_create_frame): Likewise.
3780
3781 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3782
8c079ebb
JB
37832010-06-24 Juanma Barranquero <lekktu@gmail.com>
3784
3785 * gtkutil.c (xg_update_scrollbar_pos):
3786 Avoid C99 mid-block variable declaration.
3787
e9b7ab96
JD
37882010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3789
bc869eca
JD
3790 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3791
2b7e356a 3792 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3793
3794 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3795 if height is less than scroll bar min size.
3796 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3797
e9b7ab96
JD
3798 * xfns.c (x_default_font_parameter): Try to open font from system
3799 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3800
a628ad9d 38012010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3802
3803 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3804
70c4cfbb
EZ
38052010-06-20 Eli Zaretskii <eliz@gnu.org>
3806
3807 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3808 most-positive-fixnum, be extra accurate when scrolling window
3809 start, to avoid missing the cursor line.
3810
ad5a12b5
EZ
38112010-06-19 Eli Zaretskii <eliz@gnu.org>
3812
3813 * xdisp.c (try_scrolling): Compute the limit for searching point
3814 in forward scroll from scroll_max, instead of an arbitrary limit
3815 of 10 screen lines. See
3816 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3817 and
3818 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3819 for details.
3820
2a64315a 38212010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3822
3823 * editfns.c (Fbyte_to_string): Pacify compiler.
3824
288cf4e9
SM
38252010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3826
3827 * lread.c (read1): Phase out old-style backquotes a bit more.
3828
6e6e5760
EZ
38292010-06-12 Eli Zaretskii <eliz@gnu.org>
3830
cbc4fd20
EZ
3831 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3832 bidimirror.h.
3833
3834 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3835
317fbf33
EZ
3836 * bidi.c (bidi_initialize): Remove explicit initialization of
3837 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3838 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3839 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3840
3841 * biditype.h: New file.
3842
cbc4fd20
EZ
3843 * bidimirror.h: New file.
3844
6e6e5760
EZ
3845 * window.c (syms_of_window): Doc fix (bug#6409).
3846
4176cba2
RF
38472010-06-12 Romain Francoise <romain@orebokech.com>
3848
3849 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3850 ediff-hook.
3851
cb4bfcb5
GM
38522010-06-10 Glenn Morris <rgm@gnu.org>
3853
64c60c2f
GM
3854 * editfns.c (Fbyte_to_string): Pacify compiler.
3855
cb4bfcb5
GM
3856 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3857
2ec1b5ee
CY
38582010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3859
3860 * alloc.c (Fmake_byte_code): Don't access undefined argument
3861 (Bug#6517).
3862
38632010-06-25 Chong Yidong <cyd@stupidchicken.com>
3864
3865 * xdisp.c (next_element_from_image): Ensure that after-strings are
3866 read the next time we hit handle_stop (Bug#1336).
3867
38682010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3869
3870 * lread.c (read1): Signal error if #s is not followed by paren.
3871
38722010-06-19 Chong Yidong <cyd@stupidchicken.com>
3873
3874 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3875
3876 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3877
38782010-06-15 Glenn Morris <rgm@gnu.org>
3879
3880 * editfns.c (Fbyte_to_string): Pacify compiler.
3881
e454a4a3
SM
38822010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3883
3884 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3885 Check `object's type before accessing its guts.
3886
c1b1acc2
DN
38872010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3888
3889 * s/usg5-4.h: Fix previous change.
3890 Suggested by Lawrence Mitchell <wence@gmx.li>
3891
657d4c0b
AS
38922010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3893
3894 * minibuf.c (Fall_completions): Add more checks.
3895
9b27fd9f
JB
38962010-06-08 Juanma Barranquero <lekktu@gmail.com>
3897
3898 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3899
a99ebb40
DN
39002010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3901
d7c5d87d
DN
3902 * lread.c (X_OK): Remove, unused.
3903
0263a941
DN
3904 * dispnew.c: Remove obsolete comment.
3905
a99ebb40
DN
3906 Remove INCLUDED_FCNTL.
3907 * xterm.c (INCLUDED_FCNTL):
3908 * callproc.c (INCLUDED_FCNTL):
3909 * alloc.c (INCLUDED_FCNTL):
3910 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3911 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3912
13b5221f
MR
39132010-06-07 Martin Rudalics <rudalics@gmx.at>
3914
3915 * window.c (Fselect_window): Move `record_buffer' up to the
3916 beginning of this function, so the buffer gets recorded
3917 even if the selected window does not change.
3918 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3919
5220357f
JB
39202010-06-07 Juanma Barranquero <lekktu@gmail.com>
3921
3922 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3923 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3924
3085237c
DN
39252010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3926
3927 Remove BSTRING related code, all platforms define it.
3928 * s/usg5-4.h (BSTRING): Remove definition.
3929 * s/template.h (BSTRING):
3930 * s/msdos.h (BSTRING):
3931 * s/ms-w32.h (BSTRING):
3932 * s/hpux10-20.h (BSTRING):
3933 * s/gnu-linux.h (BSTRING):
3934 * s/darwin.h (BSTRING):
3935 * s/cygwin.h (BSTRING):
3936 * s/bsd-common.h (BSTRING):
3937 * s/aix4-2.h (BSTRING): Likewise.
3938 * sysdep.c: Remove code depending on BSTRING not being defined.
3939
409f2919
JB
39402010-06-05 Juanma Barranquero <lekktu@gmail.com>
3941
3942 Remove obsolete macro BASE_LEADING_CODE_P.
3943 * character.h (BASE_LEADING_CODE_P): Remove.
3944 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3945 * buffer.c (Fset_buffer_multibyte):
3946 * indent.c (scan_for_column, compute_motion):
3947 * insdel.c (count_combining_before, count_combining_after):
3948 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3949
087fc47a
JB
39502010-06-04 Juanma Barranquero <lekktu@gmail.com>
3951
3952 Turn `directory-sep-char' into a noop.
3953
3954 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3955 (DIRECTORY_SEP): Define unconditionally.
3956
3957 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3958
3959 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3960 call dostounix_filename directly.
3961
3962 * fileio.c (CORRECT_DIR_SEPS): Remove.
3963 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3964 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3965 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3966 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3967
3968 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3969 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3970
0eb7675e
AS
39712010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3972
a628ad9d
JB
3973 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3974 (Bug#6346)
0eb7675e 3975
78edd3b7
JB
39762010-06-03 Juanma Barranquero <lekktu@gmail.com>
3977
3978 * ccl.c (Fccl_program_p): Fix typo in docstring.
3979
eb697db5
DN
39802010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3981
3982 Move UNEXEC definition to autoconf.
3983 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3984 * s/sol2-10.h (UNEXEC):
3985 * s/irix6-5.h (UNEXEC):
3986 * s/hpux10-20.h (UNEXEC):
3987 * s/gnu-linux.h (UNEXEC):
3988 * s/darwin.h (UNEXEC):
3989 * s/cygwin.h (UNEXEC):
3990 * s/bsd-common.h (UNEXEC):
3991 * s/aix4-2.h (UNEXEC):
3992 * m/alpha.h (UNEXEC): Likewise.
3993 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3994
aa3830c4
JB
39952010-06-03 Juanma Barranquero <lekktu@gmail.com>
3996
3997 Remove obsolete pre-unicode2 macros.
3998 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3999 * composite.c (composition_reseat_it):
4000 * data.c (Faset):
4001 * fns.c (Ffillarray):
4002 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4003 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4004
d234d13e
JL
40052010-06-03 Juri Linkov <juri@jurta.org>
4006
4007 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4008 (Fswitch_to_buffer): Remove unused variable `err'.
4009
0d4bcf4d
GM
40102010-06-03 Glenn Morris <rgm@gnu.org>
4011
e23dc1e2
GM
4012 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4013
05b09564
GM
4014 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4015 now that AH_BOTTOM does it.
4016
824e2978
GM
4017 * m/hp800.h (HAVE_ALLOCA):
4018 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4019
0d4bcf4d
GM
4020 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4021 Remove NOT_C_CODE tests, it is always true now.
4022
c55d2abf
DN
40232010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4024
08a494a3
DN
4025 Fix config.h includes.
4026 * xsettings.c:
4027 * xgselect.c:
4028 * nsterm.m:
4029 * nsselect.m:
4030 * nsimage.m:
4031 * nsfont.m:
4032 * nsfns.m:
4033 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4034 other files do.
4035
75934b1d
DN
4036 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4037
9f32a766
DN
4038 * s/sol2-6.h: Remove obsolete comments.
4039
c55d2abf
DN
4040 Remove unnecessary alloca.h includes.
4041 * keymap.c: Do not include alloca.h, config.h does that.
4042 * sysdep.c: Likewise. Do not define fwrite, not used.
4043
06ac62b4
SM
40442010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4045
4046 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4047 the HAVE_TERMIO where it belongs (bug#6149).
4048
1ab8293c
SM
40492010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4050
4051 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4052 of bug#6305).
4053
6dcfd253
EZ
40542010-05-30 Eli Zaretskii <eliz@gnu.org>
4055
4056 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4057 state is always cached (bug#6306).
4058
6d26bbb2
EZ
40592010-05-29 Eli Zaretskii <eliz@gnu.org>
4060
06fa4a23
EZ
4061 Fix cursor motion in bidi-reordered continued lines.
4062 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4063 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
4064 over continuation lines in bidi-reordered buffers. Return
4065 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4066 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4067
f5783df3
MA
40682010-05-28 Michael Albinus <michael.albinus@gmx.de>
4069
4070 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4071
7d56b2dd
KH
40722010-05-28 Kenichi Handa <handa@m17n.org>
4073
4074 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4075 Don't sheck SPEC if it is nil.
4076 (font_list_entities): Call font_delete_unmatched if
b925d231 4077 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4078
e58d4ff7
GM
40792010-05-28 Glenn Morris <rgm@gnu.org>
4080
4081 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4082
f1a5d776
CY
40832010-05-27 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4086 whether to trash.
4087 (internal_delete_file, Frename_file): Callers changed.
4088 (delete_by_moving_to_trash): Doc fix.
4089 (Fdelete_directory_internal): Don't move to trash.
4090
4091 * callproc.c (delete_temp_file):
4092 * buffer.c (Fkill_buffer): Callers changed.
4093
4094 * lisp.h: Update prototype.
4095
f44a59e6
CY
40962010-05-27 Chong Yidong <cyd@stupidchicken.com>
4097
4098 * xdisp.c (redisplay_window): After redisplay, check if point is
4099 still valid before setting it (Bug#6177).
4100
81ac4f35
GM
41012010-05-27 Glenn Morris <rgm@gnu.org>
4102
4103 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4104 Convert comments to Makefile format.
4105
4106 * Makefile.in (bootstrap-clean): No more Makefile.c.
4107
ccd89fb3
GM
41082010-05-26 Glenn Morris <rgm@gnu.org>
4109
90278cb6
GM
4110 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4111 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4112
ccd89fb3
GM
4113 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4114 Remove.
4115 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4116
b7050583
KH
41172010-05-26 Kenichi Handa <handa@m17n.org>
4118
4119 * composite.c (composition_compute_stop_pos): Fix condition for
4120 backward scanning.
4121
e5458003
GM
41222010-05-25 Glenn Morris <rgm@gnu.org>
4123
c345fe90
GM
4124 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4125 Move before TEMACS_LDFLAGS.
4126 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4127 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4128
2e0689ab
GM
4129 * Makefile.in (NOT_C_CODE): No longer define.
4130 (config.h): No longer include.
4131
8009a5e8
GM
4132 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4133 variables it may reference.
4134
e5458003
GM
4135 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4136 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4137
10f72a37
KH
41382010-05-25 Kenichi Handa <handa@m17n.org>
4139
4140 * dispextern.h (struct composition_it): New members rule_idx and
4141 charpos.
4142
4143 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4144 that the character positions of IT point the last character of the
4145 current grapheme cluster.
4146 (next_element_from_composition): Don't change character positions
4147 of IT.
4148 (append_composite_glyph): Set glyph->charpos to
4149 it->cmp_it.charpos.
4150
4151 * composite.c (autocmp_chars): Change the first argument to RULE,
4152 and try composition with RULE only.
4153 (composition_compute_stop_pos): Record the index number of the
4154 composition rule in CMP_IT->rule_idx.
4155 (composition_reseat_it): Call autocmp_chars repeatedly until the
4156 correct rule of the composition is found.
4157 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4158 is at the last character of the current grapheme cluster when
4159 CMP_IT->reversed_p is nonzero.
4160
171eda53 41612010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4162
171eda53
SM
4163 * editfns.c (Fbyte_to_string): New function.
4164
66a9f7f4
SM
41652010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4166
4167 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4168 Suggested by Masatake YAMATO <yamato@redhat.com>.
4169
d8c315d1
EZ
41702010-05-23 Eli Zaretskii <eliz@gnu.org>
4171
171eda53 4172 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4173
f5b416d2 41742010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4175
4176 * s/netbsd.h: If terminfo is found, use it in preference to
4177 termcap. (Bug#6190) [Backport from trunk]
4178
0416466c
EZ
41792010-05-19 Eli Zaretskii <eliz@gnu.org>
4180
11117830 4181 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4182
4183 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4184 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4185 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4186 and maxpos members instead of start.pos and end.pos, respectively.
4187
4188 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4189 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4190 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4191 (try_window_reusing_current_matrix, try_window_id):
4192 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4193 (init_from_display_pos, init_iterator): Use EMACS_INT for
4194 character and byte positions.
66a9f7f4 4195 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4196 arguments for minimum and maximum buffer positions seen by
4197 display_line for this row. Don't use iterator to find the
4198 position following the maximum one; instead, increment the
11117830
EZ
4199 position found by display_line directly. Fix logic; eol_pos
4200 should be tested before the rest. Handle the case of characters
4201 delivered from display vector (bug#6036). Fix tests related to
4202 it->method. Handle the truncated_on_right_p rows.
4203 (RECORD_MAX_MIN_POS): New macro.
4204 (display_line): Use it to record the minimum and maximum buffer
4205 positions for glyphs in the row being assembled. Record the
4206 position of the newline that terminates the line. If word wrap is
4207 in effect, restore minimum and maximum positions seen up to the
4208 wrap point, when iterator returns to it.
4209 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4210 row and cursor not already at point. Restore original pre-bidi
4211 code for unidirectional buffers.
d36fe237
EZ
4212
4213 * dispnew.c (increment_row_positions, check_matrix_invariants):
4214 Increment and check row->start.pos and row->end.pos, in addition
4215 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4216
11117830
EZ
4217 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4218 Display truncated_on_left_p and truncated_on_right_p flags.
4219 Formatting fixes.
4220 (pmtxrows): Display the ordinal number of each row. Don't display
4221 rows beyond the last one.
4222
4223 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4224 it is not copied by bidi_copy_it.
4225
6e83d800
EZ
42262010-05-22 Eli Zaretskii <eliz@gnu.org>
4227
4228 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4229 (Bug#6237)
4230
110683ad
CY
42312010-05-22 Chong Yidong <cyd@stupidchicken.com>
4232
4233 * image.c (Fimage_flush): Rename from image-refresh.
4234
98fe5161
CY
42352010-05-21 Chong Yidong <cyd@stupidchicken.com>
4236
4237 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4238 just one window.
4239
4240 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4241 (clear_image_cache): If the number of cached images is unusually
4242 large, decrease the cache eviction delay (Bug#6230).
4243
e8752c66
GM
42442010-05-21 Glenn Morris <rgm@gnu.org>
4245
66dbf213
GM
4246 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4247 Move these rules to ns.mk.
4248 * ns.mk: New file.
4249
04384b2d
GM
4250 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4251
e8752c66
GM
4252 * Makefile.in (CANNOT_DUMP): New, set by configure.
4253 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4254
2e2bbddb
JL
42552010-05-20 Juri Linkov <juri@jurta.org>
4256
4257 * fileio.c (Fdelete_file): Change interative spec to use
4258 `read-file-name' like in `find-file-read-args' where the default
4259 value is `default-directory' instead of `buffer-file-name'.
4260 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4261
31c4aaf6
KR
42622010-05-20 Kevin Ryde <user42@zip.com.au>
4263
4264 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4265 (Voverriding_terminal_local_map, Vsystem_key_alist)
4266 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4267
9d5cf9b6
GM
42682010-05-20 Glenn Morris <rgm@gnu.org>
4269
4270 * Makefile.in (DEPDIR): New constant.
4271 (DEPFLAGS): Set with configure, not cpp.
4272 (MKDEPDIR): New, set by configure.
4273 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4274 (clean): Use $DEPDIR.
4275 (deps_frag): Include from configure.
4276 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4277 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4278
ead6f8f5
EZ
4279 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4280 reallocation of the cache. (Bug#6210)
4281
7f34aec3
GM
42822010-05-19 Glenn Morris <rgm@gnu.org>
4283
d494e8f2
GM
4284 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4285
c1d0dcfd
GM
4286 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4287 (GNULIB_VAR): Remove.
4288 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4289
4290 * m/ibms390x.h (LINKER):
4291 * m/macppc.h (LINKER) [GNU_LINUX]:
4292 * s/aix4-2.h (ORDINARY_LINK):
4293 * s/cygwin.h (LINKER):
4294 * s/darwin.h (ORDINARY_LINK):
4295 * s/gnu.h (ORDINARY_LINK):
4296 * s/netbsd.h (LINKER):
4297 * s/usg5-4.h (ORDINARY_LINK):
4298 Move to configure.
4299
7f34aec3
GM
4300 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4301
754790b6
CY
43022010-05-18 Chong Yidong <cyd@stupidchicken.com>
4303
4304 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4305 prevent stack overflow if number of arguments is too large
4306 (Bug#6214).
4307
161e44d1
JB
43082010-05-18 Juanma Barranquero <lekktu@gmail.com>
4309
4310 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4311
be4ff9da
GM
43122010-05-18 Glenn Morris <rgm@gnu.org>
4313
9539dc5d
GM
4314 * s/gnu-linux.h: Combine two conditionals.
4315
4316 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4317 $(POST_ALLOC_OBJ).
4318
40dc6bf4
GM
4319 * Makefile.in (RALLOC_OBJ): New, set by configure.
4320 (rallocobj): Replace with the previous variable.
4321 (otherobj): Use $RALLOC_OBJ.
4322
4323 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4324 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4325
be4ff9da
GM
4326 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4327 (gmallocobj, vmlimitobj): Replace with previous two variables.
4328 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4329
16455a85
GM
43302010-05-17 Glenn Morris <rgm@gnu.org>
4331
4332 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4333 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4334
5fdb7468
GM
43352010-05-16 Glenn Morris <rgm@gnu.org>
4336
7ca1f3f9
GM
4337 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4338
7541dad5
GM
4339 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4340
da53fab9
GM
4341 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4342 trailing "/".
4343
b02a6645
GM
4344 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4345 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4346
8877ca0f
GM
4347 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4348 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4349 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4350 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4351 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4352
5fdb7468
GM
4353 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4354 Remove ${STARTFLAGS}, nothing ever sets it.
4355
95adb4b1
DN
43562010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4357
4358 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4359
676b6304
GM
43602010-05-16 Glenn Morris <rgm@gnu.org>
4361
9beab9ce
GM
4362 * Makefile.in (LIBX_BASE): Always define.
4363
8a95f0e7
GM
4364 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4365
676b6304
GM
4366 * Makefile.in (LIBXT): Always define.
4367
6e546d18
GM
43682010-05-15 Glenn Morris <rgm@gnu.org>
4369
4235ca47 4370 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4371
6e546d18
GM
4372 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4373 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4374
8c5ff6dd
KR
43752010-05-15 Ken Raeburn <raeburn@raeburn.org>
4376
560bb7ae 4377 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4378 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4379
8b4eb796
KR
4380 * emacs.c (main): Initialize initial-environment and
4381 process-environment before generating from env, not after.
4382
8c5ff6dd
KR
4383 Handle --version reasonably in CANNOT_DUMP configuration.
4384 * emacs.c (emacs_version, emacs_copyright): New string variables.
4385 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4386 (syms_of_emacs): Defvar them, and initialize them from the C
4387 string variables.
4388 (main): If initialization hasn't been done, print initial version
4389 info from the C strings, instead of starting an interactive session.
4390
dbd3f723
EZ
43912010-05-15 Eli Zaretskii <eliz@gnu.org>
4392
d20e1419
EZ
4393 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4394 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4395 (bidi_paragraph_init): Remove redundant assertion that we are at
4396 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4397
4398 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4399 (syms_of_xdisp): Defsubr it.
4400
d36fe237
EZ
4401 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4402
dbd3f723
EZ
4403 * Makefile.in: Fix MSDOS-related comments.
4404
02be533b
GM
44052010-05-15 Glenn Morris <rgm@gnu.org>
4406
1a82cca9
GM
4407 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4408 (really-lwlib, really-oldXMenu): Always define.
4409 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4410
3df7b338
GM
4411 * Makefile.in: Simplify cpp conditional.
4412
2b5f541b
GM
4413 * Makefile.in (${ns_appdir}): Simplify using umask.
4414
02be533b
GM
4415 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4416
4e2db1fe
SM
44172010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4418
4419 * eval.c (specbind): Remove left-over duplicate test.
4420 Disallow let-binding frame-local vars. Add comment.
4421
4b292a22
EZ
44222010-05-14 Eli Zaretskii <eliz@gnu.org>
4423
2fe72643 4424 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4425 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4426 (bidi_init_it): Call it.
4427 (bidi_cache_iterator_state): Enlarge the cache if needed.
4428
4e2db1fe 4429 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4430 bidi_get_next_char_visually. All callers changed.
4431
82ebc97b
KH
44322010-05-14 Kenichi Handa <handa@m17n.org>
4433
4434 * dispextern.h (struct composition_it): New member reversed_p.
4435
4436 * composite.c (composition_compute_stop_pos): Search backward if
4437 ENDPOS < CHARPOS.
4438 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4439 Set CMP_IT->reversed_p.
b4b6e17e 4440 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4441
4e2db1fe
SM
4442 * xdisp.c (set_iterator_to_next):
4443 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4444 scanning backward. Call composition_compute_stop_pos if scan
4445 direction is changed.
4446 (next_element_from_buffer): Call composition_compute_stop_pos with
4447 negative ENDPOS if we are scanning backward.
4448 (next_element_from_composition): Pay attention to
4449 IT->cmp_it.reversed_p.
4450
0e5d7800
KH
44512010-05-14 Kenichi Handa <handa@m17n.org>
4452
560bb7ae 4453 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4454
cb027b32
GM
44552010-05-14 Glenn Morris <rgm@gnu.org>
4456
177b0288
GM
4457 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4458
fbc00890
GM
4459 * Makefile.in (mktime, X11, register): Move undefs to configure.
4460
f14d1dfd
GM
4461 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4462 (MSDOS_X_OBJ): New variable.
4463 (MSDOS_SUPPORT_REAL): New constant.
4464 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4465 (obj): Use MSDOS_X_OBJ.
4466 (lisp): Use MSDOS_SUPPORT as a variable.
4467
11842bd8
GM
4468 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4469 (GPM_MOUSE_SUPPORT): Now it's a constant.
4470 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4471 not cpp.
4472
489d31a4 4473 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4474 (ns_appresdir): Remove, unused.
e20f1f07 4475
489d31a4
GM
4476 * Makefile.in (SHELL): Move outside cpp section.
4477
cb027b32
GM
4478 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4479
5a903aa9
GM
44802010-05-13 Glenn Morris <rgm@gnu.org>
4481
3369c79f
GM
4482 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4483 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4484
d5e982a6
GM
4485 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4486 HAVE_WINDOW_SYSTEM must be too.
4487
6192e163
GM
4488 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4489 (lisp): Remove WINNT_SUPPORT.
4490
472c5d6b
GM
4491 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4492 Let configure set these variables (to empty) in this case as well.
4493
0116466b
GM
4494 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4495 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4496
5a903aa9
GM
4497 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4498 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4499 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4500 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4501 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4502 the values output by configure.
5a903aa9
GM
4503 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4504
1a0d7c06
GM
45052010-05-12 Glenn Morris <rgm@gnu.org>
4506
b5457f14
GM
4507 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4508 (LINKER_WAS_SPECIFIED): Remove.
4509
1a0d7c06
GM
4510 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4511 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4512 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4513 * s/cygwin.h (LIB_GCC):
4514 * s/freebsd.h (LIB_GCC):
4515 * s/gnu-linux.h (LIB_GCC):
4516 * s/msdos.h (LIB_GCC):
4517 * s/netbsd.h (LIB_GCC):
4518 Move to configure.
4519
3ffd4615 45202010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4521
4522 * ftfont.c: Fix incorrect parentheses of #if condition for
4523 definining M17N_FLT_USE_NEW_FEATURE.
4524
acddf8ae
GM
45252010-05-11 Glenn Morris <rgm@gnu.org>
4526
4527 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4528 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4529
ae5e04fa
EZ
45302010-05-10 Eli Zaretskii <eliz@gnu.org>
4531
4532 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4533 unibyte buffers. See
4534 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4535
7490175b
GM
45362010-05-10 Glenn Morris <rgm@gnu.org>
4537
97efb629
GM
4538 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4539 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4540 (LIBES): Use LIBS_SYSTEM as a variable.
4541 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4542 * s/aix4-2.h (LIBS_SYSTEM):
4543 * s/freebsd.h (LIBS_SYSTEM):
4544 * s/hpux10-20.h (LIBS_SYSTEM):
4545 * s/sol2-6.h (LIBS_SYSTEM):
4546 * s/unixware.h (LIBS_SYSTEM):
4547 Move to configure.
4548
7490175b
GM
4549 * s/aix4-2.h (MAIL_USE_LOCKF):
4550 * s/bsd-common.h (MAIL_USE_FLOCK):
4551 * s/darwin.h (MAIL_USE_FLOCK):
4552 * s/gnu-linux.h (MAIL_USE_FLOCK):
4553 * s/irix6-5.h (MAIL_USE_FLOCK):
4554 * s/template.h (MAIL_USE_FLOCK):
4555 Move to configure.
4556
0235128c 45572010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4558
4559 * Version 23.2 released.
4560
0235128c 45612010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4562
4563 * composite.c (autocmp_chars): Save point as marker before calling
4564 auto-composition-function (Bug#5984).
4565
4566 * lisp.h (restore_point_unwind): Add prototype.
4567
4568 * fileio.c (restore_point_unwind): Remove static attribute.
4569
0235128c 45702010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4571
4572 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4573 new feature of libotf and m17n-flt.
0235128c
SM
4574 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4575 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4576 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4577 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4578 that OUT is NULL. Use OTF_drive_gsub_with_log and
4579 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4580 OTF_drive_gpos.
4581 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4582 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4583 Setup mflt_enable_new_feature and mflt_try_otf.
4584
4721152c
J
45852010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4586
4587 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4588
4589 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4590 box and toolbar (Bug #6139).
4591 (xg_create_tool_bar): Remove comment (Bug #6139).
4592 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4593 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4594
ee0a16cf
JB
45952010-05-08 Juanma Barranquero <lekktu@gmail.com>
4596
4597 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4598 Update dependencies.
4599
96d79611
EZ
46002010-05-08 Eli Zaretskii <eliz@gnu.org>
4601
4602 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4603 R2L lines.
4604
40c17879
GM
46052010-05-08 Glenn Morris <rgm@gnu.org>
4606
7b42b29f
GM
4607 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4608
40c17879
GM
4609 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4610 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4611 (termcapobj): Replace with TERMCAP_OBJ.
4612 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4613 (LIBES): Use LIBS_TERMCAP as a variable.
4614
4615 * s/freebsd.h (osreldate.h): No longer include, since this file
4616 does not use __FreeBSD_version any more.
4617
4618 * s/aix4-2.h (TERMINFO):
4619 * s/cygwin.h (TERMINFO):
4620 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4621 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4622 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4623 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4624 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4625 * s/irix6-5.h (TERMINFO):
4626 * s/netbsd.h (LIBS_TERMCAP):
4627 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4628 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4629 * s/usg5-4.h (TERMINFO):
4630 Move to configure.
4631
94b612ad
SM
46322010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4633
4634 * eval.c (unbind_to): Don't unbind a local binding into the global
4635 binding when the local binding disappeared. Inversely, don't unbind
4636 a global binding into a newly created local binding.
4637 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4638 can specify the frame to use, when applicable. Adjust callers.
4639
15e12598 46402010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4641 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4642
4643 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4644
f724825e
EZ
46452010-05-07 Eli Zaretskii <eliz@gnu.org>
4646
5cba3209
EZ
4647 * w32fns.c: Include w32.h.
4648 (Fw32_shell_execute): Decode the error message before passing it
4649 to `error'. (Bug#6126)
4650
d16bdfc3
EZ
4651 * msdos.c (dos_set_window_size):
4652 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4653 instead of `XSYMBOL (foo)->value'.
4654
59d93e87
EZ
46552010-05-07 Eli Zaretskii <eliz@gnu.org>
4656
9fdec8bc
EZ
4657 Fix the MS-DOS build, broken by autoconfiscation.
4658
4659 * Makefile.in: Don't use Make-style comments past the "start of
4660 cpp stuff" line.
4661 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4662
4663 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4664 edited directly by msdos/sed1v2.inp).
f724825e 4665
2f86b22b
GM
46662010-05-07 Glenn Morris <rgm@gnu.org>
4667
4668 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4669 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4670 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4671 move out of cpp section.
4672 * s/freebsd.h (LD_SWITCH_SYSTEM):
4673 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4674 * s/netbsd.h (LD_SWITCH_SYSTEM):
4675 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4676
49ebbd65
DN
46772010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4678
4679 Define LIB_STANDARD and START_FILES using autoconf.
4680 * s/usg5-4.h (LIB_STANDARD):
4681 * s/netbsd.h (START_FILES):
4682 * s/irix6-5.h (LIB_STANDARD):
4683 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4684 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4685 * s/freebsd.h (START_FILES):
4686 * s/darwin.h (START_FILES):
4687 * s/cygwin.h (START_FILES):
4688 * s/aix4-2.h (LIB_STANDARD):
4689 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4690 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4691 autoconf, not cpp.
4692
d43c06d6
DN
46932010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4694
28823648
DN
4695 Remove NEED_BSDTTY and NEED_UNISTD_H.
4696 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4697 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4698 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4699 <sys/ptyio.h> and <unistd.h>.
4700
aca00430
DN
4701 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4702
d43c06d6
DN
4703 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4704 * s/gnu.h (START_FILES): Remove empty definition.
4705
3e56b11d
JD
47062010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4707
4708 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4709
e3cf0cde
GM
47102010-05-06 Glenn Morris <rgm@gnu.org>
4711
4712 * Makefile.in (CPP, LN_S): Remove unused variables.
4713
774b9a60
SM
47142010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4715
4716 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4717
4ab92842
LM
47182010-05-05 Lawrence Mitchell <wence@gmx.li>
4719
4720 * m/sparc.h: Fix typo in earlier change.
4721
178f2507
SM
47222010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4723
4724 Misc tweaks.
4725 * eval.c (Fdefvaralias): Remove unintended nested if.
4726 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4727
80f00217 47282010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4729
4730 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4731
ef03a4e6
DN
47322010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4733
58eb6cf0
DN
4734 Remove BSD_PGRPS.
4735 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4736 * s/gnu-linux.h (BSD_PGRPS): Remove.
4737 * term.c (dissociate_if_controlling_tty):
4738 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4739 (init_sys_modes, reset_sys_modes):
4740 * emacs.c (main):
4741 * callproc.c (Fcall_process, child_setup): Remove code depending
4742 on BSD_PGRPS.
4743
ef03a4e6
DN
4744 Remove POSIX_SIGNALS.
4745 * s/usg5-4.h (POSIX_SIGNALS):
4746 * s/netbsd.h (POSIX_SIGNALS):
4747 * s/msdos.h (POSIX_SIGNALS):
4748 * s/ms-w32.h (POSIX_SIGNALS):
4749 * s/hpux11.h (POSIX_SIGNALS):
4750 * s/gnu.h (POSIX_SIGNALS):
4751 * s/gnu-linux.h (POSIX_SIGNALS):
4752 * s/freebsd.h (POSIX_SIGNALS):
4753 * s/darwin.h (POSIX_SIGNALS):
4754 * s/cygwin.h (POSIX_SIGNALS):
4755 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4756 * s/unixware.h:
4757 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4758 * process.c (create_process):
4759 * syssignal.h:
4760 * sysdep.c (wait_for_termination, init_signals):
4761 * process.c (create_process):
4762 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4763 remove all code that assumes the contrary.
4764
49628785
GM
47652010-05-04 Glenn Morris <rgm@gnu.org>
4766
27a2cdfc
GM
4767 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4768 variable.
4769 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4770 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4771 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4772 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4773 LD_SWITCH_SYSTEM_tmp.
4774 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4775 New variables, set by configure.
4776
eb21eab5
GM
4777 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4778 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4779 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4780 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4781 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4782
49628785
GM
4783 * s/aix4-2.h (C_SWITCH_SYSTEM):
4784 * m/alpha.h (C_SWITCH_MACHINE):
4785 Move to configure.in.
4786 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4787 New variables, set by configure.
4788 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4789 $c_switch_machine and $c_switch_system.
4790
7dff330b
DN
47912010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4792
4793 * s/hpux10-20.h (LIB_STANDARD): New definition.
4794 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4795 on it, not used anymore.
4796
53967e09
CY
47972010-05-03 Chong Yidong <cyd@stupidchicken.com>
4798
4799 * eval.c (internal_condition_case_n): Rename from
4800 internal_condition_case_2.
4801 (internal_condition_case_2): New function.
4802
4803 * xdisp.c (safe_call): Use internal_condition_case_n.
4804
4805 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4806 (internal_delete_file, Frename_file): Callers changed.
4807
4808 * buffer.c (Fkill_buffer):
4809 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4810
4811 * lisp.h: Update prototypes.
4812
3dee6fdb
GM
48132010-05-03 Glenn Morris <rgm@gnu.org>
4814
4815 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4816 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4817 (LIBXT): Set with configure, not cpp.
4818 (LIBX): Remove.
4819 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4820
a101e0fb
DN
48212010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4822
4823 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4824 The FreeBSD is not needed, the default works, Solaris version is
4825 not needed, and the remaining case is not supported by configure.
4826
f63d0028
JD
48272010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4828
4829 * xsmfns.c (CHDIR_OPT): New define.
4830 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4831 restarting emacs.
4832
4833 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4834 shut_down_emacs.
4835
4836 * emacs.c (USAGE1): Mention --chdir.
4837 (main): Handle --chdir.
4838 (standard_args): Add --chdir.
4839 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4840 #5552).
4841
e4814a9f
DN
48422010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4843
cd03c74a
DN
4844 Remove LD_SWITCH_MACHINE.
4845 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4846 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4847
c3a398a1
DN
4848 Clean up IRIX code.
4849 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4850 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4851
87e7285c
DN
4852 Clean up AIX code.
4853 * m/ibmrs6000.inp: Remove file, unused.
4854 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4855 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4856 definition ...
4857 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4858
80f00217
JB
4859 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4860 unused.
e4814a9f 4861
59ca28de
EZ
48622010-05-01 Eli Zaretskii <eliz@gnu.org>
4863
197daef4
EZ
4864 Emulate POSIX_SIGNALS on MS-Windows.
4865
4866 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4867 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4868
4869 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4870 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4871 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4872
80f00217
JB
4873 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4874 New stubs.
197daef4 4875
af7c7572
EZ
4876 Miscellaneous fixes of bidi display.
4877
59ca28de
EZ
4878 * xdisp.c (find_row_end): New function, refactored from display_line.
4879 (display_line): Use it.
017ea819
EZ
4880 (extend_face_to_end_of_line): In almost-filled rows, extend only
4881 if the row is R2L and not continued.
166e930d 4882 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4883 Preserve overlay and string info in row->end.
166e930d
EZ
4884 (insert_left_trunc_glyphs): Support addition of left truncation
4885 glyphs to R2L rows.
b47e0dcf 4886 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4887 glyph between adjacent windows. Fix a crash when a display string
4888 is continued to the next line. Don't return zero if cursor was
4889 found by `cursor' property of a display string.
b47e0dcf
EZ
4890 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4891 test for that explicitly.
59ca28de 4892
7acac9f4
GM
48932010-05-01 Glenn Morris <rgm@gnu.org>
4894
4895 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4896 for clarity.
4897 (OTHER_OBJ): Remove.
4898 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4899 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4900
45841e65
KK
49012010-05-01 Karel Klíč <kklic@redhat.com>
4902
4903 * fileio.c (Ffile_selinux_context): Context functions may return null.
4904
afc61943
DN
49052010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4906
80f00217 4907 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4908
5a1bb006
GM
49092010-04-30 Glenn Morris <rgm@gnu.org>
4910
4911 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4912 (OTHER_OBJ): Define as a separate variable, for clarity.
4913
210af043
J
49142010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4915
4916 * xsettings.c: include limits.h and update file comment.
4917
0a7df391
GM
49182010-04-30 Glenn Morris <rgm@gnu.org>
4919
d5096f16
GM
4920 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4921 Set with configure, not cpp.
4922 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4923
7eb1ac33
GM
4924 * Makefile.in (mallocobj): Remove.
4925 (otherobj): Simplify using @OTHER_OBJ@.
4926
517d086b
GM
4927 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4928 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4929 Don't bother making nsgui.h dependency platform-specific.
4930
0a7df391
GM
4931 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4932
d6d23852
SM
49332010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4934
d2630aef
SM
4935 * process.c (read_process_output, exec_sentinel): Don't burp if the
4936 sentinel/filter kills the current buffer (bug#6060).
4937
f9dddf52 4938 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4939 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4940 Remove unused var `args'.
4941 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4942 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4943 * doc.c (store_function_docstring): Use XSETCAR.
4944
f1e3642a
GM
49452010-04-28 Glenn Morris <rgm@gnu.org>
4946
faf535f8
GM
4947 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4948 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4949
c40f9449
GM
4950 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4951
658f86ca
GM
4952 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4953 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4954
bc0b5f61
GM
4955 * Makefile.in (FONT_OBJ): New, set by configure.
4956 (FONT_DRIVERS): Use $FONT_OBJ.
4957
294c50a0
GM
4958 * Makefile.in (LIBXMU): Set with configure, not cpp.
4959 * s/aix4-2.h (LIBXMU):
4960 * s/hpux10-20.h (LIBXMU):
4961 Remove definition, now set in configure.
4962
e6ec4e99
GM
4963 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4964
f1e3642a
GM
4965 * m/amdx86-64.h [i386]: Move this test to configure.in.
4966
c6ea2936
GM
49672010-04-27 Glenn Morris <rgm@gnu.org>
4968
8fdac2c3
GM
4969 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4970 * s/unixware.h (NEED_LIBW): Remove definition.
4971
986fb647
GM
4972 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4973 (TOOLKIT_LIBW): New, set by configure.
4974 (@X_TOOLKIT_TYPE@): No longer define it.
4975
c6ea2936
GM
4976 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4977 (MOTIF_LIBW): Set with configure, not cpp.
4978 * s/aix4-2.h (LIB_MOTIF):
4979 * s/gnu-linux.h (LIB_MOTIF):
4980 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4981
aaa36002
DN
49822010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4983
4984 Reduce CPP usage.
4985 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4986 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4987 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4988 definitions and undefs. Inline definitions in the only user.
4989 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4990
b678dd8b
GM
49912010-04-27 Glenn Morris <rgm@gnu.org>
4992
76cda504
GM
4993 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4994 since the defaults (set by the system file) are fine in most cases.
4995 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4996 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4997 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4998 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4999 Remove definitions, since they are set correctly in s/gnu-linux.h.
5000 * s/freebsd.h (START_FILES, LIB_STANDARD):
5001 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5002 * s/hpux10-20.h (START_FILES):
5003 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5004 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5005
b678dd8b
GM
5006 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5007 (MOTIF_LIBW): Use $LIBXP.
5008 (otherobj): Use $WIDGET_OBJ.
5009
9452ded1
DN
50102010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5011
7e10844c
DN
5012 * Makefile.in (LIBS_MACHINE): Remove, unused.
5013
9452ded1
DN
5014 Use autoconf instead of cpp for LIB_MATH.
5015 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5016 * s/cygwin.h (LIB_MATH): Likewise.
5017 * Makefile.in (LIB_MATH): Do not define with cpp.
5018 (LIBES): Use autoconf for LIB_MATH.
5019
fcebfc6a
KH
50202010-04-26 Kenichi Handa <handa@m17n.org>
5021
5022 * composite.c (Ffind_composition_internal): Fix the return value
5023 for an automatic composition.
5024
39e2ad1b
DN
50252010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5026
5027 Remove all NO_ARG_ARRAY uses.
5028 * fns.c (concat2, concat3, nconc2):
5029 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5030 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5031 * m/xtensa.h (NO_ARG_ARRAY):
5032 * m/template.h (NO_ARG_ARRAY):
5033 * m/sparc.h (NO_ARG_ARRAY):
5034 * m/sh3.h (NO_ARG_ARRAY):
5035 * m/mips.h (NO_ARG_ARRAY):
5036 * m/macppc.h (NO_ARG_ARRAY):
5037 * m/iris4d.h (NO_ARG_ARRAY):
5038 * m/intel386.h (NO_ARG_ARRAY):
5039 * m/ibms390x.h (NO_ARG_ARRAY):
5040 * m/ibms390.h (NO_ARG_ARRAY):
5041 * m/ibmrs6000.h (NO_ARG_ARRAY):
5042 * m/ia64.h (NO_ARG_ARRAY):
5043 * m/hp800.h (NO_ARG_ARRAY):
5044 * m/arm.h (NO_ARG_ARRAY):
5045 * m/amdx86-64.h (NO_ARG_ARRAY):
5046 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5047
adf4f59c
EZ
50482010-04-25 Eli Zaretskii <eliz@gnu.org>
5049
6bdf5d65
EZ
5050 * xdisp.c (display_line): Don't assume 2nd call to
5051 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
5052 (iterate_out_of_display_property): New function, body from pop_it.
5053 (pop_it): Use it.
adf4f59c 5054
dfbbda83
GM
50552010-04-24 Glenn Morris <rgm@gnu.org>
5056
5057 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5058 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5059 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5060 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5061
2d4018aa
EZ
50622010-04-24 Eli Zaretskii <eliz@gnu.org>
5063
a49884a6
EZ
5064 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5065 use `get_next_display_element' and `set_iterator_to_next' to
5066 advance to the next character, when looking for the character that
5067 begins the next row.
5068
76db6fcc 5069 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5070 definition of "struct Lisp_Symbol".
5071
70eab5c1
GM
50722010-04-24 Glenn Morris <rgm@gnu.org>
5073
5074 * Makefile.in (CRT_DIR): New variable, set by configure.
5075 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5076 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5077
1ad4cc3d
DN
50782010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5079
e769f484
DN
5080 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5081
4196ff33
DN
5082 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5083
879b0ee4
DN
5084 Remove redundant flags.
5085 * s/freebsd.h (C_SWITCH_SYSTEM):
5086 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5087 * s/netbsd.h (C_SWITCH_SYSTEM):
5088 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5089 of these.
5090
03cbbcb8
DN
5091 Simplify m/intel386.h.
5092 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5093 user: ecrt0.c.
5094 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5095 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5096 the only user: s/unixware.h.
5097 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5098 from m/intel386.h.
5099 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5100 moved here from m/intel386.h.
5101
1ad4cc3d
DN
5102 * m/mips.h: Remove #if 0 code.
5103
8785b888
EZ
51042010-04-23 Eli Zaretskii <eliz@gnu.org>
5105
728588cc
EZ
5106 Fix display of composed characters from L2R scripts in bidi buffers.
5107 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5108 After advancing IT past the composition, resync the bidi iterator
5109 with IT's position. (Bug#5977)
5110
a63f80b4
DN
51112010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5112
5113 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5114 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5115
ff5dec5c
SM
51162010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5117
5118 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5119
8785b888
EZ
51202010-04-23 Eli Zaretskii <eliz@gnu.org>
5121
58ccf243 5122 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5123 * xdisp.c (pop_it): When the stack is popped after displaying
5124 from a string, bidi-iterate to exit from the text portion covered
5125 by the `display' property or overlay. (Bug#5988, bug#5920)
5126
feeb1604
DN
51272010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5128
8e324eb6
DN
5129 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5130 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5131
809fcaba
DN
5132 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5133 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5134
ed710380
DN
5135 Simplify STARTFILES definition.
5136 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5137 relying on Makefile.in to define it.
5138 * s/cygwin.h (START_FILES): Likewise.
5139 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5140
feeb1604
DN
5141 Clean up Solaris code.
5142 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5143 (LIB_MOTIF): Remove, configure takes care of this.
5144 (NOT_USING_MOTIF): Remove, unused.
5145 * xrdb.c: Remove #if 0-ed #include.
5146 (SYSV): Remove conditional for old SysV.
5147 * sysdep.c (closedir): Remove conditional code for Solaris,
5148 Solaris has closedir.
5149
a0d0b563
JD
51502010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5151
5152 * xsettings.c (read_and_apply_settings): Check if current_font is
5153 NULL before strcmp (Bug#6001).
5154
56bae7c7
DN
51552010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5156
5157 Clean up HP-UX files.
5158 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5159 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5160 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5161 * s/hpux10-20.h: ... to the only user, here.
5162
372b7a95
EZ
51632010-04-21 Eli Zaretskii <eliz@gnu.org>
5164
5165 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5166 use buffer-local values of paragraph-start and paragraph-separate.
5167 <paragraph_start_re, paragraph_separate_re>: Rename from
5168 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5169 (Bug#5992)
5170
f904c0f9
JD
51712010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5172
5173 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5174 current_tool_bar_style are new.
5175 (store_config_changed_event): Rename from store_font_changed_event.
5176 (XSETTINGS_TOOL_BAR_STYLE): New define.
5177 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5178 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5179 HAVE_XFT.
5180 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5181 store_config_changed_event.
f904c0f9
JD
5182 (parse_settings): Rename from parse_xft_settings. Read
5183 non-xft xsettings outside #ifdef HAVE_XFT.
5184 (read_settings): Renamed from read_xft_settings.
5185 (apply_xft_settings): Take current settings as parameter. Do not
5186 call read_(xft)_settings.
5187 (read_and_apply_settings): New function.
5188 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5189 read_and_apply_settings if there are settings to be read.
5190 (init_xsettings): Renamed from init_xfd_settings.
5191 Call read_and_apply_settings unconditionally.
5192 (xsettings_initialize): Call init_xsettings.
5193 (Ftool_bar_get_system_style): New function.
5194 (syms_of_xsettings): Define Qmonospace_font_name and
5195 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5196 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5197 dynamic-setting.
31a01b90 5198 Move misplaced HAVE_GCONF
f904c0f9
JD
5199
5200 * xsettings.h (Ftool_bar_get_system_style): Declare.
5201
5202 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5203 Qtext, Qboth, Qboth_horiz are new.
5204 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5205 Vtool_bar_style, tool_bar_max_label_size.
5206
5207 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5208
5209 * keyboard.c: QClabel is new.
5210 (parse_tool_bar_item): Take out QClabel from tool bar items.
5211 Try to construct a label if ther is no QClabel.
5212 (syms_of_keyboard): Intern :label as QClabel.
5213
5214 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5215 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5216 New.
5217
5218 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5219 dynamic-setting.el.
5220
5221 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5222 (xg_make_tool_item, xg_show_toolbar_item): New function.
5223 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5224 Call xg_make_tool_item to make a tool bar item.
5225 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5226
5227 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5228 into account for toolbars.
5229
c632dfda
JD
52302010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5231
5232 * data.c (make_blv): Declarations before code (Bug#5993).
5233
10efe302
GM
52342010-04-21 Glenn Morris <rgm@gnu.org>
5235
5236 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5237 Define using autoconf, not cpp.
5238 (LIBXSM): New variable, set by autoconf.
5239 (LIBXT): Use $LIBXSM.
5240
4285ac5a
DN
52412010-04-21 Dan Nicolaescu <local_user@dannlt>
5242
3ec759e7
DN
5243 Remove NOMULTIPLEJOBS, unused.
5244 * s/template.h (NOMULTIPLEJOBS):
5245 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5246
4285ac5a
DN
5247 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5248 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5249 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5250 detects -znocombreloc and passes it to the linker
5251 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5252
2807228d
GM
52532010-04-21 Glenn Morris <rgm@gnu.org>
5254
5255 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5256
574c05e2
KK
52572010-04-21 Karel Klíč <kklic@redhat.com>
5258
5259 * Makefile.in (LIBSELINUX_LIBS): New.
5260 (LIBES): Add $LIBSELINUX_LIBS.
5261 * eval.c, lisp.h (call7): New function.
5262 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5263 (Ffile_selinux_context, Fset_file_selinux_context):
5264 New functions.
5265 (Fcopy_file): New parameter preserve-selinux-context.
5266 (Frename_file): Preserve selinux context when renaming by copy-file.
5267
91eac4bb 52682010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5269 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5270
50426a04
JB
5271 Don't depend on cm.c or termcap.c on Windows, use stubs.
5272 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5273 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5274 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5275 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5276 (sys_tputs, sys_tgetstr): New stubs.
5277 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5278 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5279
938efb77
JB
52802010-04-20 Juanma Barranquero <lekktu@gmail.com>
5281
5282 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5283
b4bf28b7
SM
52842010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5285
8b1e1112
SM
5286 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5287 Just signal a warning rather than an error when inside a let.
5288 (Fmake_variable_frame_local): Add the same test.
5289
933ac235
SM
5290 * font.c (syms_of_font): Make the style table vars read-only.
5291
b4bf28b7
SM
5292 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5293 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5294
5295 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5296
93d68d0c
EZ
52972010-04-20 Eli Zaretskii <eliz@gnu.org>
5298
5299 Fix R2L paragraph display on TTY.
5300
5301 * xdisp.c (unproduce_glyphs): New function.
5302 (display_line): Use it when produced glyphs are discarded from R2L
5303 glyph rows.
5304 (append_composite_glyph): In R2L rows, prepend the glyph rather
5305 than appending it.
5306
5307 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5308 rather than append it. Set up the resolved_level and bidi_type
5309 attributes of the appended glyph.
283ccc18
EZ
5310 (produce_special_glyphs): Mirror the backslash continuation
5311 character in R2L lines.
93d68d0c 5312
283ccc18 5313 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5314
283ccc18
EZ
5315 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5316 append_stretch_glyph.
5317 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5318 off-by-one error in computing x at end of text in the row.
5319 (append_stretch_glyph): In reversed row, prepend the glyph rather
5320 than append it. Set resolved_level and bidi_type of the glyph.
5321 (extend_face_to_end_of_line): If the row is reversed, prepend a
5322 stretch glyph whose width is such that the rightmost glyph will be
5323 drawn at the right margin of the window. Fix off-by-one error on
5324 TTY frames in testing whether a line needs face extension. Fix
5325 face extension at ZV. If this is the last glyph row, use
5326 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5327 region face.
5328 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5329 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5330 row->continuation_lines_width.
283ccc18
EZ
5331 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5332 are at ZV. Fixes a crash when reseated to ZV by
5333 try_window_reusing_current_matrix.
45903529
EZ
5334 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5335 which happens with R2L glyph rows. Fixes a crash when inserting a
5336 character at end of an R2L line.
283ccc18
EZ
5337 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5338 treat them as having zero-width characters. Improve comments.
5339 Don't reverse pos_before and pos_after for reversed glyph rows.
5340 Set cursor.x to negative value when the cursor might be on the
5341 left fringe.
5342 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5343 left fringe, not the right one.
f951a506
EZ
5344 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5345 (erase_phys_cursor): For reversed cursor_row, support cursor on
5346 the left fringe.
5347
283ccc18
EZ
5348 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5349 of continuation indicators on the fringes.
5350 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5351 left fringe.
5352
f951a506
EZ
5353 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5354 draw cursor on the left fringe.
5355
5356 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5357 cursor on the left fringe.
5358
f951a506
EZ
5359 * dispnew.c (update_text_area): Handle reversed desired rows when
5360 the cursor is on the left fringe.
5361 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5362 below, not by 0, for when the cursor is on the left fringe.
5363
3bb49aaf
JD
53642010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5365
5366 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5367 widget is a scrollbar.
5368
c0be27fd
KH
53692010-04-20 Kenichi Handa <handa@m17n.org>
5370
5371 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5372 only when the arg CHARSET_LIST is nil.
5373
ce5b453a
SM
53742010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5375
5376 Make variable forwarding explicit rather the using special values.
5377 Basically, this makes the structure of buffer-local values and object
5378 forwarding explicit in the type of Lisp_Symbols rather than use
5379 special Lisp_Objects for that. This tends to lead to slightly more
5380 verbose code, but is more C-like, simpler, and makes it easier to make
5381 sure we handled all cases, among other things by letting the compiler
5382 help us check it.
5383 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5384 Removing forwarding objects.
5385 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5386 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5387 explicit rather than hiding them inside Lisp_Object "values".
5388 (XFWDTYPE): New macro.
5389 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5390 (XBUFFER_LOCAL_VALUE): Remove.
5391 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5392 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5393 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5394 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5395 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5396 Remove the Lisp_Misc_* header.
5397 (struct Lisp_Buffer_Local_Value): Redefine.
5398 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5399 (struct Lisp_Misc_Any): Add filler to get the right size.
5400 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5401 Lisp_Intfwd.
5402 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5403 (DEFVAR_KBOARD): Allocate a forwarding object.
5404 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5405 (let_shadows_global_binding_p): New function.
5406 (union Lisp_Val_Fwd): New type.
5407 (make_blv): New function.
5408 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5409 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5410 (swap_in_symval_forwarding, find_symbol_value, Fset)
5411 (let_shadows_buffer_binding_p, set_internal, default_value)
5412 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5413 (Fkill_local_variable, Fmake_variable_frame_local)
5414 (Flocal_variable_p, Flocal_variable_if_set_p)
5415 (Fvariable_binding_locus):
5416 * xdisp.c (select_frame_for_redisplay):
5417 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5418 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5419 * frame.c (store_frame_param):
5420 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5421 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5422 value structure.
5423 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5424 (clone_per_buffer_values): Only adjust markers into the current buffer.
5425 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5426 (Fbuffer_local_value, set_buffer_internal_1)
5427 (swap_out_buffer_local_variables):
5428 Adapt to the new symbol value structure.
5429 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5430 (defvar_per_buffer): Take a new arg for the fwd object.
5431 (buffer_lisp_local_variables): Return a proper alist (different fix
5432 for bug#4138).
5433 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5434 (Fgarbage_collect): Don't handle buffer_defaults specially.
5435 (mark_object): Handle new symbol value structure rather than the old
5436 special Lisp_Misc_* objects.
5437 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5438 * term.c (set_tty_color_mode):
5439 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5440 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5441 a buffer_local_flags.
5442 * print.c (print_object): Get rid of impossible forwarding objects.
5443
fd3998ff
EZ
54442010-04-19 Eli Zaretskii <eliz@gnu.org>
5445
5446 * bidi.c (bidi_get_type, bidi_get_category)
5447 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5448 (bidi_type_of_next_char, bidi_level_of_next_char):
5449 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5450
e42cd1a7
JB
54512010-04-19 Juanma Barranquero <lekktu@gmail.com>
5452
5453 * dired.c (Ffile_attributes): Fix typo in docstring.
5454
6e104790 54552010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5456
5457 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5458 NSInteger (Bug#5811).
5459
6e104790 54602010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5461
5462 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5463 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5464
6e104790 54652010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5466
5467 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5468
6e104790
SM
54692010-04-19 Chong Yidong <cyd@stupidchicken.com>
5470
5471 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5472 terminal frames (Bug#5837).
5473
37dcfea0
EZ
54742010-04-19 Eli Zaretskii <eliz@gnu.org>
5475
d1da276f
EZ
5476 * .gdbinit (xsubchartable): New command.
5477
37dcfea0
EZ
54782010-04-19 Eli Zaretskii <eliz@gnu.org>
5479
5480 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5481 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5482 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5483 and
5484 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5485
e9515805
SM
54862010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5487
5488 * alloc.c (Fpurecopy): Hash-cons if requested.
5489 (syms_of_alloc): Update purify-flag docstring.
5490
22aa44a8
JD
54912010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5492
5493 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5494 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5495
ebb5722e
EZ
54962010-04-17 Eli Zaretskii <eliz@gnu.org>
5497
5498 Fix a crash when an NSM character is inserted at BEGV.
5499
5500 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5501 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5502 NEUTRAL_B or UNKNOWN_BT.
5503
0f4442ef
EZ
55042010-04-16 Eli Zaretskii <eliz@gnu.org>
5505
5506 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5507 other rows with cursor unless they are different from this row and
5508 this row is part of a continued line. (Bug#5943)
5509
7d4e45f8
DN
55102010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5511
5512 * s/freebsd.h: Restore osreldate.h include.
5513 Suggested by Naohiro Aota.
5514
5ba5ec85
J
55152010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5516
5517 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5518
20af301d
CY
55192010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5520
5521 * s/cygwin.h: Avoid linking against static libgcc.
5522
a4b000fb
JL
55232010-04-15 Juri Linkov <juri@jurta.org>
5524
5525 * window.c: Add Qscroll_command.
5526 Remove Vscroll_preserve_screen_position_commands.
5527 (window_scroll_pixel_based, window_scroll_line_based): Check the
5528 `scroll-command' property on the last command instead of searching
5529 the last command in Vscroll_preserve_screen_position_commands.
5530 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5531 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5532 (scroll-preserve-screen-position): Doc fix.
5533 (Vscroll_preserve_screen_position_commands): Remove variable.
5534
bc319ba4
DN
55352010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5536
6bb24457
DN
5537 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5538
19d4c244
DN
55392010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5540
5541 Reduce cpp use in Makefile.in.
5542 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5543 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5544 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5545 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5546 (CRT0_COMPILE): Remove, inline it in the only user.
5547
32129746
JL
55482010-04-14 Juri Linkov <juri@jurta.org>
5549
5550 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5551 `scroll-up-command' and `M-v' from `scroll-down' to
5552 `scroll-down-command'.
5553
9013a7f8
JL
55542010-04-14 Juri Linkov <juri@jurta.org>
5555
5556 * window.c (Vscroll_preserve_screen_position_commands): New variable
5557 with the default value as the list of Qscroll_down and Qscroll_up.
5558 (window_scroll_pixel_based, window_scroll_line_based): Search the
5559 last command in the list Vscroll_preserve_screen_position_commands
5560 instead of comparing with Qscroll_up and Qscroll_down.
5561
4bef8d26
JD
55622010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5563
92848133
JD
5564 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5565 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5566 does that.
5567
4bef8d26
JD
5568 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5569 to zero.
5570
58b963f7
SM
55712010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5572
84164a0d
SM
5573 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5574
2b0a91e7
SM
5575 Try to solve the problem of spurious EOF chars in long lines of text
5576 sent to interactive subprocesses.
5577 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5578 (system_process_attributes): Remove unused var `ttotal'.
5579 * process.c (send_process): Don't bother breaking long line with EOF
5580 chars when talking to ttys any more.
5581 (wait_reading_process_output): Output a warning when called in such
5582 a way that it could block without being interruptible.
5583
58b963f7
SM
5584 Try to detect file modification within the same second.
5585 * buffer.h (struct buffer): New field modtime_size.
5586 * buffer.c (reset_buffer): Initialize it.
5587 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5588 (Fverify_visited_file_modtime): Check it.
5589 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5590 (Fset_visited_file_modtime): Set (or clear) it.
5591
01f5787b
SM
55922010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5593
5594 * process.c (status_notify): Remove unused var `ro'.
5595
83725342
JD
55962010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5597
5598 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5599 more than one visual (Bug#5938).
5600
b9465836
DN
56012010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5602
50426a04
JB
5603 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5604 Undefine.
b9465836 5605
8d9c8ece
DN
56062010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5607
b1f52161
DN
5608 Remove C_SWITCH_SYSTEM_TEMACS.
5609 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5610 (malloc, realloc, free): Use emacs, not temacs for conditional
5611 definition.
5612
5613 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5614 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5615
8d9c8ece
DN
5616 Use autoconf, not cpp for some variables.
5617 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5618 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5619 (ALL_CFLAGS): Use them as make variables.
5620 (really-lwlib, really-oldXMenu): Do not pass them.
5621
1ecb2d3f
JD
56222010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5623
5624 * xmenu.c (apply_systemfont_to_dialog): New.
5625 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5626
3a4fa2f2
SM
56272010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5628
97e53006
SM
5629 * process.c (exec_sentinel): Preserve current-buffer.
5630
3a4fa2f2
SM
5631 * process.c (read_process_output): Move the save-current-buffer to
5632 apply to both the filter and the non-filter branches.
5633
88df7221
DN
56342010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5635
5636 * s/msdos.h (UNEXEC): New definition.
5637
5634ff85
YM
56382010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5639
6eff5c3d
YM
5640 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5641 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5642
5643 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5644 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5645 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5646 TRY_WINDOW_CHECK_MARGINS.
5647
5648 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5649 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5650 width only when it is for padding.
5634ff85 5651
b13aef54
J
56522010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5653
5654 * xfns.c (Fx_show_tip): Call try_window in a loop until
5655 fonts_changed_p is zero (Bug#2423).
5656
21d28484
EZ
56572010-04-08 Eli Zaretskii <eliz@gnu.org>
5658
5659 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5660 the end of TEXT_AREA. (Bug#5856)
5661
0269ef77
JD
56622010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5663
5664 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5665 HAVE_GCONF.
5666
5930fe97
EZ
56672010-04-08 Eli Zaretskii <eliz@gnu.org>
5668
5669 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5670 prev.orig_type, for resolving type of NSM. (Bug#5858)
5671
99852628
JD
56722010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5673
5674 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5675 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5676 in current_font.
5677 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5678 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5679 New functions.
5680 (syms_of_xsettings): Initialize current_font.
5681 defsubr Sfont_get_system_normal_font.
99852628 5682
686b968e
JB
5683 * xsettings.h (Ffont_get_system_normal_font)
5684 (xsettings_get_system_normal_font): Declare.
99852628
JD
5685
5686 * xfns.c (extern xlwmenu_default_font): Remove.
5687 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5688 to xlwmenu.c.
5689
5690 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5691 menu items in UTF-8.
5692
5693 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5694 (apply_systemfont_to_menu): New function.
5695 (set_frame_menubar, create_and_show_popup_menu): Call
5696 apply_systemfont_to_menu.
5697
7fc874c4
J
56982010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5699
5700 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5701 FRAME_LINE_TO_PIXEL_Y.
5702
5703 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5704 pixelwidth/height.
5705
863bf481
DN
57062010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5707
5e5a3b92
DN
5708 Simplify code for HP machines.
5709 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5710 for GNU_LINUX, not needed.
5711 (UNEXEC, NEED_BSDTTY): Move definitions...
5712 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5713
863bf481
DN
5714 * m/iris4d.h (UNEXEC): Move definition ...
5715 * s/irix6-5.h (UNEXEC): ... here.
5716
3e6bec3b
JD
57172010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5718
5719 * xfns.c (set_machine_and_pid_properties): New function.
5720 (Fx_create_frame): Call set_machine_and_pid_properties.
5721
2912322b
SM
57222010-04-03 Eli Zaretskii <eliz@gnu.org>
5723
1502b819
EZ
5724 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5725 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5726 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5727
2912322b
SM
5728 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5729 in this function. (Bug#5703)
5730
57312010-04-03 Chong Yidong <cyd@stupidchicken.com>
5732
5733 * nsterm.h: Fix last change.
5734
c435b432
DN
57352010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5736
a568f507
DN
5737 * m/intel386.h (NO_REMAP): Move definition ...
5738 * s/msdos.h (NO_REMAP): ... here.
5739
4cd9f6c2
DN
5740 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5741
c435b432
DN
5742 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5743 used on those platforms.
5744
42a2c622
DN
57452010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5746
5747 Remove extern errno declarations.
5748 * xterm.c:
5749 * xrdb.c:
5750 * w32term.c:
5751 * unexec.c:
5752 * unexaix.c:
5753 * sysdep.c:
5754 * process.c:
5755 * lread.c:
5756 * keyboard.c:
5757 * floatfns.c:
5758 * filelock.c:
5759 * fileio.c:
5760 * emacs.c (main):
5761 * ecrt0.c:
5762 * dispnew.c:
5763 * callproc.c:
5764 * buffer.c: Remove errno extern declarations.
5765 * s/netbsd.h (NEED_ERRNO): Remove.
5766
8224f93d
DN
57672010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5768
5769 Remove all uses of LIBX11_SYSTEM.
5770 * Makefile.in (LIBX11_SYSTEM): Remove.
5771 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5772 instead.
5773
814062c7
EZ
57742010-04-01 Eli Zaretskii <eliz@gnu.org>
5775
ed68db4d
EZ
5776 Remove support for DJGPP v1.x (bug#5813).
5777
5778 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5779 * s/msdos.h:
5780 * unexec.c (make_hdr, copy_text_and_data):
5781 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5782 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5783 (IT_set_terminal_modes, __write, _rename, gethostname)
5784 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5785 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5786 the value of __DJGPP__.
ed68db4d
EZ
5787 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5788 compatibility code.
8224f93d
DN
5789 * lread.c:
5790 * gmalloc.c (memalign):
5791 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5792 * emacs.c (main):
5793 * dosfns.c (init_dosfns):
ed68db4d
EZ
5794 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5795
52f4d8d5
EZ
57962010-04-01 Eli Zaretskii <eliz@gnu.org>
5797
814062c7
EZ
5798 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5799 string with `cursor' property comes from an `after-string'
5800 overlay. (Bug#5816)
5801
0dc2e11d
GM
58022010-04-01 Glenn Morris <rgm@gnu.org>
5803
5804 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5805 Define as Makefile variables.
5806 (LIBX): Use above variables rather than directly using autoconf.
5807
1d29df59
DN
58082010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5809
5810 Clean up BSD_SYSTEM use.
5811 * xterm.c:
5812 * process.c:
5813 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5814 for including <sys/ioctl.h>.
5815 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5816 code is only used for MSDOS.
5817
1546c559
JL
58182010-03-31 Juri Linkov <juri@jurta.org>
5819
5820 * image.c: Add `Qextension_data'.
5821 (syms_of_image): Initialize and staticpro `Qextension_data'.
5822 (Fimage_metadata): Rename from `Fimage_extension_data'.
5823 (gif_load): Put GIF extension data to the property
5824 `Qextension_data'.
5825
6521c534
CY
58262010-03-31 Chong Yidong <cyd@stupidchicken.com>
5827
5828 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5829 * nsterm.h: Fix prototype.
5830
52c30783
EZ
58312010-03-31 Eli Zaretskii <eliz@gnu.org>
5832
5833 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5834 trailing whitespace in right-to-left rows.
5835
855a0da7
SM
58362010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5837
5838 Get rid of the direct_output optimizations.
5839 * keyboard.c (nonundocount): Remove extern declaration.
5840 (command_loop_1): Remove brittle optimisation for cheap and
5841 common operations.
5842 * xdisp.c (redisplay_internal): Don't bother checking
5843 redisplay_performed_directly_p any more.
5844 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5845 any more.
5846 * dispnew.c (redisplay_performed_directly_p)
5847 (direct_output_for_insert, direct_output_forward_char):
5848 * dispextern.h (redisplay_performed_directly_p)
5849 (direct_output_for_insert, direct_output_forward_char): Remove.
5850 * cmds.c (nonundocount): Make it static.
5851
85738751 58522010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5853
5854 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5855
85738751 58562010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5857
5858 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5859 invisible (Bug#5766).
5860
85738751 58612010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5862
855a0da7
SM
5863 * xdisp.c (x_consider_frame_title, update_window_cursor):
5864 Remove HAVE_NS conditionals.
194d44e7 5865 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5866
5867 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5868 filename for the title.
5869 (ns_set_doc_edited): Do nothing if the selected window is a
5870 minibuffer window.
5871
5872 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5873 ns_set_doc_edited.
5874
5875 * nsterm.m: Remove unneeded prototype.
5876
85738751 58772010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5878
5879 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5880 in the DOC file. (Bug#5336)
5881
85738751 58822010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5883
5884 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5885
75d1428c
SM
58862010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5887
5888 * window.c (keys_of_window): Remove redundant/overridden bindings.
5889
82043cfb
EZ
58902010-03-30 Eli Zaretskii <eliz@gnu.org>
5891
5892 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5893 Restore original behavior when the iterator is not bidi_p.
5894
b5dd0ae7
DN
58952010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5896
5897 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5898
bd924a5d
EZ
58992010-03-30 Eli Zaretskii <eliz@gnu.org>
5900
5901 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5902 are outside the range of cached character positions.
5903
3580374b
JB
59042010-03-30 Juanma Barranquero <lekktu@gmail.com>
5905
5906 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5907
a7b02820
EZ
59082010-03-30 Eli Zaretskii <eliz@gnu.org>
5909
5910 Initial support for bidirectional editing.
5911
5912 * Makefile.in (obj): Include bidi.o.
5913 (bidi.o): New target.
5914
5915 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5916 ($(BLD)/bidi.$(O)): New target.
5917
5918 * bidi.c: New file.
5919
5920 * buffer.h (struct buffer): New members bidi_display_reordering
5921 and bidi_paragraph_direction.
5922
5923 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5924 and bidi_paragraph_direction.
5925 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5926 and bidi-paragraph-direction.
5927 (Fbuffer_swap_text): Swap the values of
5928 bidi_display_reordering and bidi_paragraph_direction.
5929
5930 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5931 (bidi_type_t, bidi_dir_t): New types.
5932 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5933 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5934 prev_stop, base_level_stop, and eol_pos.
5935 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5936 (IT_STACK_SIZE): Enlarge to 5.
5937 (struct glyph_row): New member reversed_p.
5938 <string_buffer_position>: Update prototype.
5939 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5940 glyph_row if bidi_it.paragraph_dir == R2L.
5941 (struct glyph): New members resolved_level and bidi_type.
5942
5943 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5944 processing or buffer's direction is right-to-left.
5945 (prepare_desired_row): Preserve the reversed_p flag.
5946 (row_equal_p): Compare the reversed_p attributes as well.
5947
5948 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5949 bidi_init_it and set it->paragraph_embedding from the current
5950 buffer's value of bidi_paragraph_direction.
5951 (reseat_1): Initialize bidi_it.first_elt.
5952 (set_iterator_to_next, next_element_from_buffer): Use the value of
5953 paragraph_embedding to determine the paragraph direction.
5954 (set_iterator_to_next): Under bidi reordering, call
5955 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5956 new_paragraph flag is set in the bidi iterator.
5957 (next_element_from_buffer): If bidi_it.first_elt is set,
5958 initialize paragraph direction and find the first character to
5959 display in the visual order. If reseated to a middle of a line,
5960 prime the bidi iterator starting at the line's beginning. Handle
5961 the situation where we overstepped stop_charpos due to
5962 non-linearity of the bidi iteration. Likewise for when we back up
5963 beyond the previous stop_charpos. When moving across stop_charpos,
5964 record it in prev_stop.
5965 (display_line): Set row->end and it->start for the next row to the
5966 next character in logical order. Always extend reversed_p rows to
5967 the end of line, even if they end at ZV. Copy the reversed_p flag
5968 to the next glyph row. Keep calling set_cursor_from_row for
5969 bidi-reordered rows even if we already have a possible candidate
5970 for cursor position. Set row_end after all the row's glyphs have
5971 been produced, by looping over the glyphs. Record the position
5972 after EOL in it->eol_pos, and use it to set end_pos of the last
5973 row produced for a continued line.
5974 <Qright_to_left, Qleft_to_right>: New variables.
5975 (syms_of_xdisp): Initialize and staticpro them.
5976 (string_buffer_position_lim): New function.
5977 (string_buffer_position): Most of code moved to
5978 string_buffer_position_lim. Last argument and return value are
5979 now EMACS_INT; all callers changed.
5980 (set_cursor_from_row): Rewritten to support bidirectional text and
5981 reversed glyph rows.
5982 (text_outside_line_unchanged_p, try_window_id): Disable
5983 optimizations if we are reordering bidirectional text and the
5984 paragraph direction can be affected by the change.
5985 (append_glyph, append_composite_glyph)
5986 (produce_image_glyph, append_stretch_glyph): Set the
5987 resolved_level and bidi_type members of each glyph.
5988 (append_glyph): If the glyph row is reversed, prepend the glyph
5989 rather than appending it.
5990 (handle_stop_backwards): New function.
5991 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5992 (reseat): call handle_stop_backwards to recompute prev_stop and
5993 base_level_stop for the new position.
5994 (handle_invisible_prop): Under bidi iteration, skip invisible text
5995 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5996 paragraph direction. Update IT->prev_stop after skipping
5997 invisible text.
5998 (move_it_in_display_line_to): New variables prev_method
5999 and prev_pos. Compare for strict equality in
6000 BUFFER_POS_REACHED_P.
6001 (try_cursor_movement): Examine all the candidate rows that occlude
6002 point, to return the best match. If rows are bidi-reordered
6003 and point moved backwards, back up to the row that is not a
6004 continuation line, and start looking for a suitable row from
6005 there.
6006
6007 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6008 rather than appending, if the glyph_row's reversed_p flag is set.
6009 Set the resolved_level and bidi_type members of each glyph.
6010
6011 * .gdbinit (pbiditype): New command.
6012 (pgx): Use it to display bidi level and type of the glyph.
6013 (pitx): Display some bidi information about the iterator.
6014 (prowlims, pmtxrows): New commands.
6015
32a8894e
DN
60162010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6017
6018 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6019 * s/usg5-4.h (LIBS_DEBUG):
6020 * s/irix6-5.h (C_DEBUG_SWITCH):
6021 * s/gnu-linux.h (LIBS_DEBUG):
6022 * s/darwin.h (LIBS_DEBUG):
6023 * s/bsd-common.h (LIBS_DEBUG):
6024 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6025 * m/iris4d.h (LIBS_DEBUG):
6026 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6027
6028 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6029 (LIBS_DEBUG): Remove definition.
6030
649dbf36
CY
60312010-03-27 Chong Yidong <cyd@stupidchicken.com>
6032
6033 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6034 Windows.
6035
cad4261f
YM
60362010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6037
6038 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6039 `connect' (Bug#5723).
6040
cd591dbc
HE
60412010-03-25 Helmut Eller <eller.helmut@gmail.com>
6042
6043 * process.c (Fmake_network_process): Call `select' for interrupted
6044 `connect' rather than creating new socket (Bug#5173).
6045
e867cb5d 60462010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
6047
6048 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6049
6050 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6051
6052 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6053
e867cb5d 60542010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
6055
6056 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6057 XLoadQueryFont.
6058
e867cb5d 60592010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
6060
6061 * coding.c (decode_coding_ccl): Fix previous change for the
6062 multibyte case.
fb608df3
KH
6063 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6064 case that the output buffer is fullfilled.
6065 (encode_coding): Setup ccl program here.
fbdc1721 6066
5845f0ed
DN
60672010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6068
814fb708
DN
6069 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6070
5845f0ed
DN
6071 Simplify LIBS_MACHINE definitions.
6072 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6073 * m/iris4d.h (LIBS_MACHINE): Likewise.
6074 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6075 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6076 * s/netbsd.h: Remove commented out code.
5845f0ed 6077
b7064064
DN
60782010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6079
df7734b2
DN
6080 Remove dead code dealing with POSIX_SIGNALS.
6081 * atimer.c (set_alarm): Remove dead code, all USG systems define
6082 POSIX_SIGNALS.
6083 * data.c (arith_error): Likewise.
6084 * keyboard.c (input_available_signal, handle_user_signal)
6085 (interrupt_signal): Likewise.
6086 * process.c (sigchld_handler): Likewise.
6087 (create_process): Remove if 0 code. Remove HPUX conditional when
6088 !defined (POSIX_SIGNALS), it cannot be true.
6089 * syssignal.h: Remove USG5_4 and USG conditionals when
6090 !POSIX_SIGNALS, they cannot be true.
6091
b7064064
DN
6092 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6093 NO_SOCK_SIGIO, not used anymore.
6094
55da5ee3
DN
60952010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6096
0be96e3a
DN
6097 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6098 support vax on BSDs.
6099
55da5ee3
DN
6100 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6101 * s/aix4-2.h (ORDINARY_LINK): ... here.
6102
c0282183
AS
61032010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6104
82c3d67a
AS
6105 * Makefile.in (abs_builddir): Define.
6106 (bootstrap_exe): Use it.
6107 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6108
3613edce
SM
61092010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6110
6111 * Makefile.in (bootstrap_exe): Use an absolute name.
6112
7f110ddc
DN
61132010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6114
22e87574
DN
6115 Remove support for old GNU/Linux using libc version 5.
6116 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6117 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6118
05a670e6
DN
6119 Consolidate redundant definitions in s/bsd-common.h.
6120 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6121 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6122 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6123 doing it in all files that include this one.
6124 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6125 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6126 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6127 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6128 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6129 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6130 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6131 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6132 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6133
2968f561
DN
6134 Consolidate redundant definitions.
6135 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6136 it's undefined in all files that include this one.
6137 (POSIX_SIGNALS): Define here instead of doing it in all files that
6138 include this one.
6139 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6140 (POSIX_SIGNALS): Do not define.
6141 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6142 (POSIX_SIGNALS): Do not define.
6143 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6144 (POSIX_SIGNALS): Do not define.
6145
15d25dc0
DN
6146 Remove support for old UNIX System V systems.
6147 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6148 * s/usg-5-4-2.h: Remove.
6149
07e339e4
DN
6150 Remove support for Solaris on PPC and for old versions.
6151 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6152 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6153 that cancel each other.
6154 * s/sol2-3.h:
6155 * s/sol2-4.h:
6156 * s/sol2-5.h: Remove.
6157 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6158 (NO_REMAP): Remove, unused.
6159 (UNEXEC): Move definition ...
6160 * s/aix4-2.h (UNEXEC): ... here.
6161
7f110ddc
DN
6162 * s/openbsd.h: Remove support for non-ELF and for systems that do
6163 not support shared libraries.
6164 * s/netbsd.h:
6165 * s/freebsd.h: Likewise.
6166
605f35cd
DN
61672010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6168
6169 Remove non-working support for lynxos 3.0.
6170 * s/lynxos.h: Remove file.
6171
6172 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6173 COFF_BSD_SYMBOLS, nothing defines it anymore.
6174
aed71cf4
DN
61752010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6176
6177 Remove obsolete uses of HAVE_SHM.
6178 * emacs.c (standard_args):
6179 (Fdump_emacs):
6180 (syms_of_emacs): Remove code depending on HAVE_SHM.
6181
6182 * alloc.c: Remove HAVE_SHM dependent definition.
6183
6184 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6185
aded53ff
GM
61862010-03-18 Glenn Morris <rgm@gnu.org>
6187
17284745
GM
6188 * emacs.c (USAGE4): Hard-code bug address.
6189 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6190 (bug_reporting_address): Remove.
6191 (main): Don't call bug_reporting_address.
6192
aded53ff
GM
6193 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6194 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6195
303500aa
CY
61962010-03-15 Chong Yidong <cyd@stupidchicken.com>
6197
6198 * xfns.c (Fx_create_frame):
6199 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6200 on left.
6201
cef3058f
CY
62022010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6203
6204 * editfns.c (Fformat): Account for string precision when computing
6205 field width (Bug#5710).
6206
a647d59d
CY
62072010-03-12 Chong Yidong <cyd@stupidchicken.com>
6208
4fa42018
CY
6209 * xfns.c (Fx_create_frame): Set default to Qright.
6210
a647d59d
CY
6211 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6212 all window systems.
6213
6da23aaa
EZ
62142010-03-12 Eli Zaretskii <eliz@gnu.org>
6215
a96f6398 6216 These changes remove termcap.c from the build on Posix platforms.
83d02def 6217 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6218 (MSDOS_OBJ): ...to here.
6219 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6220 now identical to when LIBS_TERMCAP is defined.
6221
6222 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6223
6224 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6225
a96f6398 6226 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6227
288f9fc0
CY
62282010-03-10 Chong Yidong <cyd@stupidchicken.com>
6229
6230 * Branch for 23.2.
6231
d48cd3f4
SM
62322010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6233
6234 Cleanup setup of gl_state in various parts of the code.
6235 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6236 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6237 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6238 (skip_chars):
6239 * regex.c (regex_compile): Use it.
6240 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6241 it's now set in regex_compile when/if we need it.
6242
618db430
SM
62432010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6244
c0335e02
SM
6245 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6246 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6247 (QUIT): Use it to consolidate code and remove redundancy.
6248 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6249
254c06a8
SM
6250 * regex.c (regex_compile): Setup gl_state as well.
6251
618db430
SM
6252 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6253 (in_classes): Use CONSP before XCAR/XCDR.
6254
233f0c9f
CY
62552010-03-03 Chong Yidong <cyd@stupidchicken.com>
6256
6257 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6258 definitions, so that keyboard macros are correctly handled
6259 (Bug#5481).
6260
75f80e63
EZ
62612010-03-02 Eli Zaretskii <eliz@gnu.org>
6262
6263 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6264 text that could be relocated inside the call to emacs_mule_char.
6265 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6266 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6267
dcfb9bc4
KH
62682010-03-02 Kenichi Handa <handa@m17n.org>
6269
fc9a17bc
KH
6270 * character.c (parse_str_as_multibyte): Fix handling of the
6271 multibyte form of raw-bytes.
6272 (str_as_multibyte): Likewise.
6273
dcfb9bc4
KH
6274 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6275 form of raw-bytes.
6276
412c01b6
CY
62772010-02-28 Chong Yidong <cyd@stupidchicken.com>
6278
6279 * charset.c (load_charset_map_from_file)
6280 (load_charset_map_from_vector): Zero out allocated
6281 charset_map_entries before using them.
6282
df7e1ea0
AS
62832010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6284
6285 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6286
fe69a722
CY
62872010-02-27 Chong Yidong <cyd@stupidchicken.com>
6288
4ed28cf4
CY
6289 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6290 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6291
7379cfce
KH
62922010-02-26 Kenichi Handa <handa@m17n.org>
6293
f88cc4d6
KH
6294 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6295
7379cfce
KH
6296 * xdisp.c (reseat_to_string): Fix previous change.
6297
cf2fdcfb
CY
62982010-02-26 David Reitter <david.reitter@gmail.com>
6299
6300 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6301 Lisp_Object (Bug#4736).
6302
cc6c7c75
KH
63032010-02-25 Kenichi Handa <handa@m17n.org>
6304
6305 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6306
32e737d7
JD
63072010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6308
6309 * xterm.c (XTflash): Move declarations before statements.
6310
6311 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6312 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6313 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6314 (xg_create_tool_bar): Remove unused variables.
6315 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6316 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6317
676cae9f
CY
63182010-02-21 Chong Yidong <cyd@stupidchicken.com>
6319
6320 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6321
886cc2b8
SM
63222010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6323
6324 * term.c (fatal): Add a final \n if needed (bug#5596).
6325
ddb2d8e2
CY
63262010-02-18 Chong Yidong <cyd@stupidchicken.com>
6327
6328 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6329
2a4f8d3d
GM
63302010-02-18 Glenn Morris <rgm@gnu.org>
6331
6332 * callint.c (Finteractive): Doc fix.
6333
ebaf11b6
KH
63342010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6335
886cc2b8
SM
6336 * coding.c (record_conversion_result):
6337 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6338 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6339 memory allocation error.
6340
d0396581
KH
63412010-02-17 Kenichi Handa <handa@m17n.org>
6342
886cc2b8
SM
6343 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6344 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6345 (decode_coding): Setup ccl program here. Keep looping when the
6346 decoder stopped because the output buffer is
6347 fullfilled (bug#5534).
6348
6349 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6350
98599f74
JD
63512010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6352
471e4f04 6353 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6354 bug #5571.
886cc2b8 6355 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6356 overdrawn.
98599f74 6357
182659ae
JD
63582010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6359
6360 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6361 doing_interact here.
6362 (ice_connection_closed): New function.
6363 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6364 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6365 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6366 returns I/O error.
6367 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6368 bug #5512.
6369
9be32c4e 63702010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6371
6372 * nsfont.m (nsfont_open): The system's value for the font descent
6373 is negative, so round it down to avoid clipping.
6374
a2f3eb19
CY
63752010-02-06 Chong Yidong <cyd@stupidchicken.com>
6376
6377 * charset.c (load_charset_map_from_file)
6378 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6379 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6380
3088147c
CY
63812010-02-05 Chong Yidong <cyd@stupidchicken.com>
6382
6383 * charset.c (load_charset_map_from_file): Allocate large
6384 charset_map_entries structure on the heap rather than the stack.
6385 (Bug#5526).
6386
b57d9029
KH
63872010-01-31 Kenichi Handa <handa@m17n.org>
6388
6389 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6390 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6391
c67d885b
CY
63922010-01-31 Chong Yidong <cyd@stupidchicken.com>
6393
6394 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6395 <deactivated@gmail.com> (Bug#3605).
6396
8fab2362
CY
63972010-01-31 David De La Harpe Golden <david@harpegolden.net>
6398
6399 * fileio.c (Frename_file): Correctly rename symlinks to
6400 directories (Bug#5496).
6401
cb2a62f2
CY
64022010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6403
6404 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6405
944c7a26
AS
64062010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6407
6408 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6409
c024ac08
CY
64102010-01-29 Chong Yidong <cyd@stupidchicken.com>
6411
6412 * frame.c (DEFAULT_ROWS): Change default to 35.
6413
6414 * xfns.c (x_default_font_parameter): Change default XFT font to
6415 monospace-10 (Bug#3643).
6416
af93af83
EZ
64172010-01-29 Eli Zaretskii <eliz@gnu.org>
6418
6419 * w32inevt.c (key_event): Remove unnecessary comparison of
6420 event->uChar.AsciiChar with 128.
6421
ca0eb708
CY
64222010-01-28 Chong Yidong <cyd@stupidchicken.com>
6423
b242dbfc
CY
6424 * fileio.c (Frename_file): Fix last change (Bug#5487).
6425
ca0eb708
CY
6426 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6427
6428 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6429
45d45af5
JD
64302010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6431
6432 * xfns.c (Fx_create_frame): Remove window size matching code from
6433 2010-01-15.
a73f9c9d 6434 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6435
7e233730
JR
64362010-01-27 Jason Rumney <jasonr@gnu.org>
6437
6438 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6439 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6440
86e893e3
KH
64412010-01-27 Kenichi Handa <handa@m17n.org>
6442
6443 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6444 pattern string (Bug#4209).
86e893e3 6445
8719abec
CY
64462010-01-27 David De La Harpe Golden <david@harpegolden.net>
6447
6448 * fileio.c (Frename_file): Call copy-directory and
6449 delete-directory for directories, in order to handle cross-device
6450 renaming (Bug#3353).
6451
844794c8
JD
64522010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6453
aa3e13b5 6454 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6455 sizes 24 and 10. Bug #3643.
844794c8 6456
bd4b5750
SM
64572010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6458
8dc1adf6 6459 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6460 * keymap.c (shadow_lookup): Add `remap' arg.
6461 (describe_map, describe_vector): Update calls to shadow_lookup.
6462 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6463 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6464 perform remapping during shadow_lookup check of remapped_sequences.
6465
285d07e2
CY
64662010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6467
6468 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6469 png_check_sig, which has been removed in libpng 1.4.
6470
c6d09b8d
CY
64712010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6472
6473 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6474 lacks this header file).
6475
3d782998
YM
64762010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6477
6478 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6479 as in Emacs 22.
6480
2aff7c53
YM
64812010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6482
6483 * lisp.h (make_pure_string): String pointer arg now points to const.
6484
6485 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6486 args now point to const.
6487
74327f7a
EZ
64882010-01-22 Eli Zaretskii <eliz@gnu.org>
6489
6490 * lread.c (Fload): Don't treat files without .elc extension as
6491 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6492 them. (bug#5303)
6493
4d1e6632
KH
64942010-01-20 Kenichi Handa <handa@m17n.org>
6495
6496 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6497 treat the source as actual byte sequence.
6498
1fdede8f
AM
64992010-01-19 Alan Mackenzie <acm@muc.de>
6500
6501 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6502 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6503 `signal_after_change_p' to `coherent_change_p', and make the
6504 invocation of `modify_region' conditional on it.
6505
67477f30
JD
65062010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6507
6508 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6509 for debug purpose.
6510 (syms_of_xsettings): Declare xft-settings.
6511
244b023e
CY
65122010-01-18 Chong Yidong <cyd@stupidchicken.com>
6513
6514 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6515
617364fe
CY
65162010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6517
6518 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6519
4fe22cdf
CY
65202010-01-16 Chong Yidong <cyd@stupidchicken.com>
6521
6522 * emacs.c (standard_args): Adjust arg priorities to reflect how
6523 they are processed in startup.el.
6524
e118d2be
AS
65252010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6526
6527 * Makefile.in (lisp, shortlisp): Update.
6528
523ae620
SM
65292010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6530
6531 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6532 code, link the new kboard into all_kboard before running Lisp code,
6533 and protect the new terminal with GCPRO (Bug#5365).
6534 (x_term_init): Remove unused var `atom'.
6535 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6536
f0d13888
JD
65372010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6538
6539 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6540 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6541 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6542 this. Bug #3643.
f0d13888 6543
cc320f07
KH
65442010-01-15 Kenichi Handa <handa@m17n.org>
6545
6546 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6547
7ffdf101
CY
65482010-01-15 Chong Yidong <cyd@stupidchicken.com>
6549
6550 * nsterm.m (Qnone): Define.
6551
6552 * nsfns.m (Qnone): Move definition to nsterm.m.
6553
d12bd917
KH
65542010-01-14 Kenichi Handa <handa@m17n.org>
6555
6556 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6557 systems.
6558
d9a7c140
KH
65592010-01-14 Kenichi Handa <handa@m17n.org>
6560
6561 Make auto-composition work on all buffers even if they are
6562 fundamental mode.
6563
6564 * composite.c (Vauto_composition_mode): New variable.
6565 (composition_compute_stop_pos): Check Vauto_composition_mode
6566 instead of Vauto_composition_function.
6567 (composition_adjust_point, Ffind_composition_internal): Likewise.
6568 (syms_of_composite): Declare Lisp variable
6569 "auto-composition-mode" here.
6570
63286bb2
CY
65712010-01-13 Chong Yidong <cyd@stupidchicken.com>
6572
6573 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6574 during call to vendor-specific-keysyms (Bug#5365).
6575
c2623ee7
YM
65762010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6577
6578 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6579 Call SIGNAL_THREAD_CHECK (Bug#5333).
6580
6581 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6582 Call SIGNAL_THREAD_CHECK.
6583
0b5397c2
SM
65842010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6585
6586 Try to fix bug#5314. This is probably not the final word, tho.
6587 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6588 recent-auto-save-p as a side-effect.
6589 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6590 * buffer.c (Fkill_buffer, reset_buffer):
6591 * editfns.c (Fsubst_char_in_region):
6592 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6593 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6594
dc954cb2
KH
65952010-01-13 Kenichi Handa <handa@m17n.org>
6596
6597 Display buffer name, etc. in mode line by composing correctly.
6598
6599 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6600 STRING is not nil.
0b5397c2 6601 (display_mode_element): Adjust for the change of
dc954cb2
KH
6602 decode_mode_spec and display_line.
6603 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6604 (display_string): Handle the case that STRING is non-null and
6605 LISP_STRING is not nil.
6606
0b5397c2
SM
6607 * xterm.c (x_draw_composite_glyph_string_foreground):
6608 Pay attention to s->face->overstrike.
dc954cb2
KH
6609
6610 * composite.c (composition_reseat_it): Don't check PT if STRING is
6611 non nil.
6612
4a00eaca
YM
66132010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6614
6615 * keyboard.c (read_char): Don't apply previous change when current
6616 buffer is unchanged by command execution.
6617
60abb287
JD
66182010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6619
6620 * keyboard.c (read_char): Return after executing from special map.
6621
893db5bc
GM
66222010-01-12 Glenn Morris <rgm@gnu.org>
6623
6624 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6625 bug-gnu-emacs rather than emacs-pretest-bug.
6626
4d03ece0
CY
66272010-01-11 Chong Yidong <cyd@stupidchicken.com>
6628
6629 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6630 initializing the Lisp variables that depend on them.
6631
1df47e38
YM
66322010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6633
6634 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6635 Clear areas that will not be updated after change of menu bar lines.
6636 Clear the menu bar window's current matrix when the window gets empty.
6637
2f1c6384
CY
66382010-01-09 Chong Yidong <cyd@stupidchicken.com>
6639
e398c61c
CY
6640 * intervals.h, textprop.c (extend_property_ranges): Return value
6641 and args changed. Discard properties that begin at or after the
6642 new end (Bug#5306).
6643
6644 * editfns.c (Fformat): Caller changed.
6645
e5a29a10
CY
6646 * nsterm.m (ns_set_default_prefs): Delete function.
6647 (syms_of_nsterm): Initialize ns_command_modifier,
6648 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6649 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6650
2f1c6384
CY
6651 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6652 position (Bug#4040).
6653
d427a9fa
EZ
66542010-01-09 Eli Zaretskii <eliz@gnu.org>
6655
6656 * editfns.c (Ffloat_time): Doc fix.
6657
21b9df2f
JD
66582010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6659
6660 * xfns.c (Fx_create_frame): Don't create frame larger than display
6661 by default bug#3643.
6662
4b00d3b1
YM
66632010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6664
6665 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6666 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6667 windows above internal border.
6668
6669 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6670 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6671 windows above internal border.
6672
6673 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6674 tool bar windows specially.
6675
6676 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6677
6678 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6679 specially.
6680 (XTflash): Take account of menu bar height.
6681
6682 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6683 specially.
6684
5075d853
JD
66852010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6686
ac146f82 6687 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6688 also be true before we can return early (bug #5339).
6689
474217c8
CY
66902010-01-06 David Reitter <david.reitter@gmail.com>
6691
6692 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6693 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6694 (Bug#3233).
6695
c0e6d47d
JD
66962010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6697
d0cf45b7
JD
6698 * font.c (font_open_entity): Enable chache and call cached_font_ok
6699 for the driver if defined.
6700 (QCuser_spec): New symbol.
6701 (font_spec_from_name): Save name as user-spec.
6702 (font_load_for_lface): Keep user-spec instead of name.
6703 (font_open_by_name): Save name as user-spec.
6704 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6705 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6706
6707 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6708 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6709 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6710
6711 * font.h (struct font_driver): Add cached_font_ok.
6712
c0e6d47d
JD
6713 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6714
7c583cd8
JD
67152010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6716
6717 * xterm.c (x_new_font): Move code for setting rows/cols before
6718 resizing ...
ac146f82 6719 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6720
6721 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6722 (xg_frame_resized, xg_frame_set_char_size):
6723 Call xg_clear_under_internal_border.
7c583cd8 6724 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6725
03f77f0a
CY
67262010-01-05 Chong Yidong <cyd@stupidchicken.com>
6727
6728 * keyboard.c (read_key_sequence): Catch keyboard switch after
6729 making a new tty frame (Bug#5095).
6730
2a1ef5be
KH
67312010-01-05 Kenichi Handa <handa@m17n.org>
6732
6733 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6734
e3eb1dae
SM
67352010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6736
6737 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6738 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6739 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6740
777013f2
MA
67412010-01-03 Michael Albinus <michael.albinus@gmx.de>
6742
6743 * dbusbind.c (xd_add_watch): Improve debug message.
6744 (xd_remove_watch): Improve debug message. If DATA is the session
6745 bus, unset D-Bus session environment.
6746 (Fdbus_init_bus): Pass the bus as argument to
6747 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6748
8932b1c2
CY
67492010-01-01 Chong Yidong <cyd@stupidchicken.com>
6750
87231e2c
CY
6751 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6752
4801c5fa
CY
6753 * lread.c (syms_of_lread): Make it clearer that these are the
6754 names of loaded files (Bug#5068).
6755
8932b1c2
CY
6756 * eval.c (run_hook_with_args): Handle the case where the global
6757 value has the obsolete single-function form (Bug#5026).
6758
11e3c684
CY
67592009-12-27 Chong Yidong <cyd@stupidchicken.com>
6760
6761 * minibuf.c (Fall_completions): Minor optimization.
6762
5b28ce35
EZ
67632009-12-26 Eli Zaretskii <eliz@gnu.org>
6764
5ce6e4f4
JB
6765 * .gdbinit (pgx): Fix display of composite glyphs.
6766 Display cmp.from and cmp.to as well.
6767 (pitx): Fix last change.
5b28ce35 6768
bcffff46
KH
67692009-12-25 Kenichi Handa <handa@m17n.org>
6770
6771 * composite.h (composition_adjust_point): Update prototype.
6772
6773 * composite.c (composition_reseat_it): Don't make a composition
6774 spanning over point.
6775 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6776 composable characters.
6777 (composition_adjust_point): New arg NEW_PT. Callers changed.
6778
6779 * keyboard.c (command_loop_1): Force redisplay if the last point
6780 was within a composition.
6781 (adjust_point_for_property): Don't adjust point for automatic
6782 composition when called after buffer modification.
6783
3f670e9a
EZ
67842009-12-19 Eli Zaretskii <eliz@gnu.org>
6785
5ce6e4f4
JB
6786 * .gdbinit (pitx): Don't use enum names, use their values.
6787 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6788 (pgx): Don't use enum names, use their values.
6789 (pitmethod): New helper command.
6790 (pitx): Use it to display iteration method.
6791 (pgrowit): New command.
6792
ad903955
EZ
6793 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6794
3f670e9a
EZ
6795 Update dependencies in Makefile.in.
6796
6797 * Makefile.in (alloc.o): Depend on termhooks.h.
6798 (atimer.o): Depend on blockinput.h.
6799 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6800 and frame.h.
6801 (callint.o): Depend on systime.h, coding.h, and composite.h.
6802 (callproc.o): Depend on buffer.h.
6803 (casefiddle.o): Don't depend on charset.h.
6804 (casetab.o): Depend on character.h.
6805 (ccl.o): Depend on composite.h.
6806 (chartab.o): Depend on ccl.h.
6807 (cm.o): Depend on dispextern.h.
6808 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6809 (coding.o): Don't depend on $(INTERVALS_H).
6810 (composite.o): Don't depend on dispextern.h explicitly (it's in
6811 $(INTERVALS_H)). Depend on ccl.h.
6812 (data.o): Depend on systime.h, coding.h, composite.h,
6813 dispextern.h, font.h, and ccl.h.
6814 (dired.o): Depend on composite.h.
6815 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6816 composite.h (it's in $(INTERVALS_H)).
6817 (doc.o): Depend on systime.h, coding.h, and composite.h.
6818 (editfns.o): Don't depend explicitly on dispextern.h.
6819 (emacs.o): Depend on frame.h and coding.h.
6820 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6821 (fileio.o): Depend on frame.h and commands.h. Don't depend
6822 explicitly on dispextern.h.
6823 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6824 composite.h.
6825 (fns.o): Don't depend on termhooks.h.
6826 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6827 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6828 coding.h, $(INTERVALS_H), window.h, xterm.h.
6829 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6830 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6831 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6832 fontset.h, ccl.h, and ftfont.h.
6833 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6834 (gtkutil.o): Depend on dispextern.h and composite.h.
6835 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6836 termhooks.h, and ccl.h.
6837 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6838 (intervals.o): Depend on systime.h and coding.h.
6839 (keyboard.o): Depend on composite.h and coding.h.
6840 (keymap.o): Depend on coding.h and frame.h.
6841 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6842 (macros.o): Depend on systime.h, coding.h, and composite.h.
6843 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6844 and atimer.h.
6845 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6846 dispextern.h explicitly.
0b5397c2
SM
6847 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6848 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6849 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6850 (regex.o): Don't depend on charset.h.
6851 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6852 (search.o): Don't depend explicitly on composite.h.
6853 (sound.o): Depend on atimer.h and systime.h.
6854 (syntax.o): Don't depend explicitly on composite.h.
6855 (sysdep.o): Depend on coding.h and composite.h.
6856 (term.o): Depend on xterm.h and buffer.h.
6857 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6858 (textprop.o): Don't depend on dispextern.h explicitly.
6859 (undo.o): Depend on dispextern.h.
6860 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6861 dispextern.h and composite.h explicitly.
6862 (xdisp.o): Depend on ccl.h.
6863 (xfaces.o): Depend on coding.h and ccl.h.
6864 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6865 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6866 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6867 ftfont.h.
6868 (xgselect.o): New dependency.
6869 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6870 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6871 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6872 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6873 (xsmfns.o): Depend on frame.h and dispextern.h.
6874 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6875 sysselect.h.
6876
7a6f7fea
AS
68772009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6878
6879 * font.c (Fclear_font_cache): Pass correct cache argument to
6880 font_clear_cache.
6881
f4c21026
AS
68822009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6883
6884 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6885 twice.
6886
f7ab0997
CY
68872009-12-15 Chong Yidong <cyd@stupidchicken.com>
6888
6889 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6890 calling file-remote-p. Reported by Jim Meyering.
6891
fa8e045a
MA
68922009-12-15 Michael Albinus <michael.albinus@gmx.de>
6893
6894 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6895 avoid compiler warnings. (Bug #5217)
fa8e045a 6896
a63dba42
KH
68972009-12-14 Kenichi Handa <handa@m17n.org>
6898
6899 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6900 in 8-bit encoding.
6901
5ce6e4f4 69022009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6903
6904 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6905 tooltip windows.
6906
223e5fc6
JD
69072009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6908
36acb2a7
JD
6909 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6910 Xatom_net_window_type.
6911
6912 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6913 Xatom_net_window_type.
6914
b8f00677
JD
6915 * xterm.c (my_log_handler): New function.
6916 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6917 so we can filter out buggy messages. (Bug #5120).
b8f00677 6918
e5f0bc9a
JD
6919 * xterm.c (xg_scroll_callback): Parameter list changed,
6920 use parameter GtkScrollType to determine scroll/line/page.
6921 Only allow dragging if a button < 4 is grabbed (bug #5177).
6922 (xg_end_scroll_callback): New function.
6923 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6924 xg_create_scroll_bar.
6925
6926 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6927 (scroll_end_callback): Remove.
6928 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6929 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6930 bug #5177.
e5f0bc9a
JD
6931 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6932 bug #5177.
6933
6934 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6935 (xg_create_scroll_bar): Add GCallback end_callback.
6936
223e5fc6
JD
6937 * xftfont.c (QClcdfilter): New variable.
6938 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6939 (syms_of_xftfont): Initialize QClcdfilter.
6940
3c055b77
JD
69412009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6942
6943 * xsettings.c (struct xsettings): Add member seen.
6944 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6945 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6946 (apply_xft_settings): Only update Xft settings with what member seen
6947 indicates as new.
6948
05fe33ff
EZ
69492009-12-12 Eli Zaretskii <eliz@gnu.org>
6950
c4cc8b9a 6951 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6952 (struct glyph): Use EMACS_INT for charpos.
6953 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6954 region_beg_charpos, region_end_charpos,
6955 redisplay_end_trigger_charpos, and also for
6956 iterator_stack_entry.end_charpos and
6957 iterator_stack_entry.stop_charpos.
6958
e8d7886a
JD
69592009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6960
5ce6e4f4 6961 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6962 (xg_create_scroll_bar): Call scroll_end_callback on button release
6963 event (bug #5177).
6964 (xg_event_is_for_scrollbar): != replaced with ==.
6965
d0db2ec8
KH
69662009-12-12 Kenichi Handa <handa@m17n.org>
6967
6968 * ftfont.c (struct ftfont_info): New member matrix.
6969 (ftfont_open): Setup xftfont_info->matrix.
6970 (MFLTFontFT): New member matrix.
6971 (FLOOR, CEIL, ROUND): New macros.
6972 (ftfont_get_metrics): Handle matrix transformation.
6973 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6974
6975 * xftfont.c (struct xftfont_info): New member matrix.
6976 (xftfont_open): Setup xftfont_info->matrix.
6977
69782009-12-10 Kenichi Handa <handa@m17n.org>
6979
6980 * xdisp.c (append_space_for_newline): Consider face-remapping.
6981
2cc7b62f
AS
69822009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6983
b87dd913
AS
6984 * xsettings.c: Include "keyboard.h".
6985
eba5eb94
AS
6986 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6987
2cc7b62f
AS
6988 Fix implicit function declarations.
6989 * cmds.c: Include "frame.h".
6990 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6991 * frame.h: Move declaration of delete_frame outside of
6992 HAVE_WINDOW_SYSTEM.
6993
a4ef73c8
CY
69942009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6995
6996 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6997
6998 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6999 GTK builds.
7000
944a300c
AS
70012009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7002
7003 * unexelf.c (unexec): Don't search for .data twice.
7004
022eef62
CY
70052009-12-05 Chong Yidong <cyd@stupidchicken.com>
7006
426ac949
CY
7007 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7008 if push failed.
7009 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7010 of push_display_prop (Bug#5000).
7011
022eef62
CY
7012 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7013 value of font_list_entities (Bug#5085).
7014
be95bee9
JB
70152009-12-04 Juanma Barranquero <lekktu@gmail.com>
7016
7017 Fix `string-to-number' to deal consistently with integers and floats.
7018 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7019 trailing characters, not just whitespace.
7020 (read1): Pass new arg 0 to keep old behavior.
7021 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7022 trailing chars, as it is already done for integers. Doc fixes.
7023 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7024
24c2d7ce
EZ
70252009-12-04 Eli Zaretskii <eliz@gnu.org>
7026
0b5397c2
SM
7027 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7028 Delete unused enumeration value.
24c2d7ce 7029
7e694795
EZ
70302009-12-03 Eli Zaretskii <eliz@gnu.org>
7031
7032 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7033
84b31826
SM
70342009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7035
7036 * process.c (Fmake_network_process): Fix up the tests for
7037 "connectionless socket", so they DTRT for seqpacket sockets as well.
7038
f00c449b
SM
70392009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7040
7041 * process.c (Qseqpacket): New symbol.
7042 (HAVE_SEQPACKET): New macro.
7043 (Fmake_network_process): Accept new :type `seqpacket'.
7044 (init_process): Add `seqpacket' feature when applicable.
7045 (syms_of_process): Initialize Qseqpacket.
7046
8096a0ff
YM
70472009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7048
7049 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7050 if entity is Qnil.
7051
3e0de07f
SM
70522009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7053
7054 * print.c (print_preprocess): Preprocess the key_and_value table of
7055 hashtables, even tho they're "hidden" (bug#5082).
7056
abeafb2a
JD
70572009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7058
7059 * frame.c (frame_make_pointer_invisible)
7060 (frame_make_pointer_visible): Declare f before statements.
7061
4bf47195
EZ
70622009-11-28 Eli Zaretskii <eliz@gnu.org>
7063
7064 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7065 omitted dependencies on lisp.h.
7066
c525b3f2
JD
70672009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7068
ece2d4ed
JD
7069 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7070 is NULL.
7071
7072 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7073
7074 * frame.c (frame_make_pointer_invisible)
3e0de07f 7075 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7076 frame.
7077
c525b3f2
JD
7078 * search.c (simple_search): Remove warning by making *p const.
7079
2f00e299
DN
70802009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7081
7082 * xdisp.c (power_letter): Remove duplicate const.
7083
084b049b
JD
70842009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7085
a1fadc6f
JD
7086 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7087
5ce6e4f4 7088 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7089 defaults (bug #5025).
7090
28259cac
SM
70912009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7092
7093 * insdel.c (adjust_markers_for_delete): Move it in the
7094 right direction! (bug#4803)
7095
e8e14166
YM
70962009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7097
7098 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7099
7100 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7101
86677b58
GM
71022009-11-24 Glenn Morris <rgm@gnu.org>
7103
7104 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7105
581e51e8
JD
71062009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7107
cfc86c7a
JD
7108 * Makefile.in: Must create deps for ecrt0.o in its rule.
7109
581e51e8
JD
7110 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7111 because that is what Gtk+ font dialog understands.
7112
7113 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7114 of Fcopy_sequence.
7115 (font_open_by_name): Put name given into QCname for font-object returned.
7116
7117 * frame.c (x_set_font): Save original font name as frame parameter
7118 font-parameter.
7119
7120 * xsettings.c (set_default_xft_settings): New function.
7121 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7122 is found.
7123
8b264ecb
AS
71242009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7125
7126 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7127 searching backwards through multibyte buffer.
7128
872870b2
JD
71292009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7130
7131 * xterm.c: #include xgselect.h.
7132 (x_initialize): Call xgselect_initialize.
7133
7134 * xsettings.c (something_changedCB): C++ comments => C comments.
7135 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7136 does that now.
7137
7138 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7139 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7140 (scroll_bar_button_cb): Remove.
5ce6e4f4 7141 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7142 event.
7143 (xg_create_scroll_bar): Don't bind button-press-event and
7144 button-release-event.
7145
7146 * process.c: Include xgselect.h if defined (USE_GTK) ||
7147 defined (HAVE_GCONF).
7148 (wait_reading_process_output): Call xg_select for the same condition.
7149
7150 * xgselect.c (xg_select): New function to better integrate with
7151 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7152
7153 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7154
7155 * Makefile.in (XOBJ): Add xgselect.o.
7156
62a6e103
AS
71572009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7158
0b5397c2
SM
7159 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7160 Remove ignored second argument. All callers changed.
62a6e103
AS
7161 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7162 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7163 * xdisp.c (string_char_and_length): Likewise.
7164
b0ca0f33
DN
71652009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7166
7167 * xterm.c (x_new_font):
7168 * print.c (print_object):
7169 * cmds.c (Fself_insert_command): Move declarations before statements.
7170
dd5a6279
CY
71712009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7172
7173 * s/cygwin.h: Remove unneeded linker flags.
7174
4a8e097d
JD
71752009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7176
0d1d0d26
JD
7177 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7178
7179 * xsettings.h: Declare xsettings_get_system_font.
7180
7181 * xsettings.c (xsettings_get_system_font): New function.
7182 (init_gconf): No use initiating gconf unless we have Xft also.
7183 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7184 HAVE_GCONF.
7185
4a8e097d
JD
7186 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7187 add a blank entry so it doesn't collapse into nothing.
7188
8ab1650e
SM
71892009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7190
7191 * lread.c (Funintern): Comment out last change.
7192
82c602f0
RS
71932009-11-19 Richard Stallman <rms@gnu.org>
7194
7195 * lread.c (Funintern): Error if symbol is t or nil.
7196
87e32266
SM
71972009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7198
7199 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7200 representation of Lisp integers.
7201 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7202
1b9ac145
AS
72032009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7204
7205 * lisp.h: Remove declaration of Ffont_get_system_font.
7206 * xfns.c: Move include of "xsettings.h".
7207 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7208
dfb3c4c6
JD
72092009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7210
87e32266
SM
7211 * xsettings.c (something_changedCB, Ffont_get_system_font):
7212 Check use_system_font.
dfb3c4c6
JD
7213 (syms_of_xsettings): DEFVAR font-use-system-font.
7214
9370c1d8
AS
72152009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7216
25fe851a
AS
7217 * xfns.c (x_default_font_parameter): Remove dead assignment.
7218
9370c1d8
AS
7219 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7220
637fa988
JD
72212009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7222
87e32266 7223 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7224 not have FC_LCD_*. #define them if not there.
a6eb20d8 7225
87e32266 7226 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7227
637fa988
JD
7228 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7229
7230 * xterm.c (handle_one_xevent): Call xft_settings_event for
7231 ClientMessage, PropertyNotify and DestroyNotify.
7232 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7233 Call xsettings_initialize.
7234
7235 * xftfont.c (xftfont_fix_match): New function.
7236 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7237 Call xftfont_fix_match after XftFontMatch.
7238
7239 * xfont.c (xfont_driver): Initialize all members.
7240
87e32266
SM
7241 * xfns.c (x_default_font_parameter):
7242 Try font from Ffont_get_system_font.
637fa988
JD
7243 Do not get font from x_default_parameter if we got one from
7244 Ffont_get_system_font.
87e32266 7245 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7246
7247 * w32font.c (w32font_driver): Initialize all members.
7248
7249 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7250
7251 * lisp.h: Declare syms_of_xsettings.
7252
87e32266
SM
7253 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7254 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7255
7256 * ftfont.c (ftfont_filter_properties): New function.
7257
7258 * frame.c (x_set_font): Remove unused variable lval.
7259
87e32266 7260 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7261
7262 * font.c (font_put_extra): Don't return if val is nil, it means
7263 boolean option is off.
7264 (font_parse_fcname): Collect all extra properties in extra_props
7265 and call filter_properties for all drivers with extra_props and
7266 font as parameter.
87e32266
SM
7267 (font_open_entity): Do not use cache, it does not pick up new
7268 fontconfig settings like hinting.
637fa988
JD
7269 (font_load_for_lface): If spec had a name in it, store it in entity.
7270
a73f9c9d 7271 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7272
7273 * config.in: HAVE_GCONF is new.
7274
7275 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7276 xsettings.o is new.
7277
5a942932
KH
72782009-11-17 Kenichi Handa <handa@m17n.org>
7279
7280 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7281 back to the default font in case that no suitable font is found.
7282
b7c7a4d1
SM
72832009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7284
7285 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7286 Suggested by Chad Brown <yandros@mit.edu>.
7287 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7288
072f1e39
JD
72892009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7290
7291 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7292
5d1e70a2
AS
72932009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7294
87e32266 7295 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7296
a53cfbe5
JD
72972009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7298
473a99b7
JD
7299 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7300 has a parent.
7301
a53cfbe5 7302 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7303 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7304
7305 * config.in: Generated (AUTO_DEPEND).
7306
f04bb9b2
MA
73072009-11-13 Michael Albinus <michael.albinus@gmx.de>
7308
b7c7a4d1 7309 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7310 Vdbus_registered_functions_table, because it contains also
7311 properties. Fix docstring.
b7c7a4d1 7312 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7313
8f11f7ec
SM
73142009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7315
7316 * alloc.c (mark_object): Don't reprocess marked strings.
7317 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7318 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7319
8a605fe8
KH
73202009-11-13 Kenichi Handa <handa@m17n.org>
7321
8f11f7ec 7322 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7323 semantics of Vword_combining_categories.
7324 (Vword_combining_categories): Describe the slight change of the
7325 semantics.
7326
241c4680
EZ
73272009-11-13 Eli Zaretskii <eliz@gnu.org>
7328
7329 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7330
7331 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7332
5d58e44c
SM
73332009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7334
7335 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7336
5e13f9d3
JB
73372009-11-12 Juanma Barranquero <lekktu@gmail.com>
7338
7339 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7340
cf54c754
DR
73412009-11-11 David Reitter <david.reitter@gmail.com>
7342
7343 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7344 variables to fix 2009-11-09 change.
7345
a4ada374
DN
73462009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7347
91433552
DN
7348 * process.c (ifflag_def): Make flag_sym constant.
7349 (Fnetwork_interface_info): Use a constant pointer.
7350 (ifflag_table):
7351 * xfns.c (cursor_bits):
7352 * xdisp.c (power_letter):
7353 * termcap.c (speeds, esctab):
7354 * sysdep.c (baud_convert):
7355 * keyboard.c (lispy_accent_codes, modifier_names):
7356 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7357 (jpeg_format, tiff_format, gif_format, svg_format)
7358 (interlace_start, interlace_increment, gs_format):
7359 * gtkutil.c (separator_names):
7360 * fringe.c (swap_nibble):
7361 * fns.c (base64_value_to_char, base64_char_to_value):
7362 * fileio.c (make_temp_name_tbl):
7363 * coding.c (suffixes): Make constant.
7364
f4265f6c
DN
7365 * frame.c (make_initial_frame):
7366 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7367 build_string.
7368 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7369
04420943
DN
7370 * s/freebsd.h:
7371 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7372
0a5d24ae
DN
7373 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7374 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7375
a4ada374
DN
7376 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7377 * xterm.c (syms_of_xterm):
7378 * xfaces.c (syms_of_xfaces):
7379 * xdisp.c (syms_of_xdisp):
7380 * lread.c (syms_of_lread):
7381 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7382 build_string.
91433552 7383
a4ada374
DN
7384 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7385
af98fc7f
SM
73862009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7387
8ab1650e 7388 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7389
e90292a9
JD
73902009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7391
7392 * keyboard.h: Declare timer_check.
7393
7394 * keyboard.c (timer_check_2): New function that does what the old
7395 timer_check did.
7396 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7397 returned, i.e. don't return -1 with timers pending.
7398
7399 * process.c: Remove extern declaration of timer_check.
7400
7401 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7402 even if timer_check returned -1.
7403
af98fc7f
SM
7404 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7405 xg_dialog_data.
e90292a9
JD
7406 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7407 the event loop.
7408 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7409 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7410 Destroy the dialog after xg_dialog_run.
7411
045b83c0
SM
74122009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7413
7414 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7415
1fb99a3a
JD
74162009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7417
7418 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7419
04e452cb
JB
74202009-11-09 Juanma Barranquero <lekktu@gmail.com>
7421
7422 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7423
ef7417fd
SM
74242009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7425
7426 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7427 w32menu.c, and nsmenu.m.
7428 Simplify the obsolete case where position is nil.
7429 (cleanup_popup_menu): New function, moved from nsmenu.m.
7430 (struct skp): Remove slot `notreal'.
7431 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7432 adjust callers.
7433 (single_menu_item): Adjust call to parse_menu_item.
7434 (syms_of_menu): Defsubr x-popup-menu.
7435 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7436 (keymap_panes): Don't export any more.
7437 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7438 (xmenu_show): Declare.
7439 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7440 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7441 * keyboard.h (parse_menu_item): Update declaration.
7442 * xmenu.c (Fx_popup_menu): Remove.
7443 (syms_of_xmenu): Don't defsubr x-popup-menu.
7444 * w32menu.c (Fx_popup_menu): Remove.
7445 (syms_of_w32menu): Don't defsubr x-popup-menu.
7446 * nsmenu.m (cleanup_popup_menu): Remove.
7447 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7448 moved to menu.c's Fx_popup_menu.
7449 (Fx_popup_menu): Remove.
7450 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7451 menu_items (it's done in menu.c already).
7452
424d6179
SM
74532009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7454
7455 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7456 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7457
c0df13a6 74582009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7459
7460 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7461 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7462 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7463 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7464
2de9f71c
SM
74652009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7466
7467 Let integers use up 2 tags to give them one extra bit and thus double
7468 their range.
7469 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7470 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7471 New macros.
7472 (enum Lisp_Type): Use them. Give explicit values.
7473 (Lisp_Type_Limit): Remove.
7474 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7475 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7476 Pay attention to USE_2_TAGS_FOR_INTS.
7477 (INTEGERP): Use LISP_INT_TAG_P.
7478 * fns.c (internal_equal): Simplify the default case.
7479 (sxhash): Use case_Lisp_Int.
7480 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7481 any more.
7482 (Ftype_of): Use case_Lisp_Int.
7483 (store_symval_forwarding): Take into account the fact that Ints can
7484 now have more than one tag.
7485 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7486 (buffer_slot_type_mismatch):
2de9f71c
SM
7487 * xfaces.c (face_attr_equal_p):
7488 * print.c (print_object):
7489 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7490 Use case_Lisp_Int.
7491
323637a2
EZ
74922009-11-06 Eli Zaretskii <eliz@gnu.org>
7493
7ac65b38
EZ
7494 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7495
323637a2
EZ
7496 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7497 warning.
7498
e511451f
JD
74992009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7500
7501 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7502
7503 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7504
7505 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7506 ButtonPressRelease and MotionNotify (bug#4870).
7507
5e2327cf
DN
75082009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7509
5adc433e
DN
7510 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7511
d67b4f80
DN
7512 * xterm.c (syms_of_xterm):
7513 * xselect.c (syms_of_xselect):
7514 * xmenu.c (syms_of_xmenu):
7515 * xfns.c (syms_of_xfns):
7516 * xfaces.c (syms_of_xfaces):
7517 * xdisp.c (syms_of_xdisp):
7518 * window.c (syms_of_window):
7519 * w32fns.c (syms_of_w32fns):
7520 * undo.c (syms_of_undo):
7521 * textprop.c (syms_of_textprop):
7522 * terminal.c (syms_of_terminal):
7523 * syntax.c (syms_of_syntax):
7524 * sound.c (syms_of_sound):
7525 * search.c (syms_of_search):
7526 * print.c (syms_of_print):
7527 * minibuf.c (syms_of_minibuf):
7528 * macros.c (syms_of_macros):
7529 * keymap.c (syms_of_keymap, initial_define_key)
7530 (initial_define_lispy_key):
7531 * keyboard.c (syms_of_keyboard):
7532 * insdel.c (syms_of_insdel):
7533 * image.c (syms_of_image):
7534 * fringe.c (syms_of_fringe):
7535 * frame.c (syms_of_frame):
7536 * fontset.c (syms_of_fontset):
7537 * fns.c (syms_of_fns):
7538 * fns.c (syms_of_fns):
7539 * fileio.c (syms_of_fileio):
7540 * fileio.c (syms_of_fileio):
7541 * eval.c (syms_of_eval):
7542 * doc.c (syms_of_doc):
7543 * dispnew.c (syms_of_display):
7544 * dired.c (syms_of_dired):
7545 * dbusbind.c (syms_of_dbusbind):
7546 * data.c (syms_of_data):
7547 * composite.c (syms_of_composite):
7548 * coding.c (syms_of_coding):
7549 * cmds.c (syms_of_cmds):
7550 * charset.c (define_charset_internal, syms_of_character):
7551 * ccl.c (syms_of_ccl):
7552 * category.c (syms_of_category, init_category_once):
7553 * casetab.c (syms_of_casetab):
7554 * casefiddle.c (syms_of_casefiddle):
7555 * callint.c (syms_of_callint):
7556 * bytecode.c (syms_of_bytecode):
7557 * buffer.c (keys_of_buffer, syms_of_buffer):
7558 * alloc.c (syms_of_alloc):
7559 * process.c (syms_of_process, init_process):
7560 * lread.c (syms_of_lread, init_obarray):
7561 * font.c (build_style_table):
7562 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7563 intern_c_string, calls to make_pure_string with
7564 make_pure_c_string. Use pure_cons instead of Fcons.
7565
5e2327cf
DN
7566 * process.c (socket_options): Make it const.
7567 (set_socket_option, init_process): Use a const pointer.
7568
7569 * lread.c (intern_c_string): New function.
7570 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7571 (defvar_int): Uset it. Make the name const char*.
7572
7573 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7574 (defvar_int): Update prototypes.
7575 (DEFUN, EXFUN): Support for prototypes is now required.
7576 (intern_c_string): New prototype.
7577 (struct Lisp_Subr): Make symbol_name constant.
7578
7579 * font.c (struct table_entry): Remove unused member. Make NAMES
7580 constant.
7581 (weight_table, slant_table, width_table): Make constant.
7582
7583 * emacs.c (struct standard_args): Make name and longname constant.
7584
7585 * character.h (DEFSYM): Use intern_c_string.
7586
a56eaaef
DN
75872009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7588
7589 * alloc.c (make_pure_c_string): New function.
7590
7591 * eval.c (Fautoload): Purecopy all arguments.
7592
f6a07420
KH
75932009-11-05 Kenichi Handa <handa@m17n.org>
7594
7595 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7596 the buffer in case of replace.
7597
5d28d4b1
DN
75982009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7599
7600 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7601
b349d111
SM
76022009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7603
d528b1ce
SM
7604 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7605 when applicable (bug#4851).
7606
b349d111
SM
7607 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7608 (P_): Support for prototypes is now required.
7609
c38eb027
CY
76102009-10-31 Chong Yidong <cyd@stupidchicken.com>
7611
7612 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7613 (Bug#4827).
7614
0405f8d9
EZ
76152009-10-30 Eli Zaretskii <eliz@gnu.org>
7616
d528b1ce 7617 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7618
ca0a881a
DN
76192009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7620
7621 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7622
d528b1ce
SM
7623 * lread.c (Fload): Purecopy the file name when building
7624 Vpreloaded_file_list.
ca0a881a 7625
47e0e0e4
JR
76262009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7627
7628 * w32fns.c (syms_of_w32fns): Change default value of
7629 w32-scroll-lock-modifier to nil. (Bug#2827)
7630
057bce6f
JB
76312009-10-26 Juanma Barranquero <lekktu@gmail.com>
7632
782a943e 7633 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7634
242bc74c
AS
76352009-10-26 Andreas Schwab <schwab@redhat.com>
7636
7637 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7638
522d013a
JB
76392009-10-26 Juanma Barranquero <lekktu@gmail.com>
7640
7641 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7642 For delta < 0, skip check that only makes sense when the mini-window
7643 is going to be enlarged. (Bug#4534)
7644
18060980
CY
76452009-10-25 Chong Yidong <cyd@stupidchicken.com>
7646
7647 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7648 string in menu maps (Bug#4471).
7649
fec8f0fe
CY
76502009-10-24 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7653 FRAME_NS_VIEW on terminal frames (Bug#4765).
7654
10d66ec0
AS
76552009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7656
1cae01f7
AS
7657 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7658 DBUS_TYPE_UINTnn separately to get proper sign extension.
7659
58a12889
AS
7660 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7661 can properly handle unsigned types.
d528b1ce 7662 (make_uid, make_gid): Remove.
58a12889 7663
987c9327
AS
7664 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7665 types again.
7666
522d013a 7667 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7668 (system_process_attributes): Likewise.
7669
905a9ed3
DN
76702009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7671
7672 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7673
7674 * eval.c (Fautoload): Purecopy the filename. Simplify.
7675
7676 * category.c (Fdefine_category): Purecopy docstring.
7677
a599b3e8
AS
76782009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7679
7b792fc9
AS
7680 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7681
a599b3e8
AS
7682 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7683
b35ac83e
CY
76842009-10-23 Chong Yidong <cyd@stupidchicken.com>
7685
7686 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7687 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7688 (Bug#4775).
7689
e8903e00
SM
76902009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7691
7692 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7693 (init_fileio_once):
7694 * lisp.h (init_fileio_once): Remove.
7695 * emacs.c (main): Don't call init_fileio_once.
7696
8f43cbf3
DN
76972009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7698
7699 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7700
26898943
AS
77012009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7702
7703 * doprnt.c (doprnt): Fix overflow check.
7704
5c646d5a
JD
77052009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7706
3132a7ea
JD
7707 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7708
5c646d5a
JD
7709 * xterm.h (x_wait_for_event): Declare it.
7710
7711 * xterm.c (pending_event_wait): New variable.
7712 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7713 see pending_event_wait.eventtype.
7714 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7715 (x_new_font): Call change_frame_size with new rows/columns before we
7716 try to resize the frame.
5c646d5a 7717 (x_wait_for_event): New function.
d528b1ce
SM
7718 (x_set_window_size_1): Don't change gravity unless change_gravity
7719 is set.
5c646d5a
JD
7720 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7721 don't change frame size, instead wait for the ConfigureNotify.
7722 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7723 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7724 (x_initialize): Initialize pending_event_wait.
7725
7726 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7727 size.
7728
7729 * widget.c (EmacsFrameSetValues): Add comment.
7730 (EmacsFrameSetCharSize): Just call x_set_window_size.
7731
7732 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7733 x_wait_for_event.
d528b1ce 7734 (flush_and_sync): Remove again.
5c646d5a
JD
7735 (xg_get_font_name): Suggest monospace if no previous font is known.
7736
e9c1637d
SM
77372009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7738
7739 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7740 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7741
5a72cccb
YM
77422009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7743
7744 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7745 processing pending events when event is filtered for input method.
ab04798f 7746 (Bug#3681)
5a72cccb 7747
2629aa37
JB
77482009-10-20 Juanma Barranquero <lekktu@gmail.com>
7749
7750 * fns.c: Add #endif accidentally removed in previous change.
7751
c3417a74
DN
77522009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7753
7754 * fns.c: Remove code for unsupported system: MAC_OS.
7755 * image.c: Likewise. Include setjmp.h.
7756
9685cef2
JD
77572009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7758
7759 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7760 pixel -1 (bug #4742).
7761
d7306fe6
DN
77622009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7763
019d2c4c
DN
7764 * process.c (create_pty): Remove conditionals for no longer
7765 supported systems: UNIPLUS and RTU.
7766
ee6bacd4
DN
7767 * xterm.c:
7768 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7769
d7306fe6
DN
7770 * alloc.c: Do not define struct catchtag.
7771 * eval.c: Move struct catchtag definition ...
7772 * lisp.h: ... here.
7773
7774 * image.c: Move png.h #include earlier to avoid warnings.
7775
7776 * xterm.c:
7777 * xsmfns.c:
7778 * xselect.c:
7779 * xrdb.c:
7780 * xmenu.c:
7781 * xftfont.c:
7782 * xfont.c:
7783 * xfns.c:
7784 * xfaces.c:
7785 * xdisp.c:
7786 * window.c:
7787 * widget.c:
7788 * w32xfns.c:
7789 * w32uniscribe.c:
7790 * w32term.c:
7791 * w32select.c:
7792 * w32reg.c:
7793 * w32proc.c:
7794 * w32menu.c:
7795 * w32inevt.c:
7796 * w32heap.c:
7797 * w32font.c:
7798 * w32fns.c:
7799 * w32console.c:
7800 * w32.c:
7801 * w16select.c:
7802 * vm-limit.c:
7803 * unexsol.c:
7804 * unexec.c:
7805 * unexcw.c:
7806 * unexaix.c:
7807 * undo.c:
7808 * tparam.c:
7809 * textprop.c:
7810 * terminfo.c:
7811 * terminal.c:
7812 * termcap.c:
7813 * term.c:
7814 * syntax.c:
7815 * sound.c:
7816 * sheap.c:
7817 * search.c:
7818 * scroll.c:
7819 * region-cache.c:
7820 * regex.c:
7821 * ralloc.c:
7822 * process.c:
7823 * print.c:
b024548b
DN
7824 * nsterm.m:
7825 * nsselect.m:
7826 * nsmenu.m:
7827 * nsimage.m:
7828 * nsfont.m:
7829 * nsfns.m:
d7306fe6
DN
7830 * msdos.c:
7831 * minibuf.c:
7832 * menu.c:
7833 * marker.c:
7834 * macros.c:
7835 * keymap.c:
7836 * keyboard.c:
7837 * intervals.c:
7838 * insdel.c:
7839 * indent.c:
7840 * gtkutil.c:
7841 * ftxfont.c:
7842 * ftfont.c:
7843 * fringe.c:
7844 * frame.c:
7845 * fontset.c:
7846 * font.c:
7847 * fns.c:
7848 * floatfns.c:
7849 * filelock.c:
7850 * fileio.c:
7851 * emacs.c:
7852 * editfns.c:
7853 * dosfns.c:
7854 * doprnt.c:
7855 * doc.c:
7856 * dispnew.c:
7857 * dired.c:
7858 * dbusbind.c:
7859 * data.c:
7860 * composite.c:
7861 * coding.c:
7862 * cmds.c:
7863 * cm.c:
7864 * chartab.c:
7865 * charset.c:
7866 * character.c:
7867 * ccl.c:
7868 * category.c:
7869 * casetab.c:
7870 * casefiddle.c:
7871 * callproc.c:
7872 * callint.c:
7873 * bytecode.c:
7874 * buffer.c:
7875 * atimer.c: Include setjmp.h. (Bug#4643)
7876
fd5f21e6
SM
78772009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7878
4c0354d7
SM
7879 Remove leftover table unibyte_to_multibyte_table.
7880 * character.c (unibyte_to_multibyte_table): Remove.
7881 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7882 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7883 * character.h (UNIBYTE_TO_CHAR): New macro.
7884 (MAKE_CHAR_MULTIBYTE): Use it.
7885 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7886 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7887 (message_dolog, set_message_1):
7888 * search.c (Freplace_match):
7889 * editfns.c (Fcompare_buffer_substrings):
7890 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7891 (concat):
7892 * insdel.c (copy_text, count_size_as_multibyte):
7893 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7894 * term.c (produce_glyphs):
7895 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7896 * regex.c (RE_CHAR_TO_MULTIBYTE):
7897 * cmds.c (internal_self_insert):
7898 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7899
fd5f21e6
SM
7900 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7901
4418646e
DN
79022009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7903
7904 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7905
35f5c1d2
JB
79062009-10-16 Juanma Barranquero <lekktu@gmail.com>
7907
7908 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7909
a0cd8f6b
AR
79102009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7911
7912 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7913 still needed under Tiger.
7914
7915 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7916
7917 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7918 __Apple__.
7919
7920 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7921
01a8d3fa
KH
79222009-10-15 Kenichi Handa <handa@m17n.org>
7923
7924 * print.c (print_object): Escape a symbol like "2E10" too.
7925
bf6c75c9 79262009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7927
7928 Cleanups and changes for 64-bit compile under Snow Leopard.
7929 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7930
7931 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7932
c5959062 7933 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7934 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7935 cast argument.
7936 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7937 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7938
7939 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7940
7941 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7942 where appropriate.
7943
7944 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7945 where appropriate.
6e4780c5
JB
7946 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7947 Use stringWithUTF8String.
bf6c75c9
AR
7948 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7949
6e4780c5
JB
7950 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7951 Add formal protocol mention to inheritance.
bf6c75c9
AR
7952 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7953
6e4780c5
JB
7954 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7955 Fix printf format.
bf6c75c9
AR
7956 (ns_query_color): Use CGFloat where appropriate.
7957 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7958 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7959 argument.
7960
3d87f118
AR
7961 * config.in (NS_HAVE_NSINTEGER): Drop.
7962
a95c8102
AR
7963 * dbusbind.c (dbus-method-return-internal)
7964 (dbus-method-error-internal): Use long format in printf, and cast
7965 argument.
7966
7967 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7968 in printf, and cast argument.
7969
6873acca 7970 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7971 cast argument.
7972
9ec6f100
GM
79732009-10-11 Glenn Morris <rgm@gnu.org>
7974
7975 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7976
5be883cd
JD
79772009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7978
7979 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7980 menu bar with a small width so it doesn't enlarge the frame.
7981
d7a39b51
JB
79822009-10-08 Juanma Barranquero <lekktu@gmail.com>
7983
7984 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7985
0c2b6f8e
GM
79862009-10-06 Glenn Morris <rgm@gnu.org>
7987
7988 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7989 SOME_MACHINE_LISP (this enters indirectly via DOC).
7990
e02131a2
EZ
79912009-10-05 Eli Zaretskii <eliz@gnu.org>
7992
7993 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7994
b4744254
EZ
79952009-10-04 Eli Zaretskii <eliz@gnu.org>
7996
7997 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7998 Doc fix.
7999
dbf64827
JB
80002009-10-03 Martin Rudalics <rudalics@gmx.at>
8001
8002 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8003
e9a0aef8
MA
80042009-10-02 Michael Albinus <michael.albinus@gmx.de>
8005
d528b1ce 8006 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
8007 used anymore outside fileio.c.
8008
8009 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8010
64eb2b56
JB
80112009-10-01 Juanma Barranquero <lekktu@gmail.com>
8012
8013 * lisp.h (Qdelete_directory_internal):
8014 Declare, instead of Qdelete_directory.
8015
8016 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8017
9d28c33e
SM
80182009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8019
8020 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8021
9d8f3bd9
MA
80222009-10-01 Michael Albinus <michael.albinus@gmx.de>
8023
9d28c33e 8024 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
8025 Fdelete_directory. It is not a command anymore. It has no file
8026 name handler.
8027
9694740b
SM
80282009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8029
8030 * xdisp.c (get_next_display_element): Use an enum in last change.
8031
748e162f
KH
80322009-09-28 Kenichi Handa <handa@m17n.org>
8033
9694740b 8034 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
8035 unibyte_display_via_language_environment in handling
8036 Vnobreak_char_display.
8037
17efd58d
AR
80382009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8039
8040 * nsterm.h (ns_app_name): New extern variable.
8041
8042 * nsterm.m (ns_app_name): New variable.
8043 (ns_term_init): Set and use it.
8044 (ns_term_shutdown): Use it.
8045
8046 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8047 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8048
8049 * nsfns.m (ns_set_name_iconic, ns_set_name)
8050 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8051 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8052
9694740b
SM
8053 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8054 Remove double-casting in client_data comparison.
31c2d412 8055
3208cb35
YM
80562009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8057
8058 * keyboard.c (make_lispy_event): Remember last wheel direction.
8059 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8060
b7d552d6
GM
80612009-09-26 Glenn Morris <rgm@gnu.org>
8062
8063 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8064 internal.elc. Add term/pc-win.elc.
8065 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8066 term/x-win.elc.
8067 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8068 term/w32-win.elc.
8069 (NS_SUPPORT): New.
8070 (lisp): Add NS_SUPPORT.
8071 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8072
4ff670a8
DR
80732009-09-25 David Reitter <david.reitter@gmail.com>
8074
8075 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8076 on Mac OS X 10.6+ (bug#4513).
8077
feabfb6c
JB
80782009-09-24 Juanma Barranquero <lekktu@gmail.com>
8079
8080 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8081 some parts of Emacs code (like font selection) don't grok them.
8082 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8083
de59072a
AS
80842009-09-24 Andreas Schwab <schwab@redhat.com>
8085
8086 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8087
a489517b
JB
80882009-09-24 Juanma Barranquero <lekktu@gmail.com>
8089
8090 * dired.c (Fdirectory_files): Fix typo in docstring.
8091
0592970c
AR
80922009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8093
8094 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8095 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8096 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8097 under GNUstep.
8098 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8099
8100 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8101 glyph advancement.
8102
48e8a88b
AR
81032009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8104
8105 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8106 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8107
8108 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8109 deleted (bug #4492).
8110
e14f0a78
AR
8111 * nsfont.m (Vns_reg_to_script): New lisp variable.
8112 (syms_of_nsfont): Declare it.
8113 (ns_registry_to_script): New function.
8114 (ns_get_req_script): Call it.
8115 (ns_findfonts): Don't give up on non-unicode registry.
8116
8117 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8118
5b650faa
SM
81192009-09-20 Tom Tromey <tromey@redhat.com>
8120
8121 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8122 batch mode (bug#4228).
8123
a489517b 81242009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8125
8126 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8127 carefully. (Bug #4339)
0bae4e09 8128
fcfe06f3
CY
81292009-09-18 Chong Yidong <cyd@stupidchicken.com>
8130
d798ba87 8131 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8132
31642728
AR
81332009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8134
8135 * emacs.c (inhibit_x_resources): Update doc string for NS.
8136 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8137 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8138
8139 * nsterm.h (ns_no_defaults): Remove.
8140
8141 * nsterm.m (ns_no_defaults): Remove.
8142 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8143 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8144 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8145 don't update the NSWindow itself.
8146 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8147 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8148
8149 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8150 ns_use_qd_smoothing.
8151
8152 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8153 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8154 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8155 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8156
8686ac71
JB
81572009-09-17 Juanma Barranquero <lekktu@gmail.com>
8158
8159 * emacs.c (inhibit_x_resources): New variable.
8160 (main) [HAVE_NS]: Don't process --quick command line option.
8161 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8162
8163 * lisp.h (inhibit_x_resources): Declare it extern.
8164
8165 * w32reg.c (x_get_string_resource):
8166 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8167
e227ba05
EZ
81682009-09-17 Eli Zaretskii <eliz@gnu.org>
8169
362654a6
JB
8170 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8171 Add lisp/term/internal.elc.
e227ba05 8172
742d40e8
SM
81732009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8174
8175 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8176 (bug#4461).
8177
005bd5a2
DN
81782009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8179
8180 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8181
8182 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8183 (OBJECTS_MACHINE): Remove, unused.
8184
f9af9719
SM
81852009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8186
8187 * frame.c (x_get_resource_string): Remove unused.
8188
0307c7d2
JD
81892009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8190
8191 * xterm.c (x_new_font): Call change_frame_size before calling
8192 x_set_window_size, in case frame size won't change.
8193
8194 * frame.c (x_set_font): Remove dead code.
8195
428b13d6
SM
81962009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8197
8198 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8199
5766c380
SM
82002009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8201
8202 * lread.c (Fload): Don't output a message after loading an obsolete
8203 package any more (done in Lisp now).
8204
2fd0161b
CY
82052009-09-12 Chong Yidong <cyd@stupidchicken.com>
8206
8207 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8208
bc5e75b6
SM
82092009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8210
8211 * keymap.c (Fwhere_is_internal): Use nconc2.
8212
c31c985e
AM
82132009-09-11 Alan Mackenzie <acm@muc.de>
8214
8215 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8216 batch mode.
8217
78012bd2
AS
82182009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8219
8220 * xdisp.c (display_mode_element): Detect cycles.
8221
9d889332
SM
82222009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8223
8224 * keymap.c (where_is_internal): Don't erroneously return nil right after
8225 filling the cache.
8226 (where_is_internal_1): Fix up typo.
8227
7ab5d780
GM
82282009-09-11 Glenn Morris <rgm@gnu.org>
8229
8230 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8231 share a common doc-string.
8232
5238a749
SM
82332009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8234
66d77eda
SM
8235 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8236 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8237
5238a749
SM
8238 * keymap.c (QCadvertised_binding): New constant.
8239 (syms_of_keymap): Initialize it.
8240 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8241 if applicable.
8242
19f48442
SM
82432009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8244
50d4ba39
SM
8245 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8246 (parse_menu_item): Streamline since bindings are recomputed all the
8247 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8248 more and don't support lmenu's menu-alias any more either.
8249
a88a5372
SM
8250 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8251 (where_is_internal): Strip it down to only traverse the keymaps.
8252 Move the cache handling from Fwhere_is_internal to here.
8253 (Fwhere_is_internal): Move the handling of remapping and the choice of
8254 the best binding from where_is_internal to here.
8255 Unify the cached/noncached paths, so remapping is also handled
8256 correctly when the cache is used, and so the cache can be used to
8257 speed up remap-handling when applicable.
8258 Give preference to non-remapped bindings.
8259 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8260 non-remapped bindings.
8261 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8262 command remapping.
8263
19f48442
SM
8264 * xdisp.c (display_mode_element): Move list length limit from 50 to
8265 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8266
599498c3 82672009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8268
8269 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8270
f9b7b5ac
SM
82712009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8272
a53af587
JB
8273 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8274 (Bug#4334)
8275
f9b7b5ac
SM
8276 * keymap.c (where_is_internal): Filter out shadowed remappings.
8277 Assume that where_is_internal returns unshadowed bindings to simplify
8278 the code and get rid of the gotos. Use ASIZE.
8279
04f4b72d
JD
82802009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8281
4da146f2
JD
8282 * xterm.c (x_focus_changed): If we get a focusout and pointer
8283 is invisible, make it visible.
8284
04f4b72d
JD
8285 * xterm.h: Remove condition for declaration of
8286 x_*_window_to_frame.
8287
7cef7ce3
SM
82882009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8289
8290 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8291 initial terminal as well.
8292
a54fa5b7
JD
82932009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8294
8295 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8296 x_menubar_window_to_frame.
a54fa5b7 8297
50426a04 8298 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8299 (XTmouse_position): Do not return valid positions
8300 for clicks in the menubar and the toolbar for Gtk+.
8301
8302 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8303 if the widget for the event has the same top level as a frame,
8304 return the frame.
8305 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8306 internal windows, bug #4122.
8307 (x_non_menubar_window_to_frame): Remove.
8308
5a021dd0
GM
83092009-09-02 Glenn Morris <rgm@gnu.org>
8310
8311 * buffer.c (default-major-mode): Move most of the doc from here...
8312 (major-mode): ... to here.
8313
548fe2f3
NR
83142009-08-30 Nick Roberts <nickrob@snap.net.nz>
8315
8316 * process.c (wait_reading_process_output): Keep the descriptor
8317 when pty is used by a non-child process, e.g., in I/O buffer of
8318 GDB this allows inferior to be restarted.
8319
e0840eef
EZ
83202009-08-29 Eli Zaretskii <eliz@gnu.org>
8321
8322 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8323 both branches into one.
8324
82e98df4
SM
83252009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8326
8327 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8328 (main): Use enable-multibyte-characters rather than
8329 default-enable-multibyte-characters. Output a warning message when
8330 running a unibyte session.
8331
890617cb
YM
83322009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8333
8334 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8335 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8336 (copy_data_segment): Also copy __program_vars section.
8337 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8338 (dump_it) [LC_DYLD_INFO]: Use it.
8339
8340 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8341
e7adeadc
EZ
83422009-08-28 Eli Zaretskii <eliz@gnu.org>
8343
8344 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8345 $(SRC)/buildobj.h.
8346 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8347 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8348 $(SRC)/buildobj.h.
8349 (clean): Add buildobj.h.
8350
3ed8bbdc
TZ
83512009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8352
8353 * print.c (print_object): Set escapeflag to 1 when printing
8354 hashtable keys and values.
8355
155a6764
SM
83562009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8357
8358 * lread.c (read_integer): Use doubles (and potentially return a float
8359 number) as we do in string-to-number.
8360 (read1): Use strtol to read integers, signal errors on strtol's
8361 overflow and use floats if strtol's output is too large for
8362 Elisp integers.
8363
877610de
EZ
83642009-08-27 Eli Zaretskii <eliz@gnu.org>
8365
8366 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8367 (make-buildobj-SH): Fix last change.
8368 (SRC): Move to before where it's first used.
8369
ef73e7be
KH
83702009-08-27 Kenichi Handa <handa@m17n.org>
8371
550c8289
KH
8372 * process.c (send_process): Use encode_coding_object instead of
8373 encode_coding_string to perform eol-conversion even if the string
8374 is unibyte.
8375
60afa08d
KH
8376 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8377 character.
8378
ef73e7be 8379 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8380 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8381
7b3a82d7
DN
83822009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8383
5654bf63
DN
8384 * callproc.c (Fcall_process): Remove always true #if.
8385
7b3a82d7
DN
8386 * lisp.h: Replace #if 0 code for checking with text pointing to
8387 the --enable-checking configure flag.
8388
8389 * emacs.c (main): Mention the --enable-profiling configure flag
8390 instead of using CFLAGS.
8391
878bde49
KR
83922009-08-26 Ken Raeburn <raeburn@raeburn.org>
8393
8394 * Makefile.in (buildobj.h): New target.
8395 (doc.o): Depend on it.
8396 (temacs${EXEEXT}): Don't generate buildobj.lst.
8397 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8398 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8399 ($(BLD)/doc.$(O)): Depend on it.
8400 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8401 provided by Eli Zaretskii.)
8402 ($(TEMACS)): Don't generate buildobj.lst.
8403 * doc.c: Include buildobj.h.
8404 (buildobj): New static variable.
8405 (Fsnarf_documentation): Use it, instead of opening and reading
8406 buildobj.lst.
8407
1574224c
MA
84082009-08-25 Michael Albinus <michael.albinus@gmx.de>
8409
8410 * dbusbind.c (Fdbus_call_method)
8411 (Fdbus_call_method_asynchronously): Use English numeric format for
8412 timeout values in doc string.
8413
d9da2f45
KH
84142009-08-25 Kenichi Handa <handa@m17n.org>
8415
ef73e7be
KH
8416 * alloc.c (mark_char_table): New function.
8417 (mark_object): Use mark_char_table for a char-table.
8418
d9da2f45
KH
8419 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8420 (CHAR_TABLE_REF): Use it.
8421
c8edcc01
KR
84222009-08-23 Ken Raeburn <raeburn@raeburn.org>
8423
8424 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8425 before invoking the newly build emacs to check for load-path
8426 shadowing.
8427
7763401b
GM
84282009-08-22 Glenn Morris <rgm@gnu.org>
8429
8430 * Makefile.in (bootstrap_exe): New variable.
8431 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8432 Use ${bootstrap_exe}.
8433
729eadda
EZ
84342009-08-22 Eli Zaretskii <eliz@gnu.org>
8435
8436 * coding.h (encode_coding_string): Don't encode unibyte strings.
8437 (Bug#4047)
8438
eb4c6ace
MA
84392009-08-22 Michael Albinus <michael.albinus@gmx.de>
8440
8441 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8442
8443 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8444 intended as hotfix only.
8445 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8446
36e34d1b
AR
84472009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8448
8449 * nsterm.m (ns_get_color): Update documentation properly for last
8450 change, and clean up loose ends in the code left by it. Fix
8451 longstanding bug with 16-bit hex parsing, and add support for
8452 yet another X11 format (rgb:r/g/b) for compatibility.
8453 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8454 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8455
f983eb8a
SM
84562009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8457
8458 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8459
3f56d3c6
MA
84602009-08-20 Michael Albinus <michael.albinus@gmx.de>
8461
8462 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8463 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8464 (xd_initialize, xd_pending_messages): Check, whether
8465 $DBUS_SESSION_BUS_ADDRESS is set.
8466
fb641d68
YM
84672009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8468
8469 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8470
8471 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8472
cf59a374
GM
84732009-08-20 Glenn Morris <rgm@gnu.org>
8474
8475 * emacs.c (system-type): Doc fix.
8476
1373f3be
SM
84772009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8478
8479 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8480 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8481
058ed861
MA
84822009-08-18 Michael Albinus <michael.albinus@gmx.de>
8483
1373f3be
SM
8484 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8485 New functions.
058ed861
MA
8486 (xd_initialize): Revert change from 2009-08-16.
8487
563a866e 84882009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8489
8490 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8491 font-group vector, return nil.
5fc05db0 8492
e42bdf01
CY
84932009-08-17 Chong Yidong <cyd@stupidchicken.com>
8494
8495 * process.c (status_notify): Don't perform redisplay.
8496 (Fdelete_process, list_processes_1, process_send_signal):
8497 Expliticly perform redisplay.
8498 (wait_reading_process_output): Always check process status, but
8499 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8500
4230ab74
KR
85012009-08-17 Ken Raeburn <raeburn@raeburn.org>
8502
1373f3be 8503 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8504 (XFLOAT_INIT): New macro for storing a float value.
8505 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8506 * fns.c (sxhash): Copy out the value of a float in order to
8507 examine its bytes.
8508 * dbusbind.c (xd_append_arg): Likewise.
8509
4230ab74
KR
8510 * emacs.c (main): Don't call syms_of_data twice.
8511
a0645cdd
MA
85122009-08-16 Michael Albinus <michael.albinus@gmx.de>
8513
8514 * dbusbind.c (xd_initialize): Add connection file descriptor to
8515 input_wait_mask, in order to let select() detect, whether a new
8516 message has been arrived.
ca4f31ea 8517 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8518
485db0ba
MA
85192009-08-15 Michael Albinus <michael.albinus@gmx.de>
8520
1373f3be
SM
8521 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8522 New functions.
485db0ba
MA
8523
8524 * lisp.h (xd_pending_messages): Declare.
8525
8526 * keyboard.c (readable_events): Call xd_pending_messages.
8527
b5b98ff4
CY
85282009-08-15 Chong Yidong <cyd@stupidchicken.com>
8529
1373f3be 8530 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8531
f8354c6e
CY
8532 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8533
b5b98ff4
CY
8534 * buffer.c (set_buffer_internal_1)
8535 (swap_out_buffer_local_variables): Check for unbound local
8536 variables (Bug#4138).
8537
8b9fc636
EZ
85382009-08-14 Eli Zaretskii <eliz@gnu.org>
8539
8540 * process.c (create_pty): Fix last change.
8541
ce959360
CY
85422009-08-13 Chong Yidong <cyd@stupidchicken.com>
8543
8544 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8545 (xbm_load_image): Caller changed.
64b807c9 8546 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8547
c7baf7e9
NR
85482009-08-13 Nick Roberts <nickrob@snap.net.nz>
8549
8550 * process.c (create_pty): New function.
8551 (Fstart_process): Use it to allow Emacs to just associate a pty
8552 with the buffer. See associated change in gdb-mi.el.
8553 (list_processes_1): Deal with no program name.
8554 (start_process_unwind): Use pid == -2 to mean no process.
8555
1ac9108a
SM
85562009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8557
8558 * cmds.c (nonundocount): New global variable.
8559 (keys_of_cmds): Initialize it.
8560 (Fself_insert_command): Use it to combine upto 20 sequential chars
8561 into a single undo entry, just like the Qself_insert_command code in
8562 keyboard.c does.
8563 Call frame_make_pointer_invisible, also like the Qself_insert_command
8564 code in keyboard.c does.
8565 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8566 than its own local replacement for it.
8567
e267324c
KR
85682009-08-10 Ken Raeburn <raeburn@raeburn.org>
8569
1ac9108a 8570 * fns.c (concat): Don't re-set string length to its current value.
77437343 8571
1ac9108a
SM
8572 * coding.h (decode_coding_string, encode_coding_string):
8573 Use SBYTES macro.
f0bed503 8574
1ac9108a 8575 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8576 (doprnt): Merge with doprnt1, discarding lispstrings code.
8577 * lisp.h (doprnt_lisp): Don't declare.
8578
416e006d
JL
85792009-08-07 Juri Linkov <juri@jurta.org>
8580
8581 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8582
6f7d5780
DN
85832009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8584
8585 * print.c (syms_of_print): Undo previous change.
8586
f19a0f5b
TZ
85872009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8588
8589 * lread.c (read1, syms_of_lread): Read hashtables back from the
8590 readable format.
8591
8592 * print.c (print_preprocess, print_object): Print hashtables fully
8593 and readably.
8594 (syms_of_print): Provide 'hashtable-print-readable.
8595
b9173dc2
AR
85962009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8597
8598 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8599 no family set.
8600 (nsfont_open): Handle case when entity has no family.
8601
1586503c
AR
86022009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8603
8604 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8605 element, not a list, for match case.
8606
087048cd
KH
86072009-07-28 Kenichi Handa <handa@m17n.org>
8608
8609 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8610 rigidly.
8611
8612 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8613 font_parse_xlfd. Check font properties more rigidly.
8614
780c2506
DN
86152009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8616
31fd7c5c
JB
8617 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8618 bsd-common.h.
780c2506 8619
a8c0cc18
KH
86202009-07-27 Kenichi Handa <handa@m17n.org>
8621
8622 * xfaces.c (face_with_height): Call font_clear_prop.
8623
4fbe2306
CY
86242009-07-26 Chong Yidong <cyd@stupidchicken.com>
8625
111d9af3
CY
8626 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8627
8628 * xterm.c (x_term_init): Use Qx.
8629
4fbe2306
CY
8630 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8631
1ac9108a 8632 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8633 (ns_get_color): Revert 2009-07-16 change.
8634
beb0b7f9
EZ
86352009-07-25 Eli Zaretskii <eliz@gnu.org>
8636
8637 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8638 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8639
2baf5e76
KR
86402009-07-25 Ken Raeburn <raeburn@raeburn.org>
8641
1ac9108a
SM
8642 * coding.h (decode_coding_string, encode_coding_string):
8643 Use SCHARS macro.
8890e5f5 8644
2baf5e76 8645 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8646 (load_depth): Delete.
2baf5e76
KR
8647 (Qload_in_progress): New variable.
8648 (load_unwind): Don't reference load_depth or load_in_progress.
8649 (Fload): Likewise; specbind Qload_in_progress instead.
8650 (init_lread): Don't initialize load_depth.
8651 (syms_of_lread): Initialize and protect Qload_in_progress.
8652
1395c6f5
AR
86532009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8654
8655 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8656
4e2f36cf
AR
86572009-07-23 Yavor Doganov <yavor@gnu.org>
8658
8659 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8660
5dd9a6f7
AR
86612009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8662
8663 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8664 Bugs 3792, 3720, 2402.
8665 (ns_lookup_indexed_color): Check for bad index.
8666 (ns_index_color): Init unused slot to 0.
8667 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8668 Bug 3714, possibly 3082.
5dd9a6f7 8669
c902b920
JR
86702009-07-22 Jason Rumney <jasonr@gnu.org>
8671
1ac9108a
SM
8672 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8673 Position IME window at cursor (Bug#2570).
c902b920
JR
8674 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8675 (globals_of_w32fns): Dynamically load functions required above.
8676
8677 * w32term.c (w32_draw_window_cursor): Send message to reposition
8678 any IME window.
8679
090101cf
CY
86802009-07-21 Chong Yidong <cyd@stupidchicken.com>
8681
8682 * fileio.c: Revert 2009-07-16 changes.
8683 (Vauto_save_include_big_deletions): New variable.
8684 (Fdo_auto_save): Disable auto-save only if
8685 auto-save-include-big-deletions is nil.
8686
e6583e3d
CY
86872009-07-21 Chong Yidong <cyd@stupidchicken.com>
8688
8689 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8690 the overflowed pixels into account (Bug#3879).
8691
ece435a5
KR
86922009-07-21 Ken Raeburn <raeburn@raeburn.org>
8693
8694 * lread.c (load_depth): New variable.
8695 (Fload, load_unwind, init_lread): Set it to the load recursion
8696 depth; set load_in_progress as a simple boolean based on the
8697 current load_depth. (Bug#3892)
8698
40b2d973
AR
86992009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8700
8701 * nsfont.m (ns_has_attribute): Remove.
8702 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8703
10be7e0d
JL
87042009-07-18 Juri Linkov <juri@jurta.org>
8705
8706 * process.c (Fset_process_query_on_exit_flag): Mention killing
8707 a buffer in docstring.
8708
fa055055
KH
87092009-07-17 Kenichi Handa <handa@m17n.org>
8710
8711 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8712
042f7b69
YM
87132009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8714
8715 * nsfns.m (Fns_set_alpha): Remove function.
8716 (syms_of_nsfns): Don't defsubr it.
8717
8718 * nsterm.m (ns_get_color): Remove incompatible color formats.
8719 (ns_color_to_lisp): Generate #rrggbb color format string.
8720
4be941e3
RS
87212009-07-16 Richard Stallman <rms@gnu.org>
8722
8723 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8724 (Fset_buffer_auto_saved): Handle save_length = -2.
8725
4e6b227d
CY
87262009-07-16 Chong Yidong <cyd@stupidchicken.com>
8727
8728 * xterm.c (Qx_gtk_map_stock): New var.
8729
8730 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8731 of calling intern each time.
8732
a1856973
YM
87332009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8734
8735 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8736 does tiling.
8737
8738 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8739
497e54d8
KH
87402009-07-14 Kenichi Handa <handa@m17n.org>
8741
72d36834
KH
8742 * font.c (font_vconcat_entity_vectors): New function.
8743 (struct font_sort_data): New member font_driver_preference.
8744 (font_compare): Check font_driver_preference.
8745 (font_sort_entities): The format of the first argument changed.
8746 (font_delete_unmatched): Likewise.
8747 (font_list_entities): The return type changed.
8748 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8749 (font_find_for_lface): Adjuste for the above changes.
8750 Don't suppress the checking of C even if the repertory supports it.
8751 (Flist_fonts): Adjust for the above changes.
72d36834 8752
1ac9108a
SM
8753 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8754 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8755 Reject a font who has adstyle property that is different from a
8756 langname derived from registry property.
1ac9108a 8757 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8758
b6046155
EZ
87592009-07-13 Eli Zaretskii <eliz@gnu.org>
8760
8761 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8762 local copy of dirfilename.
8763
fb6b6049
KH
87642009-07-13 Kenichi Handa <handa@m17n.org>
8765
e2402a5e
KH
8766 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8767 against max_char.
8768
fb6b6049
KH
8769 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8770 calling XSYMBOL (sym).
8771
65156807
EZ
87722009-07-11 Eli Zaretskii <eliz@gnu.org>
8773
1ac9108a
SM
8774 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8775 New function.
8776 (directory_files_internal) [WINDOWSNT]:
8777 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8778 the filesystem of the directory is fast or slow.
8779
8780 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8781 file name.
8782 (is_slow_fs): New function.
8783 (stat): Use it to determine whether to issue more system calls to
8784 get accurate file attributes, when w32-get-true-file-attributes is
8785 `local'.
8786
e0ab5fcf
JD
87872009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8788
8789 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8790 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8791 parameter font-parameter as default to the font dialog.
8792
784ceded
KH
87932009-07-10 Kenichi Handa <handa@m17n.org>
8794
8795 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8796
fb8edc0b
EZ
87972009-07-09 Eli Zaretskii <eliz@gnu.org>
8798
1ac9108a 8799 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8800
fb8edc0b
EZ
8801 * w32.c (stat): Treat UNC file names as residing on remote
8802 drives. (Bug#3542)
8803
635c75b1
KH
88042009-07-09 Kenichi Handa <handa@m17n.org>
8805
8806 * fontset.c (fontset_find_font): Fix previous change.
8807
c1d5ce94
MA
88082009-07-08 Michael Albinus <michael.albinus@gmx.de>
8809
8810 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8811 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8812 error flag.
8813
edb61b39
KH
88142009-07-08 Kenichi Handa <handa@m17n.org>
8815
374bf7e4
KH
8816 * fontset.c (fontset_find_font): Fix the logic of handling
8817 charset_matched.
8818 (font_for_char): Delete unused var.
8819 (generate_ascii_font_name): Delete it.
8820
edb61b39
KH
8821 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8822
8823 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8824 (encode_coding_sjis): Fix the code range check.
8825
0f3f018c
CY
88262009-07-07 Chong Yidong <cyd@stupidchicken.com>
8827
8828 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8829 (Fexpand_file_name): Copy string data properly (Bug#3772).
8830
fcaf6f3a
JD
88312009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8832
8833 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8834 first MapNotify.
8835
6809ca75
KH
88362009-07-07 Kenichi Handa <handa@m17n.org>
8837
8838 * character.h (unibyte_has_multibyte_table): Delete extern.
8839 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8840
8841 * charset.c (Fset_charset_priority): Update charset_unibyte.
8842 (syms_of_charset): Initialize charset_unibyte.
8843
8844 * character.c (unibyte_has_multibyte_table): Delete it.
8845 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8846 charset_unibyte.
8847 (multibyte_char_to_unibyte_safe): Likewise.
8848 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8849
1ac9108a 8850 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8851 (x_produce_glyphs): Likewise.
8852
8853 * .gdbinit (xcharset): Fix the treating $arg0.
8854
ad9e2d54
EZ
88552009-07-04 Eli Zaretskii <eliz@gnu.org>
8856
8857 Emulation of `getloadavg' on MS-Windows.
50426a04 8858 * w32.c: Include float.h.
ad9e2d54
EZ
8859 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8860 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8861 (get_native_system_info, get_system_times): New functions.
8862 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8863 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8864 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8865 g_b_init_get_system_times, and num_of_processors.
8866
0a3472c7
JR
88672009-07-03 Jason Rumney <jasonr@gnu.org>
8868
8869 * w32term.c (w32_initialize): Use standard types.
8870
80904120
EZ
88712009-07-03 Eli Zaretskii <eliz@gnu.org>
8872
8873 * dired.c (Ffile_attributes): Decode user and group names by the
8874 locale's encoding. (Bug#3443)
8875
6978862d
DN
88762009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8877
f8d23104
DN
8878 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8879 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8880
8881 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8882
8883 * term.c (init_tty): Remove spurious #ifdef.
8884
6978862d
DN
8885 * m/mips.h: Mention this file is also used for netbsd.
8886 * m/pmax.h: Remove file.
8887
e044e4fc
JD
88882009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8889
8890 * xterm.h (struct x_display_info): Add invisible_cursor.
8891 (struct x_output): Add current_cursor.
8892
8893 * xterm.c (XTtoggle_invisible_pointer): New function.
8894 (x_define_frame_cursor): Don't define cursor if invisible or the
8895 same as before. Set current_cursor.
8896 (x_create_terminal): Set toggle_invisible_pointer_hook.
8897
8898 * xfns.c (make_invisible_cursor): New function.
8899 (x_set_mouse_color): Call make_invisible_cursor.
8900 Set current_cursor.
8901 (x_window): Set current_cursor.
8902
8903 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8904
8905 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8906 inserting a character.
8907 (read_avail_input): Call frame_make_pointer_visible.
8908
8909 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8910 (frame_make_pointer_invisible, frame_make_pointer_visible):
8911 New functions.
e044e4fc
JD
8912 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8913
8914 * frame.h: Declare frame_make_pointer_invisible and
8915 frame_make_pointer_visible.
8916 (struct frame): Add pointer_invisible.
8917
574c8efa
JD
89182009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8919
7b507248
JD
8920 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8921 frame isn't visible.
8922 (xg_frame_resized): If width/height is -1, get size of window
8923 from X server.
8924
8925 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8926 for MapNotify.
8927
835bdaa7 8928 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8929 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8930 (flush_and_sync): Reintroduce.
574c8efa 8931
3f1c6666 89322009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8933
31fd7c5c 8934 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8935
8936 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8937 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8938
8939 * frame.h: Declare Qsticky.
8940
cad9ef74
JD
8941 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8942
8943 * nsfns.m (ns_frame_parm_handlers): Ditto.
8944
8945 * frame.c: Declare Qsticky.
8946 (frame_parms): Add sticky.
8947
8948 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8949
8950 * xterm.h: Declare x_set_sticky.
8951
8952 * xterm.c (x_set_sticky): New function.
8953
69b16610
JD
8954 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8955 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8956 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8957
8958 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8959
8960 * frame.c: Qmaximized is new.
8961 (x_set_frame_parameters): Do not handle fullscreen specially.
8962 Only set width and height if explicitly set.
8963 (x_set_fullscreen): Handle Qmaximized.
8964 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8965 (syms_of_frame): Initialize Qmaximized.
8966
1ac9108a
SM
8967 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8968 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8969
8970 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8971 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8972 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8973 set gravity to NorthWestGravity when USE_GTK.
8974 (set_wm_state): New function.
31fd7c5c 8975 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8976 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8977 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8978 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8979 to x_real_positions and x_fullscreen_adjust.
8980
8981 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8982 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8983 flush_and_sync.
8984 (xg_height_changed): New function.
8985 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8986 and gtk_window_set_policy. Set frame gravity after parsing the
8987 geometry string.
3f1c6666
JD
8988 (xg_update_frame_menubar, free_frame_menubar)
8989 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8990 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8991 Remove calls to xg_frame_set_char_size.
8992
fd503d99
KH
89932009-07-01 Kenichi Handa <handa@m17n.org>
8994
8995 * keyboard.c (decode_keyboard_code): New function.
8996 (tty_read_avail_input): Decode the input bytes if necessary.
8997
1ac9108a
SM
8998 * coding.c (setup_coding_system):
8999 Initialize coding->carryover_bytes to 0.
fd503d99
KH
9000 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9001 use Qno_conversion.
9002
24ed93fb
YM
90032009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9004
9005 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9006
99061dfc
CY
90072009-06-30 Chong Yidong <cyd@stupidchicken.com>
9008
1ac9108a 9009 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 9010
ff90fbde
JR
90112009-06-30 Jason Rumney <jasonr@gnu.org>
9012
9013 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9014 is already loaded.
9015 Set user model ID if supported (bug#1849).
9016
5f445726
JM
90172009-06-29 Jim Meyering <meyering@redhat.com>
9018
9019 Remove useless if-before-xfree test.
9020 * nsfont.m (nsfont_close): Remove useless test.
9021 * term.c (delete_tty): Likewise.
9022 * w32.c (system_process_attributes): Likewise.
9023 * w32font.c (w32font_close): Likewise.
9024 * xfaces.c (x_free_gc): Likewise.
9025 * xselect.c (buffer): Likewise.
9026
b9607587
AS
90272009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9028
9029 * process.c (send_process): Keep decoded string in a local
9030 variable and protect it from GC. (Bug#3521)
9031
89ba96f4
EZ
90322009-06-28 Eli Zaretskii <eliz@gnu.org>
9033
9034 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9035 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9036
098a1589
CY
90372009-06-28 Chong Yidong <cyd@stupidchicken.com>
9038
485422be
CY
9039 * xdisp.c (start_display, handle_face_prop)
9040 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
9041 (redisplay_window, try_window_id, produce_image_glyph):
9042 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 9043
098a1589
CY
9044 * xterm.c (x_update_window_begin, x_new_focus_frame)
9045 (x_scroll_bar_handle_click, handle_one_xevent)
9046 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9047 (x_make_frame_visible, x_make_frame_invisible)
9048 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9049 code chunks that are now obsolete.
9050
78c38319
MA
90512009-06-28 Michael Albinus <michael.albinus@gmx.de>
9052
9053 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9054 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9055 for hours, when optimzation is enabled.
9056 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9057 (xd_read_message): Make them static.
9058
4189ed40
CY
90592009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9060
9061 * term.c (turn_on_face): Allow simultaneously bold and dim
9062 terminal faces (Bug#3530).
9063
cd9b5e16
CY
90642009-06-27 Chong Yidong <cyd@stupidchicken.com>
9065
4e23bedb
CY
9066 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9067
cd9b5e16
CY
9068 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9069 truncation glyphs (Bug#3686).
9070
07cc3c35
GM
90712009-06-27 Glenn Morris <rgm@gnu.org>
9072
9073 * m/pmax.h: Restore file, with only netbsd portions.
9074
31fd7c5c 90752009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9076
cd9b5e16 9077 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9078
42d4a64f
KH
90792009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9080
9081 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9082 the arg FORCE_SYMBOL.
9083
930fe55b 90842009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9085
9086 * fontset.c (fontset_find_font): When a usable rfont_def is found
9087 in a fallback font-group, make it the first element of the group.
9088
57ebc3fd
CY
90892009-06-24 Chong Yidong <cyd@stupidchicken.com>
9090
9091 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9092
f084f942
KH
90932009-06-24 Kenichi Handa <handa@m17n.org>
9094
9095 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9096 set for C.
9097 (fontset_font): Record the availability of a font for C both in
9098 the realized fontsets of the current one and the default one.
9099
2f686c87
DN
91002009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9101
9102 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9103 conditional, it is always defined on AIX.
9104
666e158e
MB
91052009-06-23 Miles Bader <miles@gnu.org>
9106
9107 * window.c (Vrecenter_redisplay): New variable.
9108 (syms_of_window): Initialize it.
9109 (Qtty): New extern declaration.
9110 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9111
c6da7cd2
JM
91122009-06-23 Jim Meyering <meyering@redhat.com>
9113
1ac9108a
SM
9114 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9115 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9116 pointer dereferences are guaranteed to be valid.
c6da7cd2 9117
678dca3d
KH
91182009-06-23 Kenichi Handa <handa@m17n.org>
9119
74d75424
KH
9120 * emacs.c (main): Call init_font ().
9121
9122 * font.h (Vfont_log): Extern it.
9123 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9124
9125 * font.c (font_sort_entities, font_list_entities)
9126 (font_matching_entity, font_open_entity)
9127 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9128 (Vfont_log): Delete static.
9129 (font_log_env_checked): Delete this variable.
9130 (font_add_log): Don't check font_log_env_checked.
9131 (font_deferred_log): Check Vfont_log.
9132 (init_font): New function.
9133
678dca3d
KH
9134 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9135
9136 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9137
9138 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9139
9140 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9141
9142 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9143 (face_for_char): Don't call font_deferred_log here.
9144 (font_for_char): Likewise.
9145
8a668709
CY
91462009-06-22 Chong Yidong <cyd@stupidchicken.com>
9147
9a01ee33
CY
9148 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9149 rather than its background_width for drawing the overline and
9150 underline (Bug#489).
9151
9152 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9153 rather than its background_width for drawing the overline and
9154 underline (Bug#489).
ec7c9926
CY
9155 (xg_default_icon_file): New variable.
9156 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9157 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9158
8a668709
CY
9159 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9160 (load_overlay_strings): Remove externs.
9161 (fast_find_position): Function deleted.
9162 (mouse_face_from_buffer_pos): New function, based on
9163 fast_find_position. Correctly handle before-strings,
9164 display-strings, and after-strings (Bug#1220).
9165 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9166
4d4c02d8
CY
91672009-06-21 Chong Yidong <cyd@stupidchicken.com>
9168
1ac9108a 9169 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9170 (move_it_in_display_line_to, move_it_in_display_line_to)
9171 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9172
70243478
CY
91732009-06-21 Chong Yidong <cyd@stupidchicken.com>
9174
9175 * Branch for 23.1.
9176
13087e59
JR
91772009-06-21 Jason Rumney <jasonr@gnu.org>
9178
9179 * w32term.c (keyboard_codepage): New static variable.
9180 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9181 (w32_read_socket) [WM_CHAR]: Use it to decode character
9182 input (bug#3237).
9183 (w32_initialize): Initialize it.
9184 (codepage_for_locale): New function.
9185
4735b74e
KR
91862009-06-20 Ken Raeburn <raeburn@raeburn.org>
9187
9188 * process.c (status_message): Pass Faset index argument as a lisp
9189 object, so as to work with USE_LISP_UNION_TYPE.
9190
0e727afa
YM
91912009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9192
9193 * coding.c (Ffind_coding_systems_region_internal):
9194 Cache checked characters.
9195
cf299835
KH
91962009-06-18 Kenichi Handa <handa@m17n.org>
9197
1ac9108a 9198 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9199
90f20d94
AS
92002009-06-18 Andreas Schwab <aschwab@redhat.com>
9201
9202 * xdisp.c (redisplay_internal): Check that the frame is still
9203 live after redisplay of its windows.
9204 (redisplay_windows): Check that the window is still live.
9205
7f1faf1c
KH
92062009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9207
9208 * coding.c (detect_coding_utf_16): Fix previous change.
9209
cc13543e
KH
92102009-06-16 Kenichi Handa <handa@m17n.org>
9211
9212 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9213 UTF-16 by checking the dispersion of Eth and Oth bytes.
9214
977b85f4
AS
92152009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9216
9217 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9218
66bd43d1
KH
92192009-06-15 Kenichi Handa <handa@m17n.org>
9220
9221 * process.c (status_message): Fix previous change. Be sure to
9222 decode a localized string.
9223
cb5ca9c5
YM
92242009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9225
9226 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9227 add comment explaining why.
9228
ec7709ba 92292009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9230
ec7709ba 9231 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9232
4b7f335c
AR
92332009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9234
9235 * nsfont.m (ns_attribute_value): Remove.
9236 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9237 (ns_has_attribute): Shrink the normal range.
9238 (ns_findfonts): Don't worry about requested spec in determining
9239 need for synthItal.
e41820ee 9240 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9241
73b26103
SZ
92422009-06-14 Seiji Zenitani <zenitani@mac.com>
9243
9244 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9245
5753e4da
KH
92462009-06-11 Kenichi Handa <handa@m17n.org>
9247
9248 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9249 overhang for the static composition case.
9250
3561b671
KH
92512009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9252
5753e4da
KH
9253 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9254 overhang for the automatic composition case.
9255
3561b671
KH
9256 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9257 composition case.
9258
852bbd41
CY
92592009-06-10 Chong Yidong <cyd@stupidchicken.com>
9260
9261 * xdisp.c (get_next_display_element): When handling wrap-prefix
9262 and line-prefix, treat \n as a control character (bug#3502).
9263
9903d1e6
KH
92642009-06-10 Kenichi Handa <handa@m17n.org>
9265
9266 * font.c (font_parse_family_registry): Fix for one-char foundry.
9267 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9268
0bcbaaaa
CY
92692009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9270
9271 * process.c (status_message): Fix handling of multibyte signal
9272 string (Bug#3499).
9273
40aa3f13
JM
92742009-06-09 Jim Meyering <meyering@redhat.com>
9275
1f80c7e2
CY
9276 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9277 color name is missing.
40aa3f13 9278
72d51285
KH
92792009-06-09 Kenichi Handa <handa@m17n.org>
9280
9281 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9282 FROM-CODE and TO-CODE are codepoints of CHARSET.
9283
c1d04d84
AR
92842009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9285
9286 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9287
92882009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9289
9290 Changes to support :script/:lang/:otf in NS font driver.
9291 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9292 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9293 indicate not part of font driver interface, and change callers.
9294 (ns_get_family): Remove pointless null check.
9295 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9296 ns_spec_to_descriptor, ns_descriptor_to_entity.
9297 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9298 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9299 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9300 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9301 (ns_get_req_script, ns_accumulate_script_ranges)
9302 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9303 New functions.
9304 (nsfont_list, nsfont_match): Use ns_findfonts.
9305 (nsfont_open): Use font descriptor instead of traits.
9306 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9307 (dump_glyphstring): Rename to ns_dump_glyphstring.
9308
c7eb9816
AR
9309 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9310
c1d04d84
AR
9311 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9312
9313 * fontset.c (fontset_from_font): Remove NS-specific code.
9314
ec7709ba 93152009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9316
9317 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9318 nonactive windows.
9319
31fd7c5c 93202009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9321
1ac9108a 9322 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9323
68852c13 93242009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9325
9326 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9327
6756cd1d
CY
93282009-06-07 Chong Yidong <cyd@stupidchicken.com>
9329
9330 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9331 account for the overflowing of newlines into the last glyph on the
9332 display line (Bug#3482).
9333
28bf482a
DR
93342009-06-05 David Reitter <david.reitter@gmail.com>
9335
ec7709ba
JB
9336 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9337 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9338 Fns_selection_exists_p, Fns_selection_owner_p.
9339
fdb55376
JR
93402009-06-03 Jason Rumney <jasonr@gnu.org>
9341
9342 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9343 available. (Bug#3379)
9344
05129fbe
KH
93452009-05-29 Kenichi Handa <handa@m17n.org>
9346
1ac9108a
SM
9347 * coding.c (get_translation_table):
9348 Check Venable_character_translation.
05129fbe 9349
ec7709ba 93502009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9351
ec7709ba
JB
9352 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9353 (x_make_frame_visible): Move frame to front rather than calling
15891144 9354 ns_raise_frame().
ec7709ba 9355 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9356 isn't key window.
ec7709ba 9357 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9358 drawRect may be called by NSView even if the frame is hidden.
9359
ec7709ba
JB
9360 * nsfns.m (Fx_create_frame): Follow other ports in
9361 determining visibility; default to t. Ensure async_visible is set.
15891144 9362
21f73755
EZ
93632009-05-23 Eli Zaretskii <eliz@gnu.org>
9364
9365 * dired.c (Ffile_attributes): Doc fix.
9366
34001e41
CY
93672009-05-22 Chong Yidong <cyd@stupidchicken.com>
9368
9369 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9370
46306a17
SM
93712009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9372
9373 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9374 and xfont_scratch_props.
9375 (syms_of_xfont): Do it here instead.
9376 (xfont_find_ccl_program): Delete, unused.
9377 (xfont_open): Delete unused var `i'.
9378
ef6e0694
KH
93792009-05-21 Kenichi Handa <handa@m17n.org>
9380
9381 * fontset.c (Qlatin): Don't make it static.
9382
46306a17
SM
9383 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9384 New functions.
ef6e0694
KH
9385 (xfont_scripts_cache, xfont_scratch_props): New variables.
9386 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9387 (xfont_list_pattern): Argument changed. Callers changed.
9388 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9389 (xfont_list): Don't reject a font spec with :script property.
9390 (xfont_has_char): Fix setting of encoding.
9391 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9392 xfont_scratch_props.
9393
93942009-05-19 Kenichi Handa <handa@m17n.org>
9395
46306a17 9396 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9397 Callers changed.
9398
93992009-05-18 Kenichi Handa <handa@m17n.org>
9400
9401 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9402
ac71ced7
SM
94032009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9404
9405 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9406 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9407
1c6d1051
YM
94082009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9409
9410 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9411 (x_delete_terminal): Dissociate resource database from display and
9412 then call XrmDestroyDatabase before closing display.
9413
9b9b779c
AR
94142009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9415
9416 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9417 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9418 whether selected frame is viable before raising it (based on patch
9419 by David Reitter), and improve commentary.
9420 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9421
cccd42d5
KH
94222009-05-15 Kenichi Handa <handa@m17n.org>
9423
9424 * font.c (Ffont_spec): Check arguments.
9425
337fbd17
CY
94262009-05-14 Chong Yidong <cyd@stupidchicken.com>
9427
9428 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9429 weight when testing attributes (Bug#3282).
9430
47a6002f
JD
94312009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9432
9433 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9434 what we expect to get in the next ConfigureNotify event.
9435
9cb363db
YM
9436 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9437 before Xft one (Bug#1696).
9438
b9126609
CY
94392009-05-07 David Reitter <david.reitter@gmail.com>
9440
9441 * nsfns.m (Fx_display_planes): Compute bitplanes using
9442 NSBitsPerPixelFromDepth (Bug#3207).
9443
27a69fd9
CY
94442009-05-10 Chong Yidong <cyd@stupidchicken.com>
9445
9446 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9447
00f37552
TTN
94482009-05-10 Ulrich Mueller <ulm@gentoo.org>
9449
9450 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9451
2d82a920
DR
94522009-05-07 David Reitter <david.reitter@gmail.com>
9453
ec7709ba
JB
9454 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9455 Respect mouse face background.
2d82a920 9456
46b0d52d
DR
94572009-05-07 David Reitter <david.reitter@gmail.com>
9458
ec7709ba
JB
9459 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9460 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9461 in ns_update_begin and ns_update_end.
9462
ce1b23bb
SM
94632009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9464
5996e1b7
SM
9465 * nsfns.m (ns_get_screen): Rewrite.
9466 Don't presume selected-frame is of type `ns'.
9467
ba98e3a0
SM
9468 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9469 all drivers.
9470
ce1b23bb
SM
9471 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9472
bcda200f
YM
94732009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9474
9475 * keyboard.h (add_user_signal): Fix typo in extern.
9476
9477 * lisp.h (add_user_signal): Remove extern.
9478
9479 * unexelf.c (unexec): Consider a section to precede the .bss section
9480 if its addresses overlap that of .bss.
9481 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9482 instead of dumping process.
9483
864660a2
SM
94842009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9485
9486 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9487
50da4e56
SM
94882009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9489
9490 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9491
51520a1a
DN
94922009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9493
9494 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9495 any statements.
9496
409ea3a1
AS
94972009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9498
59c4c60f
AS
9499 * process.c (read_process_output): Make sure the current buffer is
9500 always restored.
9501
409ea3a1
AS
9502 * coding.c (record_conversion_result): Don't modify
9503 Vlast_code_conversion_error for successful result.
9504 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9505
56f00ed2
KH
95062009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9507
9508 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9509 (load_charset_map): Remove unnecessary code.
56f00ed2 9510
4491c9d2
DR
95112009-04-30 David Reitter <david.reitter@gmail.com>
9512
35f5b128 9513 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9514 through f24.
9515
6970f632
CY
95162009-04-30 Chong Yidong <cyd@stupidchicken.com>
9517
9518 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9519
9520 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9521 face_at_buffer_position.
9522 (face_before_or_after_it_pos, get_next_display_element)
9523 (note_mouse_highlight): Update face_at_buffer_position call.
9524
9525 * term.c (term_mouse_highlight):
9526 * msdos.c (IT_note_mouse_highlight):
9527 * fontset.c (Finternal_char_font):
35f5b128 9528 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9529
9530 * dispextern.h (face_at_buffer_position): Update prototype.
9531
0c616f63
KH
95322009-04-30 Kenichi Handa <handa@m17n.org>
9533
35f5b128 9534 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9535
ad3aaf33
AS
95362009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9537
9538 * callproc.c (Fcall_process): Fix GC protection. Make sure
9539 current buffer is always restored.
9540
c3c963a0
YM
95412009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9542
9543 * atimer.c (init_atimer): Also clear stopped_atimers.
9544
9545 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9546
7e3386cb
YM
9547 * process.c (create_process): Clean up merger residues of
9548 2008-07-17 change.
9549
91f68422
CY
95502009-04-29 Ulrich Mueller <ulm@gentoo.org>
9551
9552 * lread.c (Vread_circle): New variable.
9553 (read1): Disable recursive read if Vread_circle is nil.
9554
24b34550
KH
95552009-04-29 Kenichi Handa <handa@m17n.org>
9556
9557 * fontset.h (set_default_ascii_font): Delete extern.
9558
9559 * fontset.c (set_default_ascii_font): Delete this unused function.
9560
9561 * frame.c (x_set_font): When ARG is a font-object, check if the
9562 font-object matches with the ASCII font-spec of the frame's
9c358bda 9563 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9564
77bf07e1
AS
95652009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9566
9567 * fns.c (Flocale_info): Protect vector from GC during decoding.
9568
9569 * process.c (Fstart_process): Protect argv strings from GC during
9570 encoding.
9571
2c55aacf
AS
95722009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9573
9574 * sysdep.c: Include <ctype.h>.
9575
b892d3c9
DR
95762009-04-27 David Reitter <david.reitter@gmail.com>
9577
35f5b128 9578 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9579 Remove commented-out code.
9580
9d0644c4
JB
95812009-04-26 Johan Bockgård <bojohan@gnu.org>
9582
9583 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9584
b7053016
JR
95852009-04-25 Jason Rumney <jasonr@gnu.org>
9586
9587 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9588
4e8231f3
YM
95892009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9590
9591 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9592 Swap bytes in short integer if fringe bitmap width > 8.
9593
493dcf2c
KH
95942009-04-23 Kenichi Handa <handa@m17n.org>
9595
9596 * xfaces.c (Fx_list_fonts): If a font size is specified in
9597 PATTERN, set it in returned scalable fonts.
9598
401e9e57
CY
95992009-04-22 Chong Yidong <cyd@stupidchicken.com>
9600
708e05dc
CY
9601 * keyboard.c (Fset_input_meta_mode): Doc fix.
9602
9603 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9604
1ac9108a 9605 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9606
9607 * coding.c (Fterminal_coding_system): Doc fix.
9608
9609 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9610 (Fx_display_pixel_height, Fx_display_planes)
9611 (Fx_display_color_cells, Fx_server_max_request_size)
9612 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9613 (Fx_display_mm_height, Fx_display_mm_width)
9614 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9615 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9616 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9617 (check_x_display_info): Handle terminal objects instead of
9618 terminal ids.
9619
401e9e57
CY
9620 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9621 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9622 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9623 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9624
df80c7f0
KH
96252009-04-21 Kenichi Handa <handa@m17n.org>
9626
5a8f12af 9627 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9628 (font_score): Check AVGWIDTH too.
908567ef 9629
df80c7f0
KH
9630 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9631 worst case.
1ac9108a
SM
9632 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9633 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9634
705af33f
JR
96352009-04-19 Jason Rumney <jasonr@gnu.org>
9636
9637 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9638 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9639
9640 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9641 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9642 get_phys_cursor_geometry.
9643
b71ac3dd 9644 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9645 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9646 using get_phys_cursor_geometry.
9647
9648 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9649 correctly calculated.
9650
dc2933eb
JD
96512009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9652
1ac9108a
SM
9653 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9654 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9655 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9656 is deprecated.
9657
973e7849
AS
96582009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9659
9660 * font.c (font_put_frame_data): Use xfree instead of free.
9661
314d66f4
JB
96622009-04-17 Juanma Barranquero <lekktu@gmail.com>
9663
9664 * w32font.c (Qja, Qko): Remove declarations.
9665 (syms_of_w32font): Don't DEFSYM them.
9666
cf702558
CY
96672009-04-17 Chong Yidong <cyd@stupidchicken.com>
9668
9669 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9670
9671 * font.h (Qja, Qko): Extern them.
9672
9673 * ftfont.c (Qja, Qko): Remove declarations.
9674
9675 * xfont.c (Qja, Qko): Remove declarations.
9676
b50504f5
KH
96772009-04-17 Kenichi Handa <handa@m17n.org>
9678
bde25748
KH
9679 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9680 string from a vector to handle Latin-1 characters correctly.
9681
b50504f5
KH
9682 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9683 entity even if the cache hits.
9684
f4646fff
AS
96852009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9686
9687 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9688 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9689
e7deaab0
AS
9690 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9691 * lisp.h: Adjust prototypes.
9692
0a0e7d49
CY
96932009-04-16 Chong Yidong <cyd@stupidchicken.com>
9694
9695 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9696 change (Bug#3003).
9697
3c908a57
KH
96982009-04-16 Kenichi Handa <handa@m17n.org>
9699
1ac9108a 9700 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9701
9702 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9703 adstyle.
9704
9705 * ftfont.c (Qja, Qko): Don't make them static.
9706 (enum ftfont_cache_for): New enum.
9707 (fc_charset_table): Undo the previous change.
9708 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9709 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9710 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9711 non-scarable font, try to get AVERAGE_WIDTH.
9712 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9713 Change ft_face_cache from a list of a hash-table. Don't check
9714 `ja' and `ko' adstyle here.
9715 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9716 FTFONT_CACHE_FOR_CHARET.
9717 (ftfont_get_charset): Undo the previous change.
1ac9108a 9718 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9719 (ftfont_close): Likewise.
9720 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9721
9722 * font.c (font_sort_entites): Change the meaning of the arg
9723 BEST-ONLY. Don't optimize for VEC of lenght 1.
9724 (font_select_entity): Just return the value of font_sort_entites.
9725
9726 * xfaces.c (merge_face_vectors): Reflect font properties in
9727 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9728 font_clear_prop if a face attribute doesn't change.
9729
3c908a57
KH
9730 * charset.h (charset_ksc5601): Extern it.
9731
9732 * charset.c (charset_ksc5601): New variable.
9733 (Fdefine_charset_internal): Set charset_ksc5601.
9734 (init_charset_once): Initialize charset_ksc5601 to -1.
9735
d65859c3
DN
97362009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9737
9738 * fileio.c (history_delete_duplicates): Remove unused declaration.
9739
9740 * callint.c (history_delete_duplicates): New declaration.
9741 (Fcall_interactively): Remove command history duplicates when
9742 history_delete_duplicates is true.
9743
3ba010e5
EZ
97442009-04-14 Eli Zaretskii <eliz@gnu.org>
9745
9746 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9747
06f19b91
KH
97482009-04-14 Kenichi Handa <handa@m17n.org>
9749
9750 * font.c (Ffont_info): Fix docstring. Fix the second element of
9751 the returned value (bug#2949).
9752
2cce8bfc
CY
97532009-04-14 Chong Yidong <cyd@stupidchicken.com>
9754
9755 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9756
d156542d
KH
97572009-04-14 Kenichi Handa <handa@m17n.org>
9758
9759 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9760 encoding charset is ascii_compatible.
9761
9762 * charset.c (Fdefine_charset_internal): Make charset
9763 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9764 code_offset is 0, and covers all ASCII characters.
9765
86fa089e
SM
97662009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9767
9768 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9769 (ns_string_to_pasteboard_internal):
9770 * nsmenu.m (process_dialog):
9771 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9772 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9773 * lisp.h (Fx_load_color_file): Declare.
9774
a8a3728b
KH
97752009-04-13 Kenichi Handa <handa@m17n.org>
9776
1ac9108a 9777 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9778 (font_select_entity): Suppress the code to optimize for the same
9779 kind of fonts.
9780 (font_load_for_lface): Get a font that supports at least ASCII
9781 characters.
9782
9783 * ftfont.c (Qja, Qko): New variables.
9784 (fc_charset_table): Delete uniquifier data for iso8859-1.
9785 (ftfont_get_latin1_charset): New function.
9786 (get_adstyle_property): New function.
9787 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9788 bitmap fonts.
9789 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9790 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9791 `ko' or `ja'.
9792 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9793 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9794 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9795 property.
9796 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9797 (syms_of_ftfont): DEFSYM Qja and Qko.
9798
483670b5
KH
97992009-04-09 Kenichi Handa <handa@m17n.org>
9800
12b55765
KH
9801 * charset.c (map_charset_chars): For a charset of `superset'
9802 method, fix calculation of code range.
9803
483670b5
KH
9804 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9805 from the list of extra properties.
9806 (font_clear_prop): Be sure to delete `:name' font property.
9807
57d3b93b
KH
98082009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9809
b4b2c2ca
YM
9810 * dispnew.c (redraw_overlapping_rows): Fix detection of
9811 overlapping for topmost and bottommost rows.
9812
1ac9108a 9813 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9814
472c3609
JR
98152009-04-06 Jason Rumney <jasonr@gnu.org>
9816
9817 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9818
ab193662
KH
98192009-04-06 Kenichi Handa <handa@m17n.org>
9820
9821 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9822
9823 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9824
0c26f026
KH
98252009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9826
9827 * ftfont.c (ftfont_open): Fix checking of the return value of
9828 FT_Load_Char. Fix setting font->underline_thickness.
9829
e173bbce
CY
98302009-04-04 Chong Yidong <cyd@stupidchicken.com>
9831
9832 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9833 (Fterminal_parameters, Fterminal_parameter)
9834 (Fset_terminal_parameter): In doc string, refer to terminal
9835 objects rather than terminal ids.
9836
693a2698
EZ
98372009-04-04 Eli Zaretskii <eliz@gnu.org>
9838
9839 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9840 ret_lim_data. (Bug#2867)
9841
d5221487
CY
98422009-04-03 Chong Yidong <cyd@stupidchicken.com>
9843
9844 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9845 so they don't get wider than the window, matching 2006-01-23
9846 change to the partner function in xdisp.c (Bug#2800).
9847
223509a3
KH
98482009-04-03 Kenichi Handa <handa@m17n.org>
9849
9850 * print.c (print_object): Make each lowest sub_char_table start a
9851 new line (Bug#2866).
9852
74fcd0b1
KH
98532009-04-02 Kenichi Handa <handa@m17n.org>
9854
9855 * fontset.c (fontset_font): Record no-font when a fontset
9856 explicitly tells not to try another font-specs.
9857
c542407d
SM
98582009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9859
9860 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9861
e3869731
KH
98622009-03-30 Kenichi Handa <handa@m17n.org>
9863
d8d2f142
KH
9864 * fontset.c (fontset_from_font): Specify only registry in a
9865 font-spec for all characters supported by that registry.
9866
e3869731
KH
9867 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9868 even if HAVE_M17N_FLT is not defined.
9869
5da5f805
CY
98702009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9871
9872 * ftfont.c: Conditionalize prototyping and use of
9873 ftfont_variation_glyphs.
9874
ab226c50
SM
98752009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9876
9628fed7
SM
9877 * frame.c (delete_frame): Work around compiler bug.
9878
9879 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9880 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9881 Some more EMACS_INT.
9882 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9883
9884 * xdisp.c (dump_glyph): Fix typo.
9885
ae19ba7c
SM
9886 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9887 (adjust_markers_gap_motion, adjust_markers_for_delete)
9888 (adjust_markers_for_insert, adjust_point)
9889 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9890 (make_gap, copy_text, count_size_as_multibyte, insert)
9891 (insert_and_inherit, insert_before_markers)
9892 (insert_before_markers_and_inherit, insert_1)
9893 (count_combining_before, count_combining_after, insert_1_both)
9894 (insert_from_string, insert_from_string_before_markers)
9895 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9896 (insert_from_buffer_1, adjust_after_replace)
9897 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9898 (replace_range_2, del_range, del_range_1, del_range_byte)
9899 (del_range_both, del_range_2, modify_region)
9900 (prepare_to_modify_buffer, signal_before_change)
9901 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9902 for buffer positions and sizes.
9903 * lisp.h: Adjust prototypes accordingly.
9904
9905 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9906 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9907 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9908
ab226c50
SM
9909 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9910
46dfb8fb
JD
99112009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9912
9913 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9914 lines and columns so we keep the same pixel height and width.
9915
9916 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9917 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9918 (x_handle_net_wm_state): New function to update frame parameter
9919 fullscreen.
9920 (x_term_init): Initialize atoms for _NET_WM_STATE.
9921
9922 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9923
d347e494
SM
99242009-03-27 Kevin Ryde <user42@zip.com.au>
9925
9926 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9927 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9928 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9929 (Fgpm_mouse_stop): Pass that new parameter.
9930 * termhooks.h (close_gpm): Adjust prototype.
9931
84db11d6
SM
99322009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9933
c95a5008
SM
9934 * lisp.h (Fx_focus_frame): Declare.
9935
84db11d6
SM
9936 * callint.c (Fcall_interactively): For '^' just delegate the work to
9937 handle-shift-selection.
9938 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9939
0a1958d6
CY
99402009-03-24 Chong Yidong <cyd@stupidchicken.com>
9941
0bfdff23
CY
9942 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9943
0a1958d6
CY
9944 * data.c (Qinteractive_form): New variable.
9945 (Finteractive_form): Use it.
9946
9947 * eval.c (Fcommandp): Use Qinteractive_form.
9948
58aec0d6
JR
99492009-03-24 Jason Rumney <jasonr@gnu.org>
9950
9951 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9952 Calculate total size precisely. Decode environment variables
9953 before substituting. (Bug#38)
9954
553dd618
KH
99552009-03-24 Kenichi Handa <handa@m17n.org>
9956
9957 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9958 encoding (Bug#2722).
553dd618 9959
c39ea606
JD
99602009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9961
9962 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9963 that gdpy is set.
9964
bc9b2b5e
AM
99652009-03-22 Alan Mackenzie <acm@muc.de>
9966
9967 * callint.c (Finteractive): Clarify the doc string - even
9968 promptless elements need \n separators.
9969
9f995a76
JR
99702009-03-22 Jason Rumney <jasonr@gnu.org>
9971
9972 * w32term.c (syms_of_w32term): Doc fix for
9973 x-use-underline-position-properties.
9974
22749e9a
EZ
99752009-03-21 Eli Zaretskii <eliz@gnu.org>
9976
9977 * w32.c (getpwuid): Change argument type to unsigned.
9978 (struct w32_id): Change type of `rid' member to unsigned.
9979 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9980 argument ID to unsigned. All callers changed.
9981 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9982
e00553bf
EZ
99832009-03-20 Eli Zaretskii <eliz@gnu.org>
9984
9985 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9986 negative, produce a float value.
9987
9988 * dired.c (make_uid, make_gid): New functions.
9989 (Ffile_attributes): Use them to avoid negative UID and GID.
9990
f761d6b6
JB
99912009-03-20 Juanma Barranquero <lekktu@gmail.com>
9992
9993 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9994 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9995 Fix typos in docstrings.
9996
d507f8d7
KH
99972009-03-19 Kenichi Handa <handa@m17n.org>
9998
9999 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
10000 changed, use font_load_for_lface to get a new font object.
10001 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
10002
10003 * frame.c (x_set_font): Handle the case that ARG is a cons.
10004
c68845e0
GM
100052009-03-19 Glenn Morris <rgm@gnu.org>
10006
10007 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10008
bfa49dd1
CY
100092009-03-19 Chong Yidong <cyd@stupidchicken.com>
10010
10011 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10012
8458d4c1
KH
100132009-03-19 Kenichi Handa <handa@m17n.org>
10014
10015 * charset.c (load_charset_map_from_file): When a mapfile can't be
10016 loaded, signal an error.
10017
78e7d1fe
EZ
100182009-03-18 Eli Zaretskii <eliz@gnu.org>
10019
10020 * dired.c (Ffile_attributes): Make sure UID and GID are always
10021 positive, even if the value is too large for a positive EMACS_INT.
10022 Doc fix.
10023
10024 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10025
5da9fdfa
YM
100262009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10027
10028 * xmenu.c (xdialog_show): Move Fredisplay call ...
10029 (Fx_popup_dialog): ... here.
10030
7519c40d
SM
100312009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10032
10033 * dired.c (file_name_completion): Disable the first optimization just
10034 installed, since it is not implemented correctly.
10035
2cd298e2
SM
100362009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10037
10038 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 10039 only if the entry can affect bestmatch.
2cd298e2
SM
10040 Stop the search early, as Ftry_completion already does.
10041
48d37adf
CY
100422009-03-17 Chong Yidong <cyd@stupidchicken.com>
10043
e10c9c93 10044 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 10045
9286b16a
CY
100462009-03-15 Chong Yidong <cyd@stupidchicken.com>
10047
10048 * keyboard.c (parse_menu_item): Don't display remappings as menu
10049 equivalent bindings (Bug#788).
10050
f7b146dc
JR
100512009-03-15 Jason Rumney <jasonr@gnu.org>
10052
10053 * w32term.h (WM_EMACS_PAINT): New message.
10054 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10055 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10056 before passing to lisp thread. (Bug#950)
10057
f761d6b6 100582009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 10059
d93f9575
CY
10060 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10061 variable as it was never reset.
10062 (ns_term_init): Remove initialization of Lisp-settable defaults
10063 and ns_expand_space.
10064 (-setPanelFromDefaultValues): Remove ns_expand_space.
10065 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10066 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
10067 i.e. no additional spacing, similar to Carbon port.
10068
d93f9575
CY
10069 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10070 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10071
305018ec
JD
100722009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10073
10074 * sound.c (alsa_configure): Remove call to deprecated
10075 snd_pcm_sw_params_set_xfer_align.
10076
f761d6b6 100772009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10078
10079 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10080 after clicking in a detached tool bar.
10081 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10082
46e722a9
SM
100832009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10084
348db3dd
SM
10085 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10086 int/Lisp_Object mixup).
46e722a9 10087
a3d16f39
KH
100882009-03-13 Kenichi Handa <handa@m17n.org>
10089
10090 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10091 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10092 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10093 (set_fontset_font): Change ARG to a vector. Handle range_list in
10094 ARG correctly.
10095 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10096 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10097 the above change.
10098 (fontset_from_font): Fix previous change.
fe24f56a 10099 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10100 entry. If FONTSET is the default fontset, don't set the extra
10101 slot of the returning char-table.
10102
b066e6b6
JB
101032009-03-12 Juanma Barranquero <lekktu@gmail.com>
10104
10105 * nsfns.m (Fx_close_connection): Doc fix.
10106 (Fns_do_applescript): Reflow docstring.
10107 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10108 (Fx_display_pixel_width, Fx_display_pixel_height)
10109 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10110 Fix typos in docstrings.
10111 (Fns_set_alpha): Fix typos in error messages.
10112
d472514e 101132009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10114
d472514e 10115 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10116 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10117 were used for such events.
10118
d472514e
JB
10119 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10120 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10121
d472514e 10122 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10123 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10124
fb930676
KH
101252009-03-11 Kenichi Handa <handa@m17n.org>
10126
ff85581a
KH
10127 * font.h (font_open_by_spec): Extern it.
10128
c50b7e98
KH
10129 * font.c (font_open_by_spec): New function.
10130 (font_open_by_name): Use font_open_by_spec.
10131
fb930676
KH
10132 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10133 fontset of the frame.
10134
10135 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10136 modify the default font of frames that use this fontset.
10137 (num_auto_fontsets): New variable.
10138 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10139 name. Be sure to set FONTSET_ASCII to the correct font name.
10140 (update_auto_fontset_alist): New function.
10141
df4e8455
JB
101422009-03-11 Juanma Barranquero <lekktu@gmail.com>
10143
10144 * makefile.w32-in: Update dependencies.
10145
0a375797
AR
101462009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10147
10148 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10149
61313fa3
SM
101502009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10151
10152 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10153
b55103fb
CY
101542009-03-10 Chong Yidong <cyd@stupidchicken.com>
10155
10156 * lread.c (Feval_buffer): Doc fix.
10157
dde2559c
KH
101582009-03-09 Kenichi Handa <handa@m17n.org>
10159
10160 * charset.c (Qfile_name_handler_alist): Extern it.
10161 (load_charset_map_from_file): Temporarily bind
10162 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10163
df4e8455 101642009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10165
47f588bb
GM
10166 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10167 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10168
4ddf94bd
AR
101692009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10170
4c9bdfc2
AR
10171 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10172 (x_set_window_size): Change back to calculated method of setting
10173 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10174 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10175 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10176
fe41ae9e
AR
10177 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10178
4c9bdfc2
AR
10179 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10180 accelerator in parens under GNUstep.
10181
825d0875
KH
101822009-03-06 Kenichi Handa <handa@m17n.org>
10183
10184 These changes are to detect incorrect composition sequence without
f3b3be74 10185 looking ahead the source. (Bug#2370)
825d0875
KH
10186
10187 * coding.h: Include "composite.h".
10188 (enum compisition_state): New enum.
10189 (struct compisition_status): New struct.
10190 (struct iso_2022_spec): New member cmp_status.
10191 (struct emacs_mule_spec): New struct.
10192 (struct coding_system): New members ctext_extended_segment_len and
10193 embedded_utf_8. Change the union member
10194 spec.emacs_mule_full_support to spec.emacs_mule.
10195
10196 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10197 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10198 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10199 (ADD_COMPOSITION_DATA): New arg nbytes.
10200 (emacs_mule_char): New arg cmp_status.
10201 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10202 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10203 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10204 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10205 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10206 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10207 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10208 (EMACS_MULE_COMPOSITION_END): New macro.
10209 (emacs_mule_finish_composition): New function.
10210 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10211 (decode_coding_emacs_mule): Avoid long looking ahead while
10212 handling composition.
10213 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10214 (ENCODE_COMPOSITION_RULE): New macro.
10215 (finish_composition): New function.
10216 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10217 (DECODE_COMPOSITION_START): New implementation.
10218 (DECODE_COMPOSITION_END): Likewise.
10219 (STORE_COMPOSITION_RULE): New macro.
10220 (decode_coding_iso_2022): Avoid long looking ahead while handling
10221 composition, CTEXT extended segment, and embedded UTF-8.
10222 (setup_coding_system): For a coding of type iso-2022, reset
10223 CODING_ISO_EXTSEGMENT_LEN (coding) and
10224 CODING_ISO_EMBEDDED_UTF_8 (coding).
10225 (get_translation): Delete arguments last_block, from_nchars,
10226 to_nchars. Callers changed.
10227 (produce_chars): Don't modify charbuf. Adjusted for the change of
10228 get_translation.
98a326f7 10229 (produce_composition): Adjust for the new annotation sequence.
825d0875 10230 (handle_composition_annotation): Likewise.
98a326f7 10231 (consume_chars): Adjust for the change of get_translation.
825d0875 10232
ccbc4452
AR
102332009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10234
4ddf94bd 10235 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10236
988a7ddb
KH
102372009-03-05 Kenichi Handa <handa@m17n.org>
10238
10239 * font.c (font_select_entity): New function.
10240 (font_find_for_lface): Use font_select_entity to select a font.
10241
10242 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10243 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10244 font with C restriction.
10245
98a326f7 102462009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10247
be1bce46 10248 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10249
10ea2b82
JR
102502009-03-04 Jason Rumney <jasonr@gnu.org>
10251
2c93b248 10252 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10253 characters that have already been read. (Bug#2569)
2c93b248 10254
10ea2b82
JR
10255 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10256 Log an error message if check_image_size failed.
10257 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10258 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10259
71a0c011
EZ
102602009-03-02 Eli Zaretskii <eliz@gnu.org>
10261
10262 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10263 when decoding process output.
10264
2f63bba8
RS
102652009-03-01 Richard M Stallman <rms@gnu.org>
10266
10267 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10268
10269 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10270
0a9564cb
EZ
102712009-02-28 Eli Zaretskii <eliz@gnu.org>
10272
10273 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10274 (decode_coding_emacs_mule, decode_coding_iso_2022)
10275 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10276 (decode_coding_raw_text, decode_coding_charset)
10277 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10278 Honor inhibit-eol-conversion. (Bug #2186)
10279
449148b3
JR
102802009-02-28 Jason Rumney <jasonr@gnu.org>
10281
10282 * coding.c (detect_coding_charset): If not checking latin extra,
10283 fail on characters between 0x80 and 0xA0. (Bug#2354)
10284
a4aee864
EZ
102852009-02-28 Eli Zaretskii <eliz@gnu.org>
10286
10287 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10288 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10289
d88bee5a
GM
102902009-02-27 Glenn Morris <rgm@gnu.org>
10291
10292 * callint.c (Finteractive): Doc fix.
10293
a808f22d
KH
102942009-02-27 Kenichi Handa <handa@m17n.org>
10295
10296 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10297
caf8d60c
CY
102982009-02-27 Chong Yidong <cyd@stupidchicken.com>
10299
10300 * font.c (font_style_to_value): Set value for unknown symbols to
10301 100 instead of 255.
b61137ea
CY
10302 (weight_table, slant_table, width_table): Treat "unspecified" as
10303 the default value.
caf8d60c 10304
1a0de25c
JB
103052009-02-26 Juanma Barranquero <lekktu@gmail.com>
10306
10307 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10308
8fc45744
JB
103092009-02-25 Juanma Barranquero <lekktu@gmail.com>
10310
107bd7d1
JB
10311 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10312 error as soon as a recursive load is detected.
8fc45744 10313
f097e223
AR
103142009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10315
10316 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10317 before caching.
10318
8810a12f
KH
103192009-02-24 Kenichi Handa <handa@m17n.org>
10320
10321 * fontset.c (fontset_find_font): Fix the condition for checking
10322 unavailable font.
10323
2c7d1565
GM
103242009-02-24 Glenn Morris <rgm@gnu.org>
10325
10326 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10327 whitespace that confuses documentation.
10328
a20878b6
MB
103292009-02-23 Miles Bader <miles@gnu.org>
10330
10331 * process.c (Flist_system_processes, Fprocess_attributes)
10332 (syms_of_process): Rename `system-process-attributes' to
10333 `process-attributes'.
10334
b3b58c01
AS
103352009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10336
1b3b981b
AS
10337 * coding.h (struct coding_system): Make safe_charsets a pointer to
10338 unsigned char.
10339 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10340 being 255.
10341 (SAFE_CHARSET_P): Likewise.
10342 (setup_iso_safe_charsets): Properly setup safe_charsets.
10343 (Fdefine_coding_system_internal): Likewise.
10344 (setup_coding_system): Likewise. Remove unneeded casts.
10345 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10346 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10347 unneeded casts.
10348
b3b58c01
AS
10349 * insdel.c (del_range_2): Don't modify gap contents when called
10350 from decode_coding_object. (Bug#1809)
10351
0b6f228c
CY
103522009-02-21 Chong Yidong <cyd@stupidchicken.com>
10353
10354 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10355 Qfont_object.
10356 (Ftype_of): Recognize font objects.
10357
10358 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10359
10360 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10361 moved to data.c.
10362
52f8870b
AR
103632009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10364
10365 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10366 async_iconified. Based on a patch by Christian Lynbech
10367 <christian.lynbech@tieto.com>.
10368 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10369
7087d5e9
GM
103702009-02-20 Glenn Morris <rgm@gnu.org>
10371
10372 * syntax.c (Fskip_chars_forward): Fix doc typo.
10373
41d2ceef
CY
103742009-02-20 Chong Yidong <cyd@stupidchicken.com>
10375
10376 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10377
1a3b7ca6
CY
103782009-02-19 Chong Yidong <cyd@stupidchicken.com>
10379
10380 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10381
73cce38d
KH
103822009-02-19 Kenichi Handa <handa@m17n.org>
10383
10384 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10385 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10386
a51092ee
DN
103872009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10388
10389 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10390
c423ecca
KH
103912009-02-18 Kenichi Handa <handa@m17n.org>
10392
10393 * font.c (font_check_otf_features): Fix handling of `nil' element.
10394 (Ffont_spec): Describe :lang and :otf in the docstring.
10395
4c1958f4
AS
103962009-02-16 Andreas Schwab <schwab@suse.de>
10397
10398 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10399 string.
10400
5704f39a
KH
104012009-02-16 Kenichi Handa <handa@m17n.org>
10402
10403 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10404 (Bug#1723)
5704f39a 10405
8f0085aa
CY
104062009-02-14 Chong Yidong <cyd@stupidchicken.com>
10407
a057d86a 10408 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10409
10410 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10411 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10412
aff01dd9
EZ
104132009-02-14 Eli Zaretskii <eliz@gnu.org>
10414
10415 * msdos.c (MAX_SCREEN_BUF): New macro.
10416 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10417 Encode the entire run of glyphs sharing the same face, instead of
10418 doing that one glyph at a time (fixes a bug with displaying
10419 double-size characters).
10420
ba301db3
AR
104212009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10422
10423 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10424
10425 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10426 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10427 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10428
10429 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10430 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10431
51d861de
SM
104322009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10433
ac146f82 10434 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10435 invisible areas.
10436
7fed8996
JR
104372009-02-12 Jason Rumney <jasonr@gnu.org>
10438
631ea4fb
JR
10439 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10440 (add_font_entity_to_list): Call check_face_name even when family
10441 is unspecified.
10442
cb4a3e42
JR
10443 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10444 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10445 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10446
7fed8996 10447 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10448 raster fonts. (Bug#2219)
7fed8996 10449
895416e3
KH
104502009-02-12 Kenichi Handa <handa@m17n.org>
10451
10452 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10453 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10454 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10455 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10456 (find_automatic_composition): While looking forward and backward,
10457 check static composition. Fix where to stop looking forward.
10458 (composition_adjust_point): Fix checking of static composition.
10459 (Fcomposition_get_gstring): Pay attention to
1dacf998 10460 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10461
10462 * lisp.h (fast_looking_at): Extern it.
10463
10464 * search.c (fast_looking_at): New function.
10465
51d861de 10466 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10467 <struct glyph>.u.cmp.to.
10468 (append_composite_glyph): Likewise.
10469
51d861de 10470 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10471 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10472 composition.
51d861de 10473 (append_composite_glyph): Adjust for the change of
895416e3
KH
10474 <strcut glyph>.u.cmp.to.
10475
8510724d
JB
104762009-02-11 Juanma Barranquero <lekktu@gmail.com>
10477
10478 * casetab.c (init_casetab_once):
10479 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10480 * font.c (font_update_lface):
10481 * fontset.c (Fnew_fontset):
10482 * ftfont.c (ftfont_drive_otf):
10483 * xfont.c (xfont_open):
10484 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10485
294fa707
SM
104862009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10487
10488 * fileio.c (Fwrite_region): !NILP -> CONSP.
10489
b5bfebec
AS
104902009-02-10 Andreas Schwab <schwab@suse.de>
10491
10492 * process.c (send_process): Properly relocate pointer into data
adab88bd 10493 when using encoded data. (Bug#2272)
b5bfebec 10494
cb84a2be
KH
104952009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10496
10497 * coding.c (detect_coding_charset): Fix previous change.
10498
89e09428
JR
104992009-02-08 Jason Rumney <jasonr@gnu.org>
10500
10501 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10502 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10503
4470a277
AS
105042009-02-07 Andreas Schwab <schwab@suse.de>
10505
10506 * unexelf.c (unexec): Fix error message.
10507
3175b12a
AR
105082009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10509
10510 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10511 when modal window is active. (Bug #2152)
3175b12a
AR
10512 (applicationShouldTerminate:): Remove now-unneeded while loop
10513 around NSRunAlertPanel.
10514
10515 * nsmenu.m (popupSession): New file-global variable.
10516 (pop_down_menu): End the popupSession before closing dialog.
10517 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10518 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10519 don't query NSApp for events (just sleep instead).
10520
8434d0b8
EZ
105212009-02-07 Eli Zaretskii <eliz@gnu.org>
10522
51d861de
SM
10523 * coding.c (syms_of_coding) <translation-table-for-input>:
10524 Modify doc string to discourage use for character code unification.
8434d0b8 10525
aa82edfd
CY
105262009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10527
10528 * atimer.c (run_timers): Update pending_atimers.
10529
2d283c7c
CY
105302009-02-06 Chong Yidong <cyd@stupidchicken.com>
10531
eb306cab
CY
10532 * image.c (svg_load_image): Fix last change.
10533
2d283c7c
CY
10534 * xfns.c (Fx_create_frame): Signal an error if no font is
10535 found (Bug#2147).
10536
4d8e170e
JB
105372009-02-05 Juanma Barranquero <lekktu@gmail.com>
10538
10539 * character.c (syms_of_character) <script-representative-chars>:
10540 Fix typo in docstring.
10541
c96169a0
AR
105422009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10543
10544 * nsmenu.m (pop_down_menu): New function.
10545 (ns_popup_dialog): Call it on unwind.
10546 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10547 call timer_check() (Bug#2154).
10548 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10549 handling_signal is set.
10550 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10551
31fd7c5c 10552 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10553
10554 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10555
10556 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10557
51d861de
SM
10558 * keyboard.c (poll_for_input_1, handle_async_input):
10559 Set handling_signal under HAVE_NS.
c96169a0 10560
aacd8ba1
GM
105612009-02-04 Glenn Morris <rgm@gnu.org>
10562
10563 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10564
4cb75c4b
KH
105652009-02-04 Kenichi Handa <handa@m17n.org>
10566
10567 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10568
10569 * charset.c (Fchar_charset): New optional arg restriction.
10570
10571 * coding.h (coding_system_charset_list): Extern it.
10572
10573 * coding.c (coding_system_charset_list): New function.
10574
10575 * composite.c: Include coding.h and termhooks.h.
10576 (composition_gstring_p): Fix for the terminal case.
10577 (composition_gstring_width): Likewise.
10578 (fill_gstring_body): Likewise.
10579 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10580 the frame.
10581 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10582 is within a composition.
867d4bb3 10583 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10584
10585 * term.c (encode_terminal_code): Fix handling of composition.
10586 (produce_composite_glyph): For static composition, get pixel_width
10587 from struct composition.
10588
826ba17e
AS
105892009-02-02 Andreas Schwab <schwab@suse.de>
10590
10591 * unexelf.c (unexec): Handle unaligned bss offset.
10592
8ad093db
AR
105932009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10594
10595 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10596 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10597
8ad093db
AR
10598 * keyboard.c (handle_interrupt): Don't call
10599 quit_throw_to_read_char() under NS.
d0a76a6e 10600
8ad093db
AR
10601 * blockinput.h: Remove NS-specific code.
10602
4d18a7a2
DN
106032009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10604
db878925
DN
10605 * dispnew.c (window_change_signal): Don't try to get the size of a
10606 suspended tty frame.
10607 * term.c (Fresume_tty): Resize if the size has changed while the
10608 tty was suspended.
10609
4d18a7a2
DN
10610 * alloc.c (mark_stack): Properly conditionalize previous change.
10611
8984df7c
JB
106122009-01-30 Juanma Barranquero <lekktu@gmail.com>
10613
10614 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10615 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10616 Remove; this code is not used on Windows.
10617
75f4f1ac
EZ
106182009-01-30 Eli Zaretskii <eliz@gnu.org>
10619
10620 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10621 EOLs that also has stray ^M characters.
10622
07a1e794
JB
106232009-01-30 Juanma Barranquero <lekktu@gmail.com>
10624
10625 * atimer.c (run_timers, alarm_signal_handler):
10626 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10627 * w32inevt.c (w32_console_read_socket):
10628 * w32term.c (w32_read_socket):
10629 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10630
a8b11cc9
CY
106312009-01-30 Chong Yidong <cyd@stupidchicken.com>
10632
10633 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10634 Initialize it as a relative filename pattern.
10635 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10636 (Fcall_process_region): Simplify temp file creation using
10637 temporary-file-directory.
10638
c279587b
EZ
106392009-01-29 Eli Zaretskii <eliz@gnu.org>
10640
10641 * msdos.c: Rename pending_signals to msdos_pending_signals.
10642 (sig_suspender, sigprocmask): Adjust.
10643
a8fe3242
CY
106442009-01-29 Chong Yidong <cyd@stupidchicken.com>
10645
10646 * keyboard.c (pending_signals): New var.
10647 (poll_for_input, input_available_signal, init_keyboard): Set it.
10648 (process_pending_signals): New function.
10649
10650 * lisp.h (QUIT): Check pending_signals instead of
10651 interrupt_input_pending. Use process_pending_signals.
10652
51d861de 10653 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10654
51d861de 10655 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10656
10657 * sysdep.c (emacs_write): Use process_pending_signals.
10658
10659 * xterm.c (XTread_socket): Update pending_signals.
10660
10661 * w32term.c (w32_read_socket): Update pending_signals.
10662
10663 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10664
6570a1c4
KH
106652009-01-29 Kenichi Handa <handa@m17n.org>
10666
10667 * xftfont.c (xftfont_has_char): New function.
10668 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10669
d72a4afa
AR
106702009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10671
10672 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10673 under GNUstep.
10674 (ns_query_color): New declaration.
10675
10676 * nsterm.m (ns_confirm_quit): New variable.
10677 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10678 (EmacsApp-applicationShouldTerminate:): Use it.
10679 (EmacsPrefsController): Let user set it.
10680 (ns_query_color): New function.
10681 (ns_defined_color): Use it.
10682 (ns_initialize): Drop.
10683 (ns_term_init): Add two lines from ns_initialize(), and set
10684 input_interrupt_mode to nil.
10685
10686 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10687 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10688
9fe78804
KH
106892009-01-28 Kenichi Handa <handa@m17n.org>
10690
10691 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10692 (fontset_get_font_group): Remember that no font-group is specified
10693 for C.
9fe78804 10694
fa57de36
CY
106952009-01-27 Chong Yidong <cyd@stupidchicken.com>
10696
930600e9
CY
10697 * fns.c (concat): Check for string overflow (bug#1787).
10698
fa57de36
CY
10699 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10700 Quadruple undo limits (bug#1501).
10701
7179ce7b
KH
107022009-01-27 Kenichi Handa <handa@m17n.org>
10703
10704 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10705 directly use GT_Get_Char_index.
10706
10707 * xftfont.c (struct xftfont_info): New member `index'.
10708
10709 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10710 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10711
5be8fcc0
CY
107122009-01-26 Kenichi Handa <handa@m17n.org>
10713
10714 * fontset.c (fontset_find_font): Fix handling of non-cons return
10715 value of fontset_get_font_group.
10716 (fontset_font): Revert last change.
10717
19ae3e61
JR
107182009-01-26 Jason Rumney <jasonr@gnu.org>
10719
10720 * w32font.c (w32font_list_internal): Return quickly if registry is
10721 unknown. Simplify final return.
10722 (add_font_entity_to_list): Break complex logic down into more
10723 manageable chunks. Move unknown registry check to
10724 w32font_list_internal.
10725
8612b71a
AR
107262009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10727
10728 Changes to remove Feval calls from GUI under NS.
10729
d8038940
JB
10730 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10731 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10732 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10733
10734 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10735 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10736 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10737 instead of NON_ASCII_KEYSTROKE_EVENT.
10738 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10739 (EmacsApp-applicationShouldTerminate:): Query user.
10740 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10741 instead of Feval.
10742
10743 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10744
10745 * keyboard.c (kbd_buffer_get_event): Check for it.
10746 (keys_of_keyboard): Define lispy keys for
10747 ns-put/unput-working-text.
10748
10749 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10750 versions.
10751 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10752
6288ae55
CY
107532009-01-25 Chong Yidong <cyd@stupidchicken.com>
10754
10755 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10756 setting current_buffer directly. (Bug#2044)
6288ae55 10757
289e7f8f
CY
107582009-01-24 Chong Yidong <cyd@stupidchicken.com>
10759
5ce87308 10760 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10761 any work. (Bug#1952, bug#1990).
5ce87308 10762
64cc3cf6 10763 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10764
b3243e6f
AR
107652009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10766
10767 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10768 (ns_no_defaults): New declaration.
10769 (main): Use it.
e0d2e69a 10770
d900b2af 10771 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10772
d900b2af 10773 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10774
d900b2af
AR
10775 * nsterm.m (ns_no_defaults): New variable.
10776 (ns_initialize): Don't read defaults when ns_no_defaults.
10777 (EmacsView-readSelectionFromPasteboard:)
10778 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10779 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10780 (ns_dumpglyphs_stretch): New function.
10781 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10782 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10783
e0d2e69a
AR
10784 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10785
3ac71f5d
CY
107862009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10787
10788 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10789 call for Sparc64.
10790
3fe53a83
AR
107912009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10792
10793 * nsfns.m:
10794 * nsgui.h:
10795 * nsmenu.m:
10796 * nsselect.m:
10797 * nsterm.h:
10798 * nsterm.m: Remove '23' comments that indicated code added during
10799 update from emacs-20 -> emacs-23.
10800
10f87c6f 108012009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10802
10803 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10804 ns_alternate_modifier. (Bug#1217)
a3b53a85 10805
c7cef62d
AR
10806 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10807 Display all shortcuts, including those w/o super modifier.
10808
575fb8bd
AR
10809 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10810
918b848b
CY
108112009-01-22 Chong Yidong <cyd@stupidchicken.com>
10812
10813 * fileio.c (Vwrite_region_post_annotation_function)
10814 (Vwrite_region_annotation_buffers): New vars.
10815 (build_annotations_unwind): Just reset
10816 Vwrite_region_annotation_buffers.
10817 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10818 Call write-region-post-annotation-function.
10819 (build_annotations): Add to Vwrite_region_annotation_buffers if
10820 buffer changes.
10821
a39e2539
AR
108222009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10823
10824 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10825 Tiger.
51d861de
SM
10826 * nsfns.m (ns_do_applescript):
10827 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10828
35ed44db
AR
108292009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10830
10831 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10832
cbe0b5bf
AR
108332009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10834
10835 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10836
6049d3a0
AR
10837 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10838
10839 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10840 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10841 handle Ctrl-tab. (Bug#1841)
10842 (ns_get_color): Use unsigned long long for scanned hex string value.
10843 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10844 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10845 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10846 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10847 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10848 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10849 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10850
d3810c21 10851 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10852 DPI. (Bug#1316)
d3810c21
AR
10853 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10854 values in onTiger section.
4c7077c3 10855
e301e634
CY
108562009-01-19 Chong Yidong <cyd@stupidchicken.com>
10857
7f82490b
CY
10858 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10859 Check return value of font_spec_from_name.
64cc3cf6 10860 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10861
10862 * font.c (font_spec_from_name): Return Qnil if font name could not
10863 be parsed.
10864 (font_parse_name): Treat a `?' character as part of an XLFD.
10865
e301e634
CY
10866 * fns.c (Fsubstring): Doc fix.
10867
1c0db158
KH
108682009-01-19 Kenichi Handa <handa@m17n.org>
10869
51d861de 10870 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10871 (ftfont_list): Likewise.
10872
acf20901
JB
108732009-01-18 Juanma Barranquero <lekktu@gmail.com>
10874
fff4e459
JB
10875 * dbusbind.c (Fdbus_register_signal):
10876 * process.c (conv_sockaddr_to_lisp):
10877 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10878
acf20901
JB
10879 * callproc.c (Fgetenv_internal): Doc fix.
10880
e7abcdfb
CY
108812009-01-16 Chong Yidong <cyd@stupidchicken.com>
10882
10883 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10884 it is not even used.
10885
b60861e6
GM
108862009-01-16 Glenn Morris <rgm@gnu.org>
10887
10888 * font.c (Ffont_variation_glyphs): Silence compiler.
10889
8db52afe
JB
108902009-01-15 Juanma Barranquero <lekktu@gmail.com>
10891
10892 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10893 Reported by David Robinow <drobinow@gmail.com>.
10894
4cddb209
KH
108952009-01-15 Kenichi Handa <handa@m17n.org>
10896
51d861de 10897 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10898
f247f67b
JR
108992009-01-14 Jason Rumney <jasonr@gnu.org>
10900
10901 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10902 never a fontset. (Bug#1562)
f247f67b 10903
f56a4450
KH
109042009-01-14 Kenichi Handa <handa@m17n.org>
10905
10906 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10907 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10908
4e99855e
CY
109092009-01-13 Chong Yidong <cyd@stupidchicken.com>
10910
10911 * font.c (font_clear_prop): If clearing the family, clear the font
10912 width index too.
10913
fff4e459 10914 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10915
24f01470
JB
109162009-01-12 Juanma Barranquero <lekktu@gmail.com>
10917
10918 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10919 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10920 functions, use sizeof.
10921
a41240a3
MR
109222009-01-12 Martin Rudalics <rudalics@gmx.at>
10923
10924 * keyboard.c (read_char): Fix case where last_nonmenu_event
10925 returned a bad value with submenus. (Bug#447)
10926
944636b8
CY
109272009-01-12 Chong Yidong <cyd@stupidchicken.com>
10928
10929 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10930 family, clear the font width index too.
10931
0dad7c6f
JR
109322009-01-11 Jason Rumney <jasonr@gnu.org>
10933
10934 * keyboard.c (cmd_error_internal): Exit when errors occur before
10935 frame creation and not in daemon mode. (Bug#1836)
10936
7c2363af
CY
109372009-01-10 Chong Yidong <cyd@stupidchicken.com>
10938
10939 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10940 of a display vector, backtrack.
10941 (try_window_reusing_current_matrix): Check glyph type before
10942 referencing charpos member.
10943
97b1b294
EZ
109442009-01-10 Eli Zaretskii <eliz@gnu.org>
10945
10946 Fix Bug #876:
10947
10948 * coding.c (inhibit_null_byte_detection): New variable.
10949 (detect_coding, detect_coding_system): Don't pay attention to null
10950 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10951 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10952 <inhibit-iso-escape-detection>: Doc fix.
10953
4624b6e3
JR
109542009-01-09 Jason Rumney <jasonr@gnu.org>
10955
10956 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10957 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10958 Only report Unicode Plane 2 fonts as unicode-sip.
10959
323b840c
CY
109602009-01-09 Chong Yidong <cyd@stupidchicken.com>
10961
51d861de
SM
10962 * xfaces.c (Fx_font_family_list): Delete function.
10963 Move compatibility version to faces.el.
323b840c 10964
51d861de 10965 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10966
eba7400d
MR
109672009-01-09 Martin Rudalics <rudalics@gmx.at>
10968
10969 * frame.c (x_set_frame_parameters): Remember requested value for
10970 fullscreen before it's reset by the parameter handler.
10971
4b09796d
GM
109722009-01-09 Glenn Morris <rgm@gnu.org>
10973
10974 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10975 (last_command_event): ... and update all users.
4b09796d
GM
10976 (last_input_char): For clarity, rename to...
10977 (last_input_event): ... and update all users.
10978 (last-command-char, last-input-char): Move to subr.el as aliases.
10979 * cmds.c, commands.h: Update for last_command_char rename.
10980
14ccea62
CY
109812009-01-08 Chong Yidong <cyd@stupidchicken.com>
10982
51d861de 10983 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10984
5f004711
JR
109852009-01-08 Jason Rumney <jasonr@gnu.org>
10986
10987 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10988 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10989 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10990 Don't declare.
fff4e459 10991 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10992 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10993
b71f6f73
KH
109942009-01-07 Kenichi Handa <handa@m17n.org>
10995
50b06221 10996 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10997 remember the coding system used for decoding in
50b06221
KH
10998 coding_system (Bug#1039).
10999
b71f6f73 11000 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 11001 breaking the loop. (Bug#870)
b71f6f73
KH
11002 (decode_coding_utf_16, decode_coding_emacs_mule)
11003 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11004 (decode_coding_charset): Likewise.
11005
56f668f7
MR
110062009-01-05 Martin Rudalics <rudalics@gmx.at>
11007
11008 * frame.c (x_set_frame_parameters): Make sure height (width) get
11009 applied when fullwidth (fullheight) is set. (Bug#1522)
11010
5da9424d
JB
110112009-01-04 Juanma Barranquero <lekktu@gmail.com>
11012
11013 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11014 (utc_base): Declare as ULONGLONG, not long double.
11015 (convert_time_raw): Delete.
11016 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11017 (initialize_utc_base): New function.
11018 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11019 (convert_from_time_t): Use initialize_utc_base; compute result with
11020 64-bit arithmetic.
11021 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11022
c4605e09
EZ
110232009-01-03 Eli Zaretskii <eliz@gnu.org>
11024
9acef61c 11025 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
11026 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11027 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11028 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11029 [!subprocesses]: Define.
11030 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11031 (Flist_system_processes, Fsystem_process_attributes)
11032 [!subprocesses]: Call list_system_processes and
11033 system_process_attributes instead of returning Qnil.
11034
9acef61c
JB
11035 * dosfns.c (system_process_attributes, list_system_processes):
11036 New functions.
c4605e09
EZ
11037
11038 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11039
11040 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11041 Don't use the default (no-op) implementation.
11042
8b7d0a16
JR
110432009-01-03 Jason Rumney <jasonr@gnu.org>
11044
a6d46bc1
JR
11045 * keyboard.c (parse_modifiers_uncached): Wheel events are
11046 clicks (bug#687).
11047
8b7d0a16
JR
11048 * w32term.c (x_query_colors, x_query_color): New functions.
11049
11050 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11051 (svg_load_image): Cast returned pointers from dynamically loaded
11052 functions. Eliminate W32 specific code.
11053
bfe11752
DN
110542009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11055
89e2438a
DN
11056 * nsfns.m (x_set_foreground_color, x_set_background_color)
11057 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11058 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11059 x_ prefix instead of ns_. Update references.
11060 (syms_of_nsfns): Add a FIXME comment.
11061
11062 * nsterm.m (x_set_cursor_type): New prototype.
11063 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11064
bfe11752
DN
11065 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11066 for Solaris instead of incorrectly providing Qutime and Qcutime.
11067
031da700
EZ
110682009-01-02 Eli Zaretskii <eliz@gnu.org>
11069
11070 * w32.c (process_times): Compute sum of utime and stime.
11071 (system_process_attributes): Add Qtime to the alist.
11072
11073 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11074 and add them to the alist.
11075
11076 * process.c (top level) <Qtime, Qctime>: New variables.
11077 (syms_of_process): staticpro them.
11078 (Fsystem_process_attributes): Add their documentation to the doc
11079 string.
11080
11081 * process.h: Declare Qtime and Qctime.
11082
df23bf08
JR
110832009-01-02 Jason Rumney <jasonr@gnu.org>
11084
9acef61c 11085 * image.c (Qgobject): New symbol.
df23bf08
JR
11086 (syms_of_image): Initialize it.
11087 (init_svg_functions): Load some functions from gobject library.
11088
5bbdf7aa
DN
110892009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11090
11091 * frame.c (make_terminal_frame): Remove redundant code and useless
11092 block.
11093
63136da6
AS
110942009-01-01 Andreas Schwab <schwab@suse.de>
11095
11096 * process.c (conv_sockaddr_to_lisp): Add workaround for
11097 getsockname bug on BSD.
11098
9ef69046
CY
110992009-01-01 Chong Yidong <cyd@stupidchicken.com>
11100
d6fafbe0
CY
11101 * xfns.c (x_create_tip_frame): Set border width of the X window.
11102
51d861de 11103 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11104
f9c34147
JR
111052009-01-01 Jason Rumney <jasonr@gnu.org>
11106
9acef61c 11107 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11108 Don't block input, as per earlier xterm.c changes.
11109
f5497e45
AR
111102008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11111
11112 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11113 (ns_appkit_version_int): New function.
11114 (x-server-version): Use ns_appkit_version_int and follow 21+
11115 convention of returning 3 integers.
11116
c19cab20
KH
111172008-12-30 Kenichi Handa <handa@m17n.org>
11118
11119 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11120 (CHAR_SURROGATE_PAIR_P): New macro.
11121
11122 * font.h (struct font_driver): New member get_variation_glyphs.
11123
9acef61c 11124 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11125 (Ffont_variation_glyphs): New function.
11126 (syms_of_font): Defsubr it.
11127
11128 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11129 ftfont_variation_glyphs.
11130 (setup_otf_gstring): New function.
11131 (ftfont_drive_otf): Use it.
11132 (ftfont_shape_by_flt): Handle variation selector.
11133 (ftfont_variation_glyphs): New function.
11134
28cd591f
MR
111352008-12-30 Martin Rudalics <rudalics@gmx.at>
11136
11137 * frame.c (Vemacs_iconified): Remove.
11138
7f714baf
JR
111392008-12-30 Jason Rumney <jasonr@gnu.org>
11140
11141 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11142 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11143
9d2d22ab
CY
111442008-12-30 Chong Yidong <cyd@stupidchicken.com>
11145
11146 * indent.c (Fvertical_motion): Don't advance iterator if we have
11147 reseated to the desired position.
11148
11149 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11150 checking for pos match.
11151
545312c2
KH
111522008-12-30 Kenichi Handa <handa@m17n.org>
11153
1ede3eb6
KH
11154 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11155 just get the low 8-bit of the code.
11156
545312c2
KH
11157 * font.c (font_intern_prop): Validate str as multibyte.
11158
bd7bbf29
DN
111592008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11160
31e0750e
DN
11161 * dispextern.h (struct face): Move lface and hash from the middle
11162 of bitfields.
11163
bd7bbf29
DN
11164 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11165
b5672e7c
DN
111662008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11167
11168 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11169 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11170 instead of intervals.h.
11171
d704470f
AS
111722008-12-26 Andreas Schwab <schwab@suse.de>
11173
11174 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11175 cons.
11176
54b33868
MR
111772008-12-26 Martin Rudalics <rudalics@gmx.at>
11178
11179 * textprop.c (Qminibuffer_prompt): New variable.
11180 (syms_of_textprop): Initialize it.
11181 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11182 in minibuffer-prompt face. (Bug#1662)
11183
40b615d6
JR
111842008-12-25 Jason Rumney <jasonr@gnu.org>
11185
11186 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11187
baae5c2d
JR
111882008-12-24 Jason Rumney <jasonr@gnu.org>
11189
11190 * ralloc.c (r_alloc_reset_variable): New function.
11191
11192 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11193 record of what points where. (Bug#716)
baae5c2d 11194
a9051c88
DN
111952008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11196
11197 * minibuf.c (read_minibuf): Follow the non-interactive case when
11198 running as a daemon, before detaching.
11199
8b146312
AS
112002008-12-22 Andreas Schwab <schwab@suse.de>
11201
11202 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11203 * gtkutil.c (free_widget_value): Use xfree instead of free.
11204
56f2de10
MR
112052008-12-22 Martin Rudalics <rudalics@gmx.at>
11206
11207 * frame.c (delete_frame): New function derived from
11208 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11209 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11210 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11211 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11212 * frame.h: Extern delete_frame.
11213 * window.c (window_loop):
11214 * terminal.c (delete_terminal):
11215 * xterm.c (x_connection_closed):
11216 * xfns.c (Fx_hide_tip):
9acef61c 11217 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11218
1fc200d6
JR
112192008-12-21 Jason Rumney <jasonr@gnu.org>
11220
11221 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11222 when character maps to .notdef character.
11223
5e252df2
SM
112242008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11225
11226 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11227
99b72cc4
JR
112282008-12-20 Jason Rumney <jasonr@gnu.org>
11229
11230 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11231 a graphical frame on Windows. (Bug#1325)
99b72cc4 11232
acc49a52
JD
112332008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11234
11235 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11236
6ea15123
CY
112372008-12-20 Chong Yidong <cyd@stupidchicken.com>
11238
11239 * minibuf.c (Fread_buffer): Doc fix.
11240
b2dab6c8
JR
112412008-12-20 Jason Rumney <jasonr@gnu.org>
11242
54ea0c87 11243 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11244 server name in UNC paths. (Bug#719)
54ea0c87 11245
b2dab6c8 11246 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11247 charbuf. (Bug#1035)
b2dab6c8 11248
6d1921be
DN
112492008-12-19 Daniel Engeler <engeler@gmail.com>
11250
11251 * sysdep.c (serial_configure): Fix typo.
11252
53934c98
DN
112532008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11254
11255 * sysdep.c: Include alloca.h.
f4f634e8
DN
11256 (system_process_attributes): Add implementation for Solaris.
11257
11258 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11259
06e111a6
DN
112602008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11261
11262 Reorganize implementation of Flist_system_processes and
11263 Fsystem_process_attributes. No functional changes.
11264 * process.c: Don't #include pwd.h, grp.h and limits.h.
11265 (Flist_system_processes): Just call list_system_processes.
11266 (Fsystem_process_attributes): Just call system_process_attributes.
11267 (procfs_list_system_processes, time_from_jiffies)
11268 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11269 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11270
11271 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11272 (list_system_processes): Rename from
11273 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11274 Provide a do nothing implementation.
11275 (system_process_attributes): Rename from
11276 procfs_list_system_processes.
11277 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11278 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11279
11280 * w32.c (list_system_processes): Rename from
11281 w32_list_system_processes.
11282 (system_process_attributes): Rename from
11283 w32_system_process_attributes.
11284
11285 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11286
11287 * process.h (w32_list_system_processes)
11288 (w32_system_process_attributes): Remove.
362654a6
JB
11289 (list_system_processes, system_process_attributes):
11290 New prototypes.
06e111a6 11291
6a705b23
KH
112922008-12-19 Kenichi Handa <handa@m17n.org>
11293
11294 * xfont.c (xfont_decode_coding_xlfd): New function.
11295 (xfont_encode_coding_xlfd): New function.
11296 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11297 (xfont_list): Decode and encode XLFD by iso-8859-1.
11298 (xfont_match): Likewise.
11299 (xfont_list_family): Likewise.
11300 (xfont_open): Likewise.
11301
d66c0241 11302 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11303 names are utf-8.
11304
d66c0241 11305 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11306 names are utf-8.
11307
5a130941
JD
113082008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11309
11310 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11311 changed.
bfd20325
JD
11312 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11313 clicked on a detached tool bar button.
5a130941 11314
fd95644b
DN
113152008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11316
11317 * emacs.c (main): Print and error and exit when no data is read
11318 from the pipe.
11319
e6eee6ae
JR
113202008-12-17 Jason Rumney <jasonr@gnu.org>
11321
11322 * w32font.c (w32font_has_char): Always return -1.
11323
a35dd56b
KH
113242008-12-16 Kenichi Handa <handa@m17n.org>
11325
11326 * font.c (font_open_entity): Fix previous change.
11327
0e3635c2
DN
113282008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11329
11330 * process.c: Include <limits.h>.
11331
d4835507 113322008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11333
11334 * font.c (font_update_drivers): Fix mistake in reconstructing the
11335 driver list.
11336
113372008-12-16 Chong Yidong <cyd@stupidchicken.com>
11338
11339 * font.c (font_clear_cache): Fix format of font cache data.
11340
e2cbc401
CY
113412008-12-15 Chong Yidong <cyd@stupidchicken.com>
11342
11343 * xftfont.c (xftfont_open): Free Xft font pattern if
11344 XftFontOpenPattern fails.
11345
11346 * xterm.c (x_free_frame_resources): Remove extraneous call to
11347 free_frame_faces.
11348
b131d535
CY
113492008-12-13 Chong Yidong <cyd@stupidchicken.com>
11350
11351 * xterm.c (x_delete_display): Move xim_close_dpy call to
11352 x_delete_terminal.
11353 (x_delete_terminal): Call xim_close_dpy.
11354
e6df5336
JR
113552008-12-13 Jason Rumney <jasonr@gnu.org>
11356
11357 * w32font.c (intern_font_name): New function.
11358 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11359 (w32font_open_internal, Fx_select_font): Decode font name.
11360 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11361
11362 * w32font.h (intern_font_name): Declare new function.
11363
11364 * w32uniscribe.c (add_opentype_font_name_to_list):
11365 Use intern_font_name.
11366
20d68145
CY
113672008-12-13 Chong Yidong <cyd@stupidchicken.com>
11368
9f2554de
CY
11369 * frame.c (Fdelete_frame): Call free_font_driver_list.
11370
3d9bec9a
CY
11371 * font.c (free_font_driver_list): Implement missing function.
11372
20d68145
CY
11373 * w32term.c (w32_term_init): Don't initialize the image cache
11374 here; it will be done in init_frame_faces.
11375
11376 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11377 (struct x_display_info): Remove unused member null_pixel. New
11378 member xim_callback_data.
11379
11380 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11381 (xim_initialize): Save pointer to callback function data.
11382 (xim_close_dpy): Free callback function data. Call XCloseIM,
11383 reverting 2008-11-04 change by David Smith.
11384 (x_term_init): Don't initialize the image cache here; it will be
11385 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11386 (x_delete_display): Free x_dnd_atoms member.
11387
96f9306b
KH
113882008-12-13 Kenichi Handa <handa@m17n.org>
11389
6dec9044
JB
11390 * font.c (font_rescale_ratio): Moved from xfaces.c.
11391 Argument type changed. Handle a font-spec too.
96f9306b 11392 (font_score): Check Vface_font_rescale_alist.
6dec9044 11393 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11394
11395 * xfaces.c (font_rescale_ratio): Moved to font.c.
11396
8d5b4964
CY
113972008-12-13 Chong Yidong <cyd@stupidchicken.com>
11398
11399 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11400
e6df5336
JR
114012008-12-12 Jason Rumney <jasonr@gnu.org>
11402
11403 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11404 Vwindow_system_version to the real w32 major version.
11405
97c6058a
DN
114062008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11407
11408 * term.c (init_tty): Move setting the terminal name before the
11409 potential user: maybe_fatal.
11410
ec4e88d7
CY
114112008-12-11 Chong Yidong <cyd@stupidchicken.com>
11412
d4835507
JB
11413 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11414 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11415
b4233ec9
JR
114162008-12-11 Jason Rumney <jasonr@gnu.org>
11417
8ec71e23 11418 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11419 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11420
b4233ec9 11421 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11422 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11423
011a0143
JB
114242008-12-11 Juanma Barranquero <lekktu@gmail.com>
11425
11426 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11427
3c309f34
JB
114282008-12-11 Juanma Barranquero <lekktu@gmail.com>
11429
11430 * process.c (Fsystem_process_attributes, syms_of_process):
11431 Fix typo in name of Ssystem_process_attributes.
11432 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11433
fedc6ab5
JB
114342008-12-11 Juanma Barranquero <lekktu@gmail.com>
11435
11436 * syntax.c (Fmodify_syntax_entry): Doc fix.
11437
ba3de0e8
JB
114382008-12-10 Juanma Barranquero <lekktu@gmail.com>
11439
11440 * font.c (Ffont_spec): Move usage to end of docstring.
11441
174f1c74
JR
114422008-12-10 Jason Rumney <jasonr@gnu.org>
11443
11444 * w32font.c (Qcham): New symbol.
11445 (font_supported_scripts): Add cham, and comments for other new
11446 scripts in bitfield from OpenType spec.
9d32f818
JR
11447 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11448 contain characters beyond the bmp.
174f1c74 11449
7b649478
KH
114502008-12-10 Kenichi Handa <handa@m17n.org>
11451
11452 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11453 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11454 Qunicode_sip.
11455
2133e2d1
JB
114562008-12-10 Juanma Barranquero <lekktu@gmail.com>
11457
11458 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11459 (Fcoding_system_put): Use QCdefault_char.
11460 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11461
9af886ee
CY
114622008-12-09 Chong Yidong <cyd@stupidchicken.com>
11463
74d819eb
CY
11464 * xftfont.c (syms_of_xftfont): Fix typo.
11465
4ccfa1c0 11466 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11467
7c19d3ae
DN
114682008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11469
11470 * emacs.c (main): Close daemon_pipe on exec.
11471
567826bb
CY
114722008-12-08 Chong Yidong <cyd@stupidchicken.com>
11473
11474 * termchar.h (struct tty): New members termcap_term_buffer and
11475 termcap_strings_buffer.
11476
11477 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11478 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11479 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11480 All callers changed.
11481 (init_tty): Store termcap data and string buffers in new struct
11482 tty members termcap_term_buffer and termcap_strings_buffer.
11483 (delete_tty): Free them.
4ccfa1c0 11484 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11485
aa96c42b
SZ
114862008-12-07 Seiji Zenitani <zenitani@mac.com>
11487
11488 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11489 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11490
b7e1d896
CY
114912008-12-06 Chong Yidong <cyd@stupidchicken.com>
11492
11493 * coding.c (make_conversion_work_buffer): Disable buffer
11494 modification hooks in the work buffer.
11495
b5ec91a5
EZ
114962008-12-05 Eli Zaretskii <eliz@gnu.org>
11497
11498 * process.c (procfs_system_process_attributes): If `nread' has a
11499 negative value, assign zero to it.
11500
a5d2a52b
CY
115012008-12-05 Chong Yidong <cyd@stupidchicken.com>
11502
68c5540b 11503 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11504
7bf1bb21
KH
115052008-12-05 Kenichi Handa <handa@m17n.org>
11506
11507 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11508 second character is a combining character.
11509
2fdc7d00
EZ
115102008-12-05 Eli Zaretskii <eliz@gnu.org>
11511
11512 * process.c (procfs_system_process_attributes): Don't use cmd,
11513 cmdsize, and q without initializing them first.
11514
bf6bfba8
JR
115152008-12-04 Jason Rumney <jasonr@gnu.org>
11516
11517 * w32font.c (w32font_draw): Initialize orig_clip before getting
11518 it, and delete it when finished.
11519
a3b1a468
DN
115202008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11521
11522 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11523 case when running as a daemon before detaching.
11524
8b8be8eb
JB
115252008-12-03 Juanma Barranquero <lekktu@gmail.com>
11526
805f2638 11527 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11528
b1bde622
KH
115292008-12-03 Kenichi Handa <handa@m17n.org>
11530
e500c47d
KH
11531 * font.c (font_at): Set `multibyte' at first.
11532
ca516334
KH
11533 * coding.c (decode_coding_charset): Check type of an element of
11534 vector VALIDS.
7bf1bb21 11535 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11536
4ccfa1c0 11537 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11538 (font_for_char): Likewise.
11539
1e5ecd37
CY
115402008-12-03 Chong Yidong <cyd@stupidchicken.com>
11541
d5b01609 11542 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11543 (font_update_lface): Handle fonts with corrupted size specs,
11544 i.e. non-int and non-float.
d5b01609 11545
11e3a6e4 11546 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11547 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11548 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11549
ab06788b
CY
11550 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11551
1e5ecd37 11552 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11553 underline_minimum_offset for underline position.
1e5ecd37 11554
63c125ab
DN
115552008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11556
11557 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11558
11559 * character.c (c_string_width): Specify the type for LEN.
11560
3a8406e1
KH
115612008-12-03 Kenichi Handa <handa@m17n.org>
11562
4ccfa1c0 11563 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11564 (decode_coding_utf_8): Likewise.
4ccfa1c0 11565 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11566 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11567
651df7d9
CY
115682008-12-02 Chong Yidong <cyd@stupidchicken.com>
11569
11570 * keyboard.c (make_lispy_position): Only use PT if the selected
11571 window is current.
11572
1f625c6c
AS
115732008-12-02 Andreas Schwab <schwab@suse.de>
11574
f7741ce9
AS
11575 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11576
1f625c6c
AS
11577 * doprnt.c (doprnt1): Fix size of charbuf.
11578
92bc2678
CY
115792008-12-02 Chong Yidong <cyd@stupidchicken.com>
11580
11581 * keyboard.c (timer_check): Revert last change.
11582
93b9e8cc
JB
115832008-12-02 Juanma Barranquero <lekktu@gmail.com>
11584
11585 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11586
fd7a37d5
JB
115872008-12-01 Juanma Barranquero <lekktu@gmail.com>
11588
11589 * makefile.w32-in: Update dependencies.
11590 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11591
c115043b
AS
115922008-12-01 Andreas Schwab <schwab@suse.de>
11593
11594 * font.c (register_font_driver): Use xmalloc.
11595 (font_put_frame_data): Likewise.
11596
f5668d2a
CY
115972008-12-01 Chong Yidong <cyd@stupidchicken.com>
11598
860d96be
CY
11599 * xfaces.c (realize_x_face): Make abort condition clearer.
11600
f5668d2a
CY
11601 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11602
379c17e7
CY
116032008-11-30 Chong Yidong <cyd@stupidchicken.com>
11604
11605 * keyboard.c (timer_check): After a timer runs, ensure that the
11606 selected window's buffer is current.
11607
35f36d65
JB
116082008-11-30 Juanma Barranquero <lekktu@gmail.com>
11609
f952c61c
JB
11610 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11611 It was accidentally restored by the Unicode merge.
11612
35f36d65
JB
11613 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11614
b23077df
JB
116152008-11-29 Juanma Barranquero <lekktu@gmail.com>
11616
11617 * w32proc.c: Include "coding.h".
11618 (Fw32_short_file_name): Encode filename passed to Windows API.
11619 (Fw32_long_file_name): Encode filename passed to Windows API and
11620 decode back the result. (Bug#1433)
11621
b8ebe9dd
KH
116222008-11-29 Kenichi Handa <handa@m17n.org>
11623
8cc53f96
KH
11624 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11625 not before accessing it.
11626
b8ebe9dd
KH
11627 * charset.c (Fdefine_charset_internal): After calculating
11628 min_char, max_char, and fastmap, copy the charset structure again.
11629 (encode_char): Fix the previous change.
11630
59bc82c0
SZ
116312008-11-28 Seiji Zenitani <zenitani@mac.com>
11632
11633 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11634
11635 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11636
11637 * nsterm.m (x_set_frame_alpha): New function.
11638
32247e3d
EZ
116392008-11-27 Eli Zaretskii <eliz@gnu.org>
11640
11641 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11642
b003e5ff
JB
116432008-11-27 Juanma Barranquero <lekktu@gmail.com>
11644
11645 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11646 pointer to check_face_name.
11647
708550f5
KH
116482008-11-27 Kenichi Handa <handa@m17n.org>
11649
11650 * category.h (SET_CATEGORY_SET): Call set_category_set.
11651 (set_category_set): Extern it.
11652
11653 * category.c (hash_get_category_set): New function.
11654 (Fmodify_category_entry): Adjusted for the change of
11655 char_table_ref_and_range. Call hash_get_category_set to get a
11656 category set to store in the table.
11657
11658 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11659 Funify_charset.
11660
2ae37cf0 11661 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11662 (DECODE_CHAR): Check if the decoder vector is ready.
11663 (ENCODE_CHAR): Check if the encoder char-table is ready.
11664 (maybe_unify_char): Extern it.
11665
11666 * charset.c (Vchar_unified_charset_table): Delete it.
11667 (inhibit_load_charset_map): New variable.
11668 (temp_charset_work): New variable.
11669 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11670 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11671 New macros.
11672 (load_charset_map): Meaning of control_flag changed. If
11673 inhibit_load_charset_map is nonzero, setup a table in
11674 temp_charset_work.
11675 (load_charset): New argument control_flag.
11676 (map_charset_for_dump): New function.
11677 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11678 map_charset_for_dump.
11679 (Fdefine_charset_internal): If the charset method is MAP, load
11680 mapping tables by calling load_charset.
11681 (Funify_charset): Don't load a mapping table but directly set
11682 Vchar_unify_table.
11683 (maybe_unify_char): New function.
11684 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11685 Handle the case of inhibit_load_charset_map being nonzero.
11686 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11687 Handle the case of inhibit_load_charset_map being nonzero.
11688 (Fclear_charset_maps): Just free temp_charset_work.
11689 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11690 variable.
11691
11692 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11693 change of char_table_ref_and_range.
11694 (char_table_ref_and_range): Change the meaning of argument FROM
11695 and TO. Now the caller must provide initial values for *FROM
11696 and *TO.
11697
11698 * fontset.c (fontset_add): Adjusted for the change of
11699 char_table_ref_and_range.
11700 (fontset_get_font_group): Likewise.
11701 (Ffontset_info): Likewise.
11702
11703 * keymap.c (describe_vector): Adjusted for the change of
11704 char_table_ref_and_range. For char-table, put boundary between
11705 non-ASCII and 8-bit characters.
11706
11707 * print.c (print_object): For bool-vector, delete unnecessary
11708 check of ASCII_BYTE_P.
11709
9196133b
JR
117102008-11-26 Jason Rumney <jasonr@gnu.org>
11711
11712 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11713 leading in font height. (Bug#879)
9196133b 11714
9f688acf
GM
117152008-11-26 Glenn Morris <rgm@gnu.org>
11716
11717 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11718 redefinition with ifdef. (Bug#1383)
11719
90d19aff
AR
117202008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11721
11722 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11723
4ccfa1c0 117242008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11725
11726 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11727 New EmacsView methods.
11728 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11729 Fixes bug #1048,1357,1414.
11730
117312008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11732
11733 Fix bug #1362.
11734 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11735 is not an indexed color.
11736 * nsterm.m (free_indexed_color): Add argument checking.
11737 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11738
e7d5ecb3
CY
117392008-11-24 Chong Yidong <cyd@stupidchicken.com>
11740
11741 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11742 Document confirm-after-completion value for
11743 minibuffer-completion-confirm.
11744
c285743c
JR
117452008-11-24 Jason Rumney <jasonr@gnu.org>
11746
11747 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11748 warning.
11749
b0857706
JR
117502008-11-23 Jason Rumney <jasonr@gnu.org>
11751
11752 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11753 restored before returning.
11754
11755 * w32font.c (check_face_name): New function.
11756 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11757 fonts. (Bug#642)
b0857706 11758
ee50ff07
MR
117592008-11-22 Martin Rudalics <rudalics@gmx.at>
11760
11761 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11762 confirm-nonexistent-file-or-buffer in doc-string.
11763
b8ff72fa
SM
117642008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11765
11766 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11767 Fix copy/paste typo. Add checks.
11768
cee53ed4
KH
117692008-11-21 Kenichi Handa <handa@m17n.org>
11770
11771 * coding.c (detect_coding_iso_2022): Reject invalid composition
11772 sequence.
11773 (DECODE_COMPOSITION_START): If the current source is the last
11774 block, and the current composition doesn't end, regard this
11775 sequence as invalid.
11776 (decode_coding_iso_2022): Handle invalid composition sequence.
11777
f6ef1e65
MR
117782008-11-20 Martin Rudalics <rudalics@gmx.at>
11779
11780 * window.c (coordinates_in_window): Don't return
11781 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11782 line when the window is not the rightmost one. (Bug#1372)
11783
e08b1705
MR
117842008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11785
11786 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11787
ad98e89f
EZ
117882008-11-15 Eli Zaretskii <eliz@gnu.org>
11789
11790 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11791 and bright_bg if noninteractive is non-zero.
11792
fb098a4b
CY
117932008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11794
11795 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11796 x_draw_glyph_string_background.
11797
11798 * w32term.c (x_draw_glyph_string): Likewise.
11799
ce952b6e
CY
118002008-11-15 Chong Yidong <cyd@stupidchicken.com>
11801
11802 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11803 the next glyph string once past the overhang width.
11804
11805 * nsterm.m (ns_draw_glyph_string): Likewise.
11806
11807 * w32term.c (x_draw_glyph_string): Likewise.
11808
26ea7079
CY
118092008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11810
11811 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11812 double file close.
11813
1c33c906
MR
118142008-11-14 Martin Rudalics <rudalics@gmx.at>
11815
11816 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11817 dedicated status of window before attempting to display another
11818 buffer in it.
11819
8fc29035
JB
118202008-11-14 Juanma Barranquero <lekktu@gmail.com>
11821
11822 * msdos.c (Fmsdos_long_file_names):
11823 (syms_of_msdos) <dos-unsupported-char-glyph>:
11824 * dosfns.c (Fint86): Fix typos in docstrings.
11825
55fb4286
EZ
118262008-11-14 Eli Zaretskii <eliz@gnu.org>
11827
11828 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11829
3fda0315
KY
118302008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11831
11832 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11833
7e849c17
CY
118342008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11835
11836 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11837
11838 * frame.h: Negative alpha means "don't touch".
11839
11840 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11841
11842 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11843
b9fd67bd
DN
118442008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11845
11846 * hftctl.c:
11847 * chpdef.h:
11848 * acldef.h: Remove files used only for systems no longer supported.
11849
11850 * Makefile.in: Fix .o alphabetical ordering.
11851 (hftctl.o): Remove dependency, file removed.
11852 (keymap.o, print.o): Depend on charset.h.
11853
d5998e03
KH
118542008-11-10 Kenichi Handa <handa@m17n.org>
11855
2ae37cf0 11856 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11857
be70e183
CY
118582008-11-08 Chong Yidong <cyd@stupidchicken.com>
11859
11860 * dired.c (file_name_completion): If completion_ignore_case is
11861 enabled, ignore case when checking completion-regexp-list.
11862
7cf94eac
EZ
118632008-11-08 Eli Zaretskii <eliz@gnu.org>
11864
11865 * vm-limit.c (get_lim_data): Fix last change.
11866
ee107a89
KH
118672008-11-08 Kenichi Handa <handa@m17n.org>
11868
11869 * character.c (Fget_byte): New function.
11870 (syms_of_character): Defsubr Fget_byte.
11871
5fd15622
CY
118722008-11-07 Chong Yidong <cyd@stupidchicken.com>
11873
11874 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11875 cursor position is valid after scrolling.
11876
13d62fad
JB
118772008-11-06 Juanma Barranquero <lekktu@gmail.com>
11878
11879 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11880
a1dd2936
GM
118812008-11-06 Glenn Morris <rgm@gnu.org>
11882
11883 * xterm.c (handle_one_xevent): Don't let popup menus cause
11884 mouse-autoselect-window related window switching. (Bug#1261)
11885
860cd236
CY
118862008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11887
11888 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11889
653a3150
AS
118902008-11-04 Andreas Schwab <schwab@suse.de>
11891
11892 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11893
870f5cac
CY
118942008-11-03 Chong Yidong <cyd@stupidchicken.com>
11895
11896 * xfns.c (Fx_wm_set_size_hint): New function.
11897
1e02f3cb
MR
118982008-11-03 Martin Rudalics <rudalics@gmx.at>
11899
11900 * textprop.c (Fprevious_single_char_property_change): Return 0
11901 when there's no change in a string. (Bug#1301)
11902
e630dfc6
MR
119032008-11-02 Martin Rudalics <rudalics@gmx.at>
11904
11905 * frame.c (do_switch_frame): New argument NORECORD passed to
11906 Fselect_window.
11907 (Fselect_frame): New argument NORECORD passed to
11908 do_switch_frame.
11909 (Fset_frame_selected_window): New argument NORECORD passed to
11910 Fselect_frame.
11911 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11912 in call of do_switch_frame.
11913 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11914 Handle NORECORD argument in call of Fselect_frame.
11915 * lisp.h (do_switch_frame, Fselect_frame)
11916 (Fset_frame_selected_window): Adjust declarations.
11917 * window.c (select_frame_norecord): New function.
11918 (run_window_configuration_change_hook): Use it and call
11919 Fselect_frame with NORECORD set.
11920 (Fselect_window): Pass NORECORD to Fselect_frame.
11921 (Fset_window_configuration): Handle NORECORD argument in call of
11922 do_switch_frame.
11923 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11924 Fset_frame_selected_window.
11925 * keyboard.c (command_loop_1): Handle NORECORD in call of
11926 Fselect_frame (currently ifdefd).
11927
9020b223
GM
119282008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11929
11930 * emacs.c (USAGE2): Untabify.
11931
793ffee8
SM
119322008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11933
11934 * composite.c (fill_gstring_header): Fix copy/paste typo.
11935
ab6d1131
MR
119362008-10-31 Martin Rudalics <rudalics@gmx.at>
11937
11938 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11939 (Fother_window): Rename argument and rewrite doc-string.
11940 (select_window_norecord): Fix return value. (Bug#1276)
11941
601a9cf1
JB
119422008-10-30 Juanma Barranquero <lekktu@gmail.com>
11943
11944 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11945 new frames overriding foreground for tooltips. Based on similar patch
11946 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11947
813b0652
CY
119482008-10-29 Chong Yidong <cyd@stupidchicken.com>
11949
11950 * emacs.c (Fdaemon_initialized): Initialize nfd.
11951
4414f58f
MR
119522008-10-29 Martin Rudalics <rudalics@gmx.at>
11953
11954 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11955 (Fwindow_text_height): Clarify doc-strings.
11956 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11957 doc-string of window-scroll-functions.
11958
ecdcaa09
RS
119592008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11960
11961 * category.c (syms_of_category): Fix typo in docstring.
11962
23fe745a
JB
119632008-10-28 Juanma Barranquero <lekktu@gmail.com>
11964
11965 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11966 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11967 Fix typos in docstrings.
11968
ff808935
DN
119692008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11970
11971 * emacs.c (daemon_pipe): Make non-static.
11972 (IS_DAEMON): Move definition ...
11973 * lisp.h (IS_DAEMON): ... here.
11974 (daemon_pipe): Declare.
11975 (is_daemon): Remove.
11976 * dispnew.c (init_display): Use IS_DAEMON.
11977
fc012771
SM
119782008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11979
11980 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11981 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11982
11983 * emacs.c (is_daemon): Remove.
11984 (main): Don't set is_daemon.
11985 (IS_DAEMON): New macro.
11986 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11987 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11988 parent exits.
11989 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11990
d8bdbe6f
CY
119912008-10-27 Chong Yidong <cyd@stupidchicken.com>
11992
d1a072bf
CY
11993 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11994 over-sized glyph, draw it with the default glyph width.
11995
e2e325aa
CY
11996 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11997 glyph, draw it with the default glyph width.
11998
11999 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12000 glyph, draw it with the default glyph width.
12001
d8bdbe6f
CY
12002 * xdisp.c (try_scrolling): When computing the distance from the
12003 scroll margin to PT, try moving some distance past the window
12004 bottom before giving up.
12005
7bfac547
MR
120062008-10-27 Martin Rudalics <rudalics@gmx.at>
12007
12008 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12009 (Fset_window_buffer): Explain in doc-string that a window can be
12010 "strongly" dedicated to its buffer.
12011
4ff029f6
DN
120122008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12013
12014 * emacs.c (daemon_name): New variable.
12015 (main): Deal with --daemon=SERVER_NAME.
12016 (Fdaemonp): Return a name if one was passed to --daemon.
12017
5790ef40
DN
120182008-10-26 Romain Francoise <romain@orebokech.com>
12019
f9bd0df9 12020 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
12021 (main): Create a pipe before forking, make the parent exit only after
12022 the child has closed its end of the pipe. Move closing the
12023 descriptors ...
12024 (Fdaemon_initialized): ... here. New function.
12025
f5385255
SM
120262008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12027
4d632321
SM
12028 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12029 the previous unoptimized table.
12030
f5385255
SM
12031 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12032 the distinction between non-nil and non-t value of `dedicated'.
12033
6c56a0f3
CY
120342008-10-25 Chong Yidong <cyd@stupidchicken.com>
12035
12036 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 12037 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 12038
fec89261
MR
120392008-10-25 Martin Rudalics <rudalics@gmx.at>
12040
12041 * window.c (Fget_buffer_window, Fdelete_windows_on)
12042 (Freplace_buffer_in_windows): Make buffer argument optional and
12043 rename to buffer_or_name.
12044
34fcddd0
CY
120452008-10-24 Chong Yidong <cyd@stupidchicken.com>
12046
f5385255
SM
12047 * xdisp.c (handle_single_display_spec, handle_display_prop):
12048 Undo 2005-05-16 change.
34fcddd0
CY
12049 (handle_stop): Pop iterator if it's loaded with an empty string.
12050 (get_overlay_strings_1): Don't save iterator if it's loaded with
12051 an empty string (bug#1201).
12052
064766f2
KH
120532008-10-24 Kenichi Handa <handa@m17n.org>
12054
12055 * ftfont.c (ftfont_otf_features): Fix previous change.
12056 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12057 calling ftfont_otf_features.
12058
f9bd0df9 120592008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
12060
12061 * font.c (font_match_p): Fix for the case that a vector of
12062 characters is in script-representative-chars.
12063
1dae9197
MA
120642008-10-24 Michael Albinus <michael.albinus@gmx.de>
12065
12066 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 12067 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
12068 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12069 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12070 macro. (Bug#1186)
1dae9197 12071
f9bd0df9 120722008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12073
12074 * s/sol2-10.h: New file.
12075
878a4584
JB
120762008-10-23 Juanma Barranquero <lekktu@gmail.com>
12077
12078 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12079 poor beast has survived 9+ years and the jump from xterm.c!).
12080
cd265ca6
MR
120812008-10-23 Martin Rudalics <rudalics@gmx.at>
12082
12083 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12084 Reword doc-string.
f5385255 12085 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12086
472a4dc9
JB
120872008-10-23 Juanma Barranquero <lekktu@gmail.com>
12088
12089 * character.c (syms_of_character) <script-representative-chars>:
12090 <unicode-category-table>: Doc fixes.
12091
159bd5a2
NF
120922008-10-23 Noah Friedman <friedman@splode.com>
12093
12094 * coding.c (make_conversion_work_buffer): Check that
12095 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12096 Fget_buffer_create.
12097
49f9c344
KH
120982008-10-23 Kenichi Handa <handa@m17n.org>
12099
12100 * font.c (font_add_log): Check the values of extra properties.
12101
12bb3111
MR
121022008-10-22 Martin Rudalics <rudalics@gmx.at>
12103
12104 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12105 Reword doc-string.
12106 (Fset_window_parameter): Use NILP.
12107 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12108 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12109
bbeb4e99
JB
121102008-10-22 Juanma Barranquero <lekktu@gmail.com>
12111
12112 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12113
121142008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12115
12116 * nsfns.m (ns_appkit_version): New function.
12117 (x-server-version): Use it.
12118 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12119 (x-server-vendor): Don't check_ns().
12120
12121 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12122
a9b555d3
JB
121232008-10-22 Juanma Barranquero <lekktu@gmail.com>
12124
12125 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12126 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12127
4626499f
KH
121282008-10-22 Kenichi Handa <handa@m17n.org>
12129
e3681952
KH
12130 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12131 scripts.
12132
4626499f
KH
12133 * category.c (word_boundary_p): Check scripts instead of charset.
12134 Handle nil value in word-separating-categories and
12135 word-combining-categories.
12136 (syms_of_category): Fix docstrings of word-separating-categories
12137 and word-combining-categories.
12138
1560f91a
EZ
121392008-10-21 Eli Zaretskii <eliz@gnu.org>
12140
12141 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12142 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12143
f4668441
MR
121442008-10-21 Martin Rudalics <rudalics@gmx.at>
12145
12146 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12147 Rename arg "buffer" to "buffer_or_name".
12148 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12149 it optional.
12150 (no_switch_window): Remove since the return value is not used.
a9b555d3 12151 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12152 Consider window as dedicated when Fwindow_dedicated_p returns a
12153 non-nil value.
12154 * lisp.h: Remove prototype for no_switch_window.
12155
fd75ddb2
JD
121562008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12157
12158 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12159 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12160
07295713
KH
121612008-10-21 Kenichi Handa <handa@m17n.org>
12162
12163 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12164 check Vlatin_extra_code_table.
12165
712adc82
EZ
121662008-10-20 Eli Zaretskii <eliz@gnu.org>
12167
12168 * fileio.c (Fset_file_modes): Doc fix.
12169
f549eb0b
MA
121702008-10-19 Michael Albinus <michael.albinus@gmx.de>
12171
12172 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12173 in arrays.
12174
aac0c6e3
MR
121752008-10-19 Martin Rudalics <rudalics@gmx.at>
12176
12177 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12178 Mention kill-buffer in doc-string.
12179 (Fset_window_buffer): Reinsert tem check removed in last commit.
12180 (Fenlarge_window, Fshrink_window): Have argument names and
12181 doc-string follow Elisp manual more closely.
12182
121832008-10-18 Eli Zaretskii <eliz@gnu.org>
12184
12185 * fileio.c (Fset_file_modes): Doc fix.
12186
121872008-10-18 Martin Rudalics <rudalics@gmx.at>
12188
12189 * window.c (Fwindow_width, Fset_window_start)
12190 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12191 (Fdelete_windows_on, Freplace_buffer_in_windows):
12192 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12193 (Fwindow_dedicated_p): Make window argument optional.
12194 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12195 (Fset_window_buffer): Respect any non-nil dedicated value for
12196 window. Rename "buffer" argument to "buffer_or_name".
12197
121982008-10-18 Ulrich Mueller <ulm@gentoo.org>
12199
12200 * m/sh3.h: New file, machine description for SuperH.
12201
122022008-10-17 Martin Rudalics <rudalics@gmx.at>
12203
12204 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12205
122062008-10-17 Kenichi Handa <handa@m17n.org>
12207
12208 * ftfont.c (ftfont_otf_features): Fix indexing
12209 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12210
122112008-10-16 Magnus Henoch <mange@freemail.hu>
12212
12213 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12214 (Fdbus_call_method_asynchronously): Ditto.
12215 This change makes C-h f display the argument list.
12216
122172008-10-16 Chong Yidong <cyd@stupidchicken.com>
12218
12219 * fileio.c (Fexpand_file_name): Doc fix.
12220
12221 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12222 of :foreground and :background equivalent to unspecified (20.x
12223 compatibility).
12224
122252008-10-15 Eli Zaretskii <eliz@gnu.org>
12226
12227 * buffer.c (syms_of_buffer): Doc fix.
12228
122292008-10-14 Kenichi Handa <handa@m17n.org>
12230
12231 * font.c (font_clear_prop): When clearing font width, clear the
12232 average width field too.
12233
122342008-10-12 Andreas Schwab <schwab@suse.de>
12235
12236 * ftfont.c (ftfont_shape_by_flt): Make static.
12237 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12238
12239 * font.c: Don't include <m17n-flt.h>.
12240
122412008-10-10 Eli Zaretskii <eliz@gnu.org>
12242
12243 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12244
122452008-10-09 Eli Zaretskii <eliz@gnu.org>
12246
12247 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12248 away code.
12249
122502008-10-09 Chong Yidong <cyd@stupidchicken.com>
12251
12252 * dispnew.c (update_text_area): Avoid looping due to large glyph
12253 overhangs (bug#1070).
12254
122552008-10-09 Kenichi Handa <handa@m17n.org>
12256
12257 * fontset.c (face_for_char): If face->fontset is negative, just
12258 return ascii_face.
12259
f5385255
SM
12260 * font.c (font_delete_unmatched): Fix previous change.
12261 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12262
122632008-10-09 Martin Rudalics <rudalics@gmx.at>
12264
12265 * frame.c (Fraise_frame): On text-only terminals select frame in
12266 order to make it visible. (Bug#1061)
12267
122682008-10-08 Chong Yidong <cyd@stupidchicken.com>
12269
12270 * fontset.c (fontset_find_font): Check frame validity.
12271
122722008-10-07 Chong Yidong <cyd@stupidchicken.com>
12273
a9b555d3 12274 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12275 (xg_display_close): Allow Emacs to close all displays (bug#985).
12276
122772008-10-06 Andreas Schwab <schwab@suse.de>
12278
f5385255 12279 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12280
122812008-10-06 Chong Yidong <cyd@stupidchicken.com>
12282
f5385255 12283 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12284
a9b555d3 12285 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12286
12287 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12288 during initialization.
12289
122902008-10-04 Eli Zaretskii <eliz@gnu.org>
12291
12292 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12293 whole thing on MSDOS frames as well as on a TTY.
12294
12295 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12296 well as for TTY.
12297 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12298 well as on a TTY.
12299
12300 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12301 as well as for TTY.
12302
12303 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12304
12305 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12306 MSDOS frames as well.
12307
123082008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12309
12310 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12311 correct arguments.
b71ac3dd 12312 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12313
123142008-10-03 Glenn Morris <rgm@gnu.org>
12315
12316 * emacs.c (USAGE1): Add --daemon.
12317
123182008-10-02 Eli Zaretskii <eliz@gnu.org>
12319
12320 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12321 100, so it's in percents as advertised.
12322
123232008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12324
12325 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12326 (ns_output.current_cursor, ns_output.desired_cursor)
12327 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12328 (FRAME_NEW_CURSOR_COLOR): Remove.
12329
12330 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12331 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12332 enumeration (HOLLOW_BOX_CURSOR, etc.).
12333
12334 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12335 (draw_window_cursor): Simplify code.
f5385255
SM
12336 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12337 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12338 updates manually.
a9b555d3
JB
12339 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12340 Use core Emacs cursor types.
aac0c6e3 12341
b8ff72fa 12342 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12343
123442008-10-02 Martin Rudalics <rudalics@gmx.at>
12345
12346 * process.c (Faccept_process_output): Fix doc-string.
12347
123482008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12349
12350 * gmalloc.c (__sbrk): Also define for uClibc.
12351
12352 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12353 for uClibc.
12354
123552008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12356
12357 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12358 styles.
12359 (nsfont_open): Reenable the cache.
12360
123612008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12362
12363 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12364 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12365
123662008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12367
12368 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12369 a suspended terminal.
12370
123712008-09-30 Michael Albinus <michael.albinus@gmx.de>
12372
12373 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12374
123752008-09-30 Eli Zaretskii <eliz@gnu.org>
12376
12377 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12378
123792008-09-30 Chong Yidong <cyd@stupidchicken.com>
12380
12381 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12382 in a continued line coincides with a line beginning.
12383
123842008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12385
12386 * nsfont.m (nsfont_trait_distance): Fix bug.
12387 (nsfont_list): Return a list rather than a vector (syncs with Handa
12388 changes of 2008-05-14).
12389 (nsfont_open): Improve logging.
12390
123912008-09-29 Andreas Schwab <schwab@suse.de>
12392
12393 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12394
123952008-09-28 Martin Rudalics <rudalics@gmx.at>
12396
12397 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12398 name as char-resolve-modifiers.
12399 Reported by: Markus Triska <markus.triska@gmx.at>
12400
124012008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12402
12403 * dispnew.c (init_display): Return earlier when running as a daemon.
12404
124052008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12406
12407 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12408
124092008-09-27 Eli Zaretskii <eliz@gnu.org>
12410
12411 * composite.c (Fcomposition_get_gstring)
12412 (Fcompose_region_internal, Fcompose_string_internal)
12413 (Ffind_composition_internal): Doc fix.
12414 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12415 (syms_of_composite) <auto-composition-function>: Doc fix.
12416 (syms_of_composite) <composition-function-table>: Doc fix.
12417
124182008-09-25 Chong Yidong <cyd@stupidchicken.com>
12419
12420 * search.c (wordify): New argument for lax word-ends.
12421 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12422
124232008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12424
12425 * lisp.h (is_daemon): Declare.
12426 * dispnew.c (init_display): Do not try to initialize the terminal
12427 when running as a daemon.
12428
124292008-09-22 Chong Yidong <cyd@stupidchicken.com>
12430
12431 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12432 x_display_pixel_height.
12433
124342008-09-22 Martin Rudalics <rudalics@gmx.at>
12435
12436 * undo.c (record_point): Don't call Fundo_boundary for first
12437 change. (Bug#731)
12438
124392008-09-22 Juanma Barranquero <lekktu@gmail.com>
12440
12441 * emacs.c (Fdaemonp): Doc fix.
12442
124432008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12444
12445 * emacs.c (main): Place #ifdef in the proper place.
12446
124472008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12448
12449 * emacs.c (standard_args): Add --daemon.
12450 (main): Disconnect from the terminal when --daemon is passed.
12451 (is_daemon): New variable.
12452 (Fdaemonp): New function.
12453 (syms_of_emacs): Defsubr it.
12454
124552008-09-20 Chong Yidong <cyd@stupidchicken.com>
12456
12457 * xdisp.c (get_next_display_element): Handle string display
12458 correctly when checking for the end of a box run.
12459
124602008-09-20 Glenn Morris <rgm@gnu.org>
12461
12462 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12463 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12464 (Frename_file): Avoid copying to trash if a rename involves
12465 a delete. (Bug#964).
12466
124672008-09-20 Eli Zaretskii <eliz@gnu.org>
12468
12469 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12470 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12471 frames as well as termcap frames.
12472 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12473 get_named_tty.
12474
124752008-09-19 Eli Zaretskii <eliz@gnu.org>
12476
12477 * process.c (procfs_system_process_attributes): Fix cmdline in
12478 case /proc/PID/cmdline is empty.
12479
12480 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12481 x_display_pixel_height.
12482
124832008-09-19 Juanma Barranquero <lekktu@gmail.com>
12484
12485 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12486
12487 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12488 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12489
124902008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12491
12492 * dispextern.h (struct it): Move line_wrap away from the middle of
12493 bitfields. Move voffset in struct iterator_stack_entry after the
12494 bitfields. Move tab_width near after another short.
12495
124962008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12497
12498 * frame.h (struct frame): Move alpha from the middle of bitfields.
12499
12500 * window.h (struct window): Move frozen_window_start_p after the
12501 rest of the bitfields to reduce padding.
12502
125032008-09-18 Chong Yidong <cyd@stupidchicken.com>
12504
12505 * xterm.h (x_display_info): Remove `height' and `width' members.
12506
12507 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12508
12509 * w32term.h (w32_display_info): Remove `height', `width',
12510 `height_in', and `width_in' members.
12511
b8ff72fa
SM
12512 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12513 New functions.
aac0c6e3
MR
12514 (x_calc_absolute_position): Use them.
12515 (x_term_init): Omit removed `height' and `width' members.
12516
b8ff72fa
SM
12517 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12518 New functions.
aac0c6e3
MR
12519 (w32_read_socket, x_calc_absolute_position): Use them.
12520 (w32_initialize_display_info, w32_term_init): Omit removed members
12521 of w32_display_info.
12522
b8ff72fa
SM
12523 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12524 New functions.
12525 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12526
b8ff72fa
SM
12527 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12528 New functions.
aac0c6e3
MR
12529 (x_calc_absolute_position): Use them.
12530 (x_term_init): Omit removed `height' and `width' members.
12531
12532 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12533 (compute_tip_xy):
12534 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12535 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12536 x_display_pixel_width.
12537
125382008-09-18 Kenichi Handa <handa@m17n.org>
12539
12540 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12541 (composition_compute_stop_pos): Fix handling of static composition.
12542 (Fcomposition_get_gstring): Check FROM and TO at first.
12543
125442008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12545
46e722a9 12546 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12547 mixup (YAILOM).
12548
125492008-09-17 Chong Yidong <cyd@stupidchicken.com>
12550
12551 * indent.c (Fvertical_motion): Use position reported by iterator
12552 instead of PT for determining screen motion (bug#943).
12553
125542008-09-17 Romain Francoise <romain@orebokech.com>
12555
12556 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12557
125582008-09-17 Kenichi Handa <handa@m17n.org>
12559
12560 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12561
12562 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12563 if necessary.
12564
125652008-09-16 Kenichi Handa <handa@m17n.org>
12566
12567 * coding.c (make_conversion_work_buffer): Avoid calling
12568 Fget_buffer_create if it is not necessary.
12569
125702008-09-15 Martin Rudalics <rudalics@gmx.at>
12571
12572 * window.c (Fselect_window): Don't update window_select_count and
12573 use_time when norecord is not nil.
12574
125752008-09-14 Kenichi Handa <handa@m17n.org>
12576
12577 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12578 specpdl_ptr.
12579
125802008-09-12 Kenichi Handa <handa@m17n.org>
12581
12582 * indent.c (scan_for_column): Don't handle automatic composition
12583 if the current buffer is not associated with a window.
12584
12585 * composite.c (composition_reseat_it): If the current buffer is
12586 not associated with a window, ignore the automatic composition.
12587 (find_automatic_composition): Likewise.
12588
125892008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12590
12591 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12592 (Fgpm_mouse_stop): Use it.
12593 * termhooks.h (close_gpm): Declare.
12594 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12595 connection if Gpm_GetEvent fails.
12596
12597 * window.c (set_window_buffer): Always preserve current-buffer.
12598
125992008-09-12 Glenn Morris <rgm@gnu.org>
12600
12601 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12602
126032008-09-11 Glenn Morris <rgm@gnu.org>
12604
12605 * charset.c (charset-map-path): Doc fix.
12606
126072008-09-10 Kenichi Handa <handa@m17n.org>
12608
12609 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12610
12611 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12612 compose a grapheme cluster with the preceding base glyph.
12613
12614 * composite.c (composition_compute_stop_pos): Fix previous change.
12615 Reset cmp_it->id to -1 at first.
12616
126172008-09-10 Glenn Morris <rgm@gnu.org>
12618
12619 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12620
126212008-09-09 Chong Yidong <cyd@stupidchicken.com>
12622
12623 * keyboard.c (read_key_sequence): Reapply translation maps when
12624 switching keyboards.
12625
126262008-09-09 Kenichi Handa <handa@m17n.org>
12627
12628 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12629 characters.
12630
12631 * composite.c (FORWARD_CHAR): Fix calculation
12632 of (POSITION).pos_byte.
12633 (composition_compute_stop_pos): Limit the search of composition to
12634 at most 500 characters ahead. If we reach the limit or find a
12635 newline, set cmp_it->ch to -2 and return 0.
12636 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12637
126382008-09-08 Kenichi Handa <handa@m17n.org>
12639
12640 * indent.c (Fvertical_motion): Be sure to set
12641 it_overshoot_expected if it.cmp_it.id is non-negative.
12642
126432008-09-07 Andreas Schwab <schwab@suse.de>
12644
12645 * callproc.c (Fcall_process): Don't hold references to string data
12646 across garbage collection. Move initialisation of new_argv down
12647 to avoid compiler bug.
12648
126492008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12650
12651 * process.c (Fsystem_process_attributes): Doc fix.
12652
126532008-09-07 Chong Yidong <cyd@stupidchicken.com>
12654
12655 * callproc.c (Fcall_process): Canonicalize current directory name.
12656
12657 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12658 iterator advances to the next line if the current line ends in a
12659 continued tab.
12660
126612008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12662
12663 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12664 member to point to cmp_from.
12665
12666 * xdisp.c: Doc fix for references to gidx data member.
12667
126682008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12669
12670 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12671
126722008-09-07 Kenichi Handa <handa@m17n.org>
12673
12674 * composite.c (FORWARD_CHAR): Check STOP after
12675 incrementing (POSITION).pos.
12676
126772008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12678
12679 * process.c (Fsystem_process_attributes): Doc fix.
12680
126812008-09-06 Chong Yidong <cyd@stupidchicken.com>
12682
12683 * keyboard.c (Ftop_level): Doc fix.
12684
126852008-09-06 Eli Zaretskii <eliz@gnu.org>
12686
12687 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12688 minibuffer, don't let lower part of menu invade the echo area.
12689
12690 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12691 "char *q" to access menu text and advance through it. Revert the
12692 change that displayed ">" instead of ASCII character 0x10.
12693
126942008-09-05 Eli Zaretskii <eliz@gnu.org>
12695
12696 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12697 toggle boxes and radio buttons on MS-DOS as well.
12698
126992008-09-05 Kenichi Handa <handa@m17n.org>
12700
12701 * composite.c (autocmp_chars): Check lookback count.
12702 (composition_compute_stop_pos): Set cmp_it->lookback.
12703 (composition_reseat_it): Check lookback count.
12704 (struct position_record): New struct.
12705 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12706 (find_automatic_composition): New function.
12707 (composition_adjust_point): Use find_automatic_composition.
12708
12709 * dispextern.h (struct composition_it): New member lookback.
12710
127112008-09-02 Chong Yidong <cyd@stupidchicken.com>
12712
12713 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12714 if moving by a single line.
12715
127162008-09-02 Andreas Schwab <schwab@suse.de>
12717
12718 * xterm.c (x_delete_display): Fix merge error.
12719
12720 * fileio.c (Fexpand_file_name): Remove unused variables.
12721
127222008-09-02 Eli Zaretskii <eliz@gnu.org>
12723
12724 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12725 storage on all platforms, not just on DOS_NT.
12726
127272008-09-02 Jason Rumney <jasonr@gnu.org>
12728
b8ff72fa
SM
12729 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12730 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12731
127322008-09-01 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * xfaces.c (Finternal_set_alternative_font_family_alist)
12735 (Finternal_set_alternative_font_registry_alist): Properly copy
12736 entire alist structure.
12737
127382008-09-01 Kenichi Handa <handa@m17n.org>
12739
d66c0241 12740 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12741 representative chars of the script is a vector.
d66c0241
JB
12742 (ftfont_list): Handle the case where the representative chars of
12743 the script is a vector.
aac0c6e3
MR
12744
12745 * character.c (syms_of_character): Docstring of
12746 script-representative-chars fixed.
12747
127482008-08-31 Eli Zaretskii <eliz@gnu.org>
12749
12750 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12751 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12752 the menu. Allocate larger buffer for `text', to account for
12753 possible ^C characters.
12754
127552008-08-31 Martin Rudalics <rudalics@gmx.at>
12756
12757 * xdisp.c (prepare_menu_bars): Don't call
12758 Vwindow_size_change_functions with arg Qt.
12759
127602008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12761
12762 * font.h (font_range):
12763 * fileio.c (report_file_error):
46e722a9
SM
12764 * composite.c (composition_update_it): Yet another int/Lisp_Object
12765 mixup (YAILOM).
aac0c6e3
MR
12766
127672008-08-30 Glenn Morris <rgm@gnu.org>
12768
12769 * data.c (Fmake_variable_frame_local): Doc fix.
12770
12771 * frame.c (Fmodify_frame_parameters): Doc fix.
12772
127732008-08-30 Eli Zaretskii <eliz@gnu.org>
12774
12775 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12776 needed by GetTokenInformation.
12777 (w32_system_process_attributes): Check return values of all system
12778 APIs.
12779
12780 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12781 only when the state changes.
12782 (IT_update_begin, IT_update_end): Add termscript trace.
12783
12784 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12785 clipboard is unavailable. Set dst to NULL if it doesn't point to
12786 malloc'ed data.
12787 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12788 passing random values to xfree.
12789
12790 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12791 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12792
127932008-08-29 Jason Rumney <jasonr@gnu.org>
12794
12795 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12796
127972008-08-29 Eli Zaretskii <eliz@gnu.org>
12798
12799 * composite.c (fill_gstring_body): Avoid compiler warnings.
12800
12801 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12802 LGLYPH_SET_CODE to avoid compiler warnings.
12803
2ae37cf0 12804 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12805
12806 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12807
12808 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12809 LGLYPH_SET_CODE.
12810
128112008-08-29 Kenichi Handa <handa@m17n.org>
12812
12813 * fileio.c (report_file_error): Don't downcase the first character
12814 of errstring if it is still unibyte.
12815
128162008-08-29 Kenichi Handa <handa@m17n.org>
12817
12818 These changes are to re-implement the automatic composition so
12819 that it doesn't use text properties.
12820
12821 * Makefile.in (ftfont.o): Depend on composite.h.
12822 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12823
12824 * character.h (Vunicode_category_table): Extern it.
12825
12826 * character.c (Vunicode_category_table): New variable.
12827 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12828
12829 * chartab.c (optimize_sub_char_table): Perform more greedy
12830 optimization.
12831
b8ff72fa
SM
12832 * composite.h (enum composition_method):
12833 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12834 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12835 (Vcomposition_function_table): Extern it.
12836 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12837 (composition_gstring_put_cache, composition_gstring_from_id)
12838 (composition_gstring_p, composition_gstring_width)
12839 (composition_compute_stop_pos, composition_reseat_it)
12840 (composition_update_it, composition_adjust_point): Extern them.
12841 (Fcomposition_get_gstring): EXFUN it.
12842
d66c0241 12843 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12844 (Vcomposition_function_table)
12845 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12846 (gstring_hash_table, gstring_work, gstring_work_headers):
12847 New variables.
aac0c6e3
MR
12848 (gstring_lookup_cache, composition_gstring_put_cache)
12849 (composition_gstring_from_id, composition_gstring_p)
12850 (composition_gstring_width, fill_gstring_header)
12851 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12852 (composition_reseat_it, composition_update_it)
b8ff72fa 12853 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12854 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12855 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12856 Defsubr composition_get_gstring.
aac0c6e3
MR
12857
12858 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12859 cmp_id.
12860 (struct glyph_string): Delete the member gidx. New members
12861 cmp_id, cmp_from, and cmp_to.
12862 (enum it_method): Delete GET_FROM_COMPOSITION.
12863 (struct composition_it): New struct.
12864 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12865 Delete c, len, cmp_id, cmp_len in u.comp.
12866
12867 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12868 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12869 (enum lglyph_indices): Likewise.
b8ff72fa 12870 (font_range): Adjust extern.
aac0c6e3
MR
12871 (font_fill_lglyph_metrics): Extern it.
12872
12873 * font.c (QCf): New variable.
12874 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12875 (font_prepare_composition): Delete this function.
12876 (font_range): Type and arguments changed.
12877 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12878 (font_fill_lglyph_metrics): New function.
b8ff72fa 12879 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12880 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12881 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12882 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12883
12884 * fontset.h (font_for_char): Extern it.
12885
12886 * fontset.c (font_for_char): New function.
12887
12888 * ftfont.c: Include composite.h.
12889 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12890 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12891
12892 * indent.c: Include composite.h and dispextern.h.
12893 (check_composition): Delete this function.
12894 (scan_for_column): Handle composition by
12895 composition_compute_stop_pos, composition_reseat_it, and
12896 composition_update_it.
12897 (compute_motion): Likewise.
12898 (Fvertical_motion): Fix checking of composition.
12899
12900 * keyboard.c (adjust_point_for_property): Check composition by
12901 composition_adjust_point.
12902
b8ff72fa 12903 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12904 struct glyph_string.
12905
b8ff72fa
SM
12906 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12907 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12908 struct glyph.
12909 (produce_composite_glyph): Likewise.
12910
b8ff72fa
SM
12911 * w32term.c (x_draw_composite_glyph_string_foreground):
12912 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12913 (x_draw_glyph_string): Likewise.
12914
12915 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12916 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12917
12918 * xdisp.c: Include font.h.
12919 (it_props): Delete the entry for Qauto_composed.
12920 (init_iterator): Initialize it->cmp_it.id to -1.
12921 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12922 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12923 (handle_auto_composed_prop): Delete it.
12924 (handle_composition_prop): Handle only static composition.
12925 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12926 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12927 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12928 (pop_it): Likewise.
12929 (get_next_element): Delete next_element_from_composition.
12930 (CHAR_COMPOSED_P): New macro.
12931 (get_next_display_element): For automatic composition, get a face
12932 from the font in the glyph-string.
12933 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12934 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12935 (next_element_from_string): Check if the character at the current
12936 position is composed by CHAR_COMPOSED_P.
12937 (next_element_from_buffer): Likewise.
d66c0241
JB
12938 (next_element_from_composition): Adjust for the change of struct it.
12939 Update it->cmp_it.
b8ff72fa
SM
12940 (dump_glyph): Adjust for the change of struct glyph.
12941 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12942 it and struct glyph. Don't handle automatic composition here.
12943 (fill_gstring_glyph_string): New function.
12944 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12945 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12946 (BUILD_GSTRING_GLYPH_STRING): New macro.
12947 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12948 automatic composition.
b8ff72fa 12949 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12950 struct glyph.
b8ff72fa 12951 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12952
b8ff72fa 12953 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12954 the change of struct glyph_string.
12955 (x_draw_glyph_string): Likewise.
12956
129572008-08-29 Glenn Morris <rgm@gnu.org>
12958
12959 * buffer.c (word-wrap): Doc fix.
12960 * xdisp.c (truncate-partial-width-windows): Doc fix.
12961 Increase default to 50.
12962
129632008-08-29 Chong Yidong <cyd@stupidchicken.com>
12964
12965 * xdisp.c (update_tool_bar_unwind): New function.
12966 (update_tool_bar): Temporarily set selected frame before building
12967 tool-bar items.
12968
129692008-08-28 Michael Albinus <michael.albinus@gmx.de>
12970
12971 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12972 snprintf, respectively.
12973 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12974
129752008-08-28 Chong Yidong <cyd@stupidchicken.com>
12976
12977 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12978 LDFLAGS to GNUstep CC invocation.
12979
129802008-08-27 Chong Yidong <cyd@stupidchicken.com>
12981
12982 * indent.c (Fvertical_motion): Revert last change. Handle the
12983 general case where we are moving forward, and PT spans multiple
12984 screen lines.
12985
12986 * eval.c (find_handler_clause): Temporarily increase
12987 max-lisp-eval-depth while printing the backtrace buffer, to
12988 guarantee that help-mode code can run.
12989
129902008-08-27 Eli Zaretskii <eliz@gnu.org>
12991
12992 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12993 colors under -rv.
12994 (IT_set_frame_parameters): Don't swap foreground and background
12995 colors if `(reverse . t)' is present in the frame properties.
12996 (internal_terminal_init): Call init_frame_faces only for the
12997 initial frame.
12998
129992008-08-27 Andreas Schwab <schwab@suse.de>
13000
13001 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13002
130032008-08-27 Andreas Schwab <schwab@suse.de>
13004
13005 * search.c (search_buffer): Set char_base to zero only at the end.
13006
130072008-08-27 Kenichi Handa <handa@m17n.org>
13008
b8ff72fa 13009 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
13010
130112008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13012
13013 * xterm.c (x_term_init): Temporarily hide the partially
13014 initialized terminal while calling vendor-specific-keysyms.
13015
130162008-08-26 Eli Zaretskii <eliz@gnu.org>
13017
13018 * msdos.c (internal_terminal_init): Most initializations done only
13019 once, especially initial_screen_colors[] and termscript open.
13020
130212008-08-26 Chong Yidong <cyd@stupidchicken.com>
13022
13023 * eval.c (Fcondition_case): Doc fix.
13024
13025 * widgetprv.h (EmacsFramePart): Change font member to the new font
13026 struct.
13027
13028 * widget.c: Include character.h and font.h for XSETFONT.
13029 (setup_frame_gcs): Compute X font id from font struct, just once.
13030
130312008-08-26 Eli Zaretskii <eliz@gnu.org>
13032
13033 * term.c (get_named_tty): Fix last change.
13034
130352008-08-26 Chong Yidong <cyd@stupidchicken.com>
13036
13037 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 13038 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
13039
130402008-08-25 Eli Zaretskii <eliz@gnu.org>
13041
13042 * frame.c (do_switch_frame): Mark previously displayed frame as
13043 obscured for FRAME_MSDOS_P frames as well.
13044
130452008-08-24 Eli Zaretskii <eliz@gnu.org>
13046
13047 * frame.c (make_terminal_frame): Initialize f->terminal,
13048 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13049 Set the top frame to newly created frame.
13050 (Fmake_terminal_frame): Reuse the_only_display_info.
13051
13052 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13053 estimating available memory.
13054
b97439ce 130552008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
13056
13057 * nsterm.m (ns_draw_window_cursor): Don't call
13058 NSDisableScreenUpdates and NSEnableScreenUpdates on
13059 non-NS_IMPL_COCOA systems.
13060
130612008-08-23 Andreas Schwab <schwab@suse.de>
13062
13063 * process.c (procfs_system_process_attributes): Fix use of
13064 uninitialized variables.
13065
130662008-08-23 Eli Zaretskii <eliz@gnu.org>
13067
13068 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13069
13070 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13071 calling tty-set-up-initial-frame-faces.
13072
b8ff72fa
SM
13073 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13074 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13075
13076 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13077 addition to output_termcap.
13078
13079 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13080
13081 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13082 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13083 highlight.
13084
13085 * process.c [!subprocesses]: Define QCname.
13086 (syms_of_process): Intern and staticpro it.
13087
13088 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13089 Adjust for changes in encoding/decoding routines.
13090 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13091 encode_coding and decode_coding.
13092
b8ff72fa 13093 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13094
13095 * dosfns.c: Include frame.h before termhooks.h.
13096 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13097 variable termscript.
13098
13099 * s/msdos.h (USER_FULL_NAME): Define.
13100 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13101
13102 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13103 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13104 pw->pw_gecos.
13105
13106 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13107 SELECTED_FRAME as additional (1st) argument.
13108 (tty_read_avail_input): Handle output_msdos_raw in
13109 addition to output_termcap.
13110
13111 * msdos.c: Include frame.h before termhooks.h.
13112 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13113 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13114 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13115 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13116 (IT_set_terminal_modes, IT_reset_terminal_modes)
13117 (IT_set_frame_parameters): Use tty->termscript instead of a global
13118 variable termscript.
13119 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13120 global variable terminal_coding. Don't refer to
13121 Vnonascii_translation_table.
13122 (internal_terminal_init): Set Vwindow_system in current_kboard.
13123 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13124 Announce date and time of session start, if termscript is open.
13125 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13126 term.c:init_tty). Open termscript only of not already open.
13127 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13128 here instead of dos_ttraw. Don't initialize display if this is an
13129 initial tty. Don't set FRAME_FONT.
13130 (Vwindow_system_version): Bump to 23.
13131 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13132 is available, set up mouse_position_hook.
13133 (dos_ttraw, IT_set_terminal_modes): If called with initial
13134 terminal, do nothing.
13135 (IT_set_frame_parameters): Handle the Qtty_type frame
13136 parameter by calling internal_terminal_init.
13137 (dos_set_window_size, show_mouse_face)
13138 (clear_mouse_face, IT_note_mode_line_highlight)
13139 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13140 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13141 (initialize_msdos_display): New function.
13142 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13143 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13144 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13145 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13146 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13147 (request_sigio, unrequest_sigio): Don't define, now defined on
13148 sysdep.c.
13149 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13150
13151 * term.c [MSDOS]: Include msdos.h.
13152 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13153 conditional to DOS_NT. Allow only one call to this function in a
13154 session. Don't allocate a new struct tty_display_info; instead,
13155 reuse the_only_display_info. Call get_tty_size to get screen
13156 dimensions. Call init_baud_rate to set bad_rate.
13157 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13158 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13159 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13160 (get_tty_terminal, get_named_tty, Ftty_type)
13161 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13162 output_termcap.
b8ff72fa
SM
13163 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13164 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13165 only when subprocesses are supported.
aac0c6e3
MR
13166
13167 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13168 f->output_data.x.
13169 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13170 terminal devices.
13171
5582fbc7 13172 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13173 x_output.
13174 (FRAME_FONT): Use output_data.tty.
13175 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13176 (struct x_display_info): Rename from display_info. Update all users in
13177 msdos.c.
aac0c6e3 13178 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13179 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13180 (dos_ttraw): Update prototype.
13181
13182 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13183 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13184
131852008-08-23 Jason Rumney <jasonr@gnu.org>
13186
13187 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13188 (fn_TIFFSetDirectory): New library function used.
13189 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13190 (tiff_load): Use :index to select among multiple images. Set count
13191 property when multiple images exist.
13192 (gif_format): Use :index, not :image.
13193
131942008-08-23 Chong Yidong <cyd@stupidchicken.com>
13195
13196 * xdisp.c (try_scrolling): Check INT_MAX instead of
13197 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13198 to obtain INT_MAX.
13199
132002008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13201
13202 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13203
132042008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13205
13206 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13207 GNUstep library location.
13208
132092008-08-21 Chong Yidong <cyd@stupidchicken.com>
13210
13211 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13212 before using it.
13213
13214 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13215
132162008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13217
13218 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13219 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13220 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13221 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13222 (EmacsApp-cursor_blink_handler): Remove declaration.
13223 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13224 match 01 Feb 2008 changes in xterm.c.
13225 (ns_read_socket): Add cast to avoid warning.
13226 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13227 GNUstep.
13228
132292008-08-20 Chong Yidong <cyd@stupidchicken.com>
13230
13231 * xselect.c (x_get_foreign_selection): Return nil if desired
13232 selection could not be obtained, instead of signalling an error.
13233
132342008-08-20 David Reitter <david.reitter@gmail.com>
13235
13236 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13237 * nsterm.m: Remove ns-specific code for cursor blinking.
13238 (ns_draw_window_cursor): Clear cursor properly rather than
13239 redrawing the area. Respect width of bar cursors.
13240 These changes enable the use of generic blink-cursor-mode and
13241 generic cursor types in NS and support smooth cursor movements (do
13242 not blink off after command).
13243 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13244 Nextstep, too.
13245
132462008-08-19 Kenichi Handa <handa@m17n.org>
13247
13248 * font.c (Vfont_log_deferred): New variable.
13249 (font_add_log): Check Vfont_log_deferred.
13250 (font_deferred_log): New function.
13251
13252 * font.h (font_deferred_log): Extern it.
13253
13254 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13255 for sorting.
13256 (face_for_char): Use deferred log.
13257
132582008-08-18 Kenichi Handa <handa@m17n.org>
13259
13260 * fontset.c (face_for_char): Add font log.
13261
13262 * font.c (font_add_log): Add the font properties :script, :lang,
13263 and :otf in the log.
13264
132652008-08-17 Chong Yidong <cyd@stupidchicken.com>
13266
13267 * xdisp.c: Remove dead code.
13268 (handle_invisible_prop, next_overlay_string): Defer call to
13269 setup_for_ellipsis.
13270 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13271
132722008-08-15 Chong Yidong <cyd@stupidchicken.com>
13273
13274 * xfaces.c (lookup_derived_face): Properly handle possible zero
13275 return value of get_lface_attributes.
13276 (merge_faces): Don't tell lookup_derived_face to signal an error
13277 if face is not found.
13278
13279 * dired.c (Fdirectory_files): Doc fix.
13280
13281 * process.c (make_process): Initialize kill_without_query struct
13282 member.
13283
132842008-08-15 Eli Zaretskii <eliz@gnu.org>
13285
13286 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13287 Alternative calculation of totphys for Visual Studio 6.
13288
13289 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13290
13291 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13292 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13293 All users changed.
13294 (stat): Only root directory passed to GetDriveType. Allow RAM
13295 disk as well as local fixed disk when w32-get-true-file-attributes
13296 is set to `local'.
13297 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13298 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13299 (w32_cached_id, w32_add_to_cache): New functions.
13300 (get_name_and_id): Look account names in the cache before calling
13301 lookup_account_sid.
13302 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13303 New initialization flags.
13304 (globals_of_w32): Initialize them to zero.
13305 (w32_system_process_attributes): Use w32_cached_id and
13306 w32_add_to_cache.
13307
133082008-08-14 Lawrence Mitchell <wence@gmx.li>
13309
13310 * lread.c (Fread_char, Fread_char_exclusive): If no character
13311 event is read before timeout is reached, return nil, rather than
13312 converting to a number.
13313
133142008-08-14 Chong Yidong <cyd@stupidchicken.com>
13315
13316 * fns.c (use_dialog_box): Doc fix.
13317
13318 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13319 on OS X.
13320
133212008-08-13 Chong Yidong <cyd@stupidchicken.com>
13322
13323 * frame.c (Qns_parse_geometry): New var.
13324 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13325
133262008-08-11 Chong Yidong <cyd@stupidchicken.com>
13327
13328 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13329 space character in calculating tabs.
13330
133312008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13332
13333 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13334
133352008-08-10 Glenn Morris <rgm@gnu.org>
13336
13337 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13338 silence gcc "limited range of data type" warnings in some
13339 make_fixnum_or_float calls.
13340
133412008-08-09 Eli Zaretskii <eliz@gnu.org>
13342
13343 * w32.c (w32_system_process_attributes): If the process does not
13344 exist, return nil.
13345
13346 * w32.c: Include thelp32.h, psapi.h and coding.h.
13347 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13348 declarations.
13349 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13350 (Process32Next_Proc): New typedefs.
13351 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13352 (g_b_init_process32_next, g_b_init_open_thread_token)
13353 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13354 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13355 (g_b_init_get_process_working_set_size)
13356 (g_b_init_global_memory_status_ex): New static variables.
13357 (globals_of_w32): Initialize them.
13358 (create_toolhelp32_snapshot, process32_first, process32_next)
13359 (open_thread_token, impersonate_self, revert_to_self)
13360 (get_process_memory_info, get_process_working_set_size)
13361 (global_memory_status, global_memory_status_ex): New wrapper
13362 functions.
13363 (w32_list_system_processes, w32_system_process_attributes)
13364 (enable_privilege, restore_privilege, ltime, process_times):
13365 New functions.
13366 (convert_time_raw): New function.
13367 (convert_time): Remove conversion of FILETIME into time in 100
13368 nsec units, call convert_time_raw instead.
13369
13370 * process.h (w32_list_system_processes, w32_system_process_attributes):
13371 Add prototypes.
13372 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13373 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13374 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13375 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13376
13377 * process.c (Fsystem_process_attributes): Doc fix.
13378
133792008-08-08 Chong Yidong <cyd@stupidchicken.com>
13380
13381 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13382 a continued multi-char glyph; if so, advance to the actual glyph.
13383
133842008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13385
13386 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13387
13388 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13389 (.m.o): Use it.
13390 * config.in: Regenerate.
13391
133922008-08-07 Chong Yidong <cyd@stupidchicken.com>
13393
13394 * xdisp.c (redisplay_window): Revert last change.
13395 (try_window): Check bottom scroll margin too.
13396
133972008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13398
13399 * config.in: Regenerate.
13400
13401 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13402 -list-load-path-shadows'.
13403 (nsgui.h): Reduce number of things depending on it.
13404
134052008-08-06 Chong Yidong <cyd@stupidchicken.com>
13406
13407 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13408 instead of window-end which does the wrong thing at eob.
13409 (try_cursor_movement): Minor optimization.
13410 (redisplay_window): If scroll margin is defined, don't assume
13411 window doesn't need scrolling.
13412
134132008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13414
13415 * config.in: Regenerate.
13416
13417 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13418 (mostlyclean): Don't delete *.d under NS.
13419
13420 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13421
134222008-08-06 Kenichi Handa <handa@m17n.org>
13423
13424 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13425
134262008-08-06 Andreas Schwab <schwab@suse.de>
13427
13428 * config.in: Regenerate.
13429
134302008-08-05 Chong Yidong <cyd@stupidchicken.com>
13431
13432 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13433 forcing a window start.
13434
13435 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13436 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13437
134382008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13439
13440 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13441 argument.
13442
134432008-08-05 Juanma Barranquero <lekktu@gmail.com>
13444
13445 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13446 <scroll-down-aggressively, before-change-functions>:
13447 <after-change-functions>: Reflow docstrings.
13448
134492008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13450 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13451
13452 Dock menu customization, based on a patch by Ken Raeburn, plus some
13453 other fixes.
13454 * nsmenu.m (dockMenu): New variable.
13455 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13456
13457 * nsterm.h (dockMenu): Declare.
13458
13459 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13460 (ns_term_init): Initialize dockMenu.
13461 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13462 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13463 left.
13464
13465 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13466
134672008-08-04 Chong Yidong <cyd@stupidchicken.com>
13468
13469 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13470
13471 * config.in: Regenerate.
13472
134732008-08-04 Seiji Zenitani <zenitani@mac.com>
13474
13475 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13476
134772008-08-04 Chong Yidong <cyd@stupidchicken.com>
13478
13479 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13480
134812008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13482
13483 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13484
13485 * keyboard.h: Comment an #endif.
13486
13487 * lisp.h (have_menus_p): Adjust comment.
13488
13489 * menu.c (find_and_return_menu_selection): Fix comparison with
13490 client_data.
13491
13492 * nsmenu.m (popup_activated_flag): New variable.
13493 (popup_activated): New function.
13494 (menu-or-popup-active-p): New exported lisp definition.
13495 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13496 when popup done.
13497 (ns_popup_dialog): Set popup_activated_flag.
13498
13499 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13500 version for GNUstep (handled by conditional typedef in nsterm.m).
13501 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13502 in rgb.txt).
13503
13504 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13505
13506 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13507
13508 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13509
13510 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13511 shortcircuit if popup_activated like GTK and X toolkit.
13512
13513 * m/inter386.h: Change DARWIN to DARWIN_OS.
13514
13515 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13516 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13517 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13518 comment on NO_SOCK_SIGIO.
13519
135202008-08-03 Chong Yidong <cyd@stupidchicken.com>
13521
13522 * nsterm.m (windowDidResize): Remove stopModal call.
13523
135242008-08-03 Andreas Schwab <schwab@suse.de>
13525
13526 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13527 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13528
135292008-08-02 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13532 Don't use uninitialized pointer variable when using getrlimit.
13533
135342008-08-02 Jason Rumney <jasonr@gnu.org>
13535
13536 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13537
135382008-08-02 Eli Zaretskii <eliz@gnu.org>
13539
13540 * alloc.c (NSTATICS): Bump to 0x640.
13541
13542 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13543
13544 * lisp.h: Add prototype for directory_files_internal.
13545
13546 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13547 New functions.
13548 (syms_of_process): Defsubr them. Add initializations for various
13549 Q* symbols used in procfs_system_process_attributes.
13550 (procfs_list_system_processes, procfs_system_process_attributes)
13551 [HAVE_PROCFS]: New functions.
13552 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13553 (procfs_get_total_memory): New functions.
13554
135552008-08-01 Juanma Barranquero <lekktu@gmail.com>
13556
13557 * xfaces.c (Fx_load_color_file): Fix previous change;
13558 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13559
135602008-08-01 Michael Albinus <michael.albinus@gmx.de>
13561
13562 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13563
135642008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13565
13566 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13567
135682008-08-01 Chong Yidong <cyd@stupidchicken.com>
13569
13570 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13571
13572 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13573 define NSApplicationDelegateReplySuccess.
13574 (EmacsView -converstationIdentifier): Use long instead of
13575 NSInteger for GNUstep, since it doesn't have NSInteger.
13576
13577 * xmenu.c: Revert last change.
13578
13579 * keyboard.h: Fix last change.
13580
135812008-08-01 Juanma Barranquero <lekktu@gmail.com>
13582
13583 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13584 on Windows.
13585
135862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13587
13588 Warning clearing and clean-up in NS port.
13589 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13590 Add prototypes.
13591 * nsgui.h (FACE_DEFAULT): Remove, unused.
13592 (XGCValues): Change colors to unsigned long.
13593 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13594 nsterm.m.
13595 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13596 (ns_list_fonts): Remove, unused.
13597 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13598 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13599 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13600 (nsfont_draw): Compare face colors to 0, not nil.
13601 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13602 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13603 (-addSubmenuWithTitle:): Use NSMenuItem class.
13604 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13605 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13606 (ns_clip_to_row): Make gc arg a BOOL.
13607 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13608 ns_clip_to_row() call.
13609 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13610 used). Cast FRAME_FONT assignments.
13611 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13612 (ns_string_to_lispmod): Change arg to const char.
13613 (ns_term_init): Use NSMenuItem class.
13614 (EmacsApp -openFile:): Move to different section of file.
13615 (EmacsApp -application:openFiles:): Don't return a value, call
13616 -replyToOpenOrPrint:.
13617 (EmacsView -keyDown:): Fix up cast.
13618 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13619 (EmacsView -menuDown:): Cast tag in call to
13620 find_and_call_menu_selection().
13621 (ns_list_fonts): Remove, unused.
13622 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13623 (ns_fontname_to_xlfd): Make static.
13624 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13625 Remove prototypes (now in keyboard.h).
13626 (next_menubar_widget_id): Remove, unused.
13627 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13628 Remove prototypes (now in keyboard.h).
13629 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13630
136312008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13632
13633 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13634 (floatfns.o): Depend on syssignal.h.
13635 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13636
13637 * systty.h: Fix previous change that removed BSD_TERMIOS.
13638 Add comments to #ifdefs.
13639
136402008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13641
13642 * w32fns.c (w32-load-color-file): Remove.
13643 (x-open-connection): Use renamed Fx_load_color_file.
13644 * xfaces.c (x-load-color-file): Add.
13645 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13646 Emacs.clr.
13647 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13648
136492008-07-31 Michael Albinus <michael.albinus@gmx.de>
13650
13651 * dbusbind.c (Fdbus_call_method_asynchronously)
13652 (Fdbus_method_error_internal): New defuns.
13653 (xd_read_message): Handle also reply messages.
13654 (Vdbus_registered_functions_table): Extend docstring.
13655
136562008-07-31 Juanma Barranquero <lekktu@gmail.com>
13657
13658 * keyboard.c (gobble_input): Fix previous change.
13659
136602008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13661
13662 * bitmaps/README:
13663 * xfns.c:
13664 * termcap.c:
13665 * term.c:
13666 * syswait.h:
13667 * systty.h:
13668 * systime.h:
13669 * syssignal.h:
13670 * sysdep.c:
13671 * process.h:
13672 * process.c:
13673 * print.c:
13674 * ndir.h:
13675 * lread.c:
13676 * keyboard.c:
13677 * getpagesize.h:
13678 * floatfns.c:
13679 * fileio.c:
13680 * emacs.c:
13681 * doc.c:
13682 * dispnew.c:
13683 * dired.c:
13684 * data.c:
13685 * callproc.c:
13686 * buffer.c:
13687 * README:
13688 * Makefile.in:
13689 * s/template.h:
13690 * s/msdos.h:
13691 * m/vax.h: Remove VMS support.
13692 * s/vms.h:
13693 * vlimit.h:
13694 * uaf.h:
13695 * temacs.opt:
13696 * param.h:
13697 * ioctl.h: Remove file.
13698
136992008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13700
13701 * s/ms-w32.h (MULTI_KBOARD): Remove.
13702 * xterm.c:
13703 * xselect.c:
13704 * xfns.c:
13705 * window.c:
13706 * w32term.c:
13707 * w32fns.c:
13708 * terminal.c:
13709 * termhooks.h:
13710 * term.c:
13711 * sysdep.c:
13712 * keyboard.h:
13713 * keyboard.c:
13714 * frame.h:
13715 * frame.c:
13716 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13717 * config.in: Regenerate.
13718
137192008-07-30 Jason Rumney <jasonr@gnu.org>
13720
13721 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13722
13723 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13724 (w32font_open_internal): Get unicode version of textmetrics.
13725 Don't enable or disable glyph indices here.
13726 (w32font_open): Disable use of glyph indices.
13727
13728 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13729
137302008-07-30 Chong Yidong <cyd@stupidchicken.com>
13731
13732 * minibuf.c (Vread_buffer_function): Doc fix.
13733
137342008-07-30 John Paul Wallington <jpw@pobox.com>
13735
13736 * minibuf.c (read_buffer_completion_ignore_case): New var.
13737 (Fread_buffer): Use it.
13738
137392008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13740
13741 * systty.h (sensemode): Remove empty #if. Remove reference to
13742 BSD_TERMIOS, unused.
13743
13744 * sysdep.c: Remove reference to DGUX.
13745 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13746
13747 * config.in: Regenerate.
13748
137492008-07-30 Jason Rumney <jasonr@gnu.org>
13750
13751 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13752
137532008-07-29 Jason Rumney <jasonr@gnu.org>
13754
13755 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13756 is populated.
13757 (uniscribe_encode_char): Always use uniscribe.
13758 Avoid using context if cache is populated.
13759
137602008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13761
13762 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13763 open menu.
13764
13765 * gtkutil.c (menu_nav_ended): Remove.
13766 (create_menus): Remove signal connect for menu_nav_ended.
13767
137682008-07-28 Chong Yidong <cyd@stupidchicken.com>
13769
13770 * xdisp.c (redisplay_window): Check return value of
13771 compute_window_start_on_continuation_line before forcing a window
13772 start.
13773
137742008-07-28 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13777
13778 * w32term.c (w32_enable_unicode_output, cleartype_active):
13779 Remove obsolete display options.
13780 (x_draw_glyph_string_background): Don't use old cleartype_active
13781 workaround.
13782 (w32_initialize): Remove cleartype_active initialization.
13783 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13784
137852008-07-28 Andreas Schwab <schwab@suse.de>
13786
13787 * lisp.h (init_weak_hash_tables, syms_of_font)
13788 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13789 (remove_hash_entry): Don't declare.
13790 * eval.c (maybe_call_debugger): Make static and move before use.
13791 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13792 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13793 * xterm.h (x_set_frame_alpha): Declare.
13794
137952008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13796
13797 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13798 (create_menus): Connect selection-done to menu_nav_ended.
13799
138002008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13801
13802 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13803 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13804 parameter with read of 'alpha' one.
13805 (Qns_frame_parameter): Remove.
5582fbc7 13806 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13807 (next-selection-coding-system, Vselection_coding_system)
13808 (Vnext_selection_coding_system): Drop.
13809
138102008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13811
13812 * nsfns.m (do-applescript, do_applescript): Rename to
13813 ns-do-applescript, ns_do_applescript, and move within file.
13814
138152008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13816
13817 Remove support for Mac Carbon.
13818 * mactoolbox.c:
13819 * macterm.h:
13820 * macterm.c:
13821 * macselect.c:
13822 * macmenu.c:
13823 * macgui.h:
13824 * macfns.c:
13825 * mac.c: Remove file.
13826 * s/darwin.h:
13827 * m/intel386.h:
13828 * xfaces.c:
13829 * xdisp.c:
13830 * window.c:
13831 * tparam.c:
13832 * termhooks.h:
13833 * termcap.c:
13834 * term.c:
13835 * syssignal.h:
13836 * sysselect.h:
13837 * sysdep.c:
13838 * process.c:
13839 * lread.c:
13840 * lisp.h:
13841 * keyboard.c:
13842 * image.c:
13843 * fringe.c:
13844 * frame.h:
13845 * frame.c:
13846 * fontset.c:
13847 * font.h:
13848 * font.c:
13849 * fns.c:
13850 * fileio.c:
13851 * emacs.c:
13852 * dispnew.c:
13853 * dispextern.h:
13854 * config.in:
13855 * atimer.c:
2ae37cf0 13856 * Makefile.in: Remove code for Carbon.
aac0c6e3 13857
f0131492 138582008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13859
13860 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13861
138622008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13863
13864 * macterm.h (kCGBitmapByteOrder32Host): New define for
13865 non-universal SDKs.
13866
13867 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13868 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13869
13870 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13871 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13872
138732008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13874
13875 * w32inevt.c: Include dispextern.h.
13876
138772008-07-26 Andreas Schwab <schwab@suse.de>
13878
13879 * print.c (print_object): Fix off-by-one in last change.
13880
138812008-07-25 Juanma Barranquero <lekktu@gmail.com>
13882
13883 * term.c (syms_of_term): Don't initialize default_orig_pair,
13884 default_set_foreground and default_set_background on Windows.
13885
138862008-07-25 Jason Rumney <jasonr@gnu.org>
13887
13888 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13889 ScriptItemize. Clean up return value checking. Remove unused
13890 variables.
13891 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13892 shaping engine.
13893
13894 * w32font.c (w32font_has_char): Handle the case where we can't
13895 determine the script for a character.
13896
138972008-07-25 Chong Yidong <cyd@stupidchicken.com>
13898
13899 * term.c (syms_of_term): Initialize default_orig_pair,
13900 default_set_foreground, and default_set_background.
13901
13902 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13903 clash (bug#86).
13904 (getloadavg): Callers changed.
13905
13906 * image.c (svg_load_image): Fix last change.
13907 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13908 image size is valid. Use g_object_unref instead of deprecated
13909 rsvg_handle_free to free rsvg handle.
13910 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13911
139122008-07-25 Jason Rumney <jasonr@gnu.org>
13913
13914 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13915 surrogates before looking up glyph index.
13916 (w32font_text_extents): Encode as surrogates if falling back to
13917 functions that need UTF-16 wide chars.
13918
13919 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13920 BMP as surrogates before looking up glyph index.
13921
139222008-07-25 Chong Yidong <cyd@stupidchicken.com>
13923
13924 * image.c (svg_load_image): Check for failure in return value of
13925 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13926
139272008-07-25 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32font.c (Fx_select_font): Reverse sense of second arg.
13930
139312008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13932
13933 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13934 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13935
13936 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13937 (PURESIZE): Use it.
13938
139392008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13940
13941 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13942 * m/alpha.h (TEXT_END):
13943 * m/ibmrs6000.h (TEXT_END):
13944 * m/macppc.h (TEXT_END):
13945 * s/darwin.h (TEXT_END):
13946 * s/msdos.h (TEXT_END): Remove, unused.
13947 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13948 * s/cygwin.h: Remove comment.
13949
13950 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13951 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13952 * m/intel386.h (DOT_GLOBAL_START):
13953 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13954 (USG): Remove, file not used on USG platforms.
13955
13956 * Makefile.in (HAVE_X11): Remove empty #else.
13957
139582008-07-24 Andreas Schwab <schwab@suse.de>
13959
13960 * fileio.c (Finsert_file_contents): Properly adjust undo list
13961 after format conversion.
13962
139632008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13964
13965 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13966 (menu_nav_ended): Remove.
13967 (create_menus): Remove signal connect for menu_nav_ended.
13968 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13969 create_menus.
13970 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13971
139722008-07-23 Jason Rumney <jasonr@gnu.org>
13973
13974 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13975 with opened font.
13976 (w32font_open): Set font type to gdi.
13977
13978 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13979
139802008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13981
13982 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13983 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13984 defines it.
13985 * unexec.c (ADDR_CORRECT): Define unconditionally.
13986
13987 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13988
13989 * unexec.c: Remove code depending on !COFF and USG, the file is
13990 not used for such systems.
13991
13992 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13993 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13994 (LD_SWITCH_SYSTEM_1): Remove, update users.
13995
13996 * s/darwin.h (DATA_END):
13997 * m/intel386.h (DATA_END):
13998 * m/ibmrs6000.h (DATA_END):
13999 * m/alpha.h (DATA_END): Remove, unused.
14000
14001 * config.in: Regenerate.
14002 * s/ms-w32.h (subprocesses): Define unconditionally.
14003 * s/template.h (subprocesses): Update comment.
14004 * s/vms.h (subprocesses):
14005 * s/usg5-4.h (subprocesses):
14006 * s/hpux10-20.h (subprocesses):
14007 * s/gnu-linux.h (subprocesses):
14008 * s/cygwin.h (subprocesses):
14009 * s/bsd-common.h (subprocesses):
14010 * s/aix4-2.h (subprocesses):
14011 * s/darwin.h (subprocesses): Do not define, defined by default now.
14012
14013 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14014 Remove all references.
14015 (temacs): Add GNUstep specific ld flags.
14016
14017 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14018 similarly to what X does.
14019
140202008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14021
14022 * nsfns.m (x-list-fonts): Remove.
14023 (syms_of_nsfns): Drop the x-list-fonts declaration.
14024 * nsterm.m: Get rid of remaining "//" comments.
14025
140262008-07-22 Chong Yidong <cyd@stupidchicken.com>
14027
14028 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14029
14030 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14031 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14032 (Fns_own_selection_internal, Fx_disown_selection_internal)
14033 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14034
14035 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14036 ... */' style of docstrings. Doc fixes.
14037
140382008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14039
14040 * terminfo.c (UP, BC, PC): Undo previous change.
14041
14042 * nsfns.m: Rename ns prefixed functions/variables to the
14043 corresponding x versions. Update references.
14044
140452008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14046
14047 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14048
140492008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14050
14051 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14052 Remove forwarding functions.
14053 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14054 non-static.
14055 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14056 non-static.
14057 (ns_frame_parm_handlers): Use the new names.
14058 (syms_of_nsfns): Move to the end of file.
14059
14060 * nsterm.m (syms_of_nsterm): Move to the end of file.
14061
14062 * dispnew.c (init_display): Remove code for X10.
14063
140642008-07-22 Jason Rumney <jasonr@gnu.org>
14065
14066 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14067 bare drive.
14068
140692008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14070
14071 * nsterm.m (syms_of_nsterm): Remove debugging println.
14072
140732008-07-22 David Reitter <david.reitter@gmail.com>
14074
14075 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14076 Carbon implementation of the same functionality: execute arbitrary
14077 AppleScript code.
14078
140792008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14080
14081 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14082 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14083 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14084 (Fx_display_mm_height, Fx_display_mm_width)
14085 (Fx_display_backing_store, Fx_display_visual_class)
14086 (Fx_display_save_under, Fx_open_connection)
14087 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14088 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14089 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14090 (Fx_display_pixel_width, Fx_display_pixel_height)
14091 (Fx_display_usable_bounds, Fx_display_planes)
14092 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14093 ... */' style of docstrings.
14094
140952008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14096
14097 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14098 on this platform.
14099 (mips):
14100 * m/iris4d.h (mips): Do not define.
14101 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14102
14103 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14104
14105 * image.c:
14106 * nsfns.m:
14107 * nsselect.m:
14108 * nsterm.h:
14109 * nsterm.m: Rename ns prefixed functions/variables to the
14110 corresponding x versions. Update references.
14111
14112 * m/ibms390x.h (NO_REMAP): Do not undefine.
14113
14114 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14115
141162008-07-21 Chong Yidong <cyd@stupidchicken.com>
14117
14118 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14119 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14120 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14121 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14122 (Fns_display_mm_height, Fns_display_mm_width)
14123 (Fns_display_backing_store, Fns_display_visual_class)
14124 (Fns_display_save_under, Fns_open_connection)
14125 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14126 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14127 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14128 (Fns_display_pixel_width, Fns_display_pixel_height)
14129 (Fns_display_usable_bounds, Fx_display_planes)
14130 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14131
141322008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14133
14134 * print.c (print_object): Check print_depth before searching for
14135 circularities.
14136
141372008-07-21 Michael Albinus <michael.albinus@gmx.de>
14138
14139 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14140 only sprintf.
14141
141422008-07-21 Kenichi Handa <handa@m17n.org>
14143
14144 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14145
141462008-07-20 Andreas Schwab <schwab@suse.de>
14147
14148 * syntax.c (find_start_pos, find_start_value)
14149 (find_start_value_byte, find_start_begv, find_defun_start)
14150 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14151
141522008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14153
14154 * s/sol2-3.h: Insert contents of s/sol2.h.
14155 (LD_SWITCH_SYSTEM): Remove redundant definition.
14156 * s/sol2.h: Remove, unused.
14157
141582008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14159
14160 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14161
141622008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14163
14164 * Makefile.in (ns_appdir): Fix typo in find command.
14165
141662008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14167
14168 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14169
14170 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14171 added not supported anymore.
14172
14173 * s/usg5-4-2.h (LIBS_SYSTEM):
14174 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14175
14176 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14177 * s/lynxos.h (GETPGRP_NO_ARG):
14178 * s/hpux10-20.h (NO_SIOCTL_H):
14179 * s/gnu.h (GETPGRP_NO_ARG):
14180 * s/gnu-linux.h (NO_SIOCTL_H):
14181 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14182 * s/cygwin.h (GETPGRP_NO_ARG):
14183 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14184 (C_DEBUG_SWITCH): Remove duplicate definition.
14185
14186 * m/ibms390.h: Remove boilerplate comments.
14187
14188 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14189
14190 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14191 (wait_reading_process_output): Remove code for SunOS, platform not
14192 supported anymore. Use SOLARIS2 instead of sun.
14193
141942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14195
14196 * font.c (font_open_by_name): Under NS, default lface height to zero.
14197 (font_open_for_lface): Under NS, set size based on frame fontsize.
14198 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14199 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14200
142012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14202
14203 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14204 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14205 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14206 YES/NO.
14207 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14208 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14209 * Makefile.in (clean): Clear out build destination dir.
14210
142112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14212
14213 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14214 xterm, xselect.
14215 * lisp.h: Remove declaration of hash_remove.
14216 * nsgui.h: Remove redefinitions of hash_remove.
14217 * fns.c (hash_remove): Rename to hash_remove_from_table.
14218
142192008-07-19 Seiji Zenitani <zenitani@mac.com>
14220
14221 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14222 strdup() the family UTF8String before modifying it.
14223
142242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14225
14226 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14227 NS_FACE_BACKGROUND with 0 instead of nil.
14228 * nsfont.m (nsfont_draw): Same.
14229
142302008-07-19 Chong Yidong <cyd@stupidchicken.com>
14231
14232 * nsfns.m (ns_set_background_color): Fix crash.
14233
142342008-07-18 Chong Yidong <cyd@stupidchicken.com>
14235
14236 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14237
142382008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14239
14240 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14241
142422008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14243
14244 * gtkutil.c: Include <config.h> instead of "config.h".
14245
14246 * lisp.h (Foverlay_buffer): Add EXFUN.
14247
14248 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14249 child process to complete child_setup. Undo 2005-09-21 change.
14250
14251 * s/darwin.h: Mention setsid after vfork.
14252
142532008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14254
14255 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14256 Depend on macgui.h.
14257
14258 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14259 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14260
14261 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14262 and f19.
14263 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14264
14265 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14266 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14267 Remove enumerators.
14268
14269 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14270 Check if FACE_FROM_ID returns NULL.
14271
142722008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14273
14274 * w32inevt.c (change_frame_size): Remove extern declaration.
14275 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14276 change_frame_size.
14277
142782008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14279
14280 * getloadavg.c: Revert last change (2008-07-15).
14281
142822008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14283
14284 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14285 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14286 from configure.
14287
142882008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14289
14290 * s/sol2.h:
14291 * s/sol2-4.h: Reorganize conditionals.
14292
14293 * ecrt0.c: Remove code depending on m68000, not used anymore.
14294
14295 * fns.c (hash_remove): Make static.
14296 * lisp.h (hash_remove): Don't prototype.
14297
14298 * m/ibmrs6000.h:
14299 * m/ibms390x.h:
14300 * m/macppc.h: Remove boilerplate comments.
14301
14302 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14303 Solaris, which does not need them.
14304
14305 * m/vax.h: Remove comments about unsupported systems.
14306
14307 * s/darwin.h: Reorganize ifdefs.
14308
143092008-07-17 Andreas Schwab <schwab@suse.de>
14310
14311 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14312
143132008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14314
14315 Use SDATA. Follow coding convention of placing operators at
14316 beginning of next line rather than end of previous line, and placing
14317 spaces around infix operators.
14318
14319 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14320 in case it was defined already.
14321 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14322 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14323 ns_default.
14324 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14325 Lisp_Objects.
14326 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14327 (ns_defined_color, ns_color_to_lisp): Declare.
14328 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14329 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14330 it's accepted even with USE_LISP_UNION_TYPE.
14331 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14332 (update_frame_tool_bar): Remove apparently obsolete tests for
14333 non-integerness of f->tool_bar_lines.
14334 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14335 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14336 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14337 (nsfont_open): Don't confuse NULL for Qnil.
14338 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14339 * menu.h (find_and_call_menu_selection):
14340 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14341 (find_and_return_menu_selection): Always return something.
14342 * frame.h: Include dispextern.h for Display_Info.
14343 (display_x_get_resource): Declare.
14344
143452008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14346
14347 * syntax.c: Remove stdio.h include accidentally introduced in
14348 Emacs.app commit.
14349 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14350 NS_IMPL_COCOA.
14351 * keyboard.c (handle_async_input, input_available_signal): Remove
14352 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14353
143542008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14355
14356 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14357 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14358 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14359 Use SDATA.
14360
14361 * keymap.c: Remove all NS-specific code.
14362 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14363 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14364 where_is_preferred_modifier, return a different value depending on how
14365 preferred is the binding.
14366 (where_is_internal): Adjust accordingly.
14367 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14368 Adjust to new preferred_sequence_p.
14369 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14370 * keyboard.c (parse_solitary_modifier): Not static any more.
14371 * keyboard.h (parse_solitary_modifier): Declare.
14372
143732008-07-16 Andreas Schwab <schwab@suse.de>
14374
14375 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14376 of easymenu.
14377
143782008-07-16 Chong Yidong <cyd@stupidchicken.com>
14379
14380 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14381 that we don't move off the line.
14382
143832008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14384
14385 * keyboard.c (Qsuper): Remove.
14386 (parse_menu_item): Don't call where_is_internal specially for NS.
14387
143882008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14389
14390 * s/gnu-linux.h: Remove boilerplate comments.
14391
14392 * m/alpha.h (__ELF__): Consolidate conditions.
14393
14394 * m/m68k.h (linux): Use GNU_LINUX instead.
14395 Remove boilerplate comments.
14396
14397 * m/intel386.h: Undo refactoring from previous change.
14398 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14399 too, remove dead code.
14400 (linux): Use GNU_LINUX instead.
14401
144022008-07-16 Jason Rumney <jasonr@gnu.org>
14403
14404 * w32gui.h: Repeat 26 June changes lost by last change.
14405
144062008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14407
14408 * systty.h: Remove code for Aix on 386, unsupported platform.
14409
14410 * s/ms-w32.h: Remove boilerplate comments.
14411 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14412
14413 * s/gnu-linux.h (TERM): Remove support.
14414 (HAVE_SYSVIPC): Remove, unused.
14415 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14416 for this system.
14417
14418 * process.c: Remove support for IRIS, unused.
14419 Remove support for TERM, not relevant anymore.
14420
14421 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14422 used with the definition.
14423
14424 * s/aix4-2.h (static): Do not undef.
14425
14426 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14427 only used on Aix.
14428 (HAVE_SYSVIPC): Remove, unused.
14429
14430 * m/hp800.h (CANNOT_DUMP): Do not undef.
14431
14432 * m/alpha.h: Fix comment.
14433
14434 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14435 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14436 used by this configuration.
14437 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14438 * unexec.c: Remove code depending on HPUX and
14439 USG_SHARED_LIBRARIES, not used with this file. Remove code
14440 depending on IRIS, unused. Remove if 0-ed code.
14441
14442 * s/template.h: Remove comments about static.
14443
14444 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14445 Remove if 0-ed code.
14446 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14447 were the same as the default.
14448 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14449 Remove boilerplate comments.
14450 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14451 (HAVE_SYSVIPC): Remove, unused.
14452 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14453
14454 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14455 Remove boilerplate comments.
14456 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14457 Remove boilerplate comments.
14458 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14459 Remove boilerplate comments.
14460 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14461
14462 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14463 USG systems which do not use DATA_SEG_BITS.
14464 Refactor code. Remove boilerplate comments.
14465
14466 * m/ibms390.h:
14467 * m/m68k.h:
14468 * s/bsd-common.h:
14469 * s/cygwin.h:
14470 * s/darwin.h:
14471 * s/freebsd.h:
14472 * s/gnu.h:
14473 * s/msdos.h: Remove boilerplate comments.
14474
14475 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14476 do not use this file.
aac0c6e3
MR
14477 (IRIS_4D): Remove, unused.
14478
14479 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14480 do not use this file.
aac0c6e3
MR
14481 (SIGN_EXTEND_CHAR):
14482 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14483 * unexmips.c: Remove file, unused.
14484
14485 * editfns.c (Fuser_full_name): Replace the only use of
14486 USER_FULL_NAME with its value.
14487 * config.in: Regenerate.
14488
144892008-07-16 David Reitter <david.reitter@gmail.com>
14490
14491 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14492 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14493
144942008-07-16 Glenn Morris <rgm@gnu.org>
14495
14496 * emacs.c (system-type): Doc fix.
14497
144982008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14499
14500 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14501 If the cache doesn't work, let's fix it, rather than work around it.
14502
145032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14504
14505 * Makefile.in: Correct additions for nsfont.o in last commit.
14506 * nsfont.m: New file (forgot last commit).
14507
145082008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14509
14510 * callproc.c (set_initial_environment): Initialize
14511 Vprocess_environment under CANNOT_DUMP (fixes crash when
14512 batch-compiling for bootstrap).
14513
145142008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14515 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14516
c4cc8b9a
JB
14517 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14518 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14519
145202008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14521
14522 Changes and additions for NeXTstep windowing system (Cocoa and
14523 GNUstep) support.
14524
14525 * Makefile.in:
14526 * config.in: Support defines and build commands for NS port.
14527 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14528 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14529 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14530 windowing.
14531 (struct face): Add synth_ital field.
14532 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14533 (init_display): Initialize Vinitial_window_system to "ns" when so
14534 compiled.
14535 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14536 (display_arg): Use under NS.
14537 (main): Under NS, allocate autorelease pool and handle command line
14538 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14539 (standard_args): Add NS-specific args.
14540 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14541 * font.c (DEFAULT_ENCODING): New variable.
14542 (font_find_for_lface): Use it.
14543 (syms_of_font): Load syms_of_nsfont under NS.
14544 * font.h: Declare nsfont_driver when compiled under NS.
14545 * fontset.c: When compiling under NS, include nsterm.h.
14546 (fontset_from_font): Autoconstruct fontset under NS.
14547 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14548 symbol, document and use it.
14549 (do_switch_frame): When for_deletion under Cocoa, add
14550 Fraise_frame(Qnil).
14551 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14552 (x_get_arg): Allow "yes" and "no" as boolean values.
14553 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14554 Qright under Cocoa.
14555 (focus-follows-mouse): Default to 0 under NS.
14556 * frame.h (enum output_method): Add output_ns.
14557 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14558 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14559 (FRAME_WINDOW_P): NS-specific definition.
14560 * fringe.c (max_used_fringe_bitmap): Make public.
14561 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14562 (getloadavg): Use NeXT code under descendant OS's.
14563 * image.c (includes and header section, x_create_bitmap_from_data)
14564 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14565 (image_background_transparent, x_clear_image_1)
14566 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14567 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14568 (x_to_xcolors, x_from_xcolors, x_disable_image)
14569 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14570 other GUIs, including XPM support using code originally written for
14571 Carbon GUI.
14572 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14573 using NS API.
14574 (image_ascent): Use font metrics macros instead of direct struct field
14575 access.
14576 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14577 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14578 Also, handle NS as GTK for menu bar purposes.
14579 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14580 toolkit where they differ.
14581 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14582 use cachelist, still needed under NS.
14583 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14584 (struct widget_value): Define it here for menu.c.
14585 * keymap.c (includes): Include modifier internals.
14586 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14587 NS.
14588 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14589 support for preferring sequences using certain modifiers, specified by
14590 the FIRSTONLY argument.
14591 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14592 under NS GNUstep implementation.
14593 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14594 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14595 * menu.c: Include nsterm.h under NS.
14596 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14597 (free_menubar_widget_tree_value, update_submenu_strings)
14598 (find_and_call_menu_selection): Treat NS as X and NT.
14599 (find_and_return_menu_selection): New function, used for popup menus.
14600 * nsgui.h:
14601 * nsterm.h:
14602 * nsfns.m:
14603 * nsimage.m:
14604 * nsmenu.m:
14605 * nsselect.m:
14606 * nsterm.m: New files.
14607 * process.c (wait_reading_process_output): Under NS, call ns_select()
14608 instead of plain select().
14609 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14610 beginning of buffer.
14611 * sysselect.h (init_process): Rename when compiling under Cocoa to
14612 avoid name conflict.
14613 * termhooks.h (display_info): Add ns_display_info to union.
14614 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14615 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14616 COCOA environment.
14617 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14618 unexec() signature. (Note, this will dump, but the resulting file
14619 crashes; unexosx is used instead; keeping around for reference and
14620 possible aid in getting dump working under GNUstep.)
14621 * w32gui.h (button_type, widget_value): Remove definitions (now in
14622 keyboard.h).
14623 * window.c: Include nsterm.h when compiling under NS.
14624 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14625 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14626 other GUI windowing systems.
14627 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14628 GTK.
14629 (x_consider_frame_title): Under NS, set icon type and frame
14630 modified-state indicator; use ns_set_name_as_filename() when using
14631 formatted title.
14632 (update_window_cursor): Make public when compiling under NS.
14633 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14634 (hourglass_atimer, Vhourglass_delay
14635 * xfaces.c (header section, init_frame_faces, clear_font_table)
14636 (defined_color, unload_color, x_face_list_fonts)
14637 (prepare_face_for_display): Add NS support parallel to other GUIs.
14638 Emulate GCs like other non-X GUIs.
14639 (split_font_name): Don't lowercase font name under NS.
14640 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14641 under NS.
14642 * s/darwin.h: Add support for compilation under NS.
14643
146442008-07-15 Jason Rumney <jasonr@gnu.org>
14645
14646 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14647 (w32_show_hourglass): Rename from show_hourglass.
14648 (w32_hide_hourglass): Rename from hide_hourglass.
14649 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14650 (Vhourglass_delay): Declare extern.
14651 (hourglass_started): Remove.
14652
14653 * xdisp.c (Vhourglass_delay): Remove static.
14654 (hourglass_started, start_hourglass, cancel_hourglass):
14655 Don't include these versions on WINDOWSNT.
14656
146572008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14658
14659 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14660 variables (formerly in xfns.c).
14661 (show_hourglass, hide_hourglass): New prototypes (same).
14662 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14663 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14664 in xfns.c).
14665 (syms_of_xdisp): Declare/initialize display-hourglass,
14666 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14667 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14668 formerly in xfns.c.
14669 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14670 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14671 (start_hourglass, cancel_hourglass): Remove.
14672 (show_hourglass, hide_hourglass): Remove prototypes and static
14673 modifiers.
14674 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14675 hourglass_atimer, hourglass_shown_p declaration/initialization.
14676 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14677 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14678 (start_hourglass, cancel_hourglass): Remove.
14679 (show_hourglass, hide_hourglass): Remove prototypes and static
14680 modifiers.
14681 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14682 hourglass_atimer, hourglass_shown_p declaration/initialization.
14683 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14684 (DEFAULT_HOURGLASS_DELAY): Remove.
14685 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14686 hourglass_shown_p declaration/initialization.
14687
146882008-07-14 Jason Rumney <jasonr@gnu.org>
14689
14690 * w32fns.c (w32_get_arg): Remove wrapper function.
14691 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14692 directly.
14693 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14694
146952008-07-14 Kenichi Handa <handa@m17n.org>
14696
14697 * xfont.c (xfont_open): Add workaround for X's bug.
14698
146992008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14700
14701 * fontset.c: Include <stdio.h> unconditionally.
14702
147032008-07-13 Michael Albinus <michael.albinus@gmx.de>
14704
14705 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14706 for filtering.
14707
147082008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14709
14710 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14711
14712 * m/macppc.h:
14713 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14714
c4cc8b9a 14715 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14716 (SPECIAL_EMACS_INT):
14717 * m/ia64.h (SPECIAL_EMACS_INT):
14718 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14719 * s/gnu.h (NLIST_STRUCT):
14720 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14721 * s/gnu-linux.h (LINUX):
14722 * s/msdos.h (HAVE_FACES):
14723 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14724
14725 * systty.h:
14726 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14727 anymore.
14728
147292008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14730
14731 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14732 always defined as int.
14733
14734 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14735 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14736 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14737 * s/freebsd.h (HAVE_WAIT_HEADER):
14738 * s/bsd-common.h (HAVE_UNION_WAIT):
14739 * s/aix4-2.h (HAVE_WAIT_HEADER):
14740 * m/mips.h (HAVE_UNION_WAIT):
14741 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14742 (COFF, static): Do not define, they are undefined later in the file.
14743
14744 * process.c (update_status): Don't use a union.
14745 (status_convert):
14746 (sigchld_handler): Use int instead of WAITTYPE.
14747
147482008-07-12 Chong Yidong <cyd@stupidchicken.com>
14749
14750 * indent.c (Fvertical_motion): Restore hscroll before moving to
14751 goal column.
14752
147532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14754
14755 * lisp.h: Remove left over code.
14756
147572008-07-11 Andreas Schwab <schwab@suse.de>
14758
14759 * lisp.h: Fix logic in last change.
14760
14761 * menu.h: New file.
14762 * menu.c: Include it.
14763 * xmenu.c: Likewise.
14764 * Makefile.in: Update dependencies.
14765
147662008-07-11 Kenichi Handa <handa@m17n.org>
14767
14768 * fontset.c (fontset_from_font): Cancel the previous change.
14769
147702008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14771
14772 * lisp.h:
14773 * w32heap.c:
14774 * emacs.c:
14775 * alloc.c: Replace all references of NO_UNION_TYPE with
14776 USE_LISP_UNION_TYPE.
14777
14778 * m/xtensa.h (NO_UNION_TYPE):
14779 * m/vax.h (NO_UNION_TYPE):
14780 * m/template.h (NO_UNION_TYPE):
14781 * m/sparc.h (NO_UNION_TYPE):
14782 * m/mips.h (NO_UNION_TYPE):
14783 * m/macppc.h (NO_UNION_TYPE):
14784 * m/m68k.h (NO_UNION_TYPE):
14785 * m/iris4d.h (NO_UNION_TYPE):
14786 * m/intel386.h (NO_UNION_TYPE):
14787 * m/ibms390x.h (NO_UNION_TYPE):
14788 * m/ibms390.h (NO_UNION_TYPE):
14789 * m/ibmrs6000.h (NO_UNION_TYPE):
14790 * m/ia64.h (NO_UNION_TYPE):
14791 * m/hp800.h (NO_UNION_TYPE):
14792 * m/arm.h (NO_UNION_TYPE):
14793 * m/amdx86-64.h (NO_UNION_TYPE):
14794 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14795 defining it the same.
14796
147972008-07-10 Chong Yidong <cyd@stupidchicken.com>
14798
14799 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14800
148012008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14802
14803 * fileio.c:
50426a04 14804 * sysdep.c:
aac0c6e3
MR
14805 * systty.h:
14806 * m/ibmrs6000.h:
14807 * m/iris4d.h:
14808 * s/aix4-2.h:
14809 * s/freebsd.h:
14810 * s/gnu-linux.h:
14811 * s/hpux10-20.h:
14812 * s/hpux11.h:
14813 * s/netbsd.h:
14814 * s/sol2-3.h:
14815 * s/sol2-4.h:
14816 * s/sol2.h:
14817 * s/usg5-4.h:
14818 * s/vms.h: Remove references to unused variables.
14819
148202008-07-10 Andreas Schwab <schwab@suse.de>
14821
14822 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14823 pattern before matching the generic family.
14824
148252008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14826
14827 * unexec.c:
14828 * s/vms.h:
14829 * s/usg5-4-2.h:
14830 * s/sol2-5.h:
14831 * s/freebsd.h:
14832 * s/darwin.h: Remove dead code.
14833
14834 * m/template.h:
14835 * m/sparc.h:
14836 * m/mips.h:
14837 * m/m68k.h:
14838 * m/iris4d.h:
14839 * m/intel386.h:
14840 * m/ibms390x.h:
14841 * m/ibms390.h:
14842 * m/ia64.h:
14843 * m/hp800.h:
14844 * m/arm.h:
14845 * m/amdx86-64.h: Remove dead code and references to unused
14846 and compiler defined symbols.
14847
14848 * unexmips.c:
14849 * unexelf.c: Remove references to desupported systems.
14850
14851 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14852
14853 * m/powermac.h: Remove boilerplate comments.
14854 (NO_REMAP): Remove unused definition.
14855
14856 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14857 define them.
14858
148592008-07-10 Kenichi Handa <handa@m17n.org>
14860
14861 * xfont.c (xfont_open): Log the reason of failure.
14862
148632008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14864
14865 * fontset.c (fontset_get_font_group):
14866 * font.c (font_check_otf): Specify argument types.
14867
148682008-07-09 Kenichi Handa <handa@m17n.org>
14869
14870 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14871 non-ASCII char is found.
14872
14873 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14874 (reorder_font_vector): Change the arg preferred_family to font.
14875 Prefer the spec matching with font.
14876 (fontset_get_font_group): New function.
14877 (fontset_find_font): Change the format of an element of a realized
14878 fontset. Use fontset_get_font_group.
14879 (fontset_font): Try the current fontset, the default fontset, the
14880 fallbacks of the current fontset, and the fallbacks of the default
14881 fontset in this order.
14882 (face_for_char): Delete the shortcut to use the current font.
14883 (fontset_from_font): Don't set fonts for Latin in the fontset.
14884
14885 * font.h (font_make_object, font_match_p): Adjust prototypes.
14886
14887 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14888
14889 * font.c (font_make_object): New arg entity and pixelsize.
14890 (font_check_otf_features, font_check_otf): New functions.
14891 (font_match_p): Check :lang, :script, and :otf properties.
14892
14893 * xfont.c (xfont_open): Adjust it for the change of
14894 font_make_object.
14895 (xfont_text_extents): Fix initial setting of metrics.
14896
14897 * ftfont.c (struct ftfont_info): New member index, delete member
14898 fc_charset_idx. Make the member order compatible with struct
14899 xftfont_info.
14900 (fc_charset_table): Change charset names to registry names.
14901 (ftfont_pattern_entity): Delete the args registry and
14902 fc_charset_idx. Change the value of :font-entity property
14903 to (FONTNAME . INDEX). Always set :registry property to
14904 `iso10646-1'.
14905 (struct ftfont_cache_data): New struct.
14906 (ftfont_lookup_cache): New arg for_face.
14907 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14908 (ftfont_driver): Set the member otf_capability.
14909 (ftfont_get_charset): Adjust it for the change of
14910 fc_charset_table.
14911 (OTF_TAG_SYM): New macro.
14912 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14913 for the change of fc_charset_table.
14914 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14915 ftfont_pattern_entity. Add FC_INDEX to objset.
14916 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14917 and ftfont_pattern_entity.
14918 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14919 font_make_object, struct ftfont_info.
14920 (ftfont_has_char): Use ftfont_get_fc_charset.
14921 (ftfont_otf_features, ftfont_otf_capability): New functions.
14922 (ftfont_shape): Use ftfont_get_otf.
14923 (ftfont_text_extents): Fix initial setting of metrics.
14924
14925 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14926 member order compatible with struct ftfont_info.
14927 (xftfont_open): Add FC_CHARSET to the pattern. Set
14928 xftfont_info->ft_size. Don't unlock the face. Check BDF
14929 properties if appropriate.
14930 (xftfont_close): Unlock the face.
14931 (xftfont_anchor_point, xftfont_shape): Deleted.
14932 (syms_of_xftfont): Don't set members anchor_point and shape of
14933 xftfont_driver.
14934
14935 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14936 font_make_object.
14937
14938 * w32font.c (w32font_open): Adjust it for the change of
14939 font_make_object.
14940 (w32font_open_internal): Don't set properties of font_object here.
14941
149422008-07-08 Chong Yidong <cyd@stupidchicken.com>
14943
14944 * macfns.c (x_create_tip_frame):
14945 * w32fns.c (x_create_tip_frame):
14946 * xfns.c (x_create_tip_frame): Pass parameter argument to
14947 face-set-after-frame-default.
14948
14949 * xfaces.c (Finternal_merge_in_global_face): Save merged
14950 attributes for the default face back into the face vector.
14951
149522008-07-08 Andreas Schwab <schwab@suse.de>
14953
14954 * fontset.h: Declare fontset_from_font. Don't declare
14955 new_fontset_from_font and fontset_from_font_name.
14956 * xterm.c: Include "fontset.h".
14957 * Makefile.in (xterm.o): Update dependencies.
14958
149592008-07-08 Glenn Morris <rgm@gnu.org>
14960
14961 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14962 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14963
149642008-07-07 Chong Yidong <cyd@stupidchicken.com>
14965
14966 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14967 (x_set_frame_parameters): Don't bind it.
14968
149692008-07-07 Juanma Barranquero <lekktu@gmail.com>
14970
14971 * w32fns.c (map_w32_filename): Declare extern.
14972
149732008-07-07 Jason Rumney <jasonr@gnu.org>
14974
14975 * w32term.c (WS_EX_LAYERED): Define if not already.
14976
149772008-07-06 Chong Yidong <cyd@stupidchicken.com>
14978
14979 * xfaces.c (set_font_frame_param): Don't try to set the font
14980 parameter if it is still unspecified in the lface.
14981
149822008-07-05 Chong Yidong <cyd@stupidchicken.com>
14983
14984 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14985 face if it didn't already exist.
14986
14987 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14988
149892008-07-05 Andreas Schwab <schwab@suse.de>
14990
14991 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14992
149932008-07-05 Chong Yidong <cyd@stupidchicken.com>
14994
14995 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14996 word-wrapping.
14997 (IT_DISPLAYING_WHITESPACE): New macro.
14998 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14999 when word-wrapping. Simplify word-wrapping logic. Use correct
15000 pixel positions when saving copies of the iterator.
15001 (display_line): Use proper wrap point if the last character on a
15002 line was preceded by whitespace.
15003
150042008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15005
15006 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15007
150082008-07-04 Kenichi Handa <handa@m17n.org>
15009
15010 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15011
15012 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15013
150142008-07-02 Jason Rumney <jasonr@gnu.org>
15015
15016 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 15017 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
15018
15019 * xdisp.c (next_element_from_display_vector): Move assignment out
15020 of if statement.
15021
150222008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15023
15024 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15025
15026 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15027 (syms_of_fileio): Initialize and export them.
15028 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15029
15030 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15031 (Fsystem_move_file_to_trash): New function.
15032 (syms_of_w32fns): Export it to lisp.
15033
150342008-07-01 Jason Rumney <jasonr@gnu.org>
15035
15036 * w32font.c (w32font_text_extents): Don't count overhang as part
15037 of width.
15038
150392008-06-30 Miles Bader <miles@gnu.org>
15040
15041 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15042 Add `avoid_cursor_p' field.
15043
15044 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15045 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15046 (append_glyph, append_composite_glyph, produce_image_glyph)
15047 (append_stretch_glyph): Initialize avoid_cursor_p.
15048 (get_it_property): Rename from `get_line_height_property'.
15049 (x_produce_glyphs): Use get_it_property.
15050 (handle_line_prefix, push_display_prop): New functions.
15051 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15052 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15053 New variables.
15054 (syms_of_xdisp): Initialize them.
15055
150562008-06-30 Kenichi Handa <handa@m17n.org>
15057
15058 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15059 XftDefaultSubstitute (they are called in XftFontMatch).
15060 (xftfont_open): Fix args to ftfont_font_format.
15061
15062 * ftfont.c (fc_charset_table): New member lang.
15063 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 15064 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
15065 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15066 (ftfont_open): Fix args to ftfont_font_format.
15067 (ftfont_font_format): New arg filename.
15068
150692008-06-30 Chong Yidong <cyd@stupidchicken.com>
15070
15071 * xfaces.c (Finternal_merge_in_global_face): If default face was
15072 modified, realize it again. Update the font face attribute.
15073
150742008-06-29 Jason Rumney <jasonr@gnu.org>
15075
15076 * w32term.c (x_set_frame_alpha): Fix logic.
15077
150782008-06-29 Kenichi Handa <handa@m17n.org>
15079
15080 * fontset.c (Finternal_char_font): Return font-object instead of
15081 font-name.
15082
15083 * composite.c (get_composition_id): Fix the width calculation for TAB.
15084
150852008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15086
15087 * indent.c (Fvertical_motion): Properly handle float column arg.
15088
150892008-06-28 Jason Rumney <jasonr@gnu.org>
15090
15091 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15092 (pfnSetLayeredWindowAttributes): New function pointer.
15093 (w32_initialize): Initialize it when supported.
15094 (x_set_frame_alpha): New function.
15095
15096 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15097 (w32_frame_parm_handlers): Set alpha handler.
15098
15099 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15100
151012008-06-27 Jason Rumney <jasonr@gnu.org>
15102
15103 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15104 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15105 (w32_to_x_charset, x_to_w32_charset)
15106 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15107 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15108 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15109 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15110 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15111 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15112 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15113 (Qw32_charset_unicode): Remove.
15114 (syms_of_w32fns): Update for above changes.
15115
15116 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15117 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15118 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15119 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15120 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15121 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15122 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15123 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15124 (syms_of_w32font): Update for above changes.
15125
151262008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15127
15128 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15129 removed #if.
15130 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15131
151322008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15133 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15134
15135 * makefile.w32-in (LOCAL_FLAGS):
15136 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15137
15138 * sysdep.c (_spawnlp, _getpid):
15139 Declare with explicit _cdecl instead of _CRTAPI1.
15140
15141 * editfns.c (Fget_internal_run_time):
15142 Check for WINDOWSNT with #ifdef, not #if.
15143
151442008-06-26 Jason Rumney <jasonr@gnu.org>
15145
15146 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15147
15148 * w32term.c (x_draw_glyph_string_foreground)
15149 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15150 Use FONT_HANDLE macro.
15151 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15152
15153 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15154 (uniscribe_encode_char): Use FONT_HANDLE macro.
15155
15156 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15157 (w32font_text_extents): Use precast w32_font.
15158 (w32font_close): Free cached metrics.
15159 (w32font_open_internal): Allocate space for name on stack.
15160
151612008-06-26 Chong Yidong <cyd@stupidchicken.com>
15162
15163 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15164
151652008-06-26 Jason Rumney <jasonr@gnu.org>
15166
15167 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15168 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15169
151702008-06-26 Juanma Barranquero <lekktu@gmail.com>
15171
15172 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15173
151742008-06-26 Jason Rumney <jasonr@gnu.org>
15175
15176 * w32bdf.c, w32bdf.h: Remove obsolete files.
15177
15178 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15179
15180 * w32gui.h: Don't include w32bdf.h.
15181 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15182 Remove obsolete font support.
15183
15184 * w32font.h (struct w32font_info): Remove compat_w32_font.
15185 Add hfont member.
15186 (FONT_COMPAT): Remove obsolete macro.
15187
15188 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15189 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15190 (w32font_open_internal): Remove compat code. Set new hfont member.
15191 (Fx_select_font): Use new hfont member.
15192
15193 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15194 (uniscribe_encode_char): Use new hfont member.
15195
15196 * w32term.c (x_draw_glyph_string_foreground)
15197 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15198 (x_draw_glyph_string): Use metrics in w32font_info.
15199
152002008-06-26 Kenichi Handa <handa@m17n.org>
15201
15202 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15203
152042008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15205
15206 * unexnext.c:
15207 * m/ews4800.h:
15208 * m/hp9000s300.h:
15209 * m/ibm370aix.h:
15210 * m/mips-siemens.h:
15211 * m/ncr386.h:
15212 * m/next.h:
15213 * m/pmax.h:
15214 * m/powerpcle.h:
15215 * m/tandem-s2.h:
15216 * s/386bsd.h:
15217 * s/bsd386.h:
15218 * s/bsd4-1.h:
15219 * s/bsd4-2.h:
15220 * s/bsdos2-1.h:
15221 * s/bsdos2.h:
15222 * s/bsdos3.h:
15223 * s/bsdos4.h:
15224 * s/nextstep.h:
15225 * s/ultrix4-3.h:
15226 * s/usg5-0.h:
15227 * s/usg5-2-2.h:
15228 * s/usg5-2.h:
15229 * s/usg5-4-3.h:
15230 * s/ux4800.h:
15231 * s/uxpds.h:
15232 * s/uxpv.h: Remove support for obsolete systems.
15233 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15234 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15235 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15236 Remove, insert contents in s/aix4-2.h.
15237 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15238 * s/bsd4-3.h: Rename to ...
15239 * s/bsd-common.h: ... this.
15240 * data.c:
15241 * doc.c:
15242 * ecrt0.c:
15243 * emacs.c:
15244 * fileio.c:
15245 * floatfns.c:
15246 * keyboard.c:
15247 * mem-limits.h:
15248 * print.c:
15249 * process.c:
15250 * sysdep.c:
15251 * syssignal.h:
15252 * systty.h:
15253 * syswait.h:
15254 * term.c:
15255 * unexec.c:
15256 * unexelf.c:
15257 * unexhp9k800.c:
15258 * m/hp800.h:
15259 * m/ibmrs6000.h:
15260 * m/mips.h:
15261 * m/vax.h:
15262 * s/darwin.h:
15263 * s/freebsd.h:
15264 * s/gnu.h:
15265 * s/ms-w32.h:
15266 * s/msdos.h:
15267 * s/netbsd.h:
15268 * s/template.h: Remove references to obsolete variables.
15269
15270 * Makefile.in: Add dependencies for all unexec files.
15271 (admindir): Remove unused variable.
15272 (UNEXEC_SRC): Remove references.
15273
152742008-06-25 Chong Yidong <cyd@stupidchicken.com>
15275
15276 * xfns.c (x_default_font_parameter): If Xft is available, first
15277 try Monospace-12 for the default font.
15278
152792008-06-25 Jason Rumney <jasonr@gnu.org>
15280
15281 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15282
152832008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15284
15285 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15286
15287 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15288
152892008-06-25 Juanma Barranquero <lekktu@gmail.com>
15290
15291 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15292 <scroll-conservatively>: Fix typo in docstring.
15293
15294 * xselect.c (Fx_send_client_event): Doc fix.
15295
152962008-06-25 Kenichi Handa <handa@m17n.org>
15297
15298 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15299
15300 * font.c (font_parse_fcname): Remove unused variables.
15301 (font_sort_entites): Delete the arg SPEC. Caller changed.
15302 Fix for the case of ! best_only.
15303 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15304
15305 * lisp.h (Fstring_to_unibyte): EXFUN it.
15306
15307 * character.h (str_to_unibyte): Extern it.
15308
15309 * character.c (str_to_unibyte): New function.
15310
15311 * fns.c (Fstring_to_unibyte): New function.
15312 (syms_of_fns): Defsubr it.
15313
153142008-06-24 Kenichi Handa <handa@m17n.org>
15315
15316 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15317 DPI too.
15318 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15319
153202008-06-24 Andreas Schwab <schwab@suse.de>
15321
15322 * Makefile.in (${lispsource}loaddefs.el): Rename from
15323 ../lisp/loaddefs.el.
15324 (bootstrap-clean): Do what distclean does but don't remove
15325 Makefile.
15326 (distclean): Depend on bootstrap-clean and remove Makefile.
15327
153282008-06-24 Chong Yidong <cyd@stupidchicken.com>
15329
15330 * buffer.h (struct buffer): New member word_wrap.
15331
15332 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15333 word-wrap.
15334 (init_buffer_once): Initialize them.
15335
15336 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15337 line_wrap enum possessing three possible values.
15338
15339 * termopts.h: Replace truncate_partial_width_windows with
15340 Vtruncate_partial_width_windows.
15341
15342 * dispnew.c (direct_output_for_insert): Avoid direct output when
15343 inserting a space with word wrap on.
15344
15345 * indent.c (compute_motion): Obey integer values of
15346 truncate-partial-width-windows.
15347
15348 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15349 replacing truncate_partial_width_windows.
15350 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15351 truncate only if the window width is below that integer.
15352 (start_display, resize_mini_window, produce_stretch_glyph)
15353 (display_string, move_it_in_display_line_to): Use line_wrap.
15354 (back_to_previous_visible_line_start, reseat_1): Reset
15355 string_from_display_prop_p.
15356 (display_line): Extend default face to end of line when wrapping.
15357
153582008-06-24 Kim F. Storm <storm@cua.dk>
15359
15360 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15361 to wrap continued lines at word boundaries.
15362
153632008-06-24 Jason Rumney <jasonr@gnu.org>
15364
15365 * font.c (Ffont_face_attributes): Multiply pixel size before point
15366 conversion to avoid multiplying rounding error.
15367
153682008-06-23 Jason Rumney <jasonr@gnu.org>
15369
15370 * w32term.c (x_draw_glyph_string_background)
15371 (x_draw_glyph_string): Remove old bdf font code.
15372
15373 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15374
153752008-06-22 Kenichi Handa <handa@m17n.org>
15376
15377 * font.c (font_find_for_lface): Try the adstyle specified in
15378 the property of LFACE_FONT of LFACE (if any).
15379
153802008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15381 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15382
15383 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15384
153852008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15386
15387 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15388 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15389 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15390 (witness-emacs): Remove.
15391 (lisp, shortlisp): Move loaddefs.el earlier.
15392 (mostlyclean): Forget about witness-emacs.
15393
153942008-06-22 Glenn Morris <rgm@gnu.org>
15395
15396 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15397 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15398
153992008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15400
15401 * Makefile.in (PRECOMP): Remove.
15402 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15403 (witness-emacs): Run `compile-first'.
15404 (.el.elc): Use the new compile-onefile target.
15405
154062008-06-21 Kenichi Handa <handa@m17n.org>
15407
15408 * xftfont.c (xftfont_open): Handle QCembolden only when
15409 FC_EMBOLDEN is defined.
15410
154112008-06-21 Andreas Schwab <schwab@suse.de>
15412
15413 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15414 (.el.elc): Likewise.
15415
154162008-06-21 Miles Bader <miles@gnu.org>
15417
15418 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15419 build dir, not the lisp source dir.
15420
154212008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15422
15423 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15424 (bootstrapclean): Remove.
15425 (.el.elc): New rule.
15426 (PRECOMP): New var.
15427 (../lisp/subdirs.el): Remove.
15428 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15429 (witness-emacs): New target.
15430 (mostlyclean): Remove witness-emacs as well.
15431 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15432 Add witness-emacs dependency.
15433
154342008-06-20 Chong Yidong <cyd@stupidchicken.com>
15435
15436 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15437 defined by the font.
15438
154392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15440
15441 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15442 (bootstrap-clean): New target that keeps TAGS around.
15443 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15444 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15445
154462008-06-20 Jason Rumney <jasonr@gnu.org>
15447
15448 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15449 Remove obsolete font code.
15450
15451 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15452 to determine language support.
15453
154542008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15455
15456 * sysdep.c (cfsetspeed): New fun extracted from the code.
15457 (cfmakeraw): Move before first use.
15458
154592008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15460
15461 * sysdep.c (cfmakeraw): Provide fallback implementation.
15462 (serial_configure): Provide fallback implementation of cfsetspeed.
15463
154642008-06-20 Kenichi Handa <handa@m17n.org>
15465
15466 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15467 the pattern.
15468
15469 * fontset.c (fontset_from_font): Copy font_spec before changing
15470 the elements.
15471
15472 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15473
154742008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15475
15476 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15477 for explicit `font' parameters.
15478
15479 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15480
154812008-06-19 Kenichi Handa <handa@m17n.org>
15482
15483 * frame.c: Include <ctype.h>.
15484 (x_set_font_backend): Allow spacing characters in the X resource
15485 for FontBackend.
15486
154872008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15488
15489 * w32fns.c, xfns.c (Qfont_param): New var.
15490 (syms_of_w32fns): Initialize it.
15491 (x_default_font_parameter): Record explicit `font' into
15492 `font-parameter'.
15493
154942008-06-18 Kenichi Handa <handa@m17n.org>
15495
15496 * font.c (font_parse_xlfd): Fix previous change.
15497 (font_parse_fcname): Don't use :fc-unknown-spec.
15498 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15499 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15500 (font_add_log): Prepend the driver name to the resulting fonts.
15501
15502 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15503 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15504 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15505
15506 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15507 (QCembolden): New variables.
15508 (syms_of_xftfont): DEFSYM them.
15509 (xftfont_open): Call XftFontMatch. Don't trust the result of
15510 XftTextExtents8 if the pixel_size is less than 5.
15511
155122008-06-18 Andreas Schwab <schwab@suse.de>
15513
15514 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15515 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15516
155172008-06-18 Jason Rumney <jasonr@gnu.org>
15518
15519 * w32font.c (w32font_list, w32font_match): Add logging.
15520
15521 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15522
155232008-06-17 Chong Yidong <cyd@stupidchicken.com>
15524
15525 * font.c (font_parse_fcname): Store divider characters for
15526 unknown-spec list. For known key symbols, intern using correct
15527 symbol name.
15528
155292008-06-17 Kenichi Handa <handa@m17n.org>
15530
15531 * xfaces.c (realize_default_face): If the frame is not on window
15532 system, set the fontset of face to nil.
15533
155342008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15535
15536 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15537
155382008-06-16 Juanma Barranquero <lekktu@gmail.com>
15539
15540 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15541 (build_font_name_from_vector): Delete externs.
15542
15543 * xfaces.c (struct font_name): Don't declare.
15544
155452008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15546
15547 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15548
155492008-06-16 Chong Yidong <cyd@stupidchicken.com>
15550
15551 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15552
155532008-06-16 Juanma Barranquero <lekktu@gmail.com>
15554
15555 * font.c (Ffont_spec): Fix usage in docstring.
15556 (Ffont_face_attributes): Doc fix.
15557
155582008-06-16 Andreas Schwab <schwab@suse.de>
15559
15560 * font.c (Ffont_face_attributes): Fix definition.
15561
155622008-06-16 Jason Rumney <jasonr@gnu.org>
15563
15564 * font.h (font_style_symbolic_from_value): Remove.
15565
15566 * font.c (font_style_symbolic_from_value): Remove.
15567 (font_style_symbolic): Revert to pre 2008-06-13 version.
15568
15569 * w32font.c (w32_to_fc_weight): New function.
15570 (w32font_full_name, logfont_to_fcname): Use it.
15571
155722008-06-16 Kenichi Handa <handa@m17n.org>
15573
15574 * font.c (font_check_object): Delete it.
15575 (font_clear_cache): Check if a font-object is alive.
15576 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15577 font-object to nil.
15578 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15579 (font_at): Don't call font_check_object.
15580 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15581
155822008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15583
15584 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15585
155862008-06-16 Chong Yidong <cyd@stupidchicken.com>
15587
15588 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15589
155902008-06-15 Chong Yidong <cyd@stupidchicken.com>
15591
15592 * font.c (font_parse_fcname): Only one decimal point.
15593 (font_unparse_fcname): Handle data in family and foundry indices
15594 as symbols, not strings.
15595 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15596
15597 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15598
15599 * font.h (font_unparse_gtkname): Add prototype.
15600
156012008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15602
15603 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15604
156052008-06-15 Andreas Schwab <schwab@suse.de>
15606
15607 * font.c (font_update_drivers): Fix crash when no drivers match.
15608
156092008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15610
15611 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15612 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15613
156142008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15615
15616 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15617
156182008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15619
15620 * process.c (Fserial_process_configure, Fprocess_send_eof):
15621 Use EQ to compare Lisp_Objects.
15622
156232008-06-13 Jason Rumney <jasonr@gnu.org>
15624
15625 * w32fns.c (Fw32_select_font): Remove old font API function.
15626
15627 * w32font.c (logfont_to_fcname): New function.
15628 (Fx_select_font): New font dialog function compatible with
15629 GTK/fontconfig version.
15630
15631 * font.c (font_style_symbolic_from_value): New function.
15632 (font_style_symbolic): Use it.
15633
15634 * font.h (font_style_symbolic_from_value): Declare new function.
15635
156362008-06-13 Juanma Barranquero <lekktu@gmail.com>
15637
15638 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15639 <font-width-table>: Fix typos in docstrings.
15640
156412008-06-13 Daniel Engeler <engeler@gmail.com>
15642
15643 These changes add serial port access.
15644 * process.c: Add HAVE_SERIAL.
15645 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15646 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15647 (list_processes_1, select_wrapper, Fstop_process)
15648 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15649 (status_notify): Modify to handle serial processes.
15650 [HAVE_SERIAL] (Fserial_process_configure)
15651 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15652 New functions.
15653 * process.h (struct Lisp_Process): Add `type'.
15654 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15655 New functions.
15656 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15657 serial ports.
b71ac3dd 15658 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15659 * w32.h: Add FILE_SERIAL.
15660 (struct _child_process): Add ovl_read, ovl_write.
15661
156622008-06-13 Kenichi Handa <handa@m17n.org>
15663
15664 * dispextern.h (enum lface_attribute_index): New member
15665 LFACE_FOUNDRY_INDEX.
15666
15667 * font.c (font_score): Delete arg alternate_families. Check only
15668 weight, slant, width, and size. Ignore the difference of alias
15669 style symbols.
15670 (font_sort_entites): Adjust for the above change. Reflect the
15671 order of font-driver to scores.
15672 (font_list_entities): Don't check alternate_familes here.
15673 (font_clear_prop): Handle foundry.
15674 (font_update_lface): Don't parse "foundry-family" form here.
15675 Handle FONT_FOUNDRY_INDEX.
15676 (font_find_for_lface): Likewise. Handle alternate families here.
15677 If registry is nil, try iso8859-1 and ascii-0.
15678 (font_open_for_lface): Pay attention to size in ENTITY.
15679 (font_open_by_name): Simplify by calling font_load_for_lface.
15680 (free_font_driver_list): Delete it.
15681 (font_update_drivers): Preserve the order of backends.
15682 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15683 of font_score and font_sort_entites.
15684 (font_update_sort_order): Likewise.
15685
15686 * xfaces.c (LFACE_FOUNDRY): New macro.
15687 (check_lface_attrs): Check foundry.
15688 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15689 (merge_face_vectors): Check foundry.
15690 (merge_face_ref): Likewise.
15691 (Finternal_set_lisp_face_attribute): Likewise.
15692 (x_update_menu_appearance): Likewise.
15693 (Finternal_get_lisp_face_attribute): Likewise.
15694 (lface_hash): Likewise.
15695 (lface_same_font_attributes_p): Likewise.
15696 (x_supports_face_attributes_p): Likewise.
15697 (tty_supports_face_attributes_p): Likewise.
15698 (Finternal_set_alternative_font_family_alist): Intern strings.
15699 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15700 (realize_default_face): Set LFACE_FOUNDRY (lface).
15701
15702 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15703 font-driver at first.
15704
15705 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15706
157072008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15708
15709 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15710
157112008-06-12 Jim Meyering <meyering@redhat.com>
15712
15713 Make unexec_free handle NULL the same way free does.
15714 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15715
157162008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15717
15718 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15719 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15720 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15721 (WEAK_ALIAS): Simplify.
15722 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15723 when searching a unibyte buffer.
15724
157252008-06-12 Chong Yidong <cyd@stupidchicken.com>
15726
15727 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15728
157292008-06-12 Juanma Barranquero <lekktu@gmail.com>
15730
15731 * w32font.c: Include ctype.h.
15732
157332008-06-11 Jason Rumney <jasonr@gnu.org>
15734
15735 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15736 misreported as space.
15737 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15738 as aliases for registry iso10646-1.
15739
157402008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15741
15742 * buffer.c (clone_per_buffer_values): Skip `name'.
15743
157442008-06-11 Chong Yidong <cyd@stupidchicken.com>
15745
15746 * font.c (font_parse_fcname): Fix last change; accept decimal
15747 points in font size.
15748
157492008-06-10 Jason Rumney <jasonr@gnu.org>
15750
15751 * w32uniscribe.c (add_opentype_font_name_to_list):
15752 Skip non unicode fonts.
15753
157542008-06-10 Chong Yidong <cyd@stupidchicken.com>
15755
15756 * xfns.c (Fx_font_dialog): New function.
15757
15758 * gtkutil.c (xg_dialog_response_cb): Rename from
15759 xg_file_response_callback.
15760 (pop_down_dialog): Rename from pop_down_file_dialog.
15761 (xg_get_file_name): Callers changed.
15762 (xg_get_font_name): New function.
15763
15764 * gtkutil.h (xg_get_font_name): Insert prototype.
15765
157662008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15767
15768 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15769 x_underline_minimum_display_offset.
15770 (syms_of_xdisp): Declare it here rather than in xterm.c.
15771 * dispextern.h (underline_minimum_offset): Declare it.
15772 * w32term.c (x_draw_glyph_string): Use it.
15773 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15774 (syms_of_xterm): Don't declare it any more.
15775 (x_draw_glyph_string): Adjust to the new name.
15776
8719abec 157772008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15778
15779 * xterm.c (x_underline_minimum_display_offset): New var.
15780 (x_draw_glyph_string): Use it.
15781 (syms_of_xterm): Declare it.
15782
157832008-06-10 Chong Yidong <cyd@stupidchicken.com>
15784
15785 * font.c (font_parse_fcname): Accept GTK-style font names too.
15786
157872008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15788
15789 * dired.c (file_name_completion): Don't return t if the match is exact
15790 but with different capitalization.
15791 * minibuf.c (Ftry_completion): Simplify.
15792
15793 * window.c (Vwindow_point_insertion_type): New var.
15794 (set_window_buffer): Use it.
15795 (syms_of_window): Init and export it to Lisp.
15796
157972008-06-10 Kenichi Handa <handa@m17n.org>
15798
15799 * font.h (font_intern_prop): Prototype adjusted.
15800
15801 * font.c (font_intern_prop): New arg force_symbol.
15802 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15803 Adjust for the change of font_intern_prop.
15804
15805 * ftfont.c (ftfont_pattern_entity):
15806 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15807 (w32_registry):
15808 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15809 the change of font_intern_prop.
15810
158112008-06-09 Juanma Barranquero <lekktu@gmail.com>
15812
15813 * w32menu.c (digest_single_submenu): Declare extern.
15814
158152008-06-09 Jason Rumney <jasonr@gnu.org>
15816
15817 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15818
15819 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15820 (parse_single_submenu): Remove.
15821 (digest_single_submenu): Remove.
15822 (syms_of_w32menu): Don't initialise variables that have moved
15823 to menu.c.
15824 (set_frame_menubar): Sync with version in xmenu.c.
15825 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15826
15827 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15828 Make static again.
15829
158302008-06-09 Jason Rumney <jasonr@gnu.org>
15831
15832 Changes to w32 files related to the move of common menu code
15833 to menu.c on 2008-06-08 by Chong Yidong.
15834
15835 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15836 defs to w32gui.h.
15837 (single_keymap_panes, push_menu_item, push_menu_pane):
15838 Make globally visible.
15839
15840 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15841 (local_free, malloc_widget_value, free_widget_value)
15842 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15843 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15844 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15845 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15846 (menu_items, menu_items_allocated, menu_items_used)
15847 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15848 (init_menu_items, finish_menu_items, discard_menu_items)
15849 (grow_menu_items, push_submenu_start, push_submenu_end)
15850 (push_left_right_boundary, push_menu_pane, push_menu_item)
15851 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15852 (free_menubar_widget_tree_value, parse_single_submenu)
15853 (update_submenu_strings): Remove functions.
15854 (xmalloc_widget_value): Remove and declare extern.
15855
15856 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15857 (OBJ1): Build it.
15858
15859 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15860 (local_heap, local_alloc, local_free, malloc_widget_value)
15861 (free_widget_value): Define here.
15862
158632008-06-09 Kenichi Handa <handa@m17n.org>
15864
15865 * font.h (Qascii_0): Extern it.
15866
15867 * font.c (Qascii_0): New variable.
15868 (syms_of_font): DEFSYM it.
15869 (font_open_by_name): If the registry "iso8859-1" fails, try also
15870 "ascii-0".
15871
15872 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15873
158742008-06-08 Kenichi Handa <handa@m17n.org>
15875
15876 * .gdbinit (xfont): New command.
15877
158782008-06-08 Andreas Schwab <schwab@suse.de>
15879
15880 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15881 * Makefile.in (menu.o): Update dependencies.
15882
15883 * Makefile.in (obj): Always add menu.o.
15884 * emacs.c (main): Always call syms_of_menu.
15885 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15886
158872008-06-08 Chong Yidong <cyd@stupidchicken.com>
15888
15889 * Makefile.in: Compile menu.c.
15890
15891 * lisp.h: Declare syms_of_menu.
15892
15893 * emacs.c (main): Call syms_of_menu.
15894
15895 * keyboard.h: Relocate platform-independent menu definitions from
15896 xmenu.c.
15897
15898 * menu.c: New file. Relocate platform-independent menu
15899 definitions from xmenu.c. Suggested by Adrian Robert.
15900
15901 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15902 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15903 (menu_items_used, menu_items_n_panes)
15904 (menu_items_submenu_depth): Move to keyboard.h.
15905 (init_menu_items, finish_menu_items, unuse_menu_items)
15906 (discard_menu_items, restore_menu_items, save_menu_items)
15907 (grow_menu_items, push_submenu_start, push_submenu_end)
15908 (push_left_right_boundary, push_menu_pane, push_menu_item)
15909 (keymap_panes, single_keymap_panes, single_menu_item)
15910 (list_of_panes, list_of_items, find_and_call_menu_selection)
15911 (xmalloc_widget_value, free_menubar_widget_value_tree)
15912 (parse_single_submenu, digest_single_submenu)
15913 (update_submenu_strings): Move to menu.c.
15914
159152008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15916
15917 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15918
159192008-06-06 Miles Bader <miles@gnu.org>
15920
15921 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15922 face, not frame default.
15923
159242008-06-05 Martin Rudalics <rudalics@gmx.at>
15925
15926 * window.c (pop_up_windows, pop_up_frames)
15927 (display_buffer_reuse_frames, Vpop_up_frame_function)
15928 (Vdisplay_buffer_function, Veven_window_heights)
15929 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15930 (Vspecial_display_function, Vsame_window_buffer_names)
15931 (Vsame_window_regexps, split_height_threshold)
15932 (Vsplit_window_preferred_function): Move those vars to window.el.
15933 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15934 (Fdisplay_buffer): Move those functions to window.el.
15935 (syms_of_window): Remove corresponding declarations.
15936 (display_buffer): New function.
15937 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15938 * dispnew.c (Flast_nonminibuf_frame): New function.
15939 * buffer.c (Fpop_to_buffer): Move to window.el.
15940
159412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15942
15943 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15944
159452008-06-05 Kenichi Handa <handa@m17n.org>
15946
15947 * coding.c (detect_coding): Fix previous change.
15948 (detect_coding_system): Likewise.
15949
159502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15951
15952 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15953
15954 * keymap.c (Vminibuffer_local_filename_must_match_map):
15955 Rename from Vminibuffer_local_must_match_filename_map.
15956 (syms_of_keymap):
15957 * minibuf.c (Fcompleting_read): Adjust accordingly.
15958 * commands.h: Rename declaration as well.
15959
159602008-06-05 Kenichi Handa <handa@m17n.org>
15961
15962 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15963 family name.
15964 (Ffont_put): Likewise.
15965
15966 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15967 current font-spec.
15968
15969 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15970 is unspecified.
15971
15972 * xfaces.c (realize_x_face): If the font-related face attributes
15973 are the same as those of default face, realize a new fontset from
15974 default->fontset.
15975 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15976
159772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15978
15979 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15980 (move_it_in_display_line): New wrapper.
15981
15982 * window.c (window_scroll_pixel_based_preserve_x)
15983 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15984 (window_scroll_pixel_based, window_scroll_line_based):
15985 Use them to preserve column positions.
15986 (syms_of_window): Initialize them.
15987
15988 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15989 (HPOS . VPOS) pair.
15990
15991 * dispextern.h (move_it_in_display_line): Declare.
15992
159932008-06-05 Juanma Barranquero <lekktu@gmail.com>
15994
15995 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15996 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15997 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15998
159992008-06-04 Juanma Barranquero <lekktu@gmail.com>
16000
16001 * window.c (Fset_window_parameter): Doc fix.
16002 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16003
160042008-06-04 Joakim Verona <joakim@verona.se>
16005
16006 * window.h (struct window): Add new member window_parameters.
16007
16008 * window.c (Fwindow_parameters, Fwindow_parameter)
16009 (Fset_window_parameter): New defuns.
16010 (syms_of_window): Defsubr the new defuns.
16011 (make_window): Initialize window_parameters to nil.
16012
160132008-06-04 John Paul Wallington <jpw@pobox.com>
16014
16015 * eval.c (Fdefmacro): Doc fix.
16016
160172008-06-04 Kenichi Handa <handa@m17n.org>
16018
16019 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16020 Be sure to call setup_coding_system when we find a proper coding system.
16021 (detect_coding_system): Fix handling of coding->head_ascii.
16022
160232008-06-03 Andreas Schwab <schwab@suse.de>
16024
16025 * font.c (font_prop_validate_spacing): Fix last change.
16026
160272008-06-03 Kenichi Handa <handa@m17n.org>
16028
16029 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16030 (font_parse_fcname): Fix handling of unknown key.
16031
16032 * xfont.c (xfont_list): Try an alias.
16033
16034 * charset.c (char_charset): Return NULL if the arg charset_list is
16035 specified and C doesn't belong to any of them.
16036
160372008-06-02 Chip Coldwell <coldwell@redhat.com>
16038
16039 * font.c (font_pixel_size): Don't take cdr of an integer.
16040
160412008-06-02 Jim Meyering <meyering@redhat.com>
16042
16043 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16044 * alloc.c (xfree): Return right away for a NULL arg.
16045 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16046 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16047 * mac.c (create_apple_event_from_event_ref): Likewise.
16048 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16049 Likewise.
16050 * doprnt.c (doprnt1): Likewise.
16051 * frame.c (frame): Likewise.
16052 * keyboard.c (wipe_kboard): Likewise.
16053 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16054 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16055 * term.c (tty_default_color_capabilities, maybe_fatal)
16056 (delete_tty): Likewise.
16057 * w16select.c (string): Likewise.
16058 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16059 * w32bdf.c (w32_free_bdf_font): Likewise.
16060 * w32fns.c (w32_unload_font): Likewise.
16061 * w32font.c (w32font_close): Likewise.
16062 * window.c (size_window): Likewise.
16063 * xselect.c (receive_incremental_selection): Likewise.
16064 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16065 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16066 * w32.c (stat): Likewise.
16067
16068 Remove useless if-before-free tests.
16069 * editfns.c (Fset_time_zone_rule): Likewise.
16070 * lread.c (nosuffix): Likewise.
16071 * ralloc.c (get_bloc): Likewise.
16072 * regex.c (reg_free): Likewise.
16073 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16074 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16075 * xsmfns.c (smc_save_yourself_CB): Likewise.
16076
160772008-06-02 Kenichi Handa <handa@m17n.org>
16078
16079 * font.c (font_find_for_lface): Handle float font size.
16080 (font_open_for_lface): Likewise.
16081
16082 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16083 comparing the properties.
16084
160852008-06-01 Jason Rumney <jasonr@gnu.org>
16086
16087 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16088 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16089 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16090 Don't add empty script list.
16091 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16092
160932008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16094
16095 * Makefile.in (dot, dotdot): Remove, update users.
16096 ".." has been used elsewhere in the file for a long time.
16097 (LIBXT_STATIC): Remove conditional based on unused variable.
16098
160992008-06-01 Miles Bader <miles@gnu.org>
16100
16101 * xfaces.c (Vface_remapping_alist): New variable.
16102 (syms_of_xfaces): Initialize it.
16103 (enum named_merge_point_kind): New type.
16104 (struct named_merge_point): Add `named_merge_point_kind' field.
16105 (push_named_merge_point): Make cycle detection respect different
16106 named-merge-point kinds.
16107 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16108 Remove face-name alias resolution.
16109 (lface_from_face_name): New definition using
16110 `lface_from_face_name_no_resolve'.
16111 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16112 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16113 (get_lface_attributes): New definition that layers face-remapping on
16114 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16115 (lookup_basic_face): New function.
16116 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16117 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16118 `get_lface_attributes'.
16119 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16120 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16121 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16122
16123 * xdisp.c (init_iterator): Pass base_face_id through
16124 `lookup_basic_face' when we actually use it as a face-id.
16125 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16126 DEFAULT_FACE_ID.
16127
16128 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16129 lookup the initial face-id.
16130
16131 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16132
161332008-06-01 Juanma Barranquero <lekktu@gmail.com>
16134
16135 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16136 (Fremove_text_properties): Fix typos in docstrings.
16137
161382008-05-31 Kenichi Handa <handa@m17n.org>
16139
16140 * font.c (font_list_entities): Fix the car part of data to be
16141 stored in the cache.
16142
16143 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16144
161452008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16146
16147 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16148 Add a `test' argument so another predicate than `equal' can be used.
16149 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16150 (map_char_table): Remove unused vars `c' and `i'.
16151 * lisp.h (Foptimize_char_table): Adjust declaration.
16152 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16153
161542008-05-30 Kenichi Handa <handa@m17n.org>
16155
16156 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16157 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16158 defined.
16159
161602008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16161
16162 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16163 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16164 frame-local settings for the same variable.
16165
161662008-05-30 Kenichi Handa <handa@m17n.org>
16167
16168 * fontset.c (Ffont_info): Move to font.c.
16169 (syms_of_fontset): Delete defsubr of Sfont_info.
16170
16171 * font.c (font_style_to_value, font_score): Delete casting of the
16172 args to xstcasecmp.
16173 (register_font_driver): Increment num_font_drivers only when
16174 registering the driver globally.
16175 (Ffont_info): Move from fontset.c. Handle a font object too.
16176 (syms_of_font): Defsubr Sfont_info.
16177
161782008-05-29 Kenichi Handa <handa@m17n.org>
16179
16180 * coding.h (enum define_coding_utf8_arg_index): New enum.
16181 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16182 coding_attr_utf_bom.
16183 (enum utf_bom_type): Rename from utf_16_bom_type.
16184 (struct utf_16_spec): Adjust for the above change.
16185 (struct coding_system): Add utf_8_bom in `spec' union.
16186
16187 * coding.c (CODING_UTF_8_BOM): New macro.
16188 (enum coding_category): Delete coding_category_utf_8, add
16189 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16190 coding_category_utf_8_sig.
16191 (CATEGORY_MASK_UTF_8): Delete it.
16192 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16193 (CATEGORY_MASK_UTF_8_SIG): New macros.
16194 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16195 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16196 CATEGORY_MASK_UTF_8_SIG.
16197 (CATEGORY_MASK_UTF_8): New macro.
16198 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16199 (detect_coding_utf_8): Check BOM.
16200 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16201 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16202 (encode_coding_utf_16): Likewise.
16203 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16204 (detect_coding, detect_coding_system): Handle utf-8-auto.
16205 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16206 (syms_of_coding): Fix setting up of Vcoding_category_table.
16207
162082008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16209
16210 * process.c (Faccept_process_output): If `millisec' is non-nil,
16211 `seconds' default to 0.
16212 (wait_reading_process_output): Also return non-nil if we read output
16213 from a non-running process.
16214
162152008-05-29 Jason Rumney <jasonr@gnu.org>
16216
16217 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16218 `raster' specified.
16219 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16220 in the uniscribe backend, but disallow any font that has no
16221 unicode subrange support.
16222
162232008-05-29 Juanma Barranquero <lekktu@gmail.com>
16224
16225 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16226 Fix typos in docstrings.
16227
162282008-05-29 Kenichi Handa <handa@m17n.org>
16229
16230 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16231 (Fx_family_fonts): Set frame correctly.
16232
162332008-05-28 Jason Rumney <jasonr@gnu.org>
16234
16235 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16236
162372008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16238
16239 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16240 calling build_annotations.
16241
162422008-05-28 Juanma Barranquero <lekktu@gmail.com>
16243
16244 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16245 (Fencode_coding_string):
16246 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16247 <latin-extra-code-table>: Fix typos in docstrings.
16248 (syms_of_coding) <coding-system-alist>: Doc fix.
16249 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16250
162512008-05-28 Kenichi Handa <handa@m17n.org>
16252
16253 * fontset.c (Ffont_info): Don't call font_close_object.
16254
16255 * font.c (font_parse_family_registry): Use Ffont_put to validate
16256 foundry and family.
16257 (font_delete_unmatched): Don't check spacing.
16258 (font_list_entities): Add spacing to the spec to list fonts.
16259
16260 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16261 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16262
16263 * coding.c (encode_coding_raw_text): Fix previous change.
16264 (encode_coding_object): When the dst_object is a buffer and is
16265 different from src_object, move gap to PT.
16266
162672008-05-27 Chong Yidong <cyd@stupidchicken.com>
16268
16269 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16270
162712008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16272
16273 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16274 all branches. Compute it differently.
16275
16276 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16277
162782008-05-27 Juanma Barranquero <lekktu@gmail.com>
16279
16280 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16281 into "else if () ... else ...".
16282
162832008-05-27 Jason Rumney <jasonr@gnu.org>
16284
16285 * w32font.c (w32font_open_internal): Determine if glyph indices
16286 are likely to work here.
16287
162882008-05-27 Chong Yidong <cyd@stupidchicken.com>
16289
16290 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16291 draw overlap glyphs with appropriate highlighting.
16292
162932008-05-27 Kenichi Handa <handa@m17n.org>
16294
16295 * xfont.c (xfont_open): Fix calculation of font->average_width.
16296
162972008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16298
16299 * casefiddle.c (casify_object): Try to guess better whether the
16300 argument is a byte or a char.
16301
163022008-05-26 Andreas Schwab <schwab@suse.de>
16303
16304 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16305 Always send multiples of format size.
16306
16307 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16308
163092008-05-26 Jason Rumney <jasonr@gnu.org>
16310
16311 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16312 (compute_metrics): Don't set failure if we just cleared the cache.
16313 (w32_weight_table): Remove unused variable.
16314 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16315 backwards compatibility.
16316
163172008-05-25 Kenichi Handa <handa@m17n.org>
16318
16319 * w32term.c (x_draw_glyph_string):
16320 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16321
16322 * xfaces.c: Delete unused function prototypes.
16323 (xstrlwr, font_frame): Delete them.
16324 (clear_face_cache): Delete unused variable.
16325
16326 * xftfont.c (xftfont_open): Delete unused variable.
16327 If underline_thickness is not 1, adjust underline_position.
16328
16329 * ftxfont.c (ftxfont_open): Delete unused variable.
16330
16331 * fontset.c (face_for_char): Optimize for the case of no charset
16332 property.
16333
16334 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16335 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16336 (otf_open, font_otf_capability, generate_otf_features)
16337 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16338 Comment out by surrounding "#if 0" and "#endif" for the moment.
16339 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16340 (syms_of_font): Codes for accessing above commented out.
16341
163422008-05-24 Eli Zaretskii <eliz@gnu.org>
16343
16344 * w32proc.c: Include dispextern.h.
16345
16346 * w32.c: Include dispextern.h.
16347
163482008-05-23 Juanma Barranquero <lekktu@gmail.com>
16349
16350 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16351 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16352 Fix typos in docstrings.
16353
163542008-05-23 Jason Rumney <jasonr@gnu.org>
16355
16356 * xsmfns.c: Remove includes that are already included by config.h.
16357
163582008-05-23 Kenichi Handa <handa@m17n.org>
16359
16360 * charset.c (Qemacs, charset_emacs): New variables.
16361 (char_charset): Fix for non-Unicode characters.
16362 (syms_of_charset): Define charset_emacs.
16363
16364 * w32term.c (x_draw_glyph_string): Be sure to update
16365 s->underline_thickness and s->underline_position. Be sure to draw
16366 underline within the current line area.
16367
16368 * xterm.c (x_draw_glyph_string): Be sure to update
16369 s->underline_thickness and s->underline_position. Be sure to draw
16370 underline within the current line area.
16371
16372 * fontset.c: Delete unused variables and add casting for char *
16373 throughout the file.
16374 (fontset_font): Try the fallback fonts of the current fontset
16375 before consulting the default fontset.
16376
16377 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16378
16379 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16380
163812008-05-22 Jason Rumney <jasonr@gnu.org>
16382
16383 * font.c: Don't include strings.h.
16384
16385 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16386
16387 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16388 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16389 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16390 to call xstrcasecmp.
16391
16392 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16393
16394 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16395
16396 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16397
16398 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16399
164002008-05-22 Kenichi Handa <handa@m17n.org>
16401
16402 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16403
16404 * font.c (font_prop_validate_style): Adjust for the format
16405 change of font_style_table.
16406
16407 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16408 two args.
16409
16410 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16411 two args.
16412
164132008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16414
16415 * minibuf.c (keys_of_minibuf): Delete.
16416 * lisp.h (keys_of_minibuf): Delete.
16417 * emacs.c (main): Don't call keys_of_minibuf.
16418
164192008-05-22 Kenichi Handa <handa@m17n.org>
16420
16421 * ftfont.c (ftfont_resolve_generic_family): Rename from
16422 ftfont_list_generic_family. Return a single family for each
16423 generic family.
16424 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16425 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16426 Call font_add_log.
16427 (ftfont_match): Call font_add_log.
16428
16429 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16430 (FONT_DEBUG): Define it.
16431 (font_add_log): Extern it.
16432 (font_assert): Rename from xassert.
16433
16434 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16435 (xfont_list_family): Call font_add_log.
16436 (xfont_match): Likewise.
16437 (memq_no_quit): Delete.
16438
16439 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16440 call of Ffont_xlfd_name.
16441
16442 * xfaces.c (struct table_entry, slant_table, weight_table)
16443 (swidth_table): Move to font.c.
16444
16445 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16446 xassert are changed to font_assert. Delete many unused variables.
16447 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16448 New variables.
16449 (struct table_entry): Move from xfaces.c and modified.
16450 (weight_table, slant_table, width_table): Move from xfaces.c and
16451 contents adjusted for the change of struct table_entry.
16452 (font_style_to_value, font_style_symbolic): Adjust for the
16453 format change of font_style_table.
16454 (font_parse_family_registry): Don't overwrite existing foundry and
16455 family of font_spec.
16456 (font_score): Fix calculation of diff for sizes.
16457 (font_sort_entites): Call font_add_log.
16458 (font_delete_unmatched): Return a newly created list.
16459 (font_list_entities): Fix previous change. Call font_add_log.
16460 (font_matching_entity, font_open_entity, font_close_entity):
16461 Call font_add_log.
16462 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16463 (Finternal_set_font_style_table): Delete.
16464 (BUILD_STYLE_TABLE): New macro.
16465 (build_style_table): New function.
16466 (Vfont_log, font_log_env_checked): New variables.
16467 (font_add_log): New function.
16468 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16469 Declare Lisp variables "font-weight-table", "font-slant-table",
16470 "font-width-table", and "font-log". Initialize font_style_table.
16471
164722008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16473
16474 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16475
164762008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16477 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16478
16479 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16480 (Vframe_alpha_lower_limit): New variable.
16481 (x_set_alpha): New function.
16482
16483 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16484
16485 * xfns.c (x-create-frame, Qalpha):
16486 Initialize the frame parameter `alpha'.
16487 * xterm.c (OPAQUE, OPACITY): New.
16488 (x_set_frame_alpha): New function.
16489 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16490
16491 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16492 * w32fns.c (w32_frame_parm_handlers): Likewise.
16493
164942008-05-20 Jason Rumney <jasonr@gnu.org>
16495
16496 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16497 truetype fonts to opentype list.
16498
164992008-05-20 Juanma Barranquero <lekktu@gmail.com>
16500
16501 * fontset.c (Ffontset_info): Doc fix.
16502 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16503 <ignore-relative-composition>: Fix typos in docstrings.
16504
16505 * font.c (syms-of-font) <font-encoding-alist>:
16506 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16507 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16508 (Ffont_otf_alternates): Doc fixes.
16509
165102008-05-20 Kenichi Handa <handa@m17n.org>
16511
16512 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16513 font.h through out the file.
16514 (FONT_DRIVERS): Rename from FONTOBJ.
16515 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16516 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16517
16518 * emacs.c (main): Call syms_of_font unconditionally.
16519
16520 * font.h (find_font_encoding): Extern it.
16521
16522 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16523 fontset.c.
194d44e7 16524 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16525 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16526 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16527 only when HAVE_WINDOW_SYSTEM is defined.
16528 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16529 when HAVE_WINDOW_SYSTEM is defined.
16530
16531 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16532 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16533
16534 * xfaces.c: Include font.h unconditionally.
16535 (merge_face_ref, merge_face_vectors)
16536 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16537
165382008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16539
16540 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16541 indirect_variable.
16542 * eval.c (lisp_indirect_variable): New fun.
16543 (Fuser_variable_p): Use it.
16544
165452008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16546
16547 * lisp.h (indirect_variable):
16548 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16549 Use Lisp_Symbol pointers rather than Lisp_Object.
16550 Adjust callers.
16551 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16552 To this end, change calling-convention.
16553
16554 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16555 if some non-hidden buffers are selected by string&pred.
16556
165572008-05-19 Chong Yidong <cyd@stupidchicken.com>
16558
16559 * process.c (wait_reading_process_output): Always check status
16560 when in batch mode.
16561
165622008-05-19 Kenichi Handa <handa@m17n.org>
16563
16564 * font.c (font_list_entities): Fix handling of cache.
16565 (font_matching_entity): Likewise.
16566
16567 * ftfont.c (cs_iso8859_1): Delete.
16568 (ft_face_cache): New variable.
16569 (struct ftfont_info): New member fc_charset_idx.
16570 (ftfont_build_basic_charsets): Delete.
16571 (fc_charset_table): New variable.
16572 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16573 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16574 Callers changed.
16575 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16576 (ftfont_spec_pattern): New argument fc_charset_idx.
16577 Check registry more rigidly. Change callers.
16578 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16579 change of :font-entity property of the font.
16580
16581 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16582 property of the font.
16583
165842008-05-18 Juanma Barranquero <lekktu@gmail.com>
16585
16586 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16587 (Funencodable_char_position, Fcheck_coding_systems_region)
16588 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16589 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16590 (Ffind_operation_coding_system, Fset_coding_system_priority)
16591 (Fcoding_system_eol_type): Doc fixes.
16592
165932008-05-17 Glenn Morris <rgm@gnu.org>
16594
16595 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16596
165972008-05-16 Eli Zaretskii <eliz@gnu.org>
16598
16599 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16600 and st_gid.
16601
16602 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16603 HAVE_WINDOW_SYSTEM is not defined.
16604
16605 * xfaces.c (merge_face_ref, merge_face_vectors)
16606 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16607 HAVE_WINDOW_SYSTEM is defined.
16608 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16609
166102008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16611
16612 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16613
166142008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16615
16616 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16617
166182008-05-15 Kenichi Handa <handa@m17n.org>
16619
16620 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16621 preference.
16622
166232008-05-15 Glenn Morris <rgm@gnu.org>
16624
16625 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16626
166272008-05-15 Chong Yidong <cyd@stupidchicken.com>
16628
16629 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16630 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16631
16632 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16633
166342008-05-15 Kenichi Handa <handa@m17n.org>
16635
16636 * ftfont.c (ftfont_list): Downcase family name to check generic
16637 families.
16638
16639 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16640 font-spec for QCfont value.
16641
16642 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16643 buffer. Check the return value of it.
16644
166452008-05-14 Jason Rumney <jasonr@gnu.org>
16646
16647 * w32term.c (w32_get_glyph_overhangs): Remove.
16648 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16649
166502008-05-14 Kenichi Handa <handa@m17n.org>
16651
16652 * font.c (font_prop_validate): Make nil a valid value.
16653 (font_clear_cache): Check if the cached vector of entities is nil
16654 or not.
16655
166562008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16657
16658 * emacs.c (main_thread): Conditionalize on
16659 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16660 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16661
16662 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16663 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16664 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16665
166662008-05-14 Kenichi Handa <handa@m17n.org>
16667
16668 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16669 has no corresponding coding system.
16670
166712008-05-14 Jason Rumney <jasonr@gnu.org>
16672
16673 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16674
16675 * w32font.h (w32font_open_internal): Update declaration.
16676
16677 * w32font.c (w32font_open_internal): Change last argument from
16678 w32font_info struct to font object. Fill in font object from
16679 font_entity. Get Outline metrics if possible. Use them to
16680 calculate underline position and thickness. Use xlfd name as name
16681 property. Don't set codepage.
16682 (w32font_open): Pass font_object to w32font_open_internal. Don't
16683 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16684 (w32font_draw): Use s->font.
16685 (clear_cached_metrics): Don't clear non-existent blocks.
16686
16687 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16688 font was not found.
16689 (x_draw_glyph_string): Use underline position and thickness from font.
16690
16691 * w32uniscribe.c (uniscribe_open): Pass font_object to
16692 w32font_open_internal.
16693
166942008-05-14 Kenichi Handa <handa@m17n.org>
16695
16696 These changes are to delete all legacy font-handling codes, and
16697 make Emacs use only font-backends.
16698
16699 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16700 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16701
16702 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16703
16704 * charset.h (Vcharset_non_preferred_head)
16705 (Vcurrent_iso639_language): Extern them.
16706
16707 * charset.c (Vcharset_non_preferred_head): New variable.
16708 (Vcurrent_iso639_language): New variable.
16709 (syms_of_charset): Declare it as a Lisp variable.
16710 (char_charset): Don't check non preferred charsets. As a last
16711 resort, return charset_unicode.
16712 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16713
16714 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16715 conditionals. Don't check enable_font_backend. Delete all codes
16716 used only when USE_FONT_BACKEND is not defined.
16717
16718 * dispextern.h (struct glyph_string): Change type of `font' to
16719 `struct font *'.
16720 (struct glyph_string): New member underline_position and
16721 underline_thickness.
16722 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16723 (struct face): Change type of `font' to `struct font *'. Remove
16724 members `font_name', `font_info_id'.
16725 (per_char_metric, encode_char): Delete externs.
16726 (calc_pixel_width_or_height): Adjust the prototype.
16727
16728 * emacs.c (enable_font_backend): Delete extern.
16729 (main): Don't set enable_font_backend. Don't check the command
16730 line argument "-disable-font-backend".
16731
16732 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16733 (enum font_property_index): New members FONT_DPI_INDEX,
16734 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16735 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16736 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16737 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16738 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16739 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16740 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16741 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16742 (struct font_spec, struct font_entity): New structs.
16743 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16744 (struct font): Many members from old "struct font_info" moved to
16745 here. Members font and entity deleted.
16746 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16747 the new font-related objects.
16748 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16749 (CHECK_FONT_GET_OBJECT): Likewise.
16750 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16751 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16752 (struct font_driver): New members case_sensitive anc check. Type
16753 of the member list and open changed.
16754 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16755 (font_symbolic_width, font_find_object, font_get_spec)
16756 (font_set_lface_from_name): Delete extern.
16757 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16758
16759 * font.c: Include <strings.h>.
16760 (enable_font_backend): Delete it.
16761 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16762 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16763 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16764 (null_string): Delete it.
16765 (null_vector): Make it static.
16766 (font_family_alist): Delete it.
16767 (Qnormal): Extern it.
16768 (QCextra, QClanguage): Delete it.
16769 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16770 (font_make_spec, font_make_entity, font_make_object)
16771 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16772 the string. Callers changed.
16773 (font_pixel_size): Adjusted for the format change of font-related
16774 objects.
16775 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16776 (font_style_to_value, font_style_symbolic): New function.
16777 (build_font_family_alist): Delete it.
16778 (font_registry_charsets): Use Fassoc_string instead of
16779 assq_no_quit.
16780 (font_prop_validate_symbol): Don't return null_string.
16781 (font_prop_validate_style): Adjusted for the change of
16782 style-related values in a font vector.
16783 (font_property_table): Delete entries for QClanguage and
16784 QCantialias, add entries for QCavgwidth.
16785 (get_font_prop_index): Delete the 2nd argument FROM.
16786 (font_prop_validate): Arguments changed.
16787 (font_put_extra): Adjusted for the change of font-related objects.
16788 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16789 (font_parse_fcname, font_unparse_fcname)
16790 (font_prepare_composition): Likewise.
16791 (font_parse_family_registry): Renamed from font_merge_old_spec.
16792 (otf_open): Delete the 1st arg entity.
16793 (font_otf_capability): Adjusted for the above change.
16794 (font_score): New arg alternate_families. Adjusted for the change
16795 of font-related objects.
16796 (font_sort_entites): New arg best_only.
16797 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16798 Delete them.
16799 (font_match_p): Check alternate families.
16800 (font_find_object): Delete it.
16801 (font_check_object): New function.
16802 (font_clear_cache): Adjusted for the change of font-related objects.
16803 (font_delete_unmatched): New arg.
16804 (font_list_entities): Call font_driver->list with a spec that
16805 doesn't specify style-related properties.
16806 (font_matching_entity): Arguments changed. Caller changed.
16807 (font_open_entity): Adjusted for the change of font-related objects.
16808 (font_close_object, font_has_char, font_encode_char)
16809 (font_get_name, font_get_spec): Likewise.
16810 (font_spec_from_name, font_clear_prop, font_update_lface):
16811 New functions.
16812 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16813 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16814 (font_at): Adjusted for the change of font-related objects.
16815 (font_range): New function.
16816 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16817 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16818 (Fcopy_font_spec, Fmerge_font_spec): New function.
16819 (Ffont_family_list): Renamed from list-families.
16820 (Finternal_set_font_style_table): Arguments changed.
16821 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16822 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16823 change of font-related objects.
16824 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16825
16826 * fontset.h (struct font_info): Delete it. Most members go to
16827 struct font.
16828 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16829 (enum FONT_SPEC_INDEX): Delete it.
16830 (font_info, list_fonts_func, load_font_func, query_font_func)
16831 (set_frame_fontset_func, find_ccl_program_func)
16832 (get_font_repertory_func, new_fontset_from_font_name): Delete
16833 externs.
16834 (fontset_from_font_name): Extern it.
16835 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16836 (FONT_INFO_FROM_FACE): Deleted.
16837 (face_for_font): Adjust prototype.
16838
16839 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16840 conditionals. Don't check enable_font_backend. Delete all codes
16841 used only when USE_FONT_BACKEND is not defined.
16842 (get_font_info_func, list_font_func, load_font_func)
16843 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16844 (get_font_repertory_func): Delete them.
16845 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16846 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16847 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16848 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16849 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16850 (fontset_compare_rfontdef): New function.
16851 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16852 rfont-defs by qsort. Adjusted for the change of font-group vector.
16853 (load_font_get_repertory): Deleted.
16854 (fontset_find_font): Use new macros to ref/set elements of
16855 font-def and rfont-def.
16856 (fontset_font): Fix the timing of remembering that no font for C.
16857 (free_face_fontset): Do nothing if the face has no fontset.
16858 (face_suitable_for_char_p): Use new macros to ref/set elements of
16859 rfont-def.
16860 (face_for_char): Likewise. Call face_for_char with font_object.
16861 (fs_load_font): Delete. Delete #pragma surrounding it.
16862 (fs_query_fontset): Use strcasecmp instead of strcmp.
16863 (generate_ascii_font_name): Adjusted for the format change of
16864 font-spec.
16865 (Fset_fontset_font): Likewise. Use new macros to set elements of
16866 font-def.
16867 (Fnew_fontset): Use font_unparse_xlfd to generate
16868 FONTSET_ASCII (fontset).
16869 (new_fontset_from_font_name): Deleted.
16870 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16871 a fontset is already created for the font. FIx updating of
16872 Vfontset_alias_alist.
16873 (fontset_ascii_font): Deleted.
16874 (Ffont_info): Adjusted for the format change of font-spec.
16875 (Finternal_char_font): Likewise.
16876 (Ffontset_info): Likewise.
16877 (syms_of_fontset): Don't check load_font_func.
16878
16879 * fns.c (internal_equal): Handle PREV_FONT.
16880
16881 * frame.h: Delete USE_FONT_BACKEND conditional.
16882
16883 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16884 conditionals. Don't check enable_font_backend. Delete all codes
16885 used only when USE_FONT_BACKEND is not defined.
16886 (x_set_font): Call x_new_font, not x_new_fontset2.
16887 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16888 already set for the frame.
16889
16890 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16891 a font-entity by font_make_entity. Use font_intern_prop instead
16892 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16893 font property. If a font is scalable, set avgwidth property to 0.
16894 Set font-entity property by font_put_extra.
16895 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16896 (ffont_driver): Adjusted for the change of struct font_driver.
16897 (ftfont_spec_pattern): New function.
16898 (ftfont_list): Return a list, not vector.
16899 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16900 (ftfont_list_family): Don't downcase names.
16901 (ftfont_free_entity): Deleted.
16902 (ftfont_open): Return a font-object. Adjusted for the change of
16903 struct font. Get underline_thickness and underline_position from
16904 font property. Don't update dpyinfo->smallest_font_height and
16905 dpyinfo->smallest_char_width.
16906 (ftfont_close): Don't free `struct font'.
16907 (ftfont_has_char): Adjusted for the format change of font-entity.
16908 (ftfont_encode_char, ftfont_text_extents): Likewise.
16909
16910 * ftxfont.c (ftxfont_list): Return a list, not vector.
16911 (ftxfont_open): Return a font-object. Adjusted for the change of
16912 struct font. Get underline_thickness and underline_position from
16913 font property. Don't update dpyinfo->smallest_font_height and
16914 dpyinfo->smallest_char_width.
16915 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16916 (ftxfont_draw): Adjusted for the change of struct font.
16917
16918 * image.c (image_ascent): Don't include "charset.h". Include
16919 "character.h" and "font.h".
16920
16921 * lisp.h (enum pvec_type): New member PREV_FONT.
16922 (Fassoc_string): EXFUN it.
16923
16924 * print.c: Include font.h.
16925 (print_object): Handle font-related objects.
16926
16927 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16928 conditionals. Don't check enable_font_backend. Delete all codes
16929 used only when USE_FONT_BACKEND is not defined.
16930 (handle_auto_composed_prop): Do nothing if it->f is not on a
16931 window system. Check how many following characters can be
16932 displayed by the same font.
16933 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16934 'struct font *'.
16935 (get_char_face_and_encoding): Assign the whole encoding task to
16936 the `encode-char' method of a font driver.
16937 (fill_composite_glyph_string): Adjusted for the change of `struct
16938 face' and `struct glyph_string'.
16939 (fill_glyph_string): Likewise.
16940 (get_per_char_metric): Arguments changed.
16941 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16942 and `struct glyph_string'.
16943 (produce_stretch_glyph, calc_line_height_property)
16944 (x_produce_glyphs): Likewise.
16945
16946 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16947 conditionals. Don't check enable_font_backend. Delete all codes
16948 used only when USE_FONT_BACKEND is not defined. Use
16949 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16950 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16951 (Qp): Extern them.
16952 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16953 Deleted.
16954 (struct font_name): Deleted.
16955 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16956 (compare_fonts_by_sort_order): New function.
16957 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16958 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16959 Deleted.
16960 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16961 compare_fonts_by_sort_order.
16962 (Fx_font_family_list): Call Ffont_family_list.
16963 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16964 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16965 (face_symbolic_slant, face_symbolic_swidth)
16966 (split_font_name_into_vector, build_font_name_from_vector)
16967 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16968 (font_rescale_ratio, split_font_name, build_font_name)
16969 (free_font_names, sort_fonts, x_face_list_fonts)
16970 (face_font_available_p, sorted_font_list, cmp_font_names)
16971 (font_list_1, concat_font_list, font_list, remove_duplicates):
16972 Deleted.
16973 (Fx_list_fonts): Use Ffont_list.
16974 (LFACE_AVGWIDTH): Deleted.
16975 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16976 by FONTP.
16977 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16978 (set_lface_from_font_name): Delete it.
16979 (set_lface_from_font): Renamed from
16980 set_lface_from_font_and_fontset. Caller changed. Don't set
16981 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16982 for face.
16983 (merge_face_vectors): Copy font-spec if necessary.
16984 Clear properties of the font-spec if necessary.
16985 (merge_face_ref): Clear properties of the font-spec if necessary.
16986 (Finternal_set_lisp_face_attribute): Likewise.
16987 (set_font_frame_param): Use font_load_for_lface to load a
16988 font-object, and call Fmodify_frame_parameters with it.
16989 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16990 font name by Ffont_xlfd_name.
16991 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16992 QCslant, and QCwidth.
16993 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16994 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16995 Compare fonts by EQ.
16996 (lookup_non_ascii_face): Deleted.
16997 (face_for_font): The 2nd argument changed.
16998 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16999 Check atomic font properties by case insensitive.
17000 (realize_non_ascii_face): Set face->overstrike correctly.
17001 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17002 (dump_realized_face): Get font name from
17003 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17004
17005 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17006 conditionals. Don't check enable_font_backend. Delete all codes
17007 used only when USE_FONT_BACKEND is not defined.
17008 (xic_create_xfontset): Original code deleted and renamed from
17009 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17010 (x_make_gc): Don't set GCFont in GCs.
17011 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17012 opened by "fixed".
17013 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17014 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17015 get_font_repertory_func.
17016
17017 * xfont.c: Include <stdlib.h> and "ccl.h".
17018 (struct xfont_info): New structure.
17019 (xfont_query_font): Deleted.
17020 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17021 moved from xterm.c.
17022 (xfont_driver): Adjusted for the change of struct font_driver.
17023 (compare_font_names): New function.
17024 (xfont_list_pattern): Sort font names case insensitively. Make
17025 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17026 (xfont_list): Return a list, not vector.
17027 (xfont_match): If the font doesn't have QCname property, generate
17028 a name from the other font properties.
17029 (xfont_open): Return a font-object. Adjusted for the change of
17030 struct font. Get underline_thickness and underline_position from
17031 font property. Don't update dpyinfo->smallest_font_height and
17032 dpyinfo->smallest_char_width.
17033 (xfont_close): Don't free struct font.
17034 (xfont_prepare_face): Adjusted for the change of struct font.
17035 (xfont_done_face): Deleted.
17036 (xfont_has_char): Adjusted for the change of struct font.
17037 (xfont_encode_char, xfont_draw): Likewise.
17038 (xfont_check): New function.
17039
17040 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17041 callback function.
17042 (xftfont_match): Adjusted for the format change of font-entity.
17043 (xftfont_open): Adjusted for the format change of font-entity and
17044 font-object. Adjusted for the change of struct font. Return a
17045 font-object. Don't update dpyinfo->smallest_font_height and
17046 dpyinfo->smallest_char_width.
17047 (xftfont_close): Block input while calling XftFontClose.
17048 (xftfont_prepare_face): Don't block input while calling
17049 xftfont_get_colors. Adjusted for the change of struct font.
17050 (xftfont_shape): Return value of error case fixed.
17051
17052 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17053
17054 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17055 conditionals.
17056 (FONT_WIDTH): Return (f)->max_width.
17057 (struct x_display_info): Delete member `font'.
17058 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17059 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17060 (struct x_output): Change type of `font' to `struct font *'.
17061
17062 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17063 conditionals. Don't check enable_font_backend. Delete all codes
17064 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17065 (x_per_char_metric, x_encode_char): Deleted.
17066 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17067 (x_compute_glyph_string_overhangs): Adjusted for the change of
17068 `struct face'.
17069 (x_draw_glyph_string_foreground)
17070 (x_draw_composite_glyph_string_foreground): Likewise.
17071 (x_draw_glyph_string): Likewise. Use font->underline_position and
17072 font->underline_thickness.
17073 (x_new_font): Renamed from x_new_fontset2.
17074 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17075 (x_check_font): Call `check' method of a font driver.
17076 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17077 (x_query_font, x_get_font_repertory): Deleted.
17078 (x_find_ccl_program): Renamed and moved to xfont.c.
17079 (x_redisplay_interface): Adjusted for the change of `struct
17080 redisplay_interface'.
17081
17082 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17083 conditionals. Don't check enable_font_backend. Delete all codes
17084 used only when USE_FONT_BACKEND is not defined. Surround non-used
17085 code by "#ifdef OLD_FONT" and "endif".
17086 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17087
17088 * w32font.h (struct w32font_info): New member.
17089 (FONT_COMPAT): New macro.
17090 (w32font_open_internal): Prototype adjusted.
17091
17092 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17093 OLD_FONT" and "endif".
17094
17095 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17096 conditionals. Don't check enable_font_backend. Delete all codes
17097 used only when USE_FONT_BACKEND is not defined.
17098 (w32font_open): Return a font-object. Make a font-object by
17099 font_make_object. Adjusted for the change of struct w32font_info.
17100 (w32font_close): Don't free struct font. Adjusted for the change
17101 of struct w32font_info.
17102 (w32font_encode_char, w32font_text_extents, w32font_draw):
17103 Adjusted for the change of struct w32font_info.
17104 (w32font_draw): Likewise.
17105 (w32font_list_internal): Return a list, not vector.
17106 (w32font_open_internal): Change the 4th arg to font-object.
17107 Adjusted for the change of struct w32font_info and font-object format.
17108 (add_font_name_to_list): Don't downcase names.
17109 (w32_enumfont_pattern_entity): Make a font-entity by
17110 font_make_entity. Adjusted for the format change of font-entity.
17111 Use FONT_SET_STYLE to set a style-related font property. If a
17112 font is scalable, set avgwidth property to 0. Set font-entity
17113 property by font_put_extra.
17114 (font_matches_spec): Adjusted for the format change of font-entity.
17115 (w32_weight_table, w32_decode_weight): New variables.
17116 (w32_encode_weight): New function.
17117 (fill_in_logfont): Adjusted for the format change of font-spec.
17118 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17119 weight value.
17120 (w32font_driver): Adjusted for the change of struct font_driver.
17121
17122 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17123 conditionals. Don't check enable_font_backend. Surround non-used
17124 code by "#ifdef OLD_FONT" and "endif".
17125 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17126 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17127
17128 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17129 conditionals. Don't check enable_font_backend. Delete all codes
17130 used only when USE_FONT_BACKEND is not defined. Surround non-used
17131 code by "#ifdef OLD_FONT" and "endif".
17132
17133 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17134 (uniscribe_open): Return value changed to font-object.
17135 Adjusted for the format change of font-object.
17136 (uniscribe_otf_capability): Adjusted for the change of struct font.
17137 (add_opentype_font_name_to_list): Don't downcase names.
17138 (uniscribe_font_driver): Adjusted for the change of struct
17139 font_driver.
17140
171412008-05-13 Chong Yidong <cyd@stupidchicken.com>
17142
17143 * dispnew.c (update_frame_1): Check if tty output is still valid
17144 before flushing it.
17145
171462008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17147
17148 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17149 to Gtk+ menus.
17150
171512008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17152
17153 * dired.c (file_name_completion): Tweak the code so as to always do it
17154 in a single pass. Tighten the scope of some variables.
17155
17156 * dired.c (Qdefault_directory): New var.
17157 (file_name_completion): Use it instead of Fexpand_file_name.
17158 (syms_of_dired): Initialize it.
17159
171602008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17161
17162 * fileio.c (double_dollars): Remove dead code.
17163
171642008-05-10 Eli Zaretskii <eliz@gnu.org>
17165
17166 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17167 Mention w32-get-true-file-attributes in doc string.
17168
17169 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17170
171712008-05-09 Glenn Morris <rgm@gnu.org>
17172
17173 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17174 2008-04-23.
17175
171762008-05-09 Eli Zaretskii <eliz@gnu.org>
17177
17178 Support for reporting owner and group of each file on MS-Windows:
17179 * dired.c (stat_uname, stat_gname): New functions, with special
17180 implementation for w32.
17181 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17182
17183 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17184 (dflt_group_name): New static variable.
17185 (dflt_group): Rename from the_group.
17186 (init_user_info): Init dflt_group fields. Get user's group name
17187 from LookupAccountSid.
17188 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17189 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17190 New initialization states.
17191 (globals_of_w32): Initialize them to zero. Initialize the default
17192 group name to "None".
17193 (GetFileSecurity_Name): New global var, the name of the function
17194 to call for GetFileSecurity.
17195 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17196 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17197 (get_file_security, get_security_descriptor_owner)
17198 (get_security_descriptor_group, is_valid_sid)
17199 (get_file_security_desc, get_rid, get_name_and_id)
17200 (get_file_owner_and_group): New functions.
17201 (stat): Use get_file_security_desc and get_file_owner_and_group to
17202 report the owner and primary group of each file. Don't ignore the
17203 high 32 bits of file's size, now that st_size is 64-bit wide.
17204 Fix test when to get true file attributes.
17205 (init_user_info): Use get_rid instead of equivalent inline code.
17206 (fstat): Don't ignore the high 32 bits of file's size.
17207
172082008-05-09 Chong Yidong <cyd@stupidchicken.com>
17209
17210 * image.c (png_load): Use correct bit-depth for setting background
17211 color.
17212
172132008-05-08 Eli Zaretskii <eliz@gnu.org>
17214
17215 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17216 epa-hook.elc.
17217
172182008-05-08 Juanma Barranquero <lekktu@gmail.com>
17219
17220 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17221
172222008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17223
17224 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17225 because the original parameters are in pure storage now.
17226 (mac_window): Remove unused params. Update callers.
17227
172282008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17229
17230 * lread.c (substitute_object_recurse): Use lower-level primitives.
17231 Don't signal errors when traversing sub-char-tables.
17232 Don't loop over all the possible characters when traversing char-tables.
17233
17234 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17235 just like we do in print.c.
17236
172372008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17238
17239 * minibuf.c (Ftry_completion): Remove code left over from when we used
17240 scmp instead of Fcompare_strings.
17241
172422008-05-04 Juanma Barranquero <lekktu@gmail.com>
17243
17244 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17245
172462008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17247
17248 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17249 Create bitmap context in native byte order.
17250
17251 * macterm.c (XDrawLine)
17252 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17253 context in native byte order.
17254
172552008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17256
17257 * config.in: Regenerate.
17258
17259 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17260 New definitions for Image I/O support.
17261 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17262 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17263 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17264 (mac_data_provider_release_data, image_load_image_io)
17265 [USE_MAC_IMAGE_IO]: New functions.
17266 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17267 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17268 (init_image_func_pointer) [MAC_OSX]: Remove function.
17269 (image_load_quartz2d) [MAC_OSX]: Check availability of
17270 CGImageCreateWithPNGDataProvider at compile time.
17271 Use lowercase `false' for boolean constant.
17272 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17273 Use image_load_image_io.
17274 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17275 Don't check MyCGImageCreateWithPNGDataProvider.
17276 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17277 Don't call init_image_func_pointer.
17278
17279 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17280
17281 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17282 Make variable non-static.
17283 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17284 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17285
17286 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17287 (RED_FROM_ULONG): Mask off higher bits.
17288 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17289
17290 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17291 Include AvailabilityMacros.h.
17292 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17293 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17294
172952008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17296
17297 * chartab.c (Fset_char_table_range): If range is t, really set all
17298 chars to that value.
17299
173002008-05-03 Eli Zaretskii <eliz@gnu.org>
17301
17302 * dired.c (Ffile_attributes): Don't allow the device number become
17303 negative.
17304
173052008-05-02 Daiki Ueno <ueno@unixuser.org>
17306
17307 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17308
173092008-05-02 Juri Linkov <juri@jurta.org>
17310
17311 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17312 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17313 DEFAULT argument as a list of default values in docstrings.
17314
173152008-05-01 Chong Yidong <cyd@stupidchicken.com>
17316
17317 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17318
173192008-05-01 Martin Rudalics <rudalics@gmx.at>
17320
17321 * dispnew.c (change_frame_size_1): Preserve small windows when
17322 shrinking frames by calling set_window_height|width with third
17323 arg 2.
17324
17325 * window.h (struct window): Replace field too_small_ok by field
17326 resize_proportionally.
17327
17328 * window.c (make_window): Initialize resize_proportionally.
17329 (enlarge_window): Temporarily set resize_proportionally to make
17330 sure that shrink_windows does scale the window proportionally.
17331 (shrink_windows): When window has resize_proportionally set try
17332 to shrink it proportionally by stealing from other windows.
17333 (struct saved_window, Fset_window_configuration)
17334 (compare_window_configurations): Handle resize_proportionally.
17335 (WINDOW_TOTAL_SIZE): New macro.
17336 (window_min_size, shrink_windows, size_window): Use it.
17337 (check_min_window_sizes): Remove. Invalid values of
17338 window-min-height|width are handled by window_min_size_2 now.
17339 (size_window, Fsplit_window, enlarge_window)
17340 (adjust_window_trailing_edge, grow_mini_window): Don't call
17341 check_min_window_sizes.
17342 (window_min_size_2, window_min_size_1, window_min_size):
17343 New argument safe_p for retrieving "safe" minimum sizes.
17344 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17345 (adjust_window_trailing_edge, grow_mini_window):
17346 Adjust arguments of window_min_size... functions.
17347 (shrink_windows): Argument min_size removed. New argument
17348 safe_p allows shrinking windows to their safe minimum sizes.
17349 Calculate minimum size and decide whether a window shall be
17350 deleted for each window individually.
17351 (size_window): When nodelete_p equals 2, tell shrink_windows to
17352 delete windows only if their new minimum size is no more safe.
17353 (shrink_window_lowest_first): Call window_min_size_1 to make
17354 sure to preserve modeline of bottom-most window when resizing
17355 the minibuffer.
17356 (Fset_window_configuration, Fcurrent_window_configuration)
17357 (compare_window_configurations): Do not handle
17358 window-min-height|width any more.
17359 (syms_of_window): Clarify window-min-height|width doc-strings.
17360
173612008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17362
17363 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17364 some more. Copy some of the code from Ftry_completions.
17365 Remove special case code that dates back to initial revision when the
17366 slash was only added when necessary and that can't trigger nowadays.
17367
173682008-04-27 Kenichi Handa <handa@m17n.org>
17369
17370 * font.c (font_prop_validate): Signal `error' instead of `font'.
17371
173722008-04-29 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32fns.c (Fw32_battery_status): New defun.
17375 (syms_of_w32fns): Defsubr it.
17376
173772008-04-28 Andreas Schwab <schwab@suse.de>
17378
17379 * dired.c (file_name_completion): Fix another mixing of encoded
17380 and decoded names.
17381
173822008-04-28 Juanma Barranquero <lekktu@gmail.com>
17383
17384 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17385
173862008-04-27 Juanma Barranquero <lekktu@gmail.com>
17387
17388 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17389
173902008-04-27 Andreas Schwab <schwab@suse.de>
17391
17392 * dired.c (file_name_completion): Fix inappropriate mixing of
17393 encoded and decoded names.
17394
17395 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17396
17397 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17398
173992008-04-26 Eli Zaretskii <eliz@gnu.org>
17400
17401 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17402 2008-03-31, it's not needed anymore with `struct stat' definition
17403 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17404 for the same reasons.
17405
174062008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17407
17408 * m/sparc.h: Additional redefinitions for GNU/Linux.
17409
174102008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17411
17412 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17413 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17414 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17415 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17416 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17417 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17418 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17419 Likewise.
17420
17421 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17422 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17423 (mac_ax_number_of_characters): Add externs.
17424 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17425 [USE_MAC_TSM]: Likewise.
17426 (mac_handle_text_input_event) [MAC_OSX]:
17427 Handle kEventTextInputOffsetToPos for no active input area case.
17428 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17429 (mac_handle_document_access_event)
17430 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17431 (install_application_handler) [MAC_OSX]: Register handlers for
17432 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17433 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17434 Register mac_handle_document_access_event.
17435
17436 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17437 Make functions non-static.
17438
174392008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17440
17441 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17442 (read_file_name_completion_ignore_case, insert_default_directory)
17443 (Qdefault_directory): Move to minibuffer.el.
17444 (Fread_file_name): Call the new `read-file-name' instead.
17445
174462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17447
17448 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17449 Make function non-static.
17450 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17451 Remove function.
17452 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17453 Move to mactoolbox.c.
17454 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17455
17456 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17457 (mac_rect_make): New macro.
17458
17459 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17460 instead of float.
17461 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17462 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17463 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17464 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17465 CGRectMake.
17466 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17467 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17468 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17469 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17470 instead of WindowRef in argument type.
17471 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17472 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17473 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17474 instead of DISPLAY. All uses changed.
17475 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17476 (x_calc_absolute_position): Simplify so as not to use
17477 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17478
17479 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17480 instead of WindowRef in argument type.
17481 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17482 [TARGET_API_MAC_CARBON]: Remove externs.
17483 (create_apple_event, mac_event_parameters_to_lisp)
17484 [TARGET_API_MAC_CARBON]: Add externs.
17485
17486 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17487 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17488 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17489 is clicked.
17490 (x_activate_menubar): Remove extern for saved_menu_event_location.
17491 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17492 Move from mac.c.
17493
174942008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17495
17496 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17497 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17498
174992008-04-23 Jason Rumney <jasonr@gnu.org>
17500
17501 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17502 attributes only for local files.
17503
17504 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17505 default to Qlocal.
17506
175072008-04-22 Juri Linkov <juri@jurta.org>
17508
17509 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17510 read-buffer-to-switch instead of using the letter "B".
17511
175122008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17513
17514 * fileio.c (Qdefault_directory): New variable.
17515 (Fread_file_name): Use it to pass `dir' to the completion functions.
17516
175172008-04-20 Chong Yidong <cyd@stupidchicken.com>
17518
17519 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17520
175212008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17522
17523 * keyboard.c (Vpre_help_message): Remove.
17524 (show_help_echo): Remove default C code.
17525
17526 * dired.c (directory_files_internal, file_name_completion):
17527 Only call ENCODE_FILE if the string is indeed decoded.
17528
175292008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17530
17531 * Makefile.in (TOOLKIT_DEFINES): Remove.
17532 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17533
175342008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17535
17536 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17537 (mactoolbox.o): New target.
17538
17539 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17540 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17541
17542 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17543 Use mac_set_frame_window_background instead of XSetWindowBackground.
17544 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17545 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17546 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17547 instead of SetWindowTitleWithCFString.
17548 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17549 Move function to mactoolbox.c.
17550 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17551 Use mac_set_window_modified instead of SetWindowModified.
17552 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17553 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17554 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17555 FrontNonFloatingWindow. Use mac_activate_window instead of
17556 ActivateWindow. Use mac_active_non_floating_window instead of
17557 ActiveNonFloatingWindow.
17558 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17559 Use mac_show_hourglass and mac_hide_hourglass.
17560 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17561 instead of GetGlobalMouse.
17562 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17563 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17564 Use mac_bring_window_to_front instead of BringToFront.
17565 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17566 mactoolbox.c.
17567 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17568 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17569 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17570 mactoolbox.c.
17571
17572 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17573 (XtPointer): Move typedef from macmenu.c.
17574 (enum button_type): Move enum from macmenu.c.
17575 (widget_value): Move typedef from macmenu.c.
17576 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17577 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17578 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17579 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17580 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17581 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17582 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17583 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17584 (Selection): Move typedef from macselect.c.
17585 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17586 macterm.c.
17587 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17588 (mac_is_window_collapsed, mac_bring_window_to_front)
17589 (mac_send_window_behind, mac_hide_window, mac_show_window)
17590 (mac_collapse_window, mac_front_non_floating_window)
17591 (mac_active_non_floating_window, mac_activate_window)
17592 (mac_move_window_structure, mac_move_window, mac_size_window)
17593 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17594
17595 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17596 (enum mac_menu_kind): Move enum to mactoolbox.c.
17597 (min_menu_id): Move variable to mactoolbox.c.
17598 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17599 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17600 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17601 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17602 [TARGET_API_MAC_CARBON]: Likewise.
17603 (XtPointer): Move typedef to macgui.h.
17604 (enum button_type): Move enum to macgui.h.
17605 (widget_value): Move typedef to macgui.h.
17606 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17607 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17608 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17609 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17610 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17611 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17612 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17613 (popup_activated_flag): Make variable non-static.
17614 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17615 (add_menu_item, fill_menu, dispose_menus):
17616 Move functions to mactoolbox.c.
17617 (restore_show_help_function, menu_target_item_handler)
17618 (install_menu_target_item_handler, mac_handle_dialog_event)
17619 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17620 [TARGET_API_MAC_CARBON]: Likewise.
17621 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17622 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17623 (find_and_call_menu_selection, name_is_separator): Make function
17624 non-static.
17625 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17626 to mactoolbox.c.
17627 (set_frame_menubar): Don't call install_menu_quit_handler.
17628 (menu_item_selection): New variable.
17629 (mac_menu_show): Use create_and_show_popup_menu.
17630 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17631 selection but set variable menu_item_selection. All uses changed.
17632 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17633 Call install_menu_quit_handler. Move to mactoolbox.c.
17634
17635 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17636 (Selection): Move typedef to macgui.h.
17637 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17638 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17639 Make variables non-static.
17640 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17641 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17642 Make functions non-static.
17643 (Vmac_service_selection) [MAC_OSX]: Likewise.
17644 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17645 (mac_valid_selection_target_p, mac_clear_selection)
17646 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17647 (mac_put_selection_value, mac_selection_has_target_p)
17648 (mac_get_selection_value, mac_get_selection_target_list)
17649 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17650 Move functions to mactoolbox.c.
17651 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17652 Likewise.
17653 (copy_scrap_flavor_data, mac_handle_service_event)
17654 (install_service_handler) [MAC_OSX]: Likewise.
17655 (syms_of_macselect) <Vmac_dnd_known_types>:
17656 Use mac_dnd_default_known_types.
17657
17658 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17659 Move to mactoolbox.c.
17660 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17661 (Fx_selection_owner_p): Add EXFUN.
17662 (install_window_handler, remove_window_handler, XSetWindowBackground):
17663 Remove externs.
17664 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17665 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17666 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17667 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17668 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17669 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17670 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17671 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17672 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17673 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17674 (mac_valid_selection_target_p, mac_clear_selection)
17675 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17676 (mac_put_selection_value, mac_selection_has_target_p)
17677 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17678 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17679 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17680 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17681 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17682 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17683 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17684 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17685 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17686
17687 * mactoolbox.c: New file.
17688
176892008-04-18 Jason Rumney <jasonr@gnu.org>
17690
17691 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17692
176932008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17694
17695 * character.c (Fmultibyte_char_to_unibyte):
17696 Return latin1 chars unchanged.
17697
17698 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17699 relocated if it points to `name'.
17700
177012008-04-17 Kenichi Handa <handa@m17n.org>
17702
17703 * data.c (Faset): Allow setting a multibyte character in an
17704 ASCII-only unibyte string.
17705
17706 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17707
177082008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17709
17710 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17711 done in config.h.
17712
177132008-04-16 Juanma Barranquero <lekktu@gmail.com>
17714
17715 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17716 (Fchar_direction): Add usage in the docstring.
17717
177182008-04-15 Chong Yidong <cyd@stupidchicken.com>
17719
17720 * keyboard.c (read_key_sequence): Remove always-true checks.
17721
177222008-04-14 Jason Rumney <jasonr@gnu.org>
17723
17724 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17725 compatibility struct, for better underline positioning.
17726
177272008-04-13 David Hansen <david.hansen@gmx.net>
17728
17729 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17730 string.
17731
177322008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17733
17734 * m/hp800.h (XUINT, XSET): Remove.
17735
177362008-04-12 Juanma Barranquero <lekktu@gmail.com>
17737
17738 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17739 previous change.
17740
177412008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17742
17743 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17744 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17745
177462008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17747
17748 * keymap.h (map_keymap_canonical): Declare.
17749 * xmenu.c (single_keymap_panes): Use it.
17750
177512008-04-11 Glenn Morris <rgm@gnu.org>
17752
17753 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17754 set the target's value to that of the alias.
17755
177562008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17757
17758 * term.c (set_tty_color_mode): Left over typo.
17759
177602008-04-10 Michael Albinus <michael.albinus@gmx.de>
17761
17762 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17763 only after check for file name handler functions. Signal, when
17764 native functionality is not supported.
17765 (syms_of_fileio): Declare it unconditionally.
17766
177672008-04-10 Jason Rumney <jasonr@gnu.org>
17768
17769 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17770 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17771
17772 * w32.c (logon_network_drive): Also logon to remote drives that
17773 are mapped to drive letters.
17774
177752008-04-10 Glenn Morris <rgm@gnu.org>
17776
17777 * xdisp.c (truncate-partial-width-windows): Doc fix.
17778
177792008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17780
17781 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17782 Move functions to minibuffer.el.
17783 (syms_of_fileio): Don't declare them.
17784
177852008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17786
17787 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17788 (syms_of_minibuf): Remove its initialization.
17789
17790 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17791
177922008-04-09 Juanma Barranquero <lekktu@gmail.com>
17793
17794 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17795
177962008-04-09 Jason Rumney <jasonr@gnu.org>
17797
17798 * makefile.w32-in (distclean): Delete makefile too.
17799 (maintainer-clean): New target.
17800
17801 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17802
17803 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17804 for new font backend and composite cases.
17805
178062008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17807
17808 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17809 Most of the code moved to run_timers.
17810 (do_pending_atimers): Call run_timers.
17811 (run_timers): New function.
17812
17813 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17814 run atimers.
17815
17816 * process.c (wait_reading_process_output): The same as above.
17817
178182008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17819
17820 * minibuf.c (last_exact_completion): Remove variable.
17821 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17822 (complete_and_exit_1, complete_and_exit_2)
17823 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17824 (Fdisplay_completion_list, display_completion_list_1)
17825 (Fminibuffer_completion_help, Fself_insert_and_exit)
17826 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17827 minibuffer.el.
17828 (syms_of_minibuf): Remove corresponding initializations.
17829
17830 * keyboard.c (Qdeactivate_mark): New var.
17831 (command_loop_1): Use it to call `deactivate-mark'.
17832 (syms_of_keyboard): Initialize it.
17833
17834 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17835 to another frame.
17836 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17837 Don't call set_tty_color_mode.
17838 (store_frame_param): Reset previous_frame rather than call
17839 set_tty_color_mode.
17840 * term.c (set_tty_color_mode): Rewrite.
17841 * dispextern.h (set_tty_color_mode): New type.
17842 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17843
178442008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17845
17846 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17847 for generic chars, which do not exist any more in emacs-unicode.
17848
178492008-04-08 Michael Albinus <michael.albinus@gmx.de>
17850
17851 * coding.c (detect_coding_emacs_mule)
17852 (Ffind_operation_coding_system): Fix typo.
17853
178542008-04-08 Jason Rumney <jasonr@gnu.org>
17855
17856 * w32uniscribe.c (SNAME): Extract only symbol name.
17857
17858 * w32font.h (struct w32_metric_cache): New struct.
17859 (w32font_info): Use it.
17860 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17861 (CACHE_BLOCKSIZE): New constants.
17862
17863 * w32font.c (Qja, Qko, Qzh): New symbols.
17864 (syms_of_w32font): Initialise them.
17865 (font_matches_spec): Use them to filter by language.
17866 (recompute_cached_metrics): Remove function.
17867 (compute_metrics, clear_cached_metrics): New functions.
17868 (w32font_encode_char): Use them to manage metric cache.
17869 (w32font_text_extents): Cache metrics for all glyphs on demand.
17870 Delay converting glyph indices to WORD until needed.
17871 (w32font_open_internal): Initialize metric cache to empty.
17872 (registry_to_w32_charset): Charset should always be a symbol.
17873 (fill_in_logfont, list_all_matching_fonts): Family should
17874 always be a symbol.
17875
178762008-04-06 Jason Rumney <jasonr@gnu.org>
17877
17878 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17879 Give up if glyph indices not supported. Use uniscribe obtained
17880 ABC widths for individual metrics. Map glyph clusters back to
17881 characters using fClusterStart flag. Return number of glyphs
17882 produced, not chars processed.
17883 (uniscribe_shape): Map char at FROM to current glyph.
17884
178852008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17886
17887 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17888 Use SetMenuItemHierarchicalMenu.
17889
178902008-04-05 Jason Rumney <jasonr@gnu.org>
17891
17892 * image.c (pbm_load): Allow color values up to 65535.
17893 Throw an error if max_color_idx is outside the supported range.
17894 Report an error when image size is invalid.
17895 Read two bytes at a time when raw images have max_color_idx above 255.
17896
aac0c6e3
MR
178972008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17898
17899 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17900 append "CCL: Quitted" when the CCL program is quitted.
17901 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17902
17903 * ccl.h (struct ccl_program): New member quit_silently.
17904
179052008-04-05 Chong Yidong <cyd@stupidchicken.com>
17906
17907 * search.c (compile_pattern_1): Treat non-nil and non-string of
17908 search-spaces-regexp as nil.
17909
17910 * minibuf.c (Fassoc_string): Tweak docstring.
17911
179122008-04-05 Eli Zaretskii <eliz@gnu.org>
17913
17914 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17915 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17916 2008-03-14 to force inode be positive.
17917
17918 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17919 _S_* ones, since we now use our own sys/stat.h.
17920 (stat, fstat): Don't mangle the inode number.
17921 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17922
179232008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17924
17925 * frame.h (struct frame): Give one more bit to `visible' since we use
17926 values larger than 1 to indicate obscured frames on ttys.
17927
17928 * keymap.c (Qkeymap_canonicalize): New var.
17929 (Fmap_keymap_internal): New fun.
17930 (describe_map): Use keymap-canonicalize.
17931
17932 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17933 (Fundo_boundary): Set them.
17934 (syms_of_undo): Initialize them.
17935 (record_point): Use them instead of last_point_position*.
17936 (last_undo_buffer): Change type.
17937
179382008-04-04 Jason Rumney <jasonr@gnu.org>
17939
17940 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17941 (recompute_cached_metrics): Don't set ascent and descent per char.
17942
17943 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17944 (uniscribe_check_otf): Add GC protection before consing.
17945 Rearrange loop for counting features.
17946
179472008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17948
17949 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17950 buffer with byte-size of source buffer.
17951
179522008-04-03 Chong Yidong <cyd@stupidchicken.com>
17953
17954 * callint.c (Fcall_interactively): Handle temporary region even
17955 when shift-select-mode is off.
17956
179572008-04-03 Jason Rumney <jasonr@gnu.org>
17958
17959 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17960
179612008-04-03 Kenichi Handa <handa@m17n.org>
17962
17963 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17964 (CATEGORY_MASK_UTF_16): Likewise.
17965 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17966 binary file.
17967 (detect_coding): Add null-byte detection for a binary file.
17968 (detect_coding_system): Likewise.
17969
179702008-04-03 Jason Rumney <jasonr@gnu.org>
17971
17972 * w32uniscribe.c: New file.
17973
17974 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17975
17976 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17977
17978 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17979 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17980 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17981 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17982 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17983 (Qphonetic): New symbols.
17984 (syms_of_w32font): Initialize them.
17985 (font_supported_scripts): Use them.
17986 (w32font_list_family): List all charsets.
17987 (w32font_text_extents, recompute_cached_metrics): Fix metric
17988 calculations.
17989 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17990 Give opentype fonts their own format.
17991 (font_matches_spec): New arguments backend and logfont.
17992 Handle :otf spec for uniscribe backend.
17993 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17994 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17995
17996 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17997 font backend.
17998 (globals_of_w32fns): Initialize uniscribe font backend.
17999
18000 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18001 dependencies.
18002 (w32uniscribe.$(O)): New file to build.
18003 (FONT_OBJ): Include w32uniscribe.$(O).
18004 (LIBS): Add uniscribe libraries.
18005
18006 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18007
180082008-04-02 Chong Yidong <cyd@stupidchicken.com>
18009
18010 * callint.c (Vshift_select_mode): New var.
18011 (Finteractive): Document new ^ spec.
18012 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18013 is present.
18014
18015 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18016 (command_loop_1): Avoid running the direct display versions of
18017 forward-char and backward-char if shift-selection may occur.
18018 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18019 shift-translation takes place.
18020
18021 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18022 avoid clobbering by define-minor-mode.
18023
18024 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18025 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18026
18027 * syntax.c (Fforward_word): Add ^ interactive spec.
18028
18029 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18030 (Fscroll_right): Add ^ interactive spec.
18031
180322008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18033
18034 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18035
18036 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18037
18038 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18039
180402008-03-31 Juri Linkov <juri@jurta.org>
18041
18042 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18043
180442008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18045
18046 * gtkutil.c (xg_set_geometry): Fix indentation.
18047 (xg_resize_outer_widget): Remove.
18048 (x_wm_size_hint_off): Fix indentation.
18049 (xg_frame_set_char_size): Call flush_and_sync after
18050 gtk_window_resize.
18051 (x_wm_set_size_hint): Pass NULL as geometry window to
18052 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18053 Add menu bar and tool bar height to base height.
18054 (xg_update_frame_menubar, free_frame_menubar)
18055 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18056 (update_frame_tool_bar, free_frame_tool_bar):
18057 Change xg_resize_outer_widget to xg_frame_set_char_size.
18058
180592008-03-30 Michael Albinus <michael.albinus@gmx.de>
18060
18061 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18062 (Fdbus_call_method): New parameter TIMEOUT.
18063 (dbus-send-signal): Optimize UNGCPRO call.
18064
180652008-03-29 Juri Linkov <juri@jurta.org>
18066
18067 * window.c (Fdisplay_buffer): Move call to
18068 Vsplit_window_preferred_function out of conditions that check
18069 if window is eligible for vertical splitting.
18070 When Vsplit_window_preferred_function is non-nil, call it and use
18071 its non-nil return value as window. Otherwise, continue doing
18072 vertical splitting using Fsplit_window with arg horflag=nil.
18073 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18074 default value from `split-window' to nil.
18075
180762008-03-29 Juri Linkov <juri@jurta.org>
18077
18078 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18079 for interactive code letters 'b' and 'B'.
18080
180812008-03-29 Eli Zaretskii <eliz@gnu.org>
18082
18083 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18084 multibyte string.
18085
180862008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18087
18088 * keyboard.c (pending_funcalls): New var.
18089 (timer_check): Run it.
18090 (syms_of_keyboard): Initialize it.
18091 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18092 (Vdelete_terminal_functions): New vars.
18093 (syms_of_terminal): Initialize them.
18094 (Fdelete_terminal): Run delete-terminal-functions.
18095 * xdisp.c (safe_eval): Rewrite.
18096 (safe_call2): New fun.
18097 * frame.c (Qdelete_frame_functions): New var.
18098 (syms_of_frame): Initialize it.
18099 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18100 * lisp.h (safe_call2, pending_funcalls): Declare.
18101
181022008-03-28 Andreas Schwab <schwab@suse.de>
18103
18104 * indent.c (Fmove_to_column): Move declaration before statements.
18105
181062008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18107
18108 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18109 (struct frame): Use bit fields for boolean vars.
18110
18111 * process.c (server_accept_connection): Simplify naming.
18112 (emacs_get_tty_pgrp): Use SDATA.
18113
18114 * coding.c (decode_coding_object): Fix last change.
18115
181162008-03-27 Jason Rumney <jasonr@gnu.org>
18117
18118 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18119
181202008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18121
18122 * charset.c (Fdefine_charset_internal): Change the way of
18123 registering charsets in Vcharset_order_list.
18124 (syms_of_charset): Make the charset `eight-bit' supplementary.
18125
181262008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18127
18128 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18129 operations, to avoid having the difference between pointers
18130 overflow.
18131
181322008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18133
18134 * indent.c (check_display_width): New fun.
18135 (scan_for_column): Use it.
18136
18137 * data.c (syms_of_data): Mark most-positive-fixnum and
18138 most-negative-fixnum as constants.
18139
18140 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18141
18142 * indent.c (scan_for_column): Extract from current_column_1.
18143 Merge with the same code from Fmove_to_column.
18144 (current_column_1, Fmove_to_column): Use it.
18145
181462008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18147
18148 * keymap.c (map_keymap_internal): New fun.
18149 (map_keymap): Use it.
18150 (Fmap_keymap_internal): New fun.
18151 (Fmap_keymap): Remove left-out test from before make_save_value.
18152
18153 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18154
18155 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18156 Use XCAR/XCDR.
18157
18158 * process.h (struct Lisp_Process): Remove filter_multibyte.
18159 * process.c (QCfilter_multibyte): Remove.
18160 (setup_process_coding_systems): Don't use filter_multibyte.
18161 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18162 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18163 (Fset_process_filter_multibyte): Change the coding-system to
18164 approximate the previous behavior.
18165 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18166 coding-system.
18167
18168 * coding.c (decode_coding_object): When not decoding into a buffer,
18169 obey the coding system's preference of (uni|multi)byte.
18170
181712008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18172
18173 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18174 every char is changed and has a different byte-length.
18175 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18176 Fix int -> EMACS_INT.
18177
181782008-03-23 David Hansen <david.hansen@gmx.net>
18179
18180 * dbusbind.c (xd_read_message): Remove extra copying of message
18181 strings. Check for NULL `interface' or `member'.
18182
181832008-03-22 Eli Zaretskii <eliz@gnu.org>
18184
18185 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18186 cFileName a file name that includes `?' characters, use the 8+3
18187 alias in cAlternateFileName instead.
18188
181892008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18190
18191 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18192
181932008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18194
18195 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18196 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18197 work on current_buffer only instead (that was already the case
18198 for some of the code anyway).
18199 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18200 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18201 (SET_PT, SET_PT_BOTH): Adjust.
18202 * intervals.h (set_point, temp_set_point, set_point_both)
18203 (temp_set_point_both): Remove redundant declarations.
18204
182052008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18206
18207 * fileio.c (Finsert_file_contents):
18208 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18209 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18210 when buffer != current_buffer anyway.
18211
182122008-03-20 Andreas Schwab <schwab@suse.de>
18213
18214 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18215 as default.
18216
182172008-03-19 Jason Rumney <jasonr@gnu.org>
18218
18219 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18220 (syms_of_w32fns): Initialize them.
18221 (HOURGLASS_ID): New constant.
18222 (x_window_to_frame): Don't check hourglass_window.
18223 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18224 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18225 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18226 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18227 Only change the cursor if hourglass is not active.
18228 (Fx_create_frame): Initialize frame's current_cursor.
18229 (hourglass_atimer): Remove.
18230 (hourglass_started): New function.
18231 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18232 (show_hourglass): Adapt to w32, changing argument to frame.
18233
18234 * w32term.h (struct w32_output): Remove hourglass_window.
18235 Add current_cursor.
18236
18237 * eval.c (call_debugger, Fsignal):
18238 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18239 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18240 (Fexecute_extended_command, cancel_hourglass_unwind):
18241 * minibuf.c (read_minibuf):
18242 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18243
182442008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18245
18246 * window.c (run_funs): New fun.
18247 (run_window_configuration_change_hook): Use it to run the buffer-local
18248 and the global part of the hook.
18249
18250 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18251 (unwind_format_mode_line): Restore selected window.
18252 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18253
182542008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18255
18256 * editfns.c (Fchar_equal): Check they are valid characters.
18257
18258 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18259
182602008-03-17 Andreas Schwab <schwab@suse.de>
18261
18262 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18263 against a charset.
18264
18265 * lisp.h (Fbuffer_list): Declare.
18266
182672008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18268
aac0c6e3
MR
18269 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18270 handlebox_widget is != 0.
18271
182722008-03-16 Juri Linkov <juri@jurta.org>
18273
18274 * callint.c (Fcall_interactively): For interactive code letters
18275 'b' and 'B' put the buffer list into the list of default "future"
18276 values of the minibuffer.
18277
182782008-03-16 Andreas Schwab <schwab@suse.de>
18279
18280 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18281 modifiers.
18282
18283 * regex.c (re_match_2_internal): Correct matching of a charset
18284 against latin-1 characters.
18285
182862008-03-16 Kenichi Handa <handa@m17n.org>
18287
18288 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18289 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18290 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18291 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18292 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18293 CHAR_STRING_ADVANCE.
18294 (produce_chars): Fix for the case that the source and the
18295 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18296 instead of CHAR_STRING_ADVANCE.
18297 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18298 STRING_CHAR_ADVANCE.
18299
183002008-03-15 Andreas Schwab <schwab@suse.de>
18301
18302 * regex.c (re_match_2_internal): Correct matching of eight bit
18303 characters in unibyte strings.
18304
183052008-03-15 Martin Rudalics <rudalics@gmx.at>
18306
18307 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18308 at end of range when it coincides with the end of the buffer.
18309
183102008-03-14 Eli Zaretskii <eliz@gnu.org>
18311
18312 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18313
18314 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18315
183162008-03-14 Jason Rumney <jasonr@gnu.org>
18317
18318 * editfns.c (initial_tz): New variable.
18319 (syms_of_editfns): Initialize it.
18320 (Fset_time_zone_rule): Set it when first called.
18321 Use it when TZSTRING is nil.
18322
18323 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18324 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18325 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18326 (globals_of_w32fns): Initialize them.
18327 (compute_tip_xy): Use them to position tooltips.
18328
183292008-03-14 Glenn Morris <rgm@gnu.org>
18330
18331 * emacs.c (main): Revert previous change.
18332 (standard_args): Revert -internal-script back to -scriptload,
18333 and remove the long-option form.
18334
183352008-03-13 Glenn Morris <rgm@gnu.org>
18336
18337 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18338 Remove option -enable-font-backend.
18339
183402008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18341
18342 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18343
183442008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18345
18346 * xterm.c (x_connection_closed): For GTK: If this is the last
18347 terminal just exit without closing the display.
18348
183492008-03-11 Jason Rumney <jasonr@gnu.org>
18350
18351 * w32font.c (w32font_full_name): Use floor to round.
18352
f0131492 183532008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18354
18355 * sound.c (alsa_configure): Declare vol at beginning of block.
18356
18357 * fontset.c (Ffontset_info): Remove extra semicolon.
18358
183592008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18360
18361 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18362 size of resulting string.
18363
183642008-03-10 Jason Rumney <jasonr@gnu.org>
18365
18366 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18367
183682008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18369
18370 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18371 Don't pretend as if characters with display property haven't been
18372 consumed for string-replacing-string case.
18373
183742008-03-08 Kim F. Storm <storm@cua.dk>
18375
18376 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18377 (get_next_display_element, next_element_from_string)
18378 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18379
183802008-03-08 Andreas Schwab <schwab@suse.de>
18381
18382 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18383
183842008-03-06 Jason Rumney <jasonr@gnu.org>
18385
18386 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18387 when charset not specified. Only translate ANSI to unicode when
18388 font_type is truetype.
18389 (w32font_coverage_ok): New function.
18390 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18391
183922008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18393
18394 * lread.c (Fread_char): Resolve modifiers.
18395 (Fread_char_exclusive): Likewise.
18396
18397 * character.c (char_resolve_modifier_mask): New function.
18398 (char_string): Use char_resolve_modifier_mask.
18399 (Fchar_resolve_modifiers): New function.
18400 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18401 function.
18402
184032008-03-04 Jason Rumney <jasonr@gnu.org>
18404
18405 * makefile.w32-in: Always include w32font.c in the build.
18406 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18407
184082008-03-04 Andreas Schwab <schwab@suse.de>
18409
18410 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18411 (versionclean): Likewise.
18412
184132008-03-04 Juanma Barranquero <lekktu@gmail.com>
18414
18415 * .cvsignore: Add oo.
18416
184172008-03-03 Andreas Schwab <schwab@suse.de>
18418
18419 * coding.c (decode_coding_object): Inhibit gap shrinking while
18420 decoding in place.
18421
184222008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18423
18424 * w32term.c: Remove unused include "gnu.h".
18425 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18426
18427 * gnu.h: Rename to ...
18428 * emacs-icon.h: ... this.
18429 * xterm.c: Use emacs-icon.h instead of gnu.h.
18430 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18431
184322008-03-03 Juanma Barranquero <lekktu@gmail.com>
18433
18434 * w32font.c: Include math.h.
18435
184362008-03-03 Jason Rumney <jasonr@gnu.org>
18437
18438 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18439 Compute options separately.
18440 (w32font_open_internal): Set glyph_idx before caching metrics.
18441
18442 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18443 Define if system headers don't.
18444 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18445 (w32font_encode_char): Don't declare here.
18446
18447 * w32font.c (Quniscribe, QCformat): New symbols.
18448 (syms_of_w32font): Define them.
18449 (w32font_has_char): Indicate uncertainty.
18450 (w32font_encode_char): Encode as glyph point. Make static.
18451 (recompute_cached_metrics): New function.
18452 (w32font_open_internal): Use it. Set font to use glyph points
18453 initially. Set format based on type of font.
18454 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18455 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18456 on it. Set format based on information available here.
18457 (add_font_entity_to_list): Identify backend based on opentype_only.
18458
184592008-03-02 Andreas Schwab <schwab@suse.de>
18460
18461 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18462
18463 * coding.c (decode_coding_big5, produce_chars):
18464 Fix typos in last change.
18465
184662008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18467
18468 * gnu.h: New icon.
18469
184702008-03-02 Kenichi Handa <handa@m17n.org>
18471
18472 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18473 `dos', don't decode '\r' if that is the last in the source.
18474 (decode_coding_utf_16, decode_coding_emacs_mule)
18475 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18476 (decode_coding_raw_text, decode_coding_charset): Likewise.
18477 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18478
184792008-03-01 Jason Rumney <jasonr@gnu.org>
18480
18481 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18482
184832008-03-01 Kim F. Storm <storm@cua.dk>
18484
18485 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18486
184872008-03-01 Jason Rumney <jasonr@gnu.org>
18488
18489 * w32font.c (w32font_full_name): New function.
18490 (w32font_open_internal): Use it.
18491
184922008-03-01 Kim F. Storm <storm@cua.dk>
18493
18494 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18495
184962008-03-01 Jason Rumney <jasonr@gnu.org>
18497
18498 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18499
185002008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18501
18502 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18503 xg_frame_resized when the event is for the edit widget.
18504
18505 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18506
18507 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18508 set_char_size.
18509 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18510 operations on widgets here. Just set frame size if needed.
18511 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18512 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18513 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18514 the whole frame.
18515 (xg_create_tool_bar): Move attachment of the tool bar to
18516 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18517 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18518
185192008-03-01 Jason Rumney <jasonr@gnu.org>
18520
18521 * w32fns.c (w32_msg_pump): Disable debug code.
18522
185232008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18524
18525 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18526
185272008-02-29 Chong Yidong <cyd@stupidchicken.com>
18528
18529 * xdisp.c (next_overlay_string): Don't set
18530 overlay_strings_at_end_processed_p if we're currently reading from
18531 a display string.
18532
185332008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18534
18535 * xdisp.c (get_overlay_strings_1): Fix typo.
18536
185372008-02-29 Chong Yidong <cyd@stupidchicken.com>
18538
18539 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18540
185412008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18542
18543 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18544
18545 * xdisp.c (display_mode_element): Cancel the previous change.
18546 (decode_mode_spec): Likewise.
18547 (handle_auto_composed_prop): Don't make composition if it->string
18548 is a string.
18549
185502008-02-27 Kim F. Storm <storm@cua.dk>
18551
18552 * lisp.h (GLYPH): Change type from int to struct with separate char
18553 and face_id members.
18554 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18555 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18556 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18557 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18558 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18559 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18560 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18561 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18562 handle new Lisp glyph code encoding, either an integer or a cons.
18563
18564 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18565 (GLYPH_ALIAS): Delete.
18566 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18567 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18568 (GLYPH_FROM_CHAR): Replace macro by ...
18569 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18570
18571 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18572 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18573 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18574 (GLYPH_INVALID_P): New macro.
18575 (spec_glyph_lookup_face): Update prototype.
18576
18577 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18578 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18579 new glyph code encoding.
18580 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18581 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18582
18583 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18584 Adapt to new glyph type and new glyph code encoding.
18585
18586 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18587
18588 * indent.c (current_column, current_column_1, Fmove_to_column)
18589 (compute_motion): Adapt to new glyph code encoding.
18590
18591 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18592
185932008-02-27 Chong Yidong <cyd@stupidchicken.com>
18594
18595 * process.c (wait_reading_process_output): Check for window
18596 changes caused by timers.
18597 Suggested by Johan Bockgård.
18598
185992008-02-27 Glenn Morris <rgm@gnu.org>
18600
18601 * emacs.c (USAGE1): Add `--disable-font-backend'.
18602
186032008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18604
18605 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18606 is made to the buffer.
18607
186082008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18609
18610 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18611 (face_at_string_position):
18612 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18613 (face_at_string_position):
18614 * xdisp.c (display_string, next_overlay_change):
18615 * buffer.h (overlays_at):
18616 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18617 Update callers.
18618
186192008-02-26 Chong Yidong <cyd@stupidchicken.com>
18620
18621 * editfns.c (Fformat): Doc fix.
18622
186232008-02-26 Juanma Barranquero <lekktu@gmail.com>
18624
18625 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18626 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18627 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18628
186292008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18630
18631 * buffer.c (Fbuffer_swap_text): New function.
18632 (syms_of_buffer): Defsubr it.
18633
186342008-02-25 Chong Yidong <cyd@stupidchicken.com>
18635
18636 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18637
186382008-02-25 Jason Rumney <jasonr@gnu.org>
18639
18640 * w32font.c (w32font_draw): Draw one character at a time when padding.
18641
186422008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18643
18644 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18645 Handle a nil arg. Use run_window_configuration_change_hook.
18646 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18647 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18648 Use run_window_configuration_change_hook.
18649
186502008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18651
18652 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18653 1-pixel width.
18654
186552008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18656
18657 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18658 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18659 if the glyph in the font is zero pixel with.
18660
18661 * dispextern.h (struct glyph_string): New member padding_p.
18662
18663 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18664
18665 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18666
18667 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18668
18669 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18670
18671 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18672
186732008-02-25 Jason Rumney <jasonr@gnu.org>
18674
18675 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18676
186772008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18678
18679 Allow fine-grained image-cache flushing.
18680 * dispextern.h (struct image): Add `dependencies' field.
18681 (clear_image_caches): Change arg to Lisp_Object.
18682 * image.c (make_image): Initialize `dependencies' field.
18683 (clear_image_cache): Change arg to allow fine-grained flushing.
18684 Perform the flush even if image-cache-eviction-delay is nil.
18685 (clear_image_caches): Change arg to Lisp_Object.
18686 (Fclear_image_cache): Expand meaning of the argument.
18687 (mark_image): Mark `dependencies' field.
18688 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18689 (lface_hash): Use XHASH rather than XFASTINT.
18690 (face_at_buffer_position): Fix int -> EMACS_INT position.
18691 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18692 (select_frame_for_redisplay): Remove code duplication.
18693 (redisplay_internal): Adapt arg to call to clear_image_caches.
18694
186952008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18696
18697 * s/vms4-0.h:
18698 * s/vms4-2.h:
18699 * s/vms4-4.h:
18700 * s/vms5-5.h: Remove, unused.
18701
18702 * s/irix5-2.h:
18703 * s/irix6-0.h:
18704 * s/riscos5.h:
18705 * s/mach-bsd4-3.h:
18706 * m/mips4.h: Remove files for obsolete systems.
18707
18708 * Makefile.in:
18709 * filelock.c:
18710 * unexmips.c:
18711 * m/hp9000s300.h:
18712 * m/iris4d.h:
18713 * s/aix3-1.h:
18714 * s/hpux.h:
18715 * s/msdos.h:
18716 * s/usg5-0.h:
18717 * s/usg5-2-2.h:
18718 * s/usg5-2.h:
18719 * s/usg5-3.h: Remove references to obsolete variables.
18720
18721 * s/irix5-0.h: Remove, move all the contents ...
18722 * s/irix6-5.h: ... here. Simplify.
18723 * config.in: Regenerate.
18724
187252008-02-24 Jason Rumney <jasonr@gnu.org>
18726
18727 * w32term.c (x_draw_glyph_string_background): Clear the background
18728 manually when cleartype is in use.
18729 (x_draw_glyph_string_foreground): Draw text transparently when
18730 cleartype is in use.
18731
18732 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18733 a font into it unless we have to.
18734
187352008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18736
18737 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18738 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18739
aac0c6e3
MR
187402008-02-18 Jason Rumney <jasonr@gnu.org>
18741
18742 * w32fns.c (Fw32_shell_execute): Encode parameters.
18743
187442008-02-09 Eli Zaretskii <eliz@gnu.org>
18745
18746 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18747
187482008-02-05 Juanma Barranquero <lekktu@gmail.com>
18749
18750 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18751
187522008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18753
18754 * xterm.c (x_set_offset): Don't change the gravity if
18755 CHANGE_GRAVITY is -1.
18756
187572008-02-23 Chong Yidong <cyd@stupidchicken.com>
18758
18759 * fileio.c (auto_save_error_occurred): New var.
18760 (auto_save_error): Set it.
18761 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18762 error occurred.
18763
187642008-02-23 Eli Zaretskii <eliz@gnu.org>
18765
18766 * w32.c (globals_of_w32): Add initializations for
18767 g_b_init_get_sid_sub_authority and
18768 g_b_init_get_sid_sub_authority_count.
18769
187702008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18771
18772 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18773 (font_parse_xlfd): Use them for sanity check.
18774 (Finternal_set_font_style_table): Make sure the table is bijective.
18775
18776 Consolidate the image_cache to the terminal struct.
18777 * termhooks.h (P_): Remove redundant def.
18778 (struct terminal): New field `image_cache'.
18779 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18780 of FRAME_X_IMAGE_CACHE.
18781 * xterm.h (struct x_display_info): Remove image_cache field.
18782 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18783 * w32term.h (struct w32_display_info): Remove image_cache field.
18784 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18785 * macterm.h (struct mac_display_info): Remove image_cache field.
18786 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18787 * xterm.c (x_term_init):
18788 * w32term.c (w32_term_init):
18789 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18790 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18791 Remove declarations.
18792 (clear_image_caches, mark_image_cache): New declarations.
18793 * xfaces.c (clear_face_cache):
18794 * xdisp.c (redisplay_internal): Use clear_image_caches.
18795 * image.c (clear_image_cache): Don't check that a frame is on
18796 a window-system before checking if it shares the same cache.
18797 (clear_image_caches): New function.
18798 (Fclear_image_cache): Use it.
18799 (mark_image): Move from allo.c.
18800 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18801 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18802 (mark_object): Don't call mark_image_cache for frames.
18803 (mark_terminals): Call mark_image_cache.
18804
18805 * lisp.h (Fdelete_terminal): Declare.
18806
18807 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18808 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18809 wrong_type_argument.
18810
188112008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18812
18813 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18814 malayalam.el, and tamil.el. Add sinhala.el.
18815
188162008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18817
18818 * xterm.c (x_connection_closed): Consolidate identical tests.
18819 (x_delete_terminal): Don't crash if called via x_connection_closed.
18820
188212008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18822
18823 * xdisp.c (decode_mode_spec): New arg string.
18824 (display_mode_element): Adjust for the above change.
18825
188262008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18827
18828 * callint.c (Fcall_interactively): Use AREF.
18829
188302008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18831
18832 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18833
188342008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18835
18836 * xfns.c (Fx_show_tip): Set string to " " if empty.
18837
188382008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18839
18840 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18841 with Qt.
18842
188432008-02-17 Kenichi Handa <handa@m17n.org>
18844
18845 * ftfont.c (ftfont_shape): Return Lispy number.
18846
18847 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18848 for GCs.
18849 (Finternal_set_font_selection_order): Call font_update_sort_order
18850 only when enable_font_backend is set.
18851 (realize_x_face): Set face->font_info to that of default face only
18852 when enable_font_backend is set.
18853
18854 * xdisp.c (handle_composition_prop): Set it->c to the fist
18855 character of the composed region.
18856 (fill_composite_glyph_string): Set base_face->font_info to
18857 s->font_info. Get a face for ascii from base_face->ascii_face.
18858 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18859 with a face already decided.
18860 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18861 non-negative.
18862 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18863 call font_prepare_composition unconditionally.
18864
18865 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18866
18867 * xterm.h (struct x_display_info): New member font.
18868
18869 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18870 (x_set_mouse_face_gc, x_new_font): Likewise.
18871 (x_term_init): Setup display_info->font.
18872 (x_delete_terminal): Free display_info->font.
18873
18874 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18875
18876 * ftxfont.c (ftxfont_default_fid): Delete it.
18877 (ftxfont_open): Set xfont->fid to 0.
18878 (ftxfont_end_for_frame): Clear data specific to the frame and the
18879 font-driver.
18880
18881 * xftfont.c (xftfont_default_fid): Delete it.
18882 (xftfont_open): Set xfont->fid to 0.
18883
18884 * fontset.c (FONTSET_OBJLIST): New macro.
18885 (fontset_find_font): Update font-object list of the fontset.
18886 (free_realized_fontset): New function.
18887 (free_face_fontset): Call free_realized_fontset.
18888 (Ffont_info): Call font_close_object only when enable_font_backend
18889 is set.
18890
18891 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18892 [HAVE_NTGUI]: Include w32term.h.
18893 [MAC_OS]: Include macterm.ch.
18894 (font_otf_ValueRecord): Use make_number.
18895 (font_finish_cache): Fix handling of reference count.
18896 (font_clear_cache): Update num_fonts.
18897 (font_open_entity): Update smallest_char_width and
18898 smallest_font_height of the frame.
18899 (font_close_object): Update num_fonts.
18900 (Fclear_font_cache): Fix finding the target cache data.
18901
189022008-02-16 Glenn Morris <rgm@gnu.org>
18903
18904 * fontset.c (Finternal_char_font): Fix compilation warning.
18905
189062008-02-16 Eli Zaretskii <eliz@gnu.org>
18907
18908 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18909 instead of char arrays. Enlarge the size of array passed to
18910 get_token_information.
18911
18912 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18913 warnings.
18914
189152008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18916
18917 * .gdbinit: Don't set `args', it breaks gdb --args.
18918
189192008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18920
18921 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18922 within a narrowed buffer.
18923
189242008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18925
18926 * coding.c (decode_coding_object, encode_coding_object):
18927 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18928
189292008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18930
18931 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18932 hardcoding 1.
18933 (detect_coding_system):
18934 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18935 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18936 * insdel.c (insert_from_gap):
18937 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18938 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18939 (string_to_multibyte):
18940 * character.c (chars_in_text, multibyte_chars_in_text):
18941 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18942
18943 * character.h (FETCH_STRING_CHAR_ADVANCE)
18944 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18945 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18946 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18947
18948 * casefiddle.c (casify_region): Only call after-change and composition
18949 functions on the part of the region that was changed.
18950
18951 * keyboard.c (read_avail_input):
18952 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18953
189542008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18955
18956 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18957 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18958
189592008-02-11 Juanma Barranquero <lekktu@gmail.com>
18960
18961 * w32menu.c (push_submenu_start, push_submenu_end)
18962 (push_left_right_boundary, push_menu_pane, push_menu_item):
18963 * keyboard.c (read_key_sequence): Don't pass args with side effects
18964 to AREF, it fails when compiling with -DENABLE_CHECKING.
18965
189662008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18967
18968 * Makefile.in (${lispsource}international/charprop.el):
18969 Delete this target.
18970
18971 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18972 emacs-unicode-2.
18973
189742008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18975
18976 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18977
189782008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18979
18980 * frame.c (Qnoelisp): New symbol.
18981 (syms_of_frame): Initialize it.
18982 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18983 harmless Elisp code, from a strong `force' from x_connection_closed.
18984 * frame.h (Qnoelisp): Declare.
18985 * xterm.c (x_connection_closed): Pass `noelisp'.
18986
18987 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18988 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18989 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18990 rather than `int' for the type of `type'.
18991
189922008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18993
18994 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18995
18996 * Makefile.in (GNUC): Remove support for gcc-1.x.
18997
189982008-02-10 Richard Stallman <rms@gnu.org>
18999
19000 * lisp.h (ASET): Use AREF, not ASLOT.
19001
190022008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19003
19004 * lisp.h (ASET): Check bounds.
19005
190062008-02-10 Glenn Morris <rgm@gnu.org>
19007
19008 * buffer.c (mode-name): Doc fix.
19009
190102008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19011
19012 * Makefile.in:
19013 * emacs.c:
19014 * gmalloc.c:
19015 * keyboard.c:
19016 * lisp.h:
19017 * m/ibm370aix.h:
19018 * process.c:
19019 * regex.c:
19020 * s/hpux.h:
19021 * sysdep.c:
19022 * sysselect.h:
19023 * systty.h:
19024 * unexec.c:
19025 * w32term.c:
19026 * xsmfns.c:
19027 * xterm.c: Remove code that deals with obsolete variables.
19028
19029 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19030
19031 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19032 nothing else needs it anymore.
19033
190342008-02-09 Eli Zaretskii <eliz@gnu.org>
19035
19036 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19037 instead of unibyte_char_to_multibyte.
19038
190392008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19040
19041 * s/gnu-linux.h: Remove commented out code.
19042
19043 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19044
19045 * Makefile.in: Update what RMS says about using autoconf.
19046 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19047 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19048 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19049 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19050
190512008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19052
19053 * keymap.c (Fkey_description): Move side effect outside of macro call.
19054
19055 * xfaces.c (Finternal_make_lisp_face):
19056 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19057
19058 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19059 (syms_of_fontset): Use ASET.
19060
19061 * fns.c (concat): Move side effect outside of macro call.
19062 (hash_clear): Use ASET.
19063
190642008-02-08 Richard Stallman <rms@gnu.org>
19065
19066 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19067 If FORCE, and frame has a surrogate minibuffer for another frame,
19068 delete the other frame first.
19069
190702008-02-07 Timo Savola <timo.savola@iki.fi>
19071
19072 * xterm.c (x_detect_focus_change): Handle embed client message.
19073 (handle_one_xevent): Ditto.
19074 (handle_one_xevent): If embedded and we get a button press/release,
19075 request focus.
19076 (xembed_set_info, xembed_send_message): New functions.
19077 (x_make_frame_visible): Call xembed_set_info if embedded.
19078 (x_make_frame_invisible): Call xembed_set_info if embedded.
19079 (x_term_init): Initialize Xatom_XEMBED.
19080 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19081 (x_iconify_frame): Ditto.
19082
19083 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19084 (enum xembed_info, enum xembed_message, enum xembed_focus)
19085 (enum xembed_modifier, enum xembed_accelerator): New.
19086 (xembed_set_info, xembed_send_message): Declare.
19087 (FRAME_X_EMBEDDED_P): New.
19088
19089 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19090 gtk_plug_new.
19091
19092 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19093 window ID of a frame.
19094 (x_window): Reparent frame if embedded.
19095 (Fx_create_frame): Don't set border width if embedded.
19096
19097 * emacs.c (USAGE3): Add --parent-id.
19098 (standard_args): Ditto.
19099
191002008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19101
19102 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19103
191042008-02-07 Jim Meyering <meyering@redhat.com>
19105
19106 Use "do...while (0)", not "if (1)...else" in macro definitions.
19107 The latter provokes a warning from gcc about the empty else, when
19108 followed by ";". Also, without that trailing semicolon, it would
19109 silently swallow up any following statement.
19110 * syntax.h (SETUP_SYNTAX_TABLE)
19111 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19112 * buffer.h (DECODE_POSITION): Likewise.
19113 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19114 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19115 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19116 (FETCH_CHAR_ADVANCE): Likewise.
19117 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19118
191192008-02-07 Jim Meyering <meyering@redhat.com>
19120
19121 * lread.c [lint]: Don't include <sys/inode.h>.
19122
191232008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19124
19125 * xselect.c (x_handle_dnd_message):
19126 * xmenu.c (digest_single_submenu, xmenu_show):
19127 * xdisp.c (with_echo_area_buffer_unwind_data)
19128 (format_mode_line_unwind_data, unwind_format_mode_line)
19129 (display_menu_bar):
19130 * eval.c (Ffetch_bytecode):
19131 * doc.c (store_function_docstring):
19132 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19133 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19134 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19135
191362008-02-07 Kenichi Handa <handa@m17n.org>
19137
19138 * ftxfont.c (ftxfont_open): Don't set
19139 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19140
19141 * ftfont.c (ftfont_open): Fix previous change.
19142
191432008-02-06 Jason Rumney <jasonr@gnu.org>
19144
19145 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19146 Use cached metrics for ASCII characters.
19147 (w32font_open_internal): Don't set font's owning_frame.
19148 Cache metrics for ASCII characters.
19149
19150 * w32font.h (struct w32font_info): Add ascii_metrics.
19151 Remove owning_frame.
19152
191532008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19154
19155 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19156 to negative value.
19157
19158 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19159
19160 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19161
19162 * charset.c (syms_of_charset): Set QCtest and Qeq.
19163
191642008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19165
19166 * process.c (Fstart_process):
19167 * callproc.c (Fcall_process): Handle the case where
19168 Funhandled_file_name_directory returns nil.
19169
19170 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19171 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19172 * font.c (check_gstring): Use them and AREF to access the vector before
19173 we know it's really a gstring.
19174 (Ffont_shape_text): Fix typo.
46e722a9 19175 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19176
19177 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19178 Declare.
19179
19180 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19181
191822008-02-05 Jason Rumney <jasonr@gnu.org>
19183
19184 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19185 Set smallest_font_height and smallest_char_width in display info.
19186
191872008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19188
19189 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19190
191912008-02-05 Miles Bader <miles@gnu.org>
19192
19193 * xfaces.c (get_lface_attributes, merge_named_face)
19194 (lookup_named_face, lookup_derived_face, realize_named_face):
19195 Revert 2008-02-01 change by cyd@stupidchicken.com.
19196
191972008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19198
19199 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19200 fallback fonts.
19201 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19202
192032008-02-04 Jason Rumney <jasonr@gnu.org>
19204
19205 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19206 set full_name.
19207 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19208
192092008-02-03 Jason Rumney <jasonr@gnu.org>
19210
19211 * makefile.w32-in (OBJ1): Include font.o here.
19212 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19213
192142008-02-02 Jason Rumney <jasonr@gnu.org>
19215
19216 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19217
192182008-02-01 Jason Rumney <jasonr@gnu.org>
19219
19220 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19221
19222 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19223
192242008-02-01 Andreas Schwab <schwab@suse.de>
19225
19226 * Makefile.in (shortlisp, lisp): Update for rename of
19227 ../lisp/language/myanmar.el.
19228
192292008-02-01 Chong Yidong <cyd@stupidchicken.com>
19230
19231 * xfaces.c (get_lface_attributes): Delete function.
19232 (merge_named_face, lookup_named_face, lookup_derived_face)
19233 (realize_named_face): Call lface_from_face_name directly, and use
19234 the fact that merge_face_vectors does not alter its FROM argument.
19235
192362008-02-01 Jason Rumney <jasonr@gnu.org>
19237
19238 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19239 input in the default locale. Handle non-Unicode multibyte input.
19240
192412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19242
19243 * fontset.c (reorder_font_vector): Exclude nil elements from the
19244 font group. Don't try multiple fonts.
19245 (fontset_font): Adjust for the above change.
19246 (Finternal_char_font): Return nil if the found font doesn't
19247 contain the character ch.
19248
19249 * Makefile.in (lisp, shortlisp): Add cham.el.
19250
192512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19252
19253 * font.h (FONTP): Make it return 1 also for a font-object.
19254
19255 * .gdbinit (xfontset): New function.
19256
19257 * font.c (font_find_for_lface): Check if the character C is
19258 supported or not only for the first font.
19259
19260 * fontset.c (reorder_font_vector): Fix typo.
19261 (fontset_find_font): Don't add a font-spec specifying a script.
19262 Use 0 (not Qt) for the indication of empty font-group. Change the
19263 format of RFONT-DEF. Return Qt if no font in the font-group
19264 support the character.
19265 (fontset_font): Adjust for the above change. If no font was
19266 found the character, remember that.
19267 (face_for_char): Adjust for the change of RFONT-DEF.
19268 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19269 no font for the target.
19270 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19271
192722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19273
19274 * font.c (font_load_for_face): Handle the case that the font in
19275 face->lface is a string.
19276
192772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19278
19279 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19280
192812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19282
19283 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19284 Fix previous change. If the frame is not on a window system,
19285 signal an error.
19286
192872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19288
19289 * coding.c (decode_coding_object, encode_coding_object): Adjust
19290 marker positions after conversion.
19291
19292 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19293
192942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19295
19296 * font.c (font_find_for_lface): Fix the handling of the return
19297 value of font_has_char.
19298 (Ffont_shape_text): Fix previous change.
19299
19300 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19301 (fontset_ref_and_range): Delete it.
19302 (fontset_find_font): Call char_table_ref_and_range instead of
19303 FONTSET_REF_AND_RANGE.
19304 (make_fontset): Don't setup font groups of Latin here.
19305 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19306 (new_fontset_from_font): Make the specified font the default for
19307 all Latin characters.
19308
193092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19310
19311 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19312 is on a window system before accessing the fontset of the frame.
19313
193142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19315
19316 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19317
19318 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19319 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19320
19321 * font.c (Ffont_shape_text): If the font driver doesn't have a
19322 shaper function, make zero-width glyphs to have at least one-pixel
19323 width. Fix setting of `to' field of glyphs.
19324
193252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19326
19327 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19328 glyphs.
19329
19330 * font.h (struct font_driver): Improve docstring of member `shape'.
19331
193322008-02-01 Kenichi Handa <handa@m17n.org>
19333
19334 * composite.c (syms_of_composite): Fix docstring of
19335 auto-composition-function.
19336
19337 * font.h (LGLYPH_SIZE): New macro.
19338
19339 * font.c (Ffont_fill_gstring): Stop filling when a character not
19340 supported by the font is found.
19341 (Ffont_shape_text): When a shape callback function returns nil,
19342 try at most two more times with larger gstring.
19343 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19344
19345 * xdisp.c (handle_auto_composed_prop): Change the argument to
19346 auto-composition-function.
19347
19348 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19349 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19350 Lispy glyph and store it in the lgstring.
19351
19352 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19353
19354 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19355
193562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19357
19358 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19359
19360 * fontset.c (Vfont_encoding_charset_alist): New variable.
19361 (syms_of_fontset): DEFVAR it.
19362 (reorder_font_vector, fontset_find_font): Optimize for the case of
19363 no need of reordering.
19364 (face_for_char): Map the charset property by
19365 Vfont_encoding_charset_alist.
19366
193672008-02-01 Jason Rumney <jasonr@gnu.org>
19368
19369 * w32font.c (logfonts_match): Don't check adstyle here.
19370 (font_matches_spec): Check here against physical font instead.
19371 (add_font_entity_to_list): Avoid some substitutions.
19372
19373 * font.c (font_parse_fcname): Default weight and slant to normal.
19374 (font_score): Prefer normal fonts if weight or slant unspecified.
19375 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19376 match freetype scores.
19377
193782008-02-01 Jason Rumney <jasonr@gnu.org>
19379
19380 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19381 font, as it may have been deleted.
19382 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19383 most common hyphenless variation.
19384 (logfonts_match): Check generic family.
19385 (font_matches_spec): Don't check generic family here.
19386 (fill_in_logfont): Set generic family based on adstyle.
19387
19388 * w32font.h (w32font_get_cache): Update declaration.
19389
193902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19391
19392 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19393
19394 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19395 If none of the new drivers are available, call font_update_drivers
19396 with the old drivers.
19397
19398 * w32font.c (w32font_get_cache): Adjust the argument type.
19399
19400 * xfont.c (xfont_get_cache): Adjust the argument type.
19401
19402 * font.h (struct font_driver): Change argument type of get_cache.
19403
19404 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19405
19406 * font.c (Ffont_get): Fix arguments to Fassoc.
19407 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19408 (font_clear_cache): New function.
19409 (font_list_entities, font_matching_entity): Use font_get_cache.
19410 (font_update_drivers): Call font_clear_cache when finishing a driver.
19411
19412 * fontset.c (fontset_find_font): Fix previous change.
19413
194142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19415
19416 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19417 dpyinfo->font_table.
19418 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19419 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19420
19421 * font.c (font_at): Handle the case that the arg C is negative.
19422 Handle the unibyte case.
19423 (Ffont_at): Call font_at with the arg C -1.
19424
19425 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19426 the position here, and call font_at with the arg C -1.
19427 Don't check the range of the existing composition at the point.
19428
194292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19430
19431 * fontset.c (fontset_add): New args charset_id and family.
19432 Change caller.
19433 (load_font_get_repertory, fontset_find_font): Assume that
19434 font_spec is always a font-spec object.
19435 (Fset_fontset_font): Always store a font-spec object in a fontset.
19436
19437 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19438 instead of get_property_and_range.
19439
194402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19441
19442 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19443 (xftfont_open): Don't keep locking face.
19444 (xftfont_close): Don't unlock face.
19445 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19446
19447 * fontset.c (fontset_find_font): Don't prefer a font of
19448 supplementary charset.
19449
194502008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19453 script, langsys_tag to langsys, new member script.
19454 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19455 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19456 listing to the script specified in that property. Fix arg to
19457 OTF_check_features.
19458
194592008-02-01 Jason Rumney <jasonr@gnu.org>
19460
19461 * w32font.h: New file.
19462
19463 * w32font.c: Include it.
19464 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19465 (w32font_open): Set owning_frame.
19466 (w32font_text_extents): Use owning_frame.
19467 (struct font_callback_data): Add opentype_only field.
19468 (add_font_entity_to_list): Use it to filter fonts.
19469 Don't check against full name.
19470 (w32font_list_internal): New function.
19471 (w32font_list): Use it.
19472 (w32font_match_internal): New function.
19473 (w32font_match): Use it.
19474 (w32font_open_internal): New function.
19475 (w32font_open): Use it.
19476 (w32font_get_cache, w32font_close, w32font_has_char)
19477 (w32font_encode_char, w32font_text_extents, w32font_draw):
19478 Make non-static.
19479
19480 * makefile.w32-in (w32font.o): Depend on w32font.h.
19481
194822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19483
19484 * charset.c (Fdefine_charset_internal): Record a supplementary
19485 charset at the tail of Vcharset_order_list.
19486
19487 * font.c (Ffont_shape_text): Fix the return value.
19488
19489 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19490
19491 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19492
194932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19494
19495 * ftfont.c (struct OpenTypeSpec): New struct.
19496 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19497 (ftfont_get_open_type_spec): New function.
19498 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19499
19500 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19501
195022008-02-01 Jason Rumney <jasonr@gnu.org>
19503
19504 * w32font.c (add_font_entity_to_list): Compare only the beginning
19505 of full name.
19506
195072008-02-01 Kenichi Handa <handa@m17n.org>
19508
19509 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19510 Never return HANDLED_RECOMPUTE_PROPS.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * font.c (font_gstring_produce): Delete it.
19515
19516 * composite.h (COMPOSITION_METHOD):
19517 Handle COMPOSITION_WITH_GLYPH_STRING.
19518
195192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19520
19521 * xfont.c (Qx): Delete.
19522 (syms_of_xfont): Don't initialize Qx.
19523
19524 * composite.h (enum composition_method):
19525 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19526
195272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19528
19529 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19530 (choose_face_font): Accept new form of font-spec.
19531
19532 * frame.h (font_driver_list): Declare it unconditionally.
19533 (struct frame): Define members font_driver_list and font_data_list
19534 unconditionally.
19535
19536 * fontset.c: Include "font.h" unconditionally.
19537 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19538 (Fset_fontset_font): Accept a font-spec object.
19539
19540 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19541 PIXEL_SIZE part a wild card.
19542
19543 * dispextern.h (struct glyph_string): Define members clip and
19544 num_clips unconditionally.
19545 (struct face): Define members font_info and extra unconditionally.
19546
19547 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19548 ftfont_info only when HAVE_LIBOTF is defined.
19549
195502008-02-01 Andreas Schwab <schwab@suse.de>
19551
19552 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19553 and end.
19554
195552008-02-01 Jason Rumney <jasonr@gnu.org>
19556
19557 * w32font.c (w32font_driver): Add new fields.
19558
195592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19560
19561 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19562 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19563 (LIBES): Add @M17N_FLT_CFLAGS@.
19564
19565 * composite.c (compose_text): Don't treat the new style
19566 composition specially.
19567
19568 * emacs.c (main): Call syms_of_font unconditionally.
19569
19570 * font.h (FONT_ENTITY_NOT_LOADABLE)
19571 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19572 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19573 (struct font_driver): New member shape.
19574 (font_registry_charsets): Extern it.
19575 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19576 (font_otf_capability, font_drive_otf): Delete their externs.
19577
19578 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19579 (font_charset_alist, font_registry_charsets): Move from xfont.c
19580 and rename.
19581 (font_prop_validate_otf): New function.
19582 (font_property_table): Register it for QCotf.
19583 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19584 (font_drive_otf): Delete.
19585 (font_prepare_composition): New arg F. Adjust for the change of
19586 lispy gstring.
19587 (font_find_for_lface): New arg C.
19588 (font_load_for_face): Adjust for the change of font_find_for_lface.
19589 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19590 lispy gstring.
19591 (Ffont_shape_text): New function.
19592 (Fopen_font): If the font size is not given, use 12-pixel.
19593 (Ffont_at): New arg STRING.
40b1a3a9 19594 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19595 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19596 conditionally.
19597
19598 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19599 fonts of the same font-spec. Change the format of RFONT-DEF.
19600 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19601 Adjust for the change of RFONT-DEF.
19602 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19603
19604 * ftfont.h: New file.
19605
19606 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19607 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19608 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19609 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19610 font_otf_capability and font_drive_otf, set ftfont_shape.
19611 (ftfont_list): Adjust for the change of :otf property value.
19612 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19613 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19614 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19615 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19616 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19617 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19618
19619 * w32term.c (x_draw_composite_glyph_string_foreground):
19620 Adjust for the change of lispy gstring.
19621
19622 * xdisp.c (handle_composition_prop): Adjust for the change of
19623 lispy gstring. Call a function for auto-composition with the
19624 third arg it->window.
19625 (fill_composite_glyph_string): Adjust for the change of lispy string.
19626 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19627
19628 * xfaces.c (set_font_frame_param): Adjust for the change of
19629 font_find_for_lface.
19630
19631 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19632 (xfont_registry_charsets): Likewise. Change caller.
19633 (syms_of_xfont): Don't handle x_font_charset_alist.
19634
19635 * xftfont.c: Include "ftfont.h".
19636 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19637 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19638 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19639 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19640 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19641 Set xftfont_driver.shape to xftfont_shape.
19642
19643 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19644 the change of lispy gstring.
19645
196462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19647
19648 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19649
196502008-02-01 Jason Rumney <jasonr@gnu.org>
19651
19652 * w32font.c (w32font_draw): Fill background manually.
19653
196542008-02-01 Jason Rumney <jasonr@gnu.org>
19655
19656 * font.c (Qfontp): Remove unused symbol.
19657 (QCantialias): New symbol.
19658 (syms_of_font): Define it.
19659 (font_property_table): Set a validator for QCantialias.
19660
19661 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19662 Define if not already.
19663 (QCfamily): Share with xfaces.c.
19664 (Qstandard, Qsubpixel, Qnatural): New symbols.
19665 (syms_of_w32font): Define them. Don't define QCfamily here.
19666 (w32_antialias_type, lispy_antialias_type): New functions.
19667 (w32_enumfont_pattern_entity): New arg requested_font.
19668 Set antialias parameter if non-default was requested.
19669 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19670
196712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19672
19673 * lread.c (read1): Undo the previous change.
19674
196752008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19676
19677 * frame.c (Fdelete_frame): Call font_update_drivers only when
19678 USE_FONT_BACKEND is defined.
19679
196802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19681
19682 * font.h (struct font_bitmap): New member bits_per_pixel.
19683 (struct font_driver): New members start_for_frame and end_for_frame.
19684 (struct font_data_list): New struct.
19685 (font_put_frame_data, font_get_frame_data): Extern them.
19686
19687 * frame.h (struct frame): New member font_data_list.
19688
19689 * font.c (font_update_drivers): Call driver->start_for_frame and
19690 driver->end_for_frame at proper timings.
19691 (font_put_frame_data, font_get_frame_data): New functions.
19692 (Ffont_spec): Add usage in the docstring.
19693
19694 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19695 (Fdelete_frame): Call font_update_drivers.
19696
19697 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19698 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19699 (xftfont_get_xft_draw): New function.
19700 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19701 (xftfont_end_for_frame): New function.
19702 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19703
19704 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19705 Change argument. Cache GCs in the per-frame data.
19706 (struct ftxfont_frame_data): New struct.
19707 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19708 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19709 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19710 (ftxfont_end_for_frame): New function.
19711 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19712
19713 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19714
197152008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * xselect.c (Vselection_coding_system)
19718 (Vnext_selection_coding_system): Delete them.
19719 (syms_of_xselect): Don't declare selection-coding-system and
19720 next-selection-coding-system. They are declared in select.el.
19721
197222008-02-01 Jason Rumney <jasonr@gnu.org>
19723
19724 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19725
19726 * w32fns.c: Include imm.h.
19727 (get_composition_string_fn, get_ime_context_fn): New optional
19728 system functions.
19729 (globals_of_w32fns): Load them from imm32.dll.
19730 (ignore_ime_char): New flag.
19731 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19732 WM_IME_ENDCOMPOSITION messages.
19733
19734 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19735 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19736
197372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19738
19739 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19740 (READCHAR_REPORT_MULTIBYTE): New macro.
19741 (readchar): New 2nd arg MULTIBYTE.
19742 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19743 Make symbol's name multibyte according to the multibyteness of the
19744 source.
19745
197462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19747
19748 * xfaces.c (face_for_overlay_string): Call lookup_face with
19749 correct arguments (fix of synching with the trunk).
19750
197512008-02-01 Kenichi Handa <handa@m17n.org>
19752
19753 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19754 (font_prop_validate_non_neg, font_prop_validate_spacing):
19755 Delete argument prop_index.
19756 (font_property_table): Change arguments to validater. Change Callers.
19757 (font_lispy_object): Delete.
19758 (font_at): Use font_find_object instead fo font_lispy_object.
19759
197602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19761
19762 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19763 and file names.
19764
197652008-02-01 Jason Rumney <jasonr@gnu.org>
19766
19767 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19768 (font_matches_spec): Remove debug output.
19769 (add_font_entity_to_list): Avoid using substituted fonts.
19770
197712008-02-01 Jason Rumney <jasonr@gnu.org>
19772
19773 * doc.c (Fsnarf_documentation):
19774 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19775
197762008-02-01 Miles Bader <miles@gnu.org>
19777
19778 * dispextern.h (struct glyph_row): Only define "clip" field if
19779 HAVE_WINDOW_SYSTEM is defined.
19780
197812008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19782
19783 Fix up multi-tty merge.
19784
19785 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19786 and indentation.
19787
19788 * xfaces.c (free_realized_face, clear_face_gcs):
19789 Include font_done_for_face in the input_blocked section, just in case.
19790
19791 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19792 (get_char_face_and_encoding): Undo last change and remove the *other*
19793 duplicate definition (i.e. keep the one that's better scoped and that
19794 includes code for the font-backend).
19795
19796 * terminal.c (create_terminal): Default keyboard_coding to
19797 `no-conversion' and terminal_coding to `undecided'.
19798
19799 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19800
19801 * fontset.c (free_realized_fontsets): Check that the table entry does
19802 contain a fontset before trying to compare it to `base'.
19803
19804 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19805 syms_of_charset, and syms_of_coding earlier because init_window_once
19806 now needs Vcoding_system_hash_table to be setup.
19807
19808 * coding.h (default_buffer_file_coding): Remove.
19809
19810 * coding.c (default_buffer_file_coding): Remove.
19811 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19812 than ->symbol, and use the terminal-local coding system.
19813 (syms_of_coding): Don't setup the coding-systems that are not
19814 terminal-local.
19815 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19816
19817 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19818 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19819
19820 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19821 in chartab.c and were re-added here by mistake.
19822 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19823
19824 * doc.c (Fsnarf_documentation):
19825 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19826 src to etc.
19827
19828 * ChangeLog.10: Add mistakenly removed entry.
19829
198302008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19831
19832 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19833
198342008-02-01 Miles Bader <miles@gnu.org>
19835
19836 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19837 Add extra args to FACE_FOR_CHAR.
19838
198392008-02-01 Kenichi Handa <handa@m17n.org>
19840
19841 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19842 in sequence.
19843
19844 * chartab.c (map_sub_char_table, map_char_table): If the range
19845 contains just one character, call the function with that character
19846 even if the depth is not 3.
19847
198482008-02-01 Jason Rumney <jasonr@gnu.org>
19849
19850 * w32font.c (w32font_text_extents): Calculate metrics for the
19851 whole string.
19852
198532008-02-01 Jason Rumney <jasonr@gnu.org>
19854
19855 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19856
198572008-02-01 Jason Rumney <jasonr@gnu.org>
19858
19859 * w32term.c (x_set_glyph_string_clipping): Use
19860 get_glyph_string_clip_rects.
19861 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19862 Adjust for the change of struct glyph_string.
19863
19864 * w32font.c (w32font_draw): Do clipping here.
19865
198662008-02-01 Kenichi Handa <handa@m17n.org>
19867
19868 * xftfont.c (xftfont_draw): Adjust for the change of struct
19869 glyph_string.
19870
19871 * xterm.c (x_set_glyph_string_clipping): Use
19872 get_glyph_string_clip_rects.
19873 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19874 Adjust for the change of struct glyph_string.
19875
19876 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19877 the resulting clip(s}.
19878 (expose_overlaps): Add arg r. Change callers. Set it to
19879 row->clip temporarily.
19880 (expose_window): Redraw rows overlapping the exposed area.
19881
19882 * dispextern.h (struct glyph_row): New member clip.
19883 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19884 clip_height, new member clip, and num_clips.
19885
198862008-02-01 Kenichi Handa <handa@m17n.org>
19887
19888 * data.c (Fchar_or_string_p): Fix docstring.
19889
198902008-02-01 Kenichi Handa <handa@m17n.org>
19891
19892 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19893 create a temporary XftDraw object.
19894
198952008-02-01 Kenichi Handa <handa@m17n.org>
19896
19897 * font.c (Ffontp): Fix docstring.
19898
19899 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19900 strong evidence of ISO-2022.
19901
199022008-02-01 Kenichi Handa <handa@m17n.org>
19903
19904 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19905 SYNTAX_ENTRY_FOLLOW_PARENT.
19906
199072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19908
19909 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19910 its type.
19911 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19912 Update to the new type of weak_hash_tables and next_weak.
19913
19914 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19915 a plain C pointer to Lisp_Hash_Table.
19916
19917 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19918 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19919 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19920 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19921 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19922 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19923 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19924 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19925 (GC_EQ): Remove since they've been identical to their non-GC_
19926 alter-egos ever since the markbit was eradicated.
19927
19928 * alloc.c:
19929 * buffer.c:
19930 * buffer.h:
19931 * data.c:
19932 * fileio.c:
19933 * filelock.c:
19934 * fns.c:
19935 * frame.h:
19936 * lisp.h:
19937 * macterm.c:
19938 * print.c:
19939 * process.c:
19940 * w32fns.c:
19941 * w32menu.c:
19942 * w32term.c:
19943 * xfns.c:
19944 * xmenu.c:
19945 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19946
199472008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * chartab.c (map_sub_char_table): Make it work for the top-level
19950 char-table. Fix handling of parent char-table.
19951 (map_char_table): Adjust for the above change.
19952
199532008-02-01 Jason Rumney <jasonr@gnu.org>
19954
19955 * w32font.c (Qgdi): Rename from Qw32.
19956
199572008-02-01 Jason Rumney <jasonr@gnu.org>
19958
19959 * w32bdf.c (get_quoted_string): Make function static.
19960
199612008-02-01 Kenichi Handa <handa@m17n.org>
19962
19963 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19964 bigger ascent and descent than those of the font, use them as
19965 font's ascent and descent.
19966
199672008-02-01 Kenichi Handa <handa@m17n.org>
19968
19969 * Makefile.in (${lispsource}international/charprop.el): Move this
19970 target within "#ifdef HAVE_UNIDATA" and "#endif".
19971
199722008-02-01 Kenichi Handa <handa@m17n.org>
19973
19974 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19975 (shortlisp): Add ../lisp/language/tai-viet.el.
19976
199772008-02-01 Ulrich Mueller <ulm@gentoo.org>
19978
19979 * Makefile.in (${lispsource}international/charprop.el): Depend on
19980 temacs${EXEEXT}.
19981
199822008-02-01 Jason Rumney <jasonr@gnu.org>
19983
19984 * w32font.c (w32font_close): Delete the GDI font object.
19985
19986 * w32menu.c: Include character.h.
19987
19988 * w32proc.c: Likewise.
19989
19990 * w32select.c: Likewise.
19991
19992 * makefile.w32-in (w32proc.o): Depend on character.h.
19993
199942008-02-01 Jason Rumney <jasonr@gnu.org>
19995
19996 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19997
19998 * w32menu.c (syms_of_w32menu): Likewise.
19999
20000 * w32proc.c (syms_of_ntproc): Likewise.
20001
20002 * w32select.c (syms_of_w32select): Likewise.
20003
20004 * w32term.c (syms_of_w32term): Likewise.
20005
200062008-02-01 Jason Rumney <jasonr@gnu.org>
20007
20008 * w32font.c (w32font_draw): Delete brush after using it.
20009
200102008-02-01 Jason Rumney <jasonr@gnu.org>
20011
20012 * w32font.c (w32font_open): Don't set font_idx.
20013 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20014 to font settings.
20015 (w32font_draw): Fill background explicitly.
20016
200172008-02-01 Jason Rumney <jasonr@gnu.org>
20018
20019 * w32term.c (w32_initialize): Don't call w32font_initialize.
20020
20021 * w32font.c (w32font_info): Remove subranges.
20022 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20023 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20024 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20025 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20026 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20027 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20028 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20029 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20030 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20031 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20032 New symbols.
20033 (font_callback_data): New struct.
20034 (w32font_list, w32font_match): Use it.
20035 (w32font_open): Don't populate subranges.
20036 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20037 (w32font_encode_char): Always return unicode code-point as-is.
20038 (w32font_text_extents): Supply a transformation matrix to
20039 GetGlyphOutline. Never look up by glyph index. Avoid looping
20040 twice. Use unicode version of GetTexExtentPoint32 instead of
20041 glyph index version.
20042 (set_fonts_frame): Remove.
20043 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20044 set frame parameter. Use backward compatible fake foundries.
20045 Save generic family in extra slot under QCfamily. Make width slot
20046 constant. Save QCspacing value. Save list of scripts instead of
20047 binary subranges.
20048 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20049 (add_font_entity_to_list): Use font_callback_data struct. Filter
20050 unwanted fonts.
20051 (add_one_font_entity_to_list): Use font_callback_data struct.
20052 (w32_registry): Default to iso10646_1.
20053 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20054 string font registries. Don't fill in font name if it is a generic
20055 family name, fill family instead. Use spacing, family and script
20056 extra info to fill pitch, family and charset fields.
20057 (list_all_matching_fonts): Use font_callback_data struct.
20058 (unicode_range_for_char): Remove.
20059 (font_supported_scripts): New function.
20060 (w32font_initialize): Remove.
20061 (syms_of_w32font): Update which symbols are defined.
20062
200632008-02-01 Jason Rumney <jasonr@gnu.org>
20064
20065 * font.c (font_pixel_size): Reverse assq_no_quit args.
20066
20067 * w32term.h (FONT_WIDTH): Report max width, not average.
20068 (FONT_MAX_WIDTH): Remove.
20069 (FONT_AVG_WIDTH): New macro.
20070
20071 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20072 redefinition of FONT_WIDTH.
20073
20074 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20075 (w32_cache_char_metrics): Use FONT_WIDTH.
20076
20077 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20078
200792008-02-01 Jason Rumney <jasonr@gnu.org>
20080
20081 * w32font.c (w32font_open): Make lfHeight negative.
20082
20083 * w32fns.c (x_default_font_parameter): Use new style font name.
20084 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20085
200862008-02-01 Jason Rumney <jasonr@gnu.org>
20087
20088 * w32font.c (QCsubranges): New symbol.
20089 (w32font_open, w32font_has_char): Get subranges from subproperty
20090 of extra.
20091 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20092 (syms_of_w32font): Define :subranges symbol.
20093
20094 * font.c (font_put_extra): Expose externally.
20095
20096 * font.h (font_put_extra): Move declaration from font.c.
20097
20098 * font.c (Ffont_get): Use font driver to determine otf capability.
20099 (adjust_anchor): Check if driver defines anchor_point before using.
20100
20101 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20102 (w32font_draw): Use options.
20103 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20104 Fix detection of truetype fonts.
20105 (registry_to_w32_charset): Handle charsets other than iso8859-1
20106 expressed as lisp symbols.
20107 (w32_registry): Express charset as lisp symbol.
20108 (fill_in_logfont): Reverse pixel and point height logic.
20109 Don't set width here. Set quality to default.
20110
20111 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20112 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20113
20114 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20115 Remove redundant loop and allocation.
20116
20117 * makefile.w32-in (font.o, w32font.o): New objects.
20118 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20119 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20120
20121 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20122 STORE_XCHARB a valid l-value.
20123
20124 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20125 calculations for non-Truetype fonts.
20126 (x_draw_glyph_string): Sync with xterm.c.
20127 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20128 Remove redundant code.
20129 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20130
20131 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20132 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20133
20134 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20135 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20136
20137 * w32font.c: New file for w32 font backend.
20138
201392008-02-01 Kenichi Handa <handa@m17n.org>
20140
20141 * term.c: Don't include "buffer.h" twice.
20142
201432008-02-01 Kenichi Handa <handa@m17n.org>
20144
20145 * character.c (Funibyte_string): New function.
20146 (syms_of_character): Defsubr it.
20147
201482008-02-01 Jason Rumney <jasonr@gnu.org>
20149
20150 * w32term.c [USE_FONT_BACKEND]:
20151 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20152 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20153 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20154 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20155 (x_free_frame_resources): Sync with xterm.c.
20156
201572008-02-01 Andreas Schwab <schwab@suse.de>
20158
20159 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20160 char-table size.
20161
201622008-02-01 Kenichi Handa <handa@m17n.org>
20163
20164 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20165
201662008-02-01 Kenichi Handa <handa@m17n.org>
20167
20168 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20169 font_otf_gpos, add font_drive_otf.
20170
20171 * fontset.c (fontset_find_font): Pay attention to font size
20172 specified for a font.
20173 (reorder_font_vector): Check contents of font_def.
20174
20175 * font.c (struct otf_list): Delete it.
20176 (otf_list): Make it a lisp variable.
20177 (otf_open): Use lispy otf_list.
20178 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20179 (check_otf_features): New function.
20180 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20181 New functions.
20182 (font_drive_otf): New function merging font_otf_gsub and
20183 font_otf_gpos.
20184 (font_open_for_lface): New arg spec. Change argument order.
20185 (font_load_for_face): Adjust for the change of font_open_for_lface.
20186 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20187 Ffont_otf_gpos.
20188 (syms_of_font): Staticpro otf_list. Delete defsubr of
20189 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20190
20191 * xfaces.c (set_font_frame_param): Adjust for the change of
20192 font_open_for_lface.
20193
20194 * font.h (font_open_for_lface): Adjust prototype.
20195 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20196 member otf_drive.
20197 (font_otf_gsub, font_otf_gpos): Delete externs.
20198 (font_drive_otf): Extern it.
20199
202002008-02-01 Kenichi Handa <handa@m17n.org>
20201
20202 * font.c (font_at): If the window W is not on a window system,
20203 return Qnil.
20204
20205 * coding.c (produce_chars, encode_coding): Don't call
20206 insert_from_gap if no characters to produce.
20207
202082008-02-01 Kenichi Handa <handa@m17n.org>
20209
20210 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20211 Fclear_face_cache.
20212
20213 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20214
202152008-02-01 Miles Bader <miles@gnu.org>
20216
20217 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20218 Parse "--disable-font-backend" option.
20219 (standard_args): Add "--disable-font-backend" option.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * fontset.c (fontset_find_font): New function.
20224 (fontset_font): Use fontset_find_font.
20225 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20226 Register the specified font for all Latin characters.
20227 (new_fontset_from_font): Register the specified font for all Latin
20228 characters.
20229 (dump_fontset): For a realized fontset, include the base fontset
20230 name in the returned vector.
20231
202322008-02-01 Kenichi Handa <handa@m17n.org>
20233
20234 * character.h (CHAR_STRING): Cast C to unsigned on calling
20235 char_string.
20236
20237 * character.c (char_string): Type of arg C changed to unsigned.
20238 Signal an error if C is an invalid character code.
20239
20240 * editfns.c (general_insert_function, Fchar_to_string):
20241 Use CHARACTERP, not INTEGERP.
20242
202432008-02-01 Kenichi Handa <handa@m17n.org>
20244
20245 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20246 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20247
20248 * regex.c (analyse_first): Fix for multibyte characters in "case
20249 charset:" and "case categoryspec:".
20250
202512008-02-01 Andreas Schwab <schwab@suse.de>
20252
20253 * Makefile.in (LIBES): Move standard libraries to the end.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20258 nonzero, don't shrink the buffer nextb.
20259
20260 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20261
20262 * coding.c (coding_alloc_by_making_gap): New arg offset.
20263 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20264 offset.
20265 (decode_coding_iso_2022): Update coding->safe_charsets.
20266 (decode_coding_gap): Temporarily set
20267 current_buffer->text->inhibit_shrinking to 1.
20268
202692008-02-01 Kenichi Handa <handa@m17n.org>
20270
20271 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20272 indexing into elements of s->cmp and s->char2b.
20273
202742008-02-01 Juanma Barranquero <lekktu@gmail.com>
20275
20276 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20281 target_multibyte instead of multibyte.
20282 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20283 (bcmp_translate): Change the argument name from multibyte to
20284 target_multibyte.
20285
202862008-02-01 Kenichi Handa <handa@m17n.org>
20287
20288 These changes are to compile a regexp into a pattern that can be
20289 used both for multibyte and unibyte targets.
20290
20291 * Makefile.in (search.o): Depend on charset.h.
20292
20293 * character.c (multibyte_char_to_unibyte_safe): New function.
20294
20295 * search.c: Include "charset.h".
20296 (compile_pattern_1): Delete argument multibyte. Don't set
20297 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20298 (compile_pattern): Don't compare cp->buf.target_multibyte.
20299 Compare cp->buf.charset_unibyte.
20300 (compile_pattern): Set cp->buf.target_multibyte.
20301
20302 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20303
20304 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20305
20306 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20307 multibyte. Change callers.
20308 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20309 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20310 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20311 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20312 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20313 (regex_compile): Make the compiled pattern usable both for
20314 multibyte and unibyte targets.
20315 (analyse_first): Make the fastmap usable both for multibyte and
20316 unibyte targets.
20317 (TRANSLATE_VIA_MULTIBYTE): Delete.
20318 (re_match_2_internal): Pay attention to the case that the
20319 multibyteness of bufp and target may be different.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20324 empty box occupy at least one column width.
20325
203262008-02-01 Miles Bader <miles@gnu.org>
20327
20328 * Makefile.in: Remove redundant HAVE_XFT clause.
20329
203302008-02-01 Kenichi Handa <handa@m17n.org>
20331
20332 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20333
203342008-02-01 Kenichi Handa <handa@m17n.org>
20335
20336 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20337 being nil.
20338
203392008-02-01 Kenichi Handa <handa@m17n.org>
20340
20341 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20342
203432008-02-01 Kenichi Handa <handa@m17n.org>
20344
20345 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * search.c (simple_search): Fix previous change.
20350
203512008-02-01 Kenichi Handa <handa@m17n.org>
20352
20353 * xftfont.c (ftfont_font_format): Extern declaration.
20354
20355 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20356
20357 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20358 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20359
20360 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20361 (ftfont_font_format): Fix previous change.
20362
20363 * font.h (Ffont_xlfd_name): EXFUN it.
20364
20365 * font.c (font_parse_xlfd): Fix the array size of `f'.
20366 (register_font_driver): Use EQ to compare driver->type.
20367
20368 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20369 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20370 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20371
203722008-02-01 Kenichi Handa <handa@m17n.org>
20373
20374 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20375 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20376
203772008-02-01 Kenichi Handa <handa@m17n.org>
20378
20379 * xfont.c (xfont_open): Set font->format.
20380
20381 * xftfont.c (xftfont_open): Set font->format.
20382
20383 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20384 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20385 (ftfont_open): Set font->format.
20386 (ftfont_font_format): New function.
20387
20388 * font.h (struct font): New member format.
20389
20390 * font.c (Qopentype): New variable.
20391 (syms_of_font): Defsym it.
20392 (Fquery_font): Change the format of the last element of the return
20393 value.
20394
203952008-02-01 Kenichi Handa <handa@m17n.org>
20396
20397 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20398 last resort.
20399
204002008-02-01 Kenichi Handa <handa@m17n.org>
20401
20402 * coding.c (detect_coding_charset): Fix detection of multi-byte
20403 charset.
20404
204052008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20406
20407 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20408
204092008-02-01 Kenichi Handa <handa@m17n.org>
20410
20411 * xdisp.c (get_next_display_element): Set it->face_id for the
20412 first component of a composition.
20413 (x_produce_glyphs): Check if the font is changed or not for composition.
20414
204152008-02-01 Kenichi Handa <handa@m17n.org>
20416
20417 * fontset.c (Qlatin): New variable.
20418 (syms_of_fontset): Define it as a lisp symbol.
20419 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20420
204212008-02-01 Kenichi Handa <handa@m17n.org>
20422
20423 * font.c (font_unparse_fcname): Pay attention to the case that
20424 some of font property is a null string.
20425
204262008-02-01 Kenichi Handa <handa@m17n.org>
20427
20428 * term.c: Include "composite.h".
20429 (encode_terminal_code): Output all components of composition.
20430 Check the size of encode_terminal_src.
20431 (produce_glyphs): For composition, call produce_composite_glyph.
20432 (append_composite_glyph, produce_composite_glyph): New functions.
20433
20434 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20435 is not found, get font_info from the current ascii face.
20436
204372008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20440 buffer-file-name to Qnil before calling insert_from_buffer.
20441
20442 * font.c (font_unparse_fcname): Pay attention to the case that
20443 foundry is a null string.
20444
204452008-02-01 Kenichi Handa <handa@m17n.org>
20446
20447 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20448
20449 * font.c (Qunicode_sip): New variable.
20450 (syms_of_font): Declare it as a Lisp symbol.
20451
20452 * font.h (Qunicode_sip): Extern it.
20453
204542008-02-01 Kenichi Handa <handa@m17n.org>
20455
20456 * composite.c (get_composition_id): Pay attention to TAB component.
20457
20458 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20459 TAB. Adjust for the change of s->char2b which always points to
20460 the first element of allocated memory.
20461
20462 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20463
20464 * xdisp.c (handle_composition_prop): Set it->c to the first
20465 non-TAB component.
20466 (fill_composite_glyph_string): Change argument.
20467 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20468 (x_produce_glyphs): Fix handling of left/right padding.
20469
204702008-02-01 Kenichi Handa <handa@m17n.org>
20471
20472 * coding.c (detect_coding_system): Fix for handling off
20473 inhibit_iso_escape_detection. Fix for the case that no coding
20474 system is defined for a specific coding category.
20475
204762008-02-01 Kenichi Handa <handa@m17n.org>
20477
20478 * font.c (font_matching_entity): Delete unused local var.
20479
20480 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20481 opening a font.
20482
20483 * fileio.c (Finsert_file_contents): On recovering a file, assume
20484 Unix-like eol.
20485 (choose_write_coding_system): On auto-saving a file, force
20486 Unix-like eol.
20487
20488 * coding.c (setup_coding_system): Fix setting of
20489 coding->common_flags based on eol_type.
20490 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20491 inherit from it.
20492
204932008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * alloc.c (NSTATICS): Increas to 0x600.
20496
204972008-02-01 Kenichi Handa <handa@m17n.org>
20498
20499 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20500 (ftfont_list): Don't check :name property.
20501 (ftfont_match): New function.
20502 (ftfont_pattern_entity): If the pattern doesn't contain
20503 FC_SPACING, don't assume FC_MONO.
20504
20505 * font.h (struct font_driver): New member `match'.
20506 (font_update_drivers): Adjust prototype.
20507
20508 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20509 property of FONT.
20510 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20511 them unconditionally.
20512 (font_matching_entity): New function.
20513 (font_open_by_name): Try font_matching_entity if exact match is
20514 not found.
20515 (font_update_drivers): Delete the arg FONT. Return a list of
20516 actually used backends. Don't free faces, font caches here.
20517 Don't store data in frame parameters. Don't call x_set_font.
20518 (Ffont_spec): Store :name property as is.
20519 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20520 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20521 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20522 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20523 Call font->driver->otf_gsub instead of font_otf_gsub.
20524
20525 * frame.c (x_set_font_backend): Do more works that were done in
20526 font_update_drivers before.
20527
20528 * xfont.c (xfont_match): New function.
20529 (xfont_driver): Set xfont_driver.match to xfont_match.
20530 (xfont_draw): Set font in GC if necessary.
20531
20532 * ftxfont.c (ftxfont_match): New function.
20533 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20534
20535 * xftfont.c (xftfont_match): New function.
20536 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * font.h (struct font): New member scalable.
20541 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20542 (font_otf_gsub): Adjust prototype.
20543
20544 * font.c (font_otf_capability): Fix handling of the default langsys.
20545 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20546 Check the contents of SPEC.
20547 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20548 (check_gstring): New function.
20549 (REPLACEMENT_CHARACTER): New macro.
20550 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20551 glyph codes of GSTRING.
20552 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20553 (font_prepare_composition): Set cmp->glyph_len.
20554 (font_open_entity): Set font->scalable.
20555 (Ffont_get): Handle :otf property.
20556 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20557 functions.
20558 (Fquery_font): Use font->font.full_name.
20559 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20560 Sfont_otf_alternates.
20561
20562 * ftfont.c (ftfont_open): Set font->font.full_name and
20563 font->font.name properly. Fix calculation of font->font.height
20564 and font->min_width.
20565
20566 * ftxfont.c (ftxfont_create_gcs): New function.
20567 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20568 (ftxfont_draw_backgrond): Fix filling region.
20569 (ftxfont_default_fid): New function.
20570 (ftxfont_open): Set xfont->fid to the return value of
20571 ftxfont_default_fid.
20572 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20573 (ftxfont_done_face): Free only GCs that are created by
20574 ftxfont_create_gcs.
20575 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20576
20577 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20578 Clip to src->width, etc (not src->clip_XXX).
20579
20580 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20581 FontBackend frame parameter.
20582
205832008-02-01 Kenichi Handa <handa@m17n.org>
20584
20585 * font.h (struct font_driver_list): New member `on'.
20586 (Fclear_font_cache): EXFUN it.
20587 (font_update_drivers): Extern it.
20588
20589 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20590 (font_list_entities): Check driver_list->on.
40b1a3a9 20591 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20592 (font_update_drivers): New function.
20593 (Fclear_font_cache): Check driver_list->on.
20594
20595 * frame.h (Qfont_backend): Extern it.
20596 (x_set_font_backend): Extern it.
20597
20598 * frame.c (Qfont_backend): New variable.
20599 (frame_parms): New element for font-backend.
20600 (x_set_font_backend): New function.
20601
20602 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20603 FontBackend frame parameter.
20604 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20605 x_set_font_backend.
20606
20607 * xfont.c (xfont_list): Don't try listing by :name property if the
20608 name is not for XLFD.
20609
206102008-02-01 Kenichi Handa <handa@m17n.org>
20611
20612 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20613 (LGLYPH_SET_TO): New macros.
20614 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20615 element of G is vector or not.
20616 (font_at): Extern it.
20617
20618 * font.c: Include window.h.
20619 (font_lispy_object): New function.
20620 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20621 end of valid glyph.
20622 (font_close_object): Fix getting (struct font *).
20623 (font_at): New function.
20624 (Ffont_get): If FONT is a font-object, get entity from it.
20625 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20626 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20627 range check.
20628 (Ffont_at): New function.
20629 (syms_of_font): Defsubr Sfont_at.
20630
20631 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20632 before the entry for Qcomposition.
20633 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20634 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20635 the font in gstring.
20636 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20637 LGLYPH_FORM (g) to detect the end of valid glyph.
20638 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20639 we are composing with gstring.
20640
20641 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20642 Check if adjustment is vector or not.
20643
20644 * Makefile.in (font.o): Make it depends on window.h.
20645
206462008-02-01 Kenichi Handa <handa@m17n.org>
20647
20648 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20649 adjustment is vector or not.
20650
206512008-02-01 Miles Bader <miles@gnu.org>
20652
20653 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20654
206552008-02-01 Kenichi Handa <handa@m17n.org>
20656
20657 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20658 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20659 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20660
20661 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20662 (DEVICE_DELTA): Fix typo.
20663 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20664 LGLYPH format.
20665
20666 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20667 the change of LGLYPH format.
20668
206692008-02-01 Kenichi Handa <handa@m17n.org>
20670
20671 * ftfont.c (ftfont_list): Fix typo.
20672 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20673
206742008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20675
20676 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20677
20678 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20679 xftface_info is non-NULL.
20680
206812008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20682
20683 * ftfont.c (ftfont_list): Move misplaced #endif.
20684
206852008-02-01 Kenichi Handa <handa@m17n.org>
20686
20687 * ftfont.c (ftfont_list): Pay attention to the case that
20688 FC_CAPABILITY is not defined.
20689
206902008-02-01 Kenichi Handa <handa@m17n.org>
20691
20692 * xftfont.c (xftfont_open): Set charset related members to -1.
20693
20694 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20695 QCname.
20696 (ftfont_open): Set charset related members to -1.
20697
20698 * fontset.c (Votf_script_alist): New variable.
20699 (syms_of_fontset): Initialize it.
20700 (fontset_font): Delete unused variable.
20701
20702 * fontset.h (Votf_script_alist): Extern it.
20703
20704 * font.c (font_find_for_lface): Optimize code.
20705
20706 * font.h (font_close_object, font_merge_old_spec): Extern them.
20707
207082008-02-01 Kenichi Handa <handa@m17n.org>
20709
20710 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20711 (syms_of_font): Initialize them.
20712 (font_pixel_size): Allow float value in dpi.
20713 (font_prop_validate_type): Delete.
20714 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20715 Change caller.
20716 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20717 (font_prop_validate_extra): Delete.
20718 (font_prop_validate_spacing): New function.
20719 (font_property_table): Add elements for all known properties.
20720 (get_font_prop_index): Rename from check_font_prop_name. New
20721 argument FROM. Change caller.
20722 (font_prop_validate): Validate all known properties.
20723 (font_put_extra): Delete argument force. Change caller.
20724 (font_expand_wildcards): Make it static. Fix the way of shrinking
20725 the possible range.
20726 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20727 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20728 Change caller.
20729 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20730 (font_parse_fcname): Delete argument merge. Fix parsing of point
20731 size. Don't validate properties values here. Change caller.
20732 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20733 (font_open_by_name): Delete unused variable.
20734 (Ffont_spec): Likewise. Validate property values.
20735 (Ffont_match_p): New function.
20736
20737 * font.h (QCscalable): Extern it.
20738 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20739
20740 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20741
20742 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20743 (xfont_list_pattern): New function.
20744 (xfont_list): Use xfont_list_pattern.
20745
207462008-02-01 Kenichi Handa <handa@m17n.org>
20747
20748 * font.h (Flist_fonts): EXFUN it.
20749
207502008-02-01 Jason Rumney <jasonr@gnu.org>
20751
20752 * w32term.c (w32_initialize): Add back smoothing_type and
20753 smoothing_enabled definitions.
20754
207552008-02-01 Kenichi Handa <handa@m17n.org>
20756
20757 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20758 s->face->font on determining underline position.
20759
207602008-02-01 Kenichi Handa <handa@m17n.org>
20761
20762 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20763 (font_has_char): Accept font-object too.
20764 (font_find_for_lface): Try at first with a size specified in face.
20765
207662008-02-01 Kenichi Handa <handa@m17n.org>
20767
20768 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20769 font_open_by_name.
20770
207712008-02-01 Kenichi Handa <handa@m17n.org>
20772
20773 * font.h (QCspacing, QCdpi): Extern them.
20774 (enum font_spacing): New enum.
20775 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20776
20777 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20778 (QCspacing, QCdpi): New variables.
20779 (syms_of_font): Initialize them.
20780 (font_pixel_size): New function.
20781 (font_put_extra): New function.
20782 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20783 in FONT_EXTRA.
20784 (font_parse_fcname): Handle enumerated values (e.g. bold).
20785 Fix handling font size. Add QCname property that contains only
20786 unknown properties.
20787 (font_score): Change argument. Change caller. Pay attention to
20788 FONT_PIXEL_SIZE_QUANTUM.
20789 (font_sort_entites, font_list_entities, font_find_for_lface)
20790 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20791 (Ffont_spec): Add QCname property that contains only unknown properties.
20792
20793 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20794 include weight in listing pattern, instead check weight of each
20795 listed font. Don't include scalable in pattern. Pay attention to
20796 FONT_PIXEL_SIZE_QUANTUM.
20797
207982008-02-01 Kenichi Handa <handa@m17n.org>
20799
20800 * font.c (font_parse_fcname): Fix parsing of point-size.
20801 (font_unparse_fcname): Produce symbolic names for style properties.
20802 (font_list_entities): Handle float size correctly.
20803 (font_open_by_name): Prefer `normal' property values if the name
20804 doesn't specify them.
20805
20806 * fontset.c (Finternal_char_font): Use font_get_name, not
20807 Ffont_xlfd_name.
20808
20809 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20810 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20811 pattern. Don't force scalable.
20812
20813 * xftfont.c (xftfont_open): For generating a name, start from
20814 96-byte buffer.
20815
208162008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20817
20818 * frame.h (x_new_fontset2): Fix prototype.
20819
208202008-02-01 Kenichi Handa <handa@m17n.org>
20821
20822 * font.h (struct font_driver): Delete member parse_name.
20823 (font_match_p, font_get_spec, font_parse_fcname)
20824 (font_unparse_fcname): Extern them.
20825 (font_get_name): Adjust prototype.
20826
20827 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20828 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20829 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20830 unnecessary checks for weight, slant, and swidth.
20831 (font_parse_fcname): New function.
20832 (font_unparse_fcname): New function.
20833 (font_parse_name): New function.
20834 (font_match_p): New function.
20835 (font_get_name): Change return value to Lisp string.
20836 (font_get_spec): New function.
20837 (Qunspecified, Qignore_defface): Don't extern them.
20838 (font_find_for_lface): Assume that LFACE is fully specified.
20839 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20840 object, use it for FACE.
20841 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20842 driver->parse_name.
20843 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20844
20845 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20846 prototype.
20847
20848 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20849 argument F. Don't call Fnew_fontset. Instead, directly call
20850 make_fontset.
20851
20852 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20853
20854 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20855 of x_new_fontset2.
20856
20857 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20858 (Qsans__serif): New variables.
20859 (ftfont_generic_family_list): New variable.
20860 (syms_of_ftfont): Initialize the above variables.
20861 (ftfont_pattern_entity): Delete argument NAME.
20862 (ftfont_list_generic_family): New function.
20863 (ftfont_parse_name): Delete this function.
20864 (ftfont_list): Try generic family only when FcFontList found no font.
20865 (ftfont_list_family): Fix args to FcObjectSetBuild.
20866
20867 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20868 object in attrs[LFACE_FONT_INDEX].
20869 (set_lface_from_font_name): Cancel all changes for font-backend.
20870 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20871 function.
20872 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20873 font object in QCfont attribute.
20874 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20875 (realize_default_face) [USE_FONT_BACKEND]: Call
20876 set_lface_from_font_and_fontset.
20877
20878 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20879 "fixed", and signal error here if no suitable font was found.
20880
20881 * xfont.c (xfont_parse_name): Delete this function.
20882
20883 * xftfont.c (xftfont_open): Change coding style of error
20884 handling. Generate fontconfig's fontname pattern.
20885
20886 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20887 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20888
20889 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20890 Both args FONTSET and FONT_OBJECT must be existing ones.
20891
208922008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20893
20894 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20895
208962008-02-01 Kenichi Handa <handa@m17n.org>
20897
20898 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20899
20900 * font.h (struct font): Fix typo.
20901
20902 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20903 XLFD_XXX_INDEX.
20904 (enum xlfd_field_mask): New enum.
20905 (intern_font_field): Changed argument. Change caller. If digits
20906 are followed by non-digits, return a symbol.
20907 (font_expand_wildcards): New function.
20908 (font_parse_xlfd): Fix wildcard handling.
20909 (Ffont_spec): If :name is specified, reflect the info in the other
20910 properties.
20911
20912 * ftfont.c (ftfont_pattern_entity): Fix typo.
20913 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20914 locale.
20915
209162008-02-01 Kenichi Handa <handa@m17n.org>
20917
20918 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20919
20920 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20921 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20922 registry doesn't specify encoding part.
20923 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20924 (font_open_by_name): At first try parsing the name.
20925 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20926 as Lisp symbols.
20927
20928 * fontset.c (reorder_font_vector): Pay attention to the case that
20929 the 3rd element of font_def is nil.
20930 (fontset_font): For the default fontset, append one more fontset
20931 elements for a script-based font specification. Don't add script
20932 attribute on finding a font.
20933 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20934 font name.
20935 (fontset_ascii_font): If a font can't be opened, return nil.
20936
20937 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20938 (ftfont_pattern_entity): New function.
20939 (ftfont_get_cache): Assume that freetype_font_cache is already
20940 initialized.
20941 (ftfont_list): Handle the case that a file is specified in font
20942 name. Use ftfont_pattern_entity to generate entities.
20943 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20944 (syms_of_ftfont): Initialize freetype_font_cache.
20945
20946 * xftfont.c (xftfont_open): Make the font name fontconfig's
20947 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20948 (xftfont_close): Free font->font.name if not NULL.
20949
20950 * xfont.c (xfont_list): If script is specified for a font, return
20951 null_vector.
20952 (xfont_list_family): Declare argument type.
20953
20954 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20955 name, set LFACE_FONT (lface) to nil.
20956
20957 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20958 return Qnil.
20959
209602008-02-01 Kenichi Handa <handa@m17n.org>
20961
20962 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20963 (standard_args): Add "-enable-font-backend".
20964
209652008-02-01 Kenichi Handa <handa@m17n.org>
20966
20967 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20968 (struct xftdraw_list, xftdraw_list): Delete them.
20969 (register_xftdraw, check_xftdraw): Delete them.
20970 (xftfont_prepare_face): Don't call register_xftdraw.
20971 (xftfont_done_face): Don't call check_xftdraw.
20972 (xftfont_draw): Get background color only when with_background is
20973 nonzero.
20974
20975 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20976
209772008-02-01 Kenichi Handa <handa@m17n.org>
20978
20979 These changes are for the new font handling codes.
20980
20981 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20982 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20983 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20984 (FONTSRC, FONTOBJ): New variables.
20985 (obj): Add $(FONTOBJ).
20986 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20987 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20988 @LIBOTF_LIBS@.
20989 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20990 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20991
20992 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20993
20994 * character.h (Vscript_representative_chars): Extern it.
20995
20996 * character.c (Vscript_representative_chars): New variable.
20997 (syms_of_character): Declare it as a Lisp variable.
20998
20999 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21000 enable_font_backend is nonzero, accept the composition method
21001 COMPOSITION_WITH_GLYPH_STRING.
21002
21003 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21004 enumeration COMPOSITION_WITH_GLYPH_STRING.
21005
21006 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21007 members clip_x, clip_y, clip_width, and clip_height.
21008 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21009
21010 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21011 --enable-font-backend. Call syms_of_font.
21012
21013 * fns.c (assoc_no_quit): New function.
21014
21015 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21016 (face_for_font, new_fontset_from_font)
21017 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21018
21019 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21020 (fontset_font, fontset_ascii, face_for_char)
21021 (make_fontset_for_ascii_face, Ffont_info)
21022 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21023 is nonzero, use font-backend mechanism.
21024 (find_font_encoding): Make it non-static.
21025 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21026 New functions.
21027
21028 * frame.h (struct frame): New members resx and resy.
21029 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21030 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21031
21032 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21033 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21034
21035 * lisp.h (assoc_no_quit): Extern it.
21036
21037 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21038 Through out the file, use FONT_INFO_FROM_FACE instead of
21039 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21040 rif->per_char_metric.
21041 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21042 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21043 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21044 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21045 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21046 nonzero, use font-backend mechanism.
21047 (get_per_char_metric): New function.
21048
21049 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21050 (set_lface_from_font_name)
21051 (set_font_frame_param, free_realized_face)
21052 (prepare_face_for_display, clear_face_gcs)
21053 (Finternal_set_font_selection_order, realize_x_face)
21054 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21055 font-backend mechanism.
21056 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21057 (load_face_font) [USE_FONT_BACKEND]: Abort.
21058 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21059 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21060
21061 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21062 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21063 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21064 nonzero, register all available font drivers. Call
21065 x_default_font_parameter for deciding a font.
21066 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21067
21068 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21069 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21070 (x_set_glyph_string_clipping_exactly)
21071 (x_compute_glyph_string_overhangs)
21072 (x_draw_glyph_string_foreground)
21073 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21074 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21075 enable_font_backend is nonzero, use font-backend mechanism.
21076 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21077
210782008-02-01 Kenichi Handa <handa@m17n.org>
21079
21080 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21081 system_eol_type.
21082 (syms_of_coding): Initialize system_eol_type.
21083
21084 * process.c (Fset_process_coding_system): Inherit system's eol
21085 format if necessary.
21086
210872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21088
21089 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21090
210912008-02-01 Kenichi Handa <handa@m17n.org>
21092
21093 * coding.c (decode_eol): Pay attention to buffer relocation in
21094 del_range_2.
21095 (decode_coding): Call decode_eol before restoring undo_list.
21096
210972008-02-01 Kenichi Handa <handa@m17n.org>
21098
21099 * charset.c (Fdefine_charset_internal): Fix setting of
21100 emacs_mule_bytes.
21101
211022008-02-01 Kenichi Handa <handa@m17n.org>
21103
21104 * keyboard.c (read_char): Check if C is a character or not before
21105 looking up Vkeyboard_translate_table.
21106
211072008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21110 condition to terminate the loop.
21111
211122008-02-01 Kenichi Handa <handa@m17n.org>
21113
21114 * coding.c (produce_composition): Compare charbuf[i] instead of
21115 args[i] against 0.
21116 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21117
211182008-02-01 Kenichi Handa <handa@m17n.org>
21119
21120 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21121 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21122 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21123 detect_coding.
21124 (emacs_mule_char): Handle old style (Emacs 20) component character
21125 of a composition.
21126 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21127 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21128 composition rule.
21129 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21130
211312008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * coding.c (encode_coding_ccl): Allocate destination dynamically
21134 when necessary.
21135
211362008-02-01 Kenichi Handa <handa@m17n.org>
21137
21138 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21139 the loop. When quitted, show a proper error message.
21140
211412008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21144 src->clip_head and src->clip_tail temporarily instead of src->hl.
21145
21146 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21147 character sequence.
21148 (Fccl_execute_on_string): Use ASET, not XSET.
21149
211502008-02-01 Kenichi Handa <handa@m17n.org>
21151
21152 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21153
211542008-02-01 Kenichi Handa <handa@m17n.org>
21155
21156 * coding.c (decode_coding): Fix the condition of terminating the
21157 decoding loop.
21158
211592008-02-01 Kenichi Handa <handa@m17n.org>
21160
21161 * data.c (Faset): On setting a character bigger than 255 in a
21162 unibyte string, signal an error instead of make the string multibyte.
21163
211642008-02-01 Kenichi Handa <handa@m17n.org>
21165
21166 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21167 made by a mapping table.
21168
211692008-02-01 Kenichi Handa <handa@m17n.org>
21170
21171 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21172 not.
21173 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21174 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21175
21176 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21177 s->face is NULL or not.
21178
211792008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21182 (x_draw_glyph_string): Fix drawing of right_overhang and
21183 left_overhang around/on cursor.
21184
21185 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21186
211872008-02-01 Kenichi Handa <handa@m17n.org>
21188
21189 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21190
211912008-02-01 Kenichi Handa <handa@m17n.org>
21192
21193 * coding.c (Fdefine_coding_system_internal)
21194 (Fdefine_coding_system_alias): Avoid a duplicated element in
21195 Vcoding_system_alist.
21196
211972008-02-01 Kenichi Handa <handa@m17n.org>
21198
21199 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21200
21201 * coding.c (Qcoding_system_define_form): New variable.
21202 (syms_of_coding): Intern and staticpro it.
21203 (Fcoding_system_p): Check Qcoding_system_define_form.
21204 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21205
21206 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21207 Fcoding_system_p.
21208 (CHECK_CODING_SYSTEM): If ID is not available, call
21209 Fcheck_coding_system.
21210 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21211 Try also Fcheck_coding_system.
21212
212132008-02-01 Kenichi Handa <handa@m17n.org>
21214
21215 * coding.c (code_conversion_restore): GCPRO arg.
21216
212172008-02-01 Kenichi Handa <handa@m17n.org>
21218
21219 * character.c (lisp_string_width): Check multibyteness of STRING.
21220
212212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21222
21223 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21224 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21225 (decode_mac_font_name): Use decode_coding_c_string instead of
21226 decode_coding.
21227 (x_load_font): Initialize fontp->fontset to -1. Set
21228 fontp->encoding_type.
21229
212302008-02-01 Kenichi Handa <handa@m17n.org>
21231
21232 * search.c (search_buffer): Give up BM search on case-fold-search
21233 if one of a target character has a case-equivalence of different
3b59c351 21234 byte length even if that target character is an ASCII.
aac0c6e3
MR
21235 (simple_search): Fix calculation of byte length of matched text.
21236 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21237
212382008-02-01 Kenichi Handa <handa@m17n.org>
21239
21240 * coding.c (decode_coding): Fix handling of invalid bytes.
21241
212422008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21245 Unicode characters.
21246
212472008-02-01 Kenichi Handa <handa@m17n.org>
21248
21249 * coding.c (encode_coding_object): If a pre-write-conversion
21250 function makes a new buffer, kill it.
21251
212522008-02-01 Kenichi Handa <handa@m17n.org>
21253
21254 * coding.c (QCascii_compatible_p): New variable.
21255 (syms_of_coding): Initialize it.
21256 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21257 calling string_char.
21258 (record_conversion_result): Add `default:' case.
21259 (coding_charset_list): Delete unused variable `coding_type'.
21260 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21261 property in the plist of the coding system.
21262 (Fcoding_system_put): Check QCascii_compatible_p.
21263
212642008-02-01 Miles Bader <miles@gnu.org>
21265
21266 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21267 removed calculation of frame `f', as it's now used.
21268
212692008-02-01 Kenichi Handa <handa@m17n.org>
21270
21271 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21272 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21273 (UNIDATA): New variable.
21274 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21275 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21276 $(RUN_TEMACS) unconditionally.
21277
212782008-02-01 Kenichi Handa <handa@m17n.org>
21279
21280 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21281 (admindir): New variable.
21282 ($(lispsource)international/charprop.el): New target.
21283
212842008-02-01 Miles Bader <miles@gnu.org>
21285
21286 * character.c (chars-in-region): Remove obsolete function.
21287 (syms_of_character): Remove its initialization.
21288
212892008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21290
21291 * w32select.c (validate_coding_system)
21292 (setup_windows_coding_system): New functions.
21293 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21294 setup_windows_coding_system.
21295 (setup_config, Fw32_get_clipboard_data): Use
21296 validate_coding_system.
21297 (Fx_selection_exists): Move call to setup_config to a place
21298 where signals are allowed.
21299
21300 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21301 (Fcheck_coding_system): Add declarations.
21302
213032008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21306
213072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21308
21309 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21310 string as the second argument for x_new_fontset.
21311
213122008-02-01 Kenichi Handa <handa@m17n.org>
21313
21314 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21315 (encode_coding_object): Use safe_call instead of call2.
21316
213172008-02-01 Kenichi Handa <handa@m17n.org>
21318
21319 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21320
21321 * Makefile.in (lisp): Include charprop.el.
21322
213232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21324
21325 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21326 Not sure if it's unnecessary.
21327
213282008-02-01 Steven Tamm <steventamm@mac.com>
21329
21330 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21331 some possibly unnecessary fontset checking code that crashed
21332 when creating a new frame.
21333
213342008-02-01 Kenichi Handa <handa@m17n.org>
21335
21336 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21337 lookup_face.
21338
21339 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21340
21341 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21342
213432008-02-01 Kenichi Handa <handa@m17n.org>
21344
21345 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21346 (coding_charset_list): New function.
21347
21348 * coding.h (coding_charset_list): Extern it.
21349
213502008-02-01 Kenichi Handa <handa@m17n.org>
21351
21352 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21353 concatenation of family and registry.
21354
213552008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * character.h (BYTE8_STRING): Fix typo.
21358
21359 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21360 string to multibyte (sync to HEAD).
21361
21362 * casefiddle.c (casify_region): Handle changes in byte-length
21363 using replace_range_2 (sync to HEAD).
21364
213652008-02-01 Andreas Schwab <schwab@suse.de>
21366
21367 * chartab.c (map_char_table): GCPRO table and arg.
21368
213692008-02-01 Kenichi Handa <handa@m17n.org>
21370
21371 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21372 already at limit.
21373
213742008-02-01 Kenichi Handa <handa@m17n.org>
21375
21376 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21377 instead of fast_c_string_match_ignore_case.
21378 (find_font_encoding): Change argument to Lisp_Object. Use
21379 fast_string_match_ignore_case instead of
21380 fast_c_string_match_ignore_case. Change caller.
21381
213822008-02-01 Kenichi Handa <handa@m17n.org>
21383
21384 * xdisp.c (get_next_display_element): In unibyte case, decide to
21385 display in octal form by checking a character by
21386 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21387
21388 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21389
21390 * character.c (unibyte_has_multibyte_table): New variable.
21391
21392 * character.h (unibyte_has_multibyte_table): Extern it.
21393 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21394
213952008-02-01 Kenichi Handa <handa@m17n.org>
21396
21397 * coding.c (encode_coding_iso_2022): Fix handling of charset
21398 annotation.
21399
214002008-02-01 Kenichi Handa <handa@m17n.org>
21401
21402 * coding.c (setup_coding_system): If coding_system is nil, use
21403 Qundecided.
21404 (Fterminal_coding_system): Return nil if terminal coding system is
21405 `undecided'.
21406 (syms_of_coding): Define coding-system `undecided' here. Setup
21407 terminal_coding as `undecided'.
21408
214092008-02-01 Kenichi Handa <handa@m17n.org>
21410
21411 * xdisp.c (message_dolog, set_message_1): Call
21412 unibyte_char_to_multibyte with arg type int.
21413
21414 * lread.c (read1): Fix reading of a char-table.
21415
21416 * print.c (print_object): Include sub char-table in circularities
21417 detection.
21418
214192008-02-01 Kenichi Handa <handa@m17n.org>
21420
21421 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21422 Append the found sequences in car of ARGS instead of prepending.
21423
214242008-02-01 Kenichi Handa <handa@m17n.org>
21425
21426 * fileio.c (report_file_error): Make a unibyte string from
21427 strerror (errorno).
21428 (Fsubstitute_in_file_name): Fix the arg to
21429 unibyte_char_to_multibyte. It is evaluated twice.
21430
214312008-02-01 Kenichi Handa <handa@m17n.org>
21432
21433 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21434
214352008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21438 BOM is not found.
21439 (detect_coding, detect_coding_system): Optimization for ISO-2022
21440 when no 8-bit data is found.
21441
214422008-02-01 Jason Rumney <jasonr@gnu.org>
21443
21444 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21445
214462008-02-01 Kenichi Handa <handa@m17n.org>
21447
21448 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21449 CHARS.
21450
214512008-02-01 Steven Tamm <steventamm@mac.com>
21452
21453 * macterm.c (mac_encode_char): Add charset argument and update
21454 to use encoding_type.
21455 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21456 switch to pure fontset.
21457 (decode_mac_font_name): Temporarily remove decoding.
21458 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21459 (x_load_font): Temporarily remove encoding.
21460
214612008-02-01 Kenichi Handa <handa@m17n.org>
21462
21463 * xfaces.c (Fface_font): If frame is not on a window system,
21464 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21465 refer to face->font.
21466 (split_font_name_into_vector, build_font_name_from_vector)
21467 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21468 when HAVE_WINDOW_SYSTEM is defined.
21469
214702008-02-01 Kenichi Handa <handa@m17n.org>
21471
21472 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21473 (x_produce_glyphs): Fix setting of members of cmp in case
21474 cmp->glyph_len is zero.
21475
21476 * fontset.c (Fset_fontset_font): Fix docstring.
21477 (Ffontset_info): Make it backward compatible. New arg ALL.
21478
214792008-02-01 Kim F. Storm <storm@cua.dk>
21480
21481 * process.c (read_process_output): Grow decoding_buf when needed;
21482 this could cause a crash in allocate_string and compact_small_strings.
21483
214842008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21487
214882008-02-01 Kenichi Handa <handa@m17n.org>
21489
21490 * coding.c (setup_coding_system): Set coding->common_flags
21491 correctly for raw-text.
21492 (consume_chars): On encoding unibyte text by raw-text, don't check
21493 multibyte form.
21494 (encode_coding): On encoding by raw-text, never use translation tables.
21495
21496 * fileio.c (e_write): Short cut for the case of no encoding.
21497
214982008-02-01 Kenichi Handa <handa@m17n.org>
21499
21500 * coding.c (detect_coding, detect_coding_system): Delete unused
21501 variables.
21502
215032008-02-01 Kenichi Handa <handa@m17n.org>
21504
21505 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21506 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21507
215082008-02-01 Kenichi Handa <handa@m17n.org>
21509
21510 * coding.c (Ffind_coding_systems_region_internal): Include
21511 raw-text and no-conversion in the result.
21512
215132008-02-01 Kenichi Handa <handa@m17n.org>
21514
21515 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21516 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21517 FONT_DEF.
21518 (font_def_arg, add_arg, from_arg, to_arg): New args.
21519 (set_fontset_font): Change argument.
21520 (Fset_fontset_font): Fix for the case that TARGET is a script
21521 name and charset name.
21522 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21523
215242008-02-01 Kenichi Handa <handa@m17n.org>
21525
21526 * fontset.c (fontset_font): Rename from fontset_face. Change return
21527 value.
21528 (face_suitable_for_char_p, face_for_char): Adjust for the change
21529 of fontset_font.
21530 (make_fontset_for_ascii_face): Fix setting of the fontset element
21531 for ASCII.
21532 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21533 to get a font name.
21534 (Ffontset_info): Adjust for the change of fontset_font.
21535
21536 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21537
21538 * character.h (LEADING_CODE_LATIN_1_MIN)
21539 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21540
215412008-02-01 Kenichi Handa <handa@m17n.org>
21542
21543 * editfns.c (check_translation): New function.
21544 (Ftranslate_region_internal): Handle M:N mapping.
21545
215462008-02-01 Kenichi Handa <handa@m17n.org>
21547
21548 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21549
215502008-02-01 Kenichi Handa <handa@m17n.org>
21551
21552 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21553 goto invalid_code.
21554 (decode_coding_iso_2022): Fix handling of invalid designation.
21555
21556 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21557 after calling code_conversion_save.
21558
215592008-02-01 Kenichi Handa <handa@m17n.org>
21560
21561 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21562
21563 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21564
21565 * fontset.c: Include "intervals.h".
21566 (fontset_face): Fix comparing of Lisp_Objects.
21567 (free_face_fontset, new_fontset_from_font_name): Fix
21568 Lisp_Object/int mixup.
21569
21570 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21571
21572 * coding.c: Add many prototypes for static functions.
21573 (get_translation_table): Allow max_lookup to be NULL.
21574 (decode_coding, Ffind_coding_systems_region_internal)
21575 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21576 get_translation_table with max_lookup NULL.
21577
215782008-02-01 Kenichi Handa <handa@m17n.org>
21579
21580 * coding.c (get_translation_table): Declare it as Lisp_Object.
21581 (LOOKUP_TRANSLATION_TABLE): New macro.
21582 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21583 instead of CHAR_TABLE_REF.
21584
215852008-02-01 Kenichi Handa <handa@m17n.org>
21586
21587 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21588 annotation data format.
21589 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21590 Change arguments FROM and TO to single argument NCHARS. Change caller.
21591 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21592 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21593 (decode_coding_ccl, decode_coding_charset): Pay attention to
21594 coding->charbuf_used.
21595 (get_translation): New function.
21596 (produce_chars): New arguments translation_table and last_block.
21597 Translate characters here. Return number of carryover chars.
21598 Change caller.
21599 (produce_composition): New argument pos. Change caller.
21600 Adjust for the change of annotation data format.
21601 (produce_charset, produce_annotation): Likewise.
21602 (decode_coding, encode_coding): Don't call translate_chars.
21603 (consume_chars): New arg translation_table. Change caller.
21604 (translate_chars): Delete.
21605 (syms_of_coding): Make translation-table's number of extra slots 2.
21606
216072008-02-01 Kenichi Handa <handa@m17n.org>
21608
21609 * search.c (simple_search): Fix setting this_pos_byte in backward
21610 search.
21611
21612 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21613 byte sequence.
21614 (detect_coding_ccl): Fix setting of the variable valids.
21615
216162008-02-01 Kenichi Handa <handa@m17n.org>
21617
21618 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21619
21620 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21621
21622 * editfns.c (Ftranslate_region_internal): Rename from
21623 Ftranslate_region. Accept a char-table in TABLE.
21624 (syms_of_editfns): Defsubr Stranslate_region_internal.
21625
21626 * xfaces.c (set_lface_from_font_name): If a font is specified for
21627 a frame, generate a fontset from the font.
21628 (build_scalable_font_name): If the scalable font is requested for
21629 a specific size, don't change that size.
21630 (try_font_list): Try a scalable font also in the case that a
21631 pattern string is specified.
21632
216332008-02-01 Kenichi Handa <handa@m17n.org>
21634
21635 * xfaces.c (Fface_font): New optional arg CHARACTER.
21636
216372008-02-01 Kenichi Handa <handa@m17n.org>
21638
21639 * charset.h (CHARSET_OFFSET): New macro.
21640
216412008-02-01 Kenichi Handa <handa@m17n.org>
21642
21643 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21644
21645 * fontset.c (fontset_face): Handle the case that repertory is a
21646 char-table.
21647 (find_font_encoding): Return nil for unknown encoding.
21648 (Fset_fontset_font): Ignore a font of unknown encoding.
21649
216502008-02-01 Kenichi Handa <handa@m17n.org>
21651
21652 * keymap.c (describe_vector): Handle default value of a char table.
21653
21654 * fontset.c (fontset_face): Handle fallback fonts correctly.
21655 (Ffontset_info): Return infomation about fallback fonts.
21656
216572008-02-01 Kenichi Handa <handa@m17n.org>
21658
21659 * fontset.c (FONTSET_DEFAULT): New macro.
21660 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21661 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21662 the case that it is nil.
21663 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21664 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21665
21666 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21667 subset or superset.
21668
216692008-02-01 Kenichi Handa <handa@m17n.org>
21670
21671 * emacs.c (main): Call init_charset after syms_of_XXX.
21672
21673 * charset.c (Vcharset_map_directory): Delete.
21674 (Vcharset_map_path): New variable.
21675 (load_charset_map_from_file): Use Vcharset_map_path instead.
21676 (init_charset): Initialize Vcharset_map_path.
21677 (syms_of_charset): Delete declaration of "charset-map-directory",
21678 add declaration of "charset-map-path".
21679
216802008-02-01 Kenichi Handa <handa@m17n.org>
21681
21682 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21683 ASCII only string.
21684
21685 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21686
21687 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21688 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21689
216902008-02-01 Kenichi Handa <handa@m17n.org>
21691
21692 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21693
21694 * coding.c (QCmnemonic, QCdefalut_char)
21695 (QCdecode_translation_table, QCencode_translation_table)
21696 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21697 (get_translation_table): Return a list of translation tables if
21698 necessary.
21699 (decode_coding): Call get_translation_table with ENCODEP 0.
21700 (char_encodable_p): If translation_table is non-nil, always call
21701 translate_char.
21702 (Fdefine_coding_system_internal): Accept list of translation
21703 tables as :encode-translation-table and :decode-translation-table.
21704 (Fcoding_system_put): New function.
21705 (syms_of_coding): Declare new symbols. Defsubr
21706 Scoding_system_put.
21707 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21708 typically JISX0212.
21709
21710 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21711 when the charset is superset type.
21712
21713 * character.c (translate_char): Accept list of translation tables.
21714
217152008-02-01 Kenichi Handa <handa@m17n.org>
21716
21717 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21718 (CODING_ATTR_TRANS_TBL): New macro.
21719
21720 * coding.c (get_translation_table): New function.
21721 (translate_chars): Fix the bug of skipping annotation data.
21722 (decode_coding, encode_coding): Utilize get_translation_table.
21723 (char_encodable_p, Funencodable_char_position): Translate char if
21724 necessary.
21725 (Ffind_coding_systems_region_internal)
21726 (Fcheck_coding_systems_region): Setup translation table for encode
21727 in a coding system attribute vector in advance.
21728 (Fdefine_coding_system_internal): Allow a symbol as translation
21729 table. For shift-jis type coding system, allow 4th charset.
21730
217312008-02-01 Kenichi Handa <handa@m17n.org>
21732
21733 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21734
21735 * xdisp.c (get_next_display_element): Pass -1 as POS to
21736 FACE_FOR_CHAR if displaying a C-string.
21737
217382008-02-01 Kenichi Handa <handa@m17n.org>
21739
21740 * composite.c (get_composition_id): Handle xoff and yoff in a
21741 composition rule.
21742
21743 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21744 (struct composition): New member lbearing and rbearing.
21745
21746 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21747 (x_get_glyph_overhangs): Handle a composition glyph.
21748 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21749
21750 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21751 composition glyph.
21752
217532008-02-01 Kenichi Handa <handa@m17n.org>
21754
21755 * print.c: Include charset.h.
21756 (Vprint_charset_text_property): New variable.
21757 (Qdefault): Extern it.
21758 (PRINT_STRING_NON_CHARSET_FOUND)
21759 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21760 (print_check_string_result): New variable.
21761 (print_check_string_charset_prop): New function.
21762 (print_prune_charset_plist): New variable.
21763 (print_prune_string_charset): New function.
21764 (print_object): Call print_prune_string_charset if
21765 Vprint_charset_text_property is not t.
21766 (print_interval): Print nothing if interval->plist is nil.
21767 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21768 variable. Init and staticpro print_prune_charset_plist.
21769
217702008-02-01 Kenichi Handa <handa@m17n.org>
21771
21772 * fontset.c (new_fontset_from_font_name): Use the specified font
21773 for all characters in the new fontset.
21774
21775 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21776 OBJECT args.
21777
21778 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21779 OBJECT args for composition too.
21780
21781 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21782 OBJECT args.
21783
217842008-02-01 Kenichi Handa <handa@m17n.org>
21785
21786 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21787
21788 * fontset.c (reorder_font_vector): Adjust for the change of
21789 FONT_DEF format.
21790 (fontset_face): New arg id. Change caller.
21791 (face_for_char): New args pos and object.
21792 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21793 (fs_query_fontset): Check NAME by Fassoc too.
21794 (Fset_fontset_font): Allow non-XLFD font name.
21795 (Ffontset_info): Adjust for the change of FONT_DEF format.
21796
21797 * fontset.h (face_for_char): Adjust prototype.
21798
21799 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21800 (append_space, extend_face_to_end_of_line)
21801 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21802 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21803
21804 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21805 POS and OBJECT args.
21806
21807 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21808 POS and OBJECT args.
21809
218102008-02-01 Jason Rumney <jasonr@gnu.org>
21811
21812 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21813 of GlobalAlloc'ed memory.
21814
218152008-02-01 Kenichi Handa <handa@m17n.org>
21816
21817 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21818
21819 * charset.h (charset_table_used): Delete extern.
21820
21821 * charset.c (charset_table_used): Make it static.
21822 (map_charset_chars): Fix args to c_function with.
21823
21824 * chartab.c (map_sub_char_table_for_charset): Fix args to
21825 c_function with.
21826
21827 * coding.h (enum coding_result_code): Delete
21828 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21829
21830 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21831 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21832 (Vlast_code_conversion_error): New variables.
21833 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21834 (ONE_MORE_BYTE): Record error if any instead of signaling an
21835 error. If non-ASCII multibyte char is found, return the negative
21836 value of the code. All callers changed to check it.
21837 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21838 (record_conversion_result): New function. Change all codes setting
21839 coding->result to call this function.
21840 (detect_coding_utf_8, decode_coding_utf_8)
21841 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21842 Don't use the local variable incomplete.
21843 (emacs_mule_char): Change the second arg to `const'.
21844 (decode_coding): Fix of flushing out unprocessed data.
21845 (make_conversion_work_buffer): Fix making of a work buffer.
21846 (decode_coding_object): Return coding->dst_object.
21847
21848 * fontset.c (set_fontset_font): Fix args.
21849
21850 * lisp.h (CHARACTERBITS): Define as 22.
21851
21852 * process.c (send_process): Be sure to set coding->src_multibyte.
21853
21854 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21855
218562008-02-01 Kenichi Handa <handa@m17n.org>
21857
21858 * xdisp.c (handle_auto_composed_prop): Give limit to
21859 Fnext_single_char_property_change.
21860
218612008-02-01 Kenichi Handa <handa@m17n.org>
21862
21863 * composite.c (syms_of_composite): Don't make the composition hash
21864 table weak.
21865
21866 * fontset.c (Fset_fontset_font): Fix docstring.
21867
21868 * lisp.h (detect_coding_system): Adjust prototype.
21869
21870 * fileio.c (kill_workbuf_unwind): Delete this function.
21871 (Finsert_file_contents): Adjust the call of detect_coding_system.
21872 Get conversion_buffer by code_conversion_save. Use the macro
21873 CODING_MAY_REQUIRE_DECODING. After decoding, update
21874 coding_system.
21875
21876 * coding.h (make_conversion_work_buffer): Delete extern.
21877 (code_conversion_save): Extern it.
21878
21879 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21880 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21881 (decode_coding_utf_8): Don't do eol converion.
21882 (detect_coding_utf_16): Check coding->src_chars, not
21883 coding->src_bytes. Add heuristics for those that have no signature.
21884 (decode_coding_emacs_mule, decode_coding_iso_2022)
21885 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21886 Don't do eol converion.
21887 (adjust_coding_eol_type): Return a new coding system.
21888 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21889 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21890 each change.
21891 (decode_coding): Pay attention to undo_list. Do eol conversion for
21892 all types of coding-systems (if necessary).
21893 (Vcode_conversion_work_buf_list): Delete it.
21894 (Vcode_conversion_reused_workbuf): Rename from
21895 Vcode_conversion_reused_work_buf.
21896 (Vcode_conversion_workbuf_name): New variable.
21897 (reused_workbuf_in_use): New variable.
21898 (make_conversion_work_buffer): Delete the arg DEPTH.
21899 (code_conversion_restore): Change argument to cons.
21900 (code_conversion_save): Delete the argument BUFFER. Change callers.
21901 (detect_coding_system): New argument src_chars. Change callers.
21902 Fix for utf-16 detection.
21903 (init_coding_once): Don't use ISO_carriage_return.
21904 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21905 reused_workbuf_in_use.
21906
219072008-02-01 Kenichi Handa <handa@m17n.org>
21908
21909 * keymap.c (store_in_keymap): Pay attention to the case that idx
21910 is a cons specifying a character range.
21911
219122008-02-01 Kenichi Handa <handa@m17n.org>
21913
21914 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21915 HANDLED_RECOMPUTE_PROPS.
21916
21917 * coding.c (Fdefine_coding_system_internal): Fix checking of
21918 ascii compatibility.
21919
219202008-02-01 Kenichi Handa <handa@m17n.org>
21921
21922 * charset.c (find_charsets_in_text): Delete unused locale variable.
21923 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21924
21925 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21926 Resync charset_list to Vemacs_mule_charset_list.
21927
21928 * keymap.c (store_in_keymap): Pay attention to the case that idx
21929 is a cons specifying a character range.
21930
219312008-02-01 Kenichi Handa <handa@m17n.org>
21932
21933 * composite.c (update_compositions): Bind inhibit-read-only, etc
21934 to t before calling remove-list-of-text-properties.
21935
21936 * print.c (print_object): Always print ASCII chars as is.
21937
219382008-02-01 Kenichi Handa <handa@m17n.org>
21939
21940 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21941
21942 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21943 is a char table.
21944
219452008-02-01 Kenichi Handa <handa@m17n.org>
21946
21947 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21948
219492008-02-01 Kenichi Handa <handa@m17n.org>
21950
21951 * xfaces.c (set_lface_from_font_name): Fix for the case that
21952 FONTNAME is not fontset name.
21953
219542008-02-01 Kenichi Handa <handa@m17n.org>
21955
21956 * fns.c (base64_encode_1): Fix previous change.
21957
219582008-02-01 Kenichi Handa <handa@m17n.org>
21959
21960 * fontset.c (set_fontset_font): New function.
21961 (Fset_fontset_font): If a font is specified for a charset, use
21962 map_charset_chars to store the font spec in a fontset.
21963
219642008-02-01 Kenichi Handa <handa@m17n.org>
21965
21966 * fontset.c (fontset_face): Create a fallback fontset on demand.
21967 (make_fontset): Don't create a fallback fontset here.
21968 (free_face_fontset): Free a fallback fontset (if any) too.
21969 (n_auto_fontsets): Delete this variable.
21970 (auto_fontset_alist): New variable.
21971 (new_fontset_from_font_name): Check auto_fontset_alist.
21972 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21973 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21974 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21975 Defsubr Sfontset_list_all.
21976
219772008-02-01 Kenichi Handa <handa@m17n.org>
21978
21979 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21980
219812008-02-01 Kenichi Handa <handa@m17n.org>
21982
21983 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21984
219852008-02-01 Kenichi Handa <handa@m17n.org>
21986
21987 * editfns.c (Fgoto_char): Fix docstring.
21988
219892008-02-01 Kenichi Handa <handa@m17n.org>
21990
21991 * insdel.c (insert_from_gap): Adjust intervals correctly.
21992
219932008-02-01 Jason Rumney <jasonr@gnu.org>
21994
21995 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21996 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21997 (w32_initialize): Try to load it.
21998 (x_get_font_repertory): Use it if available.
21999 (w32_encode_char): Add shortcut for unicode output.
22000
22001 * w32fns.c (w32_load_system_font): Default charset to -1.
22002 (x_to_w32_charset): Match all fonts for unicode.
22003 (w32_to_x_charset): New parameter matching. Don't return partial
22004 or wildcard charsets.
22005 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22006 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22007 (w32_to_x_font): Match charset to real charset.
22008 (enum_font_cb2): Always list unicode versions.
22009
22010 * makefile.w32-in (temacs): Increase EMHEAP.
22011
220122008-02-01 Jason Rumney <jasonr@gnu.org>
22013
22014 * w32term.c (w32_encode_char): New charset parameter.
22015 font_info.encoding becomes encoding_type.
22016 (x_get_font_repertory): New function. Warning: stub only!
22017 (x_new_font): Return quickly if font already set.
22018 (x_new_fontset): fontsetname parameter is Lisp_Object.
22019 Use new fs_query_fontset. Try new_fontset_from_font_name.
22020 Use fontset_name for return value.
22021
22022 * w32term.h: Declare x_get_font_repertory.
22023
22024 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22025 place of find_charset_in_text. Use encode_coding_object in place
22026 of encode_coding.
22027 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22028 decode_coding.
22029
22030 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22031 of x_new_fontset.
22032 (w32_load_system_font): Initialize charset as unicode.
22033 font_info.encoding becomes encoding_type.
22034 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22035 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22036 (syms_of_w32fns): Set get_font_repertory_func.
22037
22038 * w32console.c: Include character.h. Use terminal_encode_buffer
22039 from term.c.
22040 (write_glyphs): Use new version of encode_terminal_code. Use
22041 encode_coding_object in place of encode_coding.
22042
22043 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22044 encoding becomes encoding_type.
22045
22046 * term.c (terminal_encode_buffer): Make externally visible.
22047
22048 * makefile.w32-in: Add character.h dependancies.
22049 (character.o, chartab.o): New targets.
22050
220512008-02-01 Kenichi Handa <handa@m17n.org>
22052
22053 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22054 CODING_ID_EOL_TYPE.
22055
220562008-02-01 Andreas Schwab <schwab@suse.de>
22057
22058 * coding.c (produce_chars): Revert last change.
22059
220602008-02-01 Kenichi Handa <handa@m17n.org>
22061
22062 * charset.h (charset_unicode): Extern it.
22063
22064 * charset.c (string_xstring_p): Check by (C >= 0x100).
22065 (find_charsets_in_text): Change format of the arc CHARSETS. New
22066 arg MULTIBYTE.
22067 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22068 change of find_charsets_in_text.
22069 (Fsplit_char): Fix doc. Never return unknown.
22070
22071 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22072
22073 * coding.c (Fdefine_coding_system_alias): Update
22074 Vcoding_system_list.
22075
22076 * fontset.c (load_font_get_repertory): Pay attention to the case
22077 that ENCODING of a font is specified by a char-table.
22078
22079 * xterm.c (x_get_font_repertory): Handle the case that the
22080 encoding of font is other than Unicode.
22081
220822008-02-01 Kenichi Handa <handa@m17n.org>
22083
22084 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22085 if a character is encodable by the terminal coding system. If
22086 not, produces proper number of `?'s. Update
22087 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22088 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22089
220902008-02-01 Kenichi Handa <handa@m17n.org>
22091
22092 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22093 variables.
22094 (encode_terminal_code): Change argument. Encode multiple
22095 characters at once. Store the result of encoding in
22096 terminal_encode_buffer.
22097 (write_glyphs, insert_glyphs): Adjust for the change of
22098 encode_terminal_code.
22099 (term_init): Initialize terminal_encode_buffer and
22100 terminal_encode_buf_size.
22101
22102 * coding.c (consume_chars): If coding->src_object is nil, don't
22103 check annotation.
22104
221052008-02-01 Kenichi Handa <handa@m17n.org>
22106
22107 * character.c (char_string): Use ASCII_CHAR_P instead of
22108 SINGLE_BYTE_CHAR_P.
22109
221102008-02-01 Kenichi Handa <handa@m17n.org>
22111
22112 * xdisp.c (handle_auto_composed_prop): Check if the last
22113 characters of auto-composed region is newly composed with the
22114 following characters.
22115 (handle_composition_prop): Fix checking of point being inside
22116 composition.
22117
221182008-02-01 Kenichi Handa <handa@m17n.org>
22119
22120 * fns.c (concat): Don't change multibyteness of the result by
22121 concatenating an 8-bit character.
22122
22123 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22124 multibyteness of the result when newelt is an 8-bit character.
22125
221262008-02-01 Dave Love <fx@gnu.org>
22127
22128 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22129 EMACS_INT.
22130
22131 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22132
22133 * xfaces.c (face_numeric_value): Declare dim size_t.
22134 (Finternal_lisp_face_equal_p): Remove unused f.
22135
22136 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22137 (MATRIX_ROW): Remove unused vars.
22138 (draw_glyphs, x_insert_glyphs, fast_find_position)
22139 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22140 byte/char counts.
22141
22142 * regex.c (regex_compile): Remove unused var.
22143
22144 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22145
22146 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22147 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22148
22149 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22150
22151 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22152
22153 * fileio.c (Fwrite_region): Remove unused var.
22154
22155 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22156 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22157
22158 * composite.c (Fremove_list_of_text_properties): Declare.
22159
22160 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22161 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22162 (coding_inherit_eol_type): Remove unused attrs.
22163 (detect_coding): Cast arg of detect_eol.
22164
22165 * charset.c (syms_of_charset): Remove unused var p.
22166 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22167 byte/char counts.
22168
22169 * casetab.c (set_case_table): Remove unused var.
22170
22171 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22172 unused vars.
22173
221742008-02-01 Dave Love <fx@gnu.org>
22175
22176 * xterm.c (x_bitmap_mask): Declare.
22177
221782008-02-01 Dave Love <fx@gnu.org>
22179
22180 * xterm.c (x_term_init): Fix type error.
22181
22182 * lisp.h: Add Funibyte_char_to_multibyte.
22183
22184 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22185 (Fset_coding_system_priority): Doc fix.
22186
22187 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22188
22189 * indent.c (check_composition): Make start and end EMACS_INT.
22190
22191 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22192
22193 * xdisp.c (handle_composition_prop, check_point_in_composition):
22194 Make buffer positions EMACS_INT.
22195
22196 * composite.c (find_composition, run_composition_function)
22197 (update_compositions, Ffind_composition_internal): Make buffer
22198 positions EMACS_INT.
22199
22200 * composite.h (find_composition, update_compositions): Make
22201 position args EMACS_INT.
22202
22203 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22204
22205 * intervals.c (get_property_and_range):
22206 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22207
22208 * unexalpha.c: Don't include varargs.h.
22209
222102008-02-01 Dave Love <fx@gnu.org>
22211
22212 * coding.h (ENCODE_UTF_8): New.
22213
22214 * Makefile.in (gtkutil.o): Depend on coding.h.
22215
22216 * coding.c (Fset_coding_system_priority): Doc fix.
22217
222182008-02-01 Kenichi Handa <handa@m17n.org>
22219
22220 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22221 the case of auto saving.
22222
222232008-02-01 Andreas Schwab <schwab@suse.de>
22224
22225 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22226 `range' from GC.
22227
222282008-02-01 Kenichi Handa <handa@m17n.org>
22229
22230 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22231
222322008-02-01 Kenichi Handa <handa@m17n.org>
22233
22234 * fileio.c (choose_write_coding_system): Return a decided coding system.
22235 (Fwrite_region): Set Vlast_coding_system_used to the return value
22236 of choose_write_coding_system.
22237
222382008-02-01 Kenichi Handa <handa@m17n.org>
22239
22240 * charset.c (Fset_charset_priority): Pay attention to duplicated
22241 arguments.
22242
22243 * coding.c (QCcategory): New variable.
22244 (syms_of_coding): Defsym it. Set all elements of
22245 Vcoding_category_table and their symbol values.
22246 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22247 coding-category-XXX, and coding-category-list.
22248 (Fdefine_coding_system_internal): Add category in the plist.
22249
222502008-02-01 Kenichi Handa <handa@m17n.org>
22251
22252 * callproc.c (Fcall_process): Handle carryover correctly.
22253
22254 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22255 (raw_text_coding_system): Check NILP (coding_system).
22256 (coding_inherit_eol_type): Check NILP (coding_system) and
22257 NILP (parent).
22258 (consume_chars): Fix for the case of raw-text.
22259
22260 * process.c (read_process_output): Handle carryover correctly.
22261
222622008-02-01 Dave Love <fx@gnu.org>
22263
22264 * regex.c (re_search_2): Fix last change.
22265
222662008-02-01 Kenichi Handa <handa@m17n.org>
22267
22268 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22269 target_multibyte. Even in a unibyte case, return a converted
22270 multibyte char.
22271 (GET_CHAR_AFTER): New macro.
22272 (PATFETCH): Translate via multibyte char.
22273 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22274 (SETUP_MULTIBYTE_RANGE): New macro.
22275 (regex_compile): Setup compiled code so that its multibyteness
22276 matches that of a target. Fix the handling of "[X-YZ]" using
22277 SETUP_MULTIBYTE_RANGE.
22278 (analyse_first) <charset>: For filling fastmap for all multibyte
22279 characters, don't check by BASE_LEADING_CODE_P.
22280 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22281 the same as RE_MULTIBYTE_P (bufp) now.
22282 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22283 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22284 (TRANSLATE_VIA_MULTIBYTE): New macro.
22285 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22286 It is the same as RE_MULTIBYTE_P (bufp) now.
22287 <exactn>: Translate via multibyte.
22288 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22289 translate it.
22290 <charset, charset_not>: Fetch a character by
22291 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22292 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22293 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22294 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22295 by GET_CHAR_AFTER.
22296 (bcmp_translate): Likewise.
22297
22298 * search.c (compile_pattern): Check the member target_multibyte,
22299 not the member multibyte of buf.
22300
22301 * lread.c (read1): While reading a string, set force_singlebyte
22302 and force_multibyte correctly.
22303
22304 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22305 up of unibyte_to_multibyte_table.
22306
223072008-02-01 Kenichi Handa <handa@m17n.org>
22308
22309 * coding.c (setup_coding_system): If coding has
22310 post-read-conversion or pre-write-conversion, set
22311 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22312 respectively.
22313 (decode_coding_gap): Run post-read-conversion if any.
22314
22315 * fileio.c (Finsert_file_contents): Even if we read into a
22316 unibyte buffer, check if we must decode the result or not.
22317
223182008-02-01 Kenichi Handa <handa@m17n.org>
22319
22320 * coding.c (make_conversion_work_buffer): Change the work buffer
22321 name to the same one as that of Emacs 21.
22322
223232008-02-01 Kenichi Handa <handa@m17n.org>
22324
22325 * coding.h (make_conversion_work_buffer): Adjust prototype.
22326 (code_conversion_restore): Don't extern it.
22327
22328 * coding.c (detected_mask): Delete unused variable.
22329 (decode_coding_iso_2022): Pay attention to the byte sequence of
22330 CTEXT extended segment, and retain those bytes as is.
22331 (decode_coding_ccl): Delete unused variable `valids'.
22332 (setup_coding_system): Delete unused variable `category'.
22333 (consume_chars): Delete unused variable `category'. Make it work
22334 for non-multibyte case.
22335 (make_conversion_work_buffer): Change argument.
22336 (saved_coding): Delete unused variable.
22337 (code_conversion_restore): Don't check saved_coding->destination.
22338 (code_conversion_save): New function.
22339 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22340 instead of record_unwind_protect.
22341 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22342 (detect_coding_system): Delete unused variable `mask'.
22343 (Fdefine_coding_system_internal): Delete unused variable id.
22344
22345 * fileio.c (kill_workbuf_unwind): New function.
22346 (Finsert_file_contents): On replacing, call
22347 make_conversion_work_buffer with correct args, and call
22348 record_unwind_protect with the first arg kill_workbuf_unwind.
22349
22350 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22351
223522008-02-01 Kenichi Handa <handa@m17n.org>
22353
22354 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22355 (fontset_add): Fix for the case that TO is less than TO1.
22356 (Ffontset_info): Don't use fallback fontset on checking the
22357 default fontset.
22358 (dump_fontset): New function for debugging.
22359
22360 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22361 coding_type is Qcharset.
22362
223632008-02-01 Kenichi Handa <handa@m17n.org>
22364
22365 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22366 (map_char_table): Don't inherit the value from the parent on
22367 initializing VAL. Adjust for the above change.
22368
223692008-02-01 Kenichi Handa <handa@m17n.org>
22370
22371 * coding.c (Qsignature, Qendian): Delete these variables.
22372 (syms_of_coding): Don't initialize them.
22373 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22374 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22375 detect_info->found.
22376 (decode_coding_utf_16): Don't detect BOM here.
22377 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22378 is NOT utf_16_without_bom.
22379 (setup_coding_system): For a coding system of type utf-16, check
22380 if the attribute :endian is Qbig or not (not nil or not), and set
22381 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22382 (detect_coding): If coding type is utf-16 and BOM detection is
22383 required, detect it.
22384 (Fdefine_coding_system_internal): For a coding system of type
22385 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22386
223872008-02-01 Kenichi Handa <handa@m17n.org>
22388
22389 * coding.c (coding_set_source): Fix for the case that the current
22390 buffer is different from coding->src_object.
22391 (decode_coding_object): Don't use the conversion work buffer if
22392 DST_OBJECT is a buffer.
22393
223942008-02-01 Dave Love <fx@gnu.org>
22395
22396 * lread.c (read_emacs_mule_char) [len==2]: Index
22397 emacs_mule_charset correctly.
22398
223992008-02-01 Dave Love <fx@gnu.org>
22400
22401 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22402 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22403 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22404 treated specially.)
22405 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22406 (detected_mask): Remove Big5 bits.
22407
224082008-02-01 Kenichi Handa <handa@m17n.org>
22409
22410 The following changes are to make the font rescaling facility
22411 compatible with Emacs 21.
22412
22413 * xfaces.c (Vface_font_rescale_alist): Rename from
22414 Vface_resizing_fonts.
22415 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22416 (font_rescale_ratio): Rename from font_resizing_ratio.
22417 (split_font_name): Set font->rescale_ratio.
22418 (better_font_p): Pay attention to font->rescale_ratio.
22419 (build_scalable_font_name): Likewise. Change RESX, and RESY
22420 fields.
22421 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22422
224232008-02-01 Kenichi Handa <handa@m17n.org>
22424
22425 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22426 (Qutf_16_le): Remove these variables.
22427 (syms_of_coding): Don't DEFSYM them.
22428 (decode_coding_utf_16): Fix handling of BOM.
22429 (encode_coding_utf_16): Fix handling of BOM.
22430
224312008-02-01 Kenichi Handa <handa@m17n.org>
22432
22433 * fileio.c (Finsert_file_contents): On replacing, before decoding
22434 the file into the work buffer, set point of the work buffer to the end.
22435
224362008-02-01 Dave Love <fx@gnu.org>
22437
22438 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22439
224402008-02-01 Dave Love <fx@gnu.org>
22441
22442 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22443 and fix C types.
22444
224452008-02-01 Kenichi Handa <handa@m17n.org>
22446
22447 * xdisp.c (SKIP_GLYPHS): New macro.
22448 (set_cursor_from_row): Pay attention to string display properties.
22449
22450 * category.c (copy_category_entry): Fix for the case that RANGE
22451 is an integer.
22452
22453 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22454
22455 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22456
224572008-02-01 Kenichi Handa <handa@m17n.org>
22458
22459 * charset.c (Fcharset_id_internal): New function.
22460 (syms_of_charset): Defsubr it.
22461
22462 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22463 with the last arg charset_list acquired from coding.
22464 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22465 the attribute coding_attr_ccl_valids.
22466
22467 * coding.h (enum define_coding_ccl_arg_index): Set the first
22468 member coding_arg_ccl_decoder to coding_arg_max.
22469
22470 * ccl.h (ccl_driver): Adjust prototype.
22471
22472 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22473 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22474 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22475 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22476 last arg Qnil.
22477
224782008-02-01 Kenichi Handa <handa@m17n.org>
22479
22480 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22481 call encode_char.
22482
22483 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22484
224852008-02-01 Dave Love <fx@gnu.org>
22486
22487 * composite.c (syms_of_composite): Make composition_hash_table weak.
22488
224892008-02-01 Kenichi Handa <handa@m17n.org>
22490
22491 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22492 (font_name_registry): Don't extern them.
22493 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22494
22495 * fontset.h (Qfontset): Don't extern it.
22496 (new_fontset_from_font_name): Extern it.
22497
22498 * fontset.c: Give 8 extra slots to fontset objects.
22499 (Qfontset_info): New variable.
22500 (syms_of_fontset): Defsym it.
22501 (FONTSET_FALLBACK): New macro.
22502 (fontset_face): Try also the default fontset.
22503 (make_fontset): Realize a fallback fontset from the default fontset.
22504 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22505 using split_font_name_into_vector and build_font_name_from_vector.
22506 (Fset_fontset_font): Access the elements of font_spec by enum
22507 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22508 name by using split_font_name_into_vector.
22509 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22510 generate a proper font name from the fontset name. Update
22511 Vfontset_alias_alist.
22512 (n_auto_fontsets): New variable.
22513 (new_fontset_from_font_name): New function.
22514 (Ffont_info): Store the information about fonts generated from the
22515 default fontset in the first extra slot of the returned char-table.
22516
22517 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22518 (font_name_registry): Delete function.
22519 (split_font_name_into_vector): New function.
22520 (build_font_name_from_vector): New function.
22521 (font_list): The argument REGISTRY is now a list of registry names.
22522 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22523 specifies an explicit font name, return the name as is. Make a
22524 list of registy names.
22525
22526 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22527 of x_new_fontset.
22528 (Fx_create_frame): Don't call x_new_fontset here. Just use
22529 x_list_fonts to check the existence of fonts.
22530
22531 * xterm.h (x_new_fontset): Adjust prototype.
22532
22533 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22534 string. Use new_fontset_from_font_name to create a fontset from a
22535 font name.
22536
225372008-02-01 Kenichi Handa <handa@m17n.org>
22538
22539 * syntax.c (Vfind_word_boundary_function_table): New name for
22540 Vnext_word_boundary_function_table.
22541 (find-word-boundary-function-table): New name for
22542 next-word-boundary-function-table.
22543
225442008-02-01 Dave Love <fx@gnu.org>
22545
22546 * Makefile.in: Fix some dependencies.
22547
22548 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22549 set it to nil before returning.
22550
22551 * composite.c (update_compositions): Fix type error.
22552
22553 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22554
225552008-02-01 Kenichi Handa <handa@m17n.org>
22556
22557 * xterm.c (x_new_font): Optimize for the case that the font is
22558 already set for the frame.
22559
225602008-02-01 Kenichi Handa <handa@m17n.org>
22561
22562 * chartab.c (char_table_ascii): Check if the char table contents
22563 is sub-char-table or not.
22564 (char_table_set, char_table_set_range): Fix argument to
22565 char_table_ascii.
22566
22567 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22568 (detect_coding_utf_8, detect_coding_utf_16)
22569 (detect_coding_emacs_mule, detect_coding_iso_2022)
22570 (detect_coding_sjis, detect_coding_big5)
22571 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22572 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22573 sequence is valid in this coding system. Change callers.
22574 (MAX_ANNOTATION_LENGTH): New macro.
22575 (ADD_ANNOTATION_DATA): New macro.
22576 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22577 ADD_ANNOTATION_DATA. Change the format of annotation data.
22578 (ADD_CHARSET_DATA): New macro.
22579 (emacs_mule_char): New argument ID. Change callers.
22580 (decode_coding_emacs_mule, decode_coding_iso_2022)
22581 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22582 Produce charset annotation data in coding->charbuf.
22583 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22584 to charset annotation data in coding->charbuf.
22585 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22586 coding->common_flags if the coding system is iso-2022 based and
22587 uses designation.
22588 (produce_composition): Adjust for the new annotation data format.
22589 (produce_charset): New function.
22590 (produce_annotation): Handle charset annotation.
22591 (handle_composition_annotation, handle_charset_annotation): New
22592 functions.
22593 (consume_chars): Handle charset annotation. Utilize the above two
22594 functions.
22595 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22596 buffer, get the deleted text as a string and set
22597 coding->src_object to that string.
22598 (detect_coding, detect_coding_system): Use the new struct
22599 coding_detection_info.
22600
22601 * coding.h (struct coding_detection_info): New structure.
22602 (struct coding_system): Adjust prototype of the member `detector'.
22603 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22604
226052008-02-01 Kenichi Handa <handa@m17n.org>
22606
22607 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22608
226092008-02-01 Dave Love <fx@gnu.org>
22610
22611 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22612 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22613 to new local and nullify apropos_accumulate before returning.
22614 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22615
226162008-02-01 Kenichi Handa <handa@m17n.org>
22617
22618 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22619 correctly.
e3eea1fc 22620
aac0c6e3
MR
226212008-02-01 Dave Love <fx@gnu.org>
22622
22623 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22624
226252008-02-01 Kenichi Handa <handa@m17n.org>
22626
22627 The following changes are to make character composition happen
22628 automatically on displaying.
22629
22630 * Makefile.in (lisp, shortlisp): Add composite.elc.
22631
22632 * composite.h (Qauto_composed, Vauto_composition_function)
22633 (Qauto_composition_function): Extern them.
22634
22635 * composite.c (Vcomposition_function_table)
22636 (Qcomposition_function_table): Delete variables.
22637 (Qauto_composed, Vauto_composition_function)
22638 (Qauto_composition_function): New variables.
22639 (run_composition_function): Don't call
22640 compose-chars-after-function.
22641 (update_compositions): Clear `auto-composed' text property.
22642 (compose_chars_in_text): Delete this function.
22643 (syms_of_composite): Staticpro Qauto_composed and
22644 Qauto_composition_function. Declare Vauto_composition_function as
22645 a Lisp variable.
22646
22647 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22648
22649 * xdisp.c (it_props): Add an entry for Qauto_composed.
22650 (handle_auto_composed_prop): New function.
22651
22652 * xselect.c (selection_data_to_lisp_data): Don't call
22653 compose_chars_in_text.
22654
226552008-02-01 Dave Love <fx@gnu.org>
22656
22657 * keyboard.c (read_char): Modify checking around use of
22658 Vkeyboard_translate_table.
22659
22660 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22661 and fix C types.
22662
226632008-02-01 Kenichi Handa <handa@m17n.org>
22664
22665 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22666 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22667 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22668 the case that the last byte is '\r' correctly.
22669 (decode_coding): Flush out the unprocessed data correctly.
22670 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22671
226722008-02-01 Dave Love <fx@gnu.org>
22673
22674 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22675 Add XK_ISO... case.
22676 (xaw_scroll_callback): Revert last change.
22677
226782008-02-01 Kenichi Handa <handa@m17n.org>
22679
22680 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22681
226822008-02-01 Kenichi Handa <handa@m17n.org>
22683
22684 * xfaces.c (Vface_resizing_fonts): New variable.
22685 (struct font_name): New member `resizing_ratio'.
22686 (font_resizing_ratio): New function.
22687 (split_font_name): Set font->resizing_ratio.
22688 (better_font_p): Pay attention to font->resizing_ratio.
22689 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22690 RESX, and RESY fields.
22691 (try_alternative_families): Try scalable fonts if
22692 Vscalable_fonts_allowed is not Qt.
22693 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22694
226952008-02-01 Dave Love <fx@gnu.org>
22696
22697 * xterm.c (xaw_scroll_callback): Cast correctly.
22698
226992008-02-01 Dave Love <fx@gnu.org>
22700
22701 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22702 (lispy_kana_keys): Comment out.
22703 (make_lispy_event) [XK_kana_A]: Comment out.
22704
22705 * xterm.c (xaw_scroll_callback): Cast call_data.
22706 (XTread_socket): Deal with ASCII keysyms.
22707 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22708
227092008-02-01 Dave Love <fx@gnu.org>
22710
22711 * xterm.c (Vx_keysym_table): New.
22712 (syms_of_xterm): Initialize it.
22713 (XTread_socket): Use it.
22714 From head: Eliminate incorrect optimization that tried to avoid
22715 decoding the output of X*LookupString.
22716 (x_get_font_repertory): Delete charset declaration.
22717
227182008-02-01 Kenichi Handa <handa@m17n.org>
22719
22720 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22721 return 0.
22722 (Fdefine_coding_system_internal): Setup
22723 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22724
227252008-02-01 Dave Love <fx@gnu.org>
22726
22727 * coding.c (Fcheck_coding_system): Doc fix.
22728
22729 * editfns.c (Finsert_byte): Return a proper value.
22730
227312008-02-01 Kenichi Handa <handa@m17n.org>
22732
22733 * coding.c (decode_coding): Fix args to translate_chars. Pay
22734 attention to Vstandard_translation_table_for_decode.
22735 (encode_coding): Fix args to translate_chars. Pay attention to
22736 Vstandard_translation_table_for_encode.
22737
22738 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22739 SINGLE_BYTE_CHAR_P.
22740
22741 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22742 not by SINGLE_BYTE_CHAR_P.
22743
22744 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22745 SINGLE_BYTE_CHAR_P.
22746
22747 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22748 SINGLE_BYTE_CHAR_P.
22749
22750 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22751 by SINGLE_BYTE_CHAR_P.
22752
22753 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22754 SINGLE_BYTE_CHAR_P.
22755
227562008-02-01 Dave Love <fx@gnu.org>
22757
22758 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22759
227602008-02-01 Dave Love <fx@gnu.org>
22761
22762 * fns.c (Flanginfo): Fix typo.
22763
22764 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22765
227662008-02-01 Kenichi Handa <handa@m17n.org>
22767
22768 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22769 (detect_coding_emacs_mule, detect_coding_iso_2022)
22770 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22771 incomplete byte sequence. Don't update *mask when correctly detected.
22772 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22773 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22774 (detect_coding, detect_coding_system): Adjust for the changes above.
22775
227762008-02-01 Kenichi Handa <handa@m17n.org>
22777
22778 * character.c (char_string): Rename from
22779 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22780 (string_char): Rename from string_char.
22781
22782 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22783 if C is greater than MAX_3_BYTE_CHAR.
22784 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22785 string_char instead of string_char_with_unification.
22786
227872008-02-01 Dave Love <fx@gnu.org>
22788
22789 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22790
227912008-02-01 Kenichi Handa <handa@m17n.org>
22792
22793 * keymap.c (push_key_description): Pay attention to force_multibyte.
22794
22795 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22796
227972008-02-01 Dave Love <fx@gnu.org>
22798
22799 * charset.c (define_charset_internal): Rename `supprementary'.
22800
22801 * Makefile.in (lisp, shortlisp): Remove latin-N.
22802
228032008-02-01 Dave Love <fx@gnu.org>
22804
22805 * xfns.c (x_window, x_window): Use use_xim.
22806
22807 * xterm.c (use_xim): Initialize.
22808 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22809 (x_term_init): Maybe set use_xim.
22810
22811 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22812
228132008-02-01 Kenichi Handa <handa@m17n.org>
22814
22815 * search.c (search_buffer): Fix case-fold-search of multibyte
22816 characters.
22817 (boyer_moore): Rename the last argument to char_high_bits.
22818
228192008-02-01 Kenichi Handa <handa@m17n.org>
22820
22821 * xdisp.c (display_string): Fix for the case of zero width glyph.
22822
22823 * xfns.c (x_set_font): Change the error message of the case that
22824 x_new_fontset returns Qt.
22825
22826 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22827 (Finternal_set_lisp_face_attribute): Use signal_error for the
22828 error of invalid fontset.
22829
22830 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22831 fontset, return Qt.
22832
228332008-02-01 Dave Love <fx@gnu.org>
22834
22835 * unexelf.c (unexec): Make .got handling not SGI-specific.
22836
22837 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22838
22839 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22840
22841 * keyboard.c (read_key_sequence): Fix type error.
22842
22843 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22844 type error.
22845
22846 * fontset.c (fontset_add): Return Lisp_Object.
22847
228482008-02-01 Dave Love <fx@gnu.org>
22849
22850 * charset.h (charset_ordered_list_tick): Declare extern.
22851
228522008-02-01 Kenichi Handa <handa@m17n.org>
22853
22854 The following changes (and some of 2008-02-01 changes of mine) are
22855 for handling syntax, category, and case conversion for unibyte
22856 characters by converting them to multibyte on the fly. With these
22857 changes, we don't have to setup syntax and case tables for unibyte
22858 characters in each language environment.
22859
22860 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22861 multibyte if necessary.
22862
22863 * bytecode.c (Fbyte_code): Likewise.
22864
22865 * character.h (LEADING_CODE_LATIN_1_MIN)
22866 (LEADING_CODE_LATIN_1_MAX): New macros.
22867 (unibyte_to_multibyte_table): Extern it.
22868 (unibyte_char_to_multibyte): New macro.
22869 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22870 (CHAR_LEADING_CODE): New macro.
22871 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22872
22873 * character.c (unibyte_to_multibyte_table): New variable.
22874 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22875 (multibyte_char_to_unibyte): If C is an eight-bit character,
22876 convert it to the corresponding byte value.
22877
22878 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22879 not 1, signals an error. Update the elements of
22880 unibyte_to_multibyte_table.
22881 (init_charset_once): Initialize unibyte_to_multibyte_table.
22882 (syms_of_charset): Define the charset `iso-8859-1'.
22883
22884 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22885 as is without converting it to unibyte. In a unibyte buffer,
22886 convert C to multibyte before checking the syntax.
22887
22888 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22889
22890 * minibuf.c (Fminibuffer_complete_word): Use the macro
22891 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22892
22893 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22894
22895 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22896 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22897 that is zero, convert an eight-bit char to multibyte.
22898 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22899 non-emacs case.
22900 (PATFETCH): Convert an eight-bit char to multibyte.
22901 (HANDLE_UNIBYTE_RANGE): New macro.
22902 (regex_compile): Setup the compiled pattern for multibyte chars
22903 even if the given regex string is unibyte. Use PATFETCH_RAW
22904 instead of PATFETCH in many places. To handle `charset'
22905 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22906 only for ASCII chars.
22907 (analyse_first) <exactn>: Simplify because the compiled pattern
22908 is multibyte.
22909 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22910 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22911 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22912 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22913 multibyte always 1.
22914 (re_search_2): In emacs, set the locale variable multibyte to 1,
22915 otherwise to 0. New local variable target_multibyte. Check it
22916 to decide the multibyteness of STR1 and STR2. If
22917 target_multibyte is zero, convert unibyte chars to multibyte
22918 before translating and checking fastmap.
22919 (TARGET_CHAR_AND_LENGTH): New macro.
22920 (re_match_2_internal): In emacs, set the locale variable multibyte
22921 to 1, otherwise to 0. New local variable target_multibyte. Check
22922 it to decide the multibyteness of STR1 and STR2. Use
22923 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22924 <charset, charset_not>: If multibyte is nonzero, check fastmap
22925 only for ASCII chars. Call bcmp_translate with
22926 target_multibyte, not with multibyte.
22927 <begline>: Declare the local variable C as `unsigned'.
22928 (bcmp_translate): Change the last arg name to target_multibyte.
22929
22930 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22931 the regexp pattern and the matching target. Set cp->buf.multibyte
22932 to the multibyteness of the regexp pattern. Set
22933 cp->but.target_multibyte to the multibyteness of the matching target.
22934 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22935 FETCH_STRING_CHAR_ADVANCE.
22936 (Freplace_match): Convert unibyte chars to multibyte.
22937
22938 * syntax.c (char_quoted, back_comment, scan_words)
22939 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22940 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22941 unibyte chars to multibyte.
22942 (skip_chars): Delete the arg syntaxp, and move the code for
22943 handling syntaxes to skip_syntaxes. Change callers.
22944 Fix the case that the multibyteness of STRING and the current
22945 buffer doesn't match.
22946 (skip_syntaxes): New function.
22947 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22948 SINGLE_BYTE_CHAR_P.
22949
229502008-02-01 Kenichi Handa <handa@m17n.org>
22951
22952 * xfaces.c (QCfontset): New variable.
22953 (LFACE_FONTSET): New macro.
22954 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22955 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22956 (Finternal_set_lisp_face_attribute)
22957 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22958 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22959 check also LFACE_FONTSET_INDEX.
22960 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22961 attrs[LFACE_FONT_INDEX].
22962 (syms_of_xfaces): Intern and staticpro QCfontset.
22963
22964 * dispextern.h (enum lface_attribute_index): New member
22965 LFACE_FONTSET_INDEX.
22966
22967 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22968
229692008-02-01 Kenichi Handa <handa@m17n.org>
22970
22971 * coding.c (coding_set_destination): Fix coding->destination for
22972 the case converting a region.
22973 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22974 (encode_coding_object): Fix coding->dst_pos and
22975 coding->dst_pos_byte for the case converting a region.
22976
22977 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22978
22979 * character.h (BYTE8_STRING): New macro.
22980
22981 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22982
229832008-02-01 Kenichi Handa <handa@m17n.org>
22984
22985 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22986 characters by octal form.
22987
22988 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22989
22990 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22991 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22992 _fetch_multibyte_char_len.
22993 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22994
22995 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22996
22997 * casefiddle.c (casify_object): Simplify. Handle the case that
22998 the case conversion change the byte length.
22999 (casify_region): Likewise.
23000
23001 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23002
23003 * character.c (_fetch_multibyte_char_len): Delete this variable.
23004 (syms_of_character): Setup Vprintable_chars.
23005
23006 * editfns.c (Fchar_equal): Fix for the unibyte case.
23007 (Finsert_byte): New function.
23008 (syms_of_editfns): Defsubr it.
23009
23010 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23011 of direct code 0x3ffff.
23012
23013 * search.c (Freplace_match): Fix for the unibyte case.
23014
230152008-02-01 Kenichi Handa <handa@m17n.org>
23016
23017 * lread.c (safe_to_load_p): Fix the logic.
23018
23019 * syntax.c (scan_words): Don't treat characters belonging to
23020 different scripts as constituting a word.
23021
23022 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23023
23024 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23025
23026 * emacs.c (main): In the case of --unibyte, instead of aborting on
23027 finding non-empty buffer, make it unibyte.
23028
230292008-02-01 Kenichi Handa <handa@m17n.org>
23030
23031 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23032 to create a fontset.
23033
230342008-02-01 Dave Love <fx@gnu.org>
23035
23036 * character.c (Funibyte_char_to_multibyte): Doc fix.
23037
23038 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23039
230402008-02-01 Kenichi Handa <handa@m17n.org>
23041
23042 * fontset.c (fontset_add): Make the type `int'.
23043 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23044
23045 * character.c (unibyte_char_to_multibyte)
23046 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23047 charset_unibyte, not charset_primary.
23048
23049 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23050
23051 * charset.c (charset_unibyte): Rename from charset_primary.
23052 (Funibyte_charset): Rename from Fprimary_charset.
23053 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23054 (syms_of_charset): Adjust for the above changes.
23055
23056 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23057 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23058 it->multibyte_p is zero.
23059
23060 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23061 Delete extern.
23062
230632008-02-01 Kenichi Handa <handa@m17n.org>
23064
23065 * coding.c (Fdefine_coding_system_internal): Fix category setting
23066 for a coding system of type iso-2022.
23067
230682008-02-01 Kenichi Handa <handa@m17n.org>
23069
23070 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23071
230722008-02-01 Kenichi Handa <handa@m17n.org>
23073
23074 * syntax.c (Vnext_word_boundary_function_table): New variable.
23075 (next-word-boundary-function-table): Declare it as a Lisp variable
23076 in syms_of_syntax.
23077 (scan_words): Call functions in Vnext_word_boundary_function_table
23078 if any.
23079
23080 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23081
23082 * fontset.c (fs_load_font): If fontp->charset is not negative,
23083 return fontp without setting its members.
23084
230852008-02-01 Dave Love <fx@gnu.org>
23086
23087 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23088
23089 * m/sparc.h (HAVE_ALLOCA): Delete.
23090
23091 * s/irix6-5.h: Don't include strings.h.
23092 (bcopy, bzero, bcmp): Don't undef.
23093
23094 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23095
23096 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23097 (TIOCSIGSEND): Don't test IRIX6.
23098 (bcopy, bzero, bcmp): Define conditionally.
23099
231002008-02-01 Kenichi Handa <handa@m17n.org>
23101
23102 * buffer.c (Qas, Qmake, Qto): New variables.
23103 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23104 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23105
23106 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23107 we are inserting a process output into a multibyte buffer.
23108
23109 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23110 multibyte_char_to_unibyte.
23111
23112 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23113 by the primary charset, make it eight-bit char.
23114 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23115
23116 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23117 (charset_8_bit__control, charset_8_bit_graphic)
23118 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23119 (define_charset_internal): New function.
23120 (syms_of_charset): Call define_charset_internal for pre-defined
23121 charsets.
23122
23123 * charset.h (charset_8_bit): Extern it.
23124
23125 * coding.c (make_conversion_work_buffer): Adjust for the change
23126 of Fset_buffer_multibyte.
23127 (encode_coding_raw_text): Increment p0 in the loop.
23128
23129 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23130
23131 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23132 for the change of Fset_buffer_multibyte.
23133
23134 * fns.c (Fstring_to_multibyte): New function.
23135 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23136
231372008-02-01 Dave Love <fx@gnu.org>
23138
23139 * xfns.c (x_put_x_image): Declare args.
23140
23141 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23142 (try_font_list): Declare an arg.
23143
23144 * xdisp.c (message2_nolog, set_message): Declare an arg.
23145
23146 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23147
23148 * syntax.c (scan_sexps_forward): Declare an arg.
23149
23150 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23151 Declare an arg.
23152
23153 * lisp.h (Fnew_fontset): Declare.
23154
23155 * keymap.c (push_key_description): Call CHARACTERP correctly.
23156
23157 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23158 (face_for_char): Delete unused vars.
23159 (Fset_fontset_font): Doc fix. Delete unused vars.
23160
23161 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23162
23163 * composite.c (update_compositions): Declare arg.
23164
23165 * cm.c (calccost, cmgoto): Declare args.
23166
23167 * charset.c: Remove `emacs' conditional. Doc fixes.
23168 (map_char_table_for_charset): Declare.
23169
23170 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23171
23172 * ccl.c: Remove `emacs' conditional.
23173
231742008-02-01 Kenichi Handa <handa@m17n.org>
23175
23176 The following changes are to allow specifying multiple font
23177 patterns for a character range (specified by script or charset).
23178
23179 * Makefile.in (abbrev.o): Depend on syntax.h.
23180 (xfaces.o): Depend on charset.h.
23181
23182 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23183 SINGLE_BYTE_CHAR_P.
23184
23185 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23186
23187 * character.h (Vchar_script_table): Extern it.
23188
23189 * character.c (Vscript_alist): Delete.
23190 (Vchar_script_table, Qchar_script_table): New variable.
23191 (syms_of_character): Declare Vchar_script_table as a lisp variable
23192 and initialize it.
23193
23194 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23195 have property char-table-extra-slots, make no extra slot.
23196
23197 * dispextern.h (struct face): Delete member `charset'.
23198 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23199 SINGLE_BYTE_CHAR_P.
23200 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23201 Add prototypes.
23202 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23203 (generate_ascii_font_name): Rename from generate_ascii_font.
23204
23205 * fontset.h (get_font_repertory_func): New prototype.
23206 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23207 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23208
23209 * fontset.c (Qprepend, Qappend): New variables.
23210 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23211 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23212 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23213 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23214 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23215 (load_font_get_repertory): New functions.
23216 (fontset_set): Delete.
23217 (fontset_face): New arg FACE. Return face ID, not face.
23218 Complete re-write to handle new fontset structure. Change caller.
23219 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23220 (face_for_char): Don't call lookup_face.
23221 (make_fontset_for_ascii_face): New arg FACE.
23222 (fs_load_font): New arg CHARSET_ID. Don't check
23223 Vfont_encoding_alist here.
23224 (find_font_encoding): New function.
23225 (list_fontsets): Use STRINGP, not ! NILP.
23226 (accumulate_script_ranges): New function.
23227 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23228 re-written to handle new fontset structure.
23229 (Ffontset_font): Return a copy of element.
23230 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23231 docstring of font-encoding-alist.
23232
23233 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23234 (Fset_fotset_font): Fix arguments to 5.
23235
23236 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23237
23238 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23239 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23240 (highlight_trailing_whitespace): Adjust for the change of
23241 lookup_named_face.
23242
23243 * xfaces.c: Include charset.h.
23244 (load_face_font): Delete argument C. Change caller.
23245 (generate_ascii_font_name): Rename from generate_ascii_font.
23246 (font_name_registry): New function.
23247 (cache_face): Store ascii faces before non-ascii faces in buckets.
23248 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23249 Lookup only ascii faces.
23250 (lookup_non_ascii_face): New function.
23251 (lookup_named_face): Delete argument C. Change caller.
23252 (lookup_derived_face): Delete argument C. Change caller.
23253 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23254 a string, just call font_list with it.
23255 (choose_face_font): Delete arguments FACE and C. New arg
23256 FONT_SPEC. Change caller.
23257 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23258 Change caller.
23259 (realize_non_ascii_face): New function.
23260 (realize_x_face): Call load_face_font here.
23261 (realize_tty_face): Delete argument C. Change caller.
23262 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23263 get a face ID.
23264 (dump_realized_face): Don't print charset of FACE.
23265
23266 * xfns.c (x_set_font): Always call x_new_fontset and
23267 store_frame_parameter.
23268 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23269 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23270
23271 * xterm.h (x_get_font_repertory): Extern it.
23272
23273 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23274 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23275 it->multibyte_p is zero.
23276 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23277 (x_new_fontset): If FONTSETNAME doesn't match any existing
23278 fontsets, create a new one.
23279 (x_get_font_repertory): New function.
23280
232812008-02-01 Kenichi Handa <handa@m17n.org>
23282
23283 * coding.c (Ffind_coding_systems_region_internal): Detect an
23284 ASCII only string correctly.
23285
23286 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23287 version is 0.
23288
232892008-02-01 Kenichi Handa <handa@m17n.org>
23290
23291 * lread.c: Include "coding.h".
23292 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23293 (load_each_byte, unread_char): New variables.
23294 (readchar_backlog): Delete.
23295 (readchar): Return a character unless load_each_byte is nonzero.
23296 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23297 cons. If unread_char is not -1, simply return it.
23298 (unreadchar): Handle the case that readcharfun is
23299 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23300 (read_multibyte): Delete.
23301 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23302 (read_emacs_mule_char): New functions.
23303 (Fload): Even if the file doesn't have the extension ".elc", if
23304 safe_to_load_p returns a positive version number, assume that the
23305 file contains bytecompiled code. If the version is less than 22,
23306 load the file while decoding multibyte sequences by emacs-mule.
23307 (readevalloop): Don't use readchar_backlog.
23308 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23309 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23310 (read_escape): Delete the arg BYTEREP.
23311 (read1): Set load_each_byte to 1 temporarily while handling
23312 #@NUMBER. Don't call read_multibyte.
23313 (read_vector): Call Fread with a cons. If readcharfun is
23314 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23315 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23316 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23317 and Qload_force_doc_strings.
23318
233192008-02-01 Kenichi Handa <handa@m17n.org>
23320
23321 * xdisp.c (face_before_or_after_it_pos): Call
23322 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23323
233242008-02-01 Kenichi Handa <handa@m17n.org>
23325
23326 * character.h (TRAILING_CODE_P): New macro.
23327 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23328 (string_char_with_unification): Fix prototype.
23329 (Vscript_alist): Extern it.
23330
23331 * character.c (Vscript_alist): New variable.
23332 (string_char_with_unification, str_as_unibyte)
23333 (string_escape_byte8): Add `const' to local variables.
23334 (syms_of_character): Declare script-alist as a Lisp variable.
23335
23336 * charset.h (Vcharset_ordered_list): Extern it.
23337 (charset_ordered_list_tick): Extern it.
23338 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23339 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23340 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23341 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23342 (Funify_charset): Adjust for the change of Funify_charset.
23343
23344 * charset.c (charset_ordered_list_tick): New variable.
23345 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23346 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23347 deunify instead of unify a charset.
aac0c6e3
MR
23348 (string_xstring_p): Add `const' to local variables.
23349 (find_charsets_in_text): Add `const' to arguments and local variables.
23350 (encode_char): Adjust for the change of Funify_charset. Fix
23351 detecting of invalid code.
23352 (Fset_charset_priority): Increment charset_ordered_list_tick.
23353 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23354 and TO_CODE.
23355
23356 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23357 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23358 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23359 (decode_coding_ccl, consume_chars)
23360 (Ffind_coding_systems_region_internal)
23361 (Fcheck_coding_systems_region): Add `const' to local variables.
23362
23363 * print.c (print_object): Use octal form for printing the
23364 contents of a bool vector.
23365
233662008-02-01 Dave Love <fx@gnu.org>
23367
23368 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23369 <version == 20>: Refuse to load.
23370
233712008-02-01 Dave Love <fx@gnu.org>
23372
23373 * fns.c: Move coding.h.
23374 (Qcodeset, Qdays, Qmonths): New.
23375 (concat): Use CHARACTERP instead of INTEGERP.
23376 (Flocale_codeset): Delete.
23377 (Flanginfo): New function.
23378 (syms_of_fns): Change accordingly.
23379
23380 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23381
233822008-02-01 Dave Love <fx@gnu.org>
23383
23384 * casetab.c (init_casetab_once, init_casetab_once): Fix
23385 CHAR_TABLE_SET call.
23386
23387 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23388
23389 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23390
23391 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23392 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23393 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23394
23395 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23396
23397 * coding.c (ENCODE_DESIGNATION, decode_eol)
23398 (make_conversion_work_buffer, code_conversion_restore)
23399 (Fdefine_coding_system_internal): Convert Lisp types.
23400 (code_conversion_restore): Use EQ, not ==.
23401 (Fencode_coding_string): Fix code_convert_string call.
23402
23403 * coding.h (code_convert_region): Fix prototype.
23404
23405 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23406
23407 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23408 (Ffontset_info): Convert Lisp types.
23409
23410 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23411
23412 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23413
23414 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23415
23416 * chartab.c: Include "...h", not <...h> in some cases.
23417
23418 * callproc.c (Fcall_process): Remove unused variables.
23419
234202008-02-01 Dave Love <fx@gnu.org>
23421
23422 * coding.c (Fset_coding_system_priority): Allow null arg list.
23423
234242008-02-01 Dave Love <fx@gnu.org>
23425
23426 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23427 (Fself_insert_and_exit): Use CHARACTERP.
23428
23429 * callproc.c (Fcall_process): Remove unused vars.
23430
23431 * xterm.c (XTread_socket): Add extra dead keysyms.
23432
23433 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23434
23435 * dispextern.h: Remove prototypes for redraw_frame,
23436 redraw_garbaged_frames.
23437
23438 * cmds.c (Fself_insert_command): Use CHARACTERP.
23439
23440 * chartab.c (make_sub_char_table): Remove unused var.
23441 (Fset_char_table_default, Fmap_char_table): Doc fix.
23442
23443 * keymap.c (access_keymap): Remove generic char code.
23444 (push_key_description): Use CHARACTERP.
23445
234462008-02-01 Dave Love <fx@gnu.org>
23447
23448 * charset.c: Doc fixes.
23449 (Funify_charset): Extra checking.
23450
234512008-02-01 Dave Love <fx@gnu.org>
23452
23453 * lread.c: Remove some unused variables.
23454 (safe_to_load_p): If safe, return the magic number version byte.
23455 (Fload): Maybe use load-with-code-conversion.
23456
234572008-02-01 Kenichi Handa <handa@m17n.org>
23458
23459 * category.c (Fmodify_category_entry): Don't modify the contents
23460 of category_set for characters out of the range. Avoid
23461 unnecessary modification.
23462
23463 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23464 Vchar_unify_table. The default value of the table is now nil.
23465
23466 * character.c (syms_of_character): Setup Vchar_width_table for
23467 eight-bit-control and raw-byte chars.
23468
23469 * charset.h (enum define_charset_arg_index): Delete
23470 charset_arg_parents and add charset_arg_subset and
23471 charset_arg_superset.
23472 (enum charset_attr_index): Delete charset_parents and add
23473 charset_subset and charset_superset.
23474 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23475 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23476 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23477 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23478 (CHARSET_SUPERSET): New macros.
23479 (charset_work): Extern it.
23480 (ENCODE_CHAR): Use charset_work.
23481 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23482 (map_charset_chars): Extern it.
23483
23484 * charset.c (load_charset_map): Set the default value of encoder
23485 and deunifier char-tables to nil.
23486 (map_charset_chars): Change argument. Change callers. Use
23487 map_char_table_for_charset instead of map_char_table.
23488 (Fmap_charset_chars): New optional args from_code and to_code.
23489 (Fdefine_charset_internal): Adjust for the change of
23490 `define-charset' (:parents -> :subset or :superset).
23491 (charset_work): New variable.
23492 (encode_char, syms_of_charset): Adjust for the change of
23493 Fdefine_charset_internal.
23494 (Ffind_charset_string): Setup the vector `charsets' correctly.
23495
23496 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23497 the previous change.
23498 (char_table_ref_and_range): Adjust for the above change.
23499 (map_sub_char_table_for_charset): New function.
23500 (map_char_table_for_charset): New function.
23501
23502 * keymap.c (describe_vector): Handle a char-table directly here.
23503 (describe_char_table): Delete.
23504
23505 * lisp.h (map_charset_chars): Delete.
23506
235072008-02-01 Dave Love <fx@gnu.org>
23508
23509 * fns.c (count_combining): Comment out (unused).
23510 (Flocale_codeset): New.
23511 (syms_of_fns): Defsubr it.
23512
23513 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23514 (size_t): Remove.
23515
235162008-02-01 Dave Love <fx@gnu.org>
23517
23518 * Makefile.in (chartab.o): Depend on charset.h.
23519
235202008-02-01 Kenichi Handa <handa@m17n.org>
23521
23522 * character.c (syms_of_character): Set the default value of
23523 Vprintable_chars to Qnil.
23524
235252008-02-01 Dave Love <fx@gnu.org>
23526
23527 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23528
235292008-02-01 Kenichi Handa <handa@m17n.org>
23530
23531 * charset.c (load_charset_map): Handle the case that from < to
23532 correctly.
23533
23534 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23535 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23536 Pay attention to raw-8-bit chars.
23537
235382008-02-01 Kenichi Handa <handa@m17n.org>
23539
23540 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23541 It is not bytecompiled now.
23542
23543 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23544 (charset_jisx0208): New variables.
23545 (Fdefine_charset_internal): Setup them if appropriate.
23546 (init_charset_once): Initialize them to -1.
23547
23548 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23549 (charset_jisx0208): Extern them.
23550
23551 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23552 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23553 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23554 (setup_iso_safe_charsets): Fix arguments to Fassq.
23555 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23556 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23557 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23558 (encode_coding_iso_2022): Change the 1st arg to
23559 ENCODE_ISO_CHARACTER to a variable.
23560
235612008-02-01 Kenichi Handa <handa@m17n.org>
23562
23563 * charset.h (enum define_charset_arg_index): New enums
23564 charset_arg_min_code and charset_arg_max_code.
23565 (struct charset): New member char_index_offset.
23566
23567 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23568 Take charset->char_index_offset into account.
23569 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23570 args[charset_arg_max_code]. Setup charset.char_index_offset.
23571 (syms_of_charset): Fix args to Fdefine_charset_internal.
23572
235732008-02-01 Dave Love <fx@gnu.org>
23574
23575 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23576
235772008-02-01 Dave Love <fx@gnu.org>
23578
23579 * coding.c: Doc fixes.
23580 (Fcoding_system_aliases): Fix return value.
23581 (Qmac): Remove (duplicated) definition.
23582
235832008-02-01 Dave Love <fx@gnu.org>
23584
362654a6
JB
23585 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23586 New functions.
aac0c6e3
MR
23587
23588 * character.c (Fstring): Doc fix.
23589
23590 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23591
362654a6 23592 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23593 (font-encoding-alist): Doc fix.
23594
235952008-02-01 Dave Love <fx@gnu.org>
23596
23597 * term.c (costs_set): Declare static, non-initialized for pcc.
23598 (encode_terminal_code): Remove unused var.
23599
23600 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23601 for K&R.
23602
23603 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23604
23605 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23606 (suffixes): Move out of make_subsidiaries for K&R.
23607
23608 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23609
23610 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23611
236122008-02-01 Dave Love <fx@gnu.org>
23613
23614 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23615
23616 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23617
236182008-02-01 Yong Lu <lyongu@asia-infonet.com>
23619
23620 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23621
23622 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23623
236242008-02-01 Kenichi Handa <handa@m17n.org>
23625
23626 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23627 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23628
236292008-02-01 Kenichi Handa <handa@m17n.org>
23630
23631 * coding.c (decode_coding_charset): Adjust for the change of
23632 Fdefine_coding_system_internal.
23633 (Fdefine_coding_system_internal): For a coding system of
23634 `charset' type, store a list of charset IDs in
23635 `charset_attr_charset_valids' element of coding attributes.
23636
236372008-02-01 Kenichi Handa <handa@m17n.org>
23638
23639 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23640 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23641 caller. Handle 2-byte and 3-byte charsets correctly.
23642 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23643 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23644 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23645 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23646 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23647 sequence.
23648 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23649 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23650 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23651 and alt&rule composition.
23652 (decode_coding_iso_2022): Handle composition correctly.
23653 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23654
23655 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23656 re-defining a charset. If the charset has :emacs-mule-id, setup
23657 emacs_mule_bytes.
23658 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23659
236602008-02-01 Kenichi Handa <handa@m17n.org>
23661
23662 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23663 (encode_coding_big5, encode_coding_charset): If coding requires safe
23664 encoding, produce a character specified by
23665 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23666
236672008-02-01 Dave Love <fx@gnu.org>
23668
23669 * xterm.c (XSetIMValues): Declare.
23670
23671 * process.c: Conditionally include sys/wait.h, pty.h.
23672
23673 * print.c (print_object): Fix print format for 64-bit systems.
23674
23675 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23676
23677 * buffer.c (emacs_strerror): Declare.
23678
23679 * fontset.c (Fclear_face_cache): Declare.
23680 (accumulate_font_info): Comment-out (unused).
23681 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23682 variables.
23683
23684 * character.h (string_escape_byte8): Declare.
23685
23686 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23687 unused vars.
23688 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23689 (Fmap_charset_chars): Doc fix.
23690
23691 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23692 (Fset_coding_system_priority, Fset_coding_system_priority)
23693 (Fdefine_coding_system_internal): Doc fix.
23694
236952008-02-01 Dave Love <fx@gnu.org>
23696
23697 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23698
236992008-02-01 Kenichi Handa <handa@m17n.org>
23700
23701 * character.c (string_escape_byte8): Make multibyte string with
23702 correct size.
23703
23704 * charset.c (Fmake_char): Delete unnecessary code.
23705
237062008-02-01 Kenichi Handa <handa@m17n.org>
23707
23708 * xfns.c (x_encode_text): Allocate coding.destination here, and
23709 call encode_coding_object with dst_object Qnil.
23710
23711 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23712 multibyte form correctly.
23713
23714 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23715 against Vfont_encoding_alist.
23716
23717 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23718 handling of charset list.
23719 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23720 (decode_coding_object): Move point to coding->dst_pos before
23721 calling post-read-conversion function.
23722 (encode_coding_object): Give correct arguments to
23723 pre-write-conversion. Ignore the return value of
23724 pre-write-conversion function. Pay attention to the case that
23725 pre-write-conversion changes the current buffer. If dst_object is
23726 Qt, even if coding->src_bytes is zero, allocate at least one byte
23727 to coding->destination.
23728
23729 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23730
23731 * charset.c (Fmake_char): Make it more backward compatible.
23732 (Fmap_charset_chars): Fix docstring.
23733
237342008-02-01 Dave Love <fx@gnu.org>
23735
23736 * coding.c: Doc fixes.
23737 (Fdefine_coding_system_alias): Use names, not symbols, in
23738 coding-system-alist.
23739
237402008-02-01 Kenichi Handa <handa@m17n.org>
23741
23742 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23743 of calling free_realized_face.
23744
237452008-02-01 Yong Lu <lyongu@asia-infonet.com>
23746
23747 * charset.c (read_hex): Don't treat SPC as a comment starter.
23748 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23749 (Fdecode_char): Fix typo.
23750
237512008-02-01 Kenichi Handa <handa@m17n.org>
23752
23753 * charset.h (struct charset): New member `code_space_mask'.
23754
23755 * coding.c (coding_set_source): Delete the local variable beg_byte.
23756 (encode_coding_charset, Fdefine_coding_system_internal):
23757 Delete the local variable charset.
23758 (Fdefine_coding_system_internal): Setup
23759 attrs[coding_attr_charset_valids] correctly.
23760
23761 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23762 member to check if CODE is valid or not.
23763 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23764 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23765 is within the range of charset->min_code and carset->max_code.
23766
237672008-02-01 Dave Love <fx@gnu.org>
23768
23769 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23770
23771 * dispextern.h (generate_ascii_font): Fix return type.
23772
23773 * xfaces.c (generate_ascii_font): Fix arg declaration.
23774
23775 * coding.c (coding_inherit_eol_type)
23776 (Fset_terminal_coding_system_internal)
23777 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23778
237792008-02-01 Kenichi Handa <handa@m17n.org>
23780
23781 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23782 multiple charsets correctly.
23783
237842008-02-01 Kenichi Handa <handa@m17n.org>
23785
23786 * search.c (boyer_moore): Fix handling of multibyte character
23787 translation.
23788
23789 * xdisp.c (display_mode_element): When the variable `elt' is
23790 changed, update `this' and `lisp_string'.
23791
237922008-02-01 Kenichi Handa <handa@m17n.org>
23793
23794 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23795
23796 * callproc.c (Fcall_process): Be sure to give the current buffer
23797 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23798
23799 * charset.c (struct charset_map_entries): New struct.
23800 (load_charset_map): Rename from parse_charset_map. New args
23801 entries and n_entries. Change caller.
23802 (load_charset_map_from_file): Rename from load_charset_map.
23803 Change caller. New arg control_flag. Call load_charset_map at
23804 the tail.
23805 (load_charset_map_from_vector): New function.
23806 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23807 (encode_char): If the charset is compact, change a character index
23808 to a code point.
23809
23810 * coding.c (coding_alloc_by_making_gap): Check the case that the
23811 source and destination are the same correctly.
23812 (decode_coding_raw_text): Set coding->consumed_char and
23813 coding->consumed to 0.
23814 (produce_chars): If coding->chars_at_source is nonzero, update
23815 coding->consumed_char and coding->consumed before calling
23816 alloc_destination.
23817 (Fdefine_coding_system_alias): Register ALIAS in
23818 Vcoding_system_alist.
23819 (syms_of_coding): Define `no-conversion' coding system at the tail.
23820
23821 * fileio.c (Finsert_file_contents): Set coding_system instead of
23822 val. If the current buffer is multibyte, always call
23823 decode_coding_gap.
23824
23825 * xfaces.c (try_font_list): Give higher priority to fontset's
23826 family than face's family.
23827
238282008-02-01 Kenichi Handa <handa@m17n.org>
23829
23830 * callproc.c (Fcall_process): Be sure to give the current buffer
23831 to decode_coding_c_string.
23832
23833 * xfaces.c (try_font_list): Give a family specified in a fontset
23834 higher priority than a family specified in a face.
23835
238362008-02-01 Kenichi Handa <handa@m17n.org>
23837
23838 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23839 Fix arguments to insert_from_buffer.
23840
23841 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23842
238432008-02-01 Kenichi Handa <handa@m17n.org>
23844
23845 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23846 (decode_coding_gap): Set coding->dst_multibyte correctly.
23847
238482008-02-01 Kenichi Handa <handa@m17n.org>
23849
23850 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23851 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23852 (encode_coding_utf_16): Substitute coding->default_char for
23853 non-Unicode characters.
23854 (decode_coding): Don't call record_insert here.
23855 (setup_coding_system): Initialize `surrogate' of
23856 coding->spec.utf_16 to 0.
23857 (EMIT_ONE_BYTE): Fix for multibyte case.
23858
23859 * insdel.c (insert_from_gap): Call record_insert.
23860
238612008-02-01 Kenichi Handa <handa@m17n.org>
23862
23863 * casefiddle.c (casify_region): Fix multibyte case.
23864
23865 * character.c (c_string_width): Add return type `int'.
23866 (char_string_with_unification): Delete arg ADVANCED.
23867
23868 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23869 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23870 (CHAR_STRING_ADVANCE): Make it do-while statement.
23871
23872 * chartab.c (sub_char_table_set_range): Optimize for the case
23873 DEPTH == 3. Add workaround code for a GCC optimization bug.
23874
23875 * charset.c (parse_charset_map): Remove an unused variable.
23876
23877 * coding.c: Delete unused variables.
23878
23879 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23880 earlier. If inserted is zero and the coding system doesn't
23881 require flushing, don't call decode_coding_gap.
23882
23883 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23884
238852008-02-01 Kenichi Handa <handa@m17n.org>
23886
23887 The following changes are for using Unicode as an internal
23888 character model, and use UTF-8 format for buffer/string
23889 representation.
23890
23891 * .gdbinit (xchartable): Adjust for the change of char table structure.
23892 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23893
23894 * Makefile.in (obj): Add character.o and chartab.o.
23895 (lisp, shortlisp): Remove utf-8.elc.
23896 (*.o): For many files, change dependency on charset.h to
23897 character.h, and add dependency on character.h.
23898 (character.o, chartab.o): New targets.
23899
23900 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23901 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23902 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23903 of "charset.h".
23904
23905 * dired.c, filelock.c: Include "character.h".
23906
23907 * alloc.c: Include "character.h" instead of "charset.h".
23908 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23909 (syms_of_alloc): Remove defsubr for Smake_char_table.
23910
23911 * buffer.c: Include "character.h" instead of "charset.h", don't
23912 include "coding.h".
23913 (Fset_buffer_multibyte): Adjust for UTF-8.
23914
23915 * buffer.h: EXFUN Fbuffer_live_p.
23916
23917 * callproc.c: Include "character.h" instead of "charset.h".
23918 (Fcall_process): Big change for the new code-conversion APIs.
23919
23920 * casetab.c: Include "character.h" instead of "charset.h".
23921 (set_canon, set_identity, shuffle): Adjust for the new
23922 map_char_table spec.
23923 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23924 accessing the char table structure.
23925
23926 * chartab.c: New file that implements char table.
23927
23928 * category.c: Include "character.h".
23929 (copy_category_entry): New function.
23930 (copy_category_table): Call map_char_table and copy_category_entry.
23931 (Fmake_category_table): Initialize all top-level slots.
23932 (char_category_set): New function.
23933 (modify_lower_category_set): Delete.
23934 (Fmodify_category_entry): Call char_table_ref_and_range.
23935
23936 * category.h (CATEGORY_SET): Just call char_category_set.
23937
23938 * ccl.c: Include "character.h".
23939 (Qccl, Qcclp): New variables.
23940 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23941 it's less than 256.
23942 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23943 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23944 and DST type.
23945 (ccl_driver): Change types of argument, adjust code accordingly.
23946 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23947 ccl_driver.
23948 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23949
23950 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23951 New members src_multibyte, dst_multibyte, consumed, and produced.
23952 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23953 (CODING_SPEC_CCL_PROGRAM): New macro.
23954 (ccl_driver): Update prototype.
23955 (Qccl, Qcclp, Fccl_program_p): Extern them.
23956 (CHECK_CCL_PROGRAM): New macro.
23957
23958 * character.c, character.h, chartab.c: New files.
23959
23960 * charset.c: Mostly re-written. Move character and multibyte sequence
23961 handling codes to character.c.
23962
23963 * charset.h: Mostly re-written. Move character and multibyte sequence
23964 handling codes to character.h.
23965
23966 * coding.c, coding.h: Mostly re-written.
23967
23968 * composite.c: Include "character.h" instead of "charset.h".
23969 (CHAR_WIDTH): Move to character.h.
23970 (HASH_KEY, HASH_VALUE): Delete.
23971
23972 * composite.h (enum composition_method): Change order of enumeration
23973 symbols.
23974
23975 * data.c: Include "character.h" instead of "charset.h".
23976 (Faref): Call CHAR_TABLE_REF for a char table.
23977 (Faset): Call CHAR_TABLE_SET for a char table.
23978
23979 * dispextern.h (free_realized_face, check_face_attribytes)
23980 (generate_ascii_font): Extern them.
23981 (free_realized_multibyte_face): Delete extern.
23982
23983 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23984 table structure.
23985
23986 * editfns.c: Include "character.h" instead of "charset.h".
23987 (Fchar_to_string): Always call CHAR_STRING.
23988
23989 * emacs.c (main): Call init_charset_once, init_charset,
23990 syms_of_chartab, and syms_of_character.
23991
23992 * fileio.c: Include "character.h" instead of "charset.h".
23993 (Finsert_file_contents): Big change for the new code-conversion API.
23994 (choose_write_coding_system, Fwrite_region): Likewise.
23995 (build_annotations_2): Delete.
23996 (e_write): Big change for the new code-conversion API.
23997
23998 * fns.c: Include "character.h" instead of "charset.h".
23999 (copy_sub_char_table): Move to chartab.c.
24000 (Fcopy_sequence): Call copy_char_table for a char table.
24001 (concat): Delete codes calling count_multibyte.
24002 (string_char_to_byte, string_byte_to_char): Adjust for the new
24003 multibyte form.
24004 (internal_equal): Adjust for the change of char table structure.
24005 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24006 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24007 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24008 (char_table_translate, optimize_sub_char_table)
24009 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24010 chartab.c.
24011 (char_table_ref_and_index): Delete.
24012 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24013 (Fmd5): Call preferred_coding_system instead of accessing
24014 Vcoding_category_list. Adjust for the new code-conversion API.
24015 (syms_of_fns): Move defsubr for char table related functions to
24016 chartab.c.
24017
24018 * fontset.c: Mostly re-written.
24019
24020 * fontset.h (struct font_info): Change type of the member encoding_type.
24021 (enum FONT_SPEC_INDEX): New enum.
24022 (fontset_font_pattern, fs_load_font): Update prototype.
24023 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24024
24025 * indent.c: Include "character.h" instead of "charset.h".
24026 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24027
24028 * insdel.c: Include "character.h" instead of "charset.h".
24029 (copy_text): Don't refer to Vnonascii_translation_table.
24030 (insert_from_gap): New function.
24031
24032 * keyboard.c: Include "character.h" instead of "charset.h".
24033 (command_loop_1): Never call direct_output_forward_char before
24034 a non-ASCII character.
24035 (read_char): If Vkeyboard_translate_table is a char table, always
24036 translate a character.
24037
24038 * keymap.c: Include "character.h".
24039 (store_in_keymap): Handle the case that IDX is a cons.
24040 (Fdefine_key): Handle the case that KEY is a cons and the car part
24041 is also a cons (range).
24042 (push_key_description): Adjust for the new character code.
24043 (describe_vector): Call describe_char_table for a char table.
24044 (describe_char_table): New function.
24045
24046 * keymap.h (describe_char_table): Extern it.
24047
24048 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24049 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24050 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24051 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24052 Delete.
24053 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24054 structure.
24055 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24056 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24057 (CHARTAB_SIZE_BITS_3): New macros.
24058 (chartab_size): Extern it.
24059 (struct Lisp_Char_Table): Re-design.
24060 (struct Lisp_Sub_Char_Table): New structure.
24061 (HASH_KEY, HASH_VALUE): Move from fns.c.
24062 (CHARACTERBITS): Define as 22.
24063 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24064 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24065 (GC_SUB_CHAR_TABLE_P): New macro.
24066 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24067 (code_convert_string_norecord): Deleted extern.
24068 (init_character_once, syms_of_character, init_charset)
24069 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24070
24071 * lread.c: Include "character.h".
24072 (read_multibyte): New arg NBYTES.
24073 (read_escape): Change the meaning of returned *BYTEREP.
24074 (to_multibyte): Delete.
24075 (read1): Adjust the handling of char table and string.
24076
24077 * print.c: Include "character.h" instead of "charset.h".
24078 (print_string): Convert 8-bit raw bytes to octal form by
24079 string_escape_byte8.
24080 (print_object): Adjust for the new multibyte form. Print 8-bit
24081 raw bytes always in octal form. Handle sub char table correctly.
24082
24083 * process.c: Include "character.h" instead of "charset.h".
24084 (read_process_output, send_process): Adjust for the new
24085 code-conversion API.
24086
24087 * puresize.h (BASE_PURESIZE): Increase.
24088
24089 * regex.c: Include "character.h" instead of "charset.h".
24090 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24091 (regex_compile): Accept a range whose starting and ending
24092 character have different leading bytes.
24093 (analyse_first): Adjust for the above change.
24094
24095 * search.c: Include "character.h" instead of "charset.h".
24096 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24097 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24098
24099 * syntax.c: Include "character.h" instead of "charset.h".
24100 (syntax_parent_lookup): Delete.
24101 (Fmodify_syntax_entry): Accept a cons as CHAR.
24102 (skip_chars): Adjust for the new multibyte form.
24103 (init_syntax_once): Call char_table_set_range instead of directly
24104 accessing the structure of a char table.
24105
24106 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24107 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24108 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24109 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24110
24111 * term.c: Include "buffer.h" and "character.h".
24112 (encode_terminal_code, write_glyphs): Adjust for the new
24113 code-conversion API.
24114 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24115
24116 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24117
24118 * xdisp.c: Include "character.h".
24119 (get_next_display_element): Adjust for the new multibyte form.
24120 (disp_char_vector): Adjust for the new char table structure.
24121 (decode_mode_spec_coding): Adjust for the new structure of
24122 coding system.
24123 (decode_mode_spec): Adjust for the new code-conversion API.
24124
24125 * xfaces.c: Include "character.h" instead of "charset.h".
24126 (load_face_font): Adjust for the change of choose_face_font and
24127 FS_LOAD_FONT.
24128 (generate_ascii_font): New function.
24129 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24130 (set_font_frame_param): Adjust for the change of choose_face_font.
24131 (free_realized_face): Make it public.
24132 (free_realized_faces_for_fontset): Rename from
24133 free_realized_multibyte_face. Free also faces realized for ASCII.
24134 (choose_face_font): Change arguments. Adjust for the change of
24135 fontset_font_pattern and FS_LOAD_FONT.
24136
24137 * xfns.c: Include "character.h".
24138 (x_encode_text): Adjust for the new code-conversion API.
24139
24140 * xselect.c: Don't include "charset.h".
24141 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24142
24143 * xterm.c: Include "character.h".
24144 (x_encode_char): New argument CHARSET. Change caller.
24145 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24146 Call ENCODE_CHAR instead of SPLIT_CHAR.
24147 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24148 CHAR_WIDTH instead of CHARSET_WIDTH.
24149 (XTread_socket): Adjust for the new code-conversion API.
24150 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24151 (x_load_font): Adjust for the change of struct font.
24152
241532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24154
24155 * xfaces.c (face_at_buffer_position): Remove unused vars.
24156
241572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24158
24159 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24160 Fix overflow checking.
24161
241622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24163
24164 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24165 Cancel previous change.
24166
241672008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24168
24169 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24170 ccl->eight_bit_control. Fix check for buffer overflow.
24171 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24172 (ccl_driver): Initialize extra_bytes to 0.
24173
241742008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24175
24176 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24177 return it ORed with ctrl_modifier.
24178
241792008-01-29 Miles Bader <miles@gnu.org>
24180
24181 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24182
241832008-01-28 Jason Rumney <jasonr@gnu.org>
24184
24185 * w32.c (stat): Don't double check for networked drive.
24186
241872008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24188
24189 * window.c (run_window_configuration_change_hook): New function.
24190 Code extracted from set_window_buffer. Set the selected frame.
24191 (set_window_buffer): Use it.
24192 * window.h (run_window_configuration_change_hook): Declare.
24193 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24194
24195 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24196
241972008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24198
24199 * Makefile.in: Remove references to unused macros.
24200
242012008-01-26 Eli Zaretskii <eliz@gnu.org>
24202
24203 * w32.c (g_b_init_get_sid_sub_authority)
24204 (g_b_init_get_sid_sub_authority_count): New static variables.
24205 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24206 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24207 (init_user_info): Use them to retrieve uid and gid.
24208 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24209 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24210 st_uid and st_gid of the file.
24211
242122008-01-26 Jason Rumney <jasonr@gnu.org>
24213
24214 * w32.c (logon_network_drive): New function.
24215 (stat): Use it.
24216
242172008-01-26 Chong Yidong <cyd@stupidchicken.com>
24218
24219 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24220 invisible text covered with an ellipsis.
24221
242222008-01-25 Richard Stallman <rms@gnu.org>
24223
24224 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24225 jump back to beginning. Move some other initializations after that.
24226 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24227 New variables.
24228 (syms_of_xdisp): Init them.
24229
24230 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24231
24232 * buffer.c (reset_buffer_local_variables):
24233 Implement `permanent-local-hook'.
24234 (Qpermanent_local_hook): New variable.
24235 (syms_of_buffer): Init and staticpro it.
24236
242372008-01-25 Michael Albinus <michael.albinus@gmx.de>
24238
24239 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24240
242412008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24242
24243 * fns.c (Fclrhash): Return TABLE.
24244
242452008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24246
24247 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24248 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24249 is set even without positional changes.
24250 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24251
24252 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24253
242542008-01-23 Jason Rumney <jasonr@gnu.org>
24255
24256 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24257
24258 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24259 the unicode range available in MULE by locale-coding-system.
24260 Improve dbcs lead byte detection. Set event timestamp and modifiers
24261 earlier.
24262
242632008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24264
24265 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24266 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24267 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24268 when used on child processes.
24269
242702008-01-21 Michael Albinus <michael.albinus@gmx.de>
24271
24272 * dbusbind.c (Fdbus_method_return_internal): Rename from
24273 Fdbus_method_return.
24274 (Fdbus_unregister_object): Move to dbus.el.
24275 (Fdbus_call_method, Fdbus_method_return_internal)
24276 (Fdbus_send_signal): Improve debug messages.
24277
242782008-01-20 Martin Rudalics <rudalics@gmx.at>
24279
24280 * undo.c (undo_inhibit_record_point): New variable.
24281 (syms_of_undo): Initialize it.
24282 (record_point): Don't record point when undo_inhibit_record_point
24283 is set.
24284
242852008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24286
24287 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24288
24289 * xdisp.c (Qauto_hscroll_mode): New var.
24290 (syms_of_xdisp): Initialize it.
24291 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24292 window's buffer.
24293 (hscroll_windows): Don't check automatic_hscrolling_p here.
24294
24295 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24296 vscroll if we're setting window-buffer to the value it already has.
24297
242982008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24299
24300 * m/intel386.h: Remove references to XENIX.
24301
243022008-01-17 Andreas Schwab <schwab@suse.de>
24303
24304 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24305 instead of HAVE_X86_64_LIB64_DIR.
24306 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24307
243082008-01-17 Glenn Morris <rgm@gnu.org>
24309
24310 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24311 to HAVE_X86_64_LIB64_DIR.
24312
243132008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24314
24315 * s/irix3-3.h:
24316 * s/irix4-0.h:
24317 * s/386-ix.h:
24318 * s/domain.h:
24319 * s/hpux9-x11r4.h:
24320 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24321
24322 * sysdep.c: Remove code containing references to symbols defined
24323 by unsupported systems.
24324
243252008-01-16 Glenn Morris <rgm@gnu.org>
24326
24327 * coding.c (select-safe-coding-system-function): Doc fix.
24328
243292008-01-15 Glenn Morris <rgm@gnu.org>
24330
24331 * config.in: Revert 2008-01-13 change: this is a generated file.
24332
243332008-01-13 Tom Tromey <tromey@redhat.com>
24334
24335 * lisp.h: Fix typo.
24336
243372008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24338
24339 * m/sequent-ptx.h:
24340 * m/sequent.h:
24341 * s/ptx.h:
24342 * s/ptx4-2.h:
24343 * s/ptx4.h: Remove files for systems no longer supported.
24344
24345 * callproc.c (Fcall_process): Fix previous change.
24346
243472008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24348
24349 * unexsunos4.c: Remove file, system not supported anymore.
24350
24351 * m/mips.h:
24352 * m/intel386.h:
24353 * callproc.c:
24354 * config.in:
24355 * ecrt0.c:
24356 * emacs.c:
24357 * fileio.c:
24358 * frame.c:
24359 * getpagesize.h:
24360 * keyboard.c:
24361 * lread.c:
24362 * process.c:
24363 * puresize.h:
24364 * sysdep.c:
24365 * systty.h:
24366 * syswait.h:
24367 * unexec.c:
24368 * xdisp.c:
24369 * alloc.c: Remove code containing references to symbols defined by
24370 unsupported systems.
24371
243722008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24373
24374 * coding.c (detect_coding_mask): Fix previous change.
24375
243762008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24377
24378 * coding.c (detect_coding_iso2022): New arg
24379 latin_extra_code_state. Allow Latin extra codes only
24380 when *latin_extra_code_state is nonzero.
24381 (detect_coding_mask): If there is a NULL byte, detect the encoding
24382 as UTF-16 or binary. If Latin extra codes exist, detect the
24383 encoding as ISO-2022 only when there's no other proper encoding is
24384 found.
24385
243862008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24387
24388 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24389 #ifdef MAC_OS.
24390
243912008-01-08 Richard Stallman <rms@gnu.org>
24392
24393 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24394
243952008-01-06 Nick Roberts <nickrob@snap.net.nz>
24396
24397 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24398 menu bar in parentheses.
24399
244002008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24401
24402 * m/7300.h:
24403 * m/acorn.h:
24404 * m/alliant-2800.h:
24405 * m/alliant.h:
24406 * m/alliant1.h:
24407 * m/alliant4.h:
24408 * m/altos.h:
24409 * m/amdahl.h:
24410 * m/apollo.h:
24411 * m/att3b.h:
24412 * m/aviion-intel.h:
24413 * m/aviion.h:
24414 * m/celerity.h:
24415 * m/clipper.h:
24416 * m/cnvrgnt.h:
24417 * m/convex.h:
24418 * m/cydra5.h:
24419 * m/delta88k.h:
24420 * m/dpx2.h:
24421 * m/dual.h:
24422 * m/elxsi.h:
24423 * m/f301.h:
24424 * m/gould-np1.h:
24425 * m/gould.h:
24426 * m/i860.h:
24427 * m/ibmps2-aix.h:
24428 * m/ibmrt-aix.h:
24429 * m/ibmrt.h:
24430 * m/irist.h:
24431 * m/is386.h:
24432 * m/isi-ov.h:
24433 * m/mega68.h:
24434 * m/mg1.h:
24435 * m/news-r6.h:
24436 * m/news-risc.h:
24437 * m/news.h:
24438 * m/nh3000.h:
24439 * m/nh4000.h:
24440 * m/ns16000.h:
24441 * m/ns32000.h:
24442 * m/nu.h:
24443 * m/orion.h:
24444 * m/orion105.h:
24445 * m/paragon.h:
24446 * m/pfa50.h:
24447 * m/plexus.h:
24448 * m/pyramid.h:
24449 * m/pyrmips.h:
24450 * m/sh3el.h:
24451 * m/sps7.h:
24452 * m/sr2k.h:
24453 * m/stride.h:
24454 * m/sun1.h:
24455 * m/sun2.h:
24456 * m/sun3-68881.h:
24457 * m/sun3-fpa.h:
24458 * m/sun3-soft.h:
24459 * m/sun3.h:
24460 * m/sun386.h:
24461 * m/symmetry.h:
24462 * m/tad68k.h:
24463 * m/tahoe.h:
24464 * m/targon31.h:
24465 * m/tek4300.h:
24466 * m/tekxd88.h:
24467 * m/tower32.h:
24468 * m/tower32v3.h:
24469 * m/ustation.h:
24470 * m/wicat.h:
24471 * m/xps100.h:
24472 * s/cxux.h:
24473 * s/cxux7.h:
24474 * s/dgux.h:
24475 * s/dgux4.h:
24476 * s/dgux5-4-3.h:
24477 * s/dgux5-4r2.h:
24478 * s/esix.h:
24479 * s/esix5r4.h:
24480 * s/hiuxmpp.h:
24481 * s/hiuxwe2.h:
24482 * s/iris3-5.h:
24483 * s/iris3-6.h:
24484 * s/isc2-2.h:
24485 * s/isc3-0.h:
24486 * s/isc4-0.h:
24487 * s/isc4-1.h:
24488 * s/newsos5.h:
24489 * s/newsos6.h:
24490 * s/osf1.h:
24491 * s/osf5-0.h:
24492 * s/riscix1-1.h:
24493 * s/riscix12.h:
24494 * s/sco4.h:
24495 * s/sco5.h:
24496 * s/sunos4-0.h:
24497 * s/sunos4-1.h:
24498 * s/sunos413.h:
24499 * s/sunos4shr.h:
24500 * s/umax.h:
24501 * s/unipl5-2.h:
24502 * s/xenix.h:
24503 * cxux-crt0.s:
24504 * unexapollo.c:
24505 * unexconvex.c:
24506 * unexenix.c:
24507 * unexsni.c: Remove files for systems no longer supported.
24508
24509 * m/intel386.h: Remove references to unsupported systems.
24510
24511 * w32.c (get_emacs_configuration): Remove reference to i860.
24512
24513 * sysdep.c: Remove dead code.
24514
245152008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24516
24517 * s/rtu.h:
24518 * m/masscomp.h: Remove files. Platform is obsolete.
24519
245202008-01-04 Michael Albinus <michael.albinus@gmx.de>
24521
24522 * dbusbind.c (Fdbus_method_return): New function.
24523 (xd_read_message): Add the serial number to the event.
24524 (Fdbus_register_method): Activate the function.
24525
245262008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24527
24528 * keyboard.c (read_key_sequence): Fix typo.
24529
245302008-01-03 Michael Albinus <michael.albinus@gmx.de>
24531
24532 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24533 (xd_signature, xd_append_arg): Handle element type detection for
24534 empty arrays.
24535 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24536 SDATA () calls; this must be solved more general.
24537 (Fdbus_register_signal): Use SBYTES instead of strlen.
24538
245392008-01-03 Magnus Henoch <magnus@zemdatav>
24540
24541 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24542 unsigned int for byte values (necessary for big-endian platform).
24543 (Fdbus_call_method): Handle the case of no returned arguments.
24544
245452007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24546
24547 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24548
245492007-12-31 Magnus Henoch <mange@freemail.hu>
24550
24551 * dbusbind.c (xd_signature): Signature of variant is just "v".
24552
245532007-12-30 Michael Albinus <michael.albinus@gmx.de>
24554
24555 * dbusbind.c: Fix several errors and compiler warnings.
24556 Reported by Tom Tromey <tromey@redhat.com>.
24557 (XD_ERROR, XD_DEBUG_MESSAGE)
24558 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24559 (xd_append_arg): Part for basic D-Bus types rewritten.
24560 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24561 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24562 appropriate.
24563 (xd_read_message): Return Qnil. Don't signal an error; it is not
24564 useful during event reading.
24565 (Fdbus_register_signal): Signal an error if the check for
24566 FUNCTIONP fails.
24567 (Fdbus_register_method): New function. The implementation is not
24568 complete, the call of the function signals an error therefore.
24569 (Fdbus_unregister_object): New function, renamed from
24570 Fdbus_unregister_signal. The initial check signals an error, if
24571 the object is not well formed.
24572
245732007-12-30 Richard Stallman <rms@gnu.org>
24574
24575 * textprop.c (get_char_property_and_overlay):
24576 Signal error if POSITION is out of range in a buffer.
24577
245782007-12-29 Martin Rudalics <rudalics@gmx.at>
24579
24580 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24581 because the original parameters are in pure storage now.
24582
245832007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24584
24585 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24586
245872007-12-22 Eli Zaretskii <eliz@gnu.org>
24588
24589 * callint.c (syms_of_callint) <command-history>: Add reference to
24590 history-length in the doc string.
24591
245922007-12-17 Jason Rumney <jasonr@gnu.org>
24593
24594 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24595 before passing as wParam.
24596
245972007-12-22 Michael Albinus <michael.albinus@gmx.de>
24598
24599 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24600 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24601 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24602 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24603 as number.
24604 (Fdbus_call_method): Fix docstring.
24605
246062007-12-21 Michael Albinus <michael.albinus@gmx.de>
24607
24608 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24609 New macros.
24610 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24611 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24612 Simplify.
24613 (xd_signature): New function.
24614 (xd_append_arg): Compute also signatures. Major rewrite.
24615 (xd_retrieve_arg): Make debug messages friendly.
24616 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24617 Check for signatures of arguments.
24618
246192007-12-19 Michael Albinus <michael.albinus@gmx.de>
24620
24621 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24622 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24623 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24624 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24625 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24626 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24627 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24628 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24629 (xd_retrieve_value): Remove. Functionality included in ...
24630 (xd_append_arg): New function.
24631 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24632
246332007-12-16 Michael Albinus <michael.albinus@gmx.de>
24634
24635 * dbusbind.c (top): Include <stdio.h>.
24636 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24637 dbus_message_new_method_call and dbus_message_new_signal.
24638 (Fdbus_register_signal): Rename unique_name to uname.
24639 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24640 non-existing unique name. Fix typos in matching rule. Return an
24641 object which is useful in Fdbus_unregister_signal.
24642 (Fdbus_unregister_signal): Reimplementation, in order to remove
24643 only the corresponding entry.
24644 (Vdbus_registered_functions_table): Change the order of entries.
24645 Apply these changes in xd_read_message and Fdbus_register_signal.
24646
246472007-12-16 Andreas Schwab <schwab@suse.de>
24648
24649 * fileio.c (Finsert_file_contents): Fix overflow check to not
24650 depend on undefined integer overflow.
24651
246522007-12-14 Jason Rumney <jasonr@gnu.org>
24653
24654 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24655 for characters above 127.
24656
246572007-12-13 Jason Rumney <jasonr@gnu.org>
24658
24659 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24660 before dereferencing array.
24661 (lookup_vk_code): Remove zero comparison.
24662
246632007-12-14 Michael Albinus <michael.albinus@gmx.de>
24664
24665 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24666 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24667 Use `unsigned int' instead of `uint'.
24668 (xd_read_message, Fdbus_register_signal): Split expressions into
24669 multiple lines before operators "&&" and "||", according to the
24670 GNU Coding Standards.
24671
246722007-12-14 Eli Zaretskii <eliz@gnu.org>
24673
24674 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24675
246762007-12-12 Juri Linkov <juri@jurta.org>
24677
24678 * buffer.c (Frename_buffer): In interactive spec replace
24679 `read-buffer' with `read-string' that uses `buffer-name-history'
24680 as history, and the current buffer's name as default.
24681
246822007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24683
24684 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24685 manipulating the backtrace manually.
24686 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24687 (struct backtrace, backtrace_list): Remove.
24688 (command_loop_1): Remove dead var `no_direct'.
24689
24690 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24691 preserve non-built-in buffer-local variables.
24692 (Fkill_all_local_variables): Don't re-create&re-set permanent
24693 buffer-local variables.
24694
246952007-12-09 Juri Linkov <juri@jurta.org>
24696
24697 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24698 Lisp code that uses `read-buffer' with current buffer as default.
24699
247002007-12-08 Michael Albinus <michael.albinus@gmx.de>
24701
24702 * dbusbind.c (xd_read_message): Generate an event for every
24703 registered handler. There might be several handlers registered
24704 for the same signal.
24705 (Fdbus_register_signal): Don't overwrite a registration for the
24706 same signal. Add a new registration if handlers are different.
24707 (Vdbus_registered_functions_table): Rework doc string.
24708
247092007-12-07 Michael Albinus <michael.albinus@gmx.de>
24710
24711 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24712 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24713 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24714 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24715 Unify argument lists.
24716 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24717 arguments and hash table keys. Use unique name for service.
24718 (Fdbus_unregister_signal): Remove checks.
24719 (Vdbus_registered_functions_table): Fix doc string.
24720
247212007-12-05 Magnus Henoch <mange@freemail.hu>
24722
24723 * process.c (make_process): Initialize pty_flag to 0.
24724
247252007-12-05 Jason Rumney <jasonr@gnu.org>
24726
24727 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24728 specified XBMs.
24729
247302007-12-05 Richard Stallman <rms@gnu.org>
24731
24732 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24733
247342007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24735
24736 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24737 New variable.
24738 (mac_try_close_socket) [MAC_OSX]: New function.
24739 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24740 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24741
24742 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24743 Use mac_try_close_socket.
24744
247452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24746
24747 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24748 reloc_base.
24749 (copy_dysymtab): Compute relocation base here.
24750 (rebase_reloc_address) [__ppc64__]: New function.
24751 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24752 changed.
24753
247542007-12-05 Jason Rumney <jasonr@gnu.org>
24755
24756 * w32proc.c (sys_spawnve): Quote args with wildcards.
24757
247582007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24759
24760 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24761 __objc_* sections.
24762 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24763
247642007-12-05 Michael Albinus <michael.albinus@gmx.de>
24765
24766 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24767 Move check for Vdbus_registered_functions_table to
24768 xd_read_queued_messages.
24769 (xd_read_queued_messages): Protect xd_read_message calls by
24770 internal_condition_case_1.
24771
247722007-12-04 Michael Albinus <michael.albinus@gmx.de>
24773
24774 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24775 Qdbus_system_bus and Qdbus_session_bus, respectively.
24776 (Vdbus_intern_symbols): Remove.
24777 (Vdbus_registered_functions_table): New hash table.
24778 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24779 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24780 Rewrite in order to manage registered functions by hash table
24781 Vdbus_registered_functions_table.
24782
247832007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24784
24785 * xterm.c: Update URL to Window Manager Specification in comment.
24786
247872007-12-02 Michael Albinus <michael.albinus@gmx.de>
24788
24789 * config.in (HAVE_DBUS): Add.
24790
24791 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24792 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24793 (obj): Add $(DBUS_OBJ).
24794 (LIBES): Add $(DBUS_LIBS).
24795 (dbusbind.o): New target.
24796
24797 * dbusbind.c: New file.
24798
24799 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24800
24801 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24802 (Qdbus_event): New Lisp symbol.
24803 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24804 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24805 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24806
24807 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24808
248092007-12-01 Richard Stallman <rms@gnu.org>
24810
24811 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24812
248132007-11-30 Jason Rumney <jasonr@gnu.org>
24814
24815 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24816 (w32con_reset_terminal_modes): Clear screen buffer.
24817 (w32_face_attributes): Don't use color indexes that are out of range.
24818 Only reverse the default colors.
24819
24820 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24821 WINDOWSNT.
24822
24823 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24824
248252007-11-29 Jason Rumney <jasonr@gnu.org>
24826
24827 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24828 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24829 if the terminal colors are initialized.
24830 (unspecified_fg, unspecified_bg): Remove unused declarations.
24831
248322007-11-29 Andreas Schwab <schwab@suse.de>
24833
24834 * keyboard.c (apply_modifiers): Fix typo.
24835
248362007-11-29 Richard Stallman <rms@gnu.org>
24837
24838 * keymap.c (Fcurrent_local_map): Doc fix.
24839
248402007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24841
24842 * s/gnu-kfreebsd.h: New file.
24843
248442007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24845
24846 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24847 Don't cast redundantly.
24848
24849 * keyboard.c (KEY_TO_CHAR): New macro.
24850 (parse_modifiers, apply_modifiers): Accept integer arguments.
24851 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24852 for chars and symbol keys.
24853 After doing such remapping, apply function-key-map again.
24854
248552007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24856
24857 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24858 compiled anymore.
24859
248602007-11-26 Andreas Schwab <schwab@suse.de>
24861
24862 * process.c (list_processes_1): Fix indentation level of the
24863 command column.
24864
248652007-11-23 Andreas Schwab <schwab@suse.de>
24866
24867 * editfns.c (Fformat): Handle %c specially since it requires the
24868 argument to be of type int.
24869
248702007-11-23 Markus Triska <markus.triska@gmx.at>
24871
24872 * emacs.c (main): Call init_editfns before init_process, since
24873 init_process sets Vprocess_connection_type depending on OS release.
24874
248752007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24876
24877 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24878 (find_symbol_value): Use do_symval_forwarding.
24879
24880 * data.c (set_internal): Set the value in the `cons-cell' (for
24881 Buffer_Local_values) not only for frame-local variables.
24882
248832007-11-22 Andreas Schwab <schwab@suse.de>
24884
24885 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24886 values to sprintf.
24887 * keymap.c (Fsingle_key_description): Likewise.
24888 * print.c (print_object): Likewise.
24889
248902007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24891
24892 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24893 file for image is nil.
24894
248952007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24896
24897 * term.c: Include stdarg.h.
24898 (fatal): Implement using varargs.
24899 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24900
249012007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24902
24903 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24904 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24905 Update call to buffer_slot_type_mismatch.
24906 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24907 (buffer_slot_type_mismatch): Update.
24908 * buffer.c (buffer_local_types): Remove.
24909 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24910 (defvar_per_buffer): Set the type in the buffer_objfwd.
24911
249122007-11-21 Jason Rumney <jasonr@gnu.org>
24913
24914 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24915 CreateFileMapping returns NULL on failure.
24916
249172007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24918
24919 * search.c (Fset_match_data): Remove the `evaporate' feature.
24920 (unwind_set_match_data): Don't use the `evaporate' feature.
24921
249222007-11-21 Jason Rumney <jasonr@gnu.org>
24923
24924 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24925
24926 * w32console.c (w32con_write_glyphs): Remove unused variables.
24927
249282007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24929
24930 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24931
24932 * s/darwin.h (MULTI_KBOARD): Remove.
24933
24934 * macfns.c (x_create_tip_frame, Fx_create_frame)
24935 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24936
249372007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24938
24939 * buffer.c (Fbuffer_local_value): Remove redundant test.
24940 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24941 than in `current-buffer' to match the comment.
24942 Do the swap using swap_in_global_binding.
24943
24944 * data.c (store_symval_forwarding, set_internal):
24945 * eval.c (specbind): Remove dead code.
24946
24947 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24948 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24949 Since we do not want to see internal Lisp_*fwd objects here.
24950
249512007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24952
24953 * sysdep.c (init_system_name): Use getaddrinfo if available.
24954
24955 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24956 (x_scroll_bar_note_movement): start, end, with, height in struct
24957 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24958
249592007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24960
24961 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24962
249632007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24964
24965 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24966 This undoes Richard's change of 14-Oct-2002.
24967
24968 * alloc.c (allocate_other_vector):
24969 * lisp.h (allocate_other_vector): Remove.
24970
24971 * window.c (struct save_window_data): Move non-lisp data to the end
24972 and make it `int' rather than Lisp_Object.
24973 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24974 Done wrap/unwrap integer values.
24975 (Fset_window_configuration, compare_window_configurations):
24976 Update use of fields to their new types.
24977
24978 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24979 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24980 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24981 (SET_SCROLL_BAR_X_WINDOW): Remove.
24982 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24983 Access the new x_window field directly.
24984 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24985 Don't wrap/unwrap integers into Lisp_Objects.
24986 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24987 (x_scroll_bar_report_motion):
24988 Don't wrap/unwrap integers into Lisp_Objects.
24989 (x_term_init): Use SDATA.
24990 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24991 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24992 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24993 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24994 * xfns.c (x_set_background_color):
24995 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24996 Access the new x_window field directly.
24997
24998 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24999 (allocate_pseudovector): Make non-static.
25000
25001 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25002 (allocate_pseudovector): Declare.
25003 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25004
250052007-11-15 Andreas Schwab <schwab@suse.de>
25006
25007 * editfns.c (Fformat): Correctly format EMACS_INT values.
25008 Also take precision into account when formatting an integer.
25009
25010 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25011
250122007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25013
25014 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25015 (syms_of_keyboard): Defsubr it.
25016
25017 * data.c (swap_in_global_binding): Fix longstanding bug where
25018 store_symval_forwarding was not called with the right second argument,
25019 thus causing objfwd-ing from being dropped.
25020
250212007-11-14 Juanma Barranquero <lekktu@gmail.com>
25022
25023 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25024 (Fx_display_pixel_height, Fx_display_planes)
25025 (Fx_display_color_cells, Fx_server_max_request_size)
25026 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25027 (Fx_display_visual_class, Fx_display_save_under):
25028 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25029 (Fx_display_pixel_height, Fx_display_planes)
25030 (Fx_display_color_cells, Fx_server_max_request_size)
25031 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25032 (Fx_display_mm_height, Fx_display_mm_width)
25033 (Fx_display_backing_store, Fx_display_visual_class)
25034 (Fw32_select_font, Fx_display_save_under):
25035 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25036 (Fx_display_pixel_height, Fx_display_planes)
25037 (Fx_display_color_cells, Fx_server_max_request_size)
25038 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25039 (Fx_display_save_under): Fix typos in docstrings.
25040
250412007-11-14 Juanma Barranquero <lekktu@gmail.com>
25042
25043 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25044 corresponding to deleted entries; they are an implementation detail.
25045 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25046 Remove variables.
25047 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25048 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25049 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25050 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25051 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25052 (Fw32_define_rgb_color, Fw32_load_color_file)
25053 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25054 Fix typos in docstrings.
25055 (Fx_server_version): Reflow docstring.
25056 (Fw32_shell_execute): Doc fixes.
25057
250582007-11-13 Juanma Barranquero <lekktu@gmail.com>
25059
25060 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25061 if w32_parse_hot_key returned nil.
25062
250632007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25064
25065 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25066
250672007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 25068
aac0c6e3
MR
25069 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25070
25071 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25072
25073 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25074 Remove W32_SCROLL_BAR_CLICK_EVENT.
25075
25076 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25077 Add MULTIMEDIA_KEY_EVENT.
25078
25079 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25080 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25081 (make_lispy_event) [WINDOWSNT]: Use it to translate
25082 MULTIMEDIA_KEY_EVENT.
25083
25084 * w32term.h (WM_APPCOMMAND): Define if not already.
25085 (GET_APPCOMMAND_LPARAM): Likewise.
25086
25087 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25088 WM_APPCOMMAND.
25089
25090 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25091 (syms_of_w32fns): Export and initialize it.
25092 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25093
250942007-11-09 Chong Yidong <cyd@stupidchicken.com>
25095
25096 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25097 twice.
25098
25099 * xdisp.c (handle_face_prop): Fix last change.
25100
251012007-11-09 Richard Stallman <rms@gnu.org>
25102
25103 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25104 not just for after-strings and before-strings.
25105 Call face_for_overlay_string and pass the overlay to it.
25106 (handle_display_prop): Determine whether property came from an overlay.
25107 Pass OVERLAY arg to handle_single_display_spec.
25108 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25109 (load_overlay_strings): Fill in it->string_overlays.
25110 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25111
25112 * xfaces.c (face_for_overlay_string): Function renamed from
25113 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25114
25115 * dispextern.h (struct it): New elt string_overlays.
25116 New elt from_overlay, also in stack.
25117 Rearrange a few elements.
25118 (face_for_overlay_string): Decl renamed from
25119 face_at_buffer_position_no_overlays, and add argument.
25120
251212007-11-09 Richard Stallman <rms@gnu.org>
25122
25123 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25124 to get the base face for an overlay string.
25125
25126 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25127
25128 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25129
25130 * xdisp.c (handle_stop): Move some code out of loop.
25131
251322007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25133
25134 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25135 Fix conversion from Lisp object to ATSUFontID.
25136
251372007-11-09 Jason Rumney <jasonr@gnu.org>
25138
25139 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25140
251412007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25142
25143 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25144 Don't assume regions are aligned to page boundary.
25145 (print_load_command_name): Add LC_UUID if defined.
25146
251472007-11-09 Richard Stallman <rms@gnu.org>
25148
25149 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25150
251512007-11-07 Jason Rumney <jasonr@gnu.org>
25152
25153 * s/windows95.h: Remove.
25154
251552007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25156
25157 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25158 abort with a message on unhandled store_type values.
25159
251602007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25161
25162 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25163 Remove HAVE_X11R5 and HAVE_X11R4.
25164
251652007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25166
25167 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25168
251692007-11-01 Johan Bockgård <bojohan@gnu.org>
25170
25171 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25172 Don't set s->stippled_p here, since it has already been set by
25173 x_set_glyph_string_gc from x_draw_glyph_string.
25174
251752007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25176
25177 * sunfns.c: Remove file.
25178
25179 * m/sun386.h:
25180 * m/sun2.h:
25181 * m/sparc.h: Remove Sun windows code.
25182
251832007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25184
25185 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25186 (init_keyboard): Set current_kboard's window-system to nil.
25187 (tty_read_avail_input): Typo.
25188 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25189
251902007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25191
25192 * s/usg5-4.h:
25193 * s/usg5-3.h:
25194 * s/ptx.h:
25195 * m/is386.h:
25196 * m/ibmps2-aix.h:
25197 * Makefile.in: Remove all mentions of X10.
25198
25199 * dispnew.c (syms_of_display): Don't mention version 10.
25200
252012007-10-28 Juanma Barranquero <lekktu@gmail.com>
25202
25203 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25204 ($(BLD)/abbrev.$(O)): Remove.
25205
252062007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25207
25208 Rewrite abbrev.c in Elisp.
25209 * image.c (Qcount): Don't declare as extern.
25210 (syms_of_image): Initialize and staticpro `Qcount'.
25211 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25212 * emacs.c (main): Don't call syms_of_abbrev.
25213 * Makefile.in (obj): Remove abbrev.o.
25214 (abbrev.o): Remove.
25215 * abbrev.c: Remove.
25216
252172007-10-26 Martin Rudalics <rudalics@gmx.at>
25218
25219 * window.c (window_min_size_2): Don't count header-line.
25220
252212007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25222
25223 * frame.h (struct frame): Move all bit fields after the first bit
25224 field to take advantage of the available space. Group all the
25225 chars together to reduce wasted space due to padding.
25226
252272007-10-26 Juanma Barranquero <lekktu@gmail.com>
25228
25229 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25230
25231 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25232 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25233 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25234 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25235 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25236 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25237 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25238 (last_marked, mark_object_loop_halt): Make static.
25239
25240 * frame.c (syms_of_frame) <delete-frame-functions>:
25241 Fix typo in docstring.
25242
252432007-10-25 Juanma Barranquero <lekktu@gmail.com>
25244
25245 * w32.c (init_environment): Fix tiny memory leak.
25246 (w32_get_resource): Remove unused variable `ok'.
25247
252482007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25249
25250 Make `window-system' into a keyboard-local variable (rather than
25251 frame-local as done originally by multi-tty).
25252
25253 * keyboard.h (struct kboard): Add Vwindow_system.
25254 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25255 (mark_kboards): Mark Vwindow_system.
25256
25257 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25258 (init_display): Don't set the obsolete `window-system' frame-param.
25259
25260 * xterm.c (x_term_init):
25261 * w32term.c (w32_create_terminal):
25262 * term.c (init_tty): Set Vwindow_system.
25263 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25264 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25265
25266 * xfns.c (Fx_create_frame, x_create_tip_frame):
25267 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25268 * macfns.c (Fx_create_frame):
25269 Don't set the obsolete `window-system' frame-param.
25270
25271 * frame.h (Qwindow_system): Remove.
25272 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25273 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25274
252752007-10-24 Richard Stallman <rms@gnu.org>
25276
25277 * frame.c (x_figure_window_size): For fullscreen case,
25278 set USPosition | PPosition without clobbering rest of window_prompting.
25279
25280 * keyboard.c (Fcurrent_idle_time): Doc fix.
25281
25282 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25283
252842007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25285
25286 * process.c (unwind_request_sigio): Only define if __ultrix__.
25287
25288 * callproc.c (child_setup): Remove spurious *.
25289
25290 * lisp.h (Fget_text_property): Declare.
25291 (have_menus_p): Declare it here rather than in sys-dep header files.
25292 * macterm.h (have_menus_p):
25293 * msdos.h (have_menus_p):
25294 * xterm.h (have_menus_p): Remove.
25295
25296 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25297 (Fmake_variable_frame_local): Just check the variable's const-ness
25298 rather than checking nil or t.
25299
253002007-10-22 Jason Rumney <jasonr@gnu.org>
25301
25302 * w32fns.c: Include math.h.
25303 (w32_abort): Declaration moved to nt/config.nt.
25304
25305 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25306 (abort): Redefinition moved to nt/config.nt.
25307
25308 * m/windowsnt.h: Remove.
25309
253102007-10-22 Juanma Barranquero <lekktu@gmail.com>
25311
25312 * emacs.c (Fdump_emacs): Fix typo in message.
25313 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25314 <installation-directory>: Reflow docstring.
25315
253162007-10-22 Juri Linkov <juri@jurta.org>
25317
25318 * minibuf.c: Allow minibuffer default to be a list of default values.
25319 With empty input use the first element of this list as returned default.
25320 (string_to_object)
25321 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25322 (read_minibuf): If defalt is cons, set histstring to its car.
25323 (Fread_string): If default_value is cons, set val to its car.
25324 (Fread_buffer): If def is cons, use its car.
25325 (Fcompleting_read): If defalt is cons, set val to its car.
25326
253272007-10-21 Michael Albinus <michael.albinus@gmx.de>
25328
25329 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25330
253312007-10-20 Juanma Barranquero <lekktu@gmail.com>
25332
25333 * doc.c (Fdocumentation): Check for advice in all cases.
25334
253352007-10-19 Chong Yidong <cyd@stupidchicken.com>
25336
25337 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25338
253392007-10-19 Richard Stallman <rms@gnu.org>
25340
25341 * doc.c (Fdocumentation): Check for and handle an advised function.
25342
253432007-10-19 Juanma Barranquero <lekktu@gmail.com>
25344
25345 * process.c (Fset_process_filter): Doc fix.
25346
253472007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25348
25349 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25350 which caused key-translation-map to applied repeatedly (thus breaking
25351 double-mode).
25352
253532007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25354
25355 * xselect.c (x_own_selection, x_handle_selection_clear)
25356 (x_clear_frame_selections):
25357 * w32menu.c (list_of_panes, list_of_items):
25358 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25359 * textprop.c (validate_plist, interval_has_all_properties)
25360 (interval_has_some_properties, interval_has_some_properties_list)
25361 (add_properties, text_property_list):
25362 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25363 * minibuf.c (Fassoc_string):
25364 * macselect.c (x_own_selection, x_clear_frame_selections)
25365 (Fx_disown_selection_internal):
25366 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25367 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25368
253692007-10-17 Chong Yidong <cyd@stupidchicken.com>
25370
25371 * process.c: Link to libs for calling res_init() if available.
25372 (Fmake_network_process): Call res_init() before getaddrinfo or
25373 gethostbyname, if possible.
25374
253752007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25376
25377 * lread.c (read1): Set pvectype for char_tables.
25378
25379 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25380 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25381 Add type checks.
25382 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25383
25384 * alloc.c (free_misc): Use XMISCTYPE.
25385 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25386
253872007-10-17 Glenn Morris <rgm@gnu.org>
25388
25389 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25390 (syms_of_minibuf): Add Qcompletion_ignore_case.
25391 * dired.c (Qcompletion_ignore_case): Change to external.
25392 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25393 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25394 (Fread_file_name): Use it rather than intern'ing.
25395
25396 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25397 (Fread_coding_system): Ignore case of user input.
25398
253992007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25400
25401 * xdisp.c (handle_display_prop): Ignore display specs after
25402 replacing one when string text is being replaced.
25403 (handle_single_display_spec): Pretend as if characters with display
25404 property haven't been consumed only when buffer text is being replaced.
25405
254062007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25407
25408 * xfns.c (Fx_create_frame, Fx_display_list):
25409 * window.c (window_fixed_size_p, enlarge_window)
25410 (shrink_window_lowest_first):
25411 * macterm.c (init_font_name_table):
25412 * macfns.c (Fx_create_frame, Fx_display_list):
25413 * lread.c (close_load_descs):
25414 * keyboard.c (read_char_x_menu_prompt):
25415 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25416 * coding.c (code_convert_region_unwind): Test the type of an object
25417 rather than just !NILP before extracting data from it.
25418
25419 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25420
25421 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25422 (XMISCANY): New macro.
25423 (XMISCTYPE): Use it.
25424 (struct Lisp_Misc_Any): New type.
25425 (union Lisp_Misc): Use it.
25426 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25427 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25428 (find_symbol_value, set_internal, default_value, Fset_default)
25429 (Fmake_variable_buffer_local, Fmake_local_variable)
25430 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25431 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25432 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25433 * alloc.c (allocate_buffer): Set the size and tag.
25434 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25435 Use XMISCANY.
25436 (die): Follow the GNU convention for error messages.
25437 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25438 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25439 tag any more.
25440 (set_buffer_internal_1):
25441 * frame.c (store_frame_param):
25442 * eval.c (specbind):
25443 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25444
25445 * doc.c (Fsnarf_documentation): Simplify.
25446
254472007-10-14 Juanma Barranquero <lekktu@gmail.com>
25448
25449 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25450 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25451
254522007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25453
25454 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25455
254562007-10-14 Juanma Barranquero <lekktu@gmail.com>
25457
25458 * eval.c (do_autoload): Don't save autoloads.
25459
25460 * data.c (Ffset): Save autoload of the function being set.
25461
254622007-10-07 John Paul Wallington <jpw@pobox.com>
25463
25464 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25465 parameter before setting up faces.
25466
254672007-10-13 Eli Zaretskii <eliz@gnu.org>
25468
25469 * ccl.c (Fregister_code_conversion_map):
25470 * keyboard.c (append_tool_bar_item): Reformat last change.
25471
25472 * lisp.h (eabs): Rename from `abs'. All callers changed.
25473
254742007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25475
25476 * buffer.c (add_overlay_mod_hooklist):
25477 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25478 * fontset.c (make_fontset):
25479 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25480 (append_tool_bar_item):
25481 * macmenu.c (grow_menu_items):
25482 * w32menu.c (grow_menu_items):
25483 * xmenu.c (grow_menu_items): Use larger_vector.
25484
254852007-10-13 Eli Zaretskii <eliz@gnu.org>
25486
25487 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25488 selected frame'' on MSDOS).
25489
254902007-10-12 Martin Rudalics <rudalics@gmx.at>
25491
25492 * frame.c (Qexplicit_name): New variable.
25493 (x_report_frame_params): Report it in parameter alist.
25494 (syms_of_frame): Intern and staticpro it.
25495
254962007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25497
25498 * macfns.c (x_create_tip_frame): Set terminal for frame.
25499
255002007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25501
25502 * frame.c (Qenvironment): Remove.
25503 (syms_of_frame) <Qenvironment>: Don't initialize.
25504 (Fdelete_frame): Don't treat the `environment' param specially.
25505 * frame.h (Qenvironment): Don't declare.
25506 * callproc.c (set_initial_environment): Don't set unused frame param.
25507
25508 * frame.c (Fframe_with_environment): Remove.
25509 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25510
25511 * lisp.h (Fframe_with_environment): Don't declare.
25512
255132007-10-10 Juanma Barranquero <lekktu@gmail.com>
25514
25515 * indent.c (indent_tabs_mode, last_known_column)
25516 (last_known_column_modified): Make static.
25517 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25518
255192007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25520
25521 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25522
255232007-10-09 Jason Rumney <jasonr@gnu.org>
25524
25525 * w32term.c (x_set_window_size): Disable code that attempts to tell
25526 Lisp code about a size change before it actually happens.
25527
255282007-10-09 Richard Stallman <rms@gnu.org>
25529
25530 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25531 return HANDLED_RETURN.
25532
255332007-10-08 Martin Rudalics <rudalics@gmx.at>
25534
25535 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25536 when there's an unread command event.
25537
25538 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25539 window autoselection act appropriately when leaving selected frame.
25540 (syms_of_frame): Initialize focus_follows_mouse.
25541 * frame.h (focus_follows_mouse): Extern it.
25542 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25543 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25544 * msdos.c (dos_rawgetc): Likewise.
25545 * w32term.c (w32_read_socket): Likewise.
25546 * xterm.c (handle_one_xevent): Likewise.
25547 * xdisp.c (syms_of_xdisp): In doc-string of
25548 mouse-autoselect-window mention focus-follows-mouse.
25549
255502007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25551
25552 * macterm.c (mac_load_query_font): Fix missing return value.
25553 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25554 Add BLOCK_INPUT.
25555
255562007-10-08 Richard Stallman <rms@gnu.org>
25557
25558 * xdisp.c (get_window_cursor_type): Implement documented behavior
25559 for cursor-in-non-selected-windows = t.
25560
255612007-10-08 Jason Rumney <jasonr@gnu.org>
25562
25563 * w32.c (w32_get_resource): Always close registry keys.
25564
255652007-10-08 Jason Rumney <jasonr@gnu.org>
25566
25567 * makefile.w32-in (LIBS): Add COMCTL32.
25568
25569 * w32fns.c (globals_of_w32fns): Init common controls.
25570
255712007-10-08 Richard Stallman <rms@gnu.org>
25572
25573 * image.c (our_memory_buffer): Rename from omfib_buffer.
25574
255752007-10-08 Richard Stallman <rms@gnu.org>
25576
25577 * buffer.c (Foverlays_at): Doc fix.
25578
255792007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25580
25581 * fns.c (Fplist_put): Preserve uneven tail data.
25582
255832007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25584
25585 * termhooks.h (enum event_kind): Remove trailing comma.
25586
25587 * frame.h (enum): Remove trailing comma.
25588
255892007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25590
25591 * w32proc.c (delete_child): Don't terminate threads of zombies.
25592
255932007-10-08 Martin Rudalics <rudalics@gmx.at>
25594
25595 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25596
25597 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25598 last-repeatable-command.
25599 (init_kboard): Initialize Vlast_repeatable_command.
25600 (command_loop_1): Set it to real_this_command unless that was
25601 bound to an input event.
25602 (mark_kboards): Mark it.
25603
256042007-10-08 Richard Stallman <rms@gnu.org>
25605
25606 * eval.c (condition-case): Doc fix.
25607
256082007-10-08 Masatake YAMATO <jet@gyve.org>
25609
25610 * xfaces.c (tty_supports_face_attributes_p): Fix code
25611 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25612 was copied and not edited.
25613
256142007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25615
25616 Add new `input-decode-map' keymap and use it for terminal
25617 escape sequences.
25618 * keyboard.h (struct kboard): Add Vinput_decode_map.
25619 Remove Vlocal_key_translation_map.
25620 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25621 (init_kboard): Init input-decode-map.
25622 Replace local-key-translation-map back with key-translation-map.
25623 (syms_of_keyboard): Declare input-decode-map.
25624 Remove local-key-translation-map. Update docstrings.
25625 (mark_kboards): Mark Vinput_decode_map.
25626 Don't mark Vlocal_key_translation_map.
25627 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25628 Replace local-key-translation-map back with key-translation-map.
25629 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25630 Bind in input-decode-map rather than function-key-map.
25631
25632 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25633 This was made redundant by the previous introduction of XSETPVECTYPE.
25634
256352007-10-09 Richard Stallman <rms@gnu.org>
25636
25637 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25638
256392007-09-29 Richard Stallman <rms@gnu.org>
25640
25641 * eval.c (internal_condition_case_2, internal_condition_case_1)
25642 (internal_condition_case): Reenable abort if x_catching_errors ()
25643 to see if that really happens and why.
25644
256452007-10-06 Andreas Schwab <schwab@suse.de>
25646
25647 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25648
256492007-10-04 Juanma Barranquero <lekktu@gmail.com>
25650
25651 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25652
256532007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25654
25655 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25656
256572007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25658
25659 * window.h (struct window):
25660 * window.c (struct save_window_data, struct saved_window):
25661 * termhooks.h (struct terminal):
25662 * process.h (struct Lisp_Process):
25663 * frame.h (struct frame):
25664 * buffer.h (struct buffer):
25665 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25666 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25667 The size field of (pseudo)vectors is now unsigned.
25668 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25669
25670 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25671 Turn `count' into an integer.
25672
25673 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25674 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25675 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25676 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25677 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25678
25679 * alloc.c (allocate_pseudovector): New fun.
25680 (ALLOCATE_PSEUDOVECTOR): New macro.
25681 (allocate_window, allocate_terminal, allocate_frame)
25682 (allocate_process): Use it.
25683 (mark_vectorlike): New function.
25684 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25685 (mark_terminals): Use it.
25686 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25687 (Fmake_byte_code): Use XSETPVECTYPE.
25688
25689 * frame.c (Fframe_parameters): Minor simplification.
25690
25691 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25692
25693 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25694
25695 * buffer.c (Fget_buffer_create, init_buffer_once):
25696 * lread.c (defsubr):
25697 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25698
25699 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25700 defined differently in the m/*.h files.
25701 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25702 (XSETPVECTYPE): New macro.
25703 (XSETPSEUDOVECTOR): Use it.
25704
25705 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25706 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25707
25708 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25709 * lread.c (defvar_per_buffer):
25710 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25711
25712 * window.c (candidate_window_p): Only consider as visible frames that
25713 are on the same terminal.
25714
25715 * m/ibms390x.h (MARKBIT): Remove unused macro.
25716
257172007-10-01 Juanma Barranquero <lekktu@gmail.com>
25718
25719 * lread.c (Fload): Fix typo in docstring.
25720
257212007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25722
25723 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25724 of a non-zero value can't yield zero.
25725
257262007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25727
25728 * term.c (term_clear_mouse_face, term_mouse_highlight)
25729 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25730
25731 * print.c (safe_debug_print): Use XHASH.
25732
25733 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25734 Lisp elements such as tags.
25735 (XHASH): New macro.
25736 (EQ): Use it.
25737 (SREF, SSET, STRING_COPYIN): Use SDATA.
25738 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25739
25740 * alloc.c (mark_terminal): Remove left-over declaration.
25741 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25742 (allocate_vectorlike): Remove type argument. Adjust callers.
25743 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25744 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25745
25746 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25747 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25748 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25749 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25750 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25751 Use them.
25752
25753 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25754 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25755 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25756
257572007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25758
25759 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25760 loaded by default.
25761
257622007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25763
25764 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25765 on this tty.
25766 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25767
25768 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25769 Update all users.
25770 (handle_one_term_event): Use Gpm_DrawPointer.
25771 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25772 Signal errors instead of returning nil. Always return nil.
25773 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25774 Make it a noop if gpm-mouse was not activated.
25775 (syms_of_term): Update names.
25776
257772007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25778
25779 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25780 (init_sys_modes): Check that gpm_tty is the current tty.
25781
25782 * alloc.c (allocate_terminal): Set the vector size to only count the
25783 lisp fields. Initialize those to nil.
25784 (mark_object): Don't treat terminals specially.
25785 (mark_terminal): Remove.
25786 (mark_terminals): Use mark_object instead.
25787
25788 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25789 the GC to the beginning.
25790
25791 * indent.h:
25792 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25793
25794 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25795
257962007-09-25 Jason Rumney <jasonr@gnu.org>
25797
25798 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25799
25800 * w32console.c (create_w32cons_output): Remove.
25801
25802 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25803
25804 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25805 (reset_sys_modes): Use reset_terminal_modes_hook.
25806
258072007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25808
25809 * eval.c (do_autoload): Don't output any message.
25810
258112007-09-24 Juri Linkov <juri@jurta.org>
25812
25813 * emacs.c (standard_args): Change priority of "--no-splash"
25814 from 40 to 3. Add "--no-desktop" with the same priority.
25815
258162007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25817
25818 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25819 and optimize the case where they are all 1.
25820
258212007-09-23 Johannes Weiner <hannes@saeurebad.de>
25822
25823 * lisp.h (abs): Define if not defined.
25824 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25825 Don't define `abs', since it's defined in lisp.h.
25826
258272007-09-22 Eli Zaretskii <eliz@gnu.org>
25828
25829 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25830 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25831 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25832 (init_tty): Use DEV_TTY instead of "/dev/tty".
25833 [WINDOWSNT]: No need to protect from NAME arg being null.
25834
258352007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25836
25837 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25838 up the tty state.
25839
258402007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25841
25842 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25843 (gpm_tty): Change its type.
25844 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25845 (gpm_tty): Change its type and initialize it.
25846 (Fterm_open_connection): Check the frame is indeed a tty.
25847 Use the new gpm_tty.
25848 (Fterm_close_connection): Use the new gpm_tty.
25849 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25850 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25851
258522007-09-21 Juanma Barranquero <lekktu@gmail.com>
25853
25854 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25855 underline_color, to draw strike-through.
25856
258572007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25858
25859 * lisp.h (allocate_terminal): Declare.
25860
25861 * window.c (candidate_window_p): Consider frames that are being placed
25862 by the user as somewhere between visible and iconified.
25863 (window_loop): Prefer windows on the current frame.
25864 (Fselect_window): Move the use of select-frame to the beginning so we
25865 can just delegate all the work (it'll call us back anyway).
25866
25867 * frame.c (Qdisplay_environment_variable):
25868 * frame.h (Qdisplay_environment_variable): Delete.
25869
25870 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25871 of the first arg, since that value may be a union.
25872
25873 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25874 parameter rather than Qdisplay_environment_variable. If all else
25875 fails, look for DISPLAY in initial-environment.
25876
258772007-09-21 Glenn Morris <rgm@gnu.org>
25878
25879 * Makefile.in (emacstool): Remove target.
25880 (lisp, shortlisp): Remove termdev.elc.
25881
258822007-09-21 Markus Triska <markus.triska@gmx.at>
25883
25884 * xterm.c (x_delete_display): Compile session management conditionally.
25885
258862007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25887
25888 * callproc.c (getenv_internal_1): New function.
25889 (getenv_internal): Use it.
25890 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25891
25892 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25893 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25894 (Fset_terminal_parameter): Work with dead terminals as well.
25895 (Fmodify_terminal_parameters): Remove.
25896
25897 * terminal.c (get_terminal): Handle terminals.
25898 Make sure the terminal returned is live.
25899 (create_terminal): Use allocate_terminal.
25900 (mark_terminals): Move to alloc.c.
25901 (delete_terminal): Use terminal->name as liveness status.
25902 NULL out fields after freeing their contents.
25903 Don't deallocate the object.
25904 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25905 rather than an int.
25906 (Fterminal_live_p): Accept non-integer arguments.
25907 (Fterminal_list): Return terminal objects rather than an ints.
25908
25909 * alloc.c (enum mem_type): New member for `terminal' objects.
25910 (allocate_terminal): New function.
25911 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25912 Handle terminals.
25913 (mark_terminal): New fun.
25914 (mark_terminals): Move from terminal.c.
25915
25916 * term.c (get_tty_terminal): Don't treat output_initial specially.
25917 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25918 (delete_tty): Use terminal->name as liveness status.
25919
25920 * termhooks.h (struct terminal): Make it into a pseudovector.
25921 Remove `deleted' replaced by checking `name's nullness.
25922
25923 * print.c (print_object): Handle terminals.
25924
25925 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25926 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25927
25928 * frame.c (make_terminal_frame):
25929 * keyboard.c (tty_read_avail_input):
25930 * w32term.c (x_delete_terminal):
25931 * xfns.c (Fx_create_frame, x_create_tip_frame):
25932 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25933
259342007-09-20 Glenn Morris <rgm@gnu.org>
25935
25936 * process.c (Fmake_network_process): Doc fix.
25937
259382007-09-19 Jason Rumney <jasonr@gnu.org>
25939
25940 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25941
259422007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25943
25944 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25945 Fix a C warning regarding variable constness.
25946
25947 * xterm.c (handle_one_xevent): Fix a C warning.
25948
259492007-09-18 Jason Rumney <jasonr@gnu.org>
25950
25951 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25952
259532007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25954
25955 * gtkutil.c (gdpy_def): New variable.
25956 (xg_initialize): Initialize gdpy_def.
25957 (xg_display_close): If no other display exists, set gdpy_def to a
25958 new connection.
25959
259602007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25961
25962 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25963 when we have no file name for the icon.
25964 (xg_tool_bar_expose_callback): Remove.
25965 (xg_create_tool_bar): Don't connect expose signal to
25966 xg_tool_bar_expose_callback.
25967 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25968
259692007-09-16 Andreas Schwab <schwab@suse.de>
25970
25971 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25972 values instead of zapping them.
25973
259742007-09-14 Glenn Morris <rgm@gnu.org>
25975
25976 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25977 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25978 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25979 scope and rename to omfib_buffer for clarity.
25980 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25981
259822007-09-14 Kenichi Handa <handa@m17n.org>
25983
25984 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25985
259862007-09-13 Jason Rumney <jasonr@gnu.org>
25987
25988 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25989
25990 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25991
25992 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25993 (mac_term_init): Call here instead, passing rif.
25994
259952007-09-13 Glenn Morris <rgm@gnu.org>
25996
25997 * s/hpux.h: No longer define `static' as nothing.
25998
259992007-09-13 Johan Bockgård <bojohan@gnu.org>
26000
26001 * callint.c (Fcall_interactively): Remove unused var `fun'.
26002
260032007-09-12 Romain Francoise <romain@orebokech.com>
26004
26005 * window.c (prefer_window_split_horizontally, display_buffer):
26006 Revert 2007-09-08 change.
26007
260082007-09-12 Glenn Morris <rgm@gnu.org>
26009
26010 * alloca.c: Remove file.
26011 * Makefile.in (alloca): Do not undef.
26012 (allocaobj, alloca.o): Remove.
26013 (otherobj): Remove allocaobj.
26014 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26015 * regex.c (C_ALLOCA): Remove all references and code that was only
26016 used when this was defined.
26017 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26018 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26019 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26020
26021 * Makefile.in (SOURCES, unlock, relock): Delete.
26022
26023 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26024 (menu_grab_callback): All uses changed.
26025
26026 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26027 (x_reply_selection_request): All uses changed.
26028
260292007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26030
26031 * lread.c (load_warn_old_style_backquotes): Change message to look
26032 better when it appears in the middle of byte-compiler messages.
26033
260342007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26035
26036 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26037
26038 * xterm.c (x_create_terminal): Add comment.
26039
26040 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26041
260422007-09-10 Richard Stallman <rms@gnu.org>
26043
26044 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26045
260462007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26047
26048 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26049 (DEFUN): Document `intspec', use it instead of `prompt'.
26050
26051 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26052
26053 * data.c (Finteractive_form): If the interactive specification starts
26054 with a `(', use it as a Lisp form.
26055
26056 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26057 name and file modes.
26058
26059 * callint.c (Fcall_interactively): Comment fixes.
26060
260612007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26062
26063 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26064 and compiled functions.
26065
260662007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26067
26068 * window.c (prefer_window_split_horizontally): New variable.
26069 (display_buffer): Consider splitting window horizontally depending
26070 on prefer_window_split_horizontally.
26071
260722007-09-08 Eli Zaretskii <eliz@gnu.org>
26073
26074 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26075
260762007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26077
26078 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26079
26080 * frame.c (x_set_frame_parameters): Check number is positive before
26081 using XFASTINT.
26082
26083 * window.c (freeze_window_start): Don't presume selected_window holds
26084 a window object.
26085 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26086
260872007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26088
26089 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26090
260912007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26092
26093 * window.c (Vsplit_window_preferred_function): New var.
26094 (Fdisplay_buffer): Use it.
26095 (syms_of_window): Export, and initialize it.
26096
260972007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26098
26099 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26100
261012007-09-06 Glenn Morris <rgm@gnu.org>
26102
26103 * gtkutil.c (menu_grab_callback) <cnt>:
26104 * xselect.c (x_reply_selection_request) <cnt>: Move static
26105 variable to file scope.
26106
261072007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26108
26109 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26110 consistent values of selected_frame and selected_window.
26111
261122007-09-04 Jason Rumney <jasonr@gnu.org>
26113
26114 * w32console.c (initialize_w32_display): Zero unused hooks.
26115
261162007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26117
26118 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26119 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26120
261212007-09-04 Jason Rumney <jasonr@gnu.org>
26122
26123 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26124 in w32console.c. Set up input. Remove XXX comments that have been
26125 confirmed as correct.
26126
26127 * s/ms-w32.h (MULTI_KBOARD): Define.
26128
26129 * w32console.c (one_and_only_w32cons): Remove.
26130 (initialize_w32_display): Take terminal argument.
26131
26132 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26133 initialize_w32_display.
26134 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26135
26136 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26137
26138 * keyboard.c (discard_mouse_events): Discard it.
26139 (make_lispy_event): Translate it to a lisp event.
26140 (lispy_wheel_names): Add wheel-left and right events.
26141 (syms_of_keyboard): Enlarge wheel_syms.
26142
26143 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26144 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26145
26146 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26147
26148 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26149 from WM_MOUSEHWHEEL.
26150 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26151
26152 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26153 terminal.
26154
26155 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26156 keyboard for the terminal.
26157
261582007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26159
26160 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26161 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26162 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26163 and resume-tty-function to resume-tty-hook.
26164 (Fsuspend_tty, Fresume_tty): Use new names.
26165
261662007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26167
26168 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26169 if it starts with "n:".
26170
261712007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26172
26173 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26174
261752007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26176
26177 * frame.h:
26178 * frame.c (Qterm_environment_variable): Remove.
26179 (syms_of_frame): Don't init and staticpro it.
26180
26181 * callproc.c (getenv_internal): Remove special case for $TERM.
26182
26183 * callproc.c (Vinitial_environment): New variable.
26184 (set_initial_environment): Initialize it.
26185 (syms_of_callproc): Declare it.
26186 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26187 TERM under which a process runs is never related to the TERM in which
26188 Emacs is running.
26189
261902007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26191
26192 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26193 * s/darwin.h: ... do it here.
26194
261952007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26196
26197 * lisp.h (set_initial_environment): Rename from set_global_environment.
26198
26199 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26200 removed by mistake on the multi-tty branch.
26201
26202 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26203 (Fmodify_frame_parameters): Return a value.
26204
26205 * image.c (png_load): Comment-out var only used in commented-out code.
26206
26207 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26208 before passing it to mark_object.
26209
26210 * xfaces.c (internal_resolve_face_name): Return a value.
26211 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26212
26213 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26214 (x_icon): Comment-out var only used in commented-out code.
26215
262162007-08-29 Romain Francoise <romain@orebokech.com>
26217
26218 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26219 QUIT hasn't been provided.
26220
262212007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26222
26223 * callproc.c (child_setup, getenv_internal): Use the
26224 display-environment-variable and term-environment-variable frame params.
26225 (set_initial_environment): Initialise Vprocess_environment.
26226
26227 * config.in: Disable multi-keyboard support on a mac.
26228
26229 * frame.c (Qterm_environment_variable)
26230 (Qdisplay_environment_variable): New variables.
26231 (syms_of_frame): Intern and staticpro them.
26232 (Fmake_terminal_frame): Disable output method test.
26233
26234 * frame.h: Declare them here.
26235
26236 * macfns.c (x_set_mouse_color): Get rif from the frame.
26237 (x_set_tool_bar_lines): Don't use updating_frame.
26238 (mac_window): Add 2 new parameters for consistency with other systems.
26239 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26240 frame parameters following what is done in X11 and w32. Don't use
26241 FRAME_MAC_DISPLAY_INFO.
26242 (Fx_open_connection, start_hourglass): Remove window-system check.
26243 (x_create_tip_frame): Get the keyboard from the terminal.
26244
26245 * macmenu.c: Reorder includes.
26246 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26247
26248 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26249 terminal parameter.
26250 (x_clear_frame): Add a frame parameter.
26251 (note_mouse_movement): Get rif from the frame.
26252 (mac_term_init): Initialize the terminal.
26253 (mac_initialize): Make static and move terminal initialization ...
26254 (mac_create_terminal): ... to this new function.
26255
26256 * macterm.h (struct mac_display_info): Add terminal.
26257 (mac_initialize): Delete declaration.
26258
26259 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26260
26261 * sysdep.c: Comment out text after #endif.
26262
26263 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26264 is defined. Better initialize ttys in windows. Use terminal
26265 specific mouse_position_hook.
26266
26267 * termhooks.h (union display_info): Add mac_display_info.
26268
26269 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26270 Set the default minibuffer frame, window_system and the rest of the
26271 frame parameters following what is done in X11.
26272
26273 * w32term.c (w32_initialize): Make static.
26274
26275 * xselect.c (x_handle_selection_clear): Only access
26276 terminal->kboard when MULTI_KBOARD is defined.
26277
26278 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26279 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26280
262812007-08-29 Jason Rumney <jasonr@gnu.org>
26282
26283 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26284 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26285
26286 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26287 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26288
26289 * keyboard.c (restore_kboard_configuration): Only define when
26290 MULTI_KBOARD defined.
26291
26292 * makefile.w32-in: Update dependancies from Makefile.in.
26293 (OBJ1): Add terminal.$(O)
26294
26295 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26296 Don't define function body.
26297 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26298
26299 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26300
26301 * w32.c (request_sigio, unrequest_sigio): Remove.
26302
26303 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26304 (w32con_clear_frame, w32con_clear_end_of_line)
26305 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26306 (w32con_delete_glyphs, w32con_set_terminal_window)
26307 (scroll_line, w32_sys_ring_bell): Add frame arg.
26308 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26309 Add terminal arg.
26310 (PICK_FRAME): Remove.
26311 (w32con_write_glyphs): Use frame specific terminal coding.
26312 (one_and_only_w32cons): New global variable.
26313 (initialize_w32_display): Use it for storing hooks.
26314 (create_w32cons_output): New function.
26315
26316 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26317 arg a frame.
26318
26319 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26320 Set window_system.
26321 (x_set_tool_bar_lines): Don't use updating_frame.
26322 (Fx_create_frame): Set terminal and ref count.
26323 (Fx_open_connection): Remove window-system check.
26324
26325 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26326
26327 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26328 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26329 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26330 Add frame arg.
26331 (x_delete_terminal, w32_create_terminal): New functions.
26332 (w32_term_init): Create a terminal.
26333 (w32_initialize): Move terminal specific initialization to
26334 w32_create_terminal.
26335
26336 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26337 (w32_clear_rect, w32_clear_area): Use background from frame.
26338 (w32_display_info): Add terminal.
26339 (w32_sys_ring_bell, x_delete_display): Declare here.
26340
26341 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26342
26343 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26344
263452007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26346
26347 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26348 Fix get_named_tty calls for the controlling tty.
26349
263502007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26351
194d44e7 26352 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26353
263542007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26355
26356 * term.c (tty_insert_glyphs): Add missing first parameter.
26357
263582007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26359
26360 * buffer.c (Fbuffer_list, Fbury_buffer):
26361 Take frame->buried_buffer_list into account.
26362
26363 * cm.c (current_tty): New variable, for cmputc().
26364 (cmputc): Use it.
26365 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26366 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26367 (cmgoto): Add tty parameter. Pass it on to calccost().
26368 Use emacs_tputs() instead of tputs().
26369
26370 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26371 tputs().
26372 (current_tty): New variable, for cmputc().
26373 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26374
26375 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26376 (internal_condition_case, internal_condition_case_1)
26377 (internal_condition_case_2): Don't abort when x_catching_errors.
26378
26379 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26380 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26381 prevent crashes caused by bogus longjmps in read_char.
26382
26383 * keymap.h (Fset_keymap_parent): Add EXFUN.
26384
26385 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26386 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26387 Remove redundant definition.
26388
26389 * macfns.c (x_set_mouse_color, x_make_gc):
26390 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26391
26392 * w32term.c (x_free_frame_resources):
26393 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26394 (w32_initialize): Use the accessor macros for terminal characteristics.
26395
26396 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26397 Use the accessor macros for terminal characteristics.
26398 * msdos.c (internal_terminal_init): Use the accessor macros for
26399 terminal characteristics.
26400 (ScreenVisualBell, internal_terminal_init):
26401 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26402
26403 * termopts.h (no_redraw_on_reenter): Declare.
26404
26405 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26406 (mark_terminals, mark_ttys): Declare.
26407 (Fgarbage_collect): Call them.
26408 (mark_object): Mark buried_buffer_list.
26409
26410 * prefix-args.c: Include stdlib.h for exit.
26411
26412 * syssignal.h: Add comment.
26413
26414 * indent.c: Include stdio.h.
26415
26416 * window.h (Vinitial_window_system): Declare.
26417 (Vwindow_system): Delete declaration.
26418
26419 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26420
26421 * image.c (lookup_image): Don't initialize `c' until the xasserts
26422 have been run.
26423
26424 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26425 FRAME_FOREGROUND_PIXEL.
26426
26427 * print.c (print_preprocess): Don't lose print_depth levels while
26428 iterating.
26429
26430 * widget.c (update_from_various_frame_slots):
26431 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26432
26433 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26434 frames.
26435 (window_internal_height): Remove bogus make_number call.
26436 (init_window_once): Call make_terminal_frame with two zero parameters.
26437
26438 * fileio.c (Fread_file_name): Update comment.
26439
26440 * callint.c (Fcall_interactively):
26441 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26442 Make sure it is correctly unwound.
26443
26444 * xsmfns.c (x_session_close): New function.
26445
26446 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26447 Delete declarations.
26448
26449 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26450 (x_output): Remove background_pixel and foreground_pixel fields.
26451 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26452 (x_delete_device, x_session_close): Declare.
26453
26454 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26455 (read_filtered_event): Call `read_char' with a local
26456 `wrong_kboard_jmpbuf'.
26457
26458 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26459 Don't call single_kboard_state. Use FRAME_RIF.
26460
26461 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26462 systems.
26463
26464 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26465 (Fframe_with_environment, Fset_input_meta_mode)
26466 (Fset_quit_char): EXFUN.
26467 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26468 (init_sys_modes, reset_sys_modes): Update prototypes.
26469 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26470
26471 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26472 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26473 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26474 Delete declarations.
26475 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26476 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26477 New declarations.
26478
26479 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26480 already does that during init_display(). Call syms_of_keymap
26481 before syms_of_keyboard. Call `syms_of_terminal'.
26482 Call set_initial_environment, not set_process_environment.
26483 (shut_down_emacs): Call reset_all_sys_modes() instead of
26484 reset_sys_modes().
26485
26486 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26487 (internal_resolve_face_name, resolve_face_name_error): New functions.
26488 (resolve_face_name): Protect against loops and errors thrown by Fget.
26489 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26490 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26491
26492 * scroll.c: Replace CURTTY() with local variables throughout the
26493 file (where applicable).
26494 (calculate_scrolling, calculate_direct_scrolling)
26495 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26496 characteristics.
26497
26498 * keymap.c (Vfunction_key_map): Remove.
26499 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26500 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26501 (Vkey_translation_map): Remove.
26502 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26503 (Fdescribe_buffer_bindings)
26504 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26505 Update for terminal-local key-translation-map.
26506
26507 * Makefile.in (callproc.o): Update dependencies.
26508 (lisp, shortlisp): Add termdev.elc.
26509 (obj): Add terminal.o.
26510 (terminal.o): Add dependencies.
26511 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26512 (data.o, fns.o): Add termhooks.h dependency.
26513 (SOME_MACHINE_LISP): Add dnd.elc.
26514 (minibuf.o): Fix typo.
26515 Update dependencies.
26516
26517 * data.c (do_symval_forwarding, store_symval_forwarding)
26518 (find_symbol_value): Use the selected frame's keyboard, not
26519 current_kboard.
26520
26521 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26522 Vwindow_system.
26523
26524 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26525 Fmenu_bar_open.
26526 (syms_of_xmenu): Update defsubr.
26527 (mouse_position_for_popup, Fx_popup_menu)
26528 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26529 (set_frame_menubar, free_frame_menubar)
b97439ce 26530 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26531 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26532 an X frame.
26533
26534 * xselect.c (x_own_selection): Abort if not an X frame.
26535 (some_frame_on_display): Check if it is an X frame.
26536 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26537
26538 * coding.c: Include frame.h and termhooks.h.
26539 (terminal_coding, keyboard_coding): Delete.
26540 (Fset_terminal_coding_system_internal)
26541 (Fset_keyboard_coding_system_internal)
26542 (Fkeyboard_coding_system)
26543 (Fterminal_coding_system): Add a terminal parameter.
26544 Get terminal_coding from the terminal.
26545 (init_coding_once): Don't call setup_coding_system here.
26546
26547 * dispextern.h (set_scroll_region, turn_off_insert)
26548 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26549 (tty_clear_end_of_line, tty_setup_colors)
26550 (delete_tty, updating_frame)
26551 (produce_special_glyphs, produce_glyphs, write_glyphs)
26552 (insert_glyphs): Remove.
26553 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26554 (tty_turn_off_highlight, get_tty_size): Add declaration.
26555 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26556
26557 * frame.h (enum output_method): Add output_initial.
26558 (struct x_output): Delete.
26559 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26560 Access foreground_pixel and background_pixel directly from the frame.
26561 (tty_display): Delete.
26562 (struct frame): Add buried_buffer_list, foreground_pixel,
26563 background_pixel and terminal. Delete kboard.
26564 (union output_data): Add tty.
26565 (FRAME_KBOARD): Get the kboard from the terminal.
26566 (FRAME_INITIAL_P): New macro.
26567 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26568 (Qterm_environment_variable, Qdisplay_environment_variable)
26569 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26570 New declarations.
26571
26572 * termchar.h (tty_output, tty_display_info): New structures.
26573 (tty_list): Declare.
26574 (FRAME_TTY, CURTTY): New macros.
26575 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26576 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26577 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26578 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26579
26580 * callproc.c: Include frame.h and termhooks.h, for terminal
26581 parameters.
26582 (add_env): New function.
26583 (child_setup): Use it.
26584 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26585 (getenv_internal): Fix get_terminal_param call.
26586 (Fgetenv_internal, egetenv): Update doc.
26587 (syms_of_callproc): Initialize Vprocess_environment to nil.
26588 Register and initialize them. Remove obsolete defvars. Update doc
26589 strings.
26590 (child_setup): Handle Vlocal_environment_variables.
26591 (getenv_internal): Add terminal parameter.
26592 Handle Vlocal_environment_variables.
26593 (Fgetenv_internal): Add terminal parameter.
26594 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26595 environment in a frame (not terminal) parameter. Update doc strings.
26596 (set_initial_environment): Rename from set_global_environment.
26597 Store Emacs environment in initial frame parameter.
26598
26599 * xdisp.c (redisplay_internal): Update references to
26600 `previous_terminal_frame'.
26601 (display_mode_line, Fformat_mode_line): Replace calls to
26602 `push_frame_kboard' with `push_kboard'.
26603 (get_glyph_string_clip_rects): Add extra parentheses and
26604 braces to prevent compiler warnings.
26605 (calc_pixel_width_or_height): Add xassert to check that the
26606 frame is alive. Don't call `lookup_image' on a termcap frame.
26607 (message2_nolog, message3_nolog, redisplay_internal)
26608 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26609 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26610 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26611 (Fx_display_pixel_width, Fx_display_pixel_height)
26612 (Fx_display_planes, Fx_display_color_cells)
26613 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26614 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26615 (Fx_display_backing_store, Fx_display_visual_class)
26616 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26617 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26618
26619 * xfns.c (x_set_foreground_color x_set_background_color)
26620 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26621 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26622 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26623 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26624 terminal that is being deleted.
26625 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26626 frame parameter, and make sure it overrides any user-supplied setting.
26627 (Fx_close_connection, Fx_synchronize): Unify argument names with
26628 the rest of the DEFUNs.
26629
26630 * dispnew.c (Fsend_string_to_terminal): Update call to
26631 `get_tty_terminal'.
26632 (Fredraw_frame, Fsend_string_to_terminal)
26633 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26634 FRAME_TERMCAP_P and FRAME_TTY.
26635 (window_change_signal): Don't believe width/height values that are
26636 impossibly small.
26637 (Vinitial_window_system): Rename from Vwindow_system.
26638 (termscript, Wcm, rif): Delete.
26639
26640 * termhooks.h (struct terminal): New struct containing the
26641 previously global text display hooks and new members NAME,
26642 DELETED and PARAM_ALIST.
26643 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26644 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26645 (FRAME_RIF): New macros.
26646 (get_terminal_param, get_device): New declarations.
26647 (termscript): Delete declaration.
26648
26649 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26650 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26651 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26652 FRAME_FOREGROUND_PIXEL.
26653 (x_fully_uncatch_errors): Disable definition.
26654 (x_scroll_bar_expose): Fix reference to foreground pixel.
26655 (XTread_socket): Disable loop on all X displays.
26656 (x_delete_terminal): Don't set terminal->deleted and let
26657 delete_terminal delete the frames on the terminal.
26658 (x_delete_display): Doc update to reflect changes in
26659 delete_terminal.
26660 (x_display_info) <terminal>: Move member earlier in the struct.
26661 (deleting_tty): Remove old variable.
26662 (Fsuspend_tty): Call clear_tty_hooks.
26663 (Fresume_tty, init_tty): Call set_tty_hooks.
26664 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26665 errors on X frames.
26666 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26667 (handle_one_xevent): Initialize `f' to NULL.
26668 (x_delete_terminal, x_create_terminal): New functions.
26669 (XTset_terminal_modes, XTreset_terminal_modes)
26670 (XTread_socket, x_connection_closed, x_term_init)
26671 (x_term_init, x_delete_display): Add terminal parameter.
26672 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26673 X connections.
26674
26675 * frame.c: Include termchar.h.
26676 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26677 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26678 (Qdisplay_environment_variable): New vars.
26679 (Fframep): Deal with output_initial.
26680 (Fframe-live-p): Doc fix.
26681 (Fwindow-system): New function.
26682 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26683 (make_terminal_frame): Don't create frames on a terminal that is
26684 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26685 (store_frame_param): Check for found_for_frame before calling XFRAME.
26686 (Fmake_terminal_frame): Handle NULL tty names correctly.
26687 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26688 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26689 frames to refer to a deleted frame in their 'environment parameter.
26690 (Fframe_with_environment): New function.
26691 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26692 (get_future_frame_param): New function.
26693 (Fmake_terminal_frame): Use it.
26694 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26695
26696 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26697 * sysdep.c (reset_sys_modes): Update for renames.
26698
26699 * keyboard.c (tty_read_avail_input): New function.
26700 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26701 (syms_of_keyboard): Defsubr them.
26702 (Fset_input_meta_mode, Fset_quit_char): New functions.
26703 (Fset_input_mode): Split to above functions.
26704 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26705 parameter. Use it in call to `read_char'.
26706 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26707 Set wrong_kboard_jmpbuf correctly in recursive calls.
26708 Use current_kboard to access Vkeyboard_translate_table.
26709 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26710 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26711 Update longjmp invocations. Remember the original current_kboard,
26712 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26713 changes it. Comment out unnecessary calls to
26714 `record_single_kboard_state' and `any_kboard_state'.
26715 Update recursive calls.
26716 (wrong_kboard_jmpbuf): Remove global variable.
26717 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26718 Handle deleted interrupted_kboards correctly; that is a legal
26719 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26720 and read_char calls. Abort if interrupted_kboard died in read_char.
26721 (any_kboard_state, single_kboard_state)
26722 (push_frame_kboard): Remove function.
26723 (pop_kboard): Switch out of single_kboard mode if the kboard has
26724 been deleted. Remove unused variable. Help debugging by not
26725 changing current_kboard unnecessarily. Set current_kboard to the
26726 kboard of the selected frame when the stored kboard object has
26727 been deleted before pop_kboard.
26728 (temporarily_switch_to_single_kboard): Change first parameter to a
26729 frame pointer. Throw an error when caller wants to change kboards
26730 while in single_kboard mode. Don't push_kboard if we weren't in
26731 single kboard state. Don't pop_kboard if we popped into any
26732 kboard state.
26733 (restore_kboard_configuration): Abort if pop_kboard changed the
26734 kboard in single_kboard mode. Call pop_kboard only after setting
26735 up single_kboard mode.
26736 (Frecursive_edit): Switch to single_kboard mode only in nested
26737 command loops.
26738 (cmd_error, command_loop, command_loop_1, timer_check):
26739 Comment out unnecessary call to `any_kboard_state' and
26740 `record_single_kboard_state'.
26741 (delete_kboard): Exit single_kboard mode if we have just deleted
26742 that kboard. Use FRAME_KBOARD.
26743 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26744 `fatal_error_signal'.
26745 (record_single_kboard_state): Don't push_kboard if we weren't in
26746 single kboard state. Don't pop_kboard if we popped into any
26747 kboard state.
26748 (push_frame_kboard): Rename to push_kboard.
26749 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26750 (read_avail_input): Read input from all terminals.
26751 (mark_kboards): Also mark Vkeyboard_translate_table.
26752 (kbd_buffer_store_event_hold): Simplify condition.
26753 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26754 (Vkeyboard_translate_table): Move to struct kboard.
26755 (init_kboard): Initialize Vkeyboard_translate_table.
26756 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26757 Vkeyboard_translate_table. Update doc strings. Update docs of
26758 local-function-key-map and function-key-map.
26759
26760 * terminal.c: New file.
26761
26762 * term.c: Include errno.h.
26763 (Vring_bell_function, device_list, initial_device)
26764 (next_device_id, ring_bell, update_begin, update_end)
26765 (set_terminal_window, cursor_to, raw_cursor_to)
26766 (clear_to_end, clear_frame, clear_end_of_line)
26767 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26768 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26769 (syms_of_term): Move their initialization to terminal.c.
26770 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26771 (Ftty_display_color_cells)
26772 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26773 (clear_tty_hooks, set_tty_hooks)
26774 (init_tty, maybe_fatal): New functions.
26775 (Ftty_type): Return nil if terminal is not on a tty instead of
26776 throwing an error. Doc update.
26777 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26778 Doc update. Initialize new subrs and variables.
26779 (delete_tty): Use terminal->deleted.
26780 (tty_set_terminal_modes): Rename from set_terminal_modes.
26781 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26782 (set_scroll_region): Rename to `tty_set_scroll_region'.
26783 (turn_on_insert): Rename to `tty_turn_on_insert'.
26784 (turn_off_insert): Rename to `tty_turn_off_insert'.
26785 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26786 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26787 (toggle_highligh): Rename to `tty_toggle_highlight'.
26788 (background_highlight): Rename to `tty_background_highlight'.
26789 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26790 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26791 (tty_set_scroll_region, tty_background_highlight)
26792 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26793 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26794 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26795 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26796 Add static modifier.
26797 (tty_reset_terminal_modes, tty_set_terminal_window)
26798 (tty_set_scroll_region, tty_background_highlight)
26799 (tty_highlight_if_desired, tty_cursor_to)
26800 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26801 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26802 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26803 renames.
26804
268052007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26806
26807 * keyboard.c: Qrtl is new.
26808 (parse_tool_bar_item): Handle :rtl keyword.
26809 (syms_of_keyboard): Intern :rtl keyword.
26810
26811 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26812
26813 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26814 so no Lisp code is executed.
26815 (file_for_image, find_rtl_image): New functions.
26816 (xg_get_image_for_pixmap): Use file_for_image.
26817 (update_frame_tool_bar): If direction is RTL, use RTL image if
26818 defined. Use Gtk stock images if defined.
26819
268202007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26821
26822 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26823 for nonexistent or zero-width glyph in composition glyph.
26824
268252007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26826
26827 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26828
26829 * xdisp.c (Finvisible_p): New function.
26830 (syms_of_xdisp): defsubr it.
26831
268322007-08-24 Juanma Barranquero <lekktu@gmail.com>
26833
26834 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26835 Doc fixes.
26836
268372007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26838
26839 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26840
268412007-08-24 Martin Rudalics <rudalics@gmx.at>
26842
26843 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26844 whether decoding has modified buffer contents.
26845
268462007-08-24 Jason Rumney <jasonr@gnu.org>
26847
26848 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26849 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26850 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26851 (init_svg_functions) [HAVE_NTGUI]: New function.
26852 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26853 (svg_load_image): Use them.
26854 (svg_load_image) [HAVE_NTGUI]: Implement background.
26855
268562007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26857
26858 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26859 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26860 (LIBX): Remove @RSVG_LIBS@.
26861 (LIBES): Add $(RSVG_LIBS).
26862
26863 * image.c (svg_load_image): Blend with specified background if exists.
26864 Use IMAGE_BACKGROUND. Add Mac OS Support.
26865
26866 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26867 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26868 Remove macros.
26869 [MAC_OSX] (socket_callback): Do nothing.
26870 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26871 ReceiveNextEvent.
26872 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26873 socket_callback.
26874 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26875
268762007-08-22 Glenn Morris <rgm@gnu.org>
26877
26878 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26879
268802007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26881
26882 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26883
26884 * image.c: Add support for SVG images. Some additional comments
26885 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26886 (svg_image_p): New function to test for SVG image.
26887 (svg_load): New function to load SVG image.
26888 (svg_load_image): New function, helper for svg_load.
26889 (Qsvg): New Lisp_object.
26890 (svg_keyword_index): New enum.
26891 (svg_format): New static `image_keyword' struct.
26892 (svg_type): New static `image_type' struct.
26893 (librsvg/rsvg.h): Include it.
26894
268952007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26896
26897 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26898
268992007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26900
26901 * lread.c (Qold_style_backquotes): New var.
26902 (syms_of_lread): Init and staticpro it.
26903 (load_warn_old_style_backquotes): New fun.
26904 (Fload): Use them to warn about old style backquotes.
26905 (end_of_file_error, Fload): Remove unused vars.
26906
26907 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26908
26909 * lread.c (Vold_style_backquotes): New var.
26910 (syms_of_lread): Init and export it to Elisp.
26911 (read1): Set it when we find an old-style (back)quote.
26912
269132007-08-22 Jason Rumney <jasonr@gnu.org>
26914
26915 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26916
269172007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26918
26919 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26920
269212007-08-19 Richard Stallman <rms@gnu.org>
26922
26923 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26924
269252007-08-19 Andreas Schwab <schwab@suse.de>
26926
26927 * alloc.c (pure): Round PURESIZE up.
26928
269292007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26930
26931 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26932 active frame.
26933
269342007-08-16 Richard Stallman <rms@gnu.org>
26935
26936 * eval.c (Fcommandp): Add parens to clarify.
26937
26938 * minibuf.c (Fall_completions): Use enum for type of table.
26939
26940 * emacs.c (USAGE2): Improve text.
26941
269422007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26943
26944 * term.c (tty_default_color_capabilities): Declare static
26945 variables in file scope, to avoid HPUX compiler problem.
26946
269472007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26948
26949 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26950 to gtk_toolbar_insert.
26951
269522007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26953
26954 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26955
26956 * insdel.c (reset_var_on_error): New fun.
26957 (signal_before_change, signal_after_change):
26958 Use it to reset (after|before)-change-functions to nil in case of error.
26959 Bind inhibit-modification-hooks to t.
26960 Don't bind (after|before)-change-functions to nil while they run.
26961
269622007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26963
26964 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26965 filling pixmap with stippled background.
26966
269672007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26968
26969 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26970 Don't use invisible frame as parent window for repositioning.
26971
269722007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26973
26974 * print.c (new_backquote_output): Rename from old_backquote_output.
26975 (print): Inverse its logic (according to its name) so as to match the
26976 behavior of new_backquote_flag in lread.c.
26977
269782007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26979
26980 * gmalloc.c (posix_memalign): New function.
26981
26982 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26983 ActivateControl/DeactivateControl here.
26984 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26985 frame-notice-user-settings is non-nil.
26986 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26987 for kEventParamFMFontStyle.
26988 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26989 mac_pass_command_to_system and mac_pass_control_to_system here.
26990 (XTread_socket): Call ActivateControl/DeactivateControl here.
26991 (XTread_socket) [TARGET_API_MAC_CARBON]:
26992 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26993 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26994 for window repositioning.
26995
269962007-08-08 Glenn Morris <rgm@gnu.org>
26997
26998 * Replace `iff' in doc-strings and comments.
26999
270002007-08-07 Chong Yidong <cyd@stupidchicken.com>
27001
27002 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27003
270042007-08-07 Martin Rudalics <rudalics@gmx.at>
27005
27006 * fileio.c (Finsert_file_contents): Run format-decode and
27007 after_insert_file_functions on entire buffer when REPLACE is
27008 non-nil and inhibit modification_hooks and point_motion_hooks.
27009 For consistency, run after_insert_file_functions iff something
27010 got inserted. Move signal_after_change and update_compositions
27011 after code running after_insert_file_functions. Make sure that
27012 undo_list doesn't record intermediate steps of the decoding process.
27013
270142007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27015
27016 * emacs.c (main)
27017 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27018 Call malloc_enable_thread on interactive startup.
27019
27020 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27021 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27022 [USE_PTHREAD]: Conditionalize with it.
27023 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27024 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27025 New functions.
27026
270272007-08-06 Chong Yidong <cyd@stupidchicken.com>
27028
27029 * xdisp.c (redisplay_window): When restoring original buffer
27030 position, make sure it is still valid.
27031
27032 * image.c (png_load): Ignore png-supplied background color.
27033
270342007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27035
27036 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27037 Use kCFAbsoluteTimeIntervalSince1970.
27038
27039 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27040 New variable.
27041 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27042 event loop should be quit.
27043 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27044 Quit dialog event loop if quit_dialog_event_loop is set.
27045
27046 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27047 (Selection): New typedef. Use instead of ScrapRef.
27048 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27049 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27050 (mac_clear_selection): Rename from clear_scrap.
27051 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27052 scrap_has_target_type. All uses changed.
27053 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27054 (mac_selection_has_target_p): New functions.
27055 (mac_put_selection_value): Rename from put_scrap_string.
27056 (mac_get_selection_value): Rename from get_scrap_string.
27057 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27058 (put_scrap_private_timestamp, scrap_has_target_type)
27059 (get_scrap_private_timestamp): Remove functions.
27060 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27061 (x_own_selection, x_get_local_selection):
27062 Use mac_valid_selection_value_p.
27063 (x_own_selection): Don't use put_scrap_private_timestamp.
27064 Record OWNERSHIP-INFO into Vselection_alist instead.
27065 (x_get_local_selection): Don't check type if request is local.
27066 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27067 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27068
270692007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27070
27071 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27072 add comment explaining why.
27073
270742007-08-03 Richard Stallman <rms@gnu.org>
27075
27076 * fileio.c (Fvisited_file_modtime): Use make_time.
27077
270782007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27079
27080 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27081 build.
27082
270832007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27084
27085 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27086
270872007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27088
27089 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27090
270912007-07-30 Richard Stallman <rms@gnu.org>
27092
27093 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27094
270952007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27096
27097 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27098
270992007-07-28 Nick Roberts <nickrob@snap.net.nz>
27100
27101 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27102 remote default-directory.
27103
27104 * buffer.c (mode-line-format): Update doc string.
27105
271062007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27107
27108 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27109 scroll bar gap.
27110 (x_scroll_bar_create): Set bar->fringe_extended_p.
27111 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27112 on frame edge. Check fringe background extension. Don't clear
27113 extended fringe background area.
27114
27115 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27116 (w32_fill_area): Enclose multiple statements with do ... while (0).
27117
27118 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27119 Extend fringe background to scroll bar gap.
27120 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27121 Set bar->fringe_extended_p.
27122 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27123 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27124 background extension. Don't clear extended fringe background area.
27125
27126 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27127 New member fringe_extended_p.
27128
271292007-07-25 Glenn Morris <rgm@gnu.org>
27130
27131 * Relicense all FSF files to GPLv3 or later.
27132
27133 * COPYING: Switch to GPLv3.
27134
271352007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27136
27137 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27138
27139 * data.c (Finteractive_form): Check for the presence of an
27140 `interactive-form' symbol property more thoroughly.
27141
27142 * data.c (Finteractive_form): Use an `interactive-form' property if
27143 present, analogous to the function-documentation property.
27144
271452007-07-24 Jason Rumney <jasonr@gnu.org>
27146
27147 * w32fns.c (x_real_positions): Get real position from OS instead of
27148 calculating it.
27149
271502007-07-23 Jason Rumney <jasonr@gnu.org>
27151
27152 * filelock.c (current_lock_owner): Allow for @ sign in username.
27153
271542007-07-22 Nick Roberts <nickrob@snap.net.nz>
27155
27156 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27157 remote default-directory.
27158
27159 * buffer.c (mode-line-format): Describe above case in doc string.
27160
271612007-07-20 Eli Zaretskii <eliz@gnu.org>
27162
27163 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27164 Define if not defined.
27165
271662007-07-18 Jason Rumney <jasonr@gnu.org>
27167
27168 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27169
271702007-07-18 Richard Stallman <rms@gnu.org>
27171
27172 * data.c (Fsetq_default): Doc fix.
27173
27174 * eval.c (Fsetq): Doc fix.
27175
271762007-07-18 Juanma Barranquero <lekktu@gmail.com>
27177
27178 * coding.c (Ffind_operation_coding_system):
27179 * eval.c (For, Fand): Doc fixes.
27180 Reported by Johan Bockgård.
27181
271822007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27183
27184 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27185
27186 * xterm.h: Declare x_ewmh_activate_frame.
27187
27188 * xterm.c (x_ewmh_activate_frame): New function.
27189 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27190
271912007-07-17 Martin Rudalics <rudalics@gmx.at>
27192
27193 * window.c (Fdisplay_buffer): If largest or LRU window is the
27194 only window, split it even if it is not eligible for splitting.
27195 This restores the original behavior broken by the 2007-07-15
27196 change.
27197
271982007-07-17 Glenn Morris <rgm@gnu.org>
27199
27200 * abbrev.c (abbrev_check_chars): New function.
27201 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27202 Call abbrev_check_chars to check abbrev characters are word
27203 constituents. Doc fix.
27204
272052007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27206
27207 * process.c (Fstart_process, Fmake_network_process)
27208 (read_process_output): Fix up last changes.
27209
272102007-07-16 Eli Zaretskii <eliz@gnu.org>
27211
27212 * makefile.w32-in (clean): Don't delete *~.
27213
272142007-07-16 Andreas Schwab <schwab@suse.de>
27215
27216 * window.c (Fdisplay_buffer): Use NILP.
27217 (Fset_window_scroll_bars): Likewise.
27218
272192007-07-15 Martin Rudalics <rudalics@gmx.at>
27220
27221 * window.c (window_min_size_2): New function.
27222 (window_min_size_1, size_window, Fdisplay_buffer)
27223 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27224 windows without mode- or header-lines when window-min-height is
27225 too small.
27226 (size_window): Reset nodelete_p after testing it, following an
27227 earlier note by Kim F. Storm.
27228 (display_buffer): Do not set split_height_threshold to twice the
27229 value of window_min_height to avoid changing the value of a
27230 customizable variable. Rather explicitly check whether the
27231 height of the window that shall be splitted is at least as large
27232 as split_height_threshold.
27233 (Fwindow_full_width_p): New defun.
27234 (syms_of_window): Defsubr it.
27235
27236 * window.h: Add EXFUN for Fwindow_full_width_p.
27237
272382007-07-14 Jason Rumney <jasonr@gnu.org>
27239
27240 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27241
272422007-07-14 Richard Stallman <rms@gnu.org>
27243
27244 * eval.c (maybe_call_debugger): New function.
27245 (find_handler_clause): Use maybe_call_debugger.
27246 Call it when the handler says `debug'.
27247 Eliminate DEBUGGER_VALUE_PTR.
27248 (Fsignal): Eliminate debugger_value.
27249 (Qdebug): New variable.
27250 (syms_of_eval): Initialize it.
27251
272522007-07-14 Juanma Barranquero <lekktu@gmail.com>
27253
27254 * eval.c (Fprogn):
27255 * keyboard.c (Ftrack_mouse):
27256 * print.c (Fwith_output_to_temp_buffer):
27257 * window.c (Fsave_window_excursion): Doc fix.
27258
272592007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27260
27261 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27262
272632007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27264
27265 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27266 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27267 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27268 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27269 Remove unused encoding_carryover.
27270 * process.c: Adjust all functions accordingly.
27271
272722007-07-12 Richard Stallman <rms@gnu.org>
27273
27274 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27275
272762007-07-11 Jason Rumney <jasonr@gnu.org>
27277
27278 * makefile.w32-in (LIBS): Include OLE32.
27279
27280 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27281 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27282
272832007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27284
27285 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27286 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27287 from a Lisp_Object into a bare pointer.
27288 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27289 Adjust the code correspondingly.
27290
27291 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27292
27293 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27294 (term_show_mouse_face): Remove unused var `j'.
27295 (handle_one_term_event): Remove unused vars `i' and `j'.
27296 Don't cast return value of ttyname since it's not necessary.
27297
272982007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27299
27300 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27301 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27302
27303 * fns.c (map_char_table): Use an array of int for `indices' rather than
27304 an array of Lisp_Objects (which are only ever integers anyway).
27305 (Fmap_char_table): Update caller.
27306 * lisp.h: Update prototype.
27307 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27308 * fontset.c (Ffontset_info):
27309 * casetab.c (set_case_table): Update callers.
27310
27311 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27312
27313 * keymap.c (struct accessible_keymaps_data)
27314 (struct where_is_internal_data): New structures.
27315 (accessible_keymaps_1, where_is_internal_1): Use them to change
27316 interface to adhere to the one used by map_keymap.
27317 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27318 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27319
27320 * keymap.h (map_keymap_function_t): More informative prototype.
27321
273222007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27323
27324 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27325 (looking_at_1): Don't change search_regs and last_thing_searched
27326 if `inhibit-changing-match-data' is non-nil.
27327 (string_match_1, search_buffer, set_search_regs): Likewise.
27328 (syms_of_search): Add Lisp level definition for
27329 `inhibit-changing-match-data' and set it to nil.
27330 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27331 start and end of the match, instead of using values in search_regs.
27332
273332007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27334
27335 * minibuf.c (Fcompleting_read): New value `confirm-only'
27336 for `require-match'.
27337
273382007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27339
27340 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27341 part of the 2007-06-27 change to syms_of_fileio.
27342
273432007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27344
27345 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27346 Check WINDOWP before using XWINDOW. Consolidate return statements.
27347
273482007-06-27 Richard Stallman <rms@gnu.org>
27349
27350 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27351
273522007-06-27 Juanma Barranquero <lekktu@gmail.com>
27353
27354 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27355
273562007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27357
27358 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27359 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27360 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27361 (_free_internal, memalign): Use them.
27362 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27363 Initialize to PTHREAD_MUTEX_INITIALIZER.
27364 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27365 (morecore_nolock): Rename from morecore. All uses changed.
27366 Use only nolock versions of internal allocation functions.
27367 (_malloc_internal_nolock, _realloc_internal_nolock)
27368 (_free_internal_nolock): New functions created from
27369 _malloc_internal, _realloc_internal, and _free_internal.
27370 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27371 Copy hook value to automatic variable before its use.
27372 (memalign): Copy hook value to automatic variable before its use.
27373
273742007-06-26 Kenichi Handa <handa@m17n.org>
27375
27376 * coding.c (Ffind_operation_coding_system): Docstring improved.
27377 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27378
273792007-06-25 David Kastrup <dak@gnu.org>
27380
27381 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27382 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27383 cater for additional parameter.
27384
27385 * keymap.h: Adjust number of parameters to `current-active-maps'.
27386
27387 * doc.c (Fsubstitute_command_keys): Adjust call of
27388 `current-active-maps'.
27389
273902007-06-25 David Kastrup <dak@gnu.org>
27391
27392 * callint.c (Fcall_interactively): Make the parsing of interactive
27393 specs somewhat more readable.
27394
273952007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27396
27397 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27398 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27399 if extended background has already been filled.
27400
274012007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27402
27403 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27404 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27405
27406 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27407 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27408 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27409 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27410 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27411 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27412 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27413 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27414 Run timers during dialog popup.
27415 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27416
274172007-06-21 Jason Rumney <jasonr@gnu.org>
27418
27419 * image.c (convert_mono_to_color_image): Swap fore and background.
27420
274212007-06-20 Jason Rumney <jasonr@gnu.org>
27422
27423 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27424 (w32_free_bdf_font): Unmap memory not handle.
27425
274262007-06-20 Sam Steingold <sds@gnu.org>
27427
27428 * gmalloc.c (__morecore): Fix the declaration to comply with the
27429 definition.
27430
274312007-06-20 Juanma Barranquero <lekktu@gmail.com>
27432
27433 * w32term.c (w32_delete_display): Remove leftover declaration.
27434 (w32_define_cursor, w32_initialize): Make static.
27435
27436 * w32.c (_wsa_errlist): Fix typo in error message.
27437 (init_environment): Ignore any environment variable from the
27438 registry having a null value.
27439
274402007-06-20 Glenn Morris <rgm@gnu.org>
27441
27442 * Makefile.in (LIBGIF): Default to -lgif.
27443
274442007-06-17 Jason Rumney <jasonr@gnu.org>
27445
27446 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27447 unicode strings.
27448
274492007-06-16 Juanma Barranquero <lekktu@gmail.com>
27450
27451 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27452 Fix typo in docstring.
27453
274542007-06-16 Eli Zaretskii <eliz@gnu.org>
27455
27456 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27457 and their keybindings.
27458
274592007-06-15 Chong Yidong <cyd@stupidchicken.com>
27460
27461 * composite.c (update_compositions): Fix last fix.
27462
274632007-06-14 Jason Rumney <jasonr@gnu.org>
27464
27465 * w32.c (get_process_times_fn): New function pointer.
27466 (globals_of_w32): Intialize it if present in kernel32.dll.
27467 (w32_get_internal_run_time): New function.
27468
27469 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27470
274712007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27472
27473 * composite.c (update_compositions): Check the validness of
27474 compositions.
27475
274762007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27477
27478 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27479 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27480
27481 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27482 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27483
27484 * macgui.h (USE_MAC_TOOLBAR): New define.
27485
27486 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27487 Return immediately unless popup is activated.
27488
27489 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27490 background to scroll bar gap.
27491 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27492 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27493 scroll bars on frame edge. Check fringe background extension.
27494 Don't clear extended fringe background area.
27495 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27496 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27497 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27498 [USE_MAC_TOOLBAR]: New macros.
27499 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27500 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27501 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27502 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27503 [USE_MAC_TOOLBAR]: New functions.
27504 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27505 manually if previous repositioning has failed.
27506 (mac_handle_keyboard_event): Use precomputed event kind.
27507 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27508 as tool bar item click. Handle mouse movement over tool bar items.
27509
27510 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27511 toolbar_win_gravity.
27512 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27513 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27514 Add externs.
27515
27516 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27517 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27518
275192007-06-14 Chong Yidong <cyd@stupidchicken.com>
27520
27521 * image.c (search_image_cache): Remove unused variable.
27522
275232007-06-13 Chong Yidong <cyd@stupidchicken.com>
27524
27525 * xfns.c, xmenu.c: Link to xaw3d if available.
27526
275272007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27528
27529 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27530 frame_foreground and frame_background.
27531
27532 * image.c (lookup_image): Save frame foreground and background colors.
27533 (search_image_cache): Check if saved and current frame colors match.
27534
275352007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27536
27537 * regex.c (regex_compile): Remove the `regnum' counter.
27538 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27539
275402007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27541
27542 * term.c: Include intervals.h to declare Fget_text_property.
27543
275442007-06-10 Jason Rumney <jasonr@gnu.org>
27545
27546 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27547
275482007-06-08 Juanma Barranquero <lekktu@gmail.com>
27549
27550 * callint.c (Fcall_interactively):
27551 * editfns.c (Fdelete_and_extract_region):
27552 * fileio.c (Fread_file_name):
27553 * fns.c (Fmapconcat):
27554 * keyboard.c (cmd_error_internal):
27555 * keymap.c (Fkey_description):
27556 * lread.c (openp):
27557 * minibuf.c (read_minibuf):
27558 * search.c (wordify):
27559 * sunfns.c (sel_read):
27560 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27561 * xfns.c (x_default_scroll_bar_color_parameter):
27562 * xmenu.c (menu_help_callback):
27563 * xselect.c (Fx_get_atom_name):
27564 * xterm.c (x_term_init): Use empty_unibyte_string.
27565
275662007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27567
27568 * alloc.c (init_strings): Initialize canonical empty strings.
27569 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27570 canonical empty string when the requested size is 0.
27571
27572 * emacs.c (empty_unibyte_string): Rename from empty_string.
27573 (empty_multibyte_string): New canonical empty string.
27574 (syms_of_emacs): Don't initialize empty_string.
27575
27576 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27577 string, if appropriate.
27578 (empty_unibyte_string, empty_multibyte_string): New externs.
27579 (empty_string): Remove extern.
27580
27581 * lread.c (syms_of_lread): Use empty_unibyte_string.
27582
275832007-06-07 Jason Rumney <jasonr@gnu.org>
27584
27585 * s/ms-w32.h: Don't define HAVE_TZNAME.
27586
27587 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27588
275892007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27590
27591 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27592
27593 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27594 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27595
27596 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27597 Don't call next handler.
27598 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27599 Remove argument. Install handler to application.
27600 (set_frame_menubar): Don't change deep_p.
27601 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27602 FRAME_OUTER_TO_INNER_DIFF_Y.
27603 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27604 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27605 [HAVE_DIALOGS]: New macros.
27606 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27607 Use them.
27608 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27609
27610 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27611 init_service_handler. All callers changed. Return OSStatus value.
27612
27613 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27614 All callers changed so as not to call SetPortWindowPort.
27615 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27616 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27617 mac_draw_string_common.
27618 (mac_draw_image_string_qd): Likewise.
27619 (mac_draw_string_common): Use them. Add INLINE.
27620 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27621 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27622 GetGlobalMouse.
27623 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27624 and FRAME_OUTER_TO_INNER_DIFF_Y.
27625 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27626 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27627 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27628 repositioning window to mac_handle_window_event.
27629 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27630 saving window location to mac_handle_window_event
27631 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27632 (install_menu_target_item_handler): Remove argument in extern.
27633 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27634 Also accept command events.
27635 (do_keystroke): New function created from XTread_socket.
27636 (init_command_handler): Remove functions.
27637 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27638 and save window location by kEventWindowShowing and kEventWindowHiding
27639 handlers here. Don't call next handler for window state change and
27640 focus events.
27641 (mac_handle_application_event, mac_handle_keyboard_event)
27642 [TARGET_API_MAC_CARBON]: New functions.
27643 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27644 kEventWindowShowing and kEventWindowHiding events. Move installation
27645 of mouse, font, text input and menu target item handlers to
27646 install_application_handler.
27647 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27648 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27649 New function.
27650 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27651 Register it.
27652 (XTread_socket) [TARGET_API_MAC_CARBON]:
27653 Consolidate SendEventToEventTarget calls.
27654 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27655 Move application activation handler to mac_handle_application_event.
27656 Move keyboard handler to mac_handle_keyboard_event.
27657 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27658 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27659 init_command_handler. Call install_application_handler.
27660
27661 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27662 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27663
276642007-06-07 Glenn Morris <rgm@gnu.org>
27665
27666 * emacs.c (main): Use `emacs-copyright' in --version output.
27667
276682007-06-06 Chong Yidong <cyd@stupidchicken.com>
27669
27670 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27671
276722007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27673
27674 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27675
27676 * macgui.h: Replace WindowPtr with WindowRef.
27677
27678 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27679 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27680 Replace ControlHandle with ControlRef.
27681 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27682
27683 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27684 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27685 Replace ControlHandle with ControlRef.
27686 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27687 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27688
27689 * macterm.h (struct scroll_bar): Rename member control_handle_low
27690 and control_handle_high to control_ref_low and control_ref_high.
27691 All uses changed.
27692 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27693 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27694 respectively. All uses changed.
27695 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27696 (install_window_handler, remove_window_handler): Replace WindowPtr
27697 with WindowRef in externs.
27698
276992007-06-05 Juanma Barranquero <lekktu@gmail.com>
27700
27701 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27702
277032007-06-03 Nick Roberts <nickrob@snap.net.nz>
27704
27705 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27706
27707 * frame.c (Fmouse_position, Fmouse_pixel_position):
27708 Condition on HAVE_GPM too.
27709
27710 * term.c (term_mouse_highlight): Remove unused variables.
27711 (Fterm_open_connection): Set gpm_zerobased to 1.
27712 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27713 Use zero based co-ordinates.
27714 (handle_one_term_event): Report a drag as mouse movement too.
27715
27716 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27717
277182007-06-03 Chong Yidong <cyd@stupidchicken.com>
27719
27720 * image.c (search_image_cache): New function. Require background
27721 color match if background color is unspecified in the image spec.
27722 (uncache_image, lookup_image): Use it.
27723
277242007-06-01 Juanma Barranquero <lekktu@gmail.com>
27725
27726 * window.c (Fshrink_window): Reflow docstring.
27727
277282007-06-02 Chong Yidong <cyd@stupidchicken.com>
27729
27730 * Version 22.1 released.
27731
277322007-06-01 Richard Stallman <rms@gnu.org>
27733
27734 * xfns.c (x_encode_text): Add GCPRO.
27735
277362007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27737
27738 * xfns.c (x_set_name_internal): Save encoded name before
27739 x_encode_text in case string data is relocated.
27740
277412007-05-31 Richard Stallman <rms@gnu.org>
27742
27743 * buffer.c (syms_of_buffer): Doc fix.
27744
277452007-05-30 Nick Roberts <nickrob@snap.net.nz>
27746
27747 * sysdep.c (init_sys_modes): Add rather than replace with
27748 O_NONBLOCK.
27749
27750 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27751 term_mouse_moveto.
27752
27753 * termhooks.h (term_mouse_moveto): New extern.
27754
27755 * term.c (mouse_face_window): Rename...
27756 (Qmouse_face_window): ...to this.
27757 (term_show_mouse_face, term_clear_mouse_face)
27758 (term_mouse_highlight): Use Qmouse_face_window.
27759 (term_mouse_moveto): New function.
27760 (term_mouse_position): Make it work.
27761 (syms_of_term): Uncomment assignment to mouse_position_hook.
27762 Staticpro Qmouse_face_window.
27763
277642007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27765
27766 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27767 around current_column call.
27768
277692007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27770
27771 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27772 * xdisp.c (next_element_from_buffer):
27773 * window.c (delete_window):
27774 * term.c (term_mouse_highlight):
27775 * msdos.c (getdefdir):
27776 * macterm.c (mac_create_bitmap_from_bitmap_data)
27777 (init_font_name_table):
27778 * fns.c (Fsxhash):
27779 * data.c (Fmake_local_variable):
27780 * ccl.c (ccl_driver): Likewise.
27781
277822007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27783
27784 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27785 Call mac_wakeup_from_rne on window size change.
27786
277872007-05-25 Chong Yidong <cyd@stupidchicken.com>
27788
27789 * image.c (uncache_image): Fix typo.
27790
277912007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27792
27793 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27794
277952007-05-22 Richard Stallman <rms@gnu.org>
27796
27797 * xterm.c (x_connection_closed): Remove NO_RETURN.
27798
277992007-05-22 Martin Rudalics <rudalics@gmx.at>
27800
27801 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27802
278032007-05-21 Chong Yidong <cyd@stupidchicken.com>
27804
27805 * image.c (uncache_image): New function.
27806 (Fimage_refresh): New function.
27807
278082007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27809
27810 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27811
278122007-05-20 Nick Roberts <nickrob@snap.net.nz>
27813
27814 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27815 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27816
278172007-05-20 Nick Roberts <nickrob@snap.net.nz>
27818
27819 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27820 conditional on [HAVE_GPM_H].
27821
278222007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27823
27824 * syntax.c (skip_chars): Update syntax-table only after we checked that
27825 the new location is valid.
27826
278272007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27828
27829 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27830 mac_get_window_bounds.
27831
278322007-05-20 Nick Roberts <nickrob@snap.net.nz>
27833
27834 * Makefile.in (LIBGPM): Allow it to be set from configure.
27835 If set then link Emacs with it.
27836
27837 * config.in: Regenerate.
27838
27839 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27840 New externs.
27841
27842 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27843 Include gpm.h.
27844 (handle_one_term_event, term_gpm): New externs.
27845
27846 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27847 and allow it to be interrupted by SIGIO.
27848
27849 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27850 (wait_reading_process_output): Wait on gpm_fd too.
27851 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27852 (add_gpm_wait_descriptor_called_flag): New variable.
27853 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27854
27855 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27856 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27857 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27858 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27859 (make_lispy_event): Add case GPM_CLICK_EVENT.
27860 (read_avail_input): Handle mouse input.
27861
27862 * term.c (write_glyphs_with_face): New function.
27863 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27864 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27865 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27866 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27867 (last_mouse_x, last_mouse_y): New variables.
27868 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27869 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27870 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27871 (Fterm_close_connection): New functions.
27872 (term_init): Initialise mouse_face_window.
27873
278742007-05-19 Chong Yidong <cyd@stupidchicken.com>
27875
27876 * xdisp.c (redisplay_window): If first window line is a
27877 continuation line, recompute the new window start instead of
27878 recentering.
27879
278802007-05-18 Glenn Morris <rgm@gnu.org>
27881
27882 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27883 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27884
278852007-05-17 Glenn Morris <rgm@gnu.org>
27886
27887 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27888
278892007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27890
27891 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27892 dead key repeat and up events.
27893
278942007-05-14 Chong Yidong <cyd@stupidchicken.com>
27895
27896 * image.c (pbm_load): Check image size for monochrome pbm.
27897
278982007-05-13 Chong Yidong <cyd@stupidchicken.com>
27899
27900 * xterm.c (XTread_socket): Revert last change.
27901
279022007-05-12 Chong Yidong <cyd@stupidchicken.com>
27903
27904 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27905
27906 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27907
279082007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27909
27910 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27911 mixup (YAILOM).
27912
279132007-05-07 Andreas Schwab <schwab@suse.de>
27914
27915 * keymap.c (Flookup_key): Fix typo in last change.
27916
279172007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27918
27919 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27920 mapping for unibyte strings.
27921
279222007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27923
27924 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27925 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27926
279272007-04-29 Richard Stallman <rms@gnu.org>
27928
27929 * insdel.c (replace_range): For undo, record insertion first.
27930
279312007-04-29 Andreas Schwab <schwab@suse.de>
27932
27933 * lisp.h (VECSIZE): Use OFFSETOF.
27934
279352007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27936
27937 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27938 disabled lines.
27939
279402007-04-28 Richard Stallman <rms@gnu.org>
27941
27942 * lread.c (read_escape): In a string, \s is always space.
27943
279442007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27945
27946 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27947
27948 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27949 submenu for menu bar items.
27950
27951See ChangeLog.10 for earlier changes.
27952
27953;; Local Variables:
27954;; coding: utf-8
27955;; add-log-time-zone-rule: t
aac0c6e3
MR
27956;; End:
27957
e3eb1dae 27958 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27959
27960 This file is part of GNU Emacs.
27961
27962 GNU Emacs is free software: you can redistribute it and/or modify
27963 it under the terms of the GNU General Public License as published by
27964 the Free Software Foundation, either version 3 of the License, or
27965 (at your option) any later version.
27966
27967 GNU Emacs is distributed in the hope that it will be useful,
27968 but WITHOUT ANY WARRANTY; without even the implied warranty of
27969 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27970 GNU General Public License for more details.
27971
27972 You should have received a copy of the GNU General Public License
27973 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27974
27975;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40