Merge changes from emacs-23 branch.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b7bdc47c
LMI
12010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
a952d5f3
LMI
3 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4
5 * dispextern.h: EMACS_INT/int fixup.
6
7 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
8 fixup.
9
b7bdc47c
LMI
10 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
11
41118bd3
EZ
122010-09-25 Eli Zaretskii <eliz@gnu.org>
13
2452438f
EZ
14 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
15 (Fselect_window, window_scroll_pixel_based)
16 (window_scroll_line_based, Frecenter, Fset_window_configuration):
17 Use EMACS_INT for buffer positions.
18
19 * textprop.c (validate_interval_range, interval_of)
20 (property_change_between_p, Fadd_text_properties)
21 (set_text_properties_1, Fremove_text_properties)
22 (Fremove_list_of_text_properties, Ftext_property_any)
23 (Ftext_property_not_all, copy_text_properties)
24 (text_property_list, extend_property_ranges)
25 (verify_interval_modification): Use EMACS_INT for buffer
26 positions.
27
f877c546
EZ
28 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
29 for buffer positions.
30
31 * process.c (read_process_output, send_process)
32 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
33 and string positions and size.
34
da43f021
EZ
35 * print.c (print_object, print_string, strout): Use EMACS_INT for
36 string indices.
37
38 * minibuf.c (string_to_object): Use EMACS_INT for string position
39 and size.
40
41 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
42
43 * lread.c <read_from_string_index, read_from_string_index_byte>
44 <read_from_string_limit, readchar_count>: Define EMACS_INT.
45 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
46 buffer positions and string length.
47
41118bd3
EZ
48 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
49 EMACS_INT.
50 (echo_truncate, adjust_point_for_property, read_char)
51 (gen_help_event, make_lispy_event, modify_event_symbol)
52 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
53 for buffer positions and string length.
54
55 * keyboard.h (gen_help_event): Adjust prototype.
56
57 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
58
59 * commands.h <last_point_position>: Declare EMACS_INT.
60
61 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
62 (truncate_echo_area): Accept EMACS_INT argument.
63
64 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
65
66 * lisp.h (truncate_echo_area): Adjust prototype.
67
68 * composite.c (composition_adjust_point): Return EMACS_INT.
69
70 * composite.h (composition_adjust_point): Adjust prototype.
71
ba3033ee
JB
722010-09-25 Juanma Barranquero <lekktu@gmail.com>
73
74 * process.c (Fmake_network_process): When arg :host is 'local,
75 use address 127.0.0.1, not name "localhost". (Bug#6781)
76
4f3a2f8d
EZ
772010-09-24 Eli Zaretskii <eliz@gnu.org>
78
5816888b
EZ
79 * indent.c (Fcurrent_indentation, indented_beyond_p)
80 (compute_motion): Use EMACS_INT for buffer position variables.
81
82 * lisp.h (indented_beyond_p): Adjust prototype.
83
84 * buffer.c (overlay_strings): Return EMACS_INT.
85
86 * buffer.h (overlay_strings): Adjust prototype.
87
88 * region-cache.c (pp_cache): Adjust format to arguments.
89
90 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
91 (call_debugger): Use EMACS_INT for specpdl_size related variables.
92 (verror): Use EMACS_INT for size of allocated buffer.
93
ace1712c
EZ
94 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
95 positions.
96
97 * xdisp.c (redisplay_internal, try_window_id)
98 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
99 EMACS_INT for buffer positions.
100
f5276b75 101 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
102
103 * dispnew.c (increment_matrix_positions)
104 (increment_row_positions, copy_glyph_row_contents)
105 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
106 positions.
107
108 * dispextern.h (mode_line_string, marginal_area_string)
109 (increment_matrix_positions, increment_row_positions): Adjust
110 prototypes.
111
112 * data.c (Faref, Faset): Use EMACS_INT for string length and
113 positions.
114
115 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
116 characters to insert.
117
118 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
119 position and size.
120
4f3a2f8d
EZ
121 * syntax.c (scan_words, update_syntax_table)
122 (prev_char_comend_first, back_comment, skip_chars)
123 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
124 EMACS_INT for buffer and string positions.
125
126 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
127
128 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
129 positions.
130
db063399
LMI
1312010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
132
f0812d35
LMI
133 * scroll.c (calculate_scrolling, line_ins_del)
134 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
135 conversion.
136
f5c7fc27
LMI
137 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
138 (region_cache_backward, region_cache_forward)
139 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
140 conversion.
141
db063399
LMI
142 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
143
144 * eval.c (verror): Fix EMACS_INT/int conversion.
145
07914cd0 146 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
147 (print_preprocess, print_check_string_charset_prop)
148 (print_object): Fix EMACS_INT/int conversion.
149
150 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
151
e6d4aefa
EZ
1522010-09-24 Eli Zaretskii <eliz@gnu.org>
153
69481da7
EZ
154 * callproc.c (Fcall_process): Use EMACS_INT for count of
155 characters read from the subprocess.
156
61bfec98
EZ
157 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
158 positions.
159 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
160 positions.
161
145582a0
EZ
162 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
163 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
164 length.
165 (advance_to_char_boundary, Fset_buffer_multibyte)
166 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
167 (overlay_touches_p, record_overlay_string, overlay_strings)
168 (recenter_overlay_lists, fix_start_end_in_overlays)
169 (modify_overlay, Fmove_overlay, report_overlay_modification)
170 (evaporate_overlays): Use EMACS_INT for buffer positions.
171
172 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
173 prototypes.
174
446470a9
EZ
175 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
176 positions.
177
e6d4aefa
EZ
178 * fns.c (Fcompare_strings, Fstring_lessp, concat)
179 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
180 (Fsubstring_no_properties, substring_both, Ffillarray)
181 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
182 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
183 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
184 (Fmd5): Use EMACS_INT for buffer and string positions and length
185 variables and arguments.
186
187 * lisp.h (substring_both): Adjust prototype.
188
eb652396
JB
1892010-09-24 Juanma Barranquero <lekktu@gmail.com>
190
191 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
192 * w32fns.c (clipboard_sequence_fn): Don't declare.
193 (globals_of_w32fns): Don't initialize it.
194
266a86bd 1952010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
196
197 * syntax.c (back_comment): Detect the case where a 1-char comment
198 starter is also the 2nd char of a 2-char comment ender.
199
266a86bd 2002010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
201
202 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
203
40283062
LMI
2042010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
205
db063399
LMI
206 * eval.c (verror): EMACS_INT/int cleanup.
207
faf8b5bc
LMI
208 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
209 unwind_protect more than 2GB worth of functions.
210
211 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
212
40283062
LMI
213 * lisp.h: Have oblookup take EMACS_INT to allow interning big
214 string and avoid compiler warnings.
215 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
216 all users.
217
218 * lread.c (oblookup): EMACS_INT/int cleanup.
219
220 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
221
fe3537c3
EZ
2222010-09-23 Eli Zaretskii <eliz@gnu.org>
223
224 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
225
226 * lisp.h (clip_to_bounds): Adjust prototype.
227
228 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
229
0350982f
LMI
2302010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
231
84c9ce05
LMI
232 * lisp.h: doprnt.c EMACS_INT/int cleanup.
233
234 * doprnt.c (doprnt): EMACS_INT/int cleanup.
235
236 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
237 cleanup.
238
0350982f
LMI
239 * lisp.h: Change the definition of all marker.c functions that
240 take and return buffer stuff to be EMACS_INT instead of int.
241
242 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
243 (buf_charpos_to_bytepos, bytepos_to_charpos)
244 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
245 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
246 for all buffer positions.
247
c50bd0d2
CY
2482010-09-23 Chong Yidong <cyd@stupidchicken.com>
249
250 * intervals.c (traverse_intervals, rotate_right, rotate_left)
251 (split_interval_right, find_interval, next_interval)
252 (delete_node, delete_interval, interval_deletion_adjustment)
253 (adjust_intervals_for_deletion, merge_interval_right)
254 (merge_interval_left, graft_intervals_into_buffer)
255 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
256
257 * intervals.h (traverse_intervals): Update prototype.
258
14162469
EZ
2592010-09-23 Eli Zaretskii <eliz@gnu.org>
260
c098fdb8
EZ
261 * indent.c (compute_motion): Use EMACS_INT for arguments to
262 region_cache_forward.
263
264 * region-cache.c (struct boundary, struct region_cache): Use
265 EMACS_INT for positions.
266 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
267 (delete_cache_boundaries, set_cache_region)
268 (invalidate_region_cache, know_region_cache)
269 (region_cache_forward, region_cache_backward, pp_cache): Use
270 EMACS_INT for buffer positions.
271
272 * region-cache.h (know_region_cache, invalidate_region_cache)
273 (region_cache_forward, region_cache_backward): Adjust prototypes.
274
275 * search.c (string_match_1, fast_c_string_match_ignore_case)
276 (looking_at_1, scan_buffer, scan_newline)
277 (find_next_newline_no_quit, find_before_next_newline)
278 (search_command, trivial_regexp_p, search_buffer, simple_search)
279 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
280 and string positions and length.
281
caefdbe7
EZ
282 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
283 (find_before_next_newline): Adjust prototypes.
c098fdb8 284
29cdc13e
EZ
285 * editfns.c (transpose_markers, update_buffer_properties)
286 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
287 (get_pos_property, Fconstrain_to_field)
288 (Fline_beginning_position, Fline_end_position, Fprevious_char)
289 (Fchar_after, Fchar_before, Finsert_char)
290 (Finsert_buffer_substring, Fcompare_buffer_substrings)
291 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
292 EMACS_INT for buffer and string position variables.
c098fdb8 293 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
294
295 * lisp.h (clip_to_bounds): Adjust prototype.
296
e79123aa
EZ
297 * intervals.c (traverse_intervals, rotate_right, rotate_left)
298 (balance_an_interval, split_interval_right, split_interval_left)
299 (find_interval, next_interval, update_interval)
300 (adjust_intervals_for_insertion, delete_node, delete_interval)
301 (interval_deletion_adjustment, adjust_intervals_for_deletion)
302 (offset_intervals, merge_interval_right, merge_interval_left)
303 (graft_intervals_into_buffer, adjust_for_invis_intang)
304 (move_if_not_intangible, get_local_map, copy_intervals)
305 (copy_intervals_to_string, compare_string_intervals)
306 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 307 and for interval tree size.
e79123aa
EZ
308
309 * intervals.h (traverse_intervals, split_interval_right)
310 (split_interval_left, find_interval, offset_intervals)
311 (graft_intervals_into_buffer, copy_intervals)
312 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
313 (update_interval): Adjust prototypes.
314
579c18d0
EZ
315 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
316 Use EMACS_INT for buffer position variables and arguments.
317
318 * composite.c (get_composition_id, find_composition)
319 (run_composition_function, compose_text)
320 (composition_gstring_width, autocmp_chars)
321 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
322 for buffer positions and string length variables and arguments.
323
324 * composite.h (get_composition_id, find_composition, compose_text)
325 (composition_gstring_width): Adjust prototypes.
326
327 * editfns.c (Fformat): Use EMACS_INT for string size variables.
328
329 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
330 EMACS_INT for string positions.
331
332 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
333 position arguments.
334
335 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
336
337 * character.c (parse_str_as_multibyte, str_as_multibyte)
338 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
339 (string_count_byte8, string_escape_byte8, c_string_width)
340 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
341 EMACS_INT for string length variables and arguments.
14162469
EZ
342
343 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
344 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
345 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
346 prototypes.
347
579c18d0
EZ
348 * font.c (font_intern_prop): Use EMACS_INT for string length
349 variables.
350
351 * font.c (font_intern_prop): Use EMACS_INT for string length
352 variables.
353
14162469
EZ
354 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
355 variables.
356
357 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
358 (Fmake_string): Protect against too large strings.
359 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
360 (live_misc_p): Use ptrdiff_t instead of int for pointer
361 differences.
362 (string_bytes, check_sblock, check_string_free_list)
363 (allocate_string_data, compact_small_strings, Fmake_string)
364 (Fmake_bool_vector, make_string, make_unibyte_string)
365 (make_multibyte_string, make_string_from_bytes)
366 (make_specified_string_string, Fmake_list, Fmake_vector): Use
367 EMACS_INT for string length variables and arguments.
368 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
369 (Fpurecopy): Use EMACS_INT for string size.
370 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
371 for vector size.
372
373 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
374 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
375 (make_pure_string, string_bytes, check_point_in_composition):
376 Adjust prototypes.
14162469 377
c8a66ab8
EZ
3782010-09-22 Eli Zaretskii <eliz@gnu.org>
379
380 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
381 (check_translation): Use EMACS_INT for buffer positions and
382 length.
383
384 * undo.c (record_marker_adjustment, record_delete)
385 (record_change, record_point, record_insert)
386 (record_property_change, Fprimitive_undo): Use EMACS_INT for
387 buffer positions.
388
389 * lisp.h (record_marker_adjustment, record_delete)
390 (record_change, record_point, record_insert)
391 (record_property_change, Fprimitive_undo): Adjust prototypes.
392
38c54d9d
JB
3932010-09-22 Juanma Barranquero <lekktu@gmail.com>
394 Eli Zaretskii <eliz@gnu.org>
395
396 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
397
413d18e7
EZ
3982010-09-22 Eli Zaretskii <eliz@gnu.org>
399
400 * minibuf.c (Fminibuffer_contents)
401 (Fminibuffer_contents_no_properties)
402 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
403 positions.
404
405 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
406 mark.
407
408 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
409 (allocate_string_data): Accept EMACS_INT for string length.
410
411 * editfns.c (Ffield_string, Ffield_string_no_properties)
412 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
413 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
414 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
415 (Ffield_end): Use EMACS_INT for buffer positions.
416
417 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
418 point with mark.
419
420 * lisp.h (allocate_string_data, make_uninit_string)
421 (make_uninit_multibyte_string, make_buffer_string)
422 (make_buffer_string_both): Adjust prototypes.
423
4b9832a6
CY
4242010-09-22 Chong Yidong <cyd@stupidchicken.com>
425
426 * xml.c: Switch to GNU indentation.
427 (make_dom): Change parse tree format to match xml.el.
428 (Fxml_parse_html_string_internal): Rename from html-parse-string.
429 (Fxml_parse_string_internal): Rename from xml-parse-string.
430
86282aab
KH
4312010-09-22 Kenichi Handa <handa@m17n.org>
432
433 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
434 only if we are not at a composition.
435 (set_iterator_to_next): Give it->end_charpos to
436 composition_compute_stop_pos.
437 (set_iterator_to_next, next_element_from_buffer): Likewise.
438
439 * dispnew.c (buffer_posn_from_coords): Fix position when the
440 current display element is a grapheme cluster in bidi-reordered
441 region.
442
840b985a
AR
4432010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
444
445 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
446 the regions may overlap.
447
5bc88f4b
JB
4482010-09-21 Juanma Barranquero <lekktu@gmail.com>
449
450 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
451
92bc9a36
DN
4522010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
453
d19e096e
DN
454 * emacs.c: Do not include sys/ioctl.h, not needed.
455
92bc9a36
DN
456 * doprnt.c: Do not include stdlib.h, config.h does it.
457 Move #include before macro definition.
458
15f844ac
DN
4592010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
460
48e24408
DN
461 * Makefile.in (temacs): Link using $(CC) not $(LD).
462 (LD_FIRSTFLAG): Define using autoconf.
463 (LD): Remove.
464
65539506
DN
465 Remove HAVE_TERMIOS definitions.
466 * s/usg5-4-common.h (HAVE_TERMIOS):
467 * s/template.h (HAVE_TERMIOS):
468 * s/gnu-linux.h (HAVE_TERMIOS):
469 * s/darwin.h (HAVE_TERMIOS):
470 * s/cygwin.h (HAVE_TERMIOS):
471 * s/bsd-common.h (HAVE_TERMIOS):
472 * s/aix4-2.h (HAVE_TERMIOS):
473 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
474 defined on all non-MS platforms.
475 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
476
15f844ac
DN
477 * xterm.c (xt_action_hook): Use const.
478
7d701334
JB
4792010-09-20 Juanma Barranquero <lekktu@gmail.com>
480
481 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
482 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
483 (gethostname) [!HAVE_SOCKETS]: Remove.
484 (SOCK_REPLACE_HANDLE): Remove macro.
485 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
486 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
487 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
488 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
489
f3ec267a
EZ
4902010-09-18 Eli Zaretskii <eliz@gnu.org>
491
492 * deps.mk (xml.o): Add dependencies.
493
93acd23d
JB
494 * xdisp.c (Fcurrent_bidi_paragraph_direction):
495 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
496
497 * bidi.c (bidi_paragraph_init): Accept an additional argument
498 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
499 search back until a paragraph with a strong directional character
500 is found, and use that to determine paragraph's base direction.
501
502 * dispextern.h (bidi_paragraph_init): Update prototype.
503
69e847be
EZ
5042010-09-17 Eli Zaretskii <eliz@gnu.org>
505
506 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
507 of w32api >= 3.15. (Bug#6989)
508
283357a7
LMI
5092010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
510
511 * process.c (wait_reading_process_output): Don't message about
512 accept-process-output unless the time limit really is zero.
513
4ddb20d6
SM
5142010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
515
516 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
517 int/Lisp_Object mixup).
518
e24ad6dd
J
5192010-09-17 Jan Djärv <jan.h.d@swipnet.se>
520
521 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
522 not HELP.
523
fb0cf781
J
5242010-09-17 Stephen Berman <stephen.berman@gmx.net>
525
526 * frame.c (Ftool_bar_pixel_width): New function to expose tool
527 bar's pixel width to Lisp (Bug#7048).
528
4ddb20d6
SM
5292010-09-14 Juanma Barranquero <lekktu@gmail.com>
530
531 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 532
318a04c6
J
5332010-09-17 Jan Djärv <jan.h.d@swipnet.se>
534
535 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
536 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
537
78a21772
KH
5382010-09-17 Kenichi Handa <handa@m17n.org>
539
540 * ftfont.c (ftfont_check_otf): Fix previous change.
541
fa3f6039
KH
5422010-09-14 Kenichi Handa <handa@m17n.org>
543
544 * ftfont.c (ftfont_check_otf): Fix the case of checking just
545 existence of GSUB or GPOS.
546
2b5491fa
JB
5472010-09-14 Juanma Barranquero <lekktu@gmail.com>
548
549 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
550
c97c655f
LMI
5512010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
552
2b5491fa 553 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
554 what it does.
555 (parse_string): Return nil when the document can't be parsed.
556
6664fc59 5572010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
558
559 * xterm.c (get_current_vm_state): New function.
560 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
561 want_fullscreen so set_wm_state calls are few (Bug#7013).
562 (x_handle_net_wm_state): Move code to get_current_vm_state and
563 call that function.
564
6664fc59 5652010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
566
567 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
568
6664fc59 5692010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
570
571 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
572 we may use designation or locking-shift.
573
6664fc59 5742010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
575
576 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
577 sequence when the source is multibyte.
578
1da70e99
AS
5792010-09-14 Andreas Schwab <schwab@linux-m68k.org>
580
6664fc59
JB
581 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
582 Don't make first argument optional. Doc fix.
1da70e99 583
26632d8d
LMI
5842010-09-14 Leo <sdl.web@gmail.com> (tiny change)
585
586 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
587 parameters for the doc string.
588
21fa8e37
LMI
5892010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
590
591 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
592
5616cc54
SM
5932010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
594
595 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
596 (syms_of_fns): Don't defsubr Sy_or_n_p.
597 * lisp.h: Don't declare Fy_or_n_p.
598 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
599
381408e2
LMI
6002010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
601
602 * xml.c (Fxml_parse_buffer): New function to parse XML files.
603
6042010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
605
606 * xml.c: New file.
607 (Fhtml_parse_buffer): New function to interface to the libxml2
608 html parsing function.
609
733946e7
JB
6102010-09-05 Juanma Barranquero <lekktu@gmail.com>
611
612 * biditype.h: Regenerate.
613
7574650a
AS
6142010-09-04 Andreas Schwab <schwab@linux-m68k.org>
615
616 * nsimage.m (ns_load_image): Check argument types.
617
618 * image.c: Remove all uses of gcpro.
619 (xpm_load): Check all lisp types.
620 (pbm_load): Likewise.
621 (png_load): Likewise.
622 (jpeg_load): Likewise.
623 (tiff_load): Likewise.
624 (gif_load): Likewise.
625 (imagemagick_load_image): Likewise.
626 (imagemagick_load): Likewise.
627 (svg_load): Likewise.
628 (gs_load): Likewise.
629
6e6b8e25
EZ
6302010-09-04 Eli Zaretskii <eliz@gnu.org>
631
632 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
633 try to reorder grapheme clusters, since LGSTRING should always
634 hold them in the logical order.
635 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
636 return glyph codes in the logical order.
637
dbfe4532
AS
6382010-09-04 Andreas Schwab <schwab@linux-m68k.org>
639
640 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 641 (imagemagick_load_image): Fix type mismatch.
5e5992c2 642 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 643
6d7cc563
JD
6442010-09-02 Jan Djärv <jan.h.d@swipnet.se>
645
646 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
647
648 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
649
650 * xselect.c: Remove declaration of cut-buffer objects and functions.
651 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
652 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
653 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
654 (Fx_rotate_cut_buffers_internal): Remove.
655 (syms_of_xselect): Remove defsubr of above.
656 Remove intern of QCUT_BUFFERn.
657
8f4e9110
SM
6582010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
659
660 * cmds.c (Vblink_paren_function): Remove.
661 (internal_self_insert): Make it insert N chars at a time.
662 Don't call blink-paren-function.
663 (Fself_insert_command): Adjust accordingly.
664 (syms_of_cmds): Don't declare blink-paren-function.
665
d419e1d9
KH
6662010-08-31 Kenichi Handa <handa@m17n.org>
667
668 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
669 characters.
670
671 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
672 (produce_glyphs): Don't set it->char_to_display here.
673 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
674 (produce_special_glyphs): Set temp_it.char_to_display before
675 calling produce_glyphs.
676
677 * xdisp.c (get_next_display_element): Set it->char_to_display
678 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
679 characters.
680 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
681 calling PRODUCE_GLYPHS.
682 (append_space_for_newline): Save and store it->char_to_display.
683 Set it->char_to_display before calling PRODUCE_GLYPHS.
684 (extend_face_to_end_of_line): Set it->char_to_display before
685 calling PRODUCE_GLYPHS.
686 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
687 character to its byte value.
688 (get_char_glyph_code): New function.
689 (produce_stretch_glyph): Set it2.char_to_display too before
690 calling x_produce_glyphs.
691 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
692 non-ASCII characters. Don't set it->char_to_display here.
693 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 694 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 695
b819f760
SM
6962010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
697
698 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
699
07fa68a7
CY
7002010-08-31 Chong Yidong <cyd@stupidchicken.com>
701
702 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
703
cd196f12
SM
7042010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
705
706 * marker.c (Fcopy_marker): Make the first arg optional.
707
49a752bb
KH
7082010-08-30 Kenichi Handa <handa@m17n.org>
709
710 * composite.c (composition_update_it): Fix computing of
711 cmp_it->width.
712
769ae9e1
KH
7132010-08-29 Kenichi Handa <handa@m17n.org>
714
9e69cb05 715 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 716 corresponding bytes.
9e69cb05 717
4520b858
J
7182010-08-29 Jan Djärv <jan.h.d@swipnet.se>
719
720 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
721
fe50eb41
KH
7222010-08-26 Kenichi Handa <handa@m17n.org>
723
724 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
725 on calling composition_compute_stop_pos.
726
f6aa6ec6
KH
7272010-08-25 Kenichi Handa <handa@m17n.org>
728
9dfdbc0a
KH
729 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
730 :otf.
731
f6aa6ec6
KH
732 * composite.c (composition_compute_stop_pos): Don't break
733 composition at PT.
734 (composition_reseat_it): Likewise. Fix calculation of character
735 position starting a composition.
736 (Fcomposition_get_gstring): Don't limit the number of components
737 for automatic composition.
738
ff94e32c
KH
7392010-08-25 Kenichi Handa <handa@m17n.org>
740
741 * composite.c (composition_compute_stop_pos): In forward search,
742 pay attention to the possibility that some character after ENDPOS
743 will be composed with charactrs before ENDPOS.
744
1c409d0b
CY
7452010-08-24 Chong Yidong <cyd@stupidchicken.com>
746
747 * keyboard.c (command_loop_1): Don't clobber primary selection
748 during handle-switch-frame (Bug#6872).
749
0c372655
MA
7502010-08-23 Michael Albinus <michael.albinus@gmx.de>
751
752 * dbusbind.c: Accept UNIX domain sockets as bus address.
753 (Fdbus_close_bus): New function.
754 (Vdbus_registered_buses): New variable.
755 (xd_initialize): Implement string as bus address.
756 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
757 (Fdbus_get_unique_name, Fdbus_call_method)
758 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
759 (Fdbus_method_error_internal, Fdbus_send_signal)
760 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
761 check. This is done in xd_initialize_bus. Adapt doc string, if
762 necessary.
763 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
764 Vdbus_registered_buses.
765 (Vdbus_registered_objects_table): Create hash.
766
7133b7ee
JL
7672010-08-22 Juri Linkov <juri@jurta.org>
768
769 * keyboard.c (Fexecute_extended_command): Move reading a command name
770 with `completing-read' to a new Elisp function `read-extended-command'.
771 Call it to read a command to `function' (bug#5364, bug#5214).
772
198a7a97
CY
7732010-08-22 Chong Yidong <cyd@stupidchicken.com>
774
775 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
776
b0126eac 7772010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
778
779 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
780 instead of SAFE_ALLOCA.
781
b0126eac 7822010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
783
784 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
785 (Bug#6214).
786
b0126eac 7872010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
788
789 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
790
b0126eac
CY
7912010-08-22 Jan Djärv <jan.h.d@swipnet.se>
792
793 * doc.c (Fsnarf_documentation): Initialize skip_file before
794 build-files test.
795
692f3ddc 7962010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 797
692f3ddc
JB
798 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
799 New definitions.
b0126eac
CY
800 (HAVE_TERMIO): Remove.
801
5f2f0bc1
EZ
8022010-08-22 Eli Zaretskii <eliz@gnu.org>
803
b613941b
EZ
804 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
805
a583bbef
EZ
806 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
807 for w32.
808
809 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
810 it's done in nt/config.nt.
811
812 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
813
5f2f0bc1
EZ
814 * unexcoff.c (report_error, make_hdr, write_segment)
815 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
816 Convert argument lists and prototypes to ANSI C.
817 (make_hdr, write_segment): Remove unused variables.
818 (unexec): Remove commented-out line. Initialize `new' to shut up
819 compiler warnings.
820
a7ebc409
DN
8212010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
822
823 Simplify termio code.
824 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
825 HAVE_TERMIO code is obsolete.
826 Replace HAVE_TERMIOS conditionals with !DOS_NT.
827 * systty.h: Do not define HAVE_TCATTR.
828 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
829 Do not define EMACS_HAVE_TTY_PGRP. Only define
830 EMACS_GET_TTY_PGRP for !DOS_NT.
831 * sysdep.c: Include sysselect.h unconditionally. Do not include
832 sys/ioctl.h and termios.h, systty.h does it. Use
833 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
834 (init_baud_rate): Remove HAVE_TERMIO code.
835 (child_setup_tty): Remove HAVE_TERMIO code.
836 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
837 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
838 (new_ltchars, new_tchars): Remove, unused.
839 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
840 code. Remove special casing for __mips__, it was a no-op. Remove
841 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
842 (init_sys_modes): Remove HPUX special case.
843 * process.c: Include stdlib.h unconditionally. Do not include
844 fcntl.h, systty.h does it. Remove conditional code for
845 HAVE_SERIAL, it is always true.
846 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
847 always true when SIGNALS_VIA_CHARACTERS is true.
848 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
849 !WINDOWSNT means HAVE_TERMIOS.
850 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
851 conditional, which is true for all HAVE_TERMIOS systems.
852 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
853 instead of HAVE_TERMIOS.
854 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
855 EMACS_HAVE_TTY_PGRP.
856 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
857 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
858 anyway.
859
40629f17
EZ
8602010-08-21 Eli Zaretskii <eliz@gnu.org>
861
862 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
863 mirroring pixel positions.
864
d931da8c
DN
8652010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
866
b5c76d0c
DN
867 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
868 write only.
869 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
870 malloc_sbrk_used, nothing uses them.
871
74815588
DN
872 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
873 defined, unconditionally defined in lisp.h.
874
f5817d1c
DN
875 * term.c: Do not include <termios.h>, systty.h does it.
876
d931da8c
DN
877 * s/unixware.h (HAVE_TCATTR):
878 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
879 systty.h defines it when HAVE_TERMIOS is defined.
880
ff2de6d2 8812010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 882
b43c883c 883 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 884 terminals: add one-character offset for R2L lines.
b43c883c 885
491a1546
EZ
886 * emacs.c <emacs_version>: Add a comment regarding
887 msdos/mainmake.v2's dependency on the syntax of this declaration.
888
2396cbba
EZ
8892010-08-20 Eli Zaretskii <eliz@gnu.org>
890
891 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
892 position for R2L lines by mirroring the pixel position wrt the
893 text are box. Improve commentary.
894
7df6150a
AS
8952010-08-20 Andreas Schwab <schwab@linux-m68k.org>
896
897 * image.c (imagemagick_clear_image): Remove debugging output.
898
a2e5caf7
SM
8992010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
900
901 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
902 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
903 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
904 self-insert-face.
905 (syms_of_cmds): Initialize the new vars.
906
20d60baf
JR
9072010-08-19 Jason Rumney <jasonr@gnu.org>
908
cc477da7
JR
909 * w32menu.c (set_frame_menubar): Remove call to undefined function.
910
20d60baf
JR
911 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
912
2c0ac867
J
9132010-08-19 Jan Djärv <jan.h.d@swipnet.se>
914
915 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
916
93352106
EZ
9172010-08-18 Eli Zaretskii <eliz@gnu.org>
918
919 * xterm.c (x_draw_bar_cursor):
920 * w32term.c (x_draw_bar_cursor): If the character under cursor is
921 R2L, draw the bar cursor on its right rather than on its left.
922
c785836d
SM
9232010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
924
0193499f
SM
925 * eval.c (Fdefmacro): Only obey one declaration.
926
c785836d
SM
927 * casefiddle.c (casify_region): Setup gl_state.
928
9cb728a5
J
9292010-08-18 Jan Djärv <jan.h.d@swipnet.se>
930
931 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
932
e1e18511
J
9332010-08-18 Jan Djärv <jan.h.d@swipnet.se>
934
935 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
936
64cb6c78
J
9372010-08-18 David De La Harpe Golden <david@harpegolden.net>
938
939 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
940 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
941 QPRIMARY => NXPrimaryPboard.
942 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
943 NXPrimaryPboard => QPRIMARY.
944 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
945 NXSecondaryPboard = SecondarySelection.
946 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
947
0c9b8993
GM
9482010-08-18 Joakim Verona <joakim@verona.se>
949
950 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
951 defined:
952 (imagemagick_image_p): New function to test for ImageMagic image.
953 (imagemagick_load): New function to load ImageMagick image.
954 (imagemagick_load_image): New function, helper for imagemagick_load.
955 (imagemagick-types): New function.
956 (Qimagemagick): New Lisp_object.
957 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 958
c3554f68
SM
9592010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
960
961 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
962 is a string.
963
1ff2e434
J
9642010-08-17 Jan Djärv <jan.h.d@swipnet.se>
965
966 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
967 x_set_tool_bar_position handler.
968
0cc56427
EZ
9692010-08-17 Eli Zaretskii <eliz@gnu.org>
970
971 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
972 x_set_tool_bar_position handler, needed to support changes from
973 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
974
e45a249b
JD
9752010-08-16 Jan Djärv <jan.h.d@swipnet.se>
976
921242c6
J
977 * nsselect.m: include keyboard.h for QPRIMARY, remove its
978 declaration (Bug#6863).
573d150b 979 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 980
e45a249b
JD
981 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
982
983 * keyboard.h (QPRIMARY): Declare (Bug#6864).
984
7c23dd44
CY
9852010-08-16 Chong Yidong <cyd@stupidchicken.com>
986
987 * keyboard.c (command_loop_1): Avoid setting selection twice,
988 since it's done in deactivate-mark as well.
989 (Vselect_active_regions): Change default to t. Replace `lazy'
990 with non-default value `only', meaning only set PRIMARY for
991 temporarily active regions.
992
993 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
994 select-active-regions.
995
0005830c
J
9962010-08-15 Jan Djärv <jan.h.d@swipnet.se>
997
998 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
999 isn't a string.
1000
603dfc72
AS
10012010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1002
1003 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1004
c25ce9d0
J
10052010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1006
c3554f68
SM
1007 * keyboard.c (parse_tool_bar_item): malloc buf.
1008 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1009 new_lbl (Bug#6855).
c25ce9d0 1010
5872c762
EZ
10112010-08-14 Eli Zaretskii <eliz@gnu.org>
1012
b236615c
EZ
1013 * xterm.c (x_draw_stretch_glyph_string):
1014 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1015 the cursor on the right edge of the stretch glyph.
1016
c3554f68
SM
1017 * xdisp.c (window_box_right_offset, window_box_right):
1018 Fix commentary.
b236615c 1019
5872c762
EZ
1020 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1021 direction when point is inside a run of whitespace characters.
1022
1023 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1024
e66f9a1b
JR
10252010-08-14 Jason Rumney <jasonr@gnu.org>
1026
1027 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1028
79d6f59e
CY
10292010-08-14 Chong Yidong <cyd@stupidchicken.com>
1030
1031 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1032
1c9b4129
JR
10332010-08-13 Jason Rumney <jasonr@gnu.org>
1034
1035 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1036 (MessageBoxW_Proc): New function typedef.
1037 (unicode-message-box): New function pointer.
1038 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1039
2b4e6277
J
10402010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1041
1042 * frame.h (Qtool_bar_position): Declare.
1043
1044 * xfns.c (Fx_create_frame): Call x_default_parameter for
1045 Qtool_bar_position.
1046
94c97d85
EZ
10472010-08-13 Eli Zaretskii <eliz@gnu.org>
1048
8ee81892
EZ
1049 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1050 (report_error, report_error_1): Ditto.
1051 (write_segment): Remove "#if 0" unused code.
1052 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1053 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1054 (start_of_text): Remove unused function (was used only if NO_REMAP
1055 was NOT defined).
1056
891ef8f7
EZ
1057 * msdos.c (IT_set_face): Fix format string to match argument
1058 types.
1059 (IT_write_glyphs, IT_note_mode_line_highlight)
1060 (IT_set_frame_parameters): Remove unused variables.
1061 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1062 (IT_set_terminal_modes): Disambiguate expression in if clause.
1063 (Fmsdos_remember_default_colors): Return Qnil.
1064 (IT_set_frame_parameters): Add parens to disambiguate boolean
1065 expression for logging the cursor type to termscript.
1066 (keyboard_layout_list, keypad_translate_map)
1067 (grey_key_translate_map): Add braces in inner initializers.
1068 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1069 (dos_rawgetc): Remove unused label.
1070 (XMenuActivate): Add braces to remove ambiguous `else'.
1071 (dos_ttraw): Always return a value.
1072 (spawnve): Declare.
1073 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1074
1075 * dosfns.h (x_set_title): Declare.
1076
1077 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1078 Remove unused variables.
1079
1080 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1081 variables.
1082 (init_dosfns): Declare get_lim_data.
1083 (system_process_attributes): Declare Fget_internal_run_time.
1084
38e41e0e
EZ
1085 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1086 list to be consistent with menu.h.
1087
94c97d85
EZ
1088 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1089 warnings due to mixing of "char *" and "const char *".
1090
c5683ceb
SM
10912010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 Introduce a new comment style "c" flag.
1094 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1095 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1096 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1097 (syntax_prefix_flag_p): New function.
1098 (Fstring_to_syntax): Understand new "c" flag.
1099 (Finternal_describe_syntax_value): Recognize new flag; use the
1100 SYNTAX_FLAGS_* macros.
1101 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1102 comment style to accomodate the new styles.
1103 (back_comment, forw_comment, Fforward_comment, scan_lists)
1104 (scan_sexps_forward): Update code to obey the new comment style flag.
1105
1106 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1107
1108 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1109
7aee76f4
J
11102010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1111
3a46642b
J
1112 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1113 first.
94dff98f 1114 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1115
1116 * gtkutil.h (xg_check_special_colors): Declare.
1117
1118 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1119 (xg_create_frame_widgets): Connect theme name changes to
1120 style_changed_cb.
1121
42ca4633
J
1122 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1123 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1124 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1125 string literal. file is const char*.
42ca4633
J
1126
1127 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1128 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1129 props. Free them at the end.
1130
1131 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1132
c5683ceb
SM
1133 * xrdb.c (get_system_app): Make path const and use char *p for
1134 non-const char.
42ca4633
J
1135
1136 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1137 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1138 char *.
1139 (button_names): Is const char *.
1140 (xdialog_show): error_name and pane_string is const.
1141
1142 * process.h (synch_process_death): Is const char*.
1143
1144 * w32menu.c (w32_menu_show):
1145 * nsmenu.m (ns_menu_show): error parameter is const char **.
1146
1147 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1148 is const char **.
1149
1150 * menu.c (Fx_popup_menu): error_name is const.
1151
1152 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1153 with unsigned char and XtPointer with void *.
1154
1155 * gtkutil.h: Replace widget_value with struct _widget_value.
1156 (enum button_type, struct _widget_value): Remove and use the one from
1157 keyboard.h.
1158
1159 * gtkutil.c (get_utf8_string): Always return an allocated string.
1160 Parameter is const.
1161 (create_dialog, xg_create_one_menuitem, create_menus)
1162 (xg_item_label_same_p, xg_update_menu_item): Free result from
1163 get_utf8_string.
1164 (xg_separator_p, xg_item_label_same_p): label is const.
1165
1166 * font.h (font_open_by_name): Make name const.
1167
1168 * font.c (font_open_by_name): Make name const.
1169
1170 * floatfns.c (matherr): Use a const char* variable for x->name.
1171
1172 * emacs.c (main): Pass char[] to putenv instead of literal.
1173
1174 * callproc.c (synch_process_death): Make const.
1175 (Fcall_process): Make signame const.
1176
9c5bd55a
J
1177 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1178 (addDisplayItemWithImage): Use const char*.
1179
1180 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1181 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1182
1183 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1184
1185 * keyboard.h (_widget_value): name, value and key are const char*.
1186
7aee76f4
J
1187 * unexmacosx.c (unexec_error): Use const char *.
1188
09d93395
DN
11892010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1190
1191 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1192 (font_parse_name, font_open_by_name):
09d93395 1193 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1194 (font_parse_name, font_open_by_name): Remove const.
09d93395 1195
671d409f
AS
11962010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1197
1198 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1199 definition.
1200
1201 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1202 * m/amdx86-64.h: Likewise.
1203 * m/arm.h: Likewise.
1204 * m/hp800.h: Likewise.
1205 * m/ia64.h: Likewise.
1206 * m/ibmrs6000.h: Likewise.
1207 * m/ibms390.h: Likewise.
1208 * m/intel386.h: Likewise.
1209 * m/iris4d.h: Likewise.
1210 * m/m68k.h: Likewise.
1211 * m/macppc.h: Likewise.
1212 * m/mips.h: Likewise.
1213 * m/sh3.h: Likewise.
1214 * m/sparc.h: Likewise.
1215 * m/template.h: Likewise.
1216 * m/vax.h: Likewise.
1217 * m/xtensa.h: Likewise.
1218 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1219 WORDS_BIG_ENDIAN.
1220 * lisp.h: Likewise.
1221 * md5.c: Likewise.
1222 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1223
8ea90aa3
DN
12242010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1225
1226 Use const char* instead of char*.
1227 Reduce the number of warnings with -Wwrite-strings.
1228 * xrdb.c (get_environ_db, get_system_name):
1229 * unexelf.c (find_section):
1230 * term.c (string_cost, string_cost_one_line, per_line_cost)
1231 (get_named_tty, init_tty):
1232 * sysdep.c (sys_subshell):
1233 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1234 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1235 * search.c (Freplace_match):
1236 * process.c (Fmake_network_process, send_process, init_process):
1237 * lread.c (Fload, init_lread):
1238 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1239 * keyboard.c (parse_tool_bar_item, struct event_head):
1240 * gtkutil.h (xg_get_font_name):
1241 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1242 (make_widget_for_menu_item, make_menu_item, create_menus)
1243 (xg_make_tool_item):
1244 * font.c (parse_matrix, font_parse_name):
1245 * floatfns.c (rounding_driver, float_error_fn_name):
1246 * filelock.c (get_boot_time_1, lock_file_1):
1247 * fileio.c (barf_or_query_if_file_exists, check_writable):
1248 * editfns.c (get_system_name, get_operating_system_release)
1249 (Fencode_time, Fset_time_zone_rule):
1250 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1251 * buffer.c (defvar_per_buffer): Use const.
1252
7815fe19 12532010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1254
692f3ddc 1255 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1256 (struct charset_sort_data): New struct.
1257 (charset_compare): New function.
692f3ddc 1258 (Fsort_charsets): New function.
7a84eee5
KH
1259 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1260
1261 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1262 number in CTEXT extended segment.
1263
7815fe19 12642010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1265
1266 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1267 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1268
7815fe19 12692010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1270
1271 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1272 (Fhash_table_size): Fix typos in docstrings.
1273 (Fmake_hash_table): Doc fix.
1274
7815fe19 12752010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1276
1277 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1278 Doc fix (bug#5625).
1279
7815fe19 12802010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1281
1282 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1283 the MSDOS definition.
1284
1b6d8cf0
DN
12852010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1286
675e2c69
DN
1287 Use const char* instead of char*.
1288 * xterm.c (x_create_toolkit_scroll_bar):
1289 * xfont.c (xfont_list_pattern):
1290 * xfns.c (x_default_scroll_bar_color_parameter)
1291 (xic_create_fontsetname, x_default_font_parameter)
1292 (x_screen_planes):
1293 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1294 (store_mode_line_string, decode_mode_spec, display_string):
1295 * menu.c (digest_single_submenu):
1296 * keymap.h (initial_define_key, initial_define_lispy_key):
1297 * keymap.c (initial_define_key, initial_define_lispy_key):
1298 * image.c (image_error, image_keyword):
1299 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1300 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1301 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1302 (ftfont_list, ftfont_match):
1303 * frame.c (frame_parm_table):
1304 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1305 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1306 (font_add_log, font_deferred_log):
1307 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1308 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1309 (font_add_log, font_deferred_log):
1310 * emacs.c (argmatch):
1311 * dispextern.h (struct it):
1312 * coding.c (ENCODE_DESIGNATION):
1313 * charset.c (define_charset_internal): Use const.
1314
25717ca1
DN
1315 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1316
c5683ceb
SM
1317 * xrdb.c: Remove include guard.
1318 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1319 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1320 realloc->xrealloc instead of using #defines.
1321
efb41e21
EZ
13222010-08-08 Eli Zaretskii <eliz@gnu.org>
1323
cd21226d 1324 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1325 * editfns.c (Fline_beginning_position, Fline_end_position):
1326 State in the doc strings that start and end of line are in the
1327 logical order.
cd21226d 1328
efb41e21
EZ
1329 * xdisp.c (display_line): Move the handling of overlay arrow after
1330 the call to find_row_edges. (Bug#6699)
1331
746812d9
CY
13322010-08-07 Chong Yidong <cyd@stupidchicken.com>
1333
1334 * keyboard.c (command_loop_1):
1335 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1336
9852377f
CY
13372010-08-07 Chong Yidong <cyd@stupidchicken.com>
1338
1339 * insdel.c (prepare_to_modify_buffer): Save active region text to
1340 Vsaved_region_selection.
1341
1342 * xselect.c (QPRIMARY): Move to keyboard.c.
1343
1344 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1345 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1346 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1347
0e9c8657
JB
13482010-08-07 Juanma Barranquero <lekktu@gmail.com>
1349
1350 * alloc.c (lisp_malloc):
1351 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1352 * charset.h (emacs_mule_charset):
1353 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1354 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1355 (bitch_at_user):
1356 * lisp.h (Fcheck_coding_system, Fget_text_property)
1357 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1358 Remove duplicate declarations.
1359
648801d1
DN
13602010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1361
32bc6709
DN
1362 * process.c: Simplify include logic.
1363
3ef1d108
DN
1364 * keyboard.h (quit_char): Add declaration.
1365 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1366 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1367 Add declarations.
3ef1d108
DN
1368 * sysdep.c:
1369 * w32.c: Remove the above declarations.
1370
97ec208f
DN
1371 Remove extern declarations in .c files, .h files have them.
1372 * xterm.c:
1373 * xdisp.c:
97ec208f
DN
1374 * msdos.c:
1375 * image.c:
1376 * gtkutil.c:
1377 * fileio.c:
1378 * eval.c: Remove declarations.
1379
94eed851
DN
1380 * frame.c (frame_params): Make const.
1381
36e053eb
DN
1382 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1383
0e843971
DN
1384 * emacs.c (emacs_copyright, emacs_version): Make static.
1385 (Vinitial_window_system, Vauto_save_list_file_name)
1386 (Vinhibit_redisplay): Remove declarations.
1387 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1388 for AIX.
1389
648801d1
DN
1390 Use const for some arrays and functions.
1391 * xterm.h (xg_set_icon_from_xpm_data):
1392 * xfns.c (xg_set_icon_from_xpm_data):
1393 * term.c (fkeys):
1394 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1395 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1396 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1397 (frame.c frame_parms):
1398 * emacs-icon.h (gnu_xpm_bits):
1399 * callint.c (callint_argfuns): Use const.
1400
8646d999
J
14012010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1402
1403 * sysdep.c: Move include term.h last of includes (Bug#6812).
1404
cb4545ad
EZ
14052010-08-06 Eli Zaretskii <eliz@gnu.org>
1406
1407 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1408
1409 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1410
1411 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1412
da7e2be6
JB
14132010-08-06 Juanma Barranquero <lekktu@gmail.com>
1414
1415 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1416
3d608a86
J
14172010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1418
7908fb60
J
1419 * xterm.h (x_get_focus_frame): Declare.
1420
1421 * keyboard.h (poll_for_input_1): Unconditionally declare.
1422
4094bf36
J
1423 * nsterm.h (x_set_menu_bar_lines): Declare.
1424
1425 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1426
3d608a86
J
1427 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1428
1429 * window.c: Include menu.h.
1430
1431 * unexmacosx.c (print_region_list, print_regions)
1432 (build_region_list, find_emacs_zone_regions)
1433 (unexec_regions_merge, read_load_commands, dump_it)
1434 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1435
1436 * term.c: Check HAVE_SYS_IOCTL_H.
1437
686b968e 1438 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1439
686b968e 1440 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1441
1442 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1443 (ns_ring_bell, ns_defined_color, hide_hourglass)
1444 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1445 Convert to ANSI C prototypes.
1446 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1447 before code.
1448
1449 * nsterm.h : Include sysselect.h.
1450 (x_sync, x_get_focus_frame, x_set_mouse_position)
1451 (x_set_mouse_pixel_position, x_make_frame_visible)
1452 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1453 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1454 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1455 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1456 Declare.
3d608a86
J
1457
1458 * nsmenu.m (popup_activated, name_is_separator)
1459 (syms_of_nsmenu): Convert to ANSI C prototypes.
1460 (runMenuAt): Prototypes and move declarations before code.
1461
1462 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1463
1464 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1465 prototypes.
1466
1467 * nsfns.m (have_menus_p, ns_display_info_for_name)
1468 (x_set_cursor_type, ns_appkit_version_str)
1469 (ns_appkit_version_int, ns_do_applescript)
1470 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1471 (syms_of_nsfns): Convert to ANSI C prototypes.
1472
1473 * menu.h (x_set_menu_bar_line): Declare.
1474 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1475
1476 * lisp.h (fmod_float): Declare.
1477
1478 * image.c (xpm_scan, xpm_make_color_table_v)
1479 (xpm_put_color_table_v, xpm_get_color_table_v)
1480 (xpm_make_color_table_h, xpm_put_color_table_h)
1481 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1482 (xpm_load): Convert to ANSI C prototypes.
1483
1484 * emacs.c: Include nsterm.h if HAVE_NS.
1485
1486 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1487
fce70521
DN
14882010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1489
1490 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1491 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1492 (socket_options): Use const char* for name.
1493
a11889ab
JB
14942010-08-06 Juanma Barranquero <lekktu@gmail.com>
1495
1496 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1497
1498 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1499 Don't declare xmalloc_widget_value and digest_single_submenu.
1500
1501 * w32font.c (Qlatin): Remove declaration.
1502
1503 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1504
c95b508f 1505 * dired.c (compile_pattern): Restore declaration.
a11889ab 1506
6254cdda
DN
15072010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1508
04bab72c
DN
1509 Remove extern declarations in .c files, .h files have them.
1510 * data.c:
1511 * dired.c:
1512 * editfns.c:
1513 * filelock.c:
1514 * fns.c:
1515 * font.c:
1516 * fontset.c:
1517 * frame.c:
1518 * fringe.c:
1519 * ftfont.c:
1520 * gtkutil.c:
1521 * indent.c:
1522 * keyboard.c:
1523 * keymap.c:
1524 * lread.c:
1525 * menu.c:
1526 * print.c:
1527 * search.c:
1528 * sound.c:
1529 * window.c:
1530 * xdisp.c:
1531 * xfaces.c:
1532 * xfns.c:
1533 * xfont.c:
1534 * xftfont.c:
1535 * xmenu.c:
1536 * xterm.c: Remove declarations.
1537
dff94ed5
DN
1538 Cleanup syssignal.h.
1539 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1540 (main_thread): Move down to remove #ifdef.
1541 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1542 Remove conditional definition following unconditional ones.
1543
99f3388e
DN
1544 * lisp.h: Remove HAVE_SHM code, unused.
1545 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1546 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1547 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1548 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1549 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1550 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1551 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1552 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1553 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1554 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1555 (Qwindow_scroll_functions, Vafter_load_alist)
1556 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1557 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1558 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1559 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1560 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1561 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1562 (initial_argv, last_nonmenu_event, load_in_progress)
1563 (noninteractive_need_newline, scroll_margin): Add declarations.
1564
1565 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1566 declarations, menu.h has them.
1567 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1568 (Vinput_method_function, Qinput_method_function)
1569 (Qevent_symbol_element_mask, last_event_timestamp):
1570 * dispextern.h (Voverflow_newline_into_fringe):
1571 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1572 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1573 (syms_of_w32font, syms_of_nsfont):
1574 * fontset.h (find_font_encoding, Qlatin):
1575 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1576 (Vtool_bar_mode, set_frame_menubar):
1577 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1578 * xterm.h (Qx_gtk_map_stock):
1579 * keymap.h (meta_prefix_char): Add declarations.
1580
9f5dd6f2
DN
1581 * term.c: Remove dead code.
1582
6254cdda
DN
1583 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1584 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1585 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1586 which is what was there before BSD_PGRPS was removed.
1587
29cf3e20
EZ
15882010-08-05 Eli Zaretskii <eliz@gnu.org>
1589
1590 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1591
1592 * unexcoff.c: Renamed from unexec.c.
1593
aaa0a19a
SM
15942010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1595
1596 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1597
8d1d9587
JB
15982010-08-03 Johan Bockgård <bojohan@gnu.org>
1599
1600 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1601 (Bug#6744)
8d1d9587 1602
9a747ba6
JD
16032010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1604
4d464ae4
JD
1605 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1606 to TRUE if depth of screen is < 16.
1607
ac01763e
JD
1608 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1609 USE_GTK_TOOLTIP.
e0d62a9b
JB
1610 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1611 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1612 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1613 USE_GTK_TOOLTIP.
1614 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1615
1616 * xterm.h (USE_GTK_TOOLTIP): New define.
1617 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1618
9a747ba6
JD
1619 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1620 to Control-D (Bug#6771).
1621
7b0815ba
JB
16222010-08-02 Juanma Barranquero <lekktu@gmail.com>
1623
1624 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1625 Wording by Drew Adams <drew.adams@oracle.com>.
1626
aa1859f5
J
16272010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1628
1629 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1630 ttip_lbl.
1631
1632 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1633 calling gtk_widget_queue_draw.
1634 (x_free_frame_resources): Call xg_free_frame_widgets.
1635
1636 * xfns.c (x_gtk_use_system_tooltips): New variable.
1637 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1638 new gtkutil tooltip functions to show the tooltip.
1639 (Fx_hide_tip): Call xg_hide_tooltip.
1640 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1641
1642 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1643 (xg_show_tooltip, xg_hide_tooltip): Declare.
1644
1645 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1646 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1647 New functions.
aa1859f5
J
1648 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1649 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1650 Remove code that is commented out.
1651
76417ef4
SM
16522010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1653
1654 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1655
16041401
CY
16562010-07-31 Chong Yidong <cyd@stupidchicken.com>
1657
1658 * xselect.c (x_own_selection): Use list4.
1659
2c09a58f
DN
16602010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1661
1662 * buffer.c (Qwindow): Do not define, already defined in data.c.
1663 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1664
59df9fdd 16652010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1666
59df9fdd
JB
1667 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1668 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1669 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1670 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1671 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1672
1b231651
DN
16732010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1674
1675 Rename s/usg5-4.h -> s/usg5-4-common.h.
1676 * s/usg5-4.h: Rename file to ...
1677 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1678 * s/unixware.h:
1679 * s/sol2-6.h:
1680 * s/irix6-5.h: Update includes accordingly.
1681
bfeabdc3
JD
16822010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1683
2ebf1083
J
1684 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1685
bfeabdc3 1686 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1687 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1688 Remove toolbar_height.
1689 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1690 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1691 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1692 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1693
1694 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1695
1696 * xfns.c (x_set_tool_bar_position): New function.
1697 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1698 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1699 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1700
1701 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1702 and FRAME_TOOLBAR_LEFT_WIDTH.
1703
1704 * gtkutil.h (xg_change_toolbar_position): Declare.
1705
1706 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1707 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1708 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1709 (xg_create_frame_widgets): Create a hobox for placing widgets
1710 vertically. Use gtk_box_pack_start.
1711 (xg_height_or_width_changed): Renamed from xg_height_changed.
1712 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1713 (xg_update_frame_menubar, free_frame_menubar): Change to
1714 xg_height_or_width_changed.
1715 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1716 size correctly. Remove hardcoded 4, instead use handlebox size -
1717 toolbar size.
1718 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1719 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1720 (xg_pack_tool_bar): POS is a new parameter.
1721 Set orientation of tool bar based on pos.
1722 Only make handlebox_widget if NULL.
1723 Check if tool bar goes to vbox or hbox depending on pos.
1724 (xg_update_tool_bar_sizes): New function.
686b968e 1725 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1726 height, call xg_update_tool_bar_sizes instead.
1727 (free_frame_tool_bar): Remove from hbox or vbox depending on
1728 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1729 (xg_change_toolbar_position): New function.
1730
1731 * frame.h (struct frame): Add tool_bar_position.
1732 (Qbottom): Declare.
1733
1734 * frame.c (Qtool_bar_position): New variable.
1735 (make_frame): Set tool_bar_position to Qtop.
1736 (frame_parms): Add tool-bar-position.
1737 (x_report_frame_params): Store tool_bar_position.
1738 (x_set_fringe_width): Reset wm size hint after fringe changes.
1739
26469a38
DN
17402010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1741
1742 Make lisp_time_argument declaration work on all systems.
1743 * lisp.h (lisp_time_argument): Move declaration ...
1744 * systime.h (lisp_time_argument): ... here
1745 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1746
8848b728
JD
17472010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1748
1749 * vm-limit.c (POINTER): Add typedef for it.
1750 (start_of_data): Change return type from POINTER to char *.
1751
1752 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1753 HAVE_WINDOW_SYSTEM.
1754
76fd1ee9
DN
17552010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1756
0441987e
DN
1757 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1758 Remove reference to __osf__, unused.
1759
56a000c7
DN
1760 * mem-limits.h: Remove duplicated includes.
1761 (NULL): Remove definition, unused.
1762 (POINTER): Remove definition.
1763 (start_of_data): Use char* in prototype, as the function
1764 definition does.
1765
e6cba650
DN
1766 Remove extern declarations from .c files, and them to .h files.
1767 * keyboard.h (Qhelp_echo, waiting_for_input)
1768 (input_available_clear_time, ignore_mouse_drag_p)
1769 (Vdouble_click_time, real_this_command, Vthis_original_command):
1770 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1771 (Voverriding_local_map_menu_flag):
1772 * lisp.h (Qinteractive_form, use_file_dialog)
1773 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1774 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1775 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1776 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1777 (Qfunction, debug_on_next_call, Qfield)
1778 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1779 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1780 (Qfile_directory_p, Qinsert_file_contents)
1781 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1782 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1783 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1784 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1785 (Qminibuffer_prompt)
1786 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1787 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1788 (gray_bitmap_bits, xic_create_fontsetname):
1789 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1790
1791 * xsmfns.c (Vuser_login_name):
1792 * xrdb.c (Vdouble_click_time):
1793 * xfaces.c (xic_create_fontsetname):
1794 * w32select.c (waiting_for_input):
1795 * print.c (minibuffer_auto_raise):
1796 * msdos.c (Qhelp_echo):
1797 * macros.c (real_this_command):
1798 * keymap.c (Voverriding_local_map):
1799 * xterm.c (poll_for_input_1, gray_bitmap_width)
1800 (gray_bitmap_height, gray_bitmap_bits;
1801 * xmenu.c ( Voverriding_local_map)
1802 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1803 (use_file_dialog, Xt_app_con):
1804 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1805 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1806 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1807 (Qtool_bar_lines, ignore_mouse_drag_p):
1808 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1809 (Qrear_nonsticky, nconc2):
1810 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1811 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1812 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1813 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1814 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1815 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1816 (gc_in_progress):
1817 * doc.c (Voverriding_local_map, Qremap):
1818 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1819 (Vcompletion_regexp_list):
1820 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1821 (Qcompletion_ignore_case):
1822 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1823 (Vhistory_length, Vthis_original_command, real_this_command)
1824 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1825 * image.c (Qrisky_local_variable):
1826 * fontset.c (QCname):
1827 * fns.c (minibuffer_auto_raise, QCname):
1828 * dispnew.c (char_ins_del_cost):
1829 * composite.c (font_fill_lglyph_metrics):
1830 * cmds.c (Qface, Vtranslation_table_for_input):
1831 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1832 * ccl.c (charset_unicode):
1833 * callproc.c (Vtemporary_file_directory):
1834 * buffer.c (emacs_strerror): Remove extern declarations.
1835
1836 * data.c (Qwindow): Make non-static, used from other files too.
1837 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1838
76fd1ee9
DN
1839 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1840 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1841 * s/usg5-4.h (COFF):
1842 * s/template.h:
1843 * s/msdos.h (COFF, NO_REMAP):
1844 * s/ms-w32.h (NO_REMAP):
1845 * s/hpux10-20.h (NO_REMAP):
1846 * m/sparc.h (SEGMENT_MASK):
1847 * m/m68k.h (NO_REMAP):
1848 * m/intel386.h (SEGMENT_MASK):
1849 * m/arm.h (NO_REMAP):
1850 * m/alpha.h (COFF):
1851 * m/template.h: Remove references to unused defines.
1852
8a52f00a
JD
18532010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1854
1855 * xsettings.c (Ftool_bar_get_system_style): Also check for
1856 Qtext_image_horiz.
1857
1858 * xdisp.c (Qtext_image_horiz): Define.
1859 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1860 to documentation of tool-bar-style.
8a52f00a
JD
1861
1862 * lisp.h (Qtext_image_horiz): Declare.
1863
1864 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1865 style text_image_horiz.
1866
89dc303e
DN
18672010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1868
60799703
DN
1869 * emacs.c (Fkill_emacs): Remove return statement.
1870
37254dc1
DN
1871 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1872 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1873 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1874 local extern declarations.
1875
71c7345a
DN
1876 * xmenu.c: Do not included lwlib.h, not needed.
1877
6ba577cb
DN
1878 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1879
fdb183d6
DN
1880 * process.c: Move definitions earlier to minimize #ifdefs.
1881
1882 * xterm.h (x_get_customization_string, x_load_resources)
1883 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1884 (x_check_errors, x_property_data_to_lisp, defined_color)
1885 (xic_set_xfontset, x_defined_color): Use const.
1886
1887 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1888 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1889
1890 * xselect.c (selection_data_to_lisp_data)
1891 (x_property_data_to_lisp):
1892 * xrdb.c (x_get_string_resource, file_p)
1893 (x_get_customization_string, magic_file_p, search_magic_path)
1894 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1895 (x_get_string_resource): Use const.
1896
1897 * xfns.c: Include xlwmenu.h when USE_LUCID.
1898 (x_defined_color, xic_set_xfontset): Use const.
1899 (Fx_hide_tip): Remove local extern declaration.
1900
1901 * xfaces.c (Qmouse_face): Remove declaration.
1902 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1903 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1904
1905 * xdisp.c (do_mouse_tracking): Remove declaration.
1906 (add_to_log): Use const.
1907
1908 * minibuf.c (Qmouse_face): Remove declaration.
1909
1910 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1911
1912 * keyboard.h (do_mouse_tracking): Add declaration.
1913
1914 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1915 (QCdata, QCtype, Qcenter): Remove declarations.
1916
1917 * frame.c (x_get_resource_string, x_get_string_resource)
1918 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1919 (x_default_parameter): Use const.
1920
1921 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1922 (QCheight, QCsize, QCname): Remove declarations.
1923
1924 * emacs.c (main): Remove local extern declaration.
1925
1926 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1927 declarations.
1928
1929 * dispnew.c: Remove duplicate #include <unistd.h>.
1930 (update_window, update_frame_1, init_display): Remove local extern
1931 declarations.
1932
1933 * dispextern.h (add_to_log): Remove declaration.
1934 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1935 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1936
1937 * dired.c (scmp): Add const.
1938 (directory_files_internal): Remove local extern declaration.
1939
1940 * data.c (Finteractive_form): Use const.
1941
1942 * composite.c (syms_of_composite): Remove local extern declarations.
1943
1944 * charset.c (add_to_log): Remove declaration.
1945
1946 * character.c (strwidth, parse_str_to_multibyte): Add const.
1947
1948 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1949
1950 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1951
89dc303e 1952 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1953 (Lisp_Subr): Make doc and intspec constant.
1954 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1955 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1956 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1957 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1958 (display_arg): Add declarations.
89dc303e 1959
0ed082fe 19602010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1961
1962 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1963
0ed082fe
JB
1964 * window.c (Fwindow_height): Doc fix (bug#6518).
1965
19662010-07-27 Juanma Barranquero <lekktu@gmail.com>
1967
1968 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1969
ccaf0336
DN
19702010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1971
977105dc
DN
1972 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1973 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1974 functions.
1975
f5ada890
DN
1976 * frame.h (Qtty_color_mode): Add declaration.
1977
ccaf0336
DN
1978 * lisp.h (Ftop_level, Fexit_recursive_edit)
1979 (Fabort_recursive_edit): Mark as NO_RETURN.
1980
dfe3c90f
KH
19812010-07-26 Kenichi Handa <handa@m17n.org>
1982
1983 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1984 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1985
7d383292
JB
19862010-07-26 Juanma Barranquero <lekktu@gmail.com>
1987
1988 * lread.c (unreadpure, mapatoms_1): Make static.
1989
da31e629
JB
19902010-07-25 Juanma Barranquero <lekktu@gmail.com>
1991
1992 * terminfo.c (tparam): Fix prototype of tparm.
1993
7bfa6d77
AS
19942010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1995
dcc19aac
AS
1996 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1997 find start of text segment.
1998 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1999 is defined.
2000
7bfa6d77
AS
2001 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2002
63f9a672
KB
20032010-07-25 Ken Brown <kbrown@cornell.edu>
2004
2005 * vm-limit.c (check_memory_limits): Fix previous change;
2006 accidentally reverted an earlier change.
2007
24933075
KB
20082010-07-25 Ken Brown <kbrown@cornell.edu>
2009
2010 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2011 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2012
361358ea
JB
20132010-07-25 Juanma Barranquero <lekktu@gmail.com>
2014
2015 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2016 * dired.c (opendir, readdir): Fix prototypes.
2017 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2018 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2019 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2020 (telldir): Remove declaration.
2021 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2022 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2023 * syssignal.h (strsignal): Fix prototype.
2024 * term.c (tparam): Fix prototype.
2025 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2026 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2027 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2028 and __morecore.
2029 * w32gui.h (XParseGeometry): Fix prototype.
2030 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2031 * w32term.c (my_set_focus): Declare inside #if 0.
2032 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2033 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2034 (drain_message_queue, get_next_msg, post_msg, parse_button)
2035 (ClipboardSequence_Proc): Fix prototypes.
2036 (wait_for_sync): Remove declaration.
2037
630b9592
JB
20382010-07-24 Juanma Barranquero <lekktu@gmail.com>
2039
2040 * w32fns.c (w32_to_x_color): Remove, unused.
2041
6a0d6611
AS
20422010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2043
2044 * lisp.h: Remove leftover P_.
2045
4e8608ff
DN
20462010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2047
2048 * ecrt0.c, unexalpha.c: Remove files, unused.
2049
c8197983
AS
20502010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2051
2052 * cmds.c (internal_self_insert): Make static.
2053 * lisp.h (internal_self_insert): Remove declaration.
2054
97b372d7
JB
20552010-07-23 Juanma Barranquero <lekktu@gmail.com>
2056
33ac0414
JB
2057 * alloc.c (free_float):
2058 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2059 * frame.c (delete_frame_handler):
2060 * ralloc.c (reorder_bloc):
2061 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2062 Remove unused static functions.
2063
94da8397
JB
2064 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2065 it is called only from NS code.
2066
2e6c8532
JB
2067 * w32term.c (my_set_focus): #ifdef away; it is called only from
2068 "#ifdef 0" code.
2069
97b372d7
JB
2070 * w32fns.c (x_edge_detection):
2071 * xfaces.c (may_use_scalable_font_p):
2072 Remove obsolete static declarations.
2073
7c3320d8
JB
20742010-07-20 Juanma Barranquero <lekktu@gmail.com>
2075
2076 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2077 (emacs_blocked_realloc, uninterrupt_malloc):
2078 * fringe.c (w32_reset_fringes):
2079 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2080 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2081 * sound.c (be2hs, do_play_sound):
2082 * vm-limit.c (get_lim_data, ret_lim_data):
2083 * w32term.c (x_free_frame_resources):
2084 * xfaces.c (x_create_gc, x_free_gc):
2085 Convert definitions to standard C.
2086
d5273788
SM
20872010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2088
2089 * eval.c (Feval, Ffuncall): Use the new names.
2090
2091 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2092 (DEFUN): Add braces around the union initialisation and use ## to
2093 specify the right union alternative and avoid a cast.
2094
8d16a259
JB
20952010-07-18 Juanma Barranquero <lekktu@gmail.com>
2096
2097 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2098
3b8eff32
CY
20992010-07-17 Chong Yidong <cyd@stupidchicken.com>
2100
2101 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2102
499322ce
J
21032010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2104
2105 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2106 is related to the menu bar (Bug#6499).
a628ad9d 2107 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2108
f6003da5 21092010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2110
2111 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2112
2113 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2114
2115 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2116 i.e. don't put back ButtonRelease (Bug#6608).
2117
2118 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2119 instead of Window. Call xg_event_is_for_menubar when
2120 USE_GTK (Bug#6499).
2121
2122 * gtkutil.h (xg_event_is_for_menubar): Declare.
2123
2124 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2125
f6003da5 21262010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2127
2128 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2129 when it's the same as the old foreground. (Bug#6609)
2130
23243f29
J
21312010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2132
2133 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2134 widget is non-null (Bug#6645).
2135
2b23d2a6
AS
21362010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2137
01b564ff
AS
2138 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2139 Convert old-style definition.
2140
2b23d2a6
AS
2141 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2142 timestamp argument.
2143
c4affd2c
EZ
21442010-07-15 Eli Zaretskii <eliz@gnu.org>
2145
2146 * fringe.c (update_window_fringes): Restore mistakenly reverted
2147 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2148
cf28cebc
J
21492010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2150
2151 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2152 (SET_SAVED_KEY_EVENT): Remove (not used).
2153 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2154 remove size parameter.
2155 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2156 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2157 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2158 ButtonRelease.
6b2c4bd9
J
2159 (x_set_window_size_1): scroll_bar_actual_width is always
2160 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2161
2162 * xdisp.c (pending_menu_activation): Remove extern declaration.
2163 (prepare_menu_bars): Remove setting of pending_menu_activation.
2164
2165 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2166 (x_activate_menubar): Set popup_activated_flag for Xt also.
2167 Remove setting of pending_menu_activation.
cf28cebc
J
2168 (set_frame_menubar): Remove check of pending_menu_activation.
2169 Declare menubar_size before code. Correct spelling in comment.
2170
f6c1c771
KH
21712010-07-14 Kenichi Handa <handa@m17n.org>
2172
2173 * font.c (font_open_entity): Cancel previous change.
2174 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2175
20477505
EZ
21762010-07-13 Eli Zaretskii <eliz@gnu.org>
2177
77defa9a
EZ
2178 Remove subprocesses #ifdefs.
2179 * process.c <inhibit_sentinels>: Move to the common part.
2180 (Fwaiting_for_user_input_p): Move to the common part; return nil
2181 if async subprocesses aren't supported.
2182 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2183 MS-DOS. Remove "#ifdef subprocesses".
2184 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2185 (gettimeofday): Remove "#ifdef subprocesses".
2186 (wait_without_blocking): Remove function.
2187 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2188 Remove "#ifdef subprocesses".
2189 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2190 compiled on MS-DOS.
2191 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2192 wait_for_termination on MS-DOS.
2193 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2194 initialization of inhibit_sentinels.
2195 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2196 subprocesses" conditional.
2197 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2198 wait_for_termination, since `buffer' cannot be an integer when
2199 async subprocesses are not supported
2200 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2201 for ifdefing away the call to Fprocess_status.
2202
20477505
EZ
2203 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2204 away the entire body of the function.
2205
b3ffc17c
DN
22062010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2207
01faa934
DN
2208 Remove subprocesses #ifdefs from term.c.
2209 * process.c (add_keyboard_wait_descriptor)
2210 (delete_keyboard_wait_descriptor): Move to common section, do
2211 nothing when subprocesses is not defined.
a628ad9d
JB
2212 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2213 Remove subprocesses #ifdefs.
01faa934 2214
b3ffc17c
DN
2215 Convert maybe_fatal to standard C.
2216 * lisp.h (verror): Declare.
2217 * eval.c (verror): New function containing the code from ...
2218 (error): ... this. Call verror.
2219 * term.c (vfatal): New function containing the code from ...
2220 (fatal): ... this. Call vfatal.
2221 (maybe_fatal): Convert to standard C, use variable number of
2222 arguments. Declare as non-return.
2223 (init_tty): Fix maybe_fatal call.
2224
0521f580
DN
22252010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2226
2227 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2228 (_scroll_bar_note_movement): Convert definitions to standard C.
2229 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2230 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2231
ebd15611
DN
22322010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2233
2234 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2235 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2236 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2237 (xaw_jump_callback, xaw_scroll_callback)
2238 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2239 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2240 definitions to standard C.
2241 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2242 (popup_activate_callback, popup_deactivate_callback)
2243 (menu_highlight_callback, menubar_selection_callback)
2244 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2245 (free_frame_menubar, popup_selection_callback, as)
2246 (create_and_show_popup_menu, dialog_selection_callback)
2247 (create_and_show_dialog):
2248 * xfns.c (hack_wm_protocols, x_window):
2249 * xfaces.c (x_update_menu_appearance):
2250 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2251 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2252 (set_frame_size, update_wm_hints, setup_frame_gcs)
2253 (update_various_frame_slots, update_from_various_frame_slots)
2254 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2255 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2256 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2257
de06a2dd
AS
22582010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2259
a628ad9d 2260 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2261
fc549af9
EZ
22622010-07-12 Eli Zaretskii <eliz@gnu.org>
2263
2264 * process.c (setup_process_coding_systems): Move to the part
2265 shared by non-subprocesses systems, and make its body empty when
2266 subprocesses is not defined.
2267 (close_process_descs): Move to the part shared by non-subprocesses
2268 systems.
1408902e
EZ
2269 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2270 ANSI C.
fc549af9 2271
d5a3eaaf
AS
22722010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2273
2274 * editfns.c (transpose_markers): Convert old-style definition.
2275 * emacs.c (abort, shut_down_emacs, fixup_locale)
2276 (synchronize_system_time_locale)
2277 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2278 * floatfns.c (extract_float, matherr, init_floatfns)
2279 (syms_of_floatfns): Likewise.
2280 * fns.c (make_hash_table): Likewise.
2281 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2282 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2283 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2284 (ftfont_variation_glyphs): Likewise.
2285 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2286 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2287 * lread.c (read_filtered_event): Likewise.
2288 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2289 * process.c (wait_reading_process_output): Likewise.
2290 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2291 * search.c (search_buffer, boyer_moore): Likewise.
2292 * syntax.c (scan_sexps_forward): Likewise.
2293 * xdisp.c (try_scrolling): Likewise.
2294 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2295 (face_at_string_position): Likewise.
2296 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2297 * xselect.c (x_get_window_property, receive_incremental_selection)
2298 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2299 Likewise.
2300 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2301
6f704c76
DN
23022010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2303
ded80a25
DN
2304 * callproc.c (child_setup): Remove subprocesses conditional.
2305 Remove code dealing with SET_EMACS_PRIORITY, unused.
2306
49d937f4 2307 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2308 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2309
2310 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2311 (__do_global_dtors, __main): Use void in definition.
2312 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2313 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2314 the only users from ...
2315 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2316 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2317 (HAVE_VOLATILE): Remove, unused.
2318
6f704c76
DN
2319 Convert more function definitions to standard C.
2320 * xdisp.c (window_box_edges, handle_single_display_spec)
2321 (display_string): Convert definition to standard C.
2322 * scroll.c (do_direct_scrolling, scrolling_1):
2323 * dispnew.c (allocate_matrices_for_frame_redisplay)
2324 (mirrored_line_dance):
2325 * coding.c (code_convert_string):
2326 * charset.c (map_charset_chars):
2327 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2328 (Fregister_ccl_program, Fregister_code_conversion_map):
2329 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2330 (head_table): Make static and const.
2331
e6cfa7c3
AS
23322010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2333
2334 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2335 (PROFILING_LDFLAGS): Set from substitution.
2336 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2337 CFLAGS last.
2338
892dd565
KH
23392010-07-12 Kenichi Handa <handa@m17n.org>
2340
6f2cdcd1
KH
2341 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2342 (shortlisp): Likewise.
2343
892dd565
KH
2344 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2345
2346 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2347 of FONT_ENTITY_INDEX.
2348 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2349 property, get the property value dynamically.
2350 (Ffont_put): Accept font-entity and font-object too.
2351 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2352 return value changed.
2353 (syms_of_font): Adjusted for the above change.
2354
ae96d47a
AS
23552010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2356
c8fc18ee
AS
2357 * blockinput.h: Remove obsolete comment.
2358
89887d67
AS
2359 * lisp.h: Include <stddef.h>.
2360 (OFFSETOF): Don't define.
2361 (VECSIZE): Use offsetof instead of OFFSETOF.
2362 (PSEUDOVECSIZE): Likewise.
2363 * process.c (conv_sockaddr_to_lisp): Likewise.
2364 * alloc.c: Don't include <stddef.h>.
2365 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2366
ae96d47a
AS
2367 * process.c: Remove obsolete comment.
2368
635c0aa1
CY
23692010-07-11 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2372
a64df650
AS
23732010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2374
8966b757
AS
2375 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2376 index, rindex.
2377 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2378 * editfns.c (Fuser_full_name, Fformat): Likewise.
2379 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2380 * fileio.c (Ffile_symlink_p): Likewise.
2381 * filelock.c (current_lock_owner): Likewise.
2382 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2383 * fontset.c (fontset_pattern_regexp): Likewise.
2384 * lread.c (read1): Likewise.
2385 * sysdep.c (init_system_name): Likewise.
2386 * xfns.c (select_visual): Likewise.
2387 * s/hpux10-20.h (index, rindex): Don't define.
2388 * s/ms-w32.h (index): Likewise.
2389 * s/usg5-4.h: Likewise.
2390
cf237e27
AS
2391 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2392
a8fe7202
AS
2393 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2394 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2395 (egetenv): Likewise.
2396 * doprnt.c (doprnt): Likewise.
2397 * editfns.c (set_time_zone_rule, format2): Likewise.
2398 * emacs.c (decode_env_path): Likewise.
2399 * eval.c (signal_error, error): Likewise.
2400 * insdel.c (replace_range_2): Likewise.
2401 * keyboard.c (cmd_error_internal): Likewise.
2402 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2403 * print.c (write_string, write_string_1, print_error_message):
2404 Likewise.
2405 * vm-limit.c (warn_function, memory_warnings): Likewise.
2406 * xdisp.c (message1, message1_nolog, message_with_string)
2407 (vmessage, message, message_nolog): Likewise.
2408 * emacs.c: Remove duplicate declaration.
2409 * keyboard.h: Likewise.
2410 * lisp.h: Update prototypes.
2411
bb8e180f
AS
2412 * eval.c: Fix indentation problem.
2413
83380e65
AS
2414 * keyboard.c: Include "process.h"
2415
a64df650
AS
2416 * eval.c: Remove obsolete noinline declaration.
2417 * fns.c: Likewise.
2418
6a8033e1
KR
24192010-07-11 Ken Raeburn <raeburn@raeburn.org>
2420
2421 * doprnt.c (doprnt): Take a va_list argument instead of count and
2422 pointer.
2423 * eval.c (error): Change to a standard-C variadic function.
2424 * xdisp.c (vmessage): Renamed from message, made static, and
2425 changed to take a va_list argument.
2426 (message): New variadic wrapper.
2427 (message_nolog): Now a variadic function, calling vmessage.
2428 * lisp.h: Include stdarg.h for va_list.
2429 (doprnt, error, message, message_nolog): Decls updated.
2430
462aa963
EZ
24312010-07-11 Eli Zaretskii <eliz@gnu.org>
2432
2433 * process.c (syms_of_process) <delete-exited-processes>: Define
2434 even if !subprocesses.
2435 (delete_exited_processes): Ditto.
2436
2437 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2438 (delete_exited_processes): Don't define.
2439
48104462
CY
24402010-07-10 Chong Yidong <cyd@stupidchicken.com>
2441
2442 * frame.c (make_frame): Initialize menu_bar_lines and
2443 tool_bar_lines members.
2444 (make_initial_frame, make_terminal_frame): Initialize
2445 menu_bar_lines using value of menu-bar-mode.
2446
2447 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2448
f388c88a
EZ
24492010-07-10 Eli Zaretskii <eliz@gnu.org>
2450
2451 * process.c: Reshuffle #include's. Condition some of the global
2452 and static variables on `subprocesses'.
2453 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2454 Leave only one implementation.
2455 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2456 (kill_buffer_processes, Flist_system_processes)
2457 (Fprocess_attributes, init_process, syms_of_process): Unify the
2458 implementations for with subprocesses and without them.
2459
723f5a07
J
24602010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2461
2462 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2463 correct size for Motif.
2464 (free_frame_menubar): Call x_set_window_size to update frame size.
2465
2466 * xfns.c (x_window): Set borderWidth to 0 for pane and
2467 EmacsFrame. Frame size calculation is wrong otherwise.
2468
2536a4b7
MA
24692010-07-09 Michael Albinus <michael.albinus@gmx.de>
2470
2471 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2472 allows to suppress errors when polling in Emacs' main loop.
2473 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2474 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2475 (Fdbus_method_error_internal, Fdbus_send_signal)
2476 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2477 (Fdbus_register_method): Use it. (Bug#6579)
2478
5842a27b
DN
24792010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2480
2481 * alloc.c: Convert DEFUNs to standard C.
2482 * buffer.c:
2483 * bytecode.c:
2484 * callint.c:
2485 * callproc.c:
2486 * casefiddle.c:
2487 * casetab.c:
2488 * category.c:
2489 * character.c:
2490 * charset.c:
2491 * chartab.c:
2492 * cmds.c:
2493 * coding.c:
2494 * composite.c:
2495 * data.c:
2496 * dbusbind.c:
2497 * dired.c:
2498 * dispnew.c:
2499 * doc.c:
2500 * dosfns.c:
2501 * editfns.c:
2502 * emacs.c:
2503 * eval.c:
2504 * fileio.c:
2505 * filelock.c:
2506 * floatfns.c:
2507 * fns.c:
2508 * font.c:
2509 * fontset.c:
2510 * frame.c:
2511 * fringe.c:
2512 * image.c:
2513 * indent.c:
2514 * insdel.c:
2515 * keyboard.c:
2516 * keymap.c:
2517 * lread.c:
2518 * macros.c:
2519 * marker.c:
2520 * menu.c:
2521 * minibuf.c:
2522 * msdos.c:
2523 * nsfns.m:
2524 * nsmenu.m:
2525 * nsselect.m:
2526 * print.c:
2527 * process.c:
2528 * search.c:
2529 * sound.c:
2530 * syntax.c:
2531 * term.c:
2532 * terminal.c:
2533 * textprop.c:
2534 * undo.c:
2535 * w16select.c:
2536 * w32console.c:
2537 * w32fns.c:
2538 * w32font.c:
2539 * w32menu.c:
2540 * w32proc.c:
2541 * w32select.c:
2542 * window.c:
2543 * xdisp.c:
2544 * xfaces.c:
2545 * xfns.c:
2546 * xmenu.c:
2547 * xselect.c:
2548 * xsettings.c:
2549 * xsmfns.c: Likewise.
2550
d568829b
EZ
25512010-07-08 Eli Zaretskii <eliz@gnu.org>
2552
2553 * process.c (kbd_is_on_hold, hold_keyboard_input)
2554 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2555
52214050
J
25562010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2557
2558 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2559 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2560 unless USE_LUCID.
2561
313d9eb2
DN
25622010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2563
a628ad9d
JB
2564 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2565 declaration.
d8825aa3 2566
295d0d8f
DN
2567 Clean up include guards.
2568 * tparam.c: Remove include guards for config.h, string.h and code
2569 that assumes #ifndef emacs.
2570 * termcap.c:
2571 * unexalpha.c:
2572 * sysdep.c:
2573 * filemode.c:
2574 * filelock.c:
2575 * bidi.c: Likewise.
2576
49d9e6b0
DN
2577 Remove prefix-args.c
2578 * prefix-args.c: Remove file.
2579 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2580 * Makefile.in (temacs${EXEEXT}): Remove references to
2581 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2582 (mostlyclean): Remove reference to prefix-args.
2583 (prefix-args): Remove.
2584
313d9eb2
DN
2585 Simplify cstart_of_data, start_of_code and related code.
2586 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2587 (start_of_data): Merge into start_of_data function.
2588 * sysdep.c (start_of_text): Remove. Move simplified versions of
2589 it in the only users: unexaix.c and unexec.c.
2590 (read_input_waiting): Remove local declaration of quit_char.
2591 (start, etext): Remove declarations.
2592 (start_of_data): Merge with the version in mem-limits.h and move
2593 to vm-limits.c.
2594 * vm-limit.c (start_of_data): Merged and simplified version of the
2595 code formerly in mem-limits.h and sysdep.c.
2596 * unexec.c (start): New declaration, moved from sysdep.c.
2597 (start_of_text): Simplified version of the code formerly in sysdep.c.
2598 * unexaix.c (start_of_text): Simplified version of the code
2599 formerly in sysdep.c.
2600 * m/alpha.h (HAVE_TEXT_START): Remove.
2601 (TEXT_START): Move ...
2602 * unexalpha.c (TEXT_START): ... here.
2603 * s/hpux10-20.h (TEXT_START): Remove.
2604 * s/darwin.h (TEXT_START):
2605 * m/mips.h (TEXT_START):
2606 * m/macppc.h (HAVE_TEXT_START):
2607 * m/m68k.h (TEXT_START):
2608 * m/iris4d.h (TEXT_START):
2609 * m/intel386.h (TEXT_START):
2610 * m/ibmrs6000.h (TEXT_START):
2611 * m/ia64.h (HAVE_TEXT_START):
2612 * s/msdos.h (TEXT_START): Likewise.
2613
72af86bd
AS
26142010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2615
2616 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2617 (overrun_check_free, xstrdup, allocate_string)
2618 (allocate_string_data, compact_small_strings, Fmake_string)
2619 (make_unibyte_string, make_multibyte_string)
2620 (make_string_from_bytes, make_specified_string, make_float)
2621 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2622 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2623 memcpy, memmove, memset, memcmp.
2624 * atimer.c (start_atimer, set_alarm): Likewise.
2625 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2626 (mmap_realloc, init_buffer_once): Likewise.
2627 * callint.c (Fcall_interactively): Likewise.
2628 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2629 (getenv_internal_1): Likewise.
2630 * casefiddle.c (casify_object): Likewise.
2631 * ccl.c (ccl_driver): Likewise.
2632 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2633 * charset.c (load_charset_map_from_file)
2634 (load_charset_map_from_file, load_charset_map_from_vector)
2635 (Fdefine_charset_internal): Likewise.
2636 * cm.c (Wcm_clear): Likewise.
2637 * coding.c (decode_eol, decode_coding_object)
2638 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2639 * data.c (Faset): Likewise.
2640 * dired.c (directory_files_internal, file_name_completion_stat):
2641 Likewise.
2642 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2643 (clear_glyph_row, copy_row_except_pointers)
2644 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2645 (save_current_matrix, restore_current_matrix)
2646 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2647 (mirror_line_dance, scrolling_window): Likewise.
2648 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2649 Likewise.
2650 * doprnt.c (doprnt): Likewise.
2651 * editfns.c (Fuser_full_name, make_buffer_string_both)
2652 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2653 * emacs.c (sort_args): Likewise.
2654 * eval.c (Fapply, Ffuncall): Likewise.
2655 * fileio.c (Ffile_name_directory, make_temp_name)
2656 (Fexpand_file_name, search_embedded_absfilename)
2657 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2658 (auto_save_error): Likewise.
2659 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2660 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2661 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2662 (Fmake_hash_table): Likewise.
2663 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2664 * ftfont.c (ftfont_text_extents): Likewise.
2665 * getloadavg.c (getloadavg): Likewise.
2666 * image.c (define_image_type, make_image, make_image_cache)
2667 (x_create_x_image_and_pixmap, xbm_image_p)
2668 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2669 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2670 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2671 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2672 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2673 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2674 Likewise.
2675 * indent.c (scan_for_column, compute_motion): Likewise.
2676 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2677 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2678 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2679 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2680 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2681 (store_user_signal_events, menu_bar_items, tool_bar_items)
2682 (process_tool_bar_item, append_tool_bar_item)
2683 (read_char_minibuf_menu_prompt, read_key_sequence)
2684 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2685 Likewise.
2686 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2687 Likewise.
2688 * lisp.h (STRING_COPYIN): Likewise.
2689 * lread.c (Fload, read1, oblookup): Likewise.
2690 * msdos.c (Frecent_doskeys): Likewise.
2691 * nsfns.m (Fx_create_frame): Likewise.
2692 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2693 Likewise.
2694 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2695 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2696 Likewise.
2697 * nsmenu.m (ns_update_menubar): Likewise.
2698 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2699 * print.c (print_unwind, printchar, strout, print_string)
2700 (print_error_message): Likewise.
2701 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2702 (Fmake_network_process, Fnetwork_interface_list)
2703 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2704 (init_process): Likewise.
2705 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2706 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2707 Likewise.
2708 * scroll.c (do_scrolling, do_direct_scrolling)
2709 (scrolling_max_lines_saved): Likewise.
2710 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2711 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2712 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2713 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2714 (emacs_set_tty): Likewise.
2715 * term.c (encode_terminal_code, calculate_costs)
2716 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2717 Likewise.
2718 * termcap.c (tgetst1, gobble_line): Likewise.
2719 * termhooks.h (EVENT_INIT): Likewise.
2720 * tparam.c (tparam1): Likewise.
2721 * unexalpha.c (unexec): Likewise.
2722 * unexec.c (write_segment): Likewise.
2723 * unexmacosx.c (unexec_write_zero): Likewise.
2724 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2725 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2726 * w32font.c (w32font_list_family, w32font_text_extents)
2727 (w32font_list_internal, w32font_match_internal)
2728 (w32font_open_internal, compute_metrics, Fx_select_font):
2729 Likewise.
2730 * w32menu.c (set_frame_menubar, add_menu_item)
2731 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2732 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2733 * w32uniscribe.c (uniscribe_list_family): Likewise.
2734 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2735 * window.c (make_window, replace_window, set_window_buffer)
2736 (Fsplit_window): Likewise.
2737 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2738 (add_to_log, message3, x_consider_frame_title)
2739 (append_space_for_newline, extend_face_to_end_of_line)
2740 (decode_mode_spec_coding, init_glyph_string): Likewise.
2741 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2742 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2743 (face_attr_equal_p, make_realized_face, make_face_cache)
2744 (free_realized_faces, lookup_named_face, smaller_face)
2745 (face_with_height, lookup_derived_face)
2746 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2747 (Finternal_set_font_selection_order, realize_default_face)
2748 (compute_char_face, face_at_buffer_position)
2749 (face_for_overlay_string, face_at_string_position, merge_faces):
2750 Likewise.
2751 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2752 (Fx_window_property, x_create_tip_frame)
2753 (Fx_backspace_delete_keys_p): Likewise.
2754 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2755 (xfont_text_extents): Likewise.
2756 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2757 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2758 * xselect.c (x_queue_event, x_get_window_property)
2759 (receive_incremental_selection): Likewise.
2760 * xsmfns.c (x_session_check_input): Likewise.
2761 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2762 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2763 Likewise.
2764 * character.h (BCOPY_SHORT): Removed.
2765 * config.in: Regenerate.
2766 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2767 * emacs.c (main) [PROFILING]: Don't declare
2768 dump_opcode_frequencies.
2769 * lisp.h (safe_bcopy): Remove declaration.
2770 (memset) [!HAVE_MEMSET]: Declare.
2771 (memcpy) [!HAVE_MEMCPY]: Likewise.
2772 (memmove) [!HAVE_MEMMOVE]: Likewise.
2773 (memcmp) [!HAVE_MEMCMP]: Likewise.
2774 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2775 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2776 Don't define.
2777 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2778 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2779 (BCOPY_DOWNWARD_SAFE): Don't define.
2780 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2781 (memcpy) [!HAVE_MEMCPY]: Define.
2782 (memmove) [!HAVE_MEMMOVE]: Define.
2783 (memcmp) [!HAVE_MEMCMP]: Define.
2784
cb768704
J
27852010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2786
2787 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2788 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2789 New functions.
cb768704
J
2790 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2791 select on empty input mask.
2792 (init_process): Initialize kbd_is_on_hold to 0.
2793
2794 * process.h (hold_keyboard_input, unhold_keyboard_input)
2795 (kbd_on_hold_p): Declare.
2796
2797 * keyboard.c (input_available_signal): Declare.
2798 (kbd_buffer_nr_stored): New function.
2799 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2800 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2801 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2802 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2803 (tty_read_avail_input): If input is on hold, return.
2804 Don't read more that free slots in kbd_buffer (Bug#6571).
2805
3a8ce822
EZ
28062010-07-07 Eli Zaretskii <eliz@gnu.org>
2807
2808 * msdos.h:
2809 * msdos.c:
2810 * dosfns.c:
2811 * w16select.c: Convert function definitions to ANSI C.
2812
a628ad9d
JB
2813 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2814 Remove unused prototypes.
3a8ce822 2815
cf84bb53
JB
28162010-07-07 Juanma Barranquero <lekktu@gmail.com>
2817
2818 * coding.c, sysdep.c: Convert some more functions to standard C.
2819
1a4990fb
JB
28202010-07-07 Juanma Barranquero <lekktu@gmail.com>
2821
2822 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2823 (encode_coding_object): Use SPECPDL_INDEX.
2824 (syms_of_coding): Use DOS_NT.
2825
c0f2f16b
DN
28262010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2827
48fb6855
DN
2828 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2829
c0f2f16b
DN
2830 Make the function member of Lisp_Subr use standard C prototypes.
2831 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2832 (DECL_ALIGN): Add a cast for the function.
2833 * eval.c (Feval, Ffuncall): Use the proper type for each type
2834 function call.
2835
67aecef9
CY
28362010-07-06 Chong Yidong <cyd@stupidchicken.com>
2837
2838 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2839 fringe face id, so face-remapping-alist works (Bug#6091).
2840
b56ceb92
JB
28412010-07-06 Juanma Barranquero <lekktu@gmail.com>
2842
2843 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2844 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2845 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2846
7af07b96
AS
28472010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2848
2849 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2850 * lisp.h: Declare x_get_keysym_name.
2851 * keyboard.c (modify_event_symbol): Don't declare
2852 x_get_keysym_name here.
2853
69e24e34
DN
28542010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2855
2856 * ecrt0.c: Revert conversion to standard C.
2857
d3da34e0 28582010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2859
2860 * vm-limit.c (memory_warnings):
2861 * keyboard.c (modify_event_symbol):
2862 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2863 (round2, emacs_rint):
2864 * process.c (send_process, old_sigpipe): Convert function
2865 definitions and declarations to standard C.
2866
28672010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2868
2869 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2870 * xdisp.c: Convert function definitions to standard C.
2871
2872 * cm.c (cmputc): Arg C is now int, not char.
2873 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2874
00be444c
J
28752010-07-05 James Cloos <cloos@jhcloos.com>
2876
2877 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2878
2879 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2880 _NET_WM_ICON_NAME atoms.
2881
2882 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2883 and _NET_WM_ICON_NAME properties, too, matching what is
2884 done in the Gtk+ case.
2885
e4c8d29a
J
28862010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2887
ff919460
J
2888 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2889
e4c8d29a
J
2890 * xsmfns.c (SSDATA): New macro.
2891 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2892 passed to strlen/strcpy/strcat.
2893 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2894 7:th arg to XChangeProperty to (unsigned char *)
2895
2896 * xsettings.c (something_changedCB, parse_settings)
2897 (apply_xft_settings): Reformat prototype.
2898 (something_changedCB, init_gconf): Remove unused variable i.
2899 (read_settings): Remove unused variable long_len.
2900
2901 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2902 (xg_get_image_for_pixmap, create_dialog)
2903 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2904 (menuitem_highlight_callback, make_menu_item)
2905 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2906 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2907 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2908 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2909 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2910 (xg_tool_bar_item_expose_callback): Reformat prototype.
2911 (xg_update_menubar): GList *group => GSList *group.
2912 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2913 before use.
2914 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2915 to GTK_IMAGE (wimage).
2916
dd4c5104
DN
29172010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2918
898b4c5c
DN
2919 * atimer.c: Use "" instead of <> for local includes for
2920 consistency with the rest of the code.
2921
dd4c5104
DN
2922 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2923 * xrdb.c (get_system_name):
2924 * window.c (shrink_windows):
2925 * syntax.c (forw_comment):
2926 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2927 (ins_del_costs):
2928 * mem-limits.h (start_of_data):
2929 * lread.c (readevalloop):
2930 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2931 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2932 * frame.c (x_get_focus_frame):
2933 * floatfns.c (fmod_float):
2934 * fileio.c (choose_write_coding_system):
2935 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2936 (malloc_initialize_hook, sort_args, synchronize_locale):
2937 * doprnt.c (doprnt):
2938 * dired.c (compile_pattern):
2939 * data.c (fmod_float):
2940 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2941 (map_char_table_for_charset):
2942 * charset.c (define_charset_internal):
2943 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2944 to standard C.
2945
9a39b306 29462010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2947 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2948
2949 * lread.c (read1): Fix up last change to not mess up `c'.
2950
e6cb2cbb
JB
29512010-07-04 Juanma Barranquero <lekktu@gmail.com>
2952
2953 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2954
438105ed
JB
29552010-07-04 Juanma Barranquero <lekktu@gmail.com>
2956
2957 Fix prototypes.
2958
e5447b22 2959 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2960 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2961 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2962 arg, as required by internal_condition_case_1.
dcc7404b 2963 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2964 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2965 (analyse_first): Fix "const const".
e5447b22 2966 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2967 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2968 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2969
971de7fb
DN
29702010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2971
2972 * alloc.c: Convert function definitions to standard C.
2973 * atimer.c:
2974 * bidi.c:
2975 * bytecode.c:
2976 * callint.c:
2977 * callproc.c:
2978 * casefiddle.c:
2979 * casetab.c:
2980 * category.c:
2981 * ccl.c:
2982 * character.c:
2983 * charset.c:
2984 * chartab.c:
2985 * cmds.c:
2986 * coding.c:
2987 * composite.c:
2988 * data.c:
2989 * dbusbind.c:
2990 * dired.c:
2991 * dispnew.c:
2992 * doc.c:
2993 * doprnt.c:
2994 * ecrt0.c:
2995 * editfns.c:
2996 * fileio.c:
2997 * filelock.c:
2998 * filemode.c:
2999 * fns.c:
3000 * font.c:
3001 * fontset.c:
3002 * frame.c:
3003 * fringe.c:
3004 * ftfont.c:
3005 * ftxfont.c:
3006 * gtkutil.c:
3007 * indent.c:
3008 * insdel.c:
3009 * intervals.c:
3010 * keymap.c:
3011 * lread.c:
3012 * macros.c:
3013 * marker.c:
3014 * md5.c:
3015 * menu.c:
3016 * minibuf.c:
3017 * prefix-args.c:
3018 * print.c:
3019 * ralloc.c:
3020 * regex.c:
3021 * region-cache.c:
3022 * scroll.c:
3023 * search.c:
3024 * sound.c:
3025 * strftime.c:
3026 * syntax.c:
3027 * sysdep.c:
3028 * termcap.c:
3029 * terminal.c:
3030 * terminfo.c:
3031 * textprop.c:
3032 * tparam.c:
3033 * undo.c:
3034 * unexelf.c:
3035 * window.c:
3036 * xfaces.c:
3037 * xfns.c:
3038 * xfont.c:
3039 * xftfont.c:
3040 * xgselect.c:
3041 * xmenu.c:
3042 * xrdb.c:
3043 * xselect.c:
3044 * xsettings.c:
3045 * xsmfns.c:
3046 * xterm.c: Likewise.
3047
ae492bec
EZ
30482010-07-03 Eli Zaretskii <eliz@gnu.org>
3049
76ea4cc9
EZ
3050 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3051 frames other than the initial one. Fix reversal of colors when
3052 `reverse' is specified in the frame parameters. Call
3053 update_face_from_frame_parameter instead of
3054 internal-set-lisp-face-attribute. Initialize screen colors from
3055 initial_screen_colors[] when f->default_face_done_p is zero,
3056 instead of depending on being called with default-frame-alist as
3057 the alist argument.
3058
3059 * xfaces.c (update_face_from_frame_parameter): Move out of
3060 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3061 with HAVE_WINDOW_SYSTEM.
3062
1e6255ae
EZ
3063 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3064 to menu-bar-mode, if not set in the frame parameters or in
3065 default-frame-alist.
3066
ae492bec
EZ
3067 * w32console.c (sys_tputs): Adjust argument list to prototype in
3068 term.c.
3069
3a35a84c
JB
30702010-07-03 Juanma Barranquero <lekktu@gmail.com>
3071
3072 * lisp.h (memory_warnings): Fix prototype.
3073
3074 * cm.h (evalcost): Fix prototype.
3075
3076 * cm.c (evalcost): Fix arg type.
3077
c532d349
DN
30782010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3079
3080 * term.c (term_clear_mouse_face, Fidentity):
3081 * syssignal.h (signal_handler_t):
3082 * lisp.h (memory_warnings):
3083 * coding.h (preferred_coding_system):
3084 * cm.h (evalcost):
3085 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3086
c0b36d46
EZ
30872010-07-02 Eli Zaretskii <eliz@gnu.org>
3088
3089 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3090 from prototypes.
3091
3092 * msdos.h (load_pixmap): Don't define away.
3093
383e0970
J
30942010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3095
f57e2426
J
3096 * lisp.h:
3097 * atimer.h: Remove define for P_.
3098
3099 * alloc.c: Remove __P and P_ from .c and .m files.
3100 * atimer.c:
3101 * buffer.c:
3102 * callint.c:
3103 * category.c:
3104 * charset.c:
3105 * chartab.c:
3106 * cm.c:
3107 * coding.c:
3108 * composite.c:
3109 * data.c:
3110 * dired.c:
3111 * dispnew.c:
3112 * doc.c:
3113 * editfns.c:
3114 * emacs.c:
3115 * eval.c:
3116 * fileio.c:
3117 * filelock.c:
3118 * fns.c:
3119 * font.c:
3120 * fontset.c:
3121 * frame.c:
3122 * ftfont.c:
3123 * ftxfont.c:
3124 * gmalloc.c:
3125 * gtkutil.c:
3126 * image.c:
3127 * indent.c:
3128 * intervals.c:
3129 * keyboard.c:
3130 * keymap.c:
3131 * lread.c:
3132 * marker.c:
3133 * menu.c:
3134 * minibuf.c:
3135 * print.c:
3136 * process.c:
3137 * scroll.c:
3138 * search.c:
3139 * sound.c:
3140 * strftime.c:
3141 * syntax.c:
3142 * sysdep.c:
3143 * term.c:
3144 * terminal.c:
3145 * textprop.c:
3146 * unexalpha.c:
3147 * w32console.c:
3148 * w32fns.c:
3149 * w32font.c:
3150 * w32menu.c:
3151 * w32term.c:
3152 * w32uniscribe.c:
3153 * window.c:
3154 * xdisp.c:
3155 * xfaces.c:
3156 * xfns.c:
3157 * xfont.c:
3158 * xftfont.c:
3159 * xmenu.c:
3160 * xselect.c:
3161 * xterm.c: Likewise.
3162
383e0970 3163 Remove P_ and __P macros.
f57e2426
J
3164 * atimer.h: Remove P_ and __P macros.
3165 * buffer.h:
383e0970
J
3166 * category.h:
3167 * ccl.h:
3168 * character.h:
3169 * charset.h:
3170 * cm.h:
3171 * coding.h:
3172 * composite.h:
3173 * dispextern.h:
3174 * disptab.h:
9e892c8d 3175 * dosfns.h:
383e0970
J
3176 * font.h:
3177 * fontset.h:
3178 * frame.h:
3179 * gtkutil.h:
3180 * indent.h:
3181 * intervals.h:
3182 * keyboard.h:
3183 * keymap.h:
3184 * lisp.h:
3185 * macros.h:
3186 * md5.h:
3187 * menu.h:
3188 * msdos.h:
3189 * nsterm.h:
3190 * puresize.h:
3191 * region-cache.h:
3192 * syntax.h:
3193 * syssignal.h:
3194 * systime.h:
3195 * termhooks.h:
9e892c8d 3196 * w32font.h:
383e0970
J
3197 * w32term.h:
3198 * widget.h:
3199 * window.h:
3200 * xgselect.h:
3201 * xsettings.h:
3202 * xterm.h: Likewise.
3203
98601119
DN
32042010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3205
d9170db5
DN
3206 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3207
98601119
DN
3208 Cleanup old code.
3209 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3210 * syssignal.h: Remove code for Lynx, not supported anymore.
3211 * vm-limit.c: Remove unused code the depends on emacs not being
3212 defined and NO_LIM_DATA being defined.
3213 * mem-limits.h: Remove dead code.
3214
1f984e12
J
32152010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3216
c49d071a
J
3217 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3218
9d5405ec
J
3219 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3220 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3221
7a18115b
J
3222 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3223 parameters, they are already absolute.
3224
a628ad9d
JB
3225 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3226 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3227
a628ad9d 3228 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3229
a628ad9d
JB
3230 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3231 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3232
a628ad9d
JB
3233 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3234 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3235
c1ef4455
CY
32362010-06-30 Chong Yidong <cyd@stupidchicken.com>
3237
3238 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3239 check default-frame-alist.
3240
ce8f5a9a
AS
32412010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3242
3243 * process.c (create_process): Avoid using invalid file descriptors.
3244
3245 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3246
bf935339
J
32472010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3248
3249 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3250 Improve documentation. Return font regardless of use_system_font.
3251 (syms_of_xsettings): Improve documentation for font-use-system-font.
3252
7c33a057
CY
32532010-07-10 Chong Yidong <cyd@stupidchicken.com>
3254
2ec1b5ee
CY
3255 * xfaces.c (realize_face): Garbage the frame if a face is removed
3256 (Bug#6593).
3257
32582010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3259
3260 * keyboard.c: Remove duplicate <setjmp.h>.
3261 (read_key_sequence): Remove volatile qualifiers.
3262
32632010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3264
3265 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3266 (struct glyph_row): New members left_fringe_offset and
3267 right_fringe_offset.
3268
3269 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3270 specially.
3271 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3272 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3273
3274 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3275 Take account of bitmap offset.
2ec1b5ee
CY
3276 (draw_window_fringes): Take account of window vscroll.
3277 (update_window_fringes): Likewise. Extend top-aligned top indicator
3278 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3279 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3280 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3281
32822010-07-04 Juanma Barranquero <lekktu@gmail.com>
3283
3284 * w32fns.c (Qtooltip): Declare.
3285 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3286
32872010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3288
3289 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3290 grab on just Press (Bug#6499).
3291
32922010-07-02 Chong Yidong <cyd@stupidchicken.com>
3293
3294 * frame.c (Qtooltip): New var.
3295 (delete_frame): Use it. Fix faulty if statement. Don't update
3296 mode line for tooltip frames. Suggested by Martin Rudalics.
3297
3298 * xfns.c (x_create_tip_frame):
3299 * w32fns.c (x_create_tip_frame): Use it.
3300
33012010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3302
3303 * xftfont.c (xftfont_open): Check font width one by one also when
3304 spacing is dual.
3305
3306 * ftfont.c (ftfont_open): Ditto.
3307
6259c2ec
GM
33082010-06-30 Glenn Morris <rgm@gnu.org>
3309
a46007e9
GM
3310 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3311
6259c2ec
GM
3312 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3313
3314 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3315 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3316 * s/darwin.h (SYSTEM_MALLOC):
3317 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3318
5d1d3d04
J
33192010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3320
3321 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3322 (ns_get_screen): Don't assign integer to f.
3323 (Fx_display_color_cells): Declarations before statements.
3324
e547b051
J
33252010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3326
5fc8e5bc
J
3327 * xfns.c (x_default_font_parameter): Remove got_from_system
3328 (Bug#6526).
3329
e547b051
J
3330 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3331 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3332 defines based on what configure finds.
3333
3334 * xterm.c (XTflash): Use gtk_widget_get_window.
3335 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3336 gtk_adjustment_get_page_size.
3337 (handle_one_xevent): Use gtk_widget_get_mapped.
3338 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3339 messages.
3340
3341 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3342
3343 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3344 HAVE_GTK_FILE_SELECTION_NEW.
3345
3346 * gtkutil.c (xg_display_open, xg_display_close): Remove
3347 HAVE_GTK_MULTIDISPLAY, it is always defined.
3348 (xg_display_open): Return type is void.
3349 (gtk_widget_set_has_window)
3350 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3351 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3352 (gtk_adjustment_set_page_increment)
3353 (gtk_adjustment_get_step_increment): #define these if not found
3354 by configure.
3355 (remove_submenu): New define based on Gtk+ version.
3356 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3357 gtk_widget_get_window.
3358 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3359 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3360 (create_dialog): Use gtk_dialog_get_action_area and
3361 gtk_dialog_get_content_area.
3362 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3363 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3364 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3365 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3366 g_object_ref and g_object_unref.
3367 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3368 gtk_widget_get_sensitive.
3369 (xg_update_submenu): Use remove_submenu.
3370 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3371 properties instead to get old x and y position.
3372 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3373 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3374 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3375 (xg_get_tool_bar_widgets): New function.
3376 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3377 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3378 (toolbar_set_orientation): New #define based on if configure
3379 finds gtk_orientable_set_orientation.
3380 (xg_create_tool_bar): Call toolbar_set_orientation.
3381 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3382 instead of gtk_box_pack_start_defaults.
3383
b9229673
CY
33842010-06-28 Chong Yidong <cyd@stupidchicken.com>
3385
3386 * cmds.c (Fdelete_backward_char): Move into Lisp.
3387
bbc803b0
DN
33882010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3389
3390 * s/freebsd.h (BSD4_2): Remove redundant definition.
3391 bsd-common.h defines it already.
3392
6431f2e6
CY
33932010-06-27 Chong Yidong <cyd@stupidchicken.com>
3394
3395 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3396 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3397 tool-bar-mode, which are now set using these X resources at
3398 startup, to determine the defaults (Bug#2249).
3399
3400 * w32fns.c (Fx_create_frame):
3401 * nsfns.m (Fx_create_frame): Likewise.
3402
3403 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3404
8c079ebb
JB
34052010-06-24 Juanma Barranquero <lekktu@gmail.com>
3406
3407 * gtkutil.c (xg_update_scrollbar_pos):
3408 Avoid C99 mid-block variable declaration.
3409
e9b7ab96
JD
34102010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3411
bc869eca
JD
3412 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3413
2b7e356a 3414 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3415
3416 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3417 if height is less than scroll bar min size.
3418 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3419
e9b7ab96
JD
3420 * xfns.c (x_default_font_parameter): Try to open font from system
3421 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3422
a628ad9d 34232010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3424
3425 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3426
70c4cfbb
EZ
34272010-06-20 Eli Zaretskii <eliz@gnu.org>
3428
3429 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3430 most-positive-fixnum, be extra accurate when scrolling window
3431 start, to avoid missing the cursor line.
3432
ad5a12b5
EZ
34332010-06-19 Eli Zaretskii <eliz@gnu.org>
3434
3435 * xdisp.c (try_scrolling): Compute the limit for searching point
3436 in forward scroll from scroll_max, instead of an arbitrary limit
3437 of 10 screen lines. See
3438 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3439 and
3440 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3441 for details.
3442
2a64315a 34432010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3444
3445 * editfns.c (Fbyte_to_string): Pacify compiler.
3446
288cf4e9
SM
34472010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3448
3449 * lread.c (read1): Phase out old-style backquotes a bit more.
3450
6e6e5760
EZ
34512010-06-12 Eli Zaretskii <eliz@gnu.org>
3452
cbc4fd20
EZ
3453 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3454 bidimirror.h.
3455
3456 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3457
317fbf33
EZ
3458 * bidi.c (bidi_initialize): Remove explicit initialization of
3459 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3460 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3461 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3462
3463 * biditype.h: New file.
3464
cbc4fd20
EZ
3465 * bidimirror.h: New file.
3466
6e6e5760
EZ
3467 * window.c (syms_of_window): Doc fix (bug#6409).
3468
4176cba2
RF
34692010-06-12 Romain Francoise <romain@orebokech.com>
3470
3471 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3472 ediff-hook.
3473
cb4bfcb5
GM
34742010-06-10 Glenn Morris <rgm@gnu.org>
3475
64c60c2f
GM
3476 * editfns.c (Fbyte_to_string): Pacify compiler.
3477
cb4bfcb5
GM
3478 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3479
2ec1b5ee
CY
34802010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3481
3482 * alloc.c (Fmake_byte_code): Don't access undefined argument
3483 (Bug#6517).
3484
34852010-06-25 Chong Yidong <cyd@stupidchicken.com>
3486
3487 * xdisp.c (next_element_from_image): Ensure that after-strings are
3488 read the next time we hit handle_stop (Bug#1336).
3489
34902010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3491
3492 * lread.c (read1): Signal error if #s is not followed by paren.
3493
34942010-06-19 Chong Yidong <cyd@stupidchicken.com>
3495
3496 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3497
3498 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3499
35002010-06-15 Glenn Morris <rgm@gnu.org>
3501
3502 * editfns.c (Fbyte_to_string): Pacify compiler.
3503
e454a4a3
SM
35042010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3505
3506 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3507 Check `object's type before accessing its guts.
3508
c1b1acc2
DN
35092010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3510
3511 * s/usg5-4.h: Fix previous change.
3512 Suggested by Lawrence Mitchell <wence@gmx.li>
3513
657d4c0b
AS
35142010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3515
3516 * minibuf.c (Fall_completions): Add more checks.
3517
9b27fd9f
JB
35182010-06-08 Juanma Barranquero <lekktu@gmail.com>
3519
3520 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3521
a99ebb40
DN
35222010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3523
d7c5d87d
DN
3524 * lread.c (X_OK): Remove, unused.
3525
0263a941
DN
3526 * dispnew.c: Remove obsolete comment.
3527
a99ebb40
DN
3528 Remove INCLUDED_FCNTL.
3529 * xterm.c (INCLUDED_FCNTL):
3530 * callproc.c (INCLUDED_FCNTL):
3531 * alloc.c (INCLUDED_FCNTL):
3532 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3533 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3534
13b5221f
MR
35352010-06-07 Martin Rudalics <rudalics@gmx.at>
3536
3537 * window.c (Fselect_window): Move `record_buffer' up to the
3538 beginning of this function, so the buffer gets recorded
3539 even if the selected window does not change.
3540 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3541
5220357f
JB
35422010-06-07 Juanma Barranquero <lekktu@gmail.com>
3543
3544 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3545 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3546
3085237c
DN
35472010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3548
3549 Remove BSTRING related code, all platforms define it.
3550 * s/usg5-4.h (BSTRING): Remove definition.
3551 * s/template.h (BSTRING):
3552 * s/msdos.h (BSTRING):
3553 * s/ms-w32.h (BSTRING):
3554 * s/hpux10-20.h (BSTRING):
3555 * s/gnu-linux.h (BSTRING):
3556 * s/darwin.h (BSTRING):
3557 * s/cygwin.h (BSTRING):
3558 * s/bsd-common.h (BSTRING):
3559 * s/aix4-2.h (BSTRING): Likewise.
3560 * sysdep.c: Remove code depending on BSTRING not being defined.
3561
409f2919
JB
35622010-06-05 Juanma Barranquero <lekktu@gmail.com>
3563
3564 Remove obsolete macro BASE_LEADING_CODE_P.
3565 * character.h (BASE_LEADING_CODE_P): Remove.
3566 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3567 * buffer.c (Fset_buffer_multibyte):
3568 * indent.c (scan_for_column, compute_motion):
3569 * insdel.c (count_combining_before, count_combining_after):
3570 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3571
087fc47a
JB
35722010-06-04 Juanma Barranquero <lekktu@gmail.com>
3573
3574 Turn `directory-sep-char' into a noop.
3575
3576 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3577 (DIRECTORY_SEP): Define unconditionally.
3578
3579 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3580
3581 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3582 call dostounix_filename directly.
3583
3584 * fileio.c (CORRECT_DIR_SEPS): Remove.
3585 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3586 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3587 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3588 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3589
3590 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3591 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3592
0eb7675e
AS
35932010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3594
a628ad9d
JB
3595 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3596 (Bug#6346)
0eb7675e 3597
78edd3b7
JB
35982010-06-03 Juanma Barranquero <lekktu@gmail.com>
3599
3600 * ccl.c (Fccl_program_p): Fix typo in docstring.
3601
eb697db5
DN
36022010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3603
3604 Move UNEXEC definition to autoconf.
3605 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3606 * s/sol2-10.h (UNEXEC):
3607 * s/irix6-5.h (UNEXEC):
3608 * s/hpux10-20.h (UNEXEC):
3609 * s/gnu-linux.h (UNEXEC):
3610 * s/darwin.h (UNEXEC):
3611 * s/cygwin.h (UNEXEC):
3612 * s/bsd-common.h (UNEXEC):
3613 * s/aix4-2.h (UNEXEC):
3614 * m/alpha.h (UNEXEC): Likewise.
3615 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3616
aa3830c4
JB
36172010-06-03 Juanma Barranquero <lekktu@gmail.com>
3618
3619 Remove obsolete pre-unicode2 macros.
3620 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3621 * composite.c (composition_reseat_it):
3622 * data.c (Faset):
3623 * fns.c (Ffillarray):
3624 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3625 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3626
d234d13e
JL
36272010-06-03 Juri Linkov <juri@jurta.org>
3628
3629 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3630 (Fswitch_to_buffer): Remove unused variable `err'.
3631
0d4bcf4d
GM
36322010-06-03 Glenn Morris <rgm@gnu.org>
3633
e23dc1e2
GM
3634 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3635
05b09564
GM
3636 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3637 now that AH_BOTTOM does it.
3638
824e2978
GM
3639 * m/hp800.h (HAVE_ALLOCA):
3640 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3641
0d4bcf4d
GM
3642 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3643 Remove NOT_C_CODE tests, it is always true now.
3644
c55d2abf
DN
36452010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3646
08a494a3
DN
3647 Fix config.h includes.
3648 * xsettings.c:
3649 * xgselect.c:
3650 * nsterm.m:
3651 * nsselect.m:
3652 * nsimage.m:
3653 * nsfont.m:
3654 * nsfns.m:
3655 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3656 other files do.
3657
75934b1d
DN
3658 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3659
9f32a766
DN
3660 * s/sol2-6.h: Remove obsolete comments.
3661
c55d2abf
DN
3662 Remove unnecessary alloca.h includes.
3663 * keymap.c: Do not include alloca.h, config.h does that.
3664 * sysdep.c: Likewise. Do not define fwrite, not used.
3665
06ac62b4
SM
36662010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3667
3668 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3669 the HAVE_TERMIO where it belongs (bug#6149).
3670
1ab8293c
SM
36712010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3672
3673 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3674 of bug#6305).
3675
6dcfd253
EZ
36762010-05-30 Eli Zaretskii <eliz@gnu.org>
3677
3678 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3679 state is always cached (bug#6306).
3680
6d26bbb2
EZ
36812010-05-29 Eli Zaretskii <eliz@gnu.org>
3682
06fa4a23
EZ
3683 Fix cursor motion in bidi-reordered continued lines.
3684 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3685 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3686 over continuation lines in bidi-reordered buffers. Return
3687 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3688 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3689
f5783df3
MA
36902010-05-28 Michael Albinus <michael.albinus@gmx.de>
3691
3692 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3693
7d56b2dd
KH
36942010-05-28 Kenichi Handa <handa@m17n.org>
3695
3696 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3697 Don't sheck SPEC if it is nil.
3698 (font_list_entities): Call font_delete_unmatched if
b925d231 3699 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3700
e58d4ff7
GM
37012010-05-28 Glenn Morris <rgm@gnu.org>
3702
3703 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3704
f1a5d776
CY
37052010-05-27 Chong Yidong <cyd@stupidchicken.com>
3706
3707 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3708 whether to trash.
3709 (internal_delete_file, Frename_file): Callers changed.
3710 (delete_by_moving_to_trash): Doc fix.
3711 (Fdelete_directory_internal): Don't move to trash.
3712
3713 * callproc.c (delete_temp_file):
3714 * buffer.c (Fkill_buffer): Callers changed.
3715
3716 * lisp.h: Update prototype.
3717
f44a59e6
CY
37182010-05-27 Chong Yidong <cyd@stupidchicken.com>
3719
3720 * xdisp.c (redisplay_window): After redisplay, check if point is
3721 still valid before setting it (Bug#6177).
3722
81ac4f35
GM
37232010-05-27 Glenn Morris <rgm@gnu.org>
3724
3725 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3726 Convert comments to Makefile format.
3727
3728 * Makefile.in (bootstrap-clean): No more Makefile.c.
3729
ccd89fb3
GM
37302010-05-26 Glenn Morris <rgm@gnu.org>
3731
90278cb6
GM
3732 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3733 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3734
ccd89fb3
GM
3735 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3736 Remove.
3737 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3738
b7050583
KH
37392010-05-26 Kenichi Handa <handa@m17n.org>
3740
3741 * composite.c (composition_compute_stop_pos): Fix condition for
3742 backward scanning.
3743
e5458003
GM
37442010-05-25 Glenn Morris <rgm@gnu.org>
3745
c345fe90
GM
3746 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3747 Move before TEMACS_LDFLAGS.
3748 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3749 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3750
2e0689ab
GM
3751 * Makefile.in (NOT_C_CODE): No longer define.
3752 (config.h): No longer include.
3753
8009a5e8
GM
3754 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3755 variables it may reference.
3756
e5458003
GM
3757 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3758 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3759
10f72a37
KH
37602010-05-25 Kenichi Handa <handa@m17n.org>
3761
3762 * dispextern.h (struct composition_it): New members rule_idx and
3763 charpos.
3764
3765 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3766 that the character positions of IT point the last character of the
3767 current grapheme cluster.
3768 (next_element_from_composition): Don't change character positions
3769 of IT.
3770 (append_composite_glyph): Set glyph->charpos to
3771 it->cmp_it.charpos.
3772
3773 * composite.c (autocmp_chars): Change the first argument to RULE,
3774 and try composition with RULE only.
3775 (composition_compute_stop_pos): Record the index number of the
3776 composition rule in CMP_IT->rule_idx.
3777 (composition_reseat_it): Call autocmp_chars repeatedly until the
3778 correct rule of the composition is found.
3779 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3780 is at the last character of the current grapheme cluster when
3781 CMP_IT->reversed_p is nonzero.
3782
171eda53 37832010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3784
171eda53
SM
3785 * editfns.c (Fbyte_to_string): New function.
3786
66a9f7f4
SM
37872010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3788
3789 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3790 Suggested by Masatake YAMATO <yamato@redhat.com>.
3791
d8c315d1
EZ
37922010-05-23 Eli Zaretskii <eliz@gnu.org>
3793
171eda53 3794 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3795
f5b416d2 37962010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3797
3798 * s/netbsd.h: If terminfo is found, use it in preference to
3799 termcap. (Bug#6190) [Backport from trunk]
3800
0416466c
EZ
38012010-05-19 Eli Zaretskii <eliz@gnu.org>
3802
11117830 3803 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3804
3805 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3806 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3807 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3808 and maxpos members instead of start.pos and end.pos, respectively.
3809
3810 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3811 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3812 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3813 (try_window_reusing_current_matrix, try_window_id):
3814 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3815 (init_from_display_pos, init_iterator): Use EMACS_INT for
3816 character and byte positions.
66a9f7f4 3817 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3818 arguments for minimum and maximum buffer positions seen by
3819 display_line for this row. Don't use iterator to find the
3820 position following the maximum one; instead, increment the
11117830
EZ
3821 position found by display_line directly. Fix logic; eol_pos
3822 should be tested before the rest. Handle the case of characters
3823 delivered from display vector (bug#6036). Fix tests related to
3824 it->method. Handle the truncated_on_right_p rows.
3825 (RECORD_MAX_MIN_POS): New macro.
3826 (display_line): Use it to record the minimum and maximum buffer
3827 positions for glyphs in the row being assembled. Record the
3828 position of the newline that terminates the line. If word wrap is
3829 in effect, restore minimum and maximum positions seen up to the
3830 wrap point, when iterator returns to it.
3831 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3832 row and cursor not already at point. Restore original pre-bidi
3833 code for unidirectional buffers.
d36fe237
EZ
3834
3835 * dispnew.c (increment_row_positions, check_matrix_invariants):
3836 Increment and check row->start.pos and row->end.pos, in addition
3837 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3838
11117830
EZ
3839 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3840 Display truncated_on_left_p and truncated_on_right_p flags.
3841 Formatting fixes.
3842 (pmtxrows): Display the ordinal number of each row. Don't display
3843 rows beyond the last one.
3844
3845 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3846 it is not copied by bidi_copy_it.
3847
6e83d800
EZ
38482010-05-22 Eli Zaretskii <eliz@gnu.org>
3849
3850 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3851 (Bug#6237)
3852
110683ad
CY
38532010-05-22 Chong Yidong <cyd@stupidchicken.com>
3854
3855 * image.c (Fimage_flush): Rename from image-refresh.
3856
98fe5161
CY
38572010-05-21 Chong Yidong <cyd@stupidchicken.com>
3858
3859 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3860 just one window.
3861
3862 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3863 (clear_image_cache): If the number of cached images is unusually
3864 large, decrease the cache eviction delay (Bug#6230).
3865
e8752c66
GM
38662010-05-21 Glenn Morris <rgm@gnu.org>
3867
66dbf213
GM
3868 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3869 Move these rules to ns.mk.
3870 * ns.mk: New file.
3871
04384b2d
GM
3872 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3873
e8752c66
GM
3874 * Makefile.in (CANNOT_DUMP): New, set by configure.
3875 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3876
2e2bbddb
JL
38772010-05-20 Juri Linkov <juri@jurta.org>
3878
3879 * fileio.c (Fdelete_file): Change interative spec to use
3880 `read-file-name' like in `find-file-read-args' where the default
3881 value is `default-directory' instead of `buffer-file-name'.
3882 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3883
31c4aaf6
KR
38842010-05-20 Kevin Ryde <user42@zip.com.au>
3885
3886 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3887 (Voverriding_terminal_local_map, Vsystem_key_alist)
3888 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3889
9d5cf9b6
GM
38902010-05-20 Glenn Morris <rgm@gnu.org>
3891
3892 * Makefile.in (DEPDIR): New constant.
3893 (DEPFLAGS): Set with configure, not cpp.
3894 (MKDEPDIR): New, set by configure.
3895 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3896 (clean): Use $DEPDIR.
3897 (deps_frag): Include from configure.
3898 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3899 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3900
ead6f8f5
EZ
3901 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3902 reallocation of the cache. (Bug#6210)
3903
7f34aec3
GM
39042010-05-19 Glenn Morris <rgm@gnu.org>
3905
d494e8f2
GM
3906 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3907
c1d0dcfd
GM
3908 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3909 (GNULIB_VAR): Remove.
3910 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3911
3912 * m/ibms390x.h (LINKER):
3913 * m/macppc.h (LINKER) [GNU_LINUX]:
3914 * s/aix4-2.h (ORDINARY_LINK):
3915 * s/cygwin.h (LINKER):
3916 * s/darwin.h (ORDINARY_LINK):
3917 * s/gnu.h (ORDINARY_LINK):
3918 * s/netbsd.h (LINKER):
3919 * s/usg5-4.h (ORDINARY_LINK):
3920 Move to configure.
3921
7f34aec3
GM
3922 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3923
754790b6
CY
39242010-05-18 Chong Yidong <cyd@stupidchicken.com>
3925
3926 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3927 prevent stack overflow if number of arguments is too large
3928 (Bug#6214).
3929
161e44d1
JB
39302010-05-18 Juanma Barranquero <lekktu@gmail.com>
3931
3932 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3933
be4ff9da
GM
39342010-05-18 Glenn Morris <rgm@gnu.org>
3935
9539dc5d
GM
3936 * s/gnu-linux.h: Combine two conditionals.
3937
3938 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3939 $(POST_ALLOC_OBJ).
3940
40dc6bf4
GM
3941 * Makefile.in (RALLOC_OBJ): New, set by configure.
3942 (rallocobj): Replace with the previous variable.
3943 (otherobj): Use $RALLOC_OBJ.
3944
3945 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3946 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3947
be4ff9da
GM
3948 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3949 (gmallocobj, vmlimitobj): Replace with previous two variables.
3950 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3951
16455a85
GM
39522010-05-17 Glenn Morris <rgm@gnu.org>
3953
3954 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3955 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3956
5fdb7468
GM
39572010-05-16 Glenn Morris <rgm@gnu.org>
3958
7ca1f3f9
GM
3959 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3960
7541dad5
GM
3961 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3962
da53fab9
GM
3963 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3964 trailing "/".
3965
b02a6645
GM
3966 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3967 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3968
8877ca0f
GM
3969 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3970 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3971 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3972 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3973 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3974
5fdb7468
GM
3975 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3976 Remove ${STARTFLAGS}, nothing ever sets it.
3977
95adb4b1
DN
39782010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3979
3980 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3981
676b6304
GM
39822010-05-16 Glenn Morris <rgm@gnu.org>
3983
9beab9ce
GM
3984 * Makefile.in (LIBX_BASE): Always define.
3985
8a95f0e7
GM
3986 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3987
676b6304
GM
3988 * Makefile.in (LIBXT): Always define.
3989
6e546d18
GM
39902010-05-15 Glenn Morris <rgm@gnu.org>
3991
4235ca47 3992 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3993
6e546d18
GM
3994 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3995 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3996
8c5ff6dd
KR
39972010-05-15 Ken Raeburn <raeburn@raeburn.org>
3998
560bb7ae 3999 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4000 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4001
8b4eb796
KR
4002 * emacs.c (main): Initialize initial-environment and
4003 process-environment before generating from env, not after.
4004
8c5ff6dd
KR
4005 Handle --version reasonably in CANNOT_DUMP configuration.
4006 * emacs.c (emacs_version, emacs_copyright): New string variables.
4007 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4008 (syms_of_emacs): Defvar them, and initialize them from the C
4009 string variables.
4010 (main): If initialization hasn't been done, print initial version
4011 info from the C strings, instead of starting an interactive session.
4012
dbd3f723
EZ
40132010-05-15 Eli Zaretskii <eliz@gnu.org>
4014
d20e1419
EZ
4015 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4016 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4017 (bidi_paragraph_init): Remove redundant assertion that we are at
4018 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4019
4020 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4021 (syms_of_xdisp): Defsubr it.
4022
d36fe237
EZ
4023 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4024
dbd3f723
EZ
4025 * Makefile.in: Fix MSDOS-related comments.
4026
02be533b
GM
40272010-05-15 Glenn Morris <rgm@gnu.org>
4028
1a82cca9
GM
4029 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4030 (really-lwlib, really-oldXMenu): Always define.
4031 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4032
3df7b338
GM
4033 * Makefile.in: Simplify cpp conditional.
4034
2b5f541b
GM
4035 * Makefile.in (${ns_appdir}): Simplify using umask.
4036
02be533b
GM
4037 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4038
4e2db1fe
SM
40392010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4040
4041 * eval.c (specbind): Remove left-over duplicate test.
4042 Disallow let-binding frame-local vars. Add comment.
4043
4b292a22
EZ
40442010-05-14 Eli Zaretskii <eliz@gnu.org>
4045
2fe72643 4046 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4047 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4048 (bidi_init_it): Call it.
4049 (bidi_cache_iterator_state): Enlarge the cache if needed.
4050
4e2db1fe 4051 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4052 bidi_get_next_char_visually. All callers changed.
4053
82ebc97b
KH
40542010-05-14 Kenichi Handa <handa@m17n.org>
4055
4056 * dispextern.h (struct composition_it): New member reversed_p.
4057
4058 * composite.c (composition_compute_stop_pos): Search backward if
4059 ENDPOS < CHARPOS.
4060 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4061 Set CMP_IT->reversed_p.
b4b6e17e 4062 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4063
4e2db1fe
SM
4064 * xdisp.c (set_iterator_to_next):
4065 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4066 scanning backward. Call composition_compute_stop_pos if scan
4067 direction is changed.
4068 (next_element_from_buffer): Call composition_compute_stop_pos with
4069 negative ENDPOS if we are scanning backward.
4070 (next_element_from_composition): Pay attention to
4071 IT->cmp_it.reversed_p.
4072
0e5d7800
KH
40732010-05-14 Kenichi Handa <handa@m17n.org>
4074
560bb7ae 4075 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4076
cb027b32
GM
40772010-05-14 Glenn Morris <rgm@gnu.org>
4078
177b0288
GM
4079 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4080
fbc00890
GM
4081 * Makefile.in (mktime, X11, register): Move undefs to configure.
4082
f14d1dfd
GM
4083 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4084 (MSDOS_X_OBJ): New variable.
4085 (MSDOS_SUPPORT_REAL): New constant.
4086 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4087 (obj): Use MSDOS_X_OBJ.
4088 (lisp): Use MSDOS_SUPPORT as a variable.
4089
11842bd8
GM
4090 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4091 (GPM_MOUSE_SUPPORT): Now it's a constant.
4092 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4093 not cpp.
4094
489d31a4 4095 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4096 (ns_appresdir): Remove, unused.
e20f1f07 4097
489d31a4
GM
4098 * Makefile.in (SHELL): Move outside cpp section.
4099
cb027b32
GM
4100 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4101
5a903aa9
GM
41022010-05-13 Glenn Morris <rgm@gnu.org>
4103
3369c79f
GM
4104 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4105 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4106
d5e982a6
GM
4107 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4108 HAVE_WINDOW_SYSTEM must be too.
4109
6192e163
GM
4110 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4111 (lisp): Remove WINNT_SUPPORT.
4112
472c5d6b
GM
4113 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4114 Let configure set these variables (to empty) in this case as well.
4115
0116466b
GM
4116 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4117 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4118
5a903aa9
GM
4119 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4120 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4121 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4122 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4123 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4124 the values output by configure.
5a903aa9
GM
4125 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4126
1a0d7c06
GM
41272010-05-12 Glenn Morris <rgm@gnu.org>
4128
b5457f14
GM
4129 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4130 (LINKER_WAS_SPECIFIED): Remove.
4131
1a0d7c06
GM
4132 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4133 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4134 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4135 * s/cygwin.h (LIB_GCC):
4136 * s/freebsd.h (LIB_GCC):
4137 * s/gnu-linux.h (LIB_GCC):
4138 * s/msdos.h (LIB_GCC):
4139 * s/netbsd.h (LIB_GCC):
4140 Move to configure.
4141
3ffd4615 41422010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4143
4144 * ftfont.c: Fix incorrect parentheses of #if condition for
4145 definining M17N_FLT_USE_NEW_FEATURE.
4146
acddf8ae
GM
41472010-05-11 Glenn Morris <rgm@gnu.org>
4148
4149 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4150 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4151
ae5e04fa
EZ
41522010-05-10 Eli Zaretskii <eliz@gnu.org>
4153
4154 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4155 unibyte buffers. See
4156 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4157
7490175b
GM
41582010-05-10 Glenn Morris <rgm@gnu.org>
4159
97efb629
GM
4160 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4161 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4162 (LIBES): Use LIBS_SYSTEM as a variable.
4163 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4164 * s/aix4-2.h (LIBS_SYSTEM):
4165 * s/freebsd.h (LIBS_SYSTEM):
4166 * s/hpux10-20.h (LIBS_SYSTEM):
4167 * s/sol2-6.h (LIBS_SYSTEM):
4168 * s/unixware.h (LIBS_SYSTEM):
4169 Move to configure.
4170
7490175b
GM
4171 * s/aix4-2.h (MAIL_USE_LOCKF):
4172 * s/bsd-common.h (MAIL_USE_FLOCK):
4173 * s/darwin.h (MAIL_USE_FLOCK):
4174 * s/gnu-linux.h (MAIL_USE_FLOCK):
4175 * s/irix6-5.h (MAIL_USE_FLOCK):
4176 * s/template.h (MAIL_USE_FLOCK):
4177 Move to configure.
4178
0235128c 41792010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4180
4181 * Version 23.2 released.
4182
0235128c 41832010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4184
4185 * composite.c (autocmp_chars): Save point as marker before calling
4186 auto-composition-function (Bug#5984).
4187
4188 * lisp.h (restore_point_unwind): Add prototype.
4189
4190 * fileio.c (restore_point_unwind): Remove static attribute.
4191
0235128c 41922010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4193
4194 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4195 new feature of libotf and m17n-flt.
0235128c
SM
4196 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4197 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4198 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4199 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4200 that OUT is NULL. Use OTF_drive_gsub_with_log and
4201 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4202 OTF_drive_gpos.
4203 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4204 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4205 Setup mflt_enable_new_feature and mflt_try_otf.
4206
4721152c
J
42072010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4208
4209 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4210
4211 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4212 box and toolbar (Bug #6139).
4213 (xg_create_tool_bar): Remove comment (Bug #6139).
4214 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4215 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4216
ee0a16cf
JB
42172010-05-08 Juanma Barranquero <lekktu@gmail.com>
4218
4219 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4220 Update dependencies.
4221
96d79611
EZ
42222010-05-08 Eli Zaretskii <eliz@gnu.org>
4223
4224 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4225 R2L lines.
4226
40c17879
GM
42272010-05-08 Glenn Morris <rgm@gnu.org>
4228
7b42b29f
GM
4229 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4230
40c17879
GM
4231 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4232 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4233 (termcapobj): Replace with TERMCAP_OBJ.
4234 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4235 (LIBES): Use LIBS_TERMCAP as a variable.
4236
4237 * s/freebsd.h (osreldate.h): No longer include, since this file
4238 does not use __FreeBSD_version any more.
4239
4240 * s/aix4-2.h (TERMINFO):
4241 * s/cygwin.h (TERMINFO):
4242 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4243 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4244 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4245 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4246 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4247 * s/irix6-5.h (TERMINFO):
4248 * s/netbsd.h (LIBS_TERMCAP):
4249 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4250 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4251 * s/usg5-4.h (TERMINFO):
4252 Move to configure.
4253
94b612ad
SM
42542010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4255
4256 * eval.c (unbind_to): Don't unbind a local binding into the global
4257 binding when the local binding disappeared. Inversely, don't unbind
4258 a global binding into a newly created local binding.
4259 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4260 can specify the frame to use, when applicable. Adjust callers.
4261
15e12598 42622010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4263 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4264
4265 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4266
f724825e
EZ
42672010-05-07 Eli Zaretskii <eliz@gnu.org>
4268
5cba3209
EZ
4269 * w32fns.c: Include w32.h.
4270 (Fw32_shell_execute): Decode the error message before passing it
4271 to `error'. (Bug#6126)
4272
d16bdfc3
EZ
4273 * msdos.c (dos_set_window_size):
4274 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4275 instead of `XSYMBOL (foo)->value'.
4276
59d93e87
EZ
42772010-05-07 Eli Zaretskii <eliz@gnu.org>
4278
9fdec8bc
EZ
4279 Fix the MS-DOS build, broken by autoconfiscation.
4280
4281 * Makefile.in: Don't use Make-style comments past the "start of
4282 cpp stuff" line.
4283 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4284
4285 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4286 edited directly by msdos/sed1v2.inp).
f724825e 4287
2f86b22b
GM
42882010-05-07 Glenn Morris <rgm@gnu.org>
4289
4290 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4291 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4292 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4293 move out of cpp section.
4294 * s/freebsd.h (LD_SWITCH_SYSTEM):
4295 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4296 * s/netbsd.h (LD_SWITCH_SYSTEM):
4297 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4298
49ebbd65
DN
42992010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4300
4301 Define LIB_STANDARD and START_FILES using autoconf.
4302 * s/usg5-4.h (LIB_STANDARD):
4303 * s/netbsd.h (START_FILES):
4304 * s/irix6-5.h (LIB_STANDARD):
4305 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4306 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4307 * s/freebsd.h (START_FILES):
4308 * s/darwin.h (START_FILES):
4309 * s/cygwin.h (START_FILES):
4310 * s/aix4-2.h (LIB_STANDARD):
4311 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4312 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4313 autoconf, not cpp.
4314
d43c06d6
DN
43152010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4316
28823648
DN
4317 Remove NEED_BSDTTY and NEED_UNISTD_H.
4318 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4319 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4320 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4321 <sys/ptyio.h> and <unistd.h>.
4322
aca00430
DN
4323 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4324
d43c06d6
DN
4325 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4326 * s/gnu.h (START_FILES): Remove empty definition.
4327
3e56b11d
JD
43282010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4329
4330 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4331
e3cf0cde
GM
43322010-05-06 Glenn Morris <rgm@gnu.org>
4333
4334 * Makefile.in (CPP, LN_S): Remove unused variables.
4335
774b9a60
SM
43362010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4337
4338 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4339
4ab92842
LM
43402010-05-05 Lawrence Mitchell <wence@gmx.li>
4341
4342 * m/sparc.h: Fix typo in earlier change.
4343
178f2507
SM
43442010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4345
4346 Misc tweaks.
4347 * eval.c (Fdefvaralias): Remove unintended nested if.
4348 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4349
80f00217 43502010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4351
4352 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4353
ef03a4e6
DN
43542010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4355
58eb6cf0
DN
4356 Remove BSD_PGRPS.
4357 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4358 * s/gnu-linux.h (BSD_PGRPS): Remove.
4359 * term.c (dissociate_if_controlling_tty):
4360 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4361 (init_sys_modes, reset_sys_modes):
4362 * emacs.c (main):
4363 * callproc.c (Fcall_process, child_setup): Remove code depending
4364 on BSD_PGRPS.
4365
ef03a4e6
DN
4366 Remove POSIX_SIGNALS.
4367 * s/usg5-4.h (POSIX_SIGNALS):
4368 * s/netbsd.h (POSIX_SIGNALS):
4369 * s/msdos.h (POSIX_SIGNALS):
4370 * s/ms-w32.h (POSIX_SIGNALS):
4371 * s/hpux11.h (POSIX_SIGNALS):
4372 * s/gnu.h (POSIX_SIGNALS):
4373 * s/gnu-linux.h (POSIX_SIGNALS):
4374 * s/freebsd.h (POSIX_SIGNALS):
4375 * s/darwin.h (POSIX_SIGNALS):
4376 * s/cygwin.h (POSIX_SIGNALS):
4377 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4378 * s/unixware.h:
4379 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4380 * process.c (create_process):
4381 * syssignal.h:
4382 * sysdep.c (wait_for_termination, init_signals):
4383 * process.c (create_process):
4384 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4385 remove all code that assumes the contrary.
4386
49628785
GM
43872010-05-04 Glenn Morris <rgm@gnu.org>
4388
27a2cdfc
GM
4389 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4390 variable.
4391 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4392 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4393 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4394 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4395 LD_SWITCH_SYSTEM_tmp.
4396 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4397 New variables, set by configure.
4398
eb21eab5
GM
4399 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4400 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4401 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4402 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4403 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4404
49628785
GM
4405 * s/aix4-2.h (C_SWITCH_SYSTEM):
4406 * m/alpha.h (C_SWITCH_MACHINE):
4407 Move to configure.in.
4408 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4409 New variables, set by configure.
4410 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4411 $c_switch_machine and $c_switch_system.
4412
7dff330b
DN
44132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4414
4415 * s/hpux10-20.h (LIB_STANDARD): New definition.
4416 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4417 on it, not used anymore.
4418
53967e09
CY
44192010-05-03 Chong Yidong <cyd@stupidchicken.com>
4420
4421 * eval.c (internal_condition_case_n): Rename from
4422 internal_condition_case_2.
4423 (internal_condition_case_2): New function.
4424
4425 * xdisp.c (safe_call): Use internal_condition_case_n.
4426
4427 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4428 (internal_delete_file, Frename_file): Callers changed.
4429
4430 * buffer.c (Fkill_buffer):
4431 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4432
4433 * lisp.h: Update prototypes.
4434
3dee6fdb
GM
44352010-05-03 Glenn Morris <rgm@gnu.org>
4436
4437 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4438 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4439 (LIBXT): Set with configure, not cpp.
4440 (LIBX): Remove.
4441 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4442
a101e0fb
DN
44432010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4444
4445 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4446 The FreeBSD is not needed, the default works, Solaris version is
4447 not needed, and the remaining case is not supported by configure.
4448
f63d0028
JD
44492010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4450
4451 * xsmfns.c (CHDIR_OPT): New define.
4452 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4453 restarting emacs.
4454
4455 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4456 shut_down_emacs.
4457
4458 * emacs.c (USAGE1): Mention --chdir.
4459 (main): Handle --chdir.
4460 (standard_args): Add --chdir.
4461 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4462 #5552).
4463
e4814a9f
DN
44642010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4465
cd03c74a
DN
4466 Remove LD_SWITCH_MACHINE.
4467 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4468 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4469
c3a398a1
DN
4470 Clean up IRIX code.
4471 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4472 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4473
87e7285c
DN
4474 Clean up AIX code.
4475 * m/ibmrs6000.inp: Remove file, unused.
4476 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4477 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4478 definition ...
4479 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4480
80f00217
JB
4481 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4482 unused.
e4814a9f 4483
59ca28de
EZ
44842010-05-01 Eli Zaretskii <eliz@gnu.org>
4485
197daef4
EZ
4486 Emulate POSIX_SIGNALS on MS-Windows.
4487
4488 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4489 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4490
4491 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4492 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4493 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4494
80f00217
JB
4495 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4496 New stubs.
197daef4 4497
af7c7572
EZ
4498 Miscellaneous fixes of bidi display.
4499
59ca28de
EZ
4500 * xdisp.c (find_row_end): New function, refactored from display_line.
4501 (display_line): Use it.
017ea819
EZ
4502 (extend_face_to_end_of_line): In almost-filled rows, extend only
4503 if the row is R2L and not continued.
166e930d 4504 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4505 Preserve overlay and string info in row->end.
166e930d
EZ
4506 (insert_left_trunc_glyphs): Support addition of left truncation
4507 glyphs to R2L rows.
b47e0dcf 4508 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4509 glyph between adjacent windows. Fix a crash when a display string
4510 is continued to the next line. Don't return zero if cursor was
4511 found by `cursor' property of a display string.
b47e0dcf
EZ
4512 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4513 test for that explicitly.
59ca28de 4514
7acac9f4
GM
45152010-05-01 Glenn Morris <rgm@gnu.org>
4516
4517 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4518 for clarity.
4519 (OTHER_OBJ): Remove.
4520 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4521 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4522
45841e65
KK
45232010-05-01 Karel Klíč <kklic@redhat.com>
4524
4525 * fileio.c (Ffile_selinux_context): Context functions may return null.
4526
afc61943
DN
45272010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4528
80f00217 4529 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4530
5a1bb006
GM
45312010-04-30 Glenn Morris <rgm@gnu.org>
4532
4533 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4534 (OTHER_OBJ): Define as a separate variable, for clarity.
4535
210af043
J
45362010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4537
4538 * xsettings.c: include limits.h and update file comment.
4539
0a7df391
GM
45402010-04-30 Glenn Morris <rgm@gnu.org>
4541
d5096f16
GM
4542 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4543 Set with configure, not cpp.
4544 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4545
7eb1ac33
GM
4546 * Makefile.in (mallocobj): Remove.
4547 (otherobj): Simplify using @OTHER_OBJ@.
4548
517d086b
GM
4549 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4550 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4551 Don't bother making nsgui.h dependency platform-specific.
4552
0a7df391
GM
4553 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4554
d6d23852
SM
45552010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4556
d2630aef
SM
4557 * process.c (read_process_output, exec_sentinel): Don't burp if the
4558 sentinel/filter kills the current buffer (bug#6060).
4559
f9dddf52 4560 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4561 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4562 Remove unused var `args'.
4563 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4564 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4565 * doc.c (store_function_docstring): Use XSETCAR.
4566
f1e3642a
GM
45672010-04-28 Glenn Morris <rgm@gnu.org>
4568
faf535f8
GM
4569 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4570 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4571
c40f9449
GM
4572 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4573
658f86ca
GM
4574 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4575 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4576
bc0b5f61
GM
4577 * Makefile.in (FONT_OBJ): New, set by configure.
4578 (FONT_DRIVERS): Use $FONT_OBJ.
4579
294c50a0
GM
4580 * Makefile.in (LIBXMU): Set with configure, not cpp.
4581 * s/aix4-2.h (LIBXMU):
4582 * s/hpux10-20.h (LIBXMU):
4583 Remove definition, now set in configure.
4584
e6ec4e99
GM
4585 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4586
f1e3642a
GM
4587 * m/amdx86-64.h [i386]: Move this test to configure.in.
4588
c6ea2936
GM
45892010-04-27 Glenn Morris <rgm@gnu.org>
4590
8fdac2c3
GM
4591 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4592 * s/unixware.h (NEED_LIBW): Remove definition.
4593
986fb647
GM
4594 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4595 (TOOLKIT_LIBW): New, set by configure.
4596 (@X_TOOLKIT_TYPE@): No longer define it.
4597
c6ea2936
GM
4598 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4599 (MOTIF_LIBW): Set with configure, not cpp.
4600 * s/aix4-2.h (LIB_MOTIF):
4601 * s/gnu-linux.h (LIB_MOTIF):
4602 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4603
aaa36002
DN
46042010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4605
4606 Reduce CPP usage.
4607 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4608 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4609 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4610 definitions and undefs. Inline definitions in the only user.
4611 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4612
b678dd8b
GM
46132010-04-27 Glenn Morris <rgm@gnu.org>
4614
76cda504
GM
4615 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4616 since the defaults (set by the system file) are fine in most cases.
4617 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4618 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4619 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4620 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4621 Remove definitions, since they are set correctly in s/gnu-linux.h.
4622 * s/freebsd.h (START_FILES, LIB_STANDARD):
4623 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4624 * s/hpux10-20.h (START_FILES):
4625 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4626 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4627
b678dd8b
GM
4628 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4629 (MOTIF_LIBW): Use $LIBXP.
4630 (otherobj): Use $WIDGET_OBJ.
4631
9452ded1
DN
46322010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4633
7e10844c
DN
4634 * Makefile.in (LIBS_MACHINE): Remove, unused.
4635
9452ded1
DN
4636 Use autoconf instead of cpp for LIB_MATH.
4637 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4638 * s/cygwin.h (LIB_MATH): Likewise.
4639 * Makefile.in (LIB_MATH): Do not define with cpp.
4640 (LIBES): Use autoconf for LIB_MATH.
4641
fcebfc6a
KH
46422010-04-26 Kenichi Handa <handa@m17n.org>
4643
4644 * composite.c (Ffind_composition_internal): Fix the return value
4645 for an automatic composition.
4646
39e2ad1b
DN
46472010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4648
4649 Remove all NO_ARG_ARRAY uses.
4650 * fns.c (concat2, concat3, nconc2):
4651 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4652 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4653 * m/xtensa.h (NO_ARG_ARRAY):
4654 * m/template.h (NO_ARG_ARRAY):
4655 * m/sparc.h (NO_ARG_ARRAY):
4656 * m/sh3.h (NO_ARG_ARRAY):
4657 * m/mips.h (NO_ARG_ARRAY):
4658 * m/macppc.h (NO_ARG_ARRAY):
4659 * m/iris4d.h (NO_ARG_ARRAY):
4660 * m/intel386.h (NO_ARG_ARRAY):
4661 * m/ibms390x.h (NO_ARG_ARRAY):
4662 * m/ibms390.h (NO_ARG_ARRAY):
4663 * m/ibmrs6000.h (NO_ARG_ARRAY):
4664 * m/ia64.h (NO_ARG_ARRAY):
4665 * m/hp800.h (NO_ARG_ARRAY):
4666 * m/arm.h (NO_ARG_ARRAY):
4667 * m/amdx86-64.h (NO_ARG_ARRAY):
4668 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4669
adf4f59c
EZ
46702010-04-25 Eli Zaretskii <eliz@gnu.org>
4671
6bdf5d65
EZ
4672 * xdisp.c (display_line): Don't assume 2nd call to
4673 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4674 (iterate_out_of_display_property): New function, body from pop_it.
4675 (pop_it): Use it.
adf4f59c 4676
dfbbda83
GM
46772010-04-24 Glenn Morris <rgm@gnu.org>
4678
4679 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4680 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4681 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4682 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4683
2d4018aa
EZ
46842010-04-24 Eli Zaretskii <eliz@gnu.org>
4685
a49884a6
EZ
4686 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4687 use `get_next_display_element' and `set_iterator_to_next' to
4688 advance to the next character, when looking for the character that
4689 begins the next row.
4690
76db6fcc 4691 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4692 definition of "struct Lisp_Symbol".
4693
70eab5c1
GM
46942010-04-24 Glenn Morris <rgm@gnu.org>
4695
4696 * Makefile.in (CRT_DIR): New variable, set by configure.
4697 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4698 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4699
1ad4cc3d
DN
47002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4701
e769f484
DN
4702 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4703
4196ff33
DN
4704 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4705
879b0ee4
DN
4706 Remove redundant flags.
4707 * s/freebsd.h (C_SWITCH_SYSTEM):
4708 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4709 * s/netbsd.h (C_SWITCH_SYSTEM):
4710 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4711 of these.
4712
03cbbcb8
DN
4713 Simplify m/intel386.h.
4714 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4715 user: ecrt0.c.
4716 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4717 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4718 the only user: s/unixware.h.
4719 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4720 from m/intel386.h.
4721 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4722 moved here from m/intel386.h.
4723
1ad4cc3d
DN
4724 * m/mips.h: Remove #if 0 code.
4725
8785b888
EZ
47262010-04-23 Eli Zaretskii <eliz@gnu.org>
4727
728588cc
EZ
4728 Fix display of composed characters from L2R scripts in bidi buffers.
4729 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4730 After advancing IT past the composition, resync the bidi iterator
4731 with IT's position. (Bug#5977)
4732
a63f80b4
DN
47332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4734
4735 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4736 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4737
ff5dec5c
SM
47382010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4739
4740 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4741
8785b888
EZ
47422010-04-23 Eli Zaretskii <eliz@gnu.org>
4743
58ccf243 4744 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4745 * xdisp.c (pop_it): When the stack is popped after displaying
4746 from a string, bidi-iterate to exit from the text portion covered
4747 by the `display' property or overlay. (Bug#5988, bug#5920)
4748
feeb1604
DN
47492010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4750
8e324eb6
DN
4751 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4752 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4753
809fcaba
DN
4754 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4755 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4756
ed710380
DN
4757 Simplify STARTFILES definition.
4758 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4759 relying on Makefile.in to define it.
4760 * s/cygwin.h (START_FILES): Likewise.
4761 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4762
feeb1604
DN
4763 Clean up Solaris code.
4764 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4765 (LIB_MOTIF): Remove, configure takes care of this.
4766 (NOT_USING_MOTIF): Remove, unused.
4767 * xrdb.c: Remove #if 0-ed #include.
4768 (SYSV): Remove conditional for old SysV.
4769 * sysdep.c (closedir): Remove conditional code for Solaris,
4770 Solaris has closedir.
4771
a0d0b563
JD
47722010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4773
4774 * xsettings.c (read_and_apply_settings): Check if current_font is
4775 NULL before strcmp (Bug#6001).
4776
56bae7c7
DN
47772010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4778
4779 Clean up HP-UX files.
4780 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4781 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4782 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4783 * s/hpux10-20.h: ... to the only user, here.
4784
372b7a95
EZ
47852010-04-21 Eli Zaretskii <eliz@gnu.org>
4786
4787 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4788 use buffer-local values of paragraph-start and paragraph-separate.
4789 <paragraph_start_re, paragraph_separate_re>: Rename from
4790 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4791 (Bug#5992)
4792
f904c0f9
JD
47932010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4794
4795 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4796 current_tool_bar_style are new.
4797 (store_config_changed_event): Rename from store_font_changed_event.
4798 (XSETTINGS_TOOL_BAR_STYLE): New define.
4799 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4800 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4801 HAVE_XFT.
4802 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4803 store_config_changed_event.
f904c0f9
JD
4804 (parse_settings): Rename from parse_xft_settings. Read
4805 non-xft xsettings outside #ifdef HAVE_XFT.
4806 (read_settings): Renamed from read_xft_settings.
4807 (apply_xft_settings): Take current settings as parameter. Do not
4808 call read_(xft)_settings.
4809 (read_and_apply_settings): New function.
4810 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4811 read_and_apply_settings if there are settings to be read.
4812 (init_xsettings): Renamed from init_xfd_settings.
4813 Call read_and_apply_settings unconditionally.
4814 (xsettings_initialize): Call init_xsettings.
4815 (Ftool_bar_get_system_style): New function.
4816 (syms_of_xsettings): Define Qmonospace_font_name and
4817 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4818 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4819 dynamic-setting.
31a01b90 4820 Move misplaced HAVE_GCONF
f904c0f9
JD
4821
4822 * xsettings.h (Ftool_bar_get_system_style): Declare.
4823
4824 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4825 Qtext, Qboth, Qboth_horiz are new.
4826 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4827 Vtool_bar_style, tool_bar_max_label_size.
4828
4829 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4830
4831 * keyboard.c: QClabel is new.
4832 (parse_tool_bar_item): Take out QClabel from tool bar items.
4833 Try to construct a label if ther is no QClabel.
4834 (syms_of_keyboard): Intern :label as QClabel.
4835
4836 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4837 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4838 New.
4839
4840 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4841 dynamic-setting.el.
4842
4843 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4844 (xg_make_tool_item, xg_show_toolbar_item): New function.
4845 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4846 Call xg_make_tool_item to make a tool bar item.
4847 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4848
4849 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4850 into account for toolbars.
4851
c632dfda
JD
48522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4853
4854 * data.c (make_blv): Declarations before code (Bug#5993).
4855
10efe302
GM
48562010-04-21 Glenn Morris <rgm@gnu.org>
4857
4858 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4859 Define using autoconf, not cpp.
4860 (LIBXSM): New variable, set by autoconf.
4861 (LIBXT): Use $LIBXSM.
4862
4285ac5a
DN
48632010-04-21 Dan Nicolaescu <local_user@dannlt>
4864
3ec759e7
DN
4865 Remove NOMULTIPLEJOBS, unused.
4866 * s/template.h (NOMULTIPLEJOBS):
4867 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4868
4285ac5a
DN
4869 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4870 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4871 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4872 detects -znocombreloc and passes it to the linker
4873 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4874
2807228d
GM
48752010-04-21 Glenn Morris <rgm@gnu.org>
4876
4877 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4878
574c05e2
KK
48792010-04-21 Karel Klíč <kklic@redhat.com>
4880
4881 * Makefile.in (LIBSELINUX_LIBS): New.
4882 (LIBES): Add $LIBSELINUX_LIBS.
4883 * eval.c, lisp.h (call7): New function.
4884 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4885 (Ffile_selinux_context, Fset_file_selinux_context):
4886 New functions.
4887 (Fcopy_file): New parameter preserve-selinux-context.
4888 (Frename_file): Preserve selinux context when renaming by copy-file.
4889
91eac4bb 48902010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4891 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4892
50426a04
JB
4893 Don't depend on cm.c or termcap.c on Windows, use stubs.
4894 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4895 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4896 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4897 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4898 (sys_tputs, sys_tgetstr): New stubs.
4899 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4900 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4901
938efb77
JB
49022010-04-20 Juanma Barranquero <lekktu@gmail.com>
4903
4904 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4905
b4bf28b7
SM
49062010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4907
8b1e1112
SM
4908 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4909 Just signal a warning rather than an error when inside a let.
4910 (Fmake_variable_frame_local): Add the same test.
4911
933ac235
SM
4912 * font.c (syms_of_font): Make the style table vars read-only.
4913
b4bf28b7
SM
4914 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4915 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4916
4917 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4918
93d68d0c
EZ
49192010-04-20 Eli Zaretskii <eliz@gnu.org>
4920
4921 Fix R2L paragraph display on TTY.
4922
4923 * xdisp.c (unproduce_glyphs): New function.
4924 (display_line): Use it when produced glyphs are discarded from R2L
4925 glyph rows.
4926 (append_composite_glyph): In R2L rows, prepend the glyph rather
4927 than appending it.
4928
4929 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4930 rather than append it. Set up the resolved_level and bidi_type
4931 attributes of the appended glyph.
283ccc18
EZ
4932 (produce_special_glyphs): Mirror the backslash continuation
4933 character in R2L lines.
93d68d0c 4934
283ccc18 4935 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4936
283ccc18
EZ
4937 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4938 append_stretch_glyph.
4939 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4940 off-by-one error in computing x at end of text in the row.
4941 (append_stretch_glyph): In reversed row, prepend the glyph rather
4942 than append it. Set resolved_level and bidi_type of the glyph.
4943 (extend_face_to_end_of_line): If the row is reversed, prepend a
4944 stretch glyph whose width is such that the rightmost glyph will be
4945 drawn at the right margin of the window. Fix off-by-one error on
4946 TTY frames in testing whether a line needs face extension. Fix
4947 face extension at ZV. If this is the last glyph row, use
4948 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4949 region face.
4950 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4951 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4952 row->continuation_lines_width.
283ccc18
EZ
4953 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4954 are at ZV. Fixes a crash when reseated to ZV by
4955 try_window_reusing_current_matrix.
45903529
EZ
4956 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4957 which happens with R2L glyph rows. Fixes a crash when inserting a
4958 character at end of an R2L line.
283ccc18
EZ
4959 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4960 treat them as having zero-width characters. Improve comments.
4961 Don't reverse pos_before and pos_after for reversed glyph rows.
4962 Set cursor.x to negative value when the cursor might be on the
4963 left fringe.
4964 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4965 left fringe, not the right one.
f951a506
EZ
4966 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4967 (erase_phys_cursor): For reversed cursor_row, support cursor on
4968 the left fringe.
4969
283ccc18
EZ
4970 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4971 of continuation indicators on the fringes.
4972 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4973 left fringe.
4974
f951a506
EZ
4975 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4976 draw cursor on the left fringe.
4977
4978 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4979 cursor on the left fringe.
4980
f951a506
EZ
4981 * dispnew.c (update_text_area): Handle reversed desired rows when
4982 the cursor is on the left fringe.
4983 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4984 below, not by 0, for when the cursor is on the left fringe.
4985
3bb49aaf
JD
49862010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4987
4988 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4989 widget is a scrollbar.
4990
c0be27fd
KH
49912010-04-20 Kenichi Handa <handa@m17n.org>
4992
4993 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4994 only when the arg CHARSET_LIST is nil.
4995
ce5b453a
SM
49962010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4997
4998 Make variable forwarding explicit rather the using special values.
4999 Basically, this makes the structure of buffer-local values and object
5000 forwarding explicit in the type of Lisp_Symbols rather than use
5001 special Lisp_Objects for that. This tends to lead to slightly more
5002 verbose code, but is more C-like, simpler, and makes it easier to make
5003 sure we handled all cases, among other things by letting the compiler
5004 help us check it.
5005 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5006 Removing forwarding objects.
5007 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5008 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5009 explicit rather than hiding them inside Lisp_Object "values".
5010 (XFWDTYPE): New macro.
5011 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5012 (XBUFFER_LOCAL_VALUE): Remove.
5013 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5014 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5015 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5016 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5017 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5018 Remove the Lisp_Misc_* header.
5019 (struct Lisp_Buffer_Local_Value): Redefine.
5020 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5021 (struct Lisp_Misc_Any): Add filler to get the right size.
5022 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5023 Lisp_Intfwd.
5024 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5025 (DEFVAR_KBOARD): Allocate a forwarding object.
5026 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5027 (let_shadows_global_binding_p): New function.
5028 (union Lisp_Val_Fwd): New type.
5029 (make_blv): New function.
5030 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5031 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5032 (swap_in_symval_forwarding, find_symbol_value, Fset)
5033 (let_shadows_buffer_binding_p, set_internal, default_value)
5034 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5035 (Fkill_local_variable, Fmake_variable_frame_local)
5036 (Flocal_variable_p, Flocal_variable_if_set_p)
5037 (Fvariable_binding_locus):
5038 * xdisp.c (select_frame_for_redisplay):
5039 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5040 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5041 * frame.c (store_frame_param):
5042 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5043 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5044 value structure.
5045 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5046 (clone_per_buffer_values): Only adjust markers into the current buffer.
5047 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5048 (Fbuffer_local_value, set_buffer_internal_1)
5049 (swap_out_buffer_local_variables):
5050 Adapt to the new symbol value structure.
5051 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5052 (defvar_per_buffer): Take a new arg for the fwd object.
5053 (buffer_lisp_local_variables): Return a proper alist (different fix
5054 for bug#4138).
5055 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5056 (Fgarbage_collect): Don't handle buffer_defaults specially.
5057 (mark_object): Handle new symbol value structure rather than the old
5058 special Lisp_Misc_* objects.
5059 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5060 * term.c (set_tty_color_mode):
5061 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5062 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5063 a buffer_local_flags.
5064 * print.c (print_object): Get rid of impossible forwarding objects.
5065
fd3998ff
EZ
50662010-04-19 Eli Zaretskii <eliz@gnu.org>
5067
5068 * bidi.c (bidi_get_type, bidi_get_category)
5069 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5070 (bidi_type_of_next_char, bidi_level_of_next_char):
5071 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5072
e42cd1a7
JB
50732010-04-19 Juanma Barranquero <lekktu@gmail.com>
5074
5075 * dired.c (Ffile_attributes): Fix typo in docstring.
5076
6e104790 50772010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5078
5079 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5080 NSInteger (Bug#5811).
5081
6e104790 50822010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5083
5084 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5085 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5086
6e104790 50872010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5088
5089 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5090
6e104790
SM
50912010-04-19 Chong Yidong <cyd@stupidchicken.com>
5092
5093 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5094 terminal frames (Bug#5837).
5095
37dcfea0
EZ
50962010-04-19 Eli Zaretskii <eliz@gnu.org>
5097
d1da276f
EZ
5098 * .gdbinit (xsubchartable): New command.
5099
37dcfea0
EZ
51002010-04-19 Eli Zaretskii <eliz@gnu.org>
5101
5102 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5103 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5104 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5105 and
5106 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5107
e9515805
SM
51082010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5109
5110 * alloc.c (Fpurecopy): Hash-cons if requested.
5111 (syms_of_alloc): Update purify-flag docstring.
5112
22aa44a8
JD
51132010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5114
5115 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5116 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5117
ebb5722e
EZ
51182010-04-17 Eli Zaretskii <eliz@gnu.org>
5119
5120 Fix a crash when an NSM character is inserted at BEGV.
5121
5122 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5123 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5124 NEUTRAL_B or UNKNOWN_BT.
5125
0f4442ef
EZ
51262010-04-16 Eli Zaretskii <eliz@gnu.org>
5127
5128 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5129 other rows with cursor unless they are different from this row and
5130 this row is part of a continued line. (Bug#5943)
5131
7d4e45f8
DN
51322010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5133
5134 * s/freebsd.h: Restore osreldate.h include.
5135 Suggested by Naohiro Aota.
5136
5ba5ec85
J
51372010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5138
5139 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5140
20af301d
CY
51412010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5142
5143 * s/cygwin.h: Avoid linking against static libgcc.
5144
a4b000fb
JL
51452010-04-15 Juri Linkov <juri@jurta.org>
5146
5147 * window.c: Add Qscroll_command.
5148 Remove Vscroll_preserve_screen_position_commands.
5149 (window_scroll_pixel_based, window_scroll_line_based): Check the
5150 `scroll-command' property on the last command instead of searching
5151 the last command in Vscroll_preserve_screen_position_commands.
5152 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5153 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5154 (scroll-preserve-screen-position): Doc fix.
5155 (Vscroll_preserve_screen_position_commands): Remove variable.
5156
bc319ba4
DN
51572010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5158
6bb24457
DN
5159 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5160
19d4c244
DN
51612010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5162
5163 Reduce cpp use in Makefile.in.
5164 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5165 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5166 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5167 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5168 (CRT0_COMPILE): Remove, inline it in the only user.
5169
32129746
JL
51702010-04-14 Juri Linkov <juri@jurta.org>
5171
5172 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5173 `scroll-up-command' and `M-v' from `scroll-down' to
5174 `scroll-down-command'.
5175
9013a7f8
JL
51762010-04-14 Juri Linkov <juri@jurta.org>
5177
5178 * window.c (Vscroll_preserve_screen_position_commands): New variable
5179 with the default value as the list of Qscroll_down and Qscroll_up.
5180 (window_scroll_pixel_based, window_scroll_line_based): Search the
5181 last command in the list Vscroll_preserve_screen_position_commands
5182 instead of comparing with Qscroll_up and Qscroll_down.
5183
4bef8d26
JD
51842010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5185
92848133
JD
5186 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5187 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5188 does that.
5189
4bef8d26
JD
5190 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5191 to zero.
5192
58b963f7
SM
51932010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5194
84164a0d
SM
5195 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5196
2b0a91e7
SM
5197 Try to solve the problem of spurious EOF chars in long lines of text
5198 sent to interactive subprocesses.
5199 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5200 (system_process_attributes): Remove unused var `ttotal'.
5201 * process.c (send_process): Don't bother breaking long line with EOF
5202 chars when talking to ttys any more.
5203 (wait_reading_process_output): Output a warning when called in such
5204 a way that it could block without being interruptible.
5205
58b963f7
SM
5206 Try to detect file modification within the same second.
5207 * buffer.h (struct buffer): New field modtime_size.
5208 * buffer.c (reset_buffer): Initialize it.
5209 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5210 (Fverify_visited_file_modtime): Check it.
5211 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5212 (Fset_visited_file_modtime): Set (or clear) it.
5213
01f5787b
SM
52142010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5215
5216 * process.c (status_notify): Remove unused var `ro'.
5217
83725342
JD
52182010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5219
5220 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5221 more than one visual (Bug#5938).
5222
b9465836
DN
52232010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5224
50426a04
JB
5225 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5226 Undefine.
b9465836 5227
8d9c8ece
DN
52282010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5229
b1f52161
DN
5230 Remove C_SWITCH_SYSTEM_TEMACS.
5231 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5232 (malloc, realloc, free): Use emacs, not temacs for conditional
5233 definition.
5234
5235 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5236 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5237
8d9c8ece
DN
5238 Use autoconf, not cpp for some variables.
5239 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5240 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5241 (ALL_CFLAGS): Use them as make variables.
5242 (really-lwlib, really-oldXMenu): Do not pass them.
5243
1ecb2d3f
JD
52442010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5245
5246 * xmenu.c (apply_systemfont_to_dialog): New.
5247 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5248
3a4fa2f2
SM
52492010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5250
97e53006
SM
5251 * process.c (exec_sentinel): Preserve current-buffer.
5252
3a4fa2f2
SM
5253 * process.c (read_process_output): Move the save-current-buffer to
5254 apply to both the filter and the non-filter branches.
5255
88df7221
DN
52562010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5257
5258 * s/msdos.h (UNEXEC): New definition.
5259
5634ff85
YM
52602010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5261
6eff5c3d
YM
5262 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5263 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5264
5265 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5266 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5267 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5268 TRY_WINDOW_CHECK_MARGINS.
5269
5270 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5271 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5272 width only when it is for padding.
5634ff85 5273
b13aef54
J
52742010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5275
5276 * xfns.c (Fx_show_tip): Call try_window in a loop until
5277 fonts_changed_p is zero (Bug#2423).
5278
21d28484
EZ
52792010-04-08 Eli Zaretskii <eliz@gnu.org>
5280
5281 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5282 the end of TEXT_AREA. (Bug#5856)
5283
0269ef77
JD
52842010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5285
5286 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5287 HAVE_GCONF.
5288
5930fe97
EZ
52892010-04-08 Eli Zaretskii <eliz@gnu.org>
5290
5291 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5292 prev.orig_type, for resolving type of NSM. (Bug#5858)
5293
99852628
JD
52942010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5295
5296 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5297 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5298 in current_font.
5299 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5300 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5301 New functions.
5302 (syms_of_xsettings): Initialize current_font.
5303 defsubr Sfont_get_system_normal_font.
99852628 5304
686b968e
JB
5305 * xsettings.h (Ffont_get_system_normal_font)
5306 (xsettings_get_system_normal_font): Declare.
99852628
JD
5307
5308 * xfns.c (extern xlwmenu_default_font): Remove.
5309 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5310 to xlwmenu.c.
5311
5312 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5313 menu items in UTF-8.
5314
5315 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5316 (apply_systemfont_to_menu): New function.
5317 (set_frame_menubar, create_and_show_popup_menu): Call
5318 apply_systemfont_to_menu.
5319
7fc874c4
J
53202010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5321
5322 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5323 FRAME_LINE_TO_PIXEL_Y.
5324
5325 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5326 pixelwidth/height.
5327
863bf481
DN
53282010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5329
5e5a3b92
DN
5330 Simplify code for HP machines.
5331 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5332 for GNU_LINUX, not needed.
5333 (UNEXEC, NEED_BSDTTY): Move definitions...
5334 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5335
863bf481
DN
5336 * m/iris4d.h (UNEXEC): Move definition ...
5337 * s/irix6-5.h (UNEXEC): ... here.
5338
3e6bec3b
JD
53392010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5340
5341 * xfns.c (set_machine_and_pid_properties): New function.
5342 (Fx_create_frame): Call set_machine_and_pid_properties.
5343
2912322b
SM
53442010-04-03 Eli Zaretskii <eliz@gnu.org>
5345
1502b819
EZ
5346 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5347 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5348 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5349
2912322b
SM
5350 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5351 in this function. (Bug#5703)
5352
53532010-04-03 Chong Yidong <cyd@stupidchicken.com>
5354
5355 * nsterm.h: Fix last change.
5356
c435b432
DN
53572010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5358
a568f507
DN
5359 * m/intel386.h (NO_REMAP): Move definition ...
5360 * s/msdos.h (NO_REMAP): ... here.
5361
4cd9f6c2
DN
5362 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5363
c435b432
DN
5364 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5365 used on those platforms.
5366
42a2c622
DN
53672010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5368
5369 Remove extern errno declarations.
5370 * xterm.c:
5371 * xrdb.c:
5372 * w32term.c:
5373 * unexec.c:
5374 * unexaix.c:
5375 * sysdep.c:
5376 * process.c:
5377 * lread.c:
5378 * keyboard.c:
5379 * floatfns.c:
5380 * filelock.c:
5381 * fileio.c:
5382 * emacs.c (main):
5383 * ecrt0.c:
5384 * dispnew.c:
5385 * callproc.c:
5386 * buffer.c: Remove errno extern declarations.
5387 * s/netbsd.h (NEED_ERRNO): Remove.
5388
8224f93d
DN
53892010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5390
5391 Remove all uses of LIBX11_SYSTEM.
5392 * Makefile.in (LIBX11_SYSTEM): Remove.
5393 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5394 instead.
5395
814062c7
EZ
53962010-04-01 Eli Zaretskii <eliz@gnu.org>
5397
ed68db4d
EZ
5398 Remove support for DJGPP v1.x (bug#5813).
5399
5400 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5401 * s/msdos.h:
5402 * unexec.c (make_hdr, copy_text_and_data):
5403 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5404 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5405 (IT_set_terminal_modes, __write, _rename, gethostname)
5406 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5407 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5408 the value of __DJGPP__.
ed68db4d
EZ
5409 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5410 compatibility code.
8224f93d
DN
5411 * lread.c:
5412 * gmalloc.c (memalign):
5413 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5414 * emacs.c (main):
5415 * dosfns.c (init_dosfns):
ed68db4d
EZ
5416 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5417
52f4d8d5
EZ
54182010-04-01 Eli Zaretskii <eliz@gnu.org>
5419
814062c7
EZ
5420 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5421 string with `cursor' property comes from an `after-string'
5422 overlay. (Bug#5816)
5423
0dc2e11d
GM
54242010-04-01 Glenn Morris <rgm@gnu.org>
5425
5426 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5427 Define as Makefile variables.
5428 (LIBX): Use above variables rather than directly using autoconf.
5429
1d29df59
DN
54302010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5431
5432 Clean up BSD_SYSTEM use.
5433 * xterm.c:
5434 * process.c:
5435 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5436 for including <sys/ioctl.h>.
5437 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5438 code is only used for MSDOS.
5439
1546c559
JL
54402010-03-31 Juri Linkov <juri@jurta.org>
5441
5442 * image.c: Add `Qextension_data'.
5443 (syms_of_image): Initialize and staticpro `Qextension_data'.
5444 (Fimage_metadata): Rename from `Fimage_extension_data'.
5445 (gif_load): Put GIF extension data to the property
5446 `Qextension_data'.
5447
6521c534
CY
54482010-03-31 Chong Yidong <cyd@stupidchicken.com>
5449
5450 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5451 * nsterm.h: Fix prototype.
5452
52c30783
EZ
54532010-03-31 Eli Zaretskii <eliz@gnu.org>
5454
5455 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5456 trailing whitespace in right-to-left rows.
5457
855a0da7
SM
54582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5459
5460 Get rid of the direct_output optimizations.
5461 * keyboard.c (nonundocount): Remove extern declaration.
5462 (command_loop_1): Remove brittle optimisation for cheap and
5463 common operations.
5464 * xdisp.c (redisplay_internal): Don't bother checking
5465 redisplay_performed_directly_p any more.
5466 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5467 any more.
5468 * dispnew.c (redisplay_performed_directly_p)
5469 (direct_output_for_insert, direct_output_forward_char):
5470 * dispextern.h (redisplay_performed_directly_p)
5471 (direct_output_for_insert, direct_output_forward_char): Remove.
5472 * cmds.c (nonundocount): Make it static.
5473
85738751 54742010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5475
5476 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5477
85738751 54782010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5479
5480 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5481 invisible (Bug#5766).
5482
85738751 54832010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5484
855a0da7
SM
5485 * xdisp.c (x_consider_frame_title, update_window_cursor):
5486 Remove HAVE_NS conditionals.
194d44e7 5487 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5488
5489 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5490 filename for the title.
5491 (ns_set_doc_edited): Do nothing if the selected window is a
5492 minibuffer window.
5493
5494 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5495 ns_set_doc_edited.
5496
5497 * nsterm.m: Remove unneeded prototype.
5498
85738751 54992010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5500
5501 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5502 in the DOC file. (Bug#5336)
5503
85738751 55042010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5505
5506 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5507
75d1428c
SM
55082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5509
5510 * window.c (keys_of_window): Remove redundant/overridden bindings.
5511
82043cfb
EZ
55122010-03-30 Eli Zaretskii <eliz@gnu.org>
5513
5514 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5515 Restore original behavior when the iterator is not bidi_p.
5516
b5dd0ae7
DN
55172010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5518
5519 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5520
bd924a5d
EZ
55212010-03-30 Eli Zaretskii <eliz@gnu.org>
5522
5523 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5524 are outside the range of cached character positions.
5525
3580374b
JB
55262010-03-30 Juanma Barranquero <lekktu@gmail.com>
5527
5528 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5529
a7b02820
EZ
55302010-03-30 Eli Zaretskii <eliz@gnu.org>
5531
5532 Initial support for bidirectional editing.
5533
5534 * Makefile.in (obj): Include bidi.o.
5535 (bidi.o): New target.
5536
5537 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5538 ($(BLD)/bidi.$(O)): New target.
5539
5540 * bidi.c: New file.
5541
5542 * buffer.h (struct buffer): New members bidi_display_reordering
5543 and bidi_paragraph_direction.
5544
5545 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5546 and bidi_paragraph_direction.
5547 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5548 and bidi-paragraph-direction.
5549 (Fbuffer_swap_text): Swap the values of
5550 bidi_display_reordering and bidi_paragraph_direction.
5551
5552 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5553 (bidi_type_t, bidi_dir_t): New types.
5554 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5555 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5556 prev_stop, base_level_stop, and eol_pos.
5557 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5558 (IT_STACK_SIZE): Enlarge to 5.
5559 (struct glyph_row): New member reversed_p.
5560 <string_buffer_position>: Update prototype.
5561 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5562 glyph_row if bidi_it.paragraph_dir == R2L.
5563 (struct glyph): New members resolved_level and bidi_type.
5564
5565 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5566 processing or buffer's direction is right-to-left.
5567 (prepare_desired_row): Preserve the reversed_p flag.
5568 (row_equal_p): Compare the reversed_p attributes as well.
5569
5570 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5571 bidi_init_it and set it->paragraph_embedding from the current
5572 buffer's value of bidi_paragraph_direction.
5573 (reseat_1): Initialize bidi_it.first_elt.
5574 (set_iterator_to_next, next_element_from_buffer): Use the value of
5575 paragraph_embedding to determine the paragraph direction.
5576 (set_iterator_to_next): Under bidi reordering, call
5577 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5578 new_paragraph flag is set in the bidi iterator.
5579 (next_element_from_buffer): If bidi_it.first_elt is set,
5580 initialize paragraph direction and find the first character to
5581 display in the visual order. If reseated to a middle of a line,
5582 prime the bidi iterator starting at the line's beginning. Handle
5583 the situation where we overstepped stop_charpos due to
5584 non-linearity of the bidi iteration. Likewise for when we back up
5585 beyond the previous stop_charpos. When moving across stop_charpos,
5586 record it in prev_stop.
5587 (display_line): Set row->end and it->start for the next row to the
5588 next character in logical order. Always extend reversed_p rows to
5589 the end of line, even if they end at ZV. Copy the reversed_p flag
5590 to the next glyph row. Keep calling set_cursor_from_row for
5591 bidi-reordered rows even if we already have a possible candidate
5592 for cursor position. Set row_end after all the row's glyphs have
5593 been produced, by looping over the glyphs. Record the position
5594 after EOL in it->eol_pos, and use it to set end_pos of the last
5595 row produced for a continued line.
5596 <Qright_to_left, Qleft_to_right>: New variables.
5597 (syms_of_xdisp): Initialize and staticpro them.
5598 (string_buffer_position_lim): New function.
5599 (string_buffer_position): Most of code moved to
5600 string_buffer_position_lim. Last argument and return value are
5601 now EMACS_INT; all callers changed.
5602 (set_cursor_from_row): Rewritten to support bidirectional text and
5603 reversed glyph rows.
5604 (text_outside_line_unchanged_p, try_window_id): Disable
5605 optimizations if we are reordering bidirectional text and the
5606 paragraph direction can be affected by the change.
5607 (append_glyph, append_composite_glyph)
5608 (produce_image_glyph, append_stretch_glyph): Set the
5609 resolved_level and bidi_type members of each glyph.
5610 (append_glyph): If the glyph row is reversed, prepend the glyph
5611 rather than appending it.
5612 (handle_stop_backwards): New function.
5613 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5614 (reseat): call handle_stop_backwards to recompute prev_stop and
5615 base_level_stop for the new position.
5616 (handle_invisible_prop): Under bidi iteration, skip invisible text
5617 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5618 paragraph direction. Update IT->prev_stop after skipping
5619 invisible text.
5620 (move_it_in_display_line_to): New variables prev_method
5621 and prev_pos. Compare for strict equality in
5622 BUFFER_POS_REACHED_P.
5623 (try_cursor_movement): Examine all the candidate rows that occlude
5624 point, to return the best match. If rows are bidi-reordered
5625 and point moved backwards, back up to the row that is not a
5626 continuation line, and start looking for a suitable row from
5627 there.
5628
5629 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5630 rather than appending, if the glyph_row's reversed_p flag is set.
5631 Set the resolved_level and bidi_type members of each glyph.
5632
5633 * .gdbinit (pbiditype): New command.
5634 (pgx): Use it to display bidi level and type of the glyph.
5635 (pitx): Display some bidi information about the iterator.
5636 (prowlims, pmtxrows): New commands.
5637
32a8894e
DN
56382010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5639
5640 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5641 * s/usg5-4.h (LIBS_DEBUG):
5642 * s/irix6-5.h (C_DEBUG_SWITCH):
5643 * s/gnu-linux.h (LIBS_DEBUG):
5644 * s/darwin.h (LIBS_DEBUG):
5645 * s/bsd-common.h (LIBS_DEBUG):
5646 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5647 * m/iris4d.h (LIBS_DEBUG):
5648 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5649
5650 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5651 (LIBS_DEBUG): Remove definition.
5652
649dbf36
CY
56532010-03-27 Chong Yidong <cyd@stupidchicken.com>
5654
5655 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5656 Windows.
5657
cad4261f
YM
56582010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5659
5660 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5661 `connect' (Bug#5723).
5662
cd591dbc
HE
56632010-03-25 Helmut Eller <eller.helmut@gmail.com>
5664
5665 * process.c (Fmake_network_process): Call `select' for interrupted
5666 `connect' rather than creating new socket (Bug#5173).
5667
e867cb5d 56682010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5669
5670 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5671
5672 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5673
5674 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5675
e867cb5d 56762010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5677
5678 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5679 XLoadQueryFont.
5680
e867cb5d 56812010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5682
5683 * coding.c (decode_coding_ccl): Fix previous change for the
5684 multibyte case.
fb608df3
KH
5685 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5686 case that the output buffer is fullfilled.
5687 (encode_coding): Setup ccl program here.
fbdc1721 5688
5845f0ed
DN
56892010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5690
814fb708
DN
5691 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5692
5845f0ed
DN
5693 Simplify LIBS_MACHINE definitions.
5694 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5695 * m/iris4d.h (LIBS_MACHINE): Likewise.
5696 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5697 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5698 * s/netbsd.h: Remove commented out code.
5845f0ed 5699
b7064064
DN
57002010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5701
df7734b2
DN
5702 Remove dead code dealing with POSIX_SIGNALS.
5703 * atimer.c (set_alarm): Remove dead code, all USG systems define
5704 POSIX_SIGNALS.
5705 * data.c (arith_error): Likewise.
5706 * keyboard.c (input_available_signal, handle_user_signal)
5707 (interrupt_signal): Likewise.
5708 * process.c (sigchld_handler): Likewise.
5709 (create_process): Remove if 0 code. Remove HPUX conditional when
5710 !defined (POSIX_SIGNALS), it cannot be true.
5711 * syssignal.h: Remove USG5_4 and USG conditionals when
5712 !POSIX_SIGNALS, they cannot be true.
5713
b7064064
DN
5714 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5715 NO_SOCK_SIGIO, not used anymore.
5716
55da5ee3
DN
57172010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5718
0be96e3a
DN
5719 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5720 support vax on BSDs.
5721
55da5ee3
DN
5722 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5723 * s/aix4-2.h (ORDINARY_LINK): ... here.
5724
c0282183
AS
57252010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5726
82c3d67a
AS
5727 * Makefile.in (abs_builddir): Define.
5728 (bootstrap_exe): Use it.
5729 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5730
3613edce
SM
57312010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5732
5733 * Makefile.in (bootstrap_exe): Use an absolute name.
5734
7f110ddc
DN
57352010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5736
22e87574
DN
5737 Remove support for old GNU/Linux using libc version 5.
5738 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5739 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5740
05a670e6
DN
5741 Consolidate redundant definitions in s/bsd-common.h.
5742 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5743 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5744 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5745 doing it in all files that include this one.
5746 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5747 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5748 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5749 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5750 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5751 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5752 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5753 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5754 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5755
2968f561
DN
5756 Consolidate redundant definitions.
5757 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5758 it's undefined in all files that include this one.
5759 (POSIX_SIGNALS): Define here instead of doing it in all files that
5760 include this one.
5761 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5762 (POSIX_SIGNALS): Do not define.
5763 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5764 (POSIX_SIGNALS): Do not define.
5765 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5766 (POSIX_SIGNALS): Do not define.
5767
15d25dc0
DN
5768 Remove support for old UNIX System V systems.
5769 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5770 * s/usg-5-4-2.h: Remove.
5771
07e339e4
DN
5772 Remove support for Solaris on PPC and for old versions.
5773 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5774 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5775 that cancel each other.
5776 * s/sol2-3.h:
5777 * s/sol2-4.h:
5778 * s/sol2-5.h: Remove.
5779 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5780 (NO_REMAP): Remove, unused.
5781 (UNEXEC): Move definition ...
5782 * s/aix4-2.h (UNEXEC): ... here.
5783
7f110ddc
DN
5784 * s/openbsd.h: Remove support for non-ELF and for systems that do
5785 not support shared libraries.
5786 * s/netbsd.h:
5787 * s/freebsd.h: Likewise.
5788
605f35cd
DN
57892010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5790
5791 Remove non-working support for lynxos 3.0.
5792 * s/lynxos.h: Remove file.
5793
5794 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5795 COFF_BSD_SYMBOLS, nothing defines it anymore.
5796
aed71cf4
DN
57972010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5798
5799 Remove obsolete uses of HAVE_SHM.
5800 * emacs.c (standard_args):
5801 (Fdump_emacs):
5802 (syms_of_emacs): Remove code depending on HAVE_SHM.
5803
5804 * alloc.c: Remove HAVE_SHM dependent definition.
5805
5806 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5807
aded53ff
GM
58082010-03-18 Glenn Morris <rgm@gnu.org>
5809
17284745
GM
5810 * emacs.c (USAGE4): Hard-code bug address.
5811 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5812 (bug_reporting_address): Remove.
5813 (main): Don't call bug_reporting_address.
5814
aded53ff
GM
5815 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5816 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5817
303500aa
CY
58182010-03-15 Chong Yidong <cyd@stupidchicken.com>
5819
5820 * xfns.c (Fx_create_frame):
5821 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5822 on left.
5823
cef3058f
CY
58242010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5825
5826 * editfns.c (Fformat): Account for string precision when computing
5827 field width (Bug#5710).
5828
a647d59d
CY
58292010-03-12 Chong Yidong <cyd@stupidchicken.com>
5830
4fa42018
CY
5831 * xfns.c (Fx_create_frame): Set default to Qright.
5832
a647d59d
CY
5833 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5834 all window systems.
5835
6da23aaa
EZ
58362010-03-12 Eli Zaretskii <eliz@gnu.org>
5837
a96f6398 5838 These changes remove termcap.c from the build on Posix platforms.
83d02def 5839 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5840 (MSDOS_OBJ): ...to here.
5841 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5842 now identical to when LIBS_TERMCAP is defined.
5843
5844 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5845
5846 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5847
a96f6398 5848 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5849
288f9fc0
CY
58502010-03-10 Chong Yidong <cyd@stupidchicken.com>
5851
5852 * Branch for 23.2.
5853
d48cd3f4
SM
58542010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5855
5856 Cleanup setup of gl_state in various parts of the code.
5857 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5858 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5859 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5860 (skip_chars):
5861 * regex.c (regex_compile): Use it.
5862 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5863 it's now set in regex_compile when/if we need it.
5864
618db430
SM
58652010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5866
c0335e02
SM
5867 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5868 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5869 (QUIT): Use it to consolidate code and remove redundancy.
5870 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5871
254c06a8
SM
5872 * regex.c (regex_compile): Setup gl_state as well.
5873
618db430
SM
5874 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5875 (in_classes): Use CONSP before XCAR/XCDR.
5876
233f0c9f
CY
58772010-03-03 Chong Yidong <cyd@stupidchicken.com>
5878
5879 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5880 definitions, so that keyboard macros are correctly handled
5881 (Bug#5481).
5882
75f80e63
EZ
58832010-03-02 Eli Zaretskii <eliz@gnu.org>
5884
5885 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5886 text that could be relocated inside the call to emacs_mule_char.
5887 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5888 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5889
dcfb9bc4
KH
58902010-03-02 Kenichi Handa <handa@m17n.org>
5891
fc9a17bc
KH
5892 * character.c (parse_str_as_multibyte): Fix handling of the
5893 multibyte form of raw-bytes.
5894 (str_as_multibyte): Likewise.
5895
dcfb9bc4
KH
5896 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5897 form of raw-bytes.
5898
412c01b6
CY
58992010-02-28 Chong Yidong <cyd@stupidchicken.com>
5900
5901 * charset.c (load_charset_map_from_file)
5902 (load_charset_map_from_vector): Zero out allocated
5903 charset_map_entries before using them.
5904
df7e1ea0
AS
59052010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5906
5907 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5908
fe69a722
CY
59092010-02-27 Chong Yidong <cyd@stupidchicken.com>
5910
4ed28cf4
CY
5911 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5912 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5913
7379cfce
KH
59142010-02-26 Kenichi Handa <handa@m17n.org>
5915
f88cc4d6
KH
5916 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5917
7379cfce
KH
5918 * xdisp.c (reseat_to_string): Fix previous change.
5919
cf2fdcfb
CY
59202010-02-26 David Reitter <david.reitter@gmail.com>
5921
5922 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5923 Lisp_Object (Bug#4736).
5924
cc6c7c75
KH
59252010-02-25 Kenichi Handa <handa@m17n.org>
5926
5927 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5928
32e737d7
JD
59292010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5930
5931 * xterm.c (XTflash): Move declarations before statements.
5932
5933 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5934 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5935 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5936 (xg_create_tool_bar): Remove unused variables.
5937 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5938 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5939
676cae9f
CY
59402010-02-21 Chong Yidong <cyd@stupidchicken.com>
5941
5942 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5943
886cc2b8
SM
59442010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5945
5946 * term.c (fatal): Add a final \n if needed (bug#5596).
5947
ddb2d8e2
CY
59482010-02-18 Chong Yidong <cyd@stupidchicken.com>
5949
5950 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5951
2a4f8d3d
GM
59522010-02-18 Glenn Morris <rgm@gnu.org>
5953
5954 * callint.c (Finteractive): Doc fix.
5955
ebaf11b6
KH
59562010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5957
886cc2b8
SM
5958 * coding.c (record_conversion_result):
5959 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5960 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5961 memory allocation error.
5962
d0396581
KH
59632010-02-17 Kenichi Handa <handa@m17n.org>
5964
886cc2b8
SM
5965 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5966 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5967 (decode_coding): Setup ccl program here. Keep looping when the
5968 decoder stopped because the output buffer is
5969 fullfilled (bug#5534).
5970
5971 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5972
98599f74
JD
59732010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5974
471e4f04 5975 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5976 bug #5571.
886cc2b8 5977 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5978 overdrawn.
98599f74 5979
182659ae
JD
59802010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5981
5982 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5983 doing_interact here.
5984 (ice_connection_closed): New function.
5985 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5986 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5987 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5988 returns I/O error.
5989 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5990 bug #5512.
5991
9be32c4e 59922010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5993
5994 * nsfont.m (nsfont_open): The system's value for the font descent
5995 is negative, so round it down to avoid clipping.
5996
a2f3eb19
CY
59972010-02-06 Chong Yidong <cyd@stupidchicken.com>
5998
5999 * charset.c (load_charset_map_from_file)
6000 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6001 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6002
3088147c
CY
60032010-02-05 Chong Yidong <cyd@stupidchicken.com>
6004
6005 * charset.c (load_charset_map_from_file): Allocate large
6006 charset_map_entries structure on the heap rather than the stack.
6007 (Bug#5526).
6008
b57d9029
KH
60092010-01-31 Kenichi Handa <handa@m17n.org>
6010
6011 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6012 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6013
c67d885b
CY
60142010-01-31 Chong Yidong <cyd@stupidchicken.com>
6015
6016 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6017 <deactivated@gmail.com> (Bug#3605).
6018
8fab2362
CY
60192010-01-31 David De La Harpe Golden <david@harpegolden.net>
6020
6021 * fileio.c (Frename_file): Correctly rename symlinks to
6022 directories (Bug#5496).
6023
cb2a62f2
CY
60242010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6025
6026 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6027
944c7a26
AS
60282010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6029
6030 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6031
c024ac08
CY
60322010-01-29 Chong Yidong <cyd@stupidchicken.com>
6033
6034 * frame.c (DEFAULT_ROWS): Change default to 35.
6035
6036 * xfns.c (x_default_font_parameter): Change default XFT font to
6037 monospace-10 (Bug#3643).
6038
af93af83
EZ
60392010-01-29 Eli Zaretskii <eliz@gnu.org>
6040
6041 * w32inevt.c (key_event): Remove unnecessary comparison of
6042 event->uChar.AsciiChar with 128.
6043
ca0eb708
CY
60442010-01-28 Chong Yidong <cyd@stupidchicken.com>
6045
b242dbfc
CY
6046 * fileio.c (Frename_file): Fix last change (Bug#5487).
6047
ca0eb708
CY
6048 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6049
6050 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6051
45d45af5
JD
60522010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6053
6054 * xfns.c (Fx_create_frame): Remove window size matching code from
6055 2010-01-15.
a73f9c9d 6056 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6057
7e233730
JR
60582010-01-27 Jason Rumney <jasonr@gnu.org>
6059
6060 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6061 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6062
86e893e3
KH
60632010-01-27 Kenichi Handa <handa@m17n.org>
6064
6065 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6066 pattern string (Bug#4209).
86e893e3 6067
8719abec
CY
60682010-01-27 David De La Harpe Golden <david@harpegolden.net>
6069
6070 * fileio.c (Frename_file): Call copy-directory and
6071 delete-directory for directories, in order to handle cross-device
6072 renaming (Bug#3353).
6073
844794c8
JD
60742010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6075
aa3e13b5 6076 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6077 sizes 24 and 10. Bug #3643.
844794c8 6078
bd4b5750
SM
60792010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6080
8dc1adf6 6081 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6082 * keymap.c (shadow_lookup): Add `remap' arg.
6083 (describe_map, describe_vector): Update calls to shadow_lookup.
6084 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6085 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6086 perform remapping during shadow_lookup check of remapped_sequences.
6087
285d07e2
CY
60882010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6089
6090 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6091 png_check_sig, which has been removed in libpng 1.4.
6092
c6d09b8d
CY
60932010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6094
6095 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6096 lacks this header file).
6097
3d782998
YM
60982010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6099
6100 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6101 as in Emacs 22.
6102
2aff7c53
YM
61032010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6104
6105 * lisp.h (make_pure_string): String pointer arg now points to const.
6106
6107 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6108 args now point to const.
6109
74327f7a
EZ
61102010-01-22 Eli Zaretskii <eliz@gnu.org>
6111
6112 * lread.c (Fload): Don't treat files without .elc extension as
6113 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6114 them. (bug#5303)
6115
4d1e6632
KH
61162010-01-20 Kenichi Handa <handa@m17n.org>
6117
6118 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6119 treat the source as actual byte sequence.
6120
1fdede8f
AM
61212010-01-19 Alan Mackenzie <acm@muc.de>
6122
6123 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6124 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6125 `signal_after_change_p' to `coherent_change_p', and make the
6126 invocation of `modify_region' conditional on it.
6127
67477f30
JD
61282010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6129
6130 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6131 for debug purpose.
6132 (syms_of_xsettings): Declare xft-settings.
6133
244b023e
CY
61342010-01-18 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6137
617364fe
CY
61382010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6139
6140 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6141
4fe22cdf
CY
61422010-01-16 Chong Yidong <cyd@stupidchicken.com>
6143
6144 * emacs.c (standard_args): Adjust arg priorities to reflect how
6145 they are processed in startup.el.
6146
e118d2be
AS
61472010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6148
6149 * Makefile.in (lisp, shortlisp): Update.
6150
523ae620
SM
61512010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6152
6153 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6154 code, link the new kboard into all_kboard before running Lisp code,
6155 and protect the new terminal with GCPRO (Bug#5365).
6156 (x_term_init): Remove unused var `atom'.
6157 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6158
f0d13888
JD
61592010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6160
6161 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6162 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6163 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6164 this. Bug #3643.
f0d13888 6165
cc320f07
KH
61662010-01-15 Kenichi Handa <handa@m17n.org>
6167
6168 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6169
7ffdf101
CY
61702010-01-15 Chong Yidong <cyd@stupidchicken.com>
6171
6172 * nsterm.m (Qnone): Define.
6173
6174 * nsfns.m (Qnone): Move definition to nsterm.m.
6175
d12bd917
KH
61762010-01-14 Kenichi Handa <handa@m17n.org>
6177
6178 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6179 systems.
6180
d9a7c140
KH
61812010-01-14 Kenichi Handa <handa@m17n.org>
6182
6183 Make auto-composition work on all buffers even if they are
6184 fundamental mode.
6185
6186 * composite.c (Vauto_composition_mode): New variable.
6187 (composition_compute_stop_pos): Check Vauto_composition_mode
6188 instead of Vauto_composition_function.
6189 (composition_adjust_point, Ffind_composition_internal): Likewise.
6190 (syms_of_composite): Declare Lisp variable
6191 "auto-composition-mode" here.
6192
63286bb2
CY
61932010-01-13 Chong Yidong <cyd@stupidchicken.com>
6194
6195 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6196 during call to vendor-specific-keysyms (Bug#5365).
6197
c2623ee7
YM
61982010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6199
6200 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6201 Call SIGNAL_THREAD_CHECK (Bug#5333).
6202
6203 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6204 Call SIGNAL_THREAD_CHECK.
6205
0b5397c2
SM
62062010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6207
6208 Try to fix bug#5314. This is probably not the final word, tho.
6209 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6210 recent-auto-save-p as a side-effect.
6211 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6212 * buffer.c (Fkill_buffer, reset_buffer):
6213 * editfns.c (Fsubst_char_in_region):
6214 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6215 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6216
dc954cb2
KH
62172010-01-13 Kenichi Handa <handa@m17n.org>
6218
6219 Display buffer name, etc. in mode line by composing correctly.
6220
6221 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6222 STRING is not nil.
0b5397c2 6223 (display_mode_element): Adjust for the change of
dc954cb2
KH
6224 decode_mode_spec and display_line.
6225 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6226 (display_string): Handle the case that STRING is non-null and
6227 LISP_STRING is not nil.
6228
0b5397c2
SM
6229 * xterm.c (x_draw_composite_glyph_string_foreground):
6230 Pay attention to s->face->overstrike.
dc954cb2
KH
6231
6232 * composite.c (composition_reseat_it): Don't check PT if STRING is
6233 non nil.
6234
4a00eaca
YM
62352010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6236
6237 * keyboard.c (read_char): Don't apply previous change when current
6238 buffer is unchanged by command execution.
6239
60abb287
JD
62402010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6241
6242 * keyboard.c (read_char): Return after executing from special map.
6243
893db5bc
GM
62442010-01-12 Glenn Morris <rgm@gnu.org>
6245
6246 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6247 bug-gnu-emacs rather than emacs-pretest-bug.
6248
4d03ece0
CY
62492010-01-11 Chong Yidong <cyd@stupidchicken.com>
6250
6251 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6252 initializing the Lisp variables that depend on them.
6253
1df47e38
YM
62542010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6255
6256 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6257 Clear areas that will not be updated after change of menu bar lines.
6258 Clear the menu bar window's current matrix when the window gets empty.
6259
2f1c6384
CY
62602010-01-09 Chong Yidong <cyd@stupidchicken.com>
6261
e398c61c
CY
6262 * intervals.h, textprop.c (extend_property_ranges): Return value
6263 and args changed. Discard properties that begin at or after the
6264 new end (Bug#5306).
6265
6266 * editfns.c (Fformat): Caller changed.
6267
e5a29a10
CY
6268 * nsterm.m (ns_set_default_prefs): Delete function.
6269 (syms_of_nsterm): Initialize ns_command_modifier,
6270 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6271 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6272
2f1c6384
CY
6273 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6274 position (Bug#4040).
6275
d427a9fa
EZ
62762010-01-09 Eli Zaretskii <eliz@gnu.org>
6277
6278 * editfns.c (Ffloat_time): Doc fix.
6279
21b9df2f
JD
62802010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6281
6282 * xfns.c (Fx_create_frame): Don't create frame larger than display
6283 by default bug#3643.
6284
4b00d3b1
YM
62852010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6286
6287 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6288 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6289 windows above internal border.
6290
6291 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6292 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6293 windows above internal border.
6294
6295 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6296 tool bar windows specially.
6297
6298 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6299
6300 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6301 specially.
6302 (XTflash): Take account of menu bar height.
6303
6304 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6305 specially.
6306
5075d853
JD
63072010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6308
ac146f82 6309 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6310 also be true before we can return early (bug #5339).
6311
474217c8
CY
63122010-01-06 David Reitter <david.reitter@gmail.com>
6313
6314 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6315 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6316 (Bug#3233).
6317
c0e6d47d
JD
63182010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6319
d0cf45b7
JD
6320 * font.c (font_open_entity): Enable chache and call cached_font_ok
6321 for the driver if defined.
6322 (QCuser_spec): New symbol.
6323 (font_spec_from_name): Save name as user-spec.
6324 (font_load_for_lface): Keep user-spec instead of name.
6325 (font_open_by_name): Save name as user-spec.
6326 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6327 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6328
6329 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6330 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6331 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6332
6333 * font.h (struct font_driver): Add cached_font_ok.
6334
c0e6d47d
JD
6335 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6336
7c583cd8
JD
63372010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6338
6339 * xterm.c (x_new_font): Move code for setting rows/cols before
6340 resizing ...
ac146f82 6341 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6342
6343 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6344 (xg_frame_resized, xg_frame_set_char_size):
6345 Call xg_clear_under_internal_border.
7c583cd8 6346 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6347
03f77f0a
CY
63482010-01-05 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * keyboard.c (read_key_sequence): Catch keyboard switch after
6351 making a new tty frame (Bug#5095).
6352
2a1ef5be
KH
63532010-01-05 Kenichi Handa <handa@m17n.org>
6354
6355 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6356
e3eb1dae
SM
63572010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6358
6359 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6360 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6361 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6362
777013f2
MA
63632010-01-03 Michael Albinus <michael.albinus@gmx.de>
6364
6365 * dbusbind.c (xd_add_watch): Improve debug message.
6366 (xd_remove_watch): Improve debug message. If DATA is the session
6367 bus, unset D-Bus session environment.
6368 (Fdbus_init_bus): Pass the bus as argument to
6369 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6370
8932b1c2
CY
63712010-01-01 Chong Yidong <cyd@stupidchicken.com>
6372
87231e2c
CY
6373 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6374
4801c5fa
CY
6375 * lread.c (syms_of_lread): Make it clearer that these are the
6376 names of loaded files (Bug#5068).
6377
8932b1c2
CY
6378 * eval.c (run_hook_with_args): Handle the case where the global
6379 value has the obsolete single-function form (Bug#5026).
6380
11e3c684
CY
63812009-12-27 Chong Yidong <cyd@stupidchicken.com>
6382
6383 * minibuf.c (Fall_completions): Minor optimization.
6384
5b28ce35
EZ
63852009-12-26 Eli Zaretskii <eliz@gnu.org>
6386
5ce6e4f4
JB
6387 * .gdbinit (pgx): Fix display of composite glyphs.
6388 Display cmp.from and cmp.to as well.
6389 (pitx): Fix last change.
5b28ce35 6390
bcffff46
KH
63912009-12-25 Kenichi Handa <handa@m17n.org>
6392
6393 * composite.h (composition_adjust_point): Update prototype.
6394
6395 * composite.c (composition_reseat_it): Don't make a composition
6396 spanning over point.
6397 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6398 composable characters.
6399 (composition_adjust_point): New arg NEW_PT. Callers changed.
6400
6401 * keyboard.c (command_loop_1): Force redisplay if the last point
6402 was within a composition.
6403 (adjust_point_for_property): Don't adjust point for automatic
6404 composition when called after buffer modification.
6405
3f670e9a
EZ
64062009-12-19 Eli Zaretskii <eliz@gnu.org>
6407
5ce6e4f4
JB
6408 * .gdbinit (pitx): Don't use enum names, use their values.
6409 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6410 (pgx): Don't use enum names, use their values.
6411 (pitmethod): New helper command.
6412 (pitx): Use it to display iteration method.
6413 (pgrowit): New command.
6414
ad903955
EZ
6415 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6416
3f670e9a
EZ
6417 Update dependencies in Makefile.in.
6418
6419 * Makefile.in (alloc.o): Depend on termhooks.h.
6420 (atimer.o): Depend on blockinput.h.
6421 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6422 and frame.h.
6423 (callint.o): Depend on systime.h, coding.h, and composite.h.
6424 (callproc.o): Depend on buffer.h.
6425 (casefiddle.o): Don't depend on charset.h.
6426 (casetab.o): Depend on character.h.
6427 (ccl.o): Depend on composite.h.
6428 (chartab.o): Depend on ccl.h.
6429 (cm.o): Depend on dispextern.h.
6430 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6431 (coding.o): Don't depend on $(INTERVALS_H).
6432 (composite.o): Don't depend on dispextern.h explicitly (it's in
6433 $(INTERVALS_H)). Depend on ccl.h.
6434 (data.o): Depend on systime.h, coding.h, composite.h,
6435 dispextern.h, font.h, and ccl.h.
6436 (dired.o): Depend on composite.h.
6437 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6438 composite.h (it's in $(INTERVALS_H)).
6439 (doc.o): Depend on systime.h, coding.h, and composite.h.
6440 (editfns.o): Don't depend explicitly on dispextern.h.
6441 (emacs.o): Depend on frame.h and coding.h.
6442 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6443 (fileio.o): Depend on frame.h and commands.h. Don't depend
6444 explicitly on dispextern.h.
6445 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6446 composite.h.
6447 (fns.o): Don't depend on termhooks.h.
6448 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6449 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6450 coding.h, $(INTERVALS_H), window.h, xterm.h.
6451 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6452 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6453 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6454 fontset.h, ccl.h, and ftfont.h.
6455 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6456 (gtkutil.o): Depend on dispextern.h and composite.h.
6457 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6458 termhooks.h, and ccl.h.
6459 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6460 (intervals.o): Depend on systime.h and coding.h.
6461 (keyboard.o): Depend on composite.h and coding.h.
6462 (keymap.o): Depend on coding.h and frame.h.
6463 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6464 (macros.o): Depend on systime.h, coding.h, and composite.h.
6465 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6466 and atimer.h.
6467 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6468 dispextern.h explicitly.
0b5397c2
SM
6469 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6470 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6471 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6472 (regex.o): Don't depend on charset.h.
6473 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6474 (search.o): Don't depend explicitly on composite.h.
6475 (sound.o): Depend on atimer.h and systime.h.
6476 (syntax.o): Don't depend explicitly on composite.h.
6477 (sysdep.o): Depend on coding.h and composite.h.
6478 (term.o): Depend on xterm.h and buffer.h.
6479 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6480 (textprop.o): Don't depend on dispextern.h explicitly.
6481 (undo.o): Depend on dispextern.h.
6482 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6483 dispextern.h and composite.h explicitly.
6484 (xdisp.o): Depend on ccl.h.
6485 (xfaces.o): Depend on coding.h and ccl.h.
6486 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6487 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6488 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6489 ftfont.h.
6490 (xgselect.o): New dependency.
6491 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6492 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6493 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6494 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6495 (xsmfns.o): Depend on frame.h and dispextern.h.
6496 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6497 sysselect.h.
6498
7a6f7fea
AS
64992009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6500
6501 * font.c (Fclear_font_cache): Pass correct cache argument to
6502 font_clear_cache.
6503
f4c21026
AS
65042009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6505
6506 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6507 twice.
6508
f7ab0997
CY
65092009-12-15 Chong Yidong <cyd@stupidchicken.com>
6510
6511 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6512 calling file-remote-p. Reported by Jim Meyering.
6513
fa8e045a
MA
65142009-12-15 Michael Albinus <michael.albinus@gmx.de>
6515
6516 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6517 avoid compiler warnings. (Bug #5217)
fa8e045a 6518
a63dba42
KH
65192009-12-14 Kenichi Handa <handa@m17n.org>
6520
6521 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6522 in 8-bit encoding.
6523
5ce6e4f4 65242009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6525
6526 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6527 tooltip windows.
6528
223e5fc6
JD
65292009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6530
36acb2a7
JD
6531 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6532 Xatom_net_window_type.
6533
6534 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6535 Xatom_net_window_type.
6536
b8f00677
JD
6537 * xterm.c (my_log_handler): New function.
6538 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6539 so we can filter out buggy messages. (Bug #5120).
b8f00677 6540
e5f0bc9a
JD
6541 * xterm.c (xg_scroll_callback): Parameter list changed,
6542 use parameter GtkScrollType to determine scroll/line/page.
6543 Only allow dragging if a button < 4 is grabbed (bug #5177).
6544 (xg_end_scroll_callback): New function.
6545 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6546 xg_create_scroll_bar.
6547
6548 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6549 (scroll_end_callback): Remove.
6550 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6551 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6552 bug #5177.
e5f0bc9a
JD
6553 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6554 bug #5177.
6555
6556 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6557 (xg_create_scroll_bar): Add GCallback end_callback.
6558
223e5fc6
JD
6559 * xftfont.c (QClcdfilter): New variable.
6560 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6561 (syms_of_xftfont): Initialize QClcdfilter.
6562
3c055b77
JD
65632009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6564
6565 * xsettings.c (struct xsettings): Add member seen.
6566 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6567 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6568 (apply_xft_settings): Only update Xft settings with what member seen
6569 indicates as new.
6570
05fe33ff
EZ
65712009-12-12 Eli Zaretskii <eliz@gnu.org>
6572
c4cc8b9a 6573 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6574 (struct glyph): Use EMACS_INT for charpos.
6575 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6576 region_beg_charpos, region_end_charpos,
6577 redisplay_end_trigger_charpos, and also for
6578 iterator_stack_entry.end_charpos and
6579 iterator_stack_entry.stop_charpos.
6580
e8d7886a
JD
65812009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6582
5ce6e4f4 6583 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6584 (xg_create_scroll_bar): Call scroll_end_callback on button release
6585 event (bug #5177).
6586 (xg_event_is_for_scrollbar): != replaced with ==.
6587
d0db2ec8
KH
65882009-12-12 Kenichi Handa <handa@m17n.org>
6589
6590 * ftfont.c (struct ftfont_info): New member matrix.
6591 (ftfont_open): Setup xftfont_info->matrix.
6592 (MFLTFontFT): New member matrix.
6593 (FLOOR, CEIL, ROUND): New macros.
6594 (ftfont_get_metrics): Handle matrix transformation.
6595 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6596
6597 * xftfont.c (struct xftfont_info): New member matrix.
6598 (xftfont_open): Setup xftfont_info->matrix.
6599
66002009-12-10 Kenichi Handa <handa@m17n.org>
6601
6602 * xdisp.c (append_space_for_newline): Consider face-remapping.
6603
2cc7b62f
AS
66042009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6605
b87dd913
AS
6606 * xsettings.c: Include "keyboard.h".
6607
eba5eb94
AS
6608 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6609
2cc7b62f
AS
6610 Fix implicit function declarations.
6611 * cmds.c: Include "frame.h".
6612 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6613 * frame.h: Move declaration of delete_frame outside of
6614 HAVE_WINDOW_SYSTEM.
6615
a4ef73c8
CY
66162009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6617
6618 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6619
6620 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6621 GTK builds.
6622
944a300c
AS
66232009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6624
6625 * unexelf.c (unexec): Don't search for .data twice.
6626
022eef62
CY
66272009-12-05 Chong Yidong <cyd@stupidchicken.com>
6628
426ac949
CY
6629 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6630 if push failed.
6631 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6632 of push_display_prop (Bug#5000).
6633
022eef62
CY
6634 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6635 value of font_list_entities (Bug#5085).
6636
be95bee9
JB
66372009-12-04 Juanma Barranquero <lekktu@gmail.com>
6638
6639 Fix `string-to-number' to deal consistently with integers and floats.
6640 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6641 trailing characters, not just whitespace.
6642 (read1): Pass new arg 0 to keep old behavior.
6643 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6644 trailing chars, as it is already done for integers. Doc fixes.
6645 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6646
24c2d7ce
EZ
66472009-12-04 Eli Zaretskii <eliz@gnu.org>
6648
0b5397c2
SM
6649 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6650 Delete unused enumeration value.
24c2d7ce 6651
7e694795
EZ
66522009-12-03 Eli Zaretskii <eliz@gnu.org>
6653
6654 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6655
84b31826
SM
66562009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6657
6658 * process.c (Fmake_network_process): Fix up the tests for
6659 "connectionless socket", so they DTRT for seqpacket sockets as well.
6660
f00c449b
SM
66612009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6662
6663 * process.c (Qseqpacket): New symbol.
6664 (HAVE_SEQPACKET): New macro.
6665 (Fmake_network_process): Accept new :type `seqpacket'.
6666 (init_process): Add `seqpacket' feature when applicable.
6667 (syms_of_process): Initialize Qseqpacket.
6668
8096a0ff
YM
66692009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6670
6671 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6672 if entity is Qnil.
6673
3e0de07f
SM
66742009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6675
6676 * print.c (print_preprocess): Preprocess the key_and_value table of
6677 hashtables, even tho they're "hidden" (bug#5082).
6678
abeafb2a
JD
66792009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6680
6681 * frame.c (frame_make_pointer_invisible)
6682 (frame_make_pointer_visible): Declare f before statements.
6683
4bf47195
EZ
66842009-11-28 Eli Zaretskii <eliz@gnu.org>
6685
6686 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6687 omitted dependencies on lisp.h.
6688
c525b3f2
JD
66892009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6690
ece2d4ed
JD
6691 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6692 is NULL.
6693
6694 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6695
6696 * frame.c (frame_make_pointer_invisible)
3e0de07f 6697 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6698 frame.
6699
c525b3f2
JD
6700 * search.c (simple_search): Remove warning by making *p const.
6701
2f00e299
DN
67022009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6703
6704 * xdisp.c (power_letter): Remove duplicate const.
6705
084b049b
JD
67062009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6707
a1fadc6f
JD
6708 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6709
5ce6e4f4 6710 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6711 defaults (bug #5025).
6712
28259cac
SM
67132009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6714
6715 * insdel.c (adjust_markers_for_delete): Move it in the
6716 right direction! (bug#4803)
6717
e8e14166
YM
67182009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6719
6720 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6721
6722 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6723
86677b58
GM
67242009-11-24 Glenn Morris <rgm@gnu.org>
6725
6726 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6727
581e51e8
JD
67282009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6729
cfc86c7a
JD
6730 * Makefile.in: Must create deps for ecrt0.o in its rule.
6731
581e51e8
JD
6732 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6733 because that is what Gtk+ font dialog understands.
6734
6735 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6736 of Fcopy_sequence.
6737 (font_open_by_name): Put name given into QCname for font-object returned.
6738
6739 * frame.c (x_set_font): Save original font name as frame parameter
6740 font-parameter.
6741
6742 * xsettings.c (set_default_xft_settings): New function.
6743 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6744 is found.
6745
8b264ecb
AS
67462009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6747
6748 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6749 searching backwards through multibyte buffer.
6750
872870b2
JD
67512009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6752
6753 * xterm.c: #include xgselect.h.
6754 (x_initialize): Call xgselect_initialize.
6755
6756 * xsettings.c (something_changedCB): C++ comments => C comments.
6757 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6758 does that now.
6759
6760 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6761 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6762 (scroll_bar_button_cb): Remove.
5ce6e4f4 6763 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6764 event.
6765 (xg_create_scroll_bar): Don't bind button-press-event and
6766 button-release-event.
6767
6768 * process.c: Include xgselect.h if defined (USE_GTK) ||
6769 defined (HAVE_GCONF).
6770 (wait_reading_process_output): Call xg_select for the same condition.
6771
6772 * xgselect.c (xg_select): New function to better integrate with
6773 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6774
6775 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6776
6777 * Makefile.in (XOBJ): Add xgselect.o.
6778
62a6e103
AS
67792009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6780
0b5397c2
SM
6781 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6782 Remove ignored second argument. All callers changed.
62a6e103
AS
6783 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6784 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6785 * xdisp.c (string_char_and_length): Likewise.
6786
b0ca0f33
DN
67872009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6788
6789 * xterm.c (x_new_font):
6790 * print.c (print_object):
6791 * cmds.c (Fself_insert_command): Move declarations before statements.
6792
dd5a6279
CY
67932009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6794
6795 * s/cygwin.h: Remove unneeded linker flags.
6796
4a8e097d
JD
67972009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6798
0d1d0d26
JD
6799 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6800
6801 * xsettings.h: Declare xsettings_get_system_font.
6802
6803 * xsettings.c (xsettings_get_system_font): New function.
6804 (init_gconf): No use initiating gconf unless we have Xft also.
6805 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6806 HAVE_GCONF.
6807
4a8e097d
JD
6808 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6809 add a blank entry so it doesn't collapse into nothing.
6810
8ab1650e
SM
68112009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6812
6813 * lread.c (Funintern): Comment out last change.
6814
82c602f0
RS
68152009-11-19 Richard Stallman <rms@gnu.org>
6816
6817 * lread.c (Funintern): Error if symbol is t or nil.
6818
87e32266
SM
68192009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6820
6821 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6822 representation of Lisp integers.
6823 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6824
1b9ac145
AS
68252009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6826
6827 * lisp.h: Remove declaration of Ffont_get_system_font.
6828 * xfns.c: Move include of "xsettings.h".
6829 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6830
dfb3c4c6
JD
68312009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6832
87e32266
SM
6833 * xsettings.c (something_changedCB, Ffont_get_system_font):
6834 Check use_system_font.
dfb3c4c6
JD
6835 (syms_of_xsettings): DEFVAR font-use-system-font.
6836
9370c1d8
AS
68372009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6838
25fe851a
AS
6839 * xfns.c (x_default_font_parameter): Remove dead assignment.
6840
9370c1d8
AS
6841 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6842
637fa988
JD
68432009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6844
87e32266 6845 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6846 not have FC_LCD_*. #define them if not there.
a6eb20d8 6847
87e32266 6848 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6849
637fa988
JD
6850 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6851
6852 * xterm.c (handle_one_xevent): Call xft_settings_event for
6853 ClientMessage, PropertyNotify and DestroyNotify.
6854 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6855 Call xsettings_initialize.
6856
6857 * xftfont.c (xftfont_fix_match): New function.
6858 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6859 Call xftfont_fix_match after XftFontMatch.
6860
6861 * xfont.c (xfont_driver): Initialize all members.
6862
87e32266
SM
6863 * xfns.c (x_default_font_parameter):
6864 Try font from Ffont_get_system_font.
637fa988
JD
6865 Do not get font from x_default_parameter if we got one from
6866 Ffont_get_system_font.
87e32266 6867 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6868
6869 * w32font.c (w32font_driver): Initialize all members.
6870
6871 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6872
6873 * lisp.h: Declare syms_of_xsettings.
6874
87e32266
SM
6875 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6876 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6877
6878 * ftfont.c (ftfont_filter_properties): New function.
6879
6880 * frame.c (x_set_font): Remove unused variable lval.
6881
87e32266 6882 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6883
6884 * font.c (font_put_extra): Don't return if val is nil, it means
6885 boolean option is off.
6886 (font_parse_fcname): Collect all extra properties in extra_props
6887 and call filter_properties for all drivers with extra_props and
6888 font as parameter.
87e32266
SM
6889 (font_open_entity): Do not use cache, it does not pick up new
6890 fontconfig settings like hinting.
637fa988
JD
6891 (font_load_for_lface): If spec had a name in it, store it in entity.
6892
a73f9c9d 6893 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6894
6895 * config.in: HAVE_GCONF is new.
6896
6897 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6898 xsettings.o is new.
6899
5a942932
KH
69002009-11-17 Kenichi Handa <handa@m17n.org>
6901
6902 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6903 back to the default font in case that no suitable font is found.
6904
b7c7a4d1
SM
69052009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6906
6907 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6908 Suggested by Chad Brown <yandros@mit.edu>.
6909 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6910
072f1e39
JD
69112009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6912
6913 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6914
5d1e70a2
AS
69152009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6916
87e32266 6917 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6918
a53cfbe5
JD
69192009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6920
473a99b7
JD
6921 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6922 has a parent.
6923
a53cfbe5 6924 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6925 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6926
6927 * config.in: Generated (AUTO_DEPEND).
6928
f04bb9b2
MA
69292009-11-13 Michael Albinus <michael.albinus@gmx.de>
6930
b7c7a4d1 6931 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6932 Vdbus_registered_functions_table, because it contains also
6933 properties. Fix docstring.
b7c7a4d1 6934 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6935
8f11f7ec
SM
69362009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6937
6938 * alloc.c (mark_object): Don't reprocess marked strings.
6939 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6940 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6941
8a605fe8
KH
69422009-11-13 Kenichi Handa <handa@m17n.org>
6943
8f11f7ec 6944 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6945 semantics of Vword_combining_categories.
6946 (Vword_combining_categories): Describe the slight change of the
6947 semantics.
6948
241c4680
EZ
69492009-11-13 Eli Zaretskii <eliz@gnu.org>
6950
6951 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6952
6953 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6954
5d58e44c
SM
69552009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6956
6957 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6958
5e13f9d3
JB
69592009-11-12 Juanma Barranquero <lekktu@gmail.com>
6960
6961 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6962
cf54c754
DR
69632009-11-11 David Reitter <david.reitter@gmail.com>
6964
6965 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6966 variables to fix 2009-11-09 change.
6967
a4ada374
DN
69682009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6969
91433552
DN
6970 * process.c (ifflag_def): Make flag_sym constant.
6971 (Fnetwork_interface_info): Use a constant pointer.
6972 (ifflag_table):
6973 * xfns.c (cursor_bits):
6974 * xdisp.c (power_letter):
6975 * termcap.c (speeds, esctab):
6976 * sysdep.c (baud_convert):
6977 * keyboard.c (lispy_accent_codes, modifier_names):
6978 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6979 (jpeg_format, tiff_format, gif_format, svg_format)
6980 (interlace_start, interlace_increment, gs_format):
6981 * gtkutil.c (separator_names):
6982 * fringe.c (swap_nibble):
6983 * fns.c (base64_value_to_char, base64_char_to_value):
6984 * fileio.c (make_temp_name_tbl):
6985 * coding.c (suffixes): Make constant.
6986
f4265f6c
DN
6987 * frame.c (make_initial_frame):
6988 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6989 build_string.
6990 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6991
04420943
DN
6992 * s/freebsd.h:
6993 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6994
0a5d24ae
DN
6995 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6996 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6997
a4ada374
DN
6998 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6999 * xterm.c (syms_of_xterm):
7000 * xfaces.c (syms_of_xfaces):
7001 * xdisp.c (syms_of_xdisp):
7002 * lread.c (syms_of_lread):
7003 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7004 build_string.
91433552 7005
a4ada374
DN
7006 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7007
af98fc7f
SM
70082009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7009
8ab1650e 7010 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7011
e90292a9
JD
70122009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7013
7014 * keyboard.h: Declare timer_check.
7015
7016 * keyboard.c (timer_check_2): New function that does what the old
7017 timer_check did.
7018 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7019 returned, i.e. don't return -1 with timers pending.
7020
7021 * process.c: Remove extern declaration of timer_check.
7022
7023 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7024 even if timer_check returned -1.
7025
af98fc7f
SM
7026 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7027 xg_dialog_data.
e90292a9
JD
7028 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7029 the event loop.
7030 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7031 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7032 Destroy the dialog after xg_dialog_run.
7033
045b83c0
SM
70342009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7035
7036 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7037
1fb99a3a
JD
70382009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7039
7040 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7041
04e452cb
JB
70422009-11-09 Juanma Barranquero <lekktu@gmail.com>
7043
7044 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7045
ef7417fd
SM
70462009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7047
7048 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7049 w32menu.c, and nsmenu.m.
7050 Simplify the obsolete case where position is nil.
7051 (cleanup_popup_menu): New function, moved from nsmenu.m.
7052 (struct skp): Remove slot `notreal'.
7053 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7054 adjust callers.
7055 (single_menu_item): Adjust call to parse_menu_item.
7056 (syms_of_menu): Defsubr x-popup-menu.
7057 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7058 (keymap_panes): Don't export any more.
7059 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7060 (xmenu_show): Declare.
7061 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7062 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7063 * keyboard.h (parse_menu_item): Update declaration.
7064 * xmenu.c (Fx_popup_menu): Remove.
7065 (syms_of_xmenu): Don't defsubr x-popup-menu.
7066 * w32menu.c (Fx_popup_menu): Remove.
7067 (syms_of_w32menu): Don't defsubr x-popup-menu.
7068 * nsmenu.m (cleanup_popup_menu): Remove.
7069 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7070 moved to menu.c's Fx_popup_menu.
7071 (Fx_popup_menu): Remove.
7072 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7073 menu_items (it's done in menu.c already).
7074
424d6179
SM
70752009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7076
7077 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7078 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7079
c0df13a6 70802009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7081
7082 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7083 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7084 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7085 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7086
2de9f71c
SM
70872009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7088
7089 Let integers use up 2 tags to give them one extra bit and thus double
7090 their range.
7091 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7092 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7093 New macros.
7094 (enum Lisp_Type): Use them. Give explicit values.
7095 (Lisp_Type_Limit): Remove.
7096 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7097 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7098 Pay attention to USE_2_TAGS_FOR_INTS.
7099 (INTEGERP): Use LISP_INT_TAG_P.
7100 * fns.c (internal_equal): Simplify the default case.
7101 (sxhash): Use case_Lisp_Int.
7102 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7103 any more.
7104 (Ftype_of): Use case_Lisp_Int.
7105 (store_symval_forwarding): Take into account the fact that Ints can
7106 now have more than one tag.
7107 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7108 (buffer_slot_type_mismatch):
2de9f71c
SM
7109 * xfaces.c (face_attr_equal_p):
7110 * print.c (print_object):
7111 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7112 Use case_Lisp_Int.
7113
323637a2
EZ
71142009-11-06 Eli Zaretskii <eliz@gnu.org>
7115
7ac65b38
EZ
7116 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7117
323637a2
EZ
7118 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7119 warning.
7120
e511451f
JD
71212009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7122
7123 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7124
7125 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7126
7127 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7128 ButtonPressRelease and MotionNotify (bug#4870).
7129
5e2327cf
DN
71302009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7131
5adc433e
DN
7132 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7133
d67b4f80
DN
7134 * xterm.c (syms_of_xterm):
7135 * xselect.c (syms_of_xselect):
7136 * xmenu.c (syms_of_xmenu):
7137 * xfns.c (syms_of_xfns):
7138 * xfaces.c (syms_of_xfaces):
7139 * xdisp.c (syms_of_xdisp):
7140 * window.c (syms_of_window):
7141 * w32fns.c (syms_of_w32fns):
7142 * undo.c (syms_of_undo):
7143 * textprop.c (syms_of_textprop):
7144 * terminal.c (syms_of_terminal):
7145 * syntax.c (syms_of_syntax):
7146 * sound.c (syms_of_sound):
7147 * search.c (syms_of_search):
7148 * print.c (syms_of_print):
7149 * minibuf.c (syms_of_minibuf):
7150 * macros.c (syms_of_macros):
7151 * keymap.c (syms_of_keymap, initial_define_key)
7152 (initial_define_lispy_key):
7153 * keyboard.c (syms_of_keyboard):
7154 * insdel.c (syms_of_insdel):
7155 * image.c (syms_of_image):
7156 * fringe.c (syms_of_fringe):
7157 * frame.c (syms_of_frame):
7158 * fontset.c (syms_of_fontset):
7159 * fns.c (syms_of_fns):
7160 * fns.c (syms_of_fns):
7161 * fileio.c (syms_of_fileio):
7162 * fileio.c (syms_of_fileio):
7163 * eval.c (syms_of_eval):
7164 * doc.c (syms_of_doc):
7165 * dispnew.c (syms_of_display):
7166 * dired.c (syms_of_dired):
7167 * dbusbind.c (syms_of_dbusbind):
7168 * data.c (syms_of_data):
7169 * composite.c (syms_of_composite):
7170 * coding.c (syms_of_coding):
7171 * cmds.c (syms_of_cmds):
7172 * charset.c (define_charset_internal, syms_of_character):
7173 * ccl.c (syms_of_ccl):
7174 * category.c (syms_of_category, init_category_once):
7175 * casetab.c (syms_of_casetab):
7176 * casefiddle.c (syms_of_casefiddle):
7177 * callint.c (syms_of_callint):
7178 * bytecode.c (syms_of_bytecode):
7179 * buffer.c (keys_of_buffer, syms_of_buffer):
7180 * alloc.c (syms_of_alloc):
7181 * process.c (syms_of_process, init_process):
7182 * lread.c (syms_of_lread, init_obarray):
7183 * font.c (build_style_table):
7184 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7185 intern_c_string, calls to make_pure_string with
7186 make_pure_c_string. Use pure_cons instead of Fcons.
7187
5e2327cf
DN
7188 * process.c (socket_options): Make it const.
7189 (set_socket_option, init_process): Use a const pointer.
7190
7191 * lread.c (intern_c_string): New function.
7192 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7193 (defvar_int): Uset it. Make the name const char*.
7194
7195 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7196 (defvar_int): Update prototypes.
7197 (DEFUN, EXFUN): Support for prototypes is now required.
7198 (intern_c_string): New prototype.
7199 (struct Lisp_Subr): Make symbol_name constant.
7200
7201 * font.c (struct table_entry): Remove unused member. Make NAMES
7202 constant.
7203 (weight_table, slant_table, width_table): Make constant.
7204
7205 * emacs.c (struct standard_args): Make name and longname constant.
7206
7207 * character.h (DEFSYM): Use intern_c_string.
7208
a56eaaef
DN
72092009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7210
7211 * alloc.c (make_pure_c_string): New function.
7212
7213 * eval.c (Fautoload): Purecopy all arguments.
7214
f6a07420
KH
72152009-11-05 Kenichi Handa <handa@m17n.org>
7216
7217 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7218 the buffer in case of replace.
7219
5d28d4b1
DN
72202009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7221
7222 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7223
b349d111
SM
72242009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7225
d528b1ce
SM
7226 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7227 when applicable (bug#4851).
7228
b349d111
SM
7229 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7230 (P_): Support for prototypes is now required.
7231
c38eb027
CY
72322009-10-31 Chong Yidong <cyd@stupidchicken.com>
7233
7234 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7235 (Bug#4827).
7236
0405f8d9
EZ
72372009-10-30 Eli Zaretskii <eliz@gnu.org>
7238
d528b1ce 7239 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7240
ca0a881a
DN
72412009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7242
7243 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7244
d528b1ce
SM
7245 * lread.c (Fload): Purecopy the file name when building
7246 Vpreloaded_file_list.
ca0a881a 7247
47e0e0e4
JR
72482009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7249
7250 * w32fns.c (syms_of_w32fns): Change default value of
7251 w32-scroll-lock-modifier to nil. (Bug#2827)
7252
057bce6f
JB
72532009-10-26 Juanma Barranquero <lekktu@gmail.com>
7254
782a943e 7255 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7256
242bc74c
AS
72572009-10-26 Andreas Schwab <schwab@redhat.com>
7258
7259 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7260
522d013a
JB
72612009-10-26 Juanma Barranquero <lekktu@gmail.com>
7262
7263 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7264 For delta < 0, skip check that only makes sense when the mini-window
7265 is going to be enlarged. (Bug#4534)
7266
18060980
CY
72672009-10-25 Chong Yidong <cyd@stupidchicken.com>
7268
7269 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7270 string in menu maps (Bug#4471).
7271
fec8f0fe
CY
72722009-10-24 Chong Yidong <cyd@stupidchicken.com>
7273
7274 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7275 FRAME_NS_VIEW on terminal frames (Bug#4765).
7276
10d66ec0
AS
72772009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7278
1cae01f7
AS
7279 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7280 DBUS_TYPE_UINTnn separately to get proper sign extension.
7281
58a12889
AS
7282 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7283 can properly handle unsigned types.
d528b1ce 7284 (make_uid, make_gid): Remove.
58a12889 7285
987c9327
AS
7286 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7287 types again.
7288
522d013a 7289 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7290 (system_process_attributes): Likewise.
7291
905a9ed3
DN
72922009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7293
7294 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7295
7296 * eval.c (Fautoload): Purecopy the filename. Simplify.
7297
7298 * category.c (Fdefine_category): Purecopy docstring.
7299
a599b3e8
AS
73002009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7301
7b792fc9
AS
7302 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7303
a599b3e8
AS
7304 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7305
b35ac83e
CY
73062009-10-23 Chong Yidong <cyd@stupidchicken.com>
7307
7308 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7309 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7310 (Bug#4775).
7311
e8903e00
SM
73122009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7313
7314 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7315 (init_fileio_once):
7316 * lisp.h (init_fileio_once): Remove.
7317 * emacs.c (main): Don't call init_fileio_once.
7318
8f43cbf3
DN
73192009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7320
7321 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7322
26898943
AS
73232009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7324
7325 * doprnt.c (doprnt): Fix overflow check.
7326
5c646d5a
JD
73272009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7328
3132a7ea
JD
7329 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7330
5c646d5a
JD
7331 * xterm.h (x_wait_for_event): Declare it.
7332
7333 * xterm.c (pending_event_wait): New variable.
7334 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7335 see pending_event_wait.eventtype.
7336 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7337 (x_new_font): Call change_frame_size with new rows/columns before we
7338 try to resize the frame.
5c646d5a 7339 (x_wait_for_event): New function.
d528b1ce
SM
7340 (x_set_window_size_1): Don't change gravity unless change_gravity
7341 is set.
5c646d5a
JD
7342 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7343 don't change frame size, instead wait for the ConfigureNotify.
7344 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7345 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7346 (x_initialize): Initialize pending_event_wait.
7347
7348 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7349 size.
7350
7351 * widget.c (EmacsFrameSetValues): Add comment.
7352 (EmacsFrameSetCharSize): Just call x_set_window_size.
7353
7354 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7355 x_wait_for_event.
d528b1ce 7356 (flush_and_sync): Remove again.
5c646d5a
JD
7357 (xg_get_font_name): Suggest monospace if no previous font is known.
7358
e9c1637d
SM
73592009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7360
7361 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7362 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7363
5a72cccb
YM
73642009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7365
7366 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7367 processing pending events when event is filtered for input method.
ab04798f 7368 (Bug#3681)
5a72cccb 7369
2629aa37
JB
73702009-10-20 Juanma Barranquero <lekktu@gmail.com>
7371
7372 * fns.c: Add #endif accidentally removed in previous change.
7373
c3417a74
DN
73742009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7375
7376 * fns.c: Remove code for unsupported system: MAC_OS.
7377 * image.c: Likewise. Include setjmp.h.
7378
9685cef2
JD
73792009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7380
7381 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7382 pixel -1 (bug #4742).
7383
d7306fe6
DN
73842009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7385
019d2c4c
DN
7386 * process.c (create_pty): Remove conditionals for no longer
7387 supported systems: UNIPLUS and RTU.
7388
ee6bacd4
DN
7389 * xterm.c:
7390 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7391
d7306fe6
DN
7392 * alloc.c: Do not define struct catchtag.
7393 * eval.c: Move struct catchtag definition ...
7394 * lisp.h: ... here.
7395
7396 * image.c: Move png.h #include earlier to avoid warnings.
7397
7398 * xterm.c:
7399 * xsmfns.c:
7400 * xselect.c:
7401 * xrdb.c:
7402 * xmenu.c:
7403 * xftfont.c:
7404 * xfont.c:
7405 * xfns.c:
7406 * xfaces.c:
7407 * xdisp.c:
7408 * window.c:
7409 * widget.c:
7410 * w32xfns.c:
7411 * w32uniscribe.c:
7412 * w32term.c:
7413 * w32select.c:
7414 * w32reg.c:
7415 * w32proc.c:
7416 * w32menu.c:
7417 * w32inevt.c:
7418 * w32heap.c:
7419 * w32font.c:
7420 * w32fns.c:
7421 * w32console.c:
7422 * w32.c:
7423 * w16select.c:
7424 * vm-limit.c:
7425 * unexsol.c:
7426 * unexec.c:
7427 * unexcw.c:
7428 * unexaix.c:
7429 * undo.c:
7430 * tparam.c:
7431 * textprop.c:
7432 * terminfo.c:
7433 * terminal.c:
7434 * termcap.c:
7435 * term.c:
7436 * syntax.c:
7437 * sound.c:
7438 * sheap.c:
7439 * search.c:
7440 * scroll.c:
7441 * region-cache.c:
7442 * regex.c:
7443 * ralloc.c:
7444 * process.c:
7445 * print.c:
b024548b
DN
7446 * nsterm.m:
7447 * nsselect.m:
7448 * nsmenu.m:
7449 * nsimage.m:
7450 * nsfont.m:
7451 * nsfns.m:
d7306fe6
DN
7452 * msdos.c:
7453 * minibuf.c:
7454 * menu.c:
7455 * marker.c:
7456 * macros.c:
7457 * keymap.c:
7458 * keyboard.c:
7459 * intervals.c:
7460 * insdel.c:
7461 * indent.c:
7462 * gtkutil.c:
7463 * ftxfont.c:
7464 * ftfont.c:
7465 * fringe.c:
7466 * frame.c:
7467 * fontset.c:
7468 * font.c:
7469 * fns.c:
7470 * floatfns.c:
7471 * filelock.c:
7472 * fileio.c:
7473 * emacs.c:
7474 * editfns.c:
7475 * dosfns.c:
7476 * doprnt.c:
7477 * doc.c:
7478 * dispnew.c:
7479 * dired.c:
7480 * dbusbind.c:
7481 * data.c:
7482 * composite.c:
7483 * coding.c:
7484 * cmds.c:
7485 * cm.c:
7486 * chartab.c:
7487 * charset.c:
7488 * character.c:
7489 * ccl.c:
7490 * category.c:
7491 * casetab.c:
7492 * casefiddle.c:
7493 * callproc.c:
7494 * callint.c:
7495 * bytecode.c:
7496 * buffer.c:
7497 * atimer.c: Include setjmp.h. (Bug#4643)
7498
fd5f21e6
SM
74992009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7500
4c0354d7
SM
7501 Remove leftover table unibyte_to_multibyte_table.
7502 * character.c (unibyte_to_multibyte_table): Remove.
7503 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7504 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7505 * character.h (UNIBYTE_TO_CHAR): New macro.
7506 (MAKE_CHAR_MULTIBYTE): Use it.
7507 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7508 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7509 (message_dolog, set_message_1):
7510 * search.c (Freplace_match):
7511 * editfns.c (Fcompare_buffer_substrings):
7512 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7513 (concat):
7514 * insdel.c (copy_text, count_size_as_multibyte):
7515 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7516 * term.c (produce_glyphs):
7517 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7518 * regex.c (RE_CHAR_TO_MULTIBYTE):
7519 * cmds.c (internal_self_insert):
7520 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7521
fd5f21e6
SM
7522 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7523
4418646e
DN
75242009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7525
7526 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7527
35f5c1d2
JB
75282009-10-16 Juanma Barranquero <lekktu@gmail.com>
7529
7530 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7531
a0cd8f6b
AR
75322009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7533
7534 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7535 still needed under Tiger.
7536
7537 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7538
7539 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7540 __Apple__.
7541
7542 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7543
01a8d3fa
KH
75442009-10-15 Kenichi Handa <handa@m17n.org>
7545
7546 * print.c (print_object): Escape a symbol like "2E10" too.
7547
bf6c75c9 75482009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7549
7550 Cleanups and changes for 64-bit compile under Snow Leopard.
7551 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7552
7553 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7554
c5959062 7555 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7556 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7557 cast argument.
7558 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7559 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7560
7561 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7562
7563 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7564 where appropriate.
7565
7566 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7567 where appropriate.
6e4780c5
JB
7568 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7569 Use stringWithUTF8String.
bf6c75c9
AR
7570 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7571
6e4780c5
JB
7572 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7573 Add formal protocol mention to inheritance.
bf6c75c9
AR
7574 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7575
6e4780c5
JB
7576 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7577 Fix printf format.
bf6c75c9
AR
7578 (ns_query_color): Use CGFloat where appropriate.
7579 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7580 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7581 argument.
7582
3d87f118
AR
7583 * config.in (NS_HAVE_NSINTEGER): Drop.
7584
a95c8102
AR
7585 * dbusbind.c (dbus-method-return-internal)
7586 (dbus-method-error-internal): Use long format in printf, and cast
7587 argument.
7588
7589 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7590 in printf, and cast argument.
7591
6873acca 7592 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7593 cast argument.
7594
9ec6f100
GM
75952009-10-11 Glenn Morris <rgm@gnu.org>
7596
7597 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7598
5be883cd
JD
75992009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7600
7601 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7602 menu bar with a small width so it doesn't enlarge the frame.
7603
d7a39b51
JB
76042009-10-08 Juanma Barranquero <lekktu@gmail.com>
7605
7606 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7607
0c2b6f8e
GM
76082009-10-06 Glenn Morris <rgm@gnu.org>
7609
7610 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7611 SOME_MACHINE_LISP (this enters indirectly via DOC).
7612
e02131a2
EZ
76132009-10-05 Eli Zaretskii <eliz@gnu.org>
7614
7615 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7616
b4744254
EZ
76172009-10-04 Eli Zaretskii <eliz@gnu.org>
7618
7619 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7620 Doc fix.
7621
dbf64827
JB
76222009-10-03 Martin Rudalics <rudalics@gmx.at>
7623
7624 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7625
e9a0aef8
MA
76262009-10-02 Michael Albinus <michael.albinus@gmx.de>
7627
d528b1ce 7628 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7629 used anymore outside fileio.c.
7630
7631 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7632
64eb2b56
JB
76332009-10-01 Juanma Barranquero <lekktu@gmail.com>
7634
7635 * lisp.h (Qdelete_directory_internal):
7636 Declare, instead of Qdelete_directory.
7637
7638 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7639
9d28c33e
SM
76402009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7641
7642 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7643
9d8f3bd9
MA
76442009-10-01 Michael Albinus <michael.albinus@gmx.de>
7645
9d28c33e 7646 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7647 Fdelete_directory. It is not a command anymore. It has no file
7648 name handler.
7649
9694740b
SM
76502009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7651
7652 * xdisp.c (get_next_display_element): Use an enum in last change.
7653
748e162f
KH
76542009-09-28 Kenichi Handa <handa@m17n.org>
7655
9694740b 7656 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7657 unibyte_display_via_language_environment in handling
7658 Vnobreak_char_display.
7659
17efd58d
AR
76602009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7661
7662 * nsterm.h (ns_app_name): New extern variable.
7663
7664 * nsterm.m (ns_app_name): New variable.
7665 (ns_term_init): Set and use it.
7666 (ns_term_shutdown): Use it.
7667
7668 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7669 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7670
7671 * nsfns.m (ns_set_name_iconic, ns_set_name)
7672 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7673 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7674
9694740b
SM
7675 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7676 Remove double-casting in client_data comparison.
31c2d412 7677
3208cb35
YM
76782009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7679
7680 * keyboard.c (make_lispy_event): Remember last wheel direction.
7681 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7682
b7d552d6
GM
76832009-09-26 Glenn Morris <rgm@gnu.org>
7684
7685 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7686 internal.elc. Add term/pc-win.elc.
7687 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7688 term/x-win.elc.
7689 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7690 term/w32-win.elc.
7691 (NS_SUPPORT): New.
7692 (lisp): Add NS_SUPPORT.
7693 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7694
4ff670a8
DR
76952009-09-25 David Reitter <david.reitter@gmail.com>
7696
7697 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7698 on Mac OS X 10.6+ (bug#4513).
7699
feabfb6c
JB
77002009-09-24 Juanma Barranquero <lekktu@gmail.com>
7701
7702 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7703 some parts of Emacs code (like font selection) don't grok them.
7704 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7705
de59072a
AS
77062009-09-24 Andreas Schwab <schwab@redhat.com>
7707
7708 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7709
a489517b
JB
77102009-09-24 Juanma Barranquero <lekktu@gmail.com>
7711
7712 * dired.c (Fdirectory_files): Fix typo in docstring.
7713
0592970c
AR
77142009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7715
7716 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7717 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7718 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7719 under GNUstep.
7720 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7721
7722 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7723 glyph advancement.
7724
48e8a88b
AR
77252009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7726
7727 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7728 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7729
7730 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7731 deleted (bug #4492).
7732
e14f0a78
AR
7733 * nsfont.m (Vns_reg_to_script): New lisp variable.
7734 (syms_of_nsfont): Declare it.
7735 (ns_registry_to_script): New function.
7736 (ns_get_req_script): Call it.
7737 (ns_findfonts): Don't give up on non-unicode registry.
7738
7739 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7740
5b650faa
SM
77412009-09-20 Tom Tromey <tromey@redhat.com>
7742
7743 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7744 batch mode (bug#4228).
7745
a489517b 77462009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7747
7748 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7749 carefully. (Bug #4339)
0bae4e09 7750
fcfe06f3
CY
77512009-09-18 Chong Yidong <cyd@stupidchicken.com>
7752
d798ba87 7753 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7754
31642728
AR
77552009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7756
7757 * emacs.c (inhibit_x_resources): Update doc string for NS.
7758 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7759 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7760
7761 * nsterm.h (ns_no_defaults): Remove.
7762
7763 * nsterm.m (ns_no_defaults): Remove.
7764 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7765 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7766 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7767 don't update the NSWindow itself.
7768 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7769 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7770
7771 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7772 ns_use_qd_smoothing.
7773
7774 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7775 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7776 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7777 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7778
8686ac71
JB
77792009-09-17 Juanma Barranquero <lekktu@gmail.com>
7780
7781 * emacs.c (inhibit_x_resources): New variable.
7782 (main) [HAVE_NS]: Don't process --quick command line option.
7783 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7784
7785 * lisp.h (inhibit_x_resources): Declare it extern.
7786
7787 * w32reg.c (x_get_string_resource):
7788 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7789
e227ba05
EZ
77902009-09-17 Eli Zaretskii <eliz@gnu.org>
7791
362654a6
JB
7792 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7793 Add lisp/term/internal.elc.
e227ba05 7794
742d40e8
SM
77952009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7796
7797 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7798 (bug#4461).
7799
005bd5a2
DN
78002009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7801
7802 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7803
7804 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7805 (OBJECTS_MACHINE): Remove, unused.
7806
f9af9719
SM
78072009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7808
7809 * frame.c (x_get_resource_string): Remove unused.
7810
0307c7d2
JD
78112009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7812
7813 * xterm.c (x_new_font): Call change_frame_size before calling
7814 x_set_window_size, in case frame size won't change.
7815
7816 * frame.c (x_set_font): Remove dead code.
7817
428b13d6
SM
78182009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7819
7820 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7821
5766c380
SM
78222009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7823
7824 * lread.c (Fload): Don't output a message after loading an obsolete
7825 package any more (done in Lisp now).
7826
2fd0161b
CY
78272009-09-12 Chong Yidong <cyd@stupidchicken.com>
7828
7829 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7830
bc5e75b6
SM
78312009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7832
7833 * keymap.c (Fwhere_is_internal): Use nconc2.
7834
c31c985e
AM
78352009-09-11 Alan Mackenzie <acm@muc.de>
7836
7837 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7838 batch mode.
7839
78012bd2
AS
78402009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7841
7842 * xdisp.c (display_mode_element): Detect cycles.
7843
9d889332
SM
78442009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7845
7846 * keymap.c (where_is_internal): Don't erroneously return nil right after
7847 filling the cache.
7848 (where_is_internal_1): Fix up typo.
7849
7ab5d780
GM
78502009-09-11 Glenn Morris <rgm@gnu.org>
7851
7852 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7853 share a common doc-string.
7854
5238a749
SM
78552009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7856
66d77eda
SM
7857 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7858 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7859
5238a749
SM
7860 * keymap.c (QCadvertised_binding): New constant.
7861 (syms_of_keymap): Initialize it.
7862 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7863 if applicable.
7864
19f48442
SM
78652009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7866
50d4ba39
SM
7867 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7868 (parse_menu_item): Streamline since bindings are recomputed all the
7869 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7870 more and don't support lmenu's menu-alias any more either.
7871
a88a5372
SM
7872 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7873 (where_is_internal): Strip it down to only traverse the keymaps.
7874 Move the cache handling from Fwhere_is_internal to here.
7875 (Fwhere_is_internal): Move the handling of remapping and the choice of
7876 the best binding from where_is_internal to here.
7877 Unify the cached/noncached paths, so remapping is also handled
7878 correctly when the cache is used, and so the cache can be used to
7879 speed up remap-handling when applicable.
7880 Give preference to non-remapped bindings.
7881 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7882 non-remapped bindings.
7883 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7884 command remapping.
7885
19f48442
SM
7886 * xdisp.c (display_mode_element): Move list length limit from 50 to
7887 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7888
599498c3 78892009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7890
7891 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7892
f9b7b5ac
SM
78932009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7894
a53af587
JB
7895 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7896 (Bug#4334)
7897
f9b7b5ac
SM
7898 * keymap.c (where_is_internal): Filter out shadowed remappings.
7899 Assume that where_is_internal returns unshadowed bindings to simplify
7900 the code and get rid of the gotos. Use ASIZE.
7901
04f4b72d
JD
79022009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7903
4da146f2
JD
7904 * xterm.c (x_focus_changed): If we get a focusout and pointer
7905 is invisible, make it visible.
7906
04f4b72d
JD
7907 * xterm.h: Remove condition for declaration of
7908 x_*_window_to_frame.
7909
7cef7ce3
SM
79102009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7911
7912 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7913 initial terminal as well.
7914
a54fa5b7
JD
79152009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7916
7917 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7918 x_menubar_window_to_frame.
a54fa5b7 7919
50426a04 7920 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7921 (XTmouse_position): Do not return valid positions
7922 for clicks in the menubar and the toolbar for Gtk+.
7923
7924 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7925 if the widget for the event has the same top level as a frame,
7926 return the frame.
7927 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7928 internal windows, bug #4122.
7929 (x_non_menubar_window_to_frame): Remove.
7930
5a021dd0
GM
79312009-09-02 Glenn Morris <rgm@gnu.org>
7932
7933 * buffer.c (default-major-mode): Move most of the doc from here...
7934 (major-mode): ... to here.
7935
548fe2f3
NR
79362009-08-30 Nick Roberts <nickrob@snap.net.nz>
7937
7938 * process.c (wait_reading_process_output): Keep the descriptor
7939 when pty is used by a non-child process, e.g., in I/O buffer of
7940 GDB this allows inferior to be restarted.
7941
e0840eef
EZ
79422009-08-29 Eli Zaretskii <eliz@gnu.org>
7943
7944 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7945 both branches into one.
7946
82e98df4
SM
79472009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7948
7949 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7950 (main): Use enable-multibyte-characters rather than
7951 default-enable-multibyte-characters. Output a warning message when
7952 running a unibyte session.
7953
890617cb
YM
79542009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7955
7956 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7957 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7958 (copy_data_segment): Also copy __program_vars section.
7959 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7960 (dump_it) [LC_DYLD_INFO]: Use it.
7961
7962 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7963
e7adeadc
EZ
79642009-08-28 Eli Zaretskii <eliz@gnu.org>
7965
7966 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7967 $(SRC)/buildobj.h.
7968 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7969 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7970 $(SRC)/buildobj.h.
7971 (clean): Add buildobj.h.
7972
3ed8bbdc
TZ
79732009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7974
7975 * print.c (print_object): Set escapeflag to 1 when printing
7976 hashtable keys and values.
7977
155a6764
SM
79782009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7979
7980 * lread.c (read_integer): Use doubles (and potentially return a float
7981 number) as we do in string-to-number.
7982 (read1): Use strtol to read integers, signal errors on strtol's
7983 overflow and use floats if strtol's output is too large for
7984 Elisp integers.
7985
877610de
EZ
79862009-08-27 Eli Zaretskii <eliz@gnu.org>
7987
7988 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7989 (make-buildobj-SH): Fix last change.
7990 (SRC): Move to before where it's first used.
7991
ef73e7be
KH
79922009-08-27 Kenichi Handa <handa@m17n.org>
7993
550c8289
KH
7994 * process.c (send_process): Use encode_coding_object instead of
7995 encode_coding_string to perform eol-conversion even if the string
7996 is unibyte.
7997
60afa08d
KH
7998 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7999 character.
8000
ef73e7be 8001 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8002 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8003
7b3a82d7
DN
80042009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8005
5654bf63
DN
8006 * callproc.c (Fcall_process): Remove always true #if.
8007
7b3a82d7
DN
8008 * lisp.h: Replace #if 0 code for checking with text pointing to
8009 the --enable-checking configure flag.
8010
8011 * emacs.c (main): Mention the --enable-profiling configure flag
8012 instead of using CFLAGS.
8013
878bde49
KR
80142009-08-26 Ken Raeburn <raeburn@raeburn.org>
8015
8016 * Makefile.in (buildobj.h): New target.
8017 (doc.o): Depend on it.
8018 (temacs${EXEEXT}): Don't generate buildobj.lst.
8019 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8020 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8021 ($(BLD)/doc.$(O)): Depend on it.
8022 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8023 provided by Eli Zaretskii.)
8024 ($(TEMACS)): Don't generate buildobj.lst.
8025 * doc.c: Include buildobj.h.
8026 (buildobj): New static variable.
8027 (Fsnarf_documentation): Use it, instead of opening and reading
8028 buildobj.lst.
8029
1574224c
MA
80302009-08-25 Michael Albinus <michael.albinus@gmx.de>
8031
8032 * dbusbind.c (Fdbus_call_method)
8033 (Fdbus_call_method_asynchronously): Use English numeric format for
8034 timeout values in doc string.
8035
d9da2f45
KH
80362009-08-25 Kenichi Handa <handa@m17n.org>
8037
ef73e7be
KH
8038 * alloc.c (mark_char_table): New function.
8039 (mark_object): Use mark_char_table for a char-table.
8040
d9da2f45
KH
8041 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8042 (CHAR_TABLE_REF): Use it.
8043
c8edcc01
KR
80442009-08-23 Ken Raeburn <raeburn@raeburn.org>
8045
8046 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8047 before invoking the newly build emacs to check for load-path
8048 shadowing.
8049
7763401b
GM
80502009-08-22 Glenn Morris <rgm@gnu.org>
8051
8052 * Makefile.in (bootstrap_exe): New variable.
8053 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8054 Use ${bootstrap_exe}.
8055
729eadda
EZ
80562009-08-22 Eli Zaretskii <eliz@gnu.org>
8057
8058 * coding.h (encode_coding_string): Don't encode unibyte strings.
8059 (Bug#4047)
8060
eb4c6ace
MA
80612009-08-22 Michael Albinus <michael.albinus@gmx.de>
8062
8063 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8064
8065 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8066 intended as hotfix only.
8067 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8068
36e34d1b
AR
80692009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8070
8071 * nsterm.m (ns_get_color): Update documentation properly for last
8072 change, and clean up loose ends in the code left by it. Fix
8073 longstanding bug with 16-bit hex parsing, and add support for
8074 yet another X11 format (rgb:r/g/b) for compatibility.
8075 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8076 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8077
f983eb8a
SM
80782009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8079
8080 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8081
3f56d3c6
MA
80822009-08-20 Michael Albinus <michael.albinus@gmx.de>
8083
8084 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8085 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8086 (xd_initialize, xd_pending_messages): Check, whether
8087 $DBUS_SESSION_BUS_ADDRESS is set.
8088
fb641d68
YM
80892009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8090
8091 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8092
8093 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8094
cf59a374
GM
80952009-08-20 Glenn Morris <rgm@gnu.org>
8096
8097 * emacs.c (system-type): Doc fix.
8098
1373f3be
SM
80992009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8100
8101 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8102 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8103
058ed861
MA
81042009-08-18 Michael Albinus <michael.albinus@gmx.de>
8105
1373f3be
SM
8106 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8107 New functions.
058ed861
MA
8108 (xd_initialize): Revert change from 2009-08-16.
8109
563a866e 81102009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8111
8112 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8113 font-group vector, return nil.
5fc05db0 8114
e42bdf01
CY
81152009-08-17 Chong Yidong <cyd@stupidchicken.com>
8116
8117 * process.c (status_notify): Don't perform redisplay.
8118 (Fdelete_process, list_processes_1, process_send_signal):
8119 Expliticly perform redisplay.
8120 (wait_reading_process_output): Always check process status, but
8121 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8122
4230ab74
KR
81232009-08-17 Ken Raeburn <raeburn@raeburn.org>
8124
1373f3be 8125 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8126 (XFLOAT_INIT): New macro for storing a float value.
8127 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8128 * fns.c (sxhash): Copy out the value of a float in order to
8129 examine its bytes.
8130 * dbusbind.c (xd_append_arg): Likewise.
8131
4230ab74
KR
8132 * emacs.c (main): Don't call syms_of_data twice.
8133
a0645cdd
MA
81342009-08-16 Michael Albinus <michael.albinus@gmx.de>
8135
8136 * dbusbind.c (xd_initialize): Add connection file descriptor to
8137 input_wait_mask, in order to let select() detect, whether a new
8138 message has been arrived.
ca4f31ea 8139 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8140
485db0ba
MA
81412009-08-15 Michael Albinus <michael.albinus@gmx.de>
8142
1373f3be
SM
8143 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8144 New functions.
485db0ba
MA
8145
8146 * lisp.h (xd_pending_messages): Declare.
8147
8148 * keyboard.c (readable_events): Call xd_pending_messages.
8149
b5b98ff4
CY
81502009-08-15 Chong Yidong <cyd@stupidchicken.com>
8151
1373f3be 8152 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8153
f8354c6e
CY
8154 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8155
b5b98ff4
CY
8156 * buffer.c (set_buffer_internal_1)
8157 (swap_out_buffer_local_variables): Check for unbound local
8158 variables (Bug#4138).
8159
8b9fc636
EZ
81602009-08-14 Eli Zaretskii <eliz@gnu.org>
8161
8162 * process.c (create_pty): Fix last change.
8163
ce959360
CY
81642009-08-13 Chong Yidong <cyd@stupidchicken.com>
8165
8166 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8167 (xbm_load_image): Caller changed.
64b807c9 8168 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8169
c7baf7e9
NR
81702009-08-13 Nick Roberts <nickrob@snap.net.nz>
8171
8172 * process.c (create_pty): New function.
8173 (Fstart_process): Use it to allow Emacs to just associate a pty
8174 with the buffer. See associated change in gdb-mi.el.
8175 (list_processes_1): Deal with no program name.
8176 (start_process_unwind): Use pid == -2 to mean no process.
8177
1ac9108a
SM
81782009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8179
8180 * cmds.c (nonundocount): New global variable.
8181 (keys_of_cmds): Initialize it.
8182 (Fself_insert_command): Use it to combine upto 20 sequential chars
8183 into a single undo entry, just like the Qself_insert_command code in
8184 keyboard.c does.
8185 Call frame_make_pointer_invisible, also like the Qself_insert_command
8186 code in keyboard.c does.
8187 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8188 than its own local replacement for it.
8189
e267324c
KR
81902009-08-10 Ken Raeburn <raeburn@raeburn.org>
8191
1ac9108a 8192 * fns.c (concat): Don't re-set string length to its current value.
77437343 8193
1ac9108a
SM
8194 * coding.h (decode_coding_string, encode_coding_string):
8195 Use SBYTES macro.
f0bed503 8196
1ac9108a 8197 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8198 (doprnt): Merge with doprnt1, discarding lispstrings code.
8199 * lisp.h (doprnt_lisp): Don't declare.
8200
416e006d
JL
82012009-08-07 Juri Linkov <juri@jurta.org>
8202
8203 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8204
6f7d5780
DN
82052009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8206
8207 * print.c (syms_of_print): Undo previous change.
8208
f19a0f5b
TZ
82092009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8210
8211 * lread.c (read1, syms_of_lread): Read hashtables back from the
8212 readable format.
8213
8214 * print.c (print_preprocess, print_object): Print hashtables fully
8215 and readably.
8216 (syms_of_print): Provide 'hashtable-print-readable.
8217
b9173dc2
AR
82182009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8219
8220 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8221 no family set.
8222 (nsfont_open): Handle case when entity has no family.
8223
1586503c
AR
82242009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8225
8226 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8227 element, not a list, for match case.
8228
087048cd
KH
82292009-07-28 Kenichi Handa <handa@m17n.org>
8230
8231 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8232 rigidly.
8233
8234 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8235 font_parse_xlfd. Check font properties more rigidly.
8236
780c2506
DN
82372009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8238
31fd7c5c
JB
8239 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8240 bsd-common.h.
780c2506 8241
a8c0cc18
KH
82422009-07-27 Kenichi Handa <handa@m17n.org>
8243
8244 * xfaces.c (face_with_height): Call font_clear_prop.
8245
4fbe2306
CY
82462009-07-26 Chong Yidong <cyd@stupidchicken.com>
8247
111d9af3
CY
8248 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8249
8250 * xterm.c (x_term_init): Use Qx.
8251
4fbe2306
CY
8252 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8253
1ac9108a 8254 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8255 (ns_get_color): Revert 2009-07-16 change.
8256
beb0b7f9
EZ
82572009-07-25 Eli Zaretskii <eliz@gnu.org>
8258
8259 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8260 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8261
2baf5e76
KR
82622009-07-25 Ken Raeburn <raeburn@raeburn.org>
8263
1ac9108a
SM
8264 * coding.h (decode_coding_string, encode_coding_string):
8265 Use SCHARS macro.
8890e5f5 8266
2baf5e76 8267 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8268 (load_depth): Delete.
2baf5e76
KR
8269 (Qload_in_progress): New variable.
8270 (load_unwind): Don't reference load_depth or load_in_progress.
8271 (Fload): Likewise; specbind Qload_in_progress instead.
8272 (init_lread): Don't initialize load_depth.
8273 (syms_of_lread): Initialize and protect Qload_in_progress.
8274
1395c6f5
AR
82752009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8276
8277 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8278
4e2f36cf
AR
82792009-07-23 Yavor Doganov <yavor@gnu.org>
8280
8281 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8282
5dd9a6f7
AR
82832009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8284
8285 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8286 Bugs 3792, 3720, 2402.
8287 (ns_lookup_indexed_color): Check for bad index.
8288 (ns_index_color): Init unused slot to 0.
8289 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8290 Bug 3714, possibly 3082.
5dd9a6f7 8291
c902b920
JR
82922009-07-22 Jason Rumney <jasonr@gnu.org>
8293
1ac9108a
SM
8294 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8295 Position IME window at cursor (Bug#2570).
c902b920
JR
8296 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8297 (globals_of_w32fns): Dynamically load functions required above.
8298
8299 * w32term.c (w32_draw_window_cursor): Send message to reposition
8300 any IME window.
8301
090101cf
CY
83022009-07-21 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * fileio.c: Revert 2009-07-16 changes.
8305 (Vauto_save_include_big_deletions): New variable.
8306 (Fdo_auto_save): Disable auto-save only if
8307 auto-save-include-big-deletions is nil.
8308
e6583e3d
CY
83092009-07-21 Chong Yidong <cyd@stupidchicken.com>
8310
8311 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8312 the overflowed pixels into account (Bug#3879).
8313
ece435a5
KR
83142009-07-21 Ken Raeburn <raeburn@raeburn.org>
8315
8316 * lread.c (load_depth): New variable.
8317 (Fload, load_unwind, init_lread): Set it to the load recursion
8318 depth; set load_in_progress as a simple boolean based on the
8319 current load_depth. (Bug#3892)
8320
40b2d973
AR
83212009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8322
8323 * nsfont.m (ns_has_attribute): Remove.
8324 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8325
10be7e0d
JL
83262009-07-18 Juri Linkov <juri@jurta.org>
8327
8328 * process.c (Fset_process_query_on_exit_flag): Mention killing
8329 a buffer in docstring.
8330
fa055055
KH
83312009-07-17 Kenichi Handa <handa@m17n.org>
8332
8333 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8334
042f7b69
YM
83352009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8336
8337 * nsfns.m (Fns_set_alpha): Remove function.
8338 (syms_of_nsfns): Don't defsubr it.
8339
8340 * nsterm.m (ns_get_color): Remove incompatible color formats.
8341 (ns_color_to_lisp): Generate #rrggbb color format string.
8342
4be941e3
RS
83432009-07-16 Richard Stallman <rms@gnu.org>
8344
8345 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8346 (Fset_buffer_auto_saved): Handle save_length = -2.
8347
4e6b227d
CY
83482009-07-16 Chong Yidong <cyd@stupidchicken.com>
8349
8350 * xterm.c (Qx_gtk_map_stock): New var.
8351
8352 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8353 of calling intern each time.
8354
a1856973
YM
83552009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8356
8357 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8358 does tiling.
8359
8360 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8361
497e54d8
KH
83622009-07-14 Kenichi Handa <handa@m17n.org>
8363
72d36834
KH
8364 * font.c (font_vconcat_entity_vectors): New function.
8365 (struct font_sort_data): New member font_driver_preference.
8366 (font_compare): Check font_driver_preference.
8367 (font_sort_entities): The format of the first argument changed.
8368 (font_delete_unmatched): Likewise.
8369 (font_list_entities): The return type changed.
8370 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8371 (font_find_for_lface): Adjuste for the above changes.
8372 Don't suppress the checking of C even if the repertory supports it.
8373 (Flist_fonts): Adjust for the above changes.
72d36834 8374
1ac9108a
SM
8375 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8376 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8377 Reject a font who has adstyle property that is different from a
8378 langname derived from registry property.
1ac9108a 8379 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8380
b6046155
EZ
83812009-07-13 Eli Zaretskii <eliz@gnu.org>
8382
8383 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8384 local copy of dirfilename.
8385
fb6b6049
KH
83862009-07-13 Kenichi Handa <handa@m17n.org>
8387
e2402a5e
KH
8388 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8389 against max_char.
8390
fb6b6049
KH
8391 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8392 calling XSYMBOL (sym).
8393
65156807
EZ
83942009-07-11 Eli Zaretskii <eliz@gnu.org>
8395
1ac9108a
SM
8396 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8397 New function.
8398 (directory_files_internal) [WINDOWSNT]:
8399 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8400 the filesystem of the directory is fast or slow.
8401
8402 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8403 file name.
8404 (is_slow_fs): New function.
8405 (stat): Use it to determine whether to issue more system calls to
8406 get accurate file attributes, when w32-get-true-file-attributes is
8407 `local'.
8408
e0ab5fcf
JD
84092009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8410
8411 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8412 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8413 parameter font-parameter as default to the font dialog.
8414
784ceded
KH
84152009-07-10 Kenichi Handa <handa@m17n.org>
8416
8417 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8418
fb8edc0b
EZ
84192009-07-09 Eli Zaretskii <eliz@gnu.org>
8420
1ac9108a 8421 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8422
fb8edc0b
EZ
8423 * w32.c (stat): Treat UNC file names as residing on remote
8424 drives. (Bug#3542)
8425
635c75b1
KH
84262009-07-09 Kenichi Handa <handa@m17n.org>
8427
8428 * fontset.c (fontset_find_font): Fix previous change.
8429
c1d5ce94
MA
84302009-07-08 Michael Albinus <michael.albinus@gmx.de>
8431
8432 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8433 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8434 error flag.
8435
edb61b39
KH
84362009-07-08 Kenichi Handa <handa@m17n.org>
8437
374bf7e4
KH
8438 * fontset.c (fontset_find_font): Fix the logic of handling
8439 charset_matched.
8440 (font_for_char): Delete unused var.
8441 (generate_ascii_font_name): Delete it.
8442
edb61b39
KH
8443 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8444
8445 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8446 (encode_coding_sjis): Fix the code range check.
8447
0f3f018c
CY
84482009-07-07 Chong Yidong <cyd@stupidchicken.com>
8449
8450 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8451 (Fexpand_file_name): Copy string data properly (Bug#3772).
8452
fcaf6f3a
JD
84532009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8454
8455 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8456 first MapNotify.
8457
6809ca75
KH
84582009-07-07 Kenichi Handa <handa@m17n.org>
8459
8460 * character.h (unibyte_has_multibyte_table): Delete extern.
8461 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8462
8463 * charset.c (Fset_charset_priority): Update charset_unibyte.
8464 (syms_of_charset): Initialize charset_unibyte.
8465
8466 * character.c (unibyte_has_multibyte_table): Delete it.
8467 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8468 charset_unibyte.
8469 (multibyte_char_to_unibyte_safe): Likewise.
8470 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8471
1ac9108a 8472 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8473 (x_produce_glyphs): Likewise.
8474
8475 * .gdbinit (xcharset): Fix the treating $arg0.
8476
ad9e2d54
EZ
84772009-07-04 Eli Zaretskii <eliz@gnu.org>
8478
8479 Emulation of `getloadavg' on MS-Windows.
50426a04 8480 * w32.c: Include float.h.
ad9e2d54
EZ
8481 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8482 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8483 (get_native_system_info, get_system_times): New functions.
8484 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8485 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8486 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8487 g_b_init_get_system_times, and num_of_processors.
8488
0a3472c7
JR
84892009-07-03 Jason Rumney <jasonr@gnu.org>
8490
8491 * w32term.c (w32_initialize): Use standard types.
8492
80904120
EZ
84932009-07-03 Eli Zaretskii <eliz@gnu.org>
8494
8495 * dired.c (Ffile_attributes): Decode user and group names by the
8496 locale's encoding. (Bug#3443)
8497
6978862d
DN
84982009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8499
f8d23104
DN
8500 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8501 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8502
8503 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8504
8505 * term.c (init_tty): Remove spurious #ifdef.
8506
6978862d
DN
8507 * m/mips.h: Mention this file is also used for netbsd.
8508 * m/pmax.h: Remove file.
8509
e044e4fc
JD
85102009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8511
8512 * xterm.h (struct x_display_info): Add invisible_cursor.
8513 (struct x_output): Add current_cursor.
8514
8515 * xterm.c (XTtoggle_invisible_pointer): New function.
8516 (x_define_frame_cursor): Don't define cursor if invisible or the
8517 same as before. Set current_cursor.
8518 (x_create_terminal): Set toggle_invisible_pointer_hook.
8519
8520 * xfns.c (make_invisible_cursor): New function.
8521 (x_set_mouse_color): Call make_invisible_cursor.
8522 Set current_cursor.
8523 (x_window): Set current_cursor.
8524
8525 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8526
8527 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8528 inserting a character.
8529 (read_avail_input): Call frame_make_pointer_visible.
8530
8531 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8532 (frame_make_pointer_invisible, frame_make_pointer_visible):
8533 New functions.
e044e4fc
JD
8534 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8535
8536 * frame.h: Declare frame_make_pointer_invisible and
8537 frame_make_pointer_visible.
8538 (struct frame): Add pointer_invisible.
8539
574c8efa
JD
85402009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8541
7b507248
JD
8542 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8543 frame isn't visible.
8544 (xg_frame_resized): If width/height is -1, get size of window
8545 from X server.
8546
8547 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8548 for MapNotify.
8549
835bdaa7 8550 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8551 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8552 (flush_and_sync): Reintroduce.
574c8efa 8553
3f1c6666 85542009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8555
31fd7c5c 8556 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8557
8558 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8559 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8560
8561 * frame.h: Declare Qsticky.
8562
cad9ef74
JD
8563 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8564
8565 * nsfns.m (ns_frame_parm_handlers): Ditto.
8566
8567 * frame.c: Declare Qsticky.
8568 (frame_parms): Add sticky.
8569
8570 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8571
8572 * xterm.h: Declare x_set_sticky.
8573
8574 * xterm.c (x_set_sticky): New function.
8575
69b16610
JD
8576 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8577 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8578 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8579
8580 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8581
8582 * frame.c: Qmaximized is new.
8583 (x_set_frame_parameters): Do not handle fullscreen specially.
8584 Only set width and height if explicitly set.
8585 (x_set_fullscreen): Handle Qmaximized.
8586 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8587 (syms_of_frame): Initialize Qmaximized.
8588
1ac9108a
SM
8589 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8590 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8591
8592 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8593 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8594 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8595 set gravity to NorthWestGravity when USE_GTK.
8596 (set_wm_state): New function.
31fd7c5c 8597 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8598 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8599 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8600 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8601 to x_real_positions and x_fullscreen_adjust.
8602
8603 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8604 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8605 flush_and_sync.
8606 (xg_height_changed): New function.
8607 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8608 and gtk_window_set_policy. Set frame gravity after parsing the
8609 geometry string.
3f1c6666
JD
8610 (xg_update_frame_menubar, free_frame_menubar)
8611 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8612 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8613 Remove calls to xg_frame_set_char_size.
8614
fd503d99
KH
86152009-07-01 Kenichi Handa <handa@m17n.org>
8616
8617 * keyboard.c (decode_keyboard_code): New function.
8618 (tty_read_avail_input): Decode the input bytes if necessary.
8619
1ac9108a
SM
8620 * coding.c (setup_coding_system):
8621 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8622 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8623 use Qno_conversion.
8624
24ed93fb
YM
86252009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8626
8627 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8628
99061dfc
CY
86292009-06-30 Chong Yidong <cyd@stupidchicken.com>
8630
1ac9108a 8631 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8632
ff90fbde
JR
86332009-06-30 Jason Rumney <jasonr@gnu.org>
8634
8635 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8636 is already loaded.
8637 Set user model ID if supported (bug#1849).
8638
5f445726
JM
86392009-06-29 Jim Meyering <meyering@redhat.com>
8640
8641 Remove useless if-before-xfree test.
8642 * nsfont.m (nsfont_close): Remove useless test.
8643 * term.c (delete_tty): Likewise.
8644 * w32.c (system_process_attributes): Likewise.
8645 * w32font.c (w32font_close): Likewise.
8646 * xfaces.c (x_free_gc): Likewise.
8647 * xselect.c (buffer): Likewise.
8648
b9607587
AS
86492009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8650
8651 * process.c (send_process): Keep decoded string in a local
8652 variable and protect it from GC. (Bug#3521)
8653
89ba96f4
EZ
86542009-06-28 Eli Zaretskii <eliz@gnu.org>
8655
8656 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8657 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8658
098a1589
CY
86592009-06-28 Chong Yidong <cyd@stupidchicken.com>
8660
485422be
CY
8661 * xdisp.c (start_display, handle_face_prop)
8662 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8663 (redisplay_window, try_window_id, produce_image_glyph):
8664 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8665
098a1589
CY
8666 * xterm.c (x_update_window_begin, x_new_focus_frame)
8667 (x_scroll_bar_handle_click, handle_one_xevent)
8668 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8669 (x_make_frame_visible, x_make_frame_invisible)
8670 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8671 code chunks that are now obsolete.
8672
78c38319
MA
86732009-06-28 Michael Albinus <michael.albinus@gmx.de>
8674
8675 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8676 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8677 for hours, when optimzation is enabled.
8678 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8679 (xd_read_message): Make them static.
8680
4189ed40
CY
86812009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8682
8683 * term.c (turn_on_face): Allow simultaneously bold and dim
8684 terminal faces (Bug#3530).
8685
cd9b5e16
CY
86862009-06-27 Chong Yidong <cyd@stupidchicken.com>
8687
4e23bedb
CY
8688 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8689
cd9b5e16
CY
8690 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8691 truncation glyphs (Bug#3686).
8692
07cc3c35
GM
86932009-06-27 Glenn Morris <rgm@gnu.org>
8694
8695 * m/pmax.h: Restore file, with only netbsd portions.
8696
31fd7c5c 86972009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8698
cd9b5e16 8699 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8700
42d4a64f
KH
87012009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8702
8703 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8704 the arg FORCE_SYMBOL.
8705
930fe55b 87062009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8707
8708 * fontset.c (fontset_find_font): When a usable rfont_def is found
8709 in a fallback font-group, make it the first element of the group.
8710
57ebc3fd
CY
87112009-06-24 Chong Yidong <cyd@stupidchicken.com>
8712
8713 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8714
f084f942
KH
87152009-06-24 Kenichi Handa <handa@m17n.org>
8716
8717 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8718 set for C.
8719 (fontset_font): Record the availability of a font for C both in
8720 the realized fontsets of the current one and the default one.
8721
2f686c87
DN
87222009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8723
8724 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8725 conditional, it is always defined on AIX.
8726
666e158e
MB
87272009-06-23 Miles Bader <miles@gnu.org>
8728
8729 * window.c (Vrecenter_redisplay): New variable.
8730 (syms_of_window): Initialize it.
8731 (Qtty): New extern declaration.
8732 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8733
c6da7cd2
JM
87342009-06-23 Jim Meyering <meyering@redhat.com>
8735
1ac9108a
SM
8736 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8737 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8738 pointer dereferences are guaranteed to be valid.
c6da7cd2 8739
678dca3d
KH
87402009-06-23 Kenichi Handa <handa@m17n.org>
8741
74d75424
KH
8742 * emacs.c (main): Call init_font ().
8743
8744 * font.h (Vfont_log): Extern it.
8745 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8746
8747 * font.c (font_sort_entities, font_list_entities)
8748 (font_matching_entity, font_open_entity)
8749 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8750 (Vfont_log): Delete static.
8751 (font_log_env_checked): Delete this variable.
8752 (font_add_log): Don't check font_log_env_checked.
8753 (font_deferred_log): Check Vfont_log.
8754 (init_font): New function.
8755
678dca3d
KH
8756 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8757
8758 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8759
8760 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8761
8762 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8763
8764 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8765 (face_for_char): Don't call font_deferred_log here.
8766 (font_for_char): Likewise.
8767
8a668709
CY
87682009-06-22 Chong Yidong <cyd@stupidchicken.com>
8769
9a01ee33
CY
8770 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8771 rather than its background_width for drawing the overline and
8772 underline (Bug#489).
8773
8774 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8775 rather than its background_width for drawing the overline and
8776 underline (Bug#489).
ec7c9926
CY
8777 (xg_default_icon_file): New variable.
8778 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8779 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8780
8a668709
CY
8781 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8782 (load_overlay_strings): Remove externs.
8783 (fast_find_position): Function deleted.
8784 (mouse_face_from_buffer_pos): New function, based on
8785 fast_find_position. Correctly handle before-strings,
8786 display-strings, and after-strings (Bug#1220).
8787 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8788
4d4c02d8
CY
87892009-06-21 Chong Yidong <cyd@stupidchicken.com>
8790
1ac9108a 8791 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8792 (move_it_in_display_line_to, move_it_in_display_line_to)
8793 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8794
70243478
CY
87952009-06-21 Chong Yidong <cyd@stupidchicken.com>
8796
8797 * Branch for 23.1.
8798
13087e59
JR
87992009-06-21 Jason Rumney <jasonr@gnu.org>
8800
8801 * w32term.c (keyboard_codepage): New static variable.
8802 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8803 (w32_read_socket) [WM_CHAR]: Use it to decode character
8804 input (bug#3237).
8805 (w32_initialize): Initialize it.
8806 (codepage_for_locale): New function.
8807
4735b74e
KR
88082009-06-20 Ken Raeburn <raeburn@raeburn.org>
8809
8810 * process.c (status_message): Pass Faset index argument as a lisp
8811 object, so as to work with USE_LISP_UNION_TYPE.
8812
0e727afa
YM
88132009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8814
8815 * coding.c (Ffind_coding_systems_region_internal):
8816 Cache checked characters.
8817
cf299835
KH
88182009-06-18 Kenichi Handa <handa@m17n.org>
8819
1ac9108a 8820 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8821
90f20d94
AS
88222009-06-18 Andreas Schwab <aschwab@redhat.com>
8823
8824 * xdisp.c (redisplay_internal): Check that the frame is still
8825 live after redisplay of its windows.
8826 (redisplay_windows): Check that the window is still live.
8827
7f1faf1c
KH
88282009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8829
8830 * coding.c (detect_coding_utf_16): Fix previous change.
8831
cc13543e
KH
88322009-06-16 Kenichi Handa <handa@m17n.org>
8833
8834 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8835 UTF-16 by checking the dispersion of Eth and Oth bytes.
8836
977b85f4
AS
88372009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8838
8839 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8840
66bd43d1
KH
88412009-06-15 Kenichi Handa <handa@m17n.org>
8842
8843 * process.c (status_message): Fix previous change. Be sure to
8844 decode a localized string.
8845
cb5ca9c5
YM
88462009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8847
8848 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8849 add comment explaining why.
8850
ec7709ba 88512009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8852
ec7709ba 8853 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8854
4b7f335c
AR
88552009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8856
8857 * nsfont.m (ns_attribute_value): Remove.
8858 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8859 (ns_has_attribute): Shrink the normal range.
8860 (ns_findfonts): Don't worry about requested spec in determining
8861 need for synthItal.
e41820ee 8862 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8863
73b26103
SZ
88642009-06-14 Seiji Zenitani <zenitani@mac.com>
8865
8866 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8867
5753e4da
KH
88682009-06-11 Kenichi Handa <handa@m17n.org>
8869
8870 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8871 overhang for the static composition case.
8872
3561b671
KH
88732009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8874
5753e4da
KH
8875 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8876 overhang for the automatic composition case.
8877
3561b671
KH
8878 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8879 composition case.
8880
852bbd41
CY
88812009-06-10 Chong Yidong <cyd@stupidchicken.com>
8882
8883 * xdisp.c (get_next_display_element): When handling wrap-prefix
8884 and line-prefix, treat \n as a control character (bug#3502).
8885
9903d1e6
KH
88862009-06-10 Kenichi Handa <handa@m17n.org>
8887
8888 * font.c (font_parse_family_registry): Fix for one-char foundry.
8889 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8890
0bcbaaaa
CY
88912009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8892
8893 * process.c (status_message): Fix handling of multibyte signal
8894 string (Bug#3499).
8895
40aa3f13
JM
88962009-06-09 Jim Meyering <meyering@redhat.com>
8897
1f80c7e2
CY
8898 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8899 color name is missing.
40aa3f13 8900
72d51285
KH
89012009-06-09 Kenichi Handa <handa@m17n.org>
8902
8903 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8904 FROM-CODE and TO-CODE are codepoints of CHARSET.
8905
c1d04d84
AR
89062009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8907
8908 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8909
89102009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8911
8912 Changes to support :script/:lang/:otf in NS font driver.
8913 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8914 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8915 indicate not part of font driver interface, and change callers.
8916 (ns_get_family): Remove pointless null check.
8917 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8918 ns_spec_to_descriptor, ns_descriptor_to_entity.
8919 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8920 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8921 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8922 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8923 (ns_get_req_script, ns_accumulate_script_ranges)
8924 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8925 New functions.
8926 (nsfont_list, nsfont_match): Use ns_findfonts.
8927 (nsfont_open): Use font descriptor instead of traits.
8928 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8929 (dump_glyphstring): Rename to ns_dump_glyphstring.
8930
c7eb9816
AR
8931 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8932
c1d04d84
AR
8933 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8934
8935 * fontset.c (fontset_from_font): Remove NS-specific code.
8936
ec7709ba 89372009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8938
8939 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8940 nonactive windows.
8941
31fd7c5c 89422009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8943
1ac9108a 8944 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8945
68852c13 89462009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8947
8948 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8949
6756cd1d
CY
89502009-06-07 Chong Yidong <cyd@stupidchicken.com>
8951
8952 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8953 account for the overflowing of newlines into the last glyph on the
8954 display line (Bug#3482).
8955
28bf482a
DR
89562009-06-05 David Reitter <david.reitter@gmail.com>
8957
ec7709ba
JB
8958 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8959 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8960 Fns_selection_exists_p, Fns_selection_owner_p.
8961
fdb55376
JR
89622009-06-03 Jason Rumney <jasonr@gnu.org>
8963
8964 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8965 available. (Bug#3379)
8966
05129fbe
KH
89672009-05-29 Kenichi Handa <handa@m17n.org>
8968
1ac9108a
SM
8969 * coding.c (get_translation_table):
8970 Check Venable_character_translation.
05129fbe 8971
ec7709ba 89722009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8973
ec7709ba
JB
8974 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8975 (x_make_frame_visible): Move frame to front rather than calling
15891144 8976 ns_raise_frame().
ec7709ba 8977 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8978 isn't key window.
ec7709ba 8979 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8980 drawRect may be called by NSView even if the frame is hidden.
8981
ec7709ba
JB
8982 * nsfns.m (Fx_create_frame): Follow other ports in
8983 determining visibility; default to t. Ensure async_visible is set.
15891144 8984
21f73755
EZ
89852009-05-23 Eli Zaretskii <eliz@gnu.org>
8986
8987 * dired.c (Ffile_attributes): Doc fix.
8988
34001e41
CY
89892009-05-22 Chong Yidong <cyd@stupidchicken.com>
8990
8991 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8992
46306a17
SM
89932009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8994
8995 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8996 and xfont_scratch_props.
8997 (syms_of_xfont): Do it here instead.
8998 (xfont_find_ccl_program): Delete, unused.
8999 (xfont_open): Delete unused var `i'.
9000
ef6e0694
KH
90012009-05-21 Kenichi Handa <handa@m17n.org>
9002
9003 * fontset.c (Qlatin): Don't make it static.
9004
46306a17
SM
9005 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9006 New functions.
ef6e0694
KH
9007 (xfont_scripts_cache, xfont_scratch_props): New variables.
9008 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9009 (xfont_list_pattern): Argument changed. Callers changed.
9010 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9011 (xfont_list): Don't reject a font spec with :script property.
9012 (xfont_has_char): Fix setting of encoding.
9013 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9014 xfont_scratch_props.
9015
90162009-05-19 Kenichi Handa <handa@m17n.org>
9017
46306a17 9018 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9019 Callers changed.
9020
90212009-05-18 Kenichi Handa <handa@m17n.org>
9022
9023 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9024
ac71ced7
SM
90252009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9026
9027 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9028 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9029
1c6d1051
YM
90302009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9031
9032 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9033 (x_delete_terminal): Dissociate resource database from display and
9034 then call XrmDestroyDatabase before closing display.
9035
9b9b779c
AR
90362009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9037
9038 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9039 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9040 whether selected frame is viable before raising it (based on patch
9041 by David Reitter), and improve commentary.
9042 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9043
cccd42d5
KH
90442009-05-15 Kenichi Handa <handa@m17n.org>
9045
9046 * font.c (Ffont_spec): Check arguments.
9047
337fbd17
CY
90482009-05-14 Chong Yidong <cyd@stupidchicken.com>
9049
9050 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9051 weight when testing attributes (Bug#3282).
9052
47a6002f
JD
90532009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9054
9055 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9056 what we expect to get in the next ConfigureNotify event.
9057
9cb363db
YM
9058 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9059 before Xft one (Bug#1696).
9060
b9126609
CY
90612009-05-07 David Reitter <david.reitter@gmail.com>
9062
9063 * nsfns.m (Fx_display_planes): Compute bitplanes using
9064 NSBitsPerPixelFromDepth (Bug#3207).
9065
27a69fd9
CY
90662009-05-10 Chong Yidong <cyd@stupidchicken.com>
9067
9068 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9069
00f37552
TTN
90702009-05-10 Ulrich Mueller <ulm@gentoo.org>
9071
9072 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9073
2d82a920
DR
90742009-05-07 David Reitter <david.reitter@gmail.com>
9075
ec7709ba
JB
9076 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9077 Respect mouse face background.
2d82a920 9078
46b0d52d
DR
90792009-05-07 David Reitter <david.reitter@gmail.com>
9080
ec7709ba
JB
9081 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9082 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9083 in ns_update_begin and ns_update_end.
9084
ce1b23bb
SM
90852009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9086
5996e1b7
SM
9087 * nsfns.m (ns_get_screen): Rewrite.
9088 Don't presume selected-frame is of type `ns'.
9089
ba98e3a0
SM
9090 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9091 all drivers.
9092
ce1b23bb
SM
9093 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9094
bcda200f
YM
90952009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9096
9097 * keyboard.h (add_user_signal): Fix typo in extern.
9098
9099 * lisp.h (add_user_signal): Remove extern.
9100
9101 * unexelf.c (unexec): Consider a section to precede the .bss section
9102 if its addresses overlap that of .bss.
9103 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9104 instead of dumping process.
9105
864660a2
SM
91062009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9107
9108 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9109
50da4e56
SM
91102009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9111
9112 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9113
51520a1a
DN
91142009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9115
9116 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9117 any statements.
9118
409ea3a1
AS
91192009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9120
59c4c60f
AS
9121 * process.c (read_process_output): Make sure the current buffer is
9122 always restored.
9123
409ea3a1
AS
9124 * coding.c (record_conversion_result): Don't modify
9125 Vlast_code_conversion_error for successful result.
9126 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9127
56f00ed2
KH
91282009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9129
9130 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9131 (load_charset_map): Remove unnecessary code.
56f00ed2 9132
4491c9d2
DR
91332009-04-30 David Reitter <david.reitter@gmail.com>
9134
35f5b128 9135 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9136 through f24.
9137
6970f632
CY
91382009-04-30 Chong Yidong <cyd@stupidchicken.com>
9139
9140 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9141
9142 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9143 face_at_buffer_position.
9144 (face_before_or_after_it_pos, get_next_display_element)
9145 (note_mouse_highlight): Update face_at_buffer_position call.
9146
9147 * term.c (term_mouse_highlight):
9148 * msdos.c (IT_note_mouse_highlight):
9149 * fontset.c (Finternal_char_font):
35f5b128 9150 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9151
9152 * dispextern.h (face_at_buffer_position): Update prototype.
9153
0c616f63
KH
91542009-04-30 Kenichi Handa <handa@m17n.org>
9155
35f5b128 9156 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9157
ad3aaf33
AS
91582009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9159
9160 * callproc.c (Fcall_process): Fix GC protection. Make sure
9161 current buffer is always restored.
9162
c3c963a0
YM
91632009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9164
9165 * atimer.c (init_atimer): Also clear stopped_atimers.
9166
9167 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9168
7e3386cb
YM
9169 * process.c (create_process): Clean up merger residues of
9170 2008-07-17 change.
9171
91f68422
CY
91722009-04-29 Ulrich Mueller <ulm@gentoo.org>
9173
9174 * lread.c (Vread_circle): New variable.
9175 (read1): Disable recursive read if Vread_circle is nil.
9176
24b34550
KH
91772009-04-29 Kenichi Handa <handa@m17n.org>
9178
9179 * fontset.h (set_default_ascii_font): Delete extern.
9180
9181 * fontset.c (set_default_ascii_font): Delete this unused function.
9182
9183 * frame.c (x_set_font): When ARG is a font-object, check if the
9184 font-object matches with the ASCII font-spec of the frame's
9c358bda 9185 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9186
77bf07e1
AS
91872009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9188
9189 * fns.c (Flocale_info): Protect vector from GC during decoding.
9190
9191 * process.c (Fstart_process): Protect argv strings from GC during
9192 encoding.
9193
2c55aacf
AS
91942009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9195
9196 * sysdep.c: Include <ctype.h>.
9197
b892d3c9
DR
91982009-04-27 David Reitter <david.reitter@gmail.com>
9199
35f5b128 9200 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9201 Remove commented-out code.
9202
9d0644c4
JB
92032009-04-26 Johan Bockgård <bojohan@gnu.org>
9204
9205 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9206
b7053016
JR
92072009-04-25 Jason Rumney <jasonr@gnu.org>
9208
9209 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9210
4e8231f3
YM
92112009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9212
9213 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9214 Swap bytes in short integer if fringe bitmap width > 8.
9215
493dcf2c
KH
92162009-04-23 Kenichi Handa <handa@m17n.org>
9217
9218 * xfaces.c (Fx_list_fonts): If a font size is specified in
9219 PATTERN, set it in returned scalable fonts.
9220
401e9e57
CY
92212009-04-22 Chong Yidong <cyd@stupidchicken.com>
9222
708e05dc
CY
9223 * keyboard.c (Fset_input_meta_mode): Doc fix.
9224
9225 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9226
1ac9108a 9227 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9228
9229 * coding.c (Fterminal_coding_system): Doc fix.
9230
9231 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9232 (Fx_display_pixel_height, Fx_display_planes)
9233 (Fx_display_color_cells, Fx_server_max_request_size)
9234 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9235 (Fx_display_mm_height, Fx_display_mm_width)
9236 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9237 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9238 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9239 (check_x_display_info): Handle terminal objects instead of
9240 terminal ids.
9241
401e9e57
CY
9242 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9243 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9244 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9245 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9246
df80c7f0
KH
92472009-04-21 Kenichi Handa <handa@m17n.org>
9248
5a8f12af 9249 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9250 (font_score): Check AVGWIDTH too.
908567ef 9251
df80c7f0
KH
9252 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9253 worst case.
1ac9108a
SM
9254 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9255 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9256
705af33f
JR
92572009-04-19 Jason Rumney <jasonr@gnu.org>
9258
9259 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9260 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9261
9262 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9263 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9264 get_phys_cursor_geometry.
9265
b71ac3dd 9266 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9267 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9268 using get_phys_cursor_geometry.
9269
9270 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9271 correctly calculated.
9272
dc2933eb
JD
92732009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9274
1ac9108a
SM
9275 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9276 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9277 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9278 is deprecated.
9279
973e7849
AS
92802009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9281
9282 * font.c (font_put_frame_data): Use xfree instead of free.
9283
314d66f4
JB
92842009-04-17 Juanma Barranquero <lekktu@gmail.com>
9285
9286 * w32font.c (Qja, Qko): Remove declarations.
9287 (syms_of_w32font): Don't DEFSYM them.
9288
cf702558
CY
92892009-04-17 Chong Yidong <cyd@stupidchicken.com>
9290
9291 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9292
9293 * font.h (Qja, Qko): Extern them.
9294
9295 * ftfont.c (Qja, Qko): Remove declarations.
9296
9297 * xfont.c (Qja, Qko): Remove declarations.
9298
b50504f5
KH
92992009-04-17 Kenichi Handa <handa@m17n.org>
9300
bde25748
KH
9301 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9302 string from a vector to handle Latin-1 characters correctly.
9303
b50504f5
KH
9304 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9305 entity even if the cache hits.
9306
f4646fff
AS
93072009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9308
9309 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9310 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9311
e7deaab0
AS
9312 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9313 * lisp.h: Adjust prototypes.
9314
0a0e7d49
CY
93152009-04-16 Chong Yidong <cyd@stupidchicken.com>
9316
9317 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9318 change (Bug#3003).
9319
3c908a57
KH
93202009-04-16 Kenichi Handa <handa@m17n.org>
9321
1ac9108a 9322 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9323
9324 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9325 adstyle.
9326
9327 * ftfont.c (Qja, Qko): Don't make them static.
9328 (enum ftfont_cache_for): New enum.
9329 (fc_charset_table): Undo the previous change.
9330 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9331 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9332 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9333 non-scarable font, try to get AVERAGE_WIDTH.
9334 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9335 Change ft_face_cache from a list of a hash-table. Don't check
9336 `ja' and `ko' adstyle here.
9337 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9338 FTFONT_CACHE_FOR_CHARET.
9339 (ftfont_get_charset): Undo the previous change.
1ac9108a 9340 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9341 (ftfont_close): Likewise.
9342 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9343
9344 * font.c (font_sort_entites): Change the meaning of the arg
9345 BEST-ONLY. Don't optimize for VEC of lenght 1.
9346 (font_select_entity): Just return the value of font_sort_entites.
9347
9348 * xfaces.c (merge_face_vectors): Reflect font properties in
9349 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9350 font_clear_prop if a face attribute doesn't change.
9351
3c908a57
KH
9352 * charset.h (charset_ksc5601): Extern it.
9353
9354 * charset.c (charset_ksc5601): New variable.
9355 (Fdefine_charset_internal): Set charset_ksc5601.
9356 (init_charset_once): Initialize charset_ksc5601 to -1.
9357
d65859c3
DN
93582009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9359
9360 * fileio.c (history_delete_duplicates): Remove unused declaration.
9361
9362 * callint.c (history_delete_duplicates): New declaration.
9363 (Fcall_interactively): Remove command history duplicates when
9364 history_delete_duplicates is true.
9365
3ba010e5
EZ
93662009-04-14 Eli Zaretskii <eliz@gnu.org>
9367
9368 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9369
06f19b91
KH
93702009-04-14 Kenichi Handa <handa@m17n.org>
9371
9372 * font.c (Ffont_info): Fix docstring. Fix the second element of
9373 the returned value (bug#2949).
9374
2cce8bfc
CY
93752009-04-14 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9378
d156542d
KH
93792009-04-14 Kenichi Handa <handa@m17n.org>
9380
9381 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9382 encoding charset is ascii_compatible.
9383
9384 * charset.c (Fdefine_charset_internal): Make charset
9385 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9386 code_offset is 0, and covers all ASCII characters.
9387
86fa089e
SM
93882009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9389
9390 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9391 (ns_string_to_pasteboard_internal):
9392 * nsmenu.m (process_dialog):
9393 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9394 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9395 * lisp.h (Fx_load_color_file): Declare.
9396
a8a3728b
KH
93972009-04-13 Kenichi Handa <handa@m17n.org>
9398
1ac9108a 9399 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9400 (font_select_entity): Suppress the code to optimize for the same
9401 kind of fonts.
9402 (font_load_for_lface): Get a font that supports at least ASCII
9403 characters.
9404
9405 * ftfont.c (Qja, Qko): New variables.
9406 (fc_charset_table): Delete uniquifier data for iso8859-1.
9407 (ftfont_get_latin1_charset): New function.
9408 (get_adstyle_property): New function.
9409 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9410 bitmap fonts.
9411 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9412 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9413 `ko' or `ja'.
9414 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9415 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9416 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9417 property.
9418 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9419 (syms_of_ftfont): DEFSYM Qja and Qko.
9420
483670b5
KH
94212009-04-09 Kenichi Handa <handa@m17n.org>
9422
12b55765
KH
9423 * charset.c (map_charset_chars): For a charset of `superset'
9424 method, fix calculation of code range.
9425
483670b5
KH
9426 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9427 from the list of extra properties.
9428 (font_clear_prop): Be sure to delete `:name' font property.
9429
57d3b93b
KH
94302009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9431
b4b2c2ca
YM
9432 * dispnew.c (redraw_overlapping_rows): Fix detection of
9433 overlapping for topmost and bottommost rows.
9434
1ac9108a 9435 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9436
472c3609
JR
94372009-04-06 Jason Rumney <jasonr@gnu.org>
9438
9439 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9440
ab193662
KH
94412009-04-06 Kenichi Handa <handa@m17n.org>
9442
9443 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9444
9445 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9446
0c26f026
KH
94472009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9448
9449 * ftfont.c (ftfont_open): Fix checking of the return value of
9450 FT_Load_Char. Fix setting font->underline_thickness.
9451
e173bbce
CY
94522009-04-04 Chong Yidong <cyd@stupidchicken.com>
9453
9454 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9455 (Fterminal_parameters, Fterminal_parameter)
9456 (Fset_terminal_parameter): In doc string, refer to terminal
9457 objects rather than terminal ids.
9458
693a2698
EZ
94592009-04-04 Eli Zaretskii <eliz@gnu.org>
9460
9461 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9462 ret_lim_data. (Bug#2867)
9463
d5221487
CY
94642009-04-03 Chong Yidong <cyd@stupidchicken.com>
9465
9466 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9467 so they don't get wider than the window, matching 2006-01-23
9468 change to the partner function in xdisp.c (Bug#2800).
9469
223509a3
KH
94702009-04-03 Kenichi Handa <handa@m17n.org>
9471
9472 * print.c (print_object): Make each lowest sub_char_table start a
9473 new line (Bug#2866).
9474
74fcd0b1
KH
94752009-04-02 Kenichi Handa <handa@m17n.org>
9476
9477 * fontset.c (fontset_font): Record no-font when a fontset
9478 explicitly tells not to try another font-specs.
9479
c542407d
SM
94802009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9481
9482 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9483
e3869731
KH
94842009-03-30 Kenichi Handa <handa@m17n.org>
9485
d8d2f142
KH
9486 * fontset.c (fontset_from_font): Specify only registry in a
9487 font-spec for all characters supported by that registry.
9488
e3869731
KH
9489 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9490 even if HAVE_M17N_FLT is not defined.
9491
5da5f805
CY
94922009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9493
9494 * ftfont.c: Conditionalize prototyping and use of
9495 ftfont_variation_glyphs.
9496
ab226c50
SM
94972009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9498
9628fed7
SM
9499 * frame.c (delete_frame): Work around compiler bug.
9500
9501 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9502 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9503 Some more EMACS_INT.
9504 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9505
9506 * xdisp.c (dump_glyph): Fix typo.
9507
ae19ba7c
SM
9508 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9509 (adjust_markers_gap_motion, adjust_markers_for_delete)
9510 (adjust_markers_for_insert, adjust_point)
9511 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9512 (make_gap, copy_text, count_size_as_multibyte, insert)
9513 (insert_and_inherit, insert_before_markers)
9514 (insert_before_markers_and_inherit, insert_1)
9515 (count_combining_before, count_combining_after, insert_1_both)
9516 (insert_from_string, insert_from_string_before_markers)
9517 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9518 (insert_from_buffer_1, adjust_after_replace)
9519 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9520 (replace_range_2, del_range, del_range_1, del_range_byte)
9521 (del_range_both, del_range_2, modify_region)
9522 (prepare_to_modify_buffer, signal_before_change)
9523 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9524 for buffer positions and sizes.
9525 * lisp.h: Adjust prototypes accordingly.
9526
9527 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9528 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9529 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9530
ab226c50
SM
9531 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9532
46dfb8fb
JD
95332009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9534
9535 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9536 lines and columns so we keep the same pixel height and width.
9537
9538 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9539 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9540 (x_handle_net_wm_state): New function to update frame parameter
9541 fullscreen.
9542 (x_term_init): Initialize atoms for _NET_WM_STATE.
9543
9544 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9545
d347e494
SM
95462009-03-27 Kevin Ryde <user42@zip.com.au>
9547
9548 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9549 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9550 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9551 (Fgpm_mouse_stop): Pass that new parameter.
9552 * termhooks.h (close_gpm): Adjust prototype.
9553
84db11d6
SM
95542009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9555
c95a5008
SM
9556 * lisp.h (Fx_focus_frame): Declare.
9557
84db11d6
SM
9558 * callint.c (Fcall_interactively): For '^' just delegate the work to
9559 handle-shift-selection.
9560 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9561
0a1958d6
CY
95622009-03-24 Chong Yidong <cyd@stupidchicken.com>
9563
0bfdff23
CY
9564 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9565
0a1958d6
CY
9566 * data.c (Qinteractive_form): New variable.
9567 (Finteractive_form): Use it.
9568
9569 * eval.c (Fcommandp): Use Qinteractive_form.
9570
58aec0d6
JR
95712009-03-24 Jason Rumney <jasonr@gnu.org>
9572
9573 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9574 Calculate total size precisely. Decode environment variables
9575 before substituting. (Bug#38)
9576
553dd618
KH
95772009-03-24 Kenichi Handa <handa@m17n.org>
9578
9579 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9580 encoding (Bug#2722).
553dd618 9581
c39ea606
JD
95822009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9583
9584 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9585 that gdpy is set.
9586
bc9b2b5e
AM
95872009-03-22 Alan Mackenzie <acm@muc.de>
9588
9589 * callint.c (Finteractive): Clarify the doc string - even
9590 promptless elements need \n separators.
9591
9f995a76
JR
95922009-03-22 Jason Rumney <jasonr@gnu.org>
9593
9594 * w32term.c (syms_of_w32term): Doc fix for
9595 x-use-underline-position-properties.
9596
22749e9a
EZ
95972009-03-21 Eli Zaretskii <eliz@gnu.org>
9598
9599 * w32.c (getpwuid): Change argument type to unsigned.
9600 (struct w32_id): Change type of `rid' member to unsigned.
9601 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9602 argument ID to unsigned. All callers changed.
9603 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9604
e00553bf
EZ
96052009-03-20 Eli Zaretskii <eliz@gnu.org>
9606
9607 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9608 negative, produce a float value.
9609
9610 * dired.c (make_uid, make_gid): New functions.
9611 (Ffile_attributes): Use them to avoid negative UID and GID.
9612
f761d6b6
JB
96132009-03-20 Juanma Barranquero <lekktu@gmail.com>
9614
9615 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9616 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9617 Fix typos in docstrings.
9618
d507f8d7
KH
96192009-03-19 Kenichi Handa <handa@m17n.org>
9620
9621 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9622 changed, use font_load_for_lface to get a new font object.
9623 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9624
9625 * frame.c (x_set_font): Handle the case that ARG is a cons.
9626
c68845e0
GM
96272009-03-19 Glenn Morris <rgm@gnu.org>
9628
9629 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9630
bfa49dd1
CY
96312009-03-19 Chong Yidong <cyd@stupidchicken.com>
9632
9633 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9634
8458d4c1
KH
96352009-03-19 Kenichi Handa <handa@m17n.org>
9636
9637 * charset.c (load_charset_map_from_file): When a mapfile can't be
9638 loaded, signal an error.
9639
78e7d1fe
EZ
96402009-03-18 Eli Zaretskii <eliz@gnu.org>
9641
9642 * dired.c (Ffile_attributes): Make sure UID and GID are always
9643 positive, even if the value is too large for a positive EMACS_INT.
9644 Doc fix.
9645
9646 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9647
5da9fdfa
YM
96482009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9649
9650 * xmenu.c (xdialog_show): Move Fredisplay call ...
9651 (Fx_popup_dialog): ... here.
9652
7519c40d
SM
96532009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9654
9655 * dired.c (file_name_completion): Disable the first optimization just
9656 installed, since it is not implemented correctly.
9657
2cd298e2
SM
96582009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9659
9660 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9661 only if the entry can affect bestmatch.
2cd298e2
SM
9662 Stop the search early, as Ftry_completion already does.
9663
48d37adf
CY
96642009-03-17 Chong Yidong <cyd@stupidchicken.com>
9665
e10c9c93 9666 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9667
9286b16a
CY
96682009-03-15 Chong Yidong <cyd@stupidchicken.com>
9669
9670 * keyboard.c (parse_menu_item): Don't display remappings as menu
9671 equivalent bindings (Bug#788).
9672
f7b146dc
JR
96732009-03-15 Jason Rumney <jasonr@gnu.org>
9674
9675 * w32term.h (WM_EMACS_PAINT): New message.
9676 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9677 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9678 before passing to lisp thread. (Bug#950)
9679
f761d6b6 96802009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9681
d93f9575
CY
9682 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9683 variable as it was never reset.
9684 (ns_term_init): Remove initialization of Lisp-settable defaults
9685 and ns_expand_space.
9686 (-setPanelFromDefaultValues): Remove ns_expand_space.
9687 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9688 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9689 i.e. no additional spacing, similar to Carbon port.
9690
d93f9575
CY
9691 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9692 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9693
305018ec
JD
96942009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9695
9696 * sound.c (alsa_configure): Remove call to deprecated
9697 snd_pcm_sw_params_set_xfer_align.
9698
f761d6b6 96992009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9700
9701 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9702 after clicking in a detached tool bar.
9703 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9704
46e722a9
SM
97052009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9706
348db3dd
SM
9707 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9708 int/Lisp_Object mixup).
46e722a9 9709
a3d16f39
KH
97102009-03-13 Kenichi Handa <handa@m17n.org>
9711
9712 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9713 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9714 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9715 (set_fontset_font): Change ARG to a vector. Handle range_list in
9716 ARG correctly.
9717 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9718 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9719 the above change.
9720 (fontset_from_font): Fix previous change.
fe24f56a 9721 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9722 entry. If FONTSET is the default fontset, don't set the extra
9723 slot of the returning char-table.
9724
b066e6b6
JB
97252009-03-12 Juanma Barranquero <lekktu@gmail.com>
9726
9727 * nsfns.m (Fx_close_connection): Doc fix.
9728 (Fns_do_applescript): Reflow docstring.
9729 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9730 (Fx_display_pixel_width, Fx_display_pixel_height)
9731 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9732 Fix typos in docstrings.
9733 (Fns_set_alpha): Fix typos in error messages.
9734
d472514e 97352009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9736
d472514e 9737 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9738 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9739 were used for such events.
9740
d472514e
JB
9741 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9742 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9743
d472514e 9744 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9745 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9746
fb930676
KH
97472009-03-11 Kenichi Handa <handa@m17n.org>
9748
ff85581a
KH
9749 * font.h (font_open_by_spec): Extern it.
9750
c50b7e98
KH
9751 * font.c (font_open_by_spec): New function.
9752 (font_open_by_name): Use font_open_by_spec.
9753
fb930676
KH
9754 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9755 fontset of the frame.
9756
9757 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9758 modify the default font of frames that use this fontset.
9759 (num_auto_fontsets): New variable.
9760 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9761 name. Be sure to set FONTSET_ASCII to the correct font name.
9762 (update_auto_fontset_alist): New function.
9763
df4e8455
JB
97642009-03-11 Juanma Barranquero <lekktu@gmail.com>
9765
9766 * makefile.w32-in: Update dependencies.
9767
0a375797
AR
97682009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9769
9770 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9771
61313fa3
SM
97722009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9773
9774 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9775
b55103fb
CY
97762009-03-10 Chong Yidong <cyd@stupidchicken.com>
9777
9778 * lread.c (Feval_buffer): Doc fix.
9779
dde2559c
KH
97802009-03-09 Kenichi Handa <handa@m17n.org>
9781
9782 * charset.c (Qfile_name_handler_alist): Extern it.
9783 (load_charset_map_from_file): Temporarily bind
9784 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9785
df4e8455 97862009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9787
47f588bb
GM
9788 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9789 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9790
4ddf94bd
AR
97912009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9792
4c9bdfc2
AR
9793 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9794 (x_set_window_size): Change back to calculated method of setting
9795 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9796 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9797 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9798
fe41ae9e
AR
9799 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9800
4c9bdfc2
AR
9801 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9802 accelerator in parens under GNUstep.
9803
825d0875
KH
98042009-03-06 Kenichi Handa <handa@m17n.org>
9805
9806 These changes are to detect incorrect composition sequence without
f3b3be74 9807 looking ahead the source. (Bug#2370)
825d0875
KH
9808
9809 * coding.h: Include "composite.h".
9810 (enum compisition_state): New enum.
9811 (struct compisition_status): New struct.
9812 (struct iso_2022_spec): New member cmp_status.
9813 (struct emacs_mule_spec): New struct.
9814 (struct coding_system): New members ctext_extended_segment_len and
9815 embedded_utf_8. Change the union member
9816 spec.emacs_mule_full_support to spec.emacs_mule.
9817
9818 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9819 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9820 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9821 (ADD_COMPOSITION_DATA): New arg nbytes.
9822 (emacs_mule_char): New arg cmp_status.
9823 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9824 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9825 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9826 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9827 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9828 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9829 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9830 (EMACS_MULE_COMPOSITION_END): New macro.
9831 (emacs_mule_finish_composition): New function.
9832 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9833 (decode_coding_emacs_mule): Avoid long looking ahead while
9834 handling composition.
9835 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9836 (ENCODE_COMPOSITION_RULE): New macro.
9837 (finish_composition): New function.
9838 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9839 (DECODE_COMPOSITION_START): New implementation.
9840 (DECODE_COMPOSITION_END): Likewise.
9841 (STORE_COMPOSITION_RULE): New macro.
9842 (decode_coding_iso_2022): Avoid long looking ahead while handling
9843 composition, CTEXT extended segment, and embedded UTF-8.
9844 (setup_coding_system): For a coding of type iso-2022, reset
9845 CODING_ISO_EXTSEGMENT_LEN (coding) and
9846 CODING_ISO_EMBEDDED_UTF_8 (coding).
9847 (get_translation): Delete arguments last_block, from_nchars,
9848 to_nchars. Callers changed.
9849 (produce_chars): Don't modify charbuf. Adjusted for the change of
9850 get_translation.
98a326f7 9851 (produce_composition): Adjust for the new annotation sequence.
825d0875 9852 (handle_composition_annotation): Likewise.
98a326f7 9853 (consume_chars): Adjust for the change of get_translation.
825d0875 9854
ccbc4452
AR
98552009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9856
4ddf94bd 9857 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9858
988a7ddb
KH
98592009-03-05 Kenichi Handa <handa@m17n.org>
9860
9861 * font.c (font_select_entity): New function.
9862 (font_find_for_lface): Use font_select_entity to select a font.
9863
9864 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9865 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9866 font with C restriction.
9867
98a326f7 98682009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9869
be1bce46 9870 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9871
10ea2b82
JR
98722009-03-04 Jason Rumney <jasonr@gnu.org>
9873
2c93b248 9874 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9875 characters that have already been read. (Bug#2569)
2c93b248 9876
10ea2b82
JR
9877 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9878 Log an error message if check_image_size failed.
9879 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9880 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9881
71a0c011
EZ
98822009-03-02 Eli Zaretskii <eliz@gnu.org>
9883
9884 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9885 when decoding process output.
9886
2f63bba8
RS
98872009-03-01 Richard M Stallman <rms@gnu.org>
9888
9889 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9890
9891 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9892
0a9564cb
EZ
98932009-02-28 Eli Zaretskii <eliz@gnu.org>
9894
9895 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9896 (decode_coding_emacs_mule, decode_coding_iso_2022)
9897 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9898 (decode_coding_raw_text, decode_coding_charset)
9899 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9900 Honor inhibit-eol-conversion. (Bug #2186)
9901
449148b3
JR
99022009-02-28 Jason Rumney <jasonr@gnu.org>
9903
9904 * coding.c (detect_coding_charset): If not checking latin extra,
9905 fail on characters between 0x80 and 0xA0. (Bug#2354)
9906
a4aee864
EZ
99072009-02-28 Eli Zaretskii <eliz@gnu.org>
9908
9909 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9910 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9911
d88bee5a
GM
99122009-02-27 Glenn Morris <rgm@gnu.org>
9913
9914 * callint.c (Finteractive): Doc fix.
9915
a808f22d
KH
99162009-02-27 Kenichi Handa <handa@m17n.org>
9917
9918 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9919
caf8d60c
CY
99202009-02-27 Chong Yidong <cyd@stupidchicken.com>
9921
9922 * font.c (font_style_to_value): Set value for unknown symbols to
9923 100 instead of 255.
b61137ea
CY
9924 (weight_table, slant_table, width_table): Treat "unspecified" as
9925 the default value.
caf8d60c 9926
1a0de25c
JB
99272009-02-26 Juanma Barranquero <lekktu@gmail.com>
9928
9929 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9930
8fc45744
JB
99312009-02-25 Juanma Barranquero <lekktu@gmail.com>
9932
107bd7d1
JB
9933 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9934 error as soon as a recursive load is detected.
8fc45744 9935
f097e223
AR
99362009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9937
9938 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9939 before caching.
9940
8810a12f
KH
99412009-02-24 Kenichi Handa <handa@m17n.org>
9942
9943 * fontset.c (fontset_find_font): Fix the condition for checking
9944 unavailable font.
9945
2c7d1565
GM
99462009-02-24 Glenn Morris <rgm@gnu.org>
9947
9948 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9949 whitespace that confuses documentation.
9950
a20878b6
MB
99512009-02-23 Miles Bader <miles@gnu.org>
9952
9953 * process.c (Flist_system_processes, Fprocess_attributes)
9954 (syms_of_process): Rename `system-process-attributes' to
9955 `process-attributes'.
9956
b3b58c01
AS
99572009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9958
1b3b981b
AS
9959 * coding.h (struct coding_system): Make safe_charsets a pointer to
9960 unsigned char.
9961 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9962 being 255.
9963 (SAFE_CHARSET_P): Likewise.
9964 (setup_iso_safe_charsets): Properly setup safe_charsets.
9965 (Fdefine_coding_system_internal): Likewise.
9966 (setup_coding_system): Likewise. Remove unneeded casts.
9967 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9968 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9969 unneeded casts.
9970
b3b58c01
AS
9971 * insdel.c (del_range_2): Don't modify gap contents when called
9972 from decode_coding_object. (Bug#1809)
9973
0b6f228c
CY
99742009-02-21 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9977 Qfont_object.
9978 (Ftype_of): Recognize font objects.
9979
9980 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9981
9982 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9983 moved to data.c.
9984
52f8870b
AR
99852009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9986
9987 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9988 async_iconified. Based on a patch by Christian Lynbech
9989 <christian.lynbech@tieto.com>.
9990 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9991
7087d5e9
GM
99922009-02-20 Glenn Morris <rgm@gnu.org>
9993
9994 * syntax.c (Fskip_chars_forward): Fix doc typo.
9995
41d2ceef
CY
99962009-02-20 Chong Yidong <cyd@stupidchicken.com>
9997
9998 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9999
1a3b7ca6
CY
100002009-02-19 Chong Yidong <cyd@stupidchicken.com>
10001
10002 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10003
73cce38d
KH
100042009-02-19 Kenichi Handa <handa@m17n.org>
10005
10006 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10007 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10008
a51092ee
DN
100092009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10010
10011 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10012
c423ecca
KH
100132009-02-18 Kenichi Handa <handa@m17n.org>
10014
10015 * font.c (font_check_otf_features): Fix handling of `nil' element.
10016 (Ffont_spec): Describe :lang and :otf in the docstring.
10017
4c1958f4
AS
100182009-02-16 Andreas Schwab <schwab@suse.de>
10019
10020 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10021 string.
10022
5704f39a
KH
100232009-02-16 Kenichi Handa <handa@m17n.org>
10024
10025 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10026 (Bug#1723)
5704f39a 10027
8f0085aa
CY
100282009-02-14 Chong Yidong <cyd@stupidchicken.com>
10029
a057d86a 10030 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10031
10032 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10033 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10034
aff01dd9
EZ
100352009-02-14 Eli Zaretskii <eliz@gnu.org>
10036
10037 * msdos.c (MAX_SCREEN_BUF): New macro.
10038 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10039 Encode the entire run of glyphs sharing the same face, instead of
10040 doing that one glyph at a time (fixes a bug with displaying
10041 double-size characters).
10042
ba301db3
AR
100432009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10044
10045 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10046
10047 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10048 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10049 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10050
10051 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10052 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10053
51d861de
SM
100542009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10055
ac146f82 10056 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10057 invisible areas.
10058
7fed8996
JR
100592009-02-12 Jason Rumney <jasonr@gnu.org>
10060
631ea4fb
JR
10061 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10062 (add_font_entity_to_list): Call check_face_name even when family
10063 is unspecified.
10064
cb4a3e42
JR
10065 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10066 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10067 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10068
7fed8996 10069 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10070 raster fonts. (Bug#2219)
7fed8996 10071
895416e3
KH
100722009-02-12 Kenichi Handa <handa@m17n.org>
10073
10074 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10075 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10076 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10077 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10078 (find_automatic_composition): While looking forward and backward,
10079 check static composition. Fix where to stop looking forward.
10080 (composition_adjust_point): Fix checking of static composition.
10081 (Fcomposition_get_gstring): Pay attention to
1dacf998 10082 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10083
10084 * lisp.h (fast_looking_at): Extern it.
10085
10086 * search.c (fast_looking_at): New function.
10087
51d861de 10088 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10089 <struct glyph>.u.cmp.to.
10090 (append_composite_glyph): Likewise.
10091
51d861de 10092 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10093 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10094 composition.
51d861de 10095 (append_composite_glyph): Adjust for the change of
895416e3
KH
10096 <strcut glyph>.u.cmp.to.
10097
8510724d
JB
100982009-02-11 Juanma Barranquero <lekktu@gmail.com>
10099
10100 * casetab.c (init_casetab_once):
10101 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10102 * font.c (font_update_lface):
10103 * fontset.c (Fnew_fontset):
10104 * ftfont.c (ftfont_drive_otf):
10105 * xfont.c (xfont_open):
10106 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10107
294fa707
SM
101082009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10109
10110 * fileio.c (Fwrite_region): !NILP -> CONSP.
10111
b5bfebec
AS
101122009-02-10 Andreas Schwab <schwab@suse.de>
10113
10114 * process.c (send_process): Properly relocate pointer into data
adab88bd 10115 when using encoded data. (Bug#2272)
b5bfebec 10116
cb84a2be
KH
101172009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10118
10119 * coding.c (detect_coding_charset): Fix previous change.
10120
89e09428
JR
101212009-02-08 Jason Rumney <jasonr@gnu.org>
10122
10123 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10124 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10125
4470a277
AS
101262009-02-07 Andreas Schwab <schwab@suse.de>
10127
10128 * unexelf.c (unexec): Fix error message.
10129
3175b12a
AR
101302009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10131
10132 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10133 when modal window is active. (Bug #2152)
3175b12a
AR
10134 (applicationShouldTerminate:): Remove now-unneeded while loop
10135 around NSRunAlertPanel.
10136
10137 * nsmenu.m (popupSession): New file-global variable.
10138 (pop_down_menu): End the popupSession before closing dialog.
10139 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10140 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10141 don't query NSApp for events (just sleep instead).
10142
8434d0b8
EZ
101432009-02-07 Eli Zaretskii <eliz@gnu.org>
10144
51d861de
SM
10145 * coding.c (syms_of_coding) <translation-table-for-input>:
10146 Modify doc string to discourage use for character code unification.
8434d0b8 10147
aa82edfd
CY
101482009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10149
10150 * atimer.c (run_timers): Update pending_atimers.
10151
2d283c7c
CY
101522009-02-06 Chong Yidong <cyd@stupidchicken.com>
10153
eb306cab
CY
10154 * image.c (svg_load_image): Fix last change.
10155
2d283c7c
CY
10156 * xfns.c (Fx_create_frame): Signal an error if no font is
10157 found (Bug#2147).
10158
4d8e170e
JB
101592009-02-05 Juanma Barranquero <lekktu@gmail.com>
10160
10161 * character.c (syms_of_character) <script-representative-chars>:
10162 Fix typo in docstring.
10163
c96169a0
AR
101642009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10165
10166 * nsmenu.m (pop_down_menu): New function.
10167 (ns_popup_dialog): Call it on unwind.
10168 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10169 call timer_check() (Bug#2154).
10170 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10171 handling_signal is set.
10172 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10173
31fd7c5c 10174 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10175
10176 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10177
10178 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10179
51d861de
SM
10180 * keyboard.c (poll_for_input_1, handle_async_input):
10181 Set handling_signal under HAVE_NS.
c96169a0 10182
aacd8ba1
GM
101832009-02-04 Glenn Morris <rgm@gnu.org>
10184
10185 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10186
4cb75c4b
KH
101872009-02-04 Kenichi Handa <handa@m17n.org>
10188
10189 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10190
10191 * charset.c (Fchar_charset): New optional arg restriction.
10192
10193 * coding.h (coding_system_charset_list): Extern it.
10194
10195 * coding.c (coding_system_charset_list): New function.
10196
10197 * composite.c: Include coding.h and termhooks.h.
10198 (composition_gstring_p): Fix for the terminal case.
10199 (composition_gstring_width): Likewise.
10200 (fill_gstring_body): Likewise.
10201 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10202 the frame.
10203 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10204 is within a composition.
867d4bb3 10205 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10206
10207 * term.c (encode_terminal_code): Fix handling of composition.
10208 (produce_composite_glyph): For static composition, get pixel_width
10209 from struct composition.
10210
826ba17e
AS
102112009-02-02 Andreas Schwab <schwab@suse.de>
10212
10213 * unexelf.c (unexec): Handle unaligned bss offset.
10214
8ad093db
AR
102152009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10216
10217 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10218 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10219
8ad093db
AR
10220 * keyboard.c (handle_interrupt): Don't call
10221 quit_throw_to_read_char() under NS.
d0a76a6e 10222
8ad093db
AR
10223 * blockinput.h: Remove NS-specific code.
10224
4d18a7a2
DN
102252009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10226
db878925
DN
10227 * dispnew.c (window_change_signal): Don't try to get the size of a
10228 suspended tty frame.
10229 * term.c (Fresume_tty): Resize if the size has changed while the
10230 tty was suspended.
10231
4d18a7a2
DN
10232 * alloc.c (mark_stack): Properly conditionalize previous change.
10233
8984df7c
JB
102342009-01-30 Juanma Barranquero <lekktu@gmail.com>
10235
10236 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10237 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10238 Remove; this code is not used on Windows.
10239
75f4f1ac
EZ
102402009-01-30 Eli Zaretskii <eliz@gnu.org>
10241
10242 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10243 EOLs that also has stray ^M characters.
10244
07a1e794
JB
102452009-01-30 Juanma Barranquero <lekktu@gmail.com>
10246
10247 * atimer.c (run_timers, alarm_signal_handler):
10248 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10249 * w32inevt.c (w32_console_read_socket):
10250 * w32term.c (w32_read_socket):
10251 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10252
a8b11cc9
CY
102532009-01-30 Chong Yidong <cyd@stupidchicken.com>
10254
10255 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10256 Initialize it as a relative filename pattern.
10257 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10258 (Fcall_process_region): Simplify temp file creation using
10259 temporary-file-directory.
10260
c279587b
EZ
102612009-01-29 Eli Zaretskii <eliz@gnu.org>
10262
10263 * msdos.c: Rename pending_signals to msdos_pending_signals.
10264 (sig_suspender, sigprocmask): Adjust.
10265
a8fe3242
CY
102662009-01-29 Chong Yidong <cyd@stupidchicken.com>
10267
10268 * keyboard.c (pending_signals): New var.
10269 (poll_for_input, input_available_signal, init_keyboard): Set it.
10270 (process_pending_signals): New function.
10271
10272 * lisp.h (QUIT): Check pending_signals instead of
10273 interrupt_input_pending. Use process_pending_signals.
10274
51d861de 10275 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10276
51d861de 10277 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10278
10279 * sysdep.c (emacs_write): Use process_pending_signals.
10280
10281 * xterm.c (XTread_socket): Update pending_signals.
10282
10283 * w32term.c (w32_read_socket): Update pending_signals.
10284
10285 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10286
6570a1c4
KH
102872009-01-29 Kenichi Handa <handa@m17n.org>
10288
10289 * xftfont.c (xftfont_has_char): New function.
10290 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10291
d72a4afa
AR
102922009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10293
10294 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10295 under GNUstep.
10296 (ns_query_color): New declaration.
10297
10298 * nsterm.m (ns_confirm_quit): New variable.
10299 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10300 (EmacsApp-applicationShouldTerminate:): Use it.
10301 (EmacsPrefsController): Let user set it.
10302 (ns_query_color): New function.
10303 (ns_defined_color): Use it.
10304 (ns_initialize): Drop.
10305 (ns_term_init): Add two lines from ns_initialize(), and set
10306 input_interrupt_mode to nil.
10307
10308 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10309 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10310
9fe78804
KH
103112009-01-28 Kenichi Handa <handa@m17n.org>
10312
10313 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10314 (fontset_get_font_group): Remember that no font-group is specified
10315 for C.
9fe78804 10316
fa57de36
CY
103172009-01-27 Chong Yidong <cyd@stupidchicken.com>
10318
930600e9
CY
10319 * fns.c (concat): Check for string overflow (bug#1787).
10320
fa57de36
CY
10321 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10322 Quadruple undo limits (bug#1501).
10323
7179ce7b
KH
103242009-01-27 Kenichi Handa <handa@m17n.org>
10325
10326 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10327 directly use GT_Get_Char_index.
10328
10329 * xftfont.c (struct xftfont_info): New member `index'.
10330
10331 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10332 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10333
5be8fcc0
CY
103342009-01-26 Kenichi Handa <handa@m17n.org>
10335
10336 * fontset.c (fontset_find_font): Fix handling of non-cons return
10337 value of fontset_get_font_group.
10338 (fontset_font): Revert last change.
10339
19ae3e61
JR
103402009-01-26 Jason Rumney <jasonr@gnu.org>
10341
10342 * w32font.c (w32font_list_internal): Return quickly if registry is
10343 unknown. Simplify final return.
10344 (add_font_entity_to_list): Break complex logic down into more
10345 manageable chunks. Move unknown registry check to
10346 w32font_list_internal.
10347
8612b71a
AR
103482009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10349
10350 Changes to remove Feval calls from GUI under NS.
10351
d8038940
JB
10352 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10353 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10354 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10355
10356 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10357 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10358 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10359 instead of NON_ASCII_KEYSTROKE_EVENT.
10360 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10361 (EmacsApp-applicationShouldTerminate:): Query user.
10362 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10363 instead of Feval.
10364
10365 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10366
10367 * keyboard.c (kbd_buffer_get_event): Check for it.
10368 (keys_of_keyboard): Define lispy keys for
10369 ns-put/unput-working-text.
10370
10371 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10372 versions.
10373 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10374
6288ae55
CY
103752009-01-25 Chong Yidong <cyd@stupidchicken.com>
10376
10377 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10378 setting current_buffer directly. (Bug#2044)
6288ae55 10379
289e7f8f
CY
103802009-01-24 Chong Yidong <cyd@stupidchicken.com>
10381
5ce87308 10382 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10383 any work. (Bug#1952, bug#1990).
5ce87308 10384
64cc3cf6 10385 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10386
b3243e6f
AR
103872009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10388
10389 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10390 (ns_no_defaults): New declaration.
10391 (main): Use it.
e0d2e69a 10392
d900b2af 10393 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10394
d900b2af 10395 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10396
d900b2af
AR
10397 * nsterm.m (ns_no_defaults): New variable.
10398 (ns_initialize): Don't read defaults when ns_no_defaults.
10399 (EmacsView-readSelectionFromPasteboard:)
10400 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10401 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10402 (ns_dumpglyphs_stretch): New function.
10403 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10404 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10405
e0d2e69a
AR
10406 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10407
3ac71f5d
CY
104082009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10409
10410 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10411 call for Sparc64.
10412
3fe53a83
AR
104132009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10414
10415 * nsfns.m:
10416 * nsgui.h:
10417 * nsmenu.m:
10418 * nsselect.m:
10419 * nsterm.h:
10420 * nsterm.m: Remove '23' comments that indicated code added during
10421 update from emacs-20 -> emacs-23.
10422
10f87c6f 104232009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10424
10425 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10426 ns_alternate_modifier. (Bug#1217)
a3b53a85 10427
c7cef62d
AR
10428 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10429 Display all shortcuts, including those w/o super modifier.
10430
575fb8bd
AR
10431 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10432
918b848b
CY
104332009-01-22 Chong Yidong <cyd@stupidchicken.com>
10434
10435 * fileio.c (Vwrite_region_post_annotation_function)
10436 (Vwrite_region_annotation_buffers): New vars.
10437 (build_annotations_unwind): Just reset
10438 Vwrite_region_annotation_buffers.
10439 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10440 Call write-region-post-annotation-function.
10441 (build_annotations): Add to Vwrite_region_annotation_buffers if
10442 buffer changes.
10443
a39e2539
AR
104442009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10445
10446 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10447 Tiger.
51d861de
SM
10448 * nsfns.m (ns_do_applescript):
10449 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10450
35ed44db
AR
104512009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10452
10453 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10454
cbe0b5bf
AR
104552009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10456
10457 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10458
6049d3a0
AR
10459 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10460
10461 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10462 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10463 handle Ctrl-tab. (Bug#1841)
10464 (ns_get_color): Use unsigned long long for scanned hex string value.
10465 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10466 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10467 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10468 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10469 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10470 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10471 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10472
d3810c21 10473 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10474 DPI. (Bug#1316)
d3810c21
AR
10475 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10476 values in onTiger section.
4c7077c3 10477
e301e634
CY
104782009-01-19 Chong Yidong <cyd@stupidchicken.com>
10479
7f82490b
CY
10480 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10481 Check return value of font_spec_from_name.
64cc3cf6 10482 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10483
10484 * font.c (font_spec_from_name): Return Qnil if font name could not
10485 be parsed.
10486 (font_parse_name): Treat a `?' character as part of an XLFD.
10487
e301e634
CY
10488 * fns.c (Fsubstring): Doc fix.
10489
1c0db158
KH
104902009-01-19 Kenichi Handa <handa@m17n.org>
10491
51d861de 10492 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10493 (ftfont_list): Likewise.
10494
acf20901
JB
104952009-01-18 Juanma Barranquero <lekktu@gmail.com>
10496
fff4e459
JB
10497 * dbusbind.c (Fdbus_register_signal):
10498 * process.c (conv_sockaddr_to_lisp):
10499 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10500
acf20901
JB
10501 * callproc.c (Fgetenv_internal): Doc fix.
10502
e7abcdfb
CY
105032009-01-16 Chong Yidong <cyd@stupidchicken.com>
10504
10505 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10506 it is not even used.
10507
b60861e6
GM
105082009-01-16 Glenn Morris <rgm@gnu.org>
10509
10510 * font.c (Ffont_variation_glyphs): Silence compiler.
10511
8db52afe
JB
105122009-01-15 Juanma Barranquero <lekktu@gmail.com>
10513
10514 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10515 Reported by David Robinow <drobinow@gmail.com>.
10516
4cddb209
KH
105172009-01-15 Kenichi Handa <handa@m17n.org>
10518
51d861de 10519 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10520
f247f67b
JR
105212009-01-14 Jason Rumney <jasonr@gnu.org>
10522
10523 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10524 never a fontset. (Bug#1562)
f247f67b 10525
f56a4450
KH
105262009-01-14 Kenichi Handa <handa@m17n.org>
10527
10528 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10529 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10530
4e99855e
CY
105312009-01-13 Chong Yidong <cyd@stupidchicken.com>
10532
10533 * font.c (font_clear_prop): If clearing the family, clear the font
10534 width index too.
10535
fff4e459 10536 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10537
24f01470
JB
105382009-01-12 Juanma Barranquero <lekktu@gmail.com>
10539
10540 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10541 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10542 functions, use sizeof.
10543
a41240a3
MR
105442009-01-12 Martin Rudalics <rudalics@gmx.at>
10545
10546 * keyboard.c (read_char): Fix case where last_nonmenu_event
10547 returned a bad value with submenus. (Bug#447)
10548
944636b8
CY
105492009-01-12 Chong Yidong <cyd@stupidchicken.com>
10550
10551 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10552 family, clear the font width index too.
10553
0dad7c6f
JR
105542009-01-11 Jason Rumney <jasonr@gnu.org>
10555
10556 * keyboard.c (cmd_error_internal): Exit when errors occur before
10557 frame creation and not in daemon mode. (Bug#1836)
10558
7c2363af
CY
105592009-01-10 Chong Yidong <cyd@stupidchicken.com>
10560
10561 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10562 of a display vector, backtrack.
10563 (try_window_reusing_current_matrix): Check glyph type before
10564 referencing charpos member.
10565
97b1b294
EZ
105662009-01-10 Eli Zaretskii <eliz@gnu.org>
10567
10568 Fix Bug #876:
10569
10570 * coding.c (inhibit_null_byte_detection): New variable.
10571 (detect_coding, detect_coding_system): Don't pay attention to null
10572 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10573 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10574 <inhibit-iso-escape-detection>: Doc fix.
10575
4624b6e3
JR
105762009-01-09 Jason Rumney <jasonr@gnu.org>
10577
10578 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10579 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10580 Only report Unicode Plane 2 fonts as unicode-sip.
10581
323b840c
CY
105822009-01-09 Chong Yidong <cyd@stupidchicken.com>
10583
51d861de
SM
10584 * xfaces.c (Fx_font_family_list): Delete function.
10585 Move compatibility version to faces.el.
323b840c 10586
51d861de 10587 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10588
eba7400d
MR
105892009-01-09 Martin Rudalics <rudalics@gmx.at>
10590
10591 * frame.c (x_set_frame_parameters): Remember requested value for
10592 fullscreen before it's reset by the parameter handler.
10593
4b09796d
GM
105942009-01-09 Glenn Morris <rgm@gnu.org>
10595
10596 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10597 (last_command_event): ... and update all users.
4b09796d
GM
10598 (last_input_char): For clarity, rename to...
10599 (last_input_event): ... and update all users.
10600 (last-command-char, last-input-char): Move to subr.el as aliases.
10601 * cmds.c, commands.h: Update for last_command_char rename.
10602
14ccea62
CY
106032009-01-08 Chong Yidong <cyd@stupidchicken.com>
10604
51d861de 10605 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10606
5f004711
JR
106072009-01-08 Jason Rumney <jasonr@gnu.org>
10608
10609 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10610 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10611 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10612 Don't declare.
fff4e459 10613 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10614 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10615
b71f6f73
KH
106162009-01-07 Kenichi Handa <handa@m17n.org>
10617
50b06221 10618 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10619 remember the coding system used for decoding in
50b06221
KH
10620 coding_system (Bug#1039).
10621
b71f6f73 10622 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10623 breaking the loop. (Bug#870)
b71f6f73
KH
10624 (decode_coding_utf_16, decode_coding_emacs_mule)
10625 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10626 (decode_coding_charset): Likewise.
10627
56f668f7
MR
106282009-01-05 Martin Rudalics <rudalics@gmx.at>
10629
10630 * frame.c (x_set_frame_parameters): Make sure height (width) get
10631 applied when fullwidth (fullheight) is set. (Bug#1522)
10632
5da9424d
JB
106332009-01-04 Juanma Barranquero <lekktu@gmail.com>
10634
10635 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10636 (utc_base): Declare as ULONGLONG, not long double.
10637 (convert_time_raw): Delete.
10638 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10639 (initialize_utc_base): New function.
10640 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10641 (convert_from_time_t): Use initialize_utc_base; compute result with
10642 64-bit arithmetic.
10643 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10644
c4605e09
EZ
106452009-01-03 Eli Zaretskii <eliz@gnu.org>
10646
9acef61c 10647 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10648 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10649 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10650 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10651 [!subprocesses]: Define.
10652 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10653 (Flist_system_processes, Fsystem_process_attributes)
10654 [!subprocesses]: Call list_system_processes and
10655 system_process_attributes instead of returning Qnil.
10656
9acef61c
JB
10657 * dosfns.c (system_process_attributes, list_system_processes):
10658 New functions.
c4605e09
EZ
10659
10660 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10661
10662 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10663 Don't use the default (no-op) implementation.
10664
8b7d0a16
JR
106652009-01-03 Jason Rumney <jasonr@gnu.org>
10666
a6d46bc1
JR
10667 * keyboard.c (parse_modifiers_uncached): Wheel events are
10668 clicks (bug#687).
10669
8b7d0a16
JR
10670 * w32term.c (x_query_colors, x_query_color): New functions.
10671
10672 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10673 (svg_load_image): Cast returned pointers from dynamically loaded
10674 functions. Eliminate W32 specific code.
10675
bfe11752
DN
106762009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10677
89e2438a
DN
10678 * nsfns.m (x_set_foreground_color, x_set_background_color)
10679 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10680 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10681 x_ prefix instead of ns_. Update references.
10682 (syms_of_nsfns): Add a FIXME comment.
10683
10684 * nsterm.m (x_set_cursor_type): New prototype.
10685 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10686
bfe11752
DN
10687 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10688 for Solaris instead of incorrectly providing Qutime and Qcutime.
10689
031da700
EZ
106902009-01-02 Eli Zaretskii <eliz@gnu.org>
10691
10692 * w32.c (process_times): Compute sum of utime and stime.
10693 (system_process_attributes): Add Qtime to the alist.
10694
10695 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10696 and add them to the alist.
10697
10698 * process.c (top level) <Qtime, Qctime>: New variables.
10699 (syms_of_process): staticpro them.
10700 (Fsystem_process_attributes): Add their documentation to the doc
10701 string.
10702
10703 * process.h: Declare Qtime and Qctime.
10704
df23bf08
JR
107052009-01-02 Jason Rumney <jasonr@gnu.org>
10706
9acef61c 10707 * image.c (Qgobject): New symbol.
df23bf08
JR
10708 (syms_of_image): Initialize it.
10709 (init_svg_functions): Load some functions from gobject library.
10710
5bbdf7aa
DN
107112009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10712
10713 * frame.c (make_terminal_frame): Remove redundant code and useless
10714 block.
10715
63136da6
AS
107162009-01-01 Andreas Schwab <schwab@suse.de>
10717
10718 * process.c (conv_sockaddr_to_lisp): Add workaround for
10719 getsockname bug on BSD.
10720
9ef69046
CY
107212009-01-01 Chong Yidong <cyd@stupidchicken.com>
10722
d6fafbe0
CY
10723 * xfns.c (x_create_tip_frame): Set border width of the X window.
10724
51d861de 10725 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10726
f9c34147
JR
107272009-01-01 Jason Rumney <jasonr@gnu.org>
10728
9acef61c 10729 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10730 Don't block input, as per earlier xterm.c changes.
10731
f5497e45
AR
107322008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10733
10734 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10735 (ns_appkit_version_int): New function.
10736 (x-server-version): Use ns_appkit_version_int and follow 21+
10737 convention of returning 3 integers.
10738
c19cab20
KH
107392008-12-30 Kenichi Handa <handa@m17n.org>
10740
10741 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10742 (CHAR_SURROGATE_PAIR_P): New macro.
10743
10744 * font.h (struct font_driver): New member get_variation_glyphs.
10745
9acef61c 10746 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10747 (Ffont_variation_glyphs): New function.
10748 (syms_of_font): Defsubr it.
10749
10750 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10751 ftfont_variation_glyphs.
10752 (setup_otf_gstring): New function.
10753 (ftfont_drive_otf): Use it.
10754 (ftfont_shape_by_flt): Handle variation selector.
10755 (ftfont_variation_glyphs): New function.
10756
28cd591f
MR
107572008-12-30 Martin Rudalics <rudalics@gmx.at>
10758
10759 * frame.c (Vemacs_iconified): Remove.
10760
7f714baf
JR
107612008-12-30 Jason Rumney <jasonr@gnu.org>
10762
10763 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10764 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10765
9d2d22ab
CY
107662008-12-30 Chong Yidong <cyd@stupidchicken.com>
10767
10768 * indent.c (Fvertical_motion): Don't advance iterator if we have
10769 reseated to the desired position.
10770
10771 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10772 checking for pos match.
10773
545312c2
KH
107742008-12-30 Kenichi Handa <handa@m17n.org>
10775
1ede3eb6
KH
10776 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10777 just get the low 8-bit of the code.
10778
545312c2
KH
10779 * font.c (font_intern_prop): Validate str as multibyte.
10780
bd7bbf29
DN
107812008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10782
31e0750e
DN
10783 * dispextern.h (struct face): Move lface and hash from the middle
10784 of bitfields.
10785
bd7bbf29
DN
10786 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10787
b5672e7c
DN
107882008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10789
10790 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10791 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10792 instead of intervals.h.
10793
d704470f
AS
107942008-12-26 Andreas Schwab <schwab@suse.de>
10795
10796 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10797 cons.
10798
54b33868
MR
107992008-12-26 Martin Rudalics <rudalics@gmx.at>
10800
10801 * textprop.c (Qminibuffer_prompt): New variable.
10802 (syms_of_textprop): Initialize it.
10803 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10804 in minibuffer-prompt face. (Bug#1662)
10805
40b615d6
JR
108062008-12-25 Jason Rumney <jasonr@gnu.org>
10807
10808 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10809
baae5c2d
JR
108102008-12-24 Jason Rumney <jasonr@gnu.org>
10811
10812 * ralloc.c (r_alloc_reset_variable): New function.
10813
10814 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10815 record of what points where. (Bug#716)
baae5c2d 10816
a9051c88
DN
108172008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10818
10819 * minibuf.c (read_minibuf): Follow the non-interactive case when
10820 running as a daemon, before detaching.
10821
8b146312
AS
108222008-12-22 Andreas Schwab <schwab@suse.de>
10823
10824 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10825 * gtkutil.c (free_widget_value): Use xfree instead of free.
10826
56f2de10
MR
108272008-12-22 Martin Rudalics <rudalics@gmx.at>
10828
10829 * frame.c (delete_frame): New function derived from
10830 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10831 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10832 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10833 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10834 * frame.h: Extern delete_frame.
10835 * window.c (window_loop):
10836 * terminal.c (delete_terminal):
10837 * xterm.c (x_connection_closed):
10838 * xfns.c (Fx_hide_tip):
9acef61c 10839 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10840
1fc200d6
JR
108412008-12-21 Jason Rumney <jasonr@gnu.org>
10842
10843 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10844 when character maps to .notdef character.
10845
5e252df2
SM
108462008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10847
10848 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10849
99b72cc4
JR
108502008-12-20 Jason Rumney <jasonr@gnu.org>
10851
10852 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10853 a graphical frame on Windows. (Bug#1325)
99b72cc4 10854
acc49a52
JD
108552008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10856
10857 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10858
6ea15123
CY
108592008-12-20 Chong Yidong <cyd@stupidchicken.com>
10860
10861 * minibuf.c (Fread_buffer): Doc fix.
10862
b2dab6c8
JR
108632008-12-20 Jason Rumney <jasonr@gnu.org>
10864
54ea0c87 10865 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10866 server name in UNC paths. (Bug#719)
54ea0c87 10867
b2dab6c8 10868 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10869 charbuf. (Bug#1035)
b2dab6c8 10870
6d1921be
DN
108712008-12-19 Daniel Engeler <engeler@gmail.com>
10872
10873 * sysdep.c (serial_configure): Fix typo.
10874
53934c98
DN
108752008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10876
10877 * sysdep.c: Include alloca.h.
f4f634e8
DN
10878 (system_process_attributes): Add implementation for Solaris.
10879
10880 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10881
06e111a6
DN
108822008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10883
10884 Reorganize implementation of Flist_system_processes and
10885 Fsystem_process_attributes. No functional changes.
10886 * process.c: Don't #include pwd.h, grp.h and limits.h.
10887 (Flist_system_processes): Just call list_system_processes.
10888 (Fsystem_process_attributes): Just call system_process_attributes.
10889 (procfs_list_system_processes, time_from_jiffies)
10890 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10891 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10892
10893 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10894 (list_system_processes): Rename from
10895 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10896 Provide a do nothing implementation.
10897 (system_process_attributes): Rename from
10898 procfs_list_system_processes.
10899 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10900 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10901
10902 * w32.c (list_system_processes): Rename from
10903 w32_list_system_processes.
10904 (system_process_attributes): Rename from
10905 w32_system_process_attributes.
10906
10907 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10908
10909 * process.h (w32_list_system_processes)
10910 (w32_system_process_attributes): Remove.
362654a6
JB
10911 (list_system_processes, system_process_attributes):
10912 New prototypes.
06e111a6 10913
6a705b23
KH
109142008-12-19 Kenichi Handa <handa@m17n.org>
10915
10916 * xfont.c (xfont_decode_coding_xlfd): New function.
10917 (xfont_encode_coding_xlfd): New function.
10918 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10919 (xfont_list): Decode and encode XLFD by iso-8859-1.
10920 (xfont_match): Likewise.
10921 (xfont_list_family): Likewise.
10922 (xfont_open): Likewise.
10923
d66c0241 10924 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10925 names are utf-8.
10926
d66c0241 10927 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10928 names are utf-8.
10929
5a130941
JD
109302008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10931
10932 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10933 changed.
bfd20325
JD
10934 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10935 clicked on a detached tool bar button.
5a130941 10936
fd95644b
DN
109372008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10938
10939 * emacs.c (main): Print and error and exit when no data is read
10940 from the pipe.
10941
e6eee6ae
JR
109422008-12-17 Jason Rumney <jasonr@gnu.org>
10943
10944 * w32font.c (w32font_has_char): Always return -1.
10945
a35dd56b
KH
109462008-12-16 Kenichi Handa <handa@m17n.org>
10947
10948 * font.c (font_open_entity): Fix previous change.
10949
0e3635c2
DN
109502008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10951
10952 * process.c: Include <limits.h>.
10953
d4835507 109542008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10955
10956 * font.c (font_update_drivers): Fix mistake in reconstructing the
10957 driver list.
10958
109592008-12-16 Chong Yidong <cyd@stupidchicken.com>
10960
10961 * font.c (font_clear_cache): Fix format of font cache data.
10962
e2cbc401
CY
109632008-12-15 Chong Yidong <cyd@stupidchicken.com>
10964
10965 * xftfont.c (xftfont_open): Free Xft font pattern if
10966 XftFontOpenPattern fails.
10967
10968 * xterm.c (x_free_frame_resources): Remove extraneous call to
10969 free_frame_faces.
10970
b131d535
CY
109712008-12-13 Chong Yidong <cyd@stupidchicken.com>
10972
10973 * xterm.c (x_delete_display): Move xim_close_dpy call to
10974 x_delete_terminal.
10975 (x_delete_terminal): Call xim_close_dpy.
10976
e6df5336
JR
109772008-12-13 Jason Rumney <jasonr@gnu.org>
10978
10979 * w32font.c (intern_font_name): New function.
10980 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10981 (w32font_open_internal, Fx_select_font): Decode font name.
10982 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10983
10984 * w32font.h (intern_font_name): Declare new function.
10985
10986 * w32uniscribe.c (add_opentype_font_name_to_list):
10987 Use intern_font_name.
10988
20d68145
CY
109892008-12-13 Chong Yidong <cyd@stupidchicken.com>
10990
9f2554de
CY
10991 * frame.c (Fdelete_frame): Call free_font_driver_list.
10992
3d9bec9a
CY
10993 * font.c (free_font_driver_list): Implement missing function.
10994
20d68145
CY
10995 * w32term.c (w32_term_init): Don't initialize the image cache
10996 here; it will be done in init_frame_faces.
10997
10998 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10999 (struct x_display_info): Remove unused member null_pixel. New
11000 member xim_callback_data.
11001
11002 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11003 (xim_initialize): Save pointer to callback function data.
11004 (xim_close_dpy): Free callback function data. Call XCloseIM,
11005 reverting 2008-11-04 change by David Smith.
11006 (x_term_init): Don't initialize the image cache here; it will be
11007 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11008 (x_delete_display): Free x_dnd_atoms member.
11009
96f9306b
KH
110102008-12-13 Kenichi Handa <handa@m17n.org>
11011
6dec9044
JB
11012 * font.c (font_rescale_ratio): Moved from xfaces.c.
11013 Argument type changed. Handle a font-spec too.
96f9306b 11014 (font_score): Check Vface_font_rescale_alist.
6dec9044 11015 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11016
11017 * xfaces.c (font_rescale_ratio): Moved to font.c.
11018
8d5b4964
CY
110192008-12-13 Chong Yidong <cyd@stupidchicken.com>
11020
11021 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11022
e6df5336
JR
110232008-12-12 Jason Rumney <jasonr@gnu.org>
11024
11025 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11026 Vwindow_system_version to the real w32 major version.
11027
97c6058a
DN
110282008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11029
11030 * term.c (init_tty): Move setting the terminal name before the
11031 potential user: maybe_fatal.
11032
ec4e88d7
CY
110332008-12-11 Chong Yidong <cyd@stupidchicken.com>
11034
d4835507
JB
11035 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11036 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11037
b4233ec9
JR
110382008-12-11 Jason Rumney <jasonr@gnu.org>
11039
8ec71e23 11040 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11041 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11042
b4233ec9 11043 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11044 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11045
011a0143
JB
110462008-12-11 Juanma Barranquero <lekktu@gmail.com>
11047
11048 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11049
3c309f34
JB
110502008-12-11 Juanma Barranquero <lekktu@gmail.com>
11051
11052 * process.c (Fsystem_process_attributes, syms_of_process):
11053 Fix typo in name of Ssystem_process_attributes.
11054 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11055
fedc6ab5
JB
110562008-12-11 Juanma Barranquero <lekktu@gmail.com>
11057
11058 * syntax.c (Fmodify_syntax_entry): Doc fix.
11059
ba3de0e8
JB
110602008-12-10 Juanma Barranquero <lekktu@gmail.com>
11061
11062 * font.c (Ffont_spec): Move usage to end of docstring.
11063
174f1c74
JR
110642008-12-10 Jason Rumney <jasonr@gnu.org>
11065
11066 * w32font.c (Qcham): New symbol.
11067 (font_supported_scripts): Add cham, and comments for other new
11068 scripts in bitfield from OpenType spec.
9d32f818
JR
11069 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11070 contain characters beyond the bmp.
174f1c74 11071
7b649478
KH
110722008-12-10 Kenichi Handa <handa@m17n.org>
11073
11074 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11075 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11076 Qunicode_sip.
11077
2133e2d1
JB
110782008-12-10 Juanma Barranquero <lekktu@gmail.com>
11079
11080 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11081 (Fcoding_system_put): Use QCdefault_char.
11082 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11083
9af886ee
CY
110842008-12-09 Chong Yidong <cyd@stupidchicken.com>
11085
74d819eb
CY
11086 * xftfont.c (syms_of_xftfont): Fix typo.
11087
4ccfa1c0 11088 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11089
7c19d3ae
DN
110902008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11091
11092 * emacs.c (main): Close daemon_pipe on exec.
11093
567826bb
CY
110942008-12-08 Chong Yidong <cyd@stupidchicken.com>
11095
11096 * termchar.h (struct tty): New members termcap_term_buffer and
11097 termcap_strings_buffer.
11098
11099 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11100 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11101 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11102 All callers changed.
11103 (init_tty): Store termcap data and string buffers in new struct
11104 tty members termcap_term_buffer and termcap_strings_buffer.
11105 (delete_tty): Free them.
4ccfa1c0 11106 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11107
aa96c42b
SZ
111082008-12-07 Seiji Zenitani <zenitani@mac.com>
11109
11110 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11111 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11112
b7e1d896
CY
111132008-12-06 Chong Yidong <cyd@stupidchicken.com>
11114
11115 * coding.c (make_conversion_work_buffer): Disable buffer
11116 modification hooks in the work buffer.
11117
b5ec91a5
EZ
111182008-12-05 Eli Zaretskii <eliz@gnu.org>
11119
11120 * process.c (procfs_system_process_attributes): If `nread' has a
11121 negative value, assign zero to it.
11122
a5d2a52b
CY
111232008-12-05 Chong Yidong <cyd@stupidchicken.com>
11124
68c5540b 11125 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11126
7bf1bb21
KH
111272008-12-05 Kenichi Handa <handa@m17n.org>
11128
11129 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11130 second character is a combining character.
11131
2fdc7d00
EZ
111322008-12-05 Eli Zaretskii <eliz@gnu.org>
11133
11134 * process.c (procfs_system_process_attributes): Don't use cmd,
11135 cmdsize, and q without initializing them first.
11136
bf6bfba8
JR
111372008-12-04 Jason Rumney <jasonr@gnu.org>
11138
11139 * w32font.c (w32font_draw): Initialize orig_clip before getting
11140 it, and delete it when finished.
11141
a3b1a468
DN
111422008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11143
11144 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11145 case when running as a daemon before detaching.
11146
8b8be8eb
JB
111472008-12-03 Juanma Barranquero <lekktu@gmail.com>
11148
805f2638 11149 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11150
b1bde622
KH
111512008-12-03 Kenichi Handa <handa@m17n.org>
11152
e500c47d
KH
11153 * font.c (font_at): Set `multibyte' at first.
11154
ca516334
KH
11155 * coding.c (decode_coding_charset): Check type of an element of
11156 vector VALIDS.
7bf1bb21 11157 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11158
4ccfa1c0 11159 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11160 (font_for_char): Likewise.
11161
1e5ecd37
CY
111622008-12-03 Chong Yidong <cyd@stupidchicken.com>
11163
d5b01609 11164 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11165 (font_update_lface): Handle fonts with corrupted size specs,
11166 i.e. non-int and non-float.
d5b01609 11167
11e3a6e4 11168 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11169 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11170 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11171
ab06788b
CY
11172 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11173
1e5ecd37 11174 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11175 underline_minimum_offset for underline position.
1e5ecd37 11176
63c125ab
DN
111772008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11178
11179 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11180
11181 * character.c (c_string_width): Specify the type for LEN.
11182
3a8406e1
KH
111832008-12-03 Kenichi Handa <handa@m17n.org>
11184
4ccfa1c0 11185 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11186 (decode_coding_utf_8): Likewise.
4ccfa1c0 11187 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11188 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11189
651df7d9
CY
111902008-12-02 Chong Yidong <cyd@stupidchicken.com>
11191
11192 * keyboard.c (make_lispy_position): Only use PT if the selected
11193 window is current.
11194
1f625c6c
AS
111952008-12-02 Andreas Schwab <schwab@suse.de>
11196
f7741ce9
AS
11197 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11198
1f625c6c
AS
11199 * doprnt.c (doprnt1): Fix size of charbuf.
11200
92bc2678
CY
112012008-12-02 Chong Yidong <cyd@stupidchicken.com>
11202
11203 * keyboard.c (timer_check): Revert last change.
11204
93b9e8cc
JB
112052008-12-02 Juanma Barranquero <lekktu@gmail.com>
11206
11207 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11208
fd7a37d5
JB
112092008-12-01 Juanma Barranquero <lekktu@gmail.com>
11210
11211 * makefile.w32-in: Update dependencies.
11212 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11213
c115043b
AS
112142008-12-01 Andreas Schwab <schwab@suse.de>
11215
11216 * font.c (register_font_driver): Use xmalloc.
11217 (font_put_frame_data): Likewise.
11218
f5668d2a
CY
112192008-12-01 Chong Yidong <cyd@stupidchicken.com>
11220
860d96be
CY
11221 * xfaces.c (realize_x_face): Make abort condition clearer.
11222
f5668d2a
CY
11223 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11224
379c17e7
CY
112252008-11-30 Chong Yidong <cyd@stupidchicken.com>
11226
11227 * keyboard.c (timer_check): After a timer runs, ensure that the
11228 selected window's buffer is current.
11229
35f36d65
JB
112302008-11-30 Juanma Barranquero <lekktu@gmail.com>
11231
f952c61c
JB
11232 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11233 It was accidentally restored by the Unicode merge.
11234
35f36d65
JB
11235 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11236
b23077df
JB
112372008-11-29 Juanma Barranquero <lekktu@gmail.com>
11238
11239 * w32proc.c: Include "coding.h".
11240 (Fw32_short_file_name): Encode filename passed to Windows API.
11241 (Fw32_long_file_name): Encode filename passed to Windows API and
11242 decode back the result. (Bug#1433)
11243
b8ebe9dd
KH
112442008-11-29 Kenichi Handa <handa@m17n.org>
11245
8cc53f96
KH
11246 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11247 not before accessing it.
11248
b8ebe9dd
KH
11249 * charset.c (Fdefine_charset_internal): After calculating
11250 min_char, max_char, and fastmap, copy the charset structure again.
11251 (encode_char): Fix the previous change.
11252
59bc82c0
SZ
112532008-11-28 Seiji Zenitani <zenitani@mac.com>
11254
11255 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11256
11257 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11258
11259 * nsterm.m (x_set_frame_alpha): New function.
11260
32247e3d
EZ
112612008-11-27 Eli Zaretskii <eliz@gnu.org>
11262
11263 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11264
b003e5ff
JB
112652008-11-27 Juanma Barranquero <lekktu@gmail.com>
11266
11267 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11268 pointer to check_face_name.
11269
708550f5
KH
112702008-11-27 Kenichi Handa <handa@m17n.org>
11271
11272 * category.h (SET_CATEGORY_SET): Call set_category_set.
11273 (set_category_set): Extern it.
11274
11275 * category.c (hash_get_category_set): New function.
11276 (Fmodify_category_entry): Adjusted for the change of
11277 char_table_ref_and_range. Call hash_get_category_set to get a
11278 category set to store in the table.
11279
11280 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11281 Funify_charset.
11282
2ae37cf0 11283 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11284 (DECODE_CHAR): Check if the decoder vector is ready.
11285 (ENCODE_CHAR): Check if the encoder char-table is ready.
11286 (maybe_unify_char): Extern it.
11287
11288 * charset.c (Vchar_unified_charset_table): Delete it.
11289 (inhibit_load_charset_map): New variable.
11290 (temp_charset_work): New variable.
11291 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11292 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11293 New macros.
11294 (load_charset_map): Meaning of control_flag changed. If
11295 inhibit_load_charset_map is nonzero, setup a table in
11296 temp_charset_work.
11297 (load_charset): New argument control_flag.
11298 (map_charset_for_dump): New function.
11299 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11300 map_charset_for_dump.
11301 (Fdefine_charset_internal): If the charset method is MAP, load
11302 mapping tables by calling load_charset.
11303 (Funify_charset): Don't load a mapping table but directly set
11304 Vchar_unify_table.
11305 (maybe_unify_char): New function.
11306 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11307 Handle the case of inhibit_load_charset_map being nonzero.
11308 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11309 Handle the case of inhibit_load_charset_map being nonzero.
11310 (Fclear_charset_maps): Just free temp_charset_work.
11311 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11312 variable.
11313
11314 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11315 change of char_table_ref_and_range.
11316 (char_table_ref_and_range): Change the meaning of argument FROM
11317 and TO. Now the caller must provide initial values for *FROM
11318 and *TO.
11319
11320 * fontset.c (fontset_add): Adjusted for the change of
11321 char_table_ref_and_range.
11322 (fontset_get_font_group): Likewise.
11323 (Ffontset_info): Likewise.
11324
11325 * keymap.c (describe_vector): Adjusted for the change of
11326 char_table_ref_and_range. For char-table, put boundary between
11327 non-ASCII and 8-bit characters.
11328
11329 * print.c (print_object): For bool-vector, delete unnecessary
11330 check of ASCII_BYTE_P.
11331
9196133b
JR
113322008-11-26 Jason Rumney <jasonr@gnu.org>
11333
11334 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11335 leading in font height. (Bug#879)
9196133b 11336
9f688acf
GM
113372008-11-26 Glenn Morris <rgm@gnu.org>
11338
11339 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11340 redefinition with ifdef. (Bug#1383)
11341
90d19aff
AR
113422008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11343
11344 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11345
4ccfa1c0 113462008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11347
11348 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11349 New EmacsView methods.
11350 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11351 Fixes bug #1048,1357,1414.
11352
113532008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11354
11355 Fix bug #1362.
11356 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11357 is not an indexed color.
11358 * nsterm.m (free_indexed_color): Add argument checking.
11359 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11360
e7d5ecb3
CY
113612008-11-24 Chong Yidong <cyd@stupidchicken.com>
11362
11363 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11364 Document confirm-after-completion value for
11365 minibuffer-completion-confirm.
11366
c285743c
JR
113672008-11-24 Jason Rumney <jasonr@gnu.org>
11368
11369 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11370 warning.
11371
b0857706
JR
113722008-11-23 Jason Rumney <jasonr@gnu.org>
11373
11374 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11375 restored before returning.
11376
11377 * w32font.c (check_face_name): New function.
11378 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11379 fonts. (Bug#642)
b0857706 11380
ee50ff07
MR
113812008-11-22 Martin Rudalics <rudalics@gmx.at>
11382
11383 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11384 confirm-nonexistent-file-or-buffer in doc-string.
11385
b8ff72fa
SM
113862008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11387
11388 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11389 Fix copy/paste typo. Add checks.
11390
cee53ed4
KH
113912008-11-21 Kenichi Handa <handa@m17n.org>
11392
11393 * coding.c (detect_coding_iso_2022): Reject invalid composition
11394 sequence.
11395 (DECODE_COMPOSITION_START): If the current source is the last
11396 block, and the current composition doesn't end, regard this
11397 sequence as invalid.
11398 (decode_coding_iso_2022): Handle invalid composition sequence.
11399
f6ef1e65
MR
114002008-11-20 Martin Rudalics <rudalics@gmx.at>
11401
11402 * window.c (coordinates_in_window): Don't return
11403 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11404 line when the window is not the rightmost one. (Bug#1372)
11405
e08b1705
MR
114062008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11407
11408 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11409
ad98e89f
EZ
114102008-11-15 Eli Zaretskii <eliz@gnu.org>
11411
11412 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11413 and bright_bg if noninteractive is non-zero.
11414
fb098a4b
CY
114152008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11416
11417 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11418 x_draw_glyph_string_background.
11419
11420 * w32term.c (x_draw_glyph_string): Likewise.
11421
ce952b6e
CY
114222008-11-15 Chong Yidong <cyd@stupidchicken.com>
11423
11424 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11425 the next glyph string once past the overhang width.
11426
11427 * nsterm.m (ns_draw_glyph_string): Likewise.
11428
11429 * w32term.c (x_draw_glyph_string): Likewise.
11430
26ea7079
CY
114312008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11432
11433 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11434 double file close.
11435
1c33c906
MR
114362008-11-14 Martin Rudalics <rudalics@gmx.at>
11437
11438 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11439 dedicated status of window before attempting to display another
11440 buffer in it.
11441
8fc29035
JB
114422008-11-14 Juanma Barranquero <lekktu@gmail.com>
11443
11444 * msdos.c (Fmsdos_long_file_names):
11445 (syms_of_msdos) <dos-unsupported-char-glyph>:
11446 * dosfns.c (Fint86): Fix typos in docstrings.
11447
55fb4286
EZ
114482008-11-14 Eli Zaretskii <eliz@gnu.org>
11449
11450 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11451
3fda0315
KY
114522008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11453
11454 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11455
7e849c17
CY
114562008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11457
11458 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11459
11460 * frame.h: Negative alpha means "don't touch".
11461
11462 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11463
11464 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11465
b9fd67bd
DN
114662008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11467
11468 * hftctl.c:
11469 * chpdef.h:
11470 * acldef.h: Remove files used only for systems no longer supported.
11471
11472 * Makefile.in: Fix .o alphabetical ordering.
11473 (hftctl.o): Remove dependency, file removed.
11474 (keymap.o, print.o): Depend on charset.h.
11475
d5998e03
KH
114762008-11-10 Kenichi Handa <handa@m17n.org>
11477
2ae37cf0 11478 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11479
be70e183
CY
114802008-11-08 Chong Yidong <cyd@stupidchicken.com>
11481
11482 * dired.c (file_name_completion): If completion_ignore_case is
11483 enabled, ignore case when checking completion-regexp-list.
11484
7cf94eac
EZ
114852008-11-08 Eli Zaretskii <eliz@gnu.org>
11486
11487 * vm-limit.c (get_lim_data): Fix last change.
11488
ee107a89
KH
114892008-11-08 Kenichi Handa <handa@m17n.org>
11490
11491 * character.c (Fget_byte): New function.
11492 (syms_of_character): Defsubr Fget_byte.
11493
5fd15622
CY
114942008-11-07 Chong Yidong <cyd@stupidchicken.com>
11495
11496 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11497 cursor position is valid after scrolling.
11498
13d62fad
JB
114992008-11-06 Juanma Barranquero <lekktu@gmail.com>
11500
11501 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11502
a1dd2936
GM
115032008-11-06 Glenn Morris <rgm@gnu.org>
11504
11505 * xterm.c (handle_one_xevent): Don't let popup menus cause
11506 mouse-autoselect-window related window switching. (Bug#1261)
11507
860cd236
CY
115082008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11509
11510 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11511
653a3150
AS
115122008-11-04 Andreas Schwab <schwab@suse.de>
11513
11514 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11515
870f5cac
CY
115162008-11-03 Chong Yidong <cyd@stupidchicken.com>
11517
11518 * xfns.c (Fx_wm_set_size_hint): New function.
11519
1e02f3cb
MR
115202008-11-03 Martin Rudalics <rudalics@gmx.at>
11521
11522 * textprop.c (Fprevious_single_char_property_change): Return 0
11523 when there's no change in a string. (Bug#1301)
11524
e630dfc6
MR
115252008-11-02 Martin Rudalics <rudalics@gmx.at>
11526
11527 * frame.c (do_switch_frame): New argument NORECORD passed to
11528 Fselect_window.
11529 (Fselect_frame): New argument NORECORD passed to
11530 do_switch_frame.
11531 (Fset_frame_selected_window): New argument NORECORD passed to
11532 Fselect_frame.
11533 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11534 in call of do_switch_frame.
11535 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11536 Handle NORECORD argument in call of Fselect_frame.
11537 * lisp.h (do_switch_frame, Fselect_frame)
11538 (Fset_frame_selected_window): Adjust declarations.
11539 * window.c (select_frame_norecord): New function.
11540 (run_window_configuration_change_hook): Use it and call
11541 Fselect_frame with NORECORD set.
11542 (Fselect_window): Pass NORECORD to Fselect_frame.
11543 (Fset_window_configuration): Handle NORECORD argument in call of
11544 do_switch_frame.
11545 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11546 Fset_frame_selected_window.
11547 * keyboard.c (command_loop_1): Handle NORECORD in call of
11548 Fselect_frame (currently ifdefd).
11549
9020b223
GM
115502008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11551
11552 * emacs.c (USAGE2): Untabify.
11553
793ffee8
SM
115542008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11555
11556 * composite.c (fill_gstring_header): Fix copy/paste typo.
11557
ab6d1131
MR
115582008-10-31 Martin Rudalics <rudalics@gmx.at>
11559
11560 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11561 (Fother_window): Rename argument and rewrite doc-string.
11562 (select_window_norecord): Fix return value. (Bug#1276)
11563
601a9cf1
JB
115642008-10-30 Juanma Barranquero <lekktu@gmail.com>
11565
11566 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11567 new frames overriding foreground for tooltips. Based on similar patch
11568 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11569
813b0652
CY
115702008-10-29 Chong Yidong <cyd@stupidchicken.com>
11571
11572 * emacs.c (Fdaemon_initialized): Initialize nfd.
11573
4414f58f
MR
115742008-10-29 Martin Rudalics <rudalics@gmx.at>
11575
11576 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11577 (Fwindow_text_height): Clarify doc-strings.
11578 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11579 doc-string of window-scroll-functions.
11580
ecdcaa09
RS
115812008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11582
11583 * category.c (syms_of_category): Fix typo in docstring.
11584
23fe745a
JB
115852008-10-28 Juanma Barranquero <lekktu@gmail.com>
11586
11587 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11588 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11589 Fix typos in docstrings.
11590
ff808935
DN
115912008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11592
11593 * emacs.c (daemon_pipe): Make non-static.
11594 (IS_DAEMON): Move definition ...
11595 * lisp.h (IS_DAEMON): ... here.
11596 (daemon_pipe): Declare.
11597 (is_daemon): Remove.
11598 * dispnew.c (init_display): Use IS_DAEMON.
11599
fc012771
SM
116002008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11601
11602 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11603 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11604
11605 * emacs.c (is_daemon): Remove.
11606 (main): Don't set is_daemon.
11607 (IS_DAEMON): New macro.
11608 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11609 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11610 parent exits.
11611 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11612
d8bdbe6f
CY
116132008-10-27 Chong Yidong <cyd@stupidchicken.com>
11614
d1a072bf
CY
11615 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11616 over-sized glyph, draw it with the default glyph width.
11617
e2e325aa
CY
11618 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11619 glyph, draw it with the default glyph width.
11620
11621 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11622 glyph, draw it with the default glyph width.
11623
d8bdbe6f
CY
11624 * xdisp.c (try_scrolling): When computing the distance from the
11625 scroll margin to PT, try moving some distance past the window
11626 bottom before giving up.
11627
7bfac547
MR
116282008-10-27 Martin Rudalics <rudalics@gmx.at>
11629
11630 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11631 (Fset_window_buffer): Explain in doc-string that a window can be
11632 "strongly" dedicated to its buffer.
11633
4ff029f6
DN
116342008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11635
11636 * emacs.c (daemon_name): New variable.
11637 (main): Deal with --daemon=SERVER_NAME.
11638 (Fdaemonp): Return a name if one was passed to --daemon.
11639
5790ef40
DN
116402008-10-26 Romain Francoise <romain@orebokech.com>
11641
f9bd0df9 11642 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11643 (main): Create a pipe before forking, make the parent exit only after
11644 the child has closed its end of the pipe. Move closing the
11645 descriptors ...
11646 (Fdaemon_initialized): ... here. New function.
11647
f5385255
SM
116482008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11649
4d632321
SM
11650 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11651 the previous unoptimized table.
11652
f5385255
SM
11653 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11654 the distinction between non-nil and non-t value of `dedicated'.
11655
6c56a0f3
CY
116562008-10-25 Chong Yidong <cyd@stupidchicken.com>
11657
11658 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11659 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11660
fec89261
MR
116612008-10-25 Martin Rudalics <rudalics@gmx.at>
11662
11663 * window.c (Fget_buffer_window, Fdelete_windows_on)
11664 (Freplace_buffer_in_windows): Make buffer argument optional and
11665 rename to buffer_or_name.
11666
34fcddd0
CY
116672008-10-24 Chong Yidong <cyd@stupidchicken.com>
11668
f5385255
SM
11669 * xdisp.c (handle_single_display_spec, handle_display_prop):
11670 Undo 2005-05-16 change.
34fcddd0
CY
11671 (handle_stop): Pop iterator if it's loaded with an empty string.
11672 (get_overlay_strings_1): Don't save iterator if it's loaded with
11673 an empty string (bug#1201).
11674
064766f2
KH
116752008-10-24 Kenichi Handa <handa@m17n.org>
11676
11677 * ftfont.c (ftfont_otf_features): Fix previous change.
11678 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11679 calling ftfont_otf_features.
11680
f9bd0df9 116812008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11682
11683 * font.c (font_match_p): Fix for the case that a vector of
11684 characters is in script-representative-chars.
11685
1dae9197
MA
116862008-10-24 Michael Albinus <michael.albinus@gmx.de>
11687
11688 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11689 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11690 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11691 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11692 macro. (Bug#1186)
1dae9197 11693
f9bd0df9 116942008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11695
11696 * s/sol2-10.h: New file.
11697
878a4584
JB
116982008-10-23 Juanma Barranquero <lekktu@gmail.com>
11699
11700 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11701 poor beast has survived 9+ years and the jump from xterm.c!).
11702
cd265ca6
MR
117032008-10-23 Martin Rudalics <rudalics@gmx.at>
11704
11705 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11706 Reword doc-string.
f5385255 11707 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11708
472a4dc9
JB
117092008-10-23 Juanma Barranquero <lekktu@gmail.com>
11710
11711 * character.c (syms_of_character) <script-representative-chars>:
11712 <unicode-category-table>: Doc fixes.
11713
159bd5a2
NF
117142008-10-23 Noah Friedman <friedman@splode.com>
11715
11716 * coding.c (make_conversion_work_buffer): Check that
11717 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11718 Fget_buffer_create.
11719
49f9c344
KH
117202008-10-23 Kenichi Handa <handa@m17n.org>
11721
11722 * font.c (font_add_log): Check the values of extra properties.
11723
12bb3111
MR
117242008-10-22 Martin Rudalics <rudalics@gmx.at>
11725
11726 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11727 Reword doc-string.
11728 (Fset_window_parameter): Use NILP.
11729 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11730 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11731
bbeb4e99
JB
117322008-10-22 Juanma Barranquero <lekktu@gmail.com>
11733
11734 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11735
117362008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11737
11738 * nsfns.m (ns_appkit_version): New function.
11739 (x-server-version): Use it.
11740 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11741 (x-server-vendor): Don't check_ns().
11742
11743 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11744
a9b555d3
JB
117452008-10-22 Juanma Barranquero <lekktu@gmail.com>
11746
11747 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11748 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11749
4626499f
KH
117502008-10-22 Kenichi Handa <handa@m17n.org>
11751
e3681952
KH
11752 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11753 scripts.
11754
4626499f
KH
11755 * category.c (word_boundary_p): Check scripts instead of charset.
11756 Handle nil value in word-separating-categories and
11757 word-combining-categories.
11758 (syms_of_category): Fix docstrings of word-separating-categories
11759 and word-combining-categories.
11760
1560f91a
EZ
117612008-10-21 Eli Zaretskii <eliz@gnu.org>
11762
11763 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11764 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11765
f4668441
MR
117662008-10-21 Martin Rudalics <rudalics@gmx.at>
11767
11768 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11769 Rename arg "buffer" to "buffer_or_name".
11770 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11771 it optional.
11772 (no_switch_window): Remove since the return value is not used.
a9b555d3 11773 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11774 Consider window as dedicated when Fwindow_dedicated_p returns a
11775 non-nil value.
11776 * lisp.h: Remove prototype for no_switch_window.
11777
fd75ddb2
JD
117782008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11779
11780 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11781 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11782
07295713
KH
117832008-10-21 Kenichi Handa <handa@m17n.org>
11784
11785 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11786 check Vlatin_extra_code_table.
11787
712adc82
EZ
117882008-10-20 Eli Zaretskii <eliz@gnu.org>
11789
11790 * fileio.c (Fset_file_modes): Doc fix.
11791
f549eb0b
MA
117922008-10-19 Michael Albinus <michael.albinus@gmx.de>
11793
11794 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11795 in arrays.
11796
aac0c6e3
MR
117972008-10-19 Martin Rudalics <rudalics@gmx.at>
11798
11799 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11800 Mention kill-buffer in doc-string.
11801 (Fset_window_buffer): Reinsert tem check removed in last commit.
11802 (Fenlarge_window, Fshrink_window): Have argument names and
11803 doc-string follow Elisp manual more closely.
11804
118052008-10-18 Eli Zaretskii <eliz@gnu.org>
11806
11807 * fileio.c (Fset_file_modes): Doc fix.
11808
118092008-10-18 Martin Rudalics <rudalics@gmx.at>
11810
11811 * window.c (Fwindow_width, Fset_window_start)
11812 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11813 (Fdelete_windows_on, Freplace_buffer_in_windows):
11814 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11815 (Fwindow_dedicated_p): Make window argument optional.
11816 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11817 (Fset_window_buffer): Respect any non-nil dedicated value for
11818 window. Rename "buffer" argument to "buffer_or_name".
11819
118202008-10-18 Ulrich Mueller <ulm@gentoo.org>
11821
11822 * m/sh3.h: New file, machine description for SuperH.
11823
118242008-10-17 Martin Rudalics <rudalics@gmx.at>
11825
11826 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11827
118282008-10-17 Kenichi Handa <handa@m17n.org>
11829
11830 * ftfont.c (ftfont_otf_features): Fix indexing
11831 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11832
118332008-10-16 Magnus Henoch <mange@freemail.hu>
11834
11835 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11836 (Fdbus_call_method_asynchronously): Ditto.
11837 This change makes C-h f display the argument list.
11838
118392008-10-16 Chong Yidong <cyd@stupidchicken.com>
11840
11841 * fileio.c (Fexpand_file_name): Doc fix.
11842
11843 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11844 of :foreground and :background equivalent to unspecified (20.x
11845 compatibility).
11846
118472008-10-15 Eli Zaretskii <eliz@gnu.org>
11848
11849 * buffer.c (syms_of_buffer): Doc fix.
11850
118512008-10-14 Kenichi Handa <handa@m17n.org>
11852
11853 * font.c (font_clear_prop): When clearing font width, clear the
11854 average width field too.
11855
118562008-10-12 Andreas Schwab <schwab@suse.de>
11857
11858 * ftfont.c (ftfont_shape_by_flt): Make static.
11859 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11860
11861 * font.c: Don't include <m17n-flt.h>.
11862
118632008-10-10 Eli Zaretskii <eliz@gnu.org>
11864
11865 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11866
118672008-10-09 Eli Zaretskii <eliz@gnu.org>
11868
11869 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11870 away code.
11871
118722008-10-09 Chong Yidong <cyd@stupidchicken.com>
11873
11874 * dispnew.c (update_text_area): Avoid looping due to large glyph
11875 overhangs (bug#1070).
11876
118772008-10-09 Kenichi Handa <handa@m17n.org>
11878
11879 * fontset.c (face_for_char): If face->fontset is negative, just
11880 return ascii_face.
11881
f5385255
SM
11882 * font.c (font_delete_unmatched): Fix previous change.
11883 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11884
118852008-10-09 Martin Rudalics <rudalics@gmx.at>
11886
11887 * frame.c (Fraise_frame): On text-only terminals select frame in
11888 order to make it visible. (Bug#1061)
11889
118902008-10-08 Chong Yidong <cyd@stupidchicken.com>
11891
11892 * fontset.c (fontset_find_font): Check frame validity.
11893
118942008-10-07 Chong Yidong <cyd@stupidchicken.com>
11895
a9b555d3 11896 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11897 (xg_display_close): Allow Emacs to close all displays (bug#985).
11898
118992008-10-06 Andreas Schwab <schwab@suse.de>
11900
f5385255 11901 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11902
119032008-10-06 Chong Yidong <cyd@stupidchicken.com>
11904
f5385255 11905 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11906
a9b555d3 11907 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11908
11909 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11910 during initialization.
11911
119122008-10-04 Eli Zaretskii <eliz@gnu.org>
11913
11914 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11915 whole thing on MSDOS frames as well as on a TTY.
11916
11917 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11918 well as for TTY.
11919 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11920 well as on a TTY.
11921
11922 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11923 as well as for TTY.
11924
11925 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11926
11927 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11928 MSDOS frames as well.
11929
119302008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11931
11932 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11933 correct arguments.
b71ac3dd 11934 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11935
119362008-10-03 Glenn Morris <rgm@gnu.org>
11937
11938 * emacs.c (USAGE1): Add --daemon.
11939
119402008-10-02 Eli Zaretskii <eliz@gnu.org>
11941
11942 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11943 100, so it's in percents as advertised.
11944
119452008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11946
11947 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11948 (ns_output.current_cursor, ns_output.desired_cursor)
11949 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11950 (FRAME_NEW_CURSOR_COLOR): Remove.
11951
11952 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11953 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11954 enumeration (HOLLOW_BOX_CURSOR, etc.).
11955
11956 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11957 (draw_window_cursor): Simplify code.
f5385255
SM
11958 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11959 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11960 updates manually.
a9b555d3
JB
11961 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11962 Use core Emacs cursor types.
aac0c6e3 11963
b8ff72fa 11964 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11965
119662008-10-02 Martin Rudalics <rudalics@gmx.at>
11967
11968 * process.c (Faccept_process_output): Fix doc-string.
11969
119702008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11971
11972 * gmalloc.c (__sbrk): Also define for uClibc.
11973
11974 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11975 for uClibc.
11976
119772008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11978
11979 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11980 styles.
11981 (nsfont_open): Reenable the cache.
11982
119832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11984
11985 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11986 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11987
119882008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11989
11990 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11991 a suspended terminal.
11992
119932008-09-30 Michael Albinus <michael.albinus@gmx.de>
11994
11995 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11996
119972008-09-30 Eli Zaretskii <eliz@gnu.org>
11998
11999 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12000
120012008-09-30 Chong Yidong <cyd@stupidchicken.com>
12002
12003 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12004 in a continued line coincides with a line beginning.
12005
120062008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12007
12008 * nsfont.m (nsfont_trait_distance): Fix bug.
12009 (nsfont_list): Return a list rather than a vector (syncs with Handa
12010 changes of 2008-05-14).
12011 (nsfont_open): Improve logging.
12012
120132008-09-29 Andreas Schwab <schwab@suse.de>
12014
12015 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12016
120172008-09-28 Martin Rudalics <rudalics@gmx.at>
12018
12019 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12020 name as char-resolve-modifiers.
12021 Reported by: Markus Triska <markus.triska@gmx.at>
12022
120232008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12024
12025 * dispnew.c (init_display): Return earlier when running as a daemon.
12026
120272008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12028
12029 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12030
120312008-09-27 Eli Zaretskii <eliz@gnu.org>
12032
12033 * composite.c (Fcomposition_get_gstring)
12034 (Fcompose_region_internal, Fcompose_string_internal)
12035 (Ffind_composition_internal): Doc fix.
12036 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12037 (syms_of_composite) <auto-composition-function>: Doc fix.
12038 (syms_of_composite) <composition-function-table>: Doc fix.
12039
120402008-09-25 Chong Yidong <cyd@stupidchicken.com>
12041
12042 * search.c (wordify): New argument for lax word-ends.
12043 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12044
120452008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12046
12047 * lisp.h (is_daemon): Declare.
12048 * dispnew.c (init_display): Do not try to initialize the terminal
12049 when running as a daemon.
12050
120512008-09-22 Chong Yidong <cyd@stupidchicken.com>
12052
12053 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12054 x_display_pixel_height.
12055
120562008-09-22 Martin Rudalics <rudalics@gmx.at>
12057
12058 * undo.c (record_point): Don't call Fundo_boundary for first
12059 change. (Bug#731)
12060
120612008-09-22 Juanma Barranquero <lekktu@gmail.com>
12062
12063 * emacs.c (Fdaemonp): Doc fix.
12064
120652008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12066
12067 * emacs.c (main): Place #ifdef in the proper place.
12068
120692008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12070
12071 * emacs.c (standard_args): Add --daemon.
12072 (main): Disconnect from the terminal when --daemon is passed.
12073 (is_daemon): New variable.
12074 (Fdaemonp): New function.
12075 (syms_of_emacs): Defsubr it.
12076
120772008-09-20 Chong Yidong <cyd@stupidchicken.com>
12078
12079 * xdisp.c (get_next_display_element): Handle string display
12080 correctly when checking for the end of a box run.
12081
120822008-09-20 Glenn Morris <rgm@gnu.org>
12083
12084 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12085 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12086 (Frename_file): Avoid copying to trash if a rename involves
12087 a delete. (Bug#964).
12088
120892008-09-20 Eli Zaretskii <eliz@gnu.org>
12090
12091 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12092 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12093 frames as well as termcap frames.
12094 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12095 get_named_tty.
12096
120972008-09-19 Eli Zaretskii <eliz@gnu.org>
12098
12099 * process.c (procfs_system_process_attributes): Fix cmdline in
12100 case /proc/PID/cmdline is empty.
12101
12102 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12103 x_display_pixel_height.
12104
121052008-09-19 Juanma Barranquero <lekktu@gmail.com>
12106
12107 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12108
12109 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12110 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12111
121122008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12113
12114 * dispextern.h (struct it): Move line_wrap away from the middle of
12115 bitfields. Move voffset in struct iterator_stack_entry after the
12116 bitfields. Move tab_width near after another short.
12117
121182008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12119
12120 * frame.h (struct frame): Move alpha from the middle of bitfields.
12121
12122 * window.h (struct window): Move frozen_window_start_p after the
12123 rest of the bitfields to reduce padding.
12124
121252008-09-18 Chong Yidong <cyd@stupidchicken.com>
12126
12127 * xterm.h (x_display_info): Remove `height' and `width' members.
12128
12129 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12130
12131 * w32term.h (w32_display_info): Remove `height', `width',
12132 `height_in', and `width_in' members.
12133
b8ff72fa
SM
12134 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12135 New functions.
aac0c6e3
MR
12136 (x_calc_absolute_position): Use them.
12137 (x_term_init): Omit removed `height' and `width' members.
12138
b8ff72fa
SM
12139 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12140 New functions.
aac0c6e3
MR
12141 (w32_read_socket, x_calc_absolute_position): Use them.
12142 (w32_initialize_display_info, w32_term_init): Omit removed members
12143 of w32_display_info.
12144
b8ff72fa
SM
12145 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12146 New functions.
12147 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12148
b8ff72fa
SM
12149 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12150 New functions.
aac0c6e3
MR
12151 (x_calc_absolute_position): Use them.
12152 (x_term_init): Omit removed `height' and `width' members.
12153
12154 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12155 (compute_tip_xy):
12156 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12157 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12158 x_display_pixel_width.
12159
121602008-09-18 Kenichi Handa <handa@m17n.org>
12161
12162 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12163 (composition_compute_stop_pos): Fix handling of static composition.
12164 (Fcomposition_get_gstring): Check FROM and TO at first.
12165
121662008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12167
46e722a9 12168 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12169 mixup (YAILOM).
12170
121712008-09-17 Chong Yidong <cyd@stupidchicken.com>
12172
12173 * indent.c (Fvertical_motion): Use position reported by iterator
12174 instead of PT for determining screen motion (bug#943).
12175
121762008-09-17 Romain Francoise <romain@orebokech.com>
12177
12178 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12179
121802008-09-17 Kenichi Handa <handa@m17n.org>
12181
12182 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12183
12184 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12185 if necessary.
12186
121872008-09-16 Kenichi Handa <handa@m17n.org>
12188
12189 * coding.c (make_conversion_work_buffer): Avoid calling
12190 Fget_buffer_create if it is not necessary.
12191
121922008-09-15 Martin Rudalics <rudalics@gmx.at>
12193
12194 * window.c (Fselect_window): Don't update window_select_count and
12195 use_time when norecord is not nil.
12196
121972008-09-14 Kenichi Handa <handa@m17n.org>
12198
12199 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12200 specpdl_ptr.
12201
122022008-09-12 Kenichi Handa <handa@m17n.org>
12203
12204 * indent.c (scan_for_column): Don't handle automatic composition
12205 if the current buffer is not associated with a window.
12206
12207 * composite.c (composition_reseat_it): If the current buffer is
12208 not associated with a window, ignore the automatic composition.
12209 (find_automatic_composition): Likewise.
12210
122112008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12212
12213 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12214 (Fgpm_mouse_stop): Use it.
12215 * termhooks.h (close_gpm): Declare.
12216 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12217 connection if Gpm_GetEvent fails.
12218
12219 * window.c (set_window_buffer): Always preserve current-buffer.
12220
122212008-09-12 Glenn Morris <rgm@gnu.org>
12222
12223 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12224
122252008-09-11 Glenn Morris <rgm@gnu.org>
12226
12227 * charset.c (charset-map-path): Doc fix.
12228
122292008-09-10 Kenichi Handa <handa@m17n.org>
12230
12231 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12232
12233 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12234 compose a grapheme cluster with the preceding base glyph.
12235
12236 * composite.c (composition_compute_stop_pos): Fix previous change.
12237 Reset cmp_it->id to -1 at first.
12238
122392008-09-10 Glenn Morris <rgm@gnu.org>
12240
12241 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12242
122432008-09-09 Chong Yidong <cyd@stupidchicken.com>
12244
12245 * keyboard.c (read_key_sequence): Reapply translation maps when
12246 switching keyboards.
12247
122482008-09-09 Kenichi Handa <handa@m17n.org>
12249
12250 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12251 characters.
12252
12253 * composite.c (FORWARD_CHAR): Fix calculation
12254 of (POSITION).pos_byte.
12255 (composition_compute_stop_pos): Limit the search of composition to
12256 at most 500 characters ahead. If we reach the limit or find a
12257 newline, set cmp_it->ch to -2 and return 0.
12258 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12259
122602008-09-08 Kenichi Handa <handa@m17n.org>
12261
12262 * indent.c (Fvertical_motion): Be sure to set
12263 it_overshoot_expected if it.cmp_it.id is non-negative.
12264
122652008-09-07 Andreas Schwab <schwab@suse.de>
12266
12267 * callproc.c (Fcall_process): Don't hold references to string data
12268 across garbage collection. Move initialisation of new_argv down
12269 to avoid compiler bug.
12270
122712008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12272
12273 * process.c (Fsystem_process_attributes): Doc fix.
12274
122752008-09-07 Chong Yidong <cyd@stupidchicken.com>
12276
12277 * callproc.c (Fcall_process): Canonicalize current directory name.
12278
12279 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12280 iterator advances to the next line if the current line ends in a
12281 continued tab.
12282
122832008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12284
12285 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12286 member to point to cmp_from.
12287
12288 * xdisp.c: Doc fix for references to gidx data member.
12289
122902008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12291
12292 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12293
122942008-09-07 Kenichi Handa <handa@m17n.org>
12295
12296 * composite.c (FORWARD_CHAR): Check STOP after
12297 incrementing (POSITION).pos.
12298
122992008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12300
12301 * process.c (Fsystem_process_attributes): Doc fix.
12302
123032008-09-06 Chong Yidong <cyd@stupidchicken.com>
12304
12305 * keyboard.c (Ftop_level): Doc fix.
12306
123072008-09-06 Eli Zaretskii <eliz@gnu.org>
12308
12309 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12310 minibuffer, don't let lower part of menu invade the echo area.
12311
12312 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12313 "char *q" to access menu text and advance through it. Revert the
12314 change that displayed ">" instead of ASCII character 0x10.
12315
123162008-09-05 Eli Zaretskii <eliz@gnu.org>
12317
12318 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12319 toggle boxes and radio buttons on MS-DOS as well.
12320
123212008-09-05 Kenichi Handa <handa@m17n.org>
12322
12323 * composite.c (autocmp_chars): Check lookback count.
12324 (composition_compute_stop_pos): Set cmp_it->lookback.
12325 (composition_reseat_it): Check lookback count.
12326 (struct position_record): New struct.
12327 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12328 (find_automatic_composition): New function.
12329 (composition_adjust_point): Use find_automatic_composition.
12330
12331 * dispextern.h (struct composition_it): New member lookback.
12332
123332008-09-02 Chong Yidong <cyd@stupidchicken.com>
12334
12335 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12336 if moving by a single line.
12337
123382008-09-02 Andreas Schwab <schwab@suse.de>
12339
12340 * xterm.c (x_delete_display): Fix merge error.
12341
12342 * fileio.c (Fexpand_file_name): Remove unused variables.
12343
123442008-09-02 Eli Zaretskii <eliz@gnu.org>
12345
12346 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12347 storage on all platforms, not just on DOS_NT.
12348
123492008-09-02 Jason Rumney <jasonr@gnu.org>
12350
b8ff72fa
SM
12351 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12352 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12353
123542008-09-01 Chong Yidong <cyd@stupidchicken.com>
12355
12356 * xfaces.c (Finternal_set_alternative_font_family_alist)
12357 (Finternal_set_alternative_font_registry_alist): Properly copy
12358 entire alist structure.
12359
123602008-09-01 Kenichi Handa <handa@m17n.org>
12361
d66c0241 12362 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12363 representative chars of the script is a vector.
d66c0241
JB
12364 (ftfont_list): Handle the case where the representative chars of
12365 the script is a vector.
aac0c6e3
MR
12366
12367 * character.c (syms_of_character): Docstring of
12368 script-representative-chars fixed.
12369
123702008-08-31 Eli Zaretskii <eliz@gnu.org>
12371
12372 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12373 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12374 the menu. Allocate larger buffer for `text', to account for
12375 possible ^C characters.
12376
123772008-08-31 Martin Rudalics <rudalics@gmx.at>
12378
12379 * xdisp.c (prepare_menu_bars): Don't call
12380 Vwindow_size_change_functions with arg Qt.
12381
123822008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12383
12384 * font.h (font_range):
12385 * fileio.c (report_file_error):
46e722a9
SM
12386 * composite.c (composition_update_it): Yet another int/Lisp_Object
12387 mixup (YAILOM).
aac0c6e3
MR
12388
123892008-08-30 Glenn Morris <rgm@gnu.org>
12390
12391 * data.c (Fmake_variable_frame_local): Doc fix.
12392
12393 * frame.c (Fmodify_frame_parameters): Doc fix.
12394
123952008-08-30 Eli Zaretskii <eliz@gnu.org>
12396
12397 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12398 needed by GetTokenInformation.
12399 (w32_system_process_attributes): Check return values of all system
12400 APIs.
12401
12402 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12403 only when the state changes.
12404 (IT_update_begin, IT_update_end): Add termscript trace.
12405
12406 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12407 clipboard is unavailable. Set dst to NULL if it doesn't point to
12408 malloc'ed data.
12409 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12410 passing random values to xfree.
12411
12412 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12413 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12414
124152008-08-29 Jason Rumney <jasonr@gnu.org>
12416
12417 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12418
124192008-08-29 Eli Zaretskii <eliz@gnu.org>
12420
12421 * composite.c (fill_gstring_body): Avoid compiler warnings.
12422
12423 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12424 LGLYPH_SET_CODE to avoid compiler warnings.
12425
2ae37cf0 12426 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12427
12428 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12429
12430 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12431 LGLYPH_SET_CODE.
12432
124332008-08-29 Kenichi Handa <handa@m17n.org>
12434
12435 * fileio.c (report_file_error): Don't downcase the first character
12436 of errstring if it is still unibyte.
12437
124382008-08-29 Kenichi Handa <handa@m17n.org>
12439
12440 These changes are to re-implement the automatic composition so
12441 that it doesn't use text properties.
12442
12443 * Makefile.in (ftfont.o): Depend on composite.h.
12444 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12445
12446 * character.h (Vunicode_category_table): Extern it.
12447
12448 * character.c (Vunicode_category_table): New variable.
12449 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12450
12451 * chartab.c (optimize_sub_char_table): Perform more greedy
12452 optimization.
12453
b8ff72fa
SM
12454 * composite.h (enum composition_method):
12455 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12456 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12457 (Vcomposition_function_table): Extern it.
12458 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12459 (composition_gstring_put_cache, composition_gstring_from_id)
12460 (composition_gstring_p, composition_gstring_width)
12461 (composition_compute_stop_pos, composition_reseat_it)
12462 (composition_update_it, composition_adjust_point): Extern them.
12463 (Fcomposition_get_gstring): EXFUN it.
12464
d66c0241 12465 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12466 (Vcomposition_function_table)
12467 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12468 (gstring_hash_table, gstring_work, gstring_work_headers):
12469 New variables.
aac0c6e3
MR
12470 (gstring_lookup_cache, composition_gstring_put_cache)
12471 (composition_gstring_from_id, composition_gstring_p)
12472 (composition_gstring_width, fill_gstring_header)
12473 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12474 (composition_reseat_it, composition_update_it)
b8ff72fa 12475 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12476 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12477 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12478 Defsubr composition_get_gstring.
aac0c6e3
MR
12479
12480 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12481 cmp_id.
12482 (struct glyph_string): Delete the member gidx. New members
12483 cmp_id, cmp_from, and cmp_to.
12484 (enum it_method): Delete GET_FROM_COMPOSITION.
12485 (struct composition_it): New struct.
12486 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12487 Delete c, len, cmp_id, cmp_len in u.comp.
12488
12489 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12490 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12491 (enum lglyph_indices): Likewise.
b8ff72fa 12492 (font_range): Adjust extern.
aac0c6e3
MR
12493 (font_fill_lglyph_metrics): Extern it.
12494
12495 * font.c (QCf): New variable.
12496 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12497 (font_prepare_composition): Delete this function.
12498 (font_range): Type and arguments changed.
12499 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12500 (font_fill_lglyph_metrics): New function.
b8ff72fa 12501 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12502 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12503 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12504 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12505
12506 * fontset.h (font_for_char): Extern it.
12507
12508 * fontset.c (font_for_char): New function.
12509
12510 * ftfont.c: Include composite.h.
12511 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12512 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12513
12514 * indent.c: Include composite.h and dispextern.h.
12515 (check_composition): Delete this function.
12516 (scan_for_column): Handle composition by
12517 composition_compute_stop_pos, composition_reseat_it, and
12518 composition_update_it.
12519 (compute_motion): Likewise.
12520 (Fvertical_motion): Fix checking of composition.
12521
12522 * keyboard.c (adjust_point_for_property): Check composition by
12523 composition_adjust_point.
12524
b8ff72fa 12525 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12526 struct glyph_string.
12527
b8ff72fa
SM
12528 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12529 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12530 struct glyph.
12531 (produce_composite_glyph): Likewise.
12532
b8ff72fa
SM
12533 * w32term.c (x_draw_composite_glyph_string_foreground):
12534 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12535 (x_draw_glyph_string): Likewise.
12536
12537 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12538 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12539
12540 * xdisp.c: Include font.h.
12541 (it_props): Delete the entry for Qauto_composed.
12542 (init_iterator): Initialize it->cmp_it.id to -1.
12543 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12544 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12545 (handle_auto_composed_prop): Delete it.
12546 (handle_composition_prop): Handle only static composition.
12547 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12548 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12549 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12550 (pop_it): Likewise.
12551 (get_next_element): Delete next_element_from_composition.
12552 (CHAR_COMPOSED_P): New macro.
12553 (get_next_display_element): For automatic composition, get a face
12554 from the font in the glyph-string.
12555 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12556 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12557 (next_element_from_string): Check if the character at the current
12558 position is composed by CHAR_COMPOSED_P.
12559 (next_element_from_buffer): Likewise.
d66c0241
JB
12560 (next_element_from_composition): Adjust for the change of struct it.
12561 Update it->cmp_it.
b8ff72fa
SM
12562 (dump_glyph): Adjust for the change of struct glyph.
12563 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12564 it and struct glyph. Don't handle automatic composition here.
12565 (fill_gstring_glyph_string): New function.
12566 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12567 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12568 (BUILD_GSTRING_GLYPH_STRING): New macro.
12569 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12570 automatic composition.
b8ff72fa 12571 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12572 struct glyph.
b8ff72fa 12573 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12574
b8ff72fa 12575 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12576 the change of struct glyph_string.
12577 (x_draw_glyph_string): Likewise.
12578
125792008-08-29 Glenn Morris <rgm@gnu.org>
12580
12581 * buffer.c (word-wrap): Doc fix.
12582 * xdisp.c (truncate-partial-width-windows): Doc fix.
12583 Increase default to 50.
12584
125852008-08-29 Chong Yidong <cyd@stupidchicken.com>
12586
12587 * xdisp.c (update_tool_bar_unwind): New function.
12588 (update_tool_bar): Temporarily set selected frame before building
12589 tool-bar items.
12590
125912008-08-28 Michael Albinus <michael.albinus@gmx.de>
12592
12593 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12594 snprintf, respectively.
12595 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12596
125972008-08-28 Chong Yidong <cyd@stupidchicken.com>
12598
12599 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12600 LDFLAGS to GNUstep CC invocation.
12601
126022008-08-27 Chong Yidong <cyd@stupidchicken.com>
12603
12604 * indent.c (Fvertical_motion): Revert last change. Handle the
12605 general case where we are moving forward, and PT spans multiple
12606 screen lines.
12607
12608 * eval.c (find_handler_clause): Temporarily increase
12609 max-lisp-eval-depth while printing the backtrace buffer, to
12610 guarantee that help-mode code can run.
12611
126122008-08-27 Eli Zaretskii <eliz@gnu.org>
12613
12614 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12615 colors under -rv.
12616 (IT_set_frame_parameters): Don't swap foreground and background
12617 colors if `(reverse . t)' is present in the frame properties.
12618 (internal_terminal_init): Call init_frame_faces only for the
12619 initial frame.
12620
126212008-08-27 Andreas Schwab <schwab@suse.de>
12622
12623 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12624
126252008-08-27 Andreas Schwab <schwab@suse.de>
12626
12627 * search.c (search_buffer): Set char_base to zero only at the end.
12628
126292008-08-27 Kenichi Handa <handa@m17n.org>
12630
b8ff72fa 12631 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12632
126332008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12634
12635 * xterm.c (x_term_init): Temporarily hide the partially
12636 initialized terminal while calling vendor-specific-keysyms.
12637
126382008-08-26 Eli Zaretskii <eliz@gnu.org>
12639
12640 * msdos.c (internal_terminal_init): Most initializations done only
12641 once, especially initial_screen_colors[] and termscript open.
12642
126432008-08-26 Chong Yidong <cyd@stupidchicken.com>
12644
12645 * eval.c (Fcondition_case): Doc fix.
12646
12647 * widgetprv.h (EmacsFramePart): Change font member to the new font
12648 struct.
12649
12650 * widget.c: Include character.h and font.h for XSETFONT.
12651 (setup_frame_gcs): Compute X font id from font struct, just once.
12652
126532008-08-26 Eli Zaretskii <eliz@gnu.org>
12654
12655 * term.c (get_named_tty): Fix last change.
12656
126572008-08-26 Chong Yidong <cyd@stupidchicken.com>
12658
12659 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12660 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12661
126622008-08-25 Eli Zaretskii <eliz@gnu.org>
12663
12664 * frame.c (do_switch_frame): Mark previously displayed frame as
12665 obscured for FRAME_MSDOS_P frames as well.
12666
126672008-08-24 Eli Zaretskii <eliz@gnu.org>
12668
12669 * frame.c (make_terminal_frame): Initialize f->terminal,
12670 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12671 Set the top frame to newly created frame.
12672 (Fmake_terminal_frame): Reuse the_only_display_info.
12673
12674 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12675 estimating available memory.
12676
b97439ce 126772008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12678
12679 * nsterm.m (ns_draw_window_cursor): Don't call
12680 NSDisableScreenUpdates and NSEnableScreenUpdates on
12681 non-NS_IMPL_COCOA systems.
12682
126832008-08-23 Andreas Schwab <schwab@suse.de>
12684
12685 * process.c (procfs_system_process_attributes): Fix use of
12686 uninitialized variables.
12687
126882008-08-23 Eli Zaretskii <eliz@gnu.org>
12689
12690 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12691
12692 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12693 calling tty-set-up-initial-frame-faces.
12694
b8ff72fa
SM
12695 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12696 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12697
12698 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12699 addition to output_termcap.
12700
12701 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12702
12703 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12704 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12705 highlight.
12706
12707 * process.c [!subprocesses]: Define QCname.
12708 (syms_of_process): Intern and staticpro it.
12709
12710 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12711 Adjust for changes in encoding/decoding routines.
12712 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12713 encode_coding and decode_coding.
12714
b8ff72fa 12715 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12716
12717 * dosfns.c: Include frame.h before termhooks.h.
12718 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12719 variable termscript.
12720
12721 * s/msdos.h (USER_FULL_NAME): Define.
12722 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12723
12724 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12725 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12726 pw->pw_gecos.
12727
12728 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12729 SELECTED_FRAME as additional (1st) argument.
12730 (tty_read_avail_input): Handle output_msdos_raw in
12731 addition to output_termcap.
12732
12733 * msdos.c: Include frame.h before termhooks.h.
12734 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12735 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12736 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12737 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12738 (IT_set_terminal_modes, IT_reset_terminal_modes)
12739 (IT_set_frame_parameters): Use tty->termscript instead of a global
12740 variable termscript.
12741 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12742 global variable terminal_coding. Don't refer to
12743 Vnonascii_translation_table.
12744 (internal_terminal_init): Set Vwindow_system in current_kboard.
12745 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12746 Announce date and time of session start, if termscript is open.
12747 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12748 term.c:init_tty). Open termscript only of not already open.
12749 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12750 here instead of dos_ttraw. Don't initialize display if this is an
12751 initial tty. Don't set FRAME_FONT.
12752 (Vwindow_system_version): Bump to 23.
12753 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12754 is available, set up mouse_position_hook.
12755 (dos_ttraw, IT_set_terminal_modes): If called with initial
12756 terminal, do nothing.
12757 (IT_set_frame_parameters): Handle the Qtty_type frame
12758 parameter by calling internal_terminal_init.
12759 (dos_set_window_size, show_mouse_face)
12760 (clear_mouse_face, IT_note_mode_line_highlight)
12761 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12762 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12763 (initialize_msdos_display): New function.
12764 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12765 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12766 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12767 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12768 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12769 (request_sigio, unrequest_sigio): Don't define, now defined on
12770 sysdep.c.
12771 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12772
12773 * term.c [MSDOS]: Include msdos.h.
12774 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12775 conditional to DOS_NT. Allow only one call to this function in a
12776 session. Don't allocate a new struct tty_display_info; instead,
12777 reuse the_only_display_info. Call get_tty_size to get screen
12778 dimensions. Call init_baud_rate to set bad_rate.
12779 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12780 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12781 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12782 (get_tty_terminal, get_named_tty, Ftty_type)
12783 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12784 output_termcap.
b8ff72fa
SM
12785 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12786 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12787 only when subprocesses are supported.
aac0c6e3
MR
12788
12789 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12790 f->output_data.x.
12791 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12792 terminal devices.
12793
5582fbc7 12794 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12795 x_output.
12796 (FRAME_FONT): Use output_data.tty.
12797 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12798 (struct x_display_info): Rename from display_info. Update all users in
12799 msdos.c.
aac0c6e3 12800 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12801 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12802 (dos_ttraw): Update prototype.
12803
12804 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12805 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12806
128072008-08-23 Jason Rumney <jasonr@gnu.org>
12808
12809 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12810 (fn_TIFFSetDirectory): New library function used.
12811 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12812 (tiff_load): Use :index to select among multiple images. Set count
12813 property when multiple images exist.
12814 (gif_format): Use :index, not :image.
12815
128162008-08-23 Chong Yidong <cyd@stupidchicken.com>
12817
12818 * xdisp.c (try_scrolling): Check INT_MAX instead of
12819 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12820 to obtain INT_MAX.
12821
128222008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12823
12824 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12825
128262008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12827
12828 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12829 GNUstep library location.
12830
128312008-08-21 Chong Yidong <cyd@stupidchicken.com>
12832
12833 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12834 before using it.
12835
12836 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12837
128382008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12839
12840 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12841 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12842 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12843 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12844 (EmacsApp-cursor_blink_handler): Remove declaration.
12845 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12846 match 01 Feb 2008 changes in xterm.c.
12847 (ns_read_socket): Add cast to avoid warning.
12848 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12849 GNUstep.
12850
128512008-08-20 Chong Yidong <cyd@stupidchicken.com>
12852
12853 * xselect.c (x_get_foreign_selection): Return nil if desired
12854 selection could not be obtained, instead of signalling an error.
12855
128562008-08-20 David Reitter <david.reitter@gmail.com>
12857
12858 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12859 * nsterm.m: Remove ns-specific code for cursor blinking.
12860 (ns_draw_window_cursor): Clear cursor properly rather than
12861 redrawing the area. Respect width of bar cursors.
12862 These changes enable the use of generic blink-cursor-mode and
12863 generic cursor types in NS and support smooth cursor movements (do
12864 not blink off after command).
12865 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12866 Nextstep, too.
12867
128682008-08-19 Kenichi Handa <handa@m17n.org>
12869
12870 * font.c (Vfont_log_deferred): New variable.
12871 (font_add_log): Check Vfont_log_deferred.
12872 (font_deferred_log): New function.
12873
12874 * font.h (font_deferred_log): Extern it.
12875
12876 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12877 for sorting.
12878 (face_for_char): Use deferred log.
12879
128802008-08-18 Kenichi Handa <handa@m17n.org>
12881
12882 * fontset.c (face_for_char): Add font log.
12883
12884 * font.c (font_add_log): Add the font properties :script, :lang,
12885 and :otf in the log.
12886
128872008-08-17 Chong Yidong <cyd@stupidchicken.com>
12888
12889 * xdisp.c: Remove dead code.
12890 (handle_invisible_prop, next_overlay_string): Defer call to
12891 setup_for_ellipsis.
12892 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12893
128942008-08-15 Chong Yidong <cyd@stupidchicken.com>
12895
12896 * xfaces.c (lookup_derived_face): Properly handle possible zero
12897 return value of get_lface_attributes.
12898 (merge_faces): Don't tell lookup_derived_face to signal an error
12899 if face is not found.
12900
12901 * dired.c (Fdirectory_files): Doc fix.
12902
12903 * process.c (make_process): Initialize kill_without_query struct
12904 member.
12905
129062008-08-15 Eli Zaretskii <eliz@gnu.org>
12907
12908 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12909 Alternative calculation of totphys for Visual Studio 6.
12910
12911 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12912
12913 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12914 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12915 All users changed.
12916 (stat): Only root directory passed to GetDriveType. Allow RAM
12917 disk as well as local fixed disk when w32-get-true-file-attributes
12918 is set to `local'.
12919 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12920 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12921 (w32_cached_id, w32_add_to_cache): New functions.
12922 (get_name_and_id): Look account names in the cache before calling
12923 lookup_account_sid.
12924 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12925 New initialization flags.
12926 (globals_of_w32): Initialize them to zero.
12927 (w32_system_process_attributes): Use w32_cached_id and
12928 w32_add_to_cache.
12929
129302008-08-14 Lawrence Mitchell <wence@gmx.li>
12931
12932 * lread.c (Fread_char, Fread_char_exclusive): If no character
12933 event is read before timeout is reached, return nil, rather than
12934 converting to a number.
12935
129362008-08-14 Chong Yidong <cyd@stupidchicken.com>
12937
12938 * fns.c (use_dialog_box): Doc fix.
12939
12940 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12941 on OS X.
12942
129432008-08-13 Chong Yidong <cyd@stupidchicken.com>
12944
12945 * frame.c (Qns_parse_geometry): New var.
12946 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12947
129482008-08-11 Chong Yidong <cyd@stupidchicken.com>
12949
12950 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12951 space character in calculating tabs.
12952
129532008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12954
12955 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12956
129572008-08-10 Glenn Morris <rgm@gnu.org>
12958
12959 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12960 silence gcc "limited range of data type" warnings in some
12961 make_fixnum_or_float calls.
12962
129632008-08-09 Eli Zaretskii <eliz@gnu.org>
12964
12965 * w32.c (w32_system_process_attributes): If the process does not
12966 exist, return nil.
12967
12968 * w32.c: Include thelp32.h, psapi.h and coding.h.
12969 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12970 declarations.
12971 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12972 (Process32Next_Proc): New typedefs.
12973 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12974 (g_b_init_process32_next, g_b_init_open_thread_token)
12975 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12976 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12977 (g_b_init_get_process_working_set_size)
12978 (g_b_init_global_memory_status_ex): New static variables.
12979 (globals_of_w32): Initialize them.
12980 (create_toolhelp32_snapshot, process32_first, process32_next)
12981 (open_thread_token, impersonate_self, revert_to_self)
12982 (get_process_memory_info, get_process_working_set_size)
12983 (global_memory_status, global_memory_status_ex): New wrapper
12984 functions.
12985 (w32_list_system_processes, w32_system_process_attributes)
12986 (enable_privilege, restore_privilege, ltime, process_times):
12987 New functions.
12988 (convert_time_raw): New function.
12989 (convert_time): Remove conversion of FILETIME into time in 100
12990 nsec units, call convert_time_raw instead.
12991
12992 * process.h (w32_list_system_processes, w32_system_process_attributes):
12993 Add prototypes.
12994 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12995 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12996 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12997 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12998
12999 * process.c (Fsystem_process_attributes): Doc fix.
13000
130012008-08-08 Chong Yidong <cyd@stupidchicken.com>
13002
13003 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13004 a continued multi-char glyph; if so, advance to the actual glyph.
13005
130062008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13007
13008 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13009
13010 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13011 (.m.o): Use it.
13012 * config.in: Regenerate.
13013
130142008-08-07 Chong Yidong <cyd@stupidchicken.com>
13015
13016 * xdisp.c (redisplay_window): Revert last change.
13017 (try_window): Check bottom scroll margin too.
13018
130192008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13020
13021 * config.in: Regenerate.
13022
13023 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13024 -list-load-path-shadows'.
13025 (nsgui.h): Reduce number of things depending on it.
13026
130272008-08-06 Chong Yidong <cyd@stupidchicken.com>
13028
13029 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13030 instead of window-end which does the wrong thing at eob.
13031 (try_cursor_movement): Minor optimization.
13032 (redisplay_window): If scroll margin is defined, don't assume
13033 window doesn't need scrolling.
13034
130352008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13036
13037 * config.in: Regenerate.
13038
13039 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13040 (mostlyclean): Don't delete *.d under NS.
13041
13042 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13043
130442008-08-06 Kenichi Handa <handa@m17n.org>
13045
13046 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13047
130482008-08-06 Andreas Schwab <schwab@suse.de>
13049
13050 * config.in: Regenerate.
13051
130522008-08-05 Chong Yidong <cyd@stupidchicken.com>
13053
13054 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13055 forcing a window start.
13056
13057 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13058 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13059
130602008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13061
13062 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13063 argument.
13064
130652008-08-05 Juanma Barranquero <lekktu@gmail.com>
13066
13067 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13068 <scroll-down-aggressively, before-change-functions>:
13069 <after-change-functions>: Reflow docstrings.
13070
130712008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13072 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13073
13074 Dock menu customization, based on a patch by Ken Raeburn, plus some
13075 other fixes.
13076 * nsmenu.m (dockMenu): New variable.
13077 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13078
13079 * nsterm.h (dockMenu): Declare.
13080
13081 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13082 (ns_term_init): Initialize dockMenu.
13083 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13084 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13085 left.
13086
13087 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13088
130892008-08-04 Chong Yidong <cyd@stupidchicken.com>
13090
13091 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13092
13093 * config.in: Regenerate.
13094
130952008-08-04 Seiji Zenitani <zenitani@mac.com>
13096
13097 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13098
130992008-08-04 Chong Yidong <cyd@stupidchicken.com>
13100
13101 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13102
131032008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13104
13105 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13106
13107 * keyboard.h: Comment an #endif.
13108
13109 * lisp.h (have_menus_p): Adjust comment.
13110
13111 * menu.c (find_and_return_menu_selection): Fix comparison with
13112 client_data.
13113
13114 * nsmenu.m (popup_activated_flag): New variable.
13115 (popup_activated): New function.
13116 (menu-or-popup-active-p): New exported lisp definition.
13117 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13118 when popup done.
13119 (ns_popup_dialog): Set popup_activated_flag.
13120
13121 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13122 version for GNUstep (handled by conditional typedef in nsterm.m).
13123 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13124 in rgb.txt).
13125
13126 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13127
13128 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13129
13130 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13131
13132 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13133 shortcircuit if popup_activated like GTK and X toolkit.
13134
13135 * m/inter386.h: Change DARWIN to DARWIN_OS.
13136
13137 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13138 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13139 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13140 comment on NO_SOCK_SIGIO.
13141
131422008-08-03 Chong Yidong <cyd@stupidchicken.com>
13143
13144 * nsterm.m (windowDidResize): Remove stopModal call.
13145
131462008-08-03 Andreas Schwab <schwab@suse.de>
13147
13148 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13149 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13150
131512008-08-02 Chong Yidong <cyd@stupidchicken.com>
13152
13153 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13154 Don't use uninitialized pointer variable when using getrlimit.
13155
131562008-08-02 Jason Rumney <jasonr@gnu.org>
13157
13158 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13159
131602008-08-02 Eli Zaretskii <eliz@gnu.org>
13161
13162 * alloc.c (NSTATICS): Bump to 0x640.
13163
13164 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13165
13166 * lisp.h: Add prototype for directory_files_internal.
13167
13168 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13169 New functions.
13170 (syms_of_process): Defsubr them. Add initializations for various
13171 Q* symbols used in procfs_system_process_attributes.
13172 (procfs_list_system_processes, procfs_system_process_attributes)
13173 [HAVE_PROCFS]: New functions.
13174 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13175 (procfs_get_total_memory): New functions.
13176
131772008-08-01 Juanma Barranquero <lekktu@gmail.com>
13178
13179 * xfaces.c (Fx_load_color_file): Fix previous change;
13180 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13181
131822008-08-01 Michael Albinus <michael.albinus@gmx.de>
13183
13184 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13185
131862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13187
13188 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13189
131902008-08-01 Chong Yidong <cyd@stupidchicken.com>
13191
13192 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13193
13194 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13195 define NSApplicationDelegateReplySuccess.
13196 (EmacsView -converstationIdentifier): Use long instead of
13197 NSInteger for GNUstep, since it doesn't have NSInteger.
13198
13199 * xmenu.c: Revert last change.
13200
13201 * keyboard.h: Fix last change.
13202
132032008-08-01 Juanma Barranquero <lekktu@gmail.com>
13204
13205 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13206 on Windows.
13207
132082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13209
13210 Warning clearing and clean-up in NS port.
13211 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13212 Add prototypes.
13213 * nsgui.h (FACE_DEFAULT): Remove, unused.
13214 (XGCValues): Change colors to unsigned long.
13215 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13216 nsterm.m.
13217 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13218 (ns_list_fonts): Remove, unused.
13219 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13220 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13221 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13222 (nsfont_draw): Compare face colors to 0, not nil.
13223 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13224 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13225 (-addSubmenuWithTitle:): Use NSMenuItem class.
13226 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13227 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13228 (ns_clip_to_row): Make gc arg a BOOL.
13229 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13230 ns_clip_to_row() call.
13231 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13232 used). Cast FRAME_FONT assignments.
13233 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13234 (ns_string_to_lispmod): Change arg to const char.
13235 (ns_term_init): Use NSMenuItem class.
13236 (EmacsApp -openFile:): Move to different section of file.
13237 (EmacsApp -application:openFiles:): Don't return a value, call
13238 -replyToOpenOrPrint:.
13239 (EmacsView -keyDown:): Fix up cast.
13240 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13241 (EmacsView -menuDown:): Cast tag in call to
13242 find_and_call_menu_selection().
13243 (ns_list_fonts): Remove, unused.
13244 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13245 (ns_fontname_to_xlfd): Make static.
13246 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13247 Remove prototypes (now in keyboard.h).
13248 (next_menubar_widget_id): Remove, unused.
13249 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13250 Remove prototypes (now in keyboard.h).
13251 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13252
132532008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13254
13255 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13256 (floatfns.o): Depend on syssignal.h.
13257 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13258
13259 * systty.h: Fix previous change that removed BSD_TERMIOS.
13260 Add comments to #ifdefs.
13261
132622008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13263
13264 * w32fns.c (w32-load-color-file): Remove.
13265 (x-open-connection): Use renamed Fx_load_color_file.
13266 * xfaces.c (x-load-color-file): Add.
13267 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13268 Emacs.clr.
13269 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13270
132712008-07-31 Michael Albinus <michael.albinus@gmx.de>
13272
13273 * dbusbind.c (Fdbus_call_method_asynchronously)
13274 (Fdbus_method_error_internal): New defuns.
13275 (xd_read_message): Handle also reply messages.
13276 (Vdbus_registered_functions_table): Extend docstring.
13277
132782008-07-31 Juanma Barranquero <lekktu@gmail.com>
13279
13280 * keyboard.c (gobble_input): Fix previous change.
13281
132822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13283
13284 * bitmaps/README:
13285 * xfns.c:
13286 * termcap.c:
13287 * term.c:
13288 * syswait.h:
13289 * systty.h:
13290 * systime.h:
13291 * syssignal.h:
13292 * sysdep.c:
13293 * process.h:
13294 * process.c:
13295 * print.c:
13296 * ndir.h:
13297 * lread.c:
13298 * keyboard.c:
13299 * getpagesize.h:
13300 * floatfns.c:
13301 * fileio.c:
13302 * emacs.c:
13303 * doc.c:
13304 * dispnew.c:
13305 * dired.c:
13306 * data.c:
13307 * callproc.c:
13308 * buffer.c:
13309 * README:
13310 * Makefile.in:
13311 * s/template.h:
13312 * s/msdos.h:
13313 * m/vax.h: Remove VMS support.
13314 * s/vms.h:
13315 * vlimit.h:
13316 * uaf.h:
13317 * temacs.opt:
13318 * param.h:
13319 * ioctl.h: Remove file.
13320
133212008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13322
13323 * s/ms-w32.h (MULTI_KBOARD): Remove.
13324 * xterm.c:
13325 * xselect.c:
13326 * xfns.c:
13327 * window.c:
13328 * w32term.c:
13329 * w32fns.c:
13330 * terminal.c:
13331 * termhooks.h:
13332 * term.c:
13333 * sysdep.c:
13334 * keyboard.h:
13335 * keyboard.c:
13336 * frame.h:
13337 * frame.c:
13338 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13339 * config.in: Regenerate.
13340
133412008-07-30 Jason Rumney <jasonr@gnu.org>
13342
13343 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13344
13345 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13346 (w32font_open_internal): Get unicode version of textmetrics.
13347 Don't enable or disable glyph indices here.
13348 (w32font_open): Disable use of glyph indices.
13349
13350 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13351
133522008-07-30 Chong Yidong <cyd@stupidchicken.com>
13353
13354 * minibuf.c (Vread_buffer_function): Doc fix.
13355
133562008-07-30 John Paul Wallington <jpw@pobox.com>
13357
13358 * minibuf.c (read_buffer_completion_ignore_case): New var.
13359 (Fread_buffer): Use it.
13360
133612008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13362
13363 * systty.h (sensemode): Remove empty #if. Remove reference to
13364 BSD_TERMIOS, unused.
13365
13366 * sysdep.c: Remove reference to DGUX.
13367 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13368
13369 * config.in: Regenerate.
13370
133712008-07-30 Jason Rumney <jasonr@gnu.org>
13372
13373 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13374
133752008-07-29 Jason Rumney <jasonr@gnu.org>
13376
13377 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13378 is populated.
13379 (uniscribe_encode_char): Always use uniscribe.
13380 Avoid using context if cache is populated.
13381
133822008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13383
13384 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13385 open menu.
13386
13387 * gtkutil.c (menu_nav_ended): Remove.
13388 (create_menus): Remove signal connect for menu_nav_ended.
13389
133902008-07-28 Chong Yidong <cyd@stupidchicken.com>
13391
13392 * xdisp.c (redisplay_window): Check return value of
13393 compute_window_start_on_continuation_line before forcing a window
13394 start.
13395
133962008-07-28 Jason Rumney <jasonr@gnu.org>
13397
13398 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13399
13400 * w32term.c (w32_enable_unicode_output, cleartype_active):
13401 Remove obsolete display options.
13402 (x_draw_glyph_string_background): Don't use old cleartype_active
13403 workaround.
13404 (w32_initialize): Remove cleartype_active initialization.
13405 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13406
134072008-07-28 Andreas Schwab <schwab@suse.de>
13408
13409 * lisp.h (init_weak_hash_tables, syms_of_font)
13410 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13411 (remove_hash_entry): Don't declare.
13412 * eval.c (maybe_call_debugger): Make static and move before use.
13413 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13414 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13415 * xterm.h (x_set_frame_alpha): Declare.
13416
134172008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13418
13419 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13420 (create_menus): Connect selection-done to menu_nav_ended.
13421
134222008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13423
13424 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13425 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13426 parameter with read of 'alpha' one.
13427 (Qns_frame_parameter): Remove.
5582fbc7 13428 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13429 (next-selection-coding-system, Vselection_coding_system)
13430 (Vnext_selection_coding_system): Drop.
13431
134322008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13433
13434 * nsfns.m (do-applescript, do_applescript): Rename to
13435 ns-do-applescript, ns_do_applescript, and move within file.
13436
134372008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13438
13439 Remove support for Mac Carbon.
13440 * mactoolbox.c:
13441 * macterm.h:
13442 * macterm.c:
13443 * macselect.c:
13444 * macmenu.c:
13445 * macgui.h:
13446 * macfns.c:
13447 * mac.c: Remove file.
13448 * s/darwin.h:
13449 * m/intel386.h:
13450 * xfaces.c:
13451 * xdisp.c:
13452 * window.c:
13453 * tparam.c:
13454 * termhooks.h:
13455 * termcap.c:
13456 * term.c:
13457 * syssignal.h:
13458 * sysselect.h:
13459 * sysdep.c:
13460 * process.c:
13461 * lread.c:
13462 * lisp.h:
13463 * keyboard.c:
13464 * image.c:
13465 * fringe.c:
13466 * frame.h:
13467 * frame.c:
13468 * fontset.c:
13469 * font.h:
13470 * font.c:
13471 * fns.c:
13472 * fileio.c:
13473 * emacs.c:
13474 * dispnew.c:
13475 * dispextern.h:
13476 * config.in:
13477 * atimer.c:
2ae37cf0 13478 * Makefile.in: Remove code for Carbon.
aac0c6e3 13479
f0131492 134802008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13481
13482 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13483
134842008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13485
13486 * macterm.h (kCGBitmapByteOrder32Host): New define for
13487 non-universal SDKs.
13488
13489 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13490 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13491
13492 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13493 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13494
134952008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13496
13497 * w32inevt.c: Include dispextern.h.
13498
134992008-07-26 Andreas Schwab <schwab@suse.de>
13500
13501 * print.c (print_object): Fix off-by-one in last change.
13502
135032008-07-25 Juanma Barranquero <lekktu@gmail.com>
13504
13505 * term.c (syms_of_term): Don't initialize default_orig_pair,
13506 default_set_foreground and default_set_background on Windows.
13507
135082008-07-25 Jason Rumney <jasonr@gnu.org>
13509
13510 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13511 ScriptItemize. Clean up return value checking. Remove unused
13512 variables.
13513 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13514 shaping engine.
13515
13516 * w32font.c (w32font_has_char): Handle the case where we can't
13517 determine the script for a character.
13518
135192008-07-25 Chong Yidong <cyd@stupidchicken.com>
13520
13521 * term.c (syms_of_term): Initialize default_orig_pair,
13522 default_set_foreground, and default_set_background.
13523
13524 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13525 clash (bug#86).
13526 (getloadavg): Callers changed.
13527
13528 * image.c (svg_load_image): Fix last change.
13529 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13530 image size is valid. Use g_object_unref instead of deprecated
13531 rsvg_handle_free to free rsvg handle.
13532 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13533
135342008-07-25 Jason Rumney <jasonr@gnu.org>
13535
13536 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13537 surrogates before looking up glyph index.
13538 (w32font_text_extents): Encode as surrogates if falling back to
13539 functions that need UTF-16 wide chars.
13540
13541 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13542 BMP as surrogates before looking up glyph index.
13543
135442008-07-25 Chong Yidong <cyd@stupidchicken.com>
13545
13546 * image.c (svg_load_image): Check for failure in return value of
13547 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13548
135492008-07-25 Jason Rumney <jasonr@gnu.org>
13550
13551 * w32font.c (Fx_select_font): Reverse sense of second arg.
13552
135532008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13554
13555 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13556 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13557
13558 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13559 (PURESIZE): Use it.
13560
135612008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13562
13563 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13564 * m/alpha.h (TEXT_END):
13565 * m/ibmrs6000.h (TEXT_END):
13566 * m/macppc.h (TEXT_END):
13567 * s/darwin.h (TEXT_END):
13568 * s/msdos.h (TEXT_END): Remove, unused.
13569 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13570 * s/cygwin.h: Remove comment.
13571
13572 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13573 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13574 * m/intel386.h (DOT_GLOBAL_START):
13575 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13576 (USG): Remove, file not used on USG platforms.
13577
13578 * Makefile.in (HAVE_X11): Remove empty #else.
13579
135802008-07-24 Andreas Schwab <schwab@suse.de>
13581
13582 * fileio.c (Finsert_file_contents): Properly adjust undo list
13583 after format conversion.
13584
135852008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13586
13587 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13588 (menu_nav_ended): Remove.
13589 (create_menus): Remove signal connect for menu_nav_ended.
13590 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13591 create_menus.
13592 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13593
135942008-07-23 Jason Rumney <jasonr@gnu.org>
13595
13596 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13597 with opened font.
13598 (w32font_open): Set font type to gdi.
13599
13600 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13601
136022008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13603
13604 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13605 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13606 defines it.
13607 * unexec.c (ADDR_CORRECT): Define unconditionally.
13608
13609 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13610
13611 * unexec.c: Remove code depending on !COFF and USG, the file is
13612 not used for such systems.
13613
13614 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13615 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13616 (LD_SWITCH_SYSTEM_1): Remove, update users.
13617
13618 * s/darwin.h (DATA_END):
13619 * m/intel386.h (DATA_END):
13620 * m/ibmrs6000.h (DATA_END):
13621 * m/alpha.h (DATA_END): Remove, unused.
13622
13623 * config.in: Regenerate.
13624 * s/ms-w32.h (subprocesses): Define unconditionally.
13625 * s/template.h (subprocesses): Update comment.
13626 * s/vms.h (subprocesses):
13627 * s/usg5-4.h (subprocesses):
13628 * s/hpux10-20.h (subprocesses):
13629 * s/gnu-linux.h (subprocesses):
13630 * s/cygwin.h (subprocesses):
13631 * s/bsd-common.h (subprocesses):
13632 * s/aix4-2.h (subprocesses):
13633 * s/darwin.h (subprocesses): Do not define, defined by default now.
13634
13635 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13636 Remove all references.
13637 (temacs): Add GNUstep specific ld flags.
13638
13639 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13640 similarly to what X does.
13641
136422008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13643
13644 * nsfns.m (x-list-fonts): Remove.
13645 (syms_of_nsfns): Drop the x-list-fonts declaration.
13646 * nsterm.m: Get rid of remaining "//" comments.
13647
136482008-07-22 Chong Yidong <cyd@stupidchicken.com>
13649
13650 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13651
13652 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13653 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13654 (Fns_own_selection_internal, Fx_disown_selection_internal)
13655 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13656
13657 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13658 ... */' style of docstrings. Doc fixes.
13659
136602008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13661
13662 * terminfo.c (UP, BC, PC): Undo previous change.
13663
13664 * nsfns.m: Rename ns prefixed functions/variables to the
13665 corresponding x versions. Update references.
13666
136672008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13668
13669 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13670
136712008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13672
13673 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13674 Remove forwarding functions.
13675 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13676 non-static.
13677 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13678 non-static.
13679 (ns_frame_parm_handlers): Use the new names.
13680 (syms_of_nsfns): Move to the end of file.
13681
13682 * nsterm.m (syms_of_nsterm): Move to the end of file.
13683
13684 * dispnew.c (init_display): Remove code for X10.
13685
136862008-07-22 Jason Rumney <jasonr@gnu.org>
13687
13688 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13689 bare drive.
13690
136912008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13692
13693 * nsterm.m (syms_of_nsterm): Remove debugging println.
13694
136952008-07-22 David Reitter <david.reitter@gmail.com>
13696
13697 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13698 Carbon implementation of the same functionality: execute arbitrary
13699 AppleScript code.
13700
137012008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13702
13703 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13704 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13705 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13706 (Fx_display_mm_height, Fx_display_mm_width)
13707 (Fx_display_backing_store, Fx_display_visual_class)
13708 (Fx_display_save_under, Fx_open_connection)
13709 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13710 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13711 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13712 (Fx_display_pixel_width, Fx_display_pixel_height)
13713 (Fx_display_usable_bounds, Fx_display_planes)
13714 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13715 ... */' style of docstrings.
13716
137172008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13718
13719 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13720 on this platform.
13721 (mips):
13722 * m/iris4d.h (mips): Do not define.
13723 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13724
13725 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13726
13727 * image.c:
13728 * nsfns.m:
13729 * nsselect.m:
13730 * nsterm.h:
13731 * nsterm.m: Rename ns prefixed functions/variables to the
13732 corresponding x versions. Update references.
13733
13734 * m/ibms390x.h (NO_REMAP): Do not undefine.
13735
13736 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13737
137382008-07-21 Chong Yidong <cyd@stupidchicken.com>
13739
13740 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13741 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13742 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13743 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13744 (Fns_display_mm_height, Fns_display_mm_width)
13745 (Fns_display_backing_store, Fns_display_visual_class)
13746 (Fns_display_save_under, Fns_open_connection)
13747 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13748 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13749 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13750 (Fns_display_pixel_width, Fns_display_pixel_height)
13751 (Fns_display_usable_bounds, Fx_display_planes)
13752 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13753
137542008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13755
13756 * print.c (print_object): Check print_depth before searching for
13757 circularities.
13758
137592008-07-21 Michael Albinus <michael.albinus@gmx.de>
13760
13761 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13762 only sprintf.
13763
137642008-07-21 Kenichi Handa <handa@m17n.org>
13765
13766 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13767
137682008-07-20 Andreas Schwab <schwab@suse.de>
13769
13770 * syntax.c (find_start_pos, find_start_value)
13771 (find_start_value_byte, find_start_begv, find_defun_start)
13772 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13773
137742008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13775
13776 * s/sol2-3.h: Insert contents of s/sol2.h.
13777 (LD_SWITCH_SYSTEM): Remove redundant definition.
13778 * s/sol2.h: Remove, unused.
13779
137802008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13781
13782 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13783
137842008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13785
13786 * Makefile.in (ns_appdir): Fix typo in find command.
13787
137882008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13789
13790 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13791
13792 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13793 added not supported anymore.
13794
13795 * s/usg5-4-2.h (LIBS_SYSTEM):
13796 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13797
13798 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13799 * s/lynxos.h (GETPGRP_NO_ARG):
13800 * s/hpux10-20.h (NO_SIOCTL_H):
13801 * s/gnu.h (GETPGRP_NO_ARG):
13802 * s/gnu-linux.h (NO_SIOCTL_H):
13803 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13804 * s/cygwin.h (GETPGRP_NO_ARG):
13805 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13806 (C_DEBUG_SWITCH): Remove duplicate definition.
13807
13808 * m/ibms390.h: Remove boilerplate comments.
13809
13810 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13811
13812 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13813 (wait_reading_process_output): Remove code for SunOS, platform not
13814 supported anymore. Use SOLARIS2 instead of sun.
13815
138162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13817
13818 * font.c (font_open_by_name): Under NS, default lface height to zero.
13819 (font_open_for_lface): Under NS, set size based on frame fontsize.
13820 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13821 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13822
138232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13824
13825 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13826 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13827 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13828 YES/NO.
13829 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13830 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13831 * Makefile.in (clean): Clear out build destination dir.
13832
138332008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13834
13835 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13836 xterm, xselect.
13837 * lisp.h: Remove declaration of hash_remove.
13838 * nsgui.h: Remove redefinitions of hash_remove.
13839 * fns.c (hash_remove): Rename to hash_remove_from_table.
13840
138412008-07-19 Seiji Zenitani <zenitani@mac.com>
13842
13843 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13844 strdup() the family UTF8String before modifying it.
13845
138462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13847
13848 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13849 NS_FACE_BACKGROUND with 0 instead of nil.
13850 * nsfont.m (nsfont_draw): Same.
13851
138522008-07-19 Chong Yidong <cyd@stupidchicken.com>
13853
13854 * nsfns.m (ns_set_background_color): Fix crash.
13855
138562008-07-18 Chong Yidong <cyd@stupidchicken.com>
13857
13858 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13859
138602008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13861
13862 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13863
138642008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13865
13866 * gtkutil.c: Include <config.h> instead of "config.h".
13867
13868 * lisp.h (Foverlay_buffer): Add EXFUN.
13869
13870 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13871 child process to complete child_setup. Undo 2005-09-21 change.
13872
13873 * s/darwin.h: Mention setsid after vfork.
13874
138752008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13876
13877 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13878 Depend on macgui.h.
13879
13880 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13881 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13882
13883 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13884 and f19.
13885 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13886
13887 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13888 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13889 Remove enumerators.
13890
13891 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13892 Check if FACE_FROM_ID returns NULL.
13893
138942008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13895
13896 * w32inevt.c (change_frame_size): Remove extern declaration.
13897 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13898 change_frame_size.
13899
139002008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13901
13902 * getloadavg.c: Revert last change (2008-07-15).
13903
139042008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13905
13906 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13907 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13908 from configure.
13909
139102008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13911
13912 * s/sol2.h:
13913 * s/sol2-4.h: Reorganize conditionals.
13914
13915 * ecrt0.c: Remove code depending on m68000, not used anymore.
13916
13917 * fns.c (hash_remove): Make static.
13918 * lisp.h (hash_remove): Don't prototype.
13919
13920 * m/ibmrs6000.h:
13921 * m/ibms390x.h:
13922 * m/macppc.h: Remove boilerplate comments.
13923
13924 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13925 Solaris, which does not need them.
13926
13927 * m/vax.h: Remove comments about unsupported systems.
13928
13929 * s/darwin.h: Reorganize ifdefs.
13930
139312008-07-17 Andreas Schwab <schwab@suse.de>
13932
13933 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13934
139352008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13936
13937 Use SDATA. Follow coding convention of placing operators at
13938 beginning of next line rather than end of previous line, and placing
13939 spaces around infix operators.
13940
13941 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13942 in case it was defined already.
13943 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13944 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13945 ns_default.
13946 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13947 Lisp_Objects.
13948 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13949 (ns_defined_color, ns_color_to_lisp): Declare.
13950 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13951 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13952 it's accepted even with USE_LISP_UNION_TYPE.
13953 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13954 (update_frame_tool_bar): Remove apparently obsolete tests for
13955 non-integerness of f->tool_bar_lines.
13956 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13957 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13958 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13959 (nsfont_open): Don't confuse NULL for Qnil.
13960 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13961 * menu.h (find_and_call_menu_selection):
13962 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13963 (find_and_return_menu_selection): Always return something.
13964 * frame.h: Include dispextern.h for Display_Info.
13965 (display_x_get_resource): Declare.
13966
139672008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13968
13969 * syntax.c: Remove stdio.h include accidentally introduced in
13970 Emacs.app commit.
13971 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13972 NS_IMPL_COCOA.
13973 * keyboard.c (handle_async_input, input_available_signal): Remove
13974 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13975
139762008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13979 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13980 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13981 Use SDATA.
13982
13983 * keymap.c: Remove all NS-specific code.
13984 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13985 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13986 where_is_preferred_modifier, return a different value depending on how
13987 preferred is the binding.
13988 (where_is_internal): Adjust accordingly.
13989 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13990 Adjust to new preferred_sequence_p.
13991 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13992 * keyboard.c (parse_solitary_modifier): Not static any more.
13993 * keyboard.h (parse_solitary_modifier): Declare.
13994
139952008-07-16 Andreas Schwab <schwab@suse.de>
13996
13997 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13998 of easymenu.
13999
140002008-07-16 Chong Yidong <cyd@stupidchicken.com>
14001
14002 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14003 that we don't move off the line.
14004
140052008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14006
14007 * keyboard.c (Qsuper): Remove.
14008 (parse_menu_item): Don't call where_is_internal specially for NS.
14009
140102008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14011
14012 * s/gnu-linux.h: Remove boilerplate comments.
14013
14014 * m/alpha.h (__ELF__): Consolidate conditions.
14015
14016 * m/m68k.h (linux): Use GNU_LINUX instead.
14017 Remove boilerplate comments.
14018
14019 * m/intel386.h: Undo refactoring from previous change.
14020 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14021 too, remove dead code.
14022 (linux): Use GNU_LINUX instead.
14023
140242008-07-16 Jason Rumney <jasonr@gnu.org>
14025
14026 * w32gui.h: Repeat 26 June changes lost by last change.
14027
140282008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14029
14030 * systty.h: Remove code for Aix on 386, unsupported platform.
14031
14032 * s/ms-w32.h: Remove boilerplate comments.
14033 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14034
14035 * s/gnu-linux.h (TERM): Remove support.
14036 (HAVE_SYSVIPC): Remove, unused.
14037 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14038 for this system.
14039
14040 * process.c: Remove support for IRIS, unused.
14041 Remove support for TERM, not relevant anymore.
14042
14043 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14044 used with the definition.
14045
14046 * s/aix4-2.h (static): Do not undef.
14047
14048 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14049 only used on Aix.
14050 (HAVE_SYSVIPC): Remove, unused.
14051
14052 * m/hp800.h (CANNOT_DUMP): Do not undef.
14053
14054 * m/alpha.h: Fix comment.
14055
14056 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14057 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14058 used by this configuration.
14059 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14060 * unexec.c: Remove code depending on HPUX and
14061 USG_SHARED_LIBRARIES, not used with this file. Remove code
14062 depending on IRIS, unused. Remove if 0-ed code.
14063
14064 * s/template.h: Remove comments about static.
14065
14066 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14067 Remove if 0-ed code.
14068 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14069 were the same as the default.
14070 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14071 Remove boilerplate comments.
14072 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14073 (HAVE_SYSVIPC): Remove, unused.
14074 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14075
14076 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14077 Remove boilerplate comments.
14078 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14079 Remove boilerplate comments.
14080 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14081 Remove boilerplate comments.
14082 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14083
14084 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14085 USG systems which do not use DATA_SEG_BITS.
14086 Refactor code. Remove boilerplate comments.
14087
14088 * m/ibms390.h:
14089 * m/m68k.h:
14090 * s/bsd-common.h:
14091 * s/cygwin.h:
14092 * s/darwin.h:
14093 * s/freebsd.h:
14094 * s/gnu.h:
14095 * s/msdos.h: Remove boilerplate comments.
14096
14097 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14098 do not use this file.
aac0c6e3
MR
14099 (IRIS_4D): Remove, unused.
14100
14101 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14102 do not use this file.
aac0c6e3
MR
14103 (SIGN_EXTEND_CHAR):
14104 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14105 * unexmips.c: Remove file, unused.
14106
14107 * editfns.c (Fuser_full_name): Replace the only use of
14108 USER_FULL_NAME with its value.
14109 * config.in: Regenerate.
14110
141112008-07-16 David Reitter <david.reitter@gmail.com>
14112
14113 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14114 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14115
141162008-07-16 Glenn Morris <rgm@gnu.org>
14117
14118 * emacs.c (system-type): Doc fix.
14119
141202008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14121
14122 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14123 If the cache doesn't work, let's fix it, rather than work around it.
14124
141252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14126
14127 * Makefile.in: Correct additions for nsfont.o in last commit.
14128 * nsfont.m: New file (forgot last commit).
14129
141302008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14131
14132 * callproc.c (set_initial_environment): Initialize
14133 Vprocess_environment under CANNOT_DUMP (fixes crash when
14134 batch-compiling for bootstrap).
14135
141362008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14137 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14138
c4cc8b9a
JB
14139 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14140 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14141
141422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14143
14144 Changes and additions for NeXTstep windowing system (Cocoa and
14145 GNUstep) support.
14146
14147 * Makefile.in:
14148 * config.in: Support defines and build commands for NS port.
14149 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14150 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14151 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14152 windowing.
14153 (struct face): Add synth_ital field.
14154 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14155 (init_display): Initialize Vinitial_window_system to "ns" when so
14156 compiled.
14157 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14158 (display_arg): Use under NS.
14159 (main): Under NS, allocate autorelease pool and handle command line
14160 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14161 (standard_args): Add NS-specific args.
14162 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14163 * font.c (DEFAULT_ENCODING): New variable.
14164 (font_find_for_lface): Use it.
14165 (syms_of_font): Load syms_of_nsfont under NS.
14166 * font.h: Declare nsfont_driver when compiled under NS.
14167 * fontset.c: When compiling under NS, include nsterm.h.
14168 (fontset_from_font): Autoconstruct fontset under NS.
14169 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14170 symbol, document and use it.
14171 (do_switch_frame): When for_deletion under Cocoa, add
14172 Fraise_frame(Qnil).
14173 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14174 (x_get_arg): Allow "yes" and "no" as boolean values.
14175 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14176 Qright under Cocoa.
14177 (focus-follows-mouse): Default to 0 under NS.
14178 * frame.h (enum output_method): Add output_ns.
14179 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14180 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14181 (FRAME_WINDOW_P): NS-specific definition.
14182 * fringe.c (max_used_fringe_bitmap): Make public.
14183 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14184 (getloadavg): Use NeXT code under descendant OS's.
14185 * image.c (includes and header section, x_create_bitmap_from_data)
14186 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14187 (image_background_transparent, x_clear_image_1)
14188 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14189 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14190 (x_to_xcolors, x_from_xcolors, x_disable_image)
14191 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14192 other GUIs, including XPM support using code originally written for
14193 Carbon GUI.
14194 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14195 using NS API.
14196 (image_ascent): Use font metrics macros instead of direct struct field
14197 access.
14198 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14199 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14200 Also, handle NS as GTK for menu bar purposes.
14201 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14202 toolkit where they differ.
14203 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14204 use cachelist, still needed under NS.
14205 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14206 (struct widget_value): Define it here for menu.c.
14207 * keymap.c (includes): Include modifier internals.
14208 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14209 NS.
14210 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14211 support for preferring sequences using certain modifiers, specified by
14212 the FIRSTONLY argument.
14213 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14214 under NS GNUstep implementation.
14215 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14216 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14217 * menu.c: Include nsterm.h under NS.
14218 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14219 (free_menubar_widget_tree_value, update_submenu_strings)
14220 (find_and_call_menu_selection): Treat NS as X and NT.
14221 (find_and_return_menu_selection): New function, used for popup menus.
14222 * nsgui.h:
14223 * nsterm.h:
14224 * nsfns.m:
14225 * nsimage.m:
14226 * nsmenu.m:
14227 * nsselect.m:
14228 * nsterm.m: New files.
14229 * process.c (wait_reading_process_output): Under NS, call ns_select()
14230 instead of plain select().
14231 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14232 beginning of buffer.
14233 * sysselect.h (init_process): Rename when compiling under Cocoa to
14234 avoid name conflict.
14235 * termhooks.h (display_info): Add ns_display_info to union.
14236 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14237 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14238 COCOA environment.
14239 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14240 unexec() signature. (Note, this will dump, but the resulting file
14241 crashes; unexosx is used instead; keeping around for reference and
14242 possible aid in getting dump working under GNUstep.)
14243 * w32gui.h (button_type, widget_value): Remove definitions (now in
14244 keyboard.h).
14245 * window.c: Include nsterm.h when compiling under NS.
14246 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14247 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14248 other GUI windowing systems.
14249 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14250 GTK.
14251 (x_consider_frame_title): Under NS, set icon type and frame
14252 modified-state indicator; use ns_set_name_as_filename() when using
14253 formatted title.
14254 (update_window_cursor): Make public when compiling under NS.
14255 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14256 (hourglass_atimer, Vhourglass_delay
14257 * xfaces.c (header section, init_frame_faces, clear_font_table)
14258 (defined_color, unload_color, x_face_list_fonts)
14259 (prepare_face_for_display): Add NS support parallel to other GUIs.
14260 Emulate GCs like other non-X GUIs.
14261 (split_font_name): Don't lowercase font name under NS.
14262 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14263 under NS.
14264 * s/darwin.h: Add support for compilation under NS.
14265
142662008-07-15 Jason Rumney <jasonr@gnu.org>
14267
14268 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14269 (w32_show_hourglass): Rename from show_hourglass.
14270 (w32_hide_hourglass): Rename from hide_hourglass.
14271 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14272 (Vhourglass_delay): Declare extern.
14273 (hourglass_started): Remove.
14274
14275 * xdisp.c (Vhourglass_delay): Remove static.
14276 (hourglass_started, start_hourglass, cancel_hourglass):
14277 Don't include these versions on WINDOWSNT.
14278
142792008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14280
14281 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14282 variables (formerly in xfns.c).
14283 (show_hourglass, hide_hourglass): New prototypes (same).
14284 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14285 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14286 in xfns.c).
14287 (syms_of_xdisp): Declare/initialize display-hourglass,
14288 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14289 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14290 formerly in xfns.c.
14291 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14292 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14293 (start_hourglass, cancel_hourglass): Remove.
14294 (show_hourglass, hide_hourglass): Remove prototypes and static
14295 modifiers.
14296 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14297 hourglass_atimer, hourglass_shown_p declaration/initialization.
14298 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14299 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14300 (start_hourglass, cancel_hourglass): Remove.
14301 (show_hourglass, hide_hourglass): Remove prototypes and static
14302 modifiers.
14303 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14304 hourglass_atimer, hourglass_shown_p declaration/initialization.
14305 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14306 (DEFAULT_HOURGLASS_DELAY): Remove.
14307 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14308 hourglass_shown_p declaration/initialization.
14309
143102008-07-14 Jason Rumney <jasonr@gnu.org>
14311
14312 * w32fns.c (w32_get_arg): Remove wrapper function.
14313 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14314 directly.
14315 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14316
143172008-07-14 Kenichi Handa <handa@m17n.org>
14318
14319 * xfont.c (xfont_open): Add workaround for X's bug.
14320
143212008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14322
14323 * fontset.c: Include <stdio.h> unconditionally.
14324
143252008-07-13 Michael Albinus <michael.albinus@gmx.de>
14326
14327 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14328 for filtering.
14329
143302008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14331
14332 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14333
14334 * m/macppc.h:
14335 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14336
c4cc8b9a 14337 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14338 (SPECIAL_EMACS_INT):
14339 * m/ia64.h (SPECIAL_EMACS_INT):
14340 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14341 * s/gnu.h (NLIST_STRUCT):
14342 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14343 * s/gnu-linux.h (LINUX):
14344 * s/msdos.h (HAVE_FACES):
14345 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14346
14347 * systty.h:
14348 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14349 anymore.
14350
143512008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14352
14353 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14354 always defined as int.
14355
14356 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14357 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14358 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14359 * s/freebsd.h (HAVE_WAIT_HEADER):
14360 * s/bsd-common.h (HAVE_UNION_WAIT):
14361 * s/aix4-2.h (HAVE_WAIT_HEADER):
14362 * m/mips.h (HAVE_UNION_WAIT):
14363 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14364 (COFF, static): Do not define, they are undefined later in the file.
14365
14366 * process.c (update_status): Don't use a union.
14367 (status_convert):
14368 (sigchld_handler): Use int instead of WAITTYPE.
14369
143702008-07-12 Chong Yidong <cyd@stupidchicken.com>
14371
14372 * indent.c (Fvertical_motion): Restore hscroll before moving to
14373 goal column.
14374
143752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14376
14377 * lisp.h: Remove left over code.
14378
143792008-07-11 Andreas Schwab <schwab@suse.de>
14380
14381 * lisp.h: Fix logic in last change.
14382
14383 * menu.h: New file.
14384 * menu.c: Include it.
14385 * xmenu.c: Likewise.
14386 * Makefile.in: Update dependencies.
14387
143882008-07-11 Kenichi Handa <handa@m17n.org>
14389
14390 * fontset.c (fontset_from_font): Cancel the previous change.
14391
143922008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14393
14394 * lisp.h:
14395 * w32heap.c:
14396 * emacs.c:
14397 * alloc.c: Replace all references of NO_UNION_TYPE with
14398 USE_LISP_UNION_TYPE.
14399
14400 * m/xtensa.h (NO_UNION_TYPE):
14401 * m/vax.h (NO_UNION_TYPE):
14402 * m/template.h (NO_UNION_TYPE):
14403 * m/sparc.h (NO_UNION_TYPE):
14404 * m/mips.h (NO_UNION_TYPE):
14405 * m/macppc.h (NO_UNION_TYPE):
14406 * m/m68k.h (NO_UNION_TYPE):
14407 * m/iris4d.h (NO_UNION_TYPE):
14408 * m/intel386.h (NO_UNION_TYPE):
14409 * m/ibms390x.h (NO_UNION_TYPE):
14410 * m/ibms390.h (NO_UNION_TYPE):
14411 * m/ibmrs6000.h (NO_UNION_TYPE):
14412 * m/ia64.h (NO_UNION_TYPE):
14413 * m/hp800.h (NO_UNION_TYPE):
14414 * m/arm.h (NO_UNION_TYPE):
14415 * m/amdx86-64.h (NO_UNION_TYPE):
14416 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14417 defining it the same.
14418
144192008-07-10 Chong Yidong <cyd@stupidchicken.com>
14420
14421 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14422
144232008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14424
14425 * fileio.c:
50426a04 14426 * sysdep.c:
aac0c6e3
MR
14427 * systty.h:
14428 * m/ibmrs6000.h:
14429 * m/iris4d.h:
14430 * s/aix4-2.h:
14431 * s/freebsd.h:
14432 * s/gnu-linux.h:
14433 * s/hpux10-20.h:
14434 * s/hpux11.h:
14435 * s/netbsd.h:
14436 * s/sol2-3.h:
14437 * s/sol2-4.h:
14438 * s/sol2.h:
14439 * s/usg5-4.h:
14440 * s/vms.h: Remove references to unused variables.
14441
144422008-07-10 Andreas Schwab <schwab@suse.de>
14443
14444 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14445 pattern before matching the generic family.
14446
144472008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14448
14449 * unexec.c:
14450 * s/vms.h:
14451 * s/usg5-4-2.h:
14452 * s/sol2-5.h:
14453 * s/freebsd.h:
14454 * s/darwin.h: Remove dead code.
14455
14456 * m/template.h:
14457 * m/sparc.h:
14458 * m/mips.h:
14459 * m/m68k.h:
14460 * m/iris4d.h:
14461 * m/intel386.h:
14462 * m/ibms390x.h:
14463 * m/ibms390.h:
14464 * m/ia64.h:
14465 * m/hp800.h:
14466 * m/arm.h:
14467 * m/amdx86-64.h: Remove dead code and references to unused
14468 and compiler defined symbols.
14469
14470 * unexmips.c:
14471 * unexelf.c: Remove references to desupported systems.
14472
14473 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14474
14475 * m/powermac.h: Remove boilerplate comments.
14476 (NO_REMAP): Remove unused definition.
14477
14478 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14479 define them.
14480
144812008-07-10 Kenichi Handa <handa@m17n.org>
14482
14483 * xfont.c (xfont_open): Log the reason of failure.
14484
144852008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14486
14487 * fontset.c (fontset_get_font_group):
14488 * font.c (font_check_otf): Specify argument types.
14489
144902008-07-09 Kenichi Handa <handa@m17n.org>
14491
14492 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14493 non-ASCII char is found.
14494
14495 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14496 (reorder_font_vector): Change the arg preferred_family to font.
14497 Prefer the spec matching with font.
14498 (fontset_get_font_group): New function.
14499 (fontset_find_font): Change the format of an element of a realized
14500 fontset. Use fontset_get_font_group.
14501 (fontset_font): Try the current fontset, the default fontset, the
14502 fallbacks of the current fontset, and the fallbacks of the default
14503 fontset in this order.
14504 (face_for_char): Delete the shortcut to use the current font.
14505 (fontset_from_font): Don't set fonts for Latin in the fontset.
14506
14507 * font.h (font_make_object, font_match_p): Adjust prototypes.
14508
14509 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14510
14511 * font.c (font_make_object): New arg entity and pixelsize.
14512 (font_check_otf_features, font_check_otf): New functions.
14513 (font_match_p): Check :lang, :script, and :otf properties.
14514
14515 * xfont.c (xfont_open): Adjust it for the change of
14516 font_make_object.
14517 (xfont_text_extents): Fix initial setting of metrics.
14518
14519 * ftfont.c (struct ftfont_info): New member index, delete member
14520 fc_charset_idx. Make the member order compatible with struct
14521 xftfont_info.
14522 (fc_charset_table): Change charset names to registry names.
14523 (ftfont_pattern_entity): Delete the args registry and
14524 fc_charset_idx. Change the value of :font-entity property
14525 to (FONTNAME . INDEX). Always set :registry property to
14526 `iso10646-1'.
14527 (struct ftfont_cache_data): New struct.
14528 (ftfont_lookup_cache): New arg for_face.
14529 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14530 (ftfont_driver): Set the member otf_capability.
14531 (ftfont_get_charset): Adjust it for the change of
14532 fc_charset_table.
14533 (OTF_TAG_SYM): New macro.
14534 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14535 for the change of fc_charset_table.
14536 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14537 ftfont_pattern_entity. Add FC_INDEX to objset.
14538 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14539 and ftfont_pattern_entity.
14540 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14541 font_make_object, struct ftfont_info.
14542 (ftfont_has_char): Use ftfont_get_fc_charset.
14543 (ftfont_otf_features, ftfont_otf_capability): New functions.
14544 (ftfont_shape): Use ftfont_get_otf.
14545 (ftfont_text_extents): Fix initial setting of metrics.
14546
14547 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14548 member order compatible with struct ftfont_info.
14549 (xftfont_open): Add FC_CHARSET to the pattern. Set
14550 xftfont_info->ft_size. Don't unlock the face. Check BDF
14551 properties if appropriate.
14552 (xftfont_close): Unlock the face.
14553 (xftfont_anchor_point, xftfont_shape): Deleted.
14554 (syms_of_xftfont): Don't set members anchor_point and shape of
14555 xftfont_driver.
14556
14557 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14558 font_make_object.
14559
14560 * w32font.c (w32font_open): Adjust it for the change of
14561 font_make_object.
14562 (w32font_open_internal): Don't set properties of font_object here.
14563
145642008-07-08 Chong Yidong <cyd@stupidchicken.com>
14565
14566 * macfns.c (x_create_tip_frame):
14567 * w32fns.c (x_create_tip_frame):
14568 * xfns.c (x_create_tip_frame): Pass parameter argument to
14569 face-set-after-frame-default.
14570
14571 * xfaces.c (Finternal_merge_in_global_face): Save merged
14572 attributes for the default face back into the face vector.
14573
145742008-07-08 Andreas Schwab <schwab@suse.de>
14575
14576 * fontset.h: Declare fontset_from_font. Don't declare
14577 new_fontset_from_font and fontset_from_font_name.
14578 * xterm.c: Include "fontset.h".
14579 * Makefile.in (xterm.o): Update dependencies.
14580
145812008-07-08 Glenn Morris <rgm@gnu.org>
14582
14583 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14584 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14585
145862008-07-07 Chong Yidong <cyd@stupidchicken.com>
14587
14588 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14589 (x_set_frame_parameters): Don't bind it.
14590
145912008-07-07 Juanma Barranquero <lekktu@gmail.com>
14592
14593 * w32fns.c (map_w32_filename): Declare extern.
14594
145952008-07-07 Jason Rumney <jasonr@gnu.org>
14596
14597 * w32term.c (WS_EX_LAYERED): Define if not already.
14598
145992008-07-06 Chong Yidong <cyd@stupidchicken.com>
14600
14601 * xfaces.c (set_font_frame_param): Don't try to set the font
14602 parameter if it is still unspecified in the lface.
14603
146042008-07-05 Chong Yidong <cyd@stupidchicken.com>
14605
14606 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14607 face if it didn't already exist.
14608
14609 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14610
146112008-07-05 Andreas Schwab <schwab@suse.de>
14612
14613 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14614
146152008-07-05 Chong Yidong <cyd@stupidchicken.com>
14616
14617 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14618 word-wrapping.
14619 (IT_DISPLAYING_WHITESPACE): New macro.
14620 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14621 when word-wrapping. Simplify word-wrapping logic. Use correct
14622 pixel positions when saving copies of the iterator.
14623 (display_line): Use proper wrap point if the last character on a
14624 line was preceded by whitespace.
14625
146262008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14627
14628 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14629
146302008-07-04 Kenichi Handa <handa@m17n.org>
14631
14632 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14633
14634 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14635
146362008-07-02 Jason Rumney <jasonr@gnu.org>
14637
14638 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14639 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14640
14641 * xdisp.c (next_element_from_display_vector): Move assignment out
14642 of if statement.
14643
146442008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14645
14646 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14647
14648 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14649 (syms_of_fileio): Initialize and export them.
14650 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14651
14652 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14653 (Fsystem_move_file_to_trash): New function.
14654 (syms_of_w32fns): Export it to lisp.
14655
146562008-07-01 Jason Rumney <jasonr@gnu.org>
14657
14658 * w32font.c (w32font_text_extents): Don't count overhang as part
14659 of width.
14660
146612008-06-30 Miles Bader <miles@gnu.org>
14662
14663 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14664 Add `avoid_cursor_p' field.
14665
14666 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14667 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14668 (append_glyph, append_composite_glyph, produce_image_glyph)
14669 (append_stretch_glyph): Initialize avoid_cursor_p.
14670 (get_it_property): Rename from `get_line_height_property'.
14671 (x_produce_glyphs): Use get_it_property.
14672 (handle_line_prefix, push_display_prop): New functions.
14673 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14674 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14675 New variables.
14676 (syms_of_xdisp): Initialize them.
14677
146782008-06-30 Kenichi Handa <handa@m17n.org>
14679
14680 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14681 XftDefaultSubstitute (they are called in XftFontMatch).
14682 (xftfont_open): Fix args to ftfont_font_format.
14683
14684 * ftfont.c (fc_charset_table): New member lang.
14685 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14686 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14687 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14688 (ftfont_open): Fix args to ftfont_font_format.
14689 (ftfont_font_format): New arg filename.
14690
146912008-06-30 Chong Yidong <cyd@stupidchicken.com>
14692
14693 * xfaces.c (Finternal_merge_in_global_face): If default face was
14694 modified, realize it again. Update the font face attribute.
14695
146962008-06-29 Jason Rumney <jasonr@gnu.org>
14697
14698 * w32term.c (x_set_frame_alpha): Fix logic.
14699
147002008-06-29 Kenichi Handa <handa@m17n.org>
14701
14702 * fontset.c (Finternal_char_font): Return font-object instead of
14703 font-name.
14704
14705 * composite.c (get_composition_id): Fix the width calculation for TAB.
14706
147072008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14708
14709 * indent.c (Fvertical_motion): Properly handle float column arg.
14710
147112008-06-28 Jason Rumney <jasonr@gnu.org>
14712
14713 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14714 (pfnSetLayeredWindowAttributes): New function pointer.
14715 (w32_initialize): Initialize it when supported.
14716 (x_set_frame_alpha): New function.
14717
14718 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14719 (w32_frame_parm_handlers): Set alpha handler.
14720
14721 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14722
147232008-06-27 Jason Rumney <jasonr@gnu.org>
14724
14725 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14726 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14727 (w32_to_x_charset, x_to_w32_charset)
14728 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14729 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14730 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14731 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14732 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14733 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14734 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14735 (Qw32_charset_unicode): Remove.
14736 (syms_of_w32fns): Update for above changes.
14737
14738 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14739 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14740 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14741 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14742 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14743 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14744 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14745 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14746 (syms_of_w32font): Update for above changes.
14747
147482008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14749
14750 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14751 removed #if.
14752 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14753
147542008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14755 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14756
14757 * makefile.w32-in (LOCAL_FLAGS):
14758 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14759
14760 * sysdep.c (_spawnlp, _getpid):
14761 Declare with explicit _cdecl instead of _CRTAPI1.
14762
14763 * editfns.c (Fget_internal_run_time):
14764 Check for WINDOWSNT with #ifdef, not #if.
14765
147662008-06-26 Jason Rumney <jasonr@gnu.org>
14767
14768 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14769
14770 * w32term.c (x_draw_glyph_string_foreground)
14771 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14772 Use FONT_HANDLE macro.
14773 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14774
14775 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14776 (uniscribe_encode_char): Use FONT_HANDLE macro.
14777
14778 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14779 (w32font_text_extents): Use precast w32_font.
14780 (w32font_close): Free cached metrics.
14781 (w32font_open_internal): Allocate space for name on stack.
14782
147832008-06-26 Chong Yidong <cyd@stupidchicken.com>
14784
14785 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14786
147872008-06-26 Jason Rumney <jasonr@gnu.org>
14788
14789 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14790 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14791
147922008-06-26 Juanma Barranquero <lekktu@gmail.com>
14793
14794 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14795
147962008-06-26 Jason Rumney <jasonr@gnu.org>
14797
14798 * w32bdf.c, w32bdf.h: Remove obsolete files.
14799
14800 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14801
14802 * w32gui.h: Don't include w32bdf.h.
14803 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14804 Remove obsolete font support.
14805
14806 * w32font.h (struct w32font_info): Remove compat_w32_font.
14807 Add hfont member.
14808 (FONT_COMPAT): Remove obsolete macro.
14809
14810 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14811 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14812 (w32font_open_internal): Remove compat code. Set new hfont member.
14813 (Fx_select_font): Use new hfont member.
14814
14815 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14816 (uniscribe_encode_char): Use new hfont member.
14817
14818 * w32term.c (x_draw_glyph_string_foreground)
14819 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14820 (x_draw_glyph_string): Use metrics in w32font_info.
14821
148222008-06-26 Kenichi Handa <handa@m17n.org>
14823
14824 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14825
148262008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14827
14828 * unexnext.c:
14829 * m/ews4800.h:
14830 * m/hp9000s300.h:
14831 * m/ibm370aix.h:
14832 * m/mips-siemens.h:
14833 * m/ncr386.h:
14834 * m/next.h:
14835 * m/pmax.h:
14836 * m/powerpcle.h:
14837 * m/tandem-s2.h:
14838 * s/386bsd.h:
14839 * s/bsd386.h:
14840 * s/bsd4-1.h:
14841 * s/bsd4-2.h:
14842 * s/bsdos2-1.h:
14843 * s/bsdos2.h:
14844 * s/bsdos3.h:
14845 * s/bsdos4.h:
14846 * s/nextstep.h:
14847 * s/ultrix4-3.h:
14848 * s/usg5-0.h:
14849 * s/usg5-2-2.h:
14850 * s/usg5-2.h:
14851 * s/usg5-4-3.h:
14852 * s/ux4800.h:
14853 * s/uxpds.h:
14854 * s/uxpv.h: Remove support for obsolete systems.
14855 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14856 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14857 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14858 Remove, insert contents in s/aix4-2.h.
14859 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14860 * s/bsd4-3.h: Rename to ...
14861 * s/bsd-common.h: ... this.
14862 * data.c:
14863 * doc.c:
14864 * ecrt0.c:
14865 * emacs.c:
14866 * fileio.c:
14867 * floatfns.c:
14868 * keyboard.c:
14869 * mem-limits.h:
14870 * print.c:
14871 * process.c:
14872 * sysdep.c:
14873 * syssignal.h:
14874 * systty.h:
14875 * syswait.h:
14876 * term.c:
14877 * unexec.c:
14878 * unexelf.c:
14879 * unexhp9k800.c:
14880 * m/hp800.h:
14881 * m/ibmrs6000.h:
14882 * m/mips.h:
14883 * m/vax.h:
14884 * s/darwin.h:
14885 * s/freebsd.h:
14886 * s/gnu.h:
14887 * s/ms-w32.h:
14888 * s/msdos.h:
14889 * s/netbsd.h:
14890 * s/template.h: Remove references to obsolete variables.
14891
14892 * Makefile.in: Add dependencies for all unexec files.
14893 (admindir): Remove unused variable.
14894 (UNEXEC_SRC): Remove references.
14895
148962008-06-25 Chong Yidong <cyd@stupidchicken.com>
14897
14898 * xfns.c (x_default_font_parameter): If Xft is available, first
14899 try Monospace-12 for the default font.
14900
149012008-06-25 Jason Rumney <jasonr@gnu.org>
14902
14903 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14904
149052008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14906
14907 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14908
14909 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14910
149112008-06-25 Juanma Barranquero <lekktu@gmail.com>
14912
14913 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14914 <scroll-conservatively>: Fix typo in docstring.
14915
14916 * xselect.c (Fx_send_client_event): Doc fix.
14917
149182008-06-25 Kenichi Handa <handa@m17n.org>
14919
14920 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14921
14922 * font.c (font_parse_fcname): Remove unused variables.
14923 (font_sort_entites): Delete the arg SPEC. Caller changed.
14924 Fix for the case of ! best_only.
14925 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14926
14927 * lisp.h (Fstring_to_unibyte): EXFUN it.
14928
14929 * character.h (str_to_unibyte): Extern it.
14930
14931 * character.c (str_to_unibyte): New function.
14932
14933 * fns.c (Fstring_to_unibyte): New function.
14934 (syms_of_fns): Defsubr it.
14935
149362008-06-24 Kenichi Handa <handa@m17n.org>
14937
14938 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14939 DPI too.
14940 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14941
149422008-06-24 Andreas Schwab <schwab@suse.de>
14943
14944 * Makefile.in (${lispsource}loaddefs.el): Rename from
14945 ../lisp/loaddefs.el.
14946 (bootstrap-clean): Do what distclean does but don't remove
14947 Makefile.
14948 (distclean): Depend on bootstrap-clean and remove Makefile.
14949
149502008-06-24 Chong Yidong <cyd@stupidchicken.com>
14951
14952 * buffer.h (struct buffer): New member word_wrap.
14953
14954 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14955 word-wrap.
14956 (init_buffer_once): Initialize them.
14957
14958 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14959 line_wrap enum possessing three possible values.
14960
14961 * termopts.h: Replace truncate_partial_width_windows with
14962 Vtruncate_partial_width_windows.
14963
14964 * dispnew.c (direct_output_for_insert): Avoid direct output when
14965 inserting a space with word wrap on.
14966
14967 * indent.c (compute_motion): Obey integer values of
14968 truncate-partial-width-windows.
14969
14970 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14971 replacing truncate_partial_width_windows.
14972 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14973 truncate only if the window width is below that integer.
14974 (start_display, resize_mini_window, produce_stretch_glyph)
14975 (display_string, move_it_in_display_line_to): Use line_wrap.
14976 (back_to_previous_visible_line_start, reseat_1): Reset
14977 string_from_display_prop_p.
14978 (display_line): Extend default face to end of line when wrapping.
14979
149802008-06-24 Kim F. Storm <storm@cua.dk>
14981
14982 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14983 to wrap continued lines at word boundaries.
14984
149852008-06-24 Jason Rumney <jasonr@gnu.org>
14986
14987 * font.c (Ffont_face_attributes): Multiply pixel size before point
14988 conversion to avoid multiplying rounding error.
14989
149902008-06-23 Jason Rumney <jasonr@gnu.org>
14991
14992 * w32term.c (x_draw_glyph_string_background)
14993 (x_draw_glyph_string): Remove old bdf font code.
14994
14995 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14996
149972008-06-22 Kenichi Handa <handa@m17n.org>
14998
14999 * font.c (font_find_for_lface): Try the adstyle specified in
15000 the property of LFACE_FONT of LFACE (if any).
15001
150022008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15003 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15004
15005 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15006
150072008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15008
15009 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15010 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15011 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15012 (witness-emacs): Remove.
15013 (lisp, shortlisp): Move loaddefs.el earlier.
15014 (mostlyclean): Forget about witness-emacs.
15015
150162008-06-22 Glenn Morris <rgm@gnu.org>
15017
15018 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15019 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15020
150212008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15022
15023 * Makefile.in (PRECOMP): Remove.
15024 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15025 (witness-emacs): Run `compile-first'.
15026 (.el.elc): Use the new compile-onefile target.
15027
150282008-06-21 Kenichi Handa <handa@m17n.org>
15029
15030 * xftfont.c (xftfont_open): Handle QCembolden only when
15031 FC_EMBOLDEN is defined.
15032
150332008-06-21 Andreas Schwab <schwab@suse.de>
15034
15035 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15036 (.el.elc): Likewise.
15037
150382008-06-21 Miles Bader <miles@gnu.org>
15039
15040 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15041 build dir, not the lisp source dir.
15042
150432008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15044
15045 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15046 (bootstrapclean): Remove.
15047 (.el.elc): New rule.
15048 (PRECOMP): New var.
15049 (../lisp/subdirs.el): Remove.
15050 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15051 (witness-emacs): New target.
15052 (mostlyclean): Remove witness-emacs as well.
15053 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15054 Add witness-emacs dependency.
15055
150562008-06-20 Chong Yidong <cyd@stupidchicken.com>
15057
15058 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15059 defined by the font.
15060
150612008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15062
15063 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15064 (bootstrap-clean): New target that keeps TAGS around.
15065 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15066 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15067
150682008-06-20 Jason Rumney <jasonr@gnu.org>
15069
15070 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15071 Remove obsolete font code.
15072
15073 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15074 to determine language support.
15075
150762008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15077
15078 * sysdep.c (cfsetspeed): New fun extracted from the code.
15079 (cfmakeraw): Move before first use.
15080
150812008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15082
15083 * sysdep.c (cfmakeraw): Provide fallback implementation.
15084 (serial_configure): Provide fallback implementation of cfsetspeed.
15085
150862008-06-20 Kenichi Handa <handa@m17n.org>
15087
15088 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15089 the pattern.
15090
15091 * fontset.c (fontset_from_font): Copy font_spec before changing
15092 the elements.
15093
15094 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15095
150962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15097
15098 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15099 for explicit `font' parameters.
15100
15101 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15102
151032008-06-19 Kenichi Handa <handa@m17n.org>
15104
15105 * frame.c: Include <ctype.h>.
15106 (x_set_font_backend): Allow spacing characters in the X resource
15107 for FontBackend.
15108
151092008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15110
15111 * w32fns.c, xfns.c (Qfont_param): New var.
15112 (syms_of_w32fns): Initialize it.
15113 (x_default_font_parameter): Record explicit `font' into
15114 `font-parameter'.
15115
151162008-06-18 Kenichi Handa <handa@m17n.org>
15117
15118 * font.c (font_parse_xlfd): Fix previous change.
15119 (font_parse_fcname): Don't use :fc-unknown-spec.
15120 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15121 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15122 (font_add_log): Prepend the driver name to the resulting fonts.
15123
15124 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15125 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15126 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15127
15128 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15129 (QCembolden): New variables.
15130 (syms_of_xftfont): DEFSYM them.
15131 (xftfont_open): Call XftFontMatch. Don't trust the result of
15132 XftTextExtents8 if the pixel_size is less than 5.
15133
151342008-06-18 Andreas Schwab <schwab@suse.de>
15135
15136 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15137 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15138
151392008-06-18 Jason Rumney <jasonr@gnu.org>
15140
15141 * w32font.c (w32font_list, w32font_match): Add logging.
15142
15143 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15144
151452008-06-17 Chong Yidong <cyd@stupidchicken.com>
15146
15147 * font.c (font_parse_fcname): Store divider characters for
15148 unknown-spec list. For known key symbols, intern using correct
15149 symbol name.
15150
151512008-06-17 Kenichi Handa <handa@m17n.org>
15152
15153 * xfaces.c (realize_default_face): If the frame is not on window
15154 system, set the fontset of face to nil.
15155
151562008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15157
15158 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15159
151602008-06-16 Juanma Barranquero <lekktu@gmail.com>
15161
15162 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15163 (build_font_name_from_vector): Delete externs.
15164
15165 * xfaces.c (struct font_name): Don't declare.
15166
151672008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15168
15169 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15170
151712008-06-16 Chong Yidong <cyd@stupidchicken.com>
15172
15173 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15174
151752008-06-16 Juanma Barranquero <lekktu@gmail.com>
15176
15177 * font.c (Ffont_spec): Fix usage in docstring.
15178 (Ffont_face_attributes): Doc fix.
15179
151802008-06-16 Andreas Schwab <schwab@suse.de>
15181
15182 * font.c (Ffont_face_attributes): Fix definition.
15183
151842008-06-16 Jason Rumney <jasonr@gnu.org>
15185
15186 * font.h (font_style_symbolic_from_value): Remove.
15187
15188 * font.c (font_style_symbolic_from_value): Remove.
15189 (font_style_symbolic): Revert to pre 2008-06-13 version.
15190
15191 * w32font.c (w32_to_fc_weight): New function.
15192 (w32font_full_name, logfont_to_fcname): Use it.
15193
151942008-06-16 Kenichi Handa <handa@m17n.org>
15195
15196 * font.c (font_check_object): Delete it.
15197 (font_clear_cache): Check if a font-object is alive.
15198 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15199 font-object to nil.
15200 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15201 (font_at): Don't call font_check_object.
15202 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15203
152042008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15205
15206 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15207
152082008-06-16 Chong Yidong <cyd@stupidchicken.com>
15209
15210 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15211
152122008-06-15 Chong Yidong <cyd@stupidchicken.com>
15213
15214 * font.c (font_parse_fcname): Only one decimal point.
15215 (font_unparse_fcname): Handle data in family and foundry indices
15216 as symbols, not strings.
15217 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15218
15219 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15220
15221 * font.h (font_unparse_gtkname): Add prototype.
15222
152232008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15224
15225 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15226
152272008-06-15 Andreas Schwab <schwab@suse.de>
15228
15229 * font.c (font_update_drivers): Fix crash when no drivers match.
15230
152312008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15232
15233 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15234 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15235
152362008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15237
15238 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15239
152402008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15241
15242 * process.c (Fserial_process_configure, Fprocess_send_eof):
15243 Use EQ to compare Lisp_Objects.
15244
152452008-06-13 Jason Rumney <jasonr@gnu.org>
15246
15247 * w32fns.c (Fw32_select_font): Remove old font API function.
15248
15249 * w32font.c (logfont_to_fcname): New function.
15250 (Fx_select_font): New font dialog function compatible with
15251 GTK/fontconfig version.
15252
15253 * font.c (font_style_symbolic_from_value): New function.
15254 (font_style_symbolic): Use it.
15255
15256 * font.h (font_style_symbolic_from_value): Declare new function.
15257
152582008-06-13 Juanma Barranquero <lekktu@gmail.com>
15259
15260 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15261 <font-width-table>: Fix typos in docstrings.
15262
152632008-06-13 Daniel Engeler <engeler@gmail.com>
15264
15265 These changes add serial port access.
15266 * process.c: Add HAVE_SERIAL.
15267 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15268 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15269 (list_processes_1, select_wrapper, Fstop_process)
15270 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15271 (status_notify): Modify to handle serial processes.
15272 [HAVE_SERIAL] (Fserial_process_configure)
15273 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15274 New functions.
15275 * process.h (struct Lisp_Process): Add `type'.
15276 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15277 New functions.
15278 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15279 serial ports.
b71ac3dd 15280 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15281 * w32.h: Add FILE_SERIAL.
15282 (struct _child_process): Add ovl_read, ovl_write.
15283
152842008-06-13 Kenichi Handa <handa@m17n.org>
15285
15286 * dispextern.h (enum lface_attribute_index): New member
15287 LFACE_FOUNDRY_INDEX.
15288
15289 * font.c (font_score): Delete arg alternate_families. Check only
15290 weight, slant, width, and size. Ignore the difference of alias
15291 style symbols.
15292 (font_sort_entites): Adjust for the above change. Reflect the
15293 order of font-driver to scores.
15294 (font_list_entities): Don't check alternate_familes here.
15295 (font_clear_prop): Handle foundry.
15296 (font_update_lface): Don't parse "foundry-family" form here.
15297 Handle FONT_FOUNDRY_INDEX.
15298 (font_find_for_lface): Likewise. Handle alternate families here.
15299 If registry is nil, try iso8859-1 and ascii-0.
15300 (font_open_for_lface): Pay attention to size in ENTITY.
15301 (font_open_by_name): Simplify by calling font_load_for_lface.
15302 (free_font_driver_list): Delete it.
15303 (font_update_drivers): Preserve the order of backends.
15304 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15305 of font_score and font_sort_entites.
15306 (font_update_sort_order): Likewise.
15307
15308 * xfaces.c (LFACE_FOUNDRY): New macro.
15309 (check_lface_attrs): Check foundry.
15310 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15311 (merge_face_vectors): Check foundry.
15312 (merge_face_ref): Likewise.
15313 (Finternal_set_lisp_face_attribute): Likewise.
15314 (x_update_menu_appearance): Likewise.
15315 (Finternal_get_lisp_face_attribute): Likewise.
15316 (lface_hash): Likewise.
15317 (lface_same_font_attributes_p): Likewise.
15318 (x_supports_face_attributes_p): Likewise.
15319 (tty_supports_face_attributes_p): Likewise.
15320 (Finternal_set_alternative_font_family_alist): Intern strings.
15321 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15322 (realize_default_face): Set LFACE_FOUNDRY (lface).
15323
15324 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15325 font-driver at first.
15326
15327 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15328
153292008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15330
15331 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15332
153332008-06-12 Jim Meyering <meyering@redhat.com>
15334
15335 Make unexec_free handle NULL the same way free does.
15336 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15337
153382008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15339
15340 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15341 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15342 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15343 (WEAK_ALIAS): Simplify.
15344 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15345 when searching a unibyte buffer.
15346
153472008-06-12 Chong Yidong <cyd@stupidchicken.com>
15348
15349 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15350
153512008-06-12 Juanma Barranquero <lekktu@gmail.com>
15352
15353 * w32font.c: Include ctype.h.
15354
153552008-06-11 Jason Rumney <jasonr@gnu.org>
15356
15357 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15358 misreported as space.
15359 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15360 as aliases for registry iso10646-1.
15361
153622008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15363
15364 * buffer.c (clone_per_buffer_values): Skip `name'.
15365
153662008-06-11 Chong Yidong <cyd@stupidchicken.com>
15367
15368 * font.c (font_parse_fcname): Fix last change; accept decimal
15369 points in font size.
15370
153712008-06-10 Jason Rumney <jasonr@gnu.org>
15372
15373 * w32uniscribe.c (add_opentype_font_name_to_list):
15374 Skip non unicode fonts.
15375
153762008-06-10 Chong Yidong <cyd@stupidchicken.com>
15377
15378 * xfns.c (Fx_font_dialog): New function.
15379
15380 * gtkutil.c (xg_dialog_response_cb): Rename from
15381 xg_file_response_callback.
15382 (pop_down_dialog): Rename from pop_down_file_dialog.
15383 (xg_get_file_name): Callers changed.
15384 (xg_get_font_name): New function.
15385
15386 * gtkutil.h (xg_get_font_name): Insert prototype.
15387
153882008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15389
15390 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15391 x_underline_minimum_display_offset.
15392 (syms_of_xdisp): Declare it here rather than in xterm.c.
15393 * dispextern.h (underline_minimum_offset): Declare it.
15394 * w32term.c (x_draw_glyph_string): Use it.
15395 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15396 (syms_of_xterm): Don't declare it any more.
15397 (x_draw_glyph_string): Adjust to the new name.
15398
8719abec 153992008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15400
15401 * xterm.c (x_underline_minimum_display_offset): New var.
15402 (x_draw_glyph_string): Use it.
15403 (syms_of_xterm): Declare it.
15404
154052008-06-10 Chong Yidong <cyd@stupidchicken.com>
15406
15407 * font.c (font_parse_fcname): Accept GTK-style font names too.
15408
154092008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15410
15411 * dired.c (file_name_completion): Don't return t if the match is exact
15412 but with different capitalization.
15413 * minibuf.c (Ftry_completion): Simplify.
15414
15415 * window.c (Vwindow_point_insertion_type): New var.
15416 (set_window_buffer): Use it.
15417 (syms_of_window): Init and export it to Lisp.
15418
154192008-06-10 Kenichi Handa <handa@m17n.org>
15420
15421 * font.h (font_intern_prop): Prototype adjusted.
15422
15423 * font.c (font_intern_prop): New arg force_symbol.
15424 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15425 Adjust for the change of font_intern_prop.
15426
15427 * ftfont.c (ftfont_pattern_entity):
15428 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15429 (w32_registry):
15430 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15431 the change of font_intern_prop.
15432
154332008-06-09 Juanma Barranquero <lekktu@gmail.com>
15434
15435 * w32menu.c (digest_single_submenu): Declare extern.
15436
154372008-06-09 Jason Rumney <jasonr@gnu.org>
15438
15439 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15440
15441 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15442 (parse_single_submenu): Remove.
15443 (digest_single_submenu): Remove.
15444 (syms_of_w32menu): Don't initialise variables that have moved
15445 to menu.c.
15446 (set_frame_menubar): Sync with version in xmenu.c.
15447 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15448
15449 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15450 Make static again.
15451
154522008-06-09 Jason Rumney <jasonr@gnu.org>
15453
15454 Changes to w32 files related to the move of common menu code
15455 to menu.c on 2008-06-08 by Chong Yidong.
15456
15457 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15458 defs to w32gui.h.
15459 (single_keymap_panes, push_menu_item, push_menu_pane):
15460 Make globally visible.
15461
15462 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15463 (local_free, malloc_widget_value, free_widget_value)
15464 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15465 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15466 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15467 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15468 (menu_items, menu_items_allocated, menu_items_used)
15469 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15470 (init_menu_items, finish_menu_items, discard_menu_items)
15471 (grow_menu_items, push_submenu_start, push_submenu_end)
15472 (push_left_right_boundary, push_menu_pane, push_menu_item)
15473 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15474 (free_menubar_widget_tree_value, parse_single_submenu)
15475 (update_submenu_strings): Remove functions.
15476 (xmalloc_widget_value): Remove and declare extern.
15477
15478 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15479 (OBJ1): Build it.
15480
15481 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15482 (local_heap, local_alloc, local_free, malloc_widget_value)
15483 (free_widget_value): Define here.
15484
154852008-06-09 Kenichi Handa <handa@m17n.org>
15486
15487 * font.h (Qascii_0): Extern it.
15488
15489 * font.c (Qascii_0): New variable.
15490 (syms_of_font): DEFSYM it.
15491 (font_open_by_name): If the registry "iso8859-1" fails, try also
15492 "ascii-0".
15493
15494 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15495
154962008-06-08 Kenichi Handa <handa@m17n.org>
15497
15498 * .gdbinit (xfont): New command.
15499
155002008-06-08 Andreas Schwab <schwab@suse.de>
15501
15502 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15503 * Makefile.in (menu.o): Update dependencies.
15504
15505 * Makefile.in (obj): Always add menu.o.
15506 * emacs.c (main): Always call syms_of_menu.
15507 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15508
155092008-06-08 Chong Yidong <cyd@stupidchicken.com>
15510
15511 * Makefile.in: Compile menu.c.
15512
15513 * lisp.h: Declare syms_of_menu.
15514
15515 * emacs.c (main): Call syms_of_menu.
15516
15517 * keyboard.h: Relocate platform-independent menu definitions from
15518 xmenu.c.
15519
15520 * menu.c: New file. Relocate platform-independent menu
15521 definitions from xmenu.c. Suggested by Adrian Robert.
15522
15523 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15524 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15525 (menu_items_used, menu_items_n_panes)
15526 (menu_items_submenu_depth): Move to keyboard.h.
15527 (init_menu_items, finish_menu_items, unuse_menu_items)
15528 (discard_menu_items, restore_menu_items, save_menu_items)
15529 (grow_menu_items, push_submenu_start, push_submenu_end)
15530 (push_left_right_boundary, push_menu_pane, push_menu_item)
15531 (keymap_panes, single_keymap_panes, single_menu_item)
15532 (list_of_panes, list_of_items, find_and_call_menu_selection)
15533 (xmalloc_widget_value, free_menubar_widget_value_tree)
15534 (parse_single_submenu, digest_single_submenu)
15535 (update_submenu_strings): Move to menu.c.
15536
155372008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15538
15539 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15540
155412008-06-06 Miles Bader <miles@gnu.org>
15542
15543 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15544 face, not frame default.
15545
155462008-06-05 Martin Rudalics <rudalics@gmx.at>
15547
15548 * window.c (pop_up_windows, pop_up_frames)
15549 (display_buffer_reuse_frames, Vpop_up_frame_function)
15550 (Vdisplay_buffer_function, Veven_window_heights)
15551 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15552 (Vspecial_display_function, Vsame_window_buffer_names)
15553 (Vsame_window_regexps, split_height_threshold)
15554 (Vsplit_window_preferred_function): Move those vars to window.el.
15555 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15556 (Fdisplay_buffer): Move those functions to window.el.
15557 (syms_of_window): Remove corresponding declarations.
15558 (display_buffer): New function.
15559 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15560 * dispnew.c (Flast_nonminibuf_frame): New function.
15561 * buffer.c (Fpop_to_buffer): Move to window.el.
15562
155632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15564
15565 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15566
155672008-06-05 Kenichi Handa <handa@m17n.org>
15568
15569 * coding.c (detect_coding): Fix previous change.
15570 (detect_coding_system): Likewise.
15571
155722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15573
15574 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15575
15576 * keymap.c (Vminibuffer_local_filename_must_match_map):
15577 Rename from Vminibuffer_local_must_match_filename_map.
15578 (syms_of_keymap):
15579 * minibuf.c (Fcompleting_read): Adjust accordingly.
15580 * commands.h: Rename declaration as well.
15581
155822008-06-05 Kenichi Handa <handa@m17n.org>
15583
15584 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15585 family name.
15586 (Ffont_put): Likewise.
15587
15588 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15589 current font-spec.
15590
15591 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15592 is unspecified.
15593
15594 * xfaces.c (realize_x_face): If the font-related face attributes
15595 are the same as those of default face, realize a new fontset from
15596 default->fontset.
15597 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15598
155992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15600
15601 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15602 (move_it_in_display_line): New wrapper.
15603
15604 * window.c (window_scroll_pixel_based_preserve_x)
15605 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15606 (window_scroll_pixel_based, window_scroll_line_based):
15607 Use them to preserve column positions.
15608 (syms_of_window): Initialize them.
15609
15610 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15611 (HPOS . VPOS) pair.
15612
15613 * dispextern.h (move_it_in_display_line): Declare.
15614
156152008-06-05 Juanma Barranquero <lekktu@gmail.com>
15616
15617 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15618 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15619 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15620
156212008-06-04 Juanma Barranquero <lekktu@gmail.com>
15622
15623 * window.c (Fset_window_parameter): Doc fix.
15624 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15625
156262008-06-04 Joakim Verona <joakim@verona.se>
15627
15628 * window.h (struct window): Add new member window_parameters.
15629
15630 * window.c (Fwindow_parameters, Fwindow_parameter)
15631 (Fset_window_parameter): New defuns.
15632 (syms_of_window): Defsubr the new defuns.
15633 (make_window): Initialize window_parameters to nil.
15634
156352008-06-04 John Paul Wallington <jpw@pobox.com>
15636
15637 * eval.c (Fdefmacro): Doc fix.
15638
156392008-06-04 Kenichi Handa <handa@m17n.org>
15640
15641 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15642 Be sure to call setup_coding_system when we find a proper coding system.
15643 (detect_coding_system): Fix handling of coding->head_ascii.
15644
156452008-06-03 Andreas Schwab <schwab@suse.de>
15646
15647 * font.c (font_prop_validate_spacing): Fix last change.
15648
156492008-06-03 Kenichi Handa <handa@m17n.org>
15650
15651 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15652 (font_parse_fcname): Fix handling of unknown key.
15653
15654 * xfont.c (xfont_list): Try an alias.
15655
15656 * charset.c (char_charset): Return NULL if the arg charset_list is
15657 specified and C doesn't belong to any of them.
15658
156592008-06-02 Chip Coldwell <coldwell@redhat.com>
15660
15661 * font.c (font_pixel_size): Don't take cdr of an integer.
15662
156632008-06-02 Jim Meyering <meyering@redhat.com>
15664
15665 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15666 * alloc.c (xfree): Return right away for a NULL arg.
15667 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15668 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15669 * mac.c (create_apple_event_from_event_ref): Likewise.
15670 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15671 Likewise.
15672 * doprnt.c (doprnt1): Likewise.
15673 * frame.c (frame): Likewise.
15674 * keyboard.c (wipe_kboard): Likewise.
15675 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15676 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15677 * term.c (tty_default_color_capabilities, maybe_fatal)
15678 (delete_tty): Likewise.
15679 * w16select.c (string): Likewise.
15680 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15681 * w32bdf.c (w32_free_bdf_font): Likewise.
15682 * w32fns.c (w32_unload_font): Likewise.
15683 * w32font.c (w32font_close): Likewise.
15684 * window.c (size_window): Likewise.
15685 * xselect.c (receive_incremental_selection): Likewise.
15686 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15687 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15688 * w32.c (stat): Likewise.
15689
15690 Remove useless if-before-free tests.
15691 * editfns.c (Fset_time_zone_rule): Likewise.
15692 * lread.c (nosuffix): Likewise.
15693 * ralloc.c (get_bloc): Likewise.
15694 * regex.c (reg_free): Likewise.
15695 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15696 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15697 * xsmfns.c (smc_save_yourself_CB): Likewise.
15698
156992008-06-02 Kenichi Handa <handa@m17n.org>
15700
15701 * font.c (font_find_for_lface): Handle float font size.
15702 (font_open_for_lface): Likewise.
15703
15704 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15705 comparing the properties.
15706
157072008-06-01 Jason Rumney <jasonr@gnu.org>
15708
15709 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15710 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15711 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15712 Don't add empty script list.
15713 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15714
157152008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15716
15717 * Makefile.in (dot, dotdot): Remove, update users.
15718 ".." has been used elsewhere in the file for a long time.
15719 (LIBXT_STATIC): Remove conditional based on unused variable.
15720
157212008-06-01 Miles Bader <miles@gnu.org>
15722
15723 * xfaces.c (Vface_remapping_alist): New variable.
15724 (syms_of_xfaces): Initialize it.
15725 (enum named_merge_point_kind): New type.
15726 (struct named_merge_point): Add `named_merge_point_kind' field.
15727 (push_named_merge_point): Make cycle detection respect different
15728 named-merge-point kinds.
15729 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15730 Remove face-name alias resolution.
15731 (lface_from_face_name): New definition using
15732 `lface_from_face_name_no_resolve'.
15733 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15734 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15735 (get_lface_attributes): New definition that layers face-remapping on
15736 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15737 (lookup_basic_face): New function.
15738 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15739 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15740 `get_lface_attributes'.
15741 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15742 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15743 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15744
15745 * xdisp.c (init_iterator): Pass base_face_id through
15746 `lookup_basic_face' when we actually use it as a face-id.
15747 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15748 DEFAULT_FACE_ID.
15749
15750 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15751 lookup the initial face-id.
15752
15753 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15754
157552008-06-01 Juanma Barranquero <lekktu@gmail.com>
15756
15757 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15758 (Fremove_text_properties): Fix typos in docstrings.
15759
157602008-05-31 Kenichi Handa <handa@m17n.org>
15761
15762 * font.c (font_list_entities): Fix the car part of data to be
15763 stored in the cache.
15764
15765 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15766
157672008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15768
15769 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15770 Add a `test' argument so another predicate than `equal' can be used.
15771 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15772 (map_char_table): Remove unused vars `c' and `i'.
15773 * lisp.h (Foptimize_char_table): Adjust declaration.
15774 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15775
157762008-05-30 Kenichi Handa <handa@m17n.org>
15777
15778 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15779 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15780 defined.
15781
157822008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15783
15784 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15785 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15786 frame-local settings for the same variable.
15787
157882008-05-30 Kenichi Handa <handa@m17n.org>
15789
15790 * fontset.c (Ffont_info): Move to font.c.
15791 (syms_of_fontset): Delete defsubr of Sfont_info.
15792
15793 * font.c (font_style_to_value, font_score): Delete casting of the
15794 args to xstcasecmp.
15795 (register_font_driver): Increment num_font_drivers only when
15796 registering the driver globally.
15797 (Ffont_info): Move from fontset.c. Handle a font object too.
15798 (syms_of_font): Defsubr Sfont_info.
15799
158002008-05-29 Kenichi Handa <handa@m17n.org>
15801
15802 * coding.h (enum define_coding_utf8_arg_index): New enum.
15803 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15804 coding_attr_utf_bom.
15805 (enum utf_bom_type): Rename from utf_16_bom_type.
15806 (struct utf_16_spec): Adjust for the above change.
15807 (struct coding_system): Add utf_8_bom in `spec' union.
15808
15809 * coding.c (CODING_UTF_8_BOM): New macro.
15810 (enum coding_category): Delete coding_category_utf_8, add
15811 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15812 coding_category_utf_8_sig.
15813 (CATEGORY_MASK_UTF_8): Delete it.
15814 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15815 (CATEGORY_MASK_UTF_8_SIG): New macros.
15816 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15817 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15818 CATEGORY_MASK_UTF_8_SIG.
15819 (CATEGORY_MASK_UTF_8): New macro.
15820 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15821 (detect_coding_utf_8): Check BOM.
15822 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15823 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15824 (encode_coding_utf_16): Likewise.
15825 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15826 (detect_coding, detect_coding_system): Handle utf-8-auto.
15827 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15828 (syms_of_coding): Fix setting up of Vcoding_category_table.
15829
158302008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15831
15832 * process.c (Faccept_process_output): If `millisec' is non-nil,
15833 `seconds' default to 0.
15834 (wait_reading_process_output): Also return non-nil if we read output
15835 from a non-running process.
15836
158372008-05-29 Jason Rumney <jasonr@gnu.org>
15838
15839 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15840 `raster' specified.
15841 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15842 in the uniscribe backend, but disallow any font that has no
15843 unicode subrange support.
15844
158452008-05-29 Juanma Barranquero <lekktu@gmail.com>
15846
15847 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15848 Fix typos in docstrings.
15849
158502008-05-29 Kenichi Handa <handa@m17n.org>
15851
15852 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15853 (Fx_family_fonts): Set frame correctly.
15854
158552008-05-28 Jason Rumney <jasonr@gnu.org>
15856
15857 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15858
158592008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15860
15861 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15862 calling build_annotations.
15863
158642008-05-28 Juanma Barranquero <lekktu@gmail.com>
15865
15866 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15867 (Fencode_coding_string):
15868 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15869 <latin-extra-code-table>: Fix typos in docstrings.
15870 (syms_of_coding) <coding-system-alist>: Doc fix.
15871 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15872
158732008-05-28 Kenichi Handa <handa@m17n.org>
15874
15875 * fontset.c (Ffont_info): Don't call font_close_object.
15876
15877 * font.c (font_parse_family_registry): Use Ffont_put to validate
15878 foundry and family.
15879 (font_delete_unmatched): Don't check spacing.
15880 (font_list_entities): Add spacing to the spec to list fonts.
15881
15882 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15883 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15884
15885 * coding.c (encode_coding_raw_text): Fix previous change.
15886 (encode_coding_object): When the dst_object is a buffer and is
15887 different from src_object, move gap to PT.
15888
158892008-05-27 Chong Yidong <cyd@stupidchicken.com>
15890
15891 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15892
158932008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15894
15895 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15896 all branches. Compute it differently.
15897
15898 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15899
159002008-05-27 Juanma Barranquero <lekktu@gmail.com>
15901
15902 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15903 into "else if () ... else ...".
15904
159052008-05-27 Jason Rumney <jasonr@gnu.org>
15906
15907 * w32font.c (w32font_open_internal): Determine if glyph indices
15908 are likely to work here.
15909
159102008-05-27 Chong Yidong <cyd@stupidchicken.com>
15911
15912 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15913 draw overlap glyphs with appropriate highlighting.
15914
159152008-05-27 Kenichi Handa <handa@m17n.org>
15916
15917 * xfont.c (xfont_open): Fix calculation of font->average_width.
15918
159192008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15920
15921 * casefiddle.c (casify_object): Try to guess better whether the
15922 argument is a byte or a char.
15923
159242008-05-26 Andreas Schwab <schwab@suse.de>
15925
15926 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15927 Always send multiples of format size.
15928
15929 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15930
159312008-05-26 Jason Rumney <jasonr@gnu.org>
15932
15933 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15934 (compute_metrics): Don't set failure if we just cleared the cache.
15935 (w32_weight_table): Remove unused variable.
15936 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15937 backwards compatibility.
15938
159392008-05-25 Kenichi Handa <handa@m17n.org>
15940
15941 * w32term.c (x_draw_glyph_string):
15942 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15943
15944 * xfaces.c: Delete unused function prototypes.
15945 (xstrlwr, font_frame): Delete them.
15946 (clear_face_cache): Delete unused variable.
15947
15948 * xftfont.c (xftfont_open): Delete unused variable.
15949 If underline_thickness is not 1, adjust underline_position.
15950
15951 * ftxfont.c (ftxfont_open): Delete unused variable.
15952
15953 * fontset.c (face_for_char): Optimize for the case of no charset
15954 property.
15955
15956 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15957 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15958 (otf_open, font_otf_capability, generate_otf_features)
15959 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15960 Comment out by surrounding "#if 0" and "#endif" for the moment.
15961 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15962 (syms_of_font): Codes for accessing above commented out.
15963
159642008-05-24 Eli Zaretskii <eliz@gnu.org>
15965
15966 * w32proc.c: Include dispextern.h.
15967
15968 * w32.c: Include dispextern.h.
15969
159702008-05-23 Juanma Barranquero <lekktu@gmail.com>
15971
15972 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15973 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15974 Fix typos in docstrings.
15975
159762008-05-23 Jason Rumney <jasonr@gnu.org>
15977
15978 * xsmfns.c: Remove includes that are already included by config.h.
15979
159802008-05-23 Kenichi Handa <handa@m17n.org>
15981
15982 * charset.c (Qemacs, charset_emacs): New variables.
15983 (char_charset): Fix for non-Unicode characters.
15984 (syms_of_charset): Define charset_emacs.
15985
15986 * w32term.c (x_draw_glyph_string): Be sure to update
15987 s->underline_thickness and s->underline_position. Be sure to draw
15988 underline within the current line area.
15989
15990 * xterm.c (x_draw_glyph_string): Be sure to update
15991 s->underline_thickness and s->underline_position. Be sure to draw
15992 underline within the current line area.
15993
15994 * fontset.c: Delete unused variables and add casting for char *
15995 throughout the file.
15996 (fontset_font): Try the fallback fonts of the current fontset
15997 before consulting the default fontset.
15998
15999 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16000
16001 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16002
160032008-05-22 Jason Rumney <jasonr@gnu.org>
16004
16005 * font.c: Don't include strings.h.
16006
16007 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16008
16009 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16010 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16011 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16012 to call xstrcasecmp.
16013
16014 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16015
16016 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16017
16018 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16019
16020 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16021
160222008-05-22 Kenichi Handa <handa@m17n.org>
16023
16024 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16025
16026 * font.c (font_prop_validate_style): Adjust for the format
16027 change of font_style_table.
16028
16029 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16030 two args.
16031
16032 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16033 two args.
16034
160352008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16036
16037 * minibuf.c (keys_of_minibuf): Delete.
16038 * lisp.h (keys_of_minibuf): Delete.
16039 * emacs.c (main): Don't call keys_of_minibuf.
16040
160412008-05-22 Kenichi Handa <handa@m17n.org>
16042
16043 * ftfont.c (ftfont_resolve_generic_family): Rename from
16044 ftfont_list_generic_family. Return a single family for each
16045 generic family.
16046 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16047 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16048 Call font_add_log.
16049 (ftfont_match): Call font_add_log.
16050
16051 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16052 (FONT_DEBUG): Define it.
16053 (font_add_log): Extern it.
16054 (font_assert): Rename from xassert.
16055
16056 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16057 (xfont_list_family): Call font_add_log.
16058 (xfont_match): Likewise.
16059 (memq_no_quit): Delete.
16060
16061 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16062 call of Ffont_xlfd_name.
16063
16064 * xfaces.c (struct table_entry, slant_table, weight_table)
16065 (swidth_table): Move to font.c.
16066
16067 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16068 xassert are changed to font_assert. Delete many unused variables.
16069 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16070 New variables.
16071 (struct table_entry): Move from xfaces.c and modified.
16072 (weight_table, slant_table, width_table): Move from xfaces.c and
16073 contents adjusted for the change of struct table_entry.
16074 (font_style_to_value, font_style_symbolic): Adjust for the
16075 format change of font_style_table.
16076 (font_parse_family_registry): Don't overwrite existing foundry and
16077 family of font_spec.
16078 (font_score): Fix calculation of diff for sizes.
16079 (font_sort_entites): Call font_add_log.
16080 (font_delete_unmatched): Return a newly created list.
16081 (font_list_entities): Fix previous change. Call font_add_log.
16082 (font_matching_entity, font_open_entity, font_close_entity):
16083 Call font_add_log.
16084 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16085 (Finternal_set_font_style_table): Delete.
16086 (BUILD_STYLE_TABLE): New macro.
16087 (build_style_table): New function.
16088 (Vfont_log, font_log_env_checked): New variables.
16089 (font_add_log): New function.
16090 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16091 Declare Lisp variables "font-weight-table", "font-slant-table",
16092 "font-width-table", and "font-log". Initialize font_style_table.
16093
160942008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16095
16096 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16097
160982008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16099 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16100
16101 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16102 (Vframe_alpha_lower_limit): New variable.
16103 (x_set_alpha): New function.
16104
16105 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16106
16107 * xfns.c (x-create-frame, Qalpha):
16108 Initialize the frame parameter `alpha'.
16109 * xterm.c (OPAQUE, OPACITY): New.
16110 (x_set_frame_alpha): New function.
16111 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16112
16113 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16114 * w32fns.c (w32_frame_parm_handlers): Likewise.
16115
161162008-05-20 Jason Rumney <jasonr@gnu.org>
16117
16118 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16119 truetype fonts to opentype list.
16120
161212008-05-20 Juanma Barranquero <lekktu@gmail.com>
16122
16123 * fontset.c (Ffontset_info): Doc fix.
16124 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16125 <ignore-relative-composition>: Fix typos in docstrings.
16126
16127 * font.c (syms-of-font) <font-encoding-alist>:
16128 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16129 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16130 (Ffont_otf_alternates): Doc fixes.
16131
161322008-05-20 Kenichi Handa <handa@m17n.org>
16133
16134 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16135 font.h through out the file.
16136 (FONT_DRIVERS): Rename from FONTOBJ.
16137 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16138 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16139
16140 * emacs.c (main): Call syms_of_font unconditionally.
16141
16142 * font.h (find_font_encoding): Extern it.
16143
16144 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16145 fontset.c.
194d44e7 16146 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16147 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16148 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16149 only when HAVE_WINDOW_SYSTEM is defined.
16150 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16151 when HAVE_WINDOW_SYSTEM is defined.
16152
16153 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16154 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16155
16156 * xfaces.c: Include font.h unconditionally.
16157 (merge_face_ref, merge_face_vectors)
16158 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16159
161602008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16161
16162 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16163 indirect_variable.
16164 * eval.c (lisp_indirect_variable): New fun.
16165 (Fuser_variable_p): Use it.
16166
161672008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16168
16169 * lisp.h (indirect_variable):
16170 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16171 Use Lisp_Symbol pointers rather than Lisp_Object.
16172 Adjust callers.
16173 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16174 To this end, change calling-convention.
16175
16176 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16177 if some non-hidden buffers are selected by string&pred.
16178
161792008-05-19 Chong Yidong <cyd@stupidchicken.com>
16180
16181 * process.c (wait_reading_process_output): Always check status
16182 when in batch mode.
16183
161842008-05-19 Kenichi Handa <handa@m17n.org>
16185
16186 * font.c (font_list_entities): Fix handling of cache.
16187 (font_matching_entity): Likewise.
16188
16189 * ftfont.c (cs_iso8859_1): Delete.
16190 (ft_face_cache): New variable.
16191 (struct ftfont_info): New member fc_charset_idx.
16192 (ftfont_build_basic_charsets): Delete.
16193 (fc_charset_table): New variable.
16194 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16195 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16196 Callers changed.
16197 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16198 (ftfont_spec_pattern): New argument fc_charset_idx.
16199 Check registry more rigidly. Change callers.
16200 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16201 change of :font-entity property of the font.
16202
16203 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16204 property of the font.
16205
162062008-05-18 Juanma Barranquero <lekktu@gmail.com>
16207
16208 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16209 (Funencodable_char_position, Fcheck_coding_systems_region)
16210 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16211 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16212 (Ffind_operation_coding_system, Fset_coding_system_priority)
16213 (Fcoding_system_eol_type): Doc fixes.
16214
162152008-05-17 Glenn Morris <rgm@gnu.org>
16216
16217 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16218
162192008-05-16 Eli Zaretskii <eliz@gnu.org>
16220
16221 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16222 and st_gid.
16223
16224 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16225 HAVE_WINDOW_SYSTEM is not defined.
16226
16227 * xfaces.c (merge_face_ref, merge_face_vectors)
16228 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16229 HAVE_WINDOW_SYSTEM is defined.
16230 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16231
162322008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16233
16234 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16235
162362008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16237
16238 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16239
162402008-05-15 Kenichi Handa <handa@m17n.org>
16241
16242 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16243 preference.
16244
162452008-05-15 Glenn Morris <rgm@gnu.org>
16246
16247 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16248
162492008-05-15 Chong Yidong <cyd@stupidchicken.com>
16250
16251 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16252 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16253
16254 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16255
162562008-05-15 Kenichi Handa <handa@m17n.org>
16257
16258 * ftfont.c (ftfont_list): Downcase family name to check generic
16259 families.
16260
16261 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16262 font-spec for QCfont value.
16263
16264 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16265 buffer. Check the return value of it.
16266
162672008-05-14 Jason Rumney <jasonr@gnu.org>
16268
16269 * w32term.c (w32_get_glyph_overhangs): Remove.
16270 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16271
162722008-05-14 Kenichi Handa <handa@m17n.org>
16273
16274 * font.c (font_prop_validate): Make nil a valid value.
16275 (font_clear_cache): Check if the cached vector of entities is nil
16276 or not.
16277
162782008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16279
16280 * emacs.c (main_thread): Conditionalize on
16281 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16282 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16283
16284 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16285 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16286 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16287
162882008-05-14 Kenichi Handa <handa@m17n.org>
16289
16290 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16291 has no corresponding coding system.
16292
162932008-05-14 Jason Rumney <jasonr@gnu.org>
16294
16295 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16296
16297 * w32font.h (w32font_open_internal): Update declaration.
16298
16299 * w32font.c (w32font_open_internal): Change last argument from
16300 w32font_info struct to font object. Fill in font object from
16301 font_entity. Get Outline metrics if possible. Use them to
16302 calculate underline position and thickness. Use xlfd name as name
16303 property. Don't set codepage.
16304 (w32font_open): Pass font_object to w32font_open_internal. Don't
16305 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16306 (w32font_draw): Use s->font.
16307 (clear_cached_metrics): Don't clear non-existent blocks.
16308
16309 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16310 font was not found.
16311 (x_draw_glyph_string): Use underline position and thickness from font.
16312
16313 * w32uniscribe.c (uniscribe_open): Pass font_object to
16314 w32font_open_internal.
16315
163162008-05-14 Kenichi Handa <handa@m17n.org>
16317
16318 These changes are to delete all legacy font-handling codes, and
16319 make Emacs use only font-backends.
16320
16321 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16322 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16323
16324 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16325
16326 * charset.h (Vcharset_non_preferred_head)
16327 (Vcurrent_iso639_language): Extern them.
16328
16329 * charset.c (Vcharset_non_preferred_head): New variable.
16330 (Vcurrent_iso639_language): New variable.
16331 (syms_of_charset): Declare it as a Lisp variable.
16332 (char_charset): Don't check non preferred charsets. As a last
16333 resort, return charset_unicode.
16334 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16335
16336 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16337 conditionals. Don't check enable_font_backend. Delete all codes
16338 used only when USE_FONT_BACKEND is not defined.
16339
16340 * dispextern.h (struct glyph_string): Change type of `font' to
16341 `struct font *'.
16342 (struct glyph_string): New member underline_position and
16343 underline_thickness.
16344 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16345 (struct face): Change type of `font' to `struct font *'. Remove
16346 members `font_name', `font_info_id'.
16347 (per_char_metric, encode_char): Delete externs.
16348 (calc_pixel_width_or_height): Adjust the prototype.
16349
16350 * emacs.c (enable_font_backend): Delete extern.
16351 (main): Don't set enable_font_backend. Don't check the command
16352 line argument "-disable-font-backend".
16353
16354 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16355 (enum font_property_index): New members FONT_DPI_INDEX,
16356 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16357 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16358 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16359 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16360 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16361 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16362 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16363 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16364 (struct font_spec, struct font_entity): New structs.
16365 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16366 (struct font): Many members from old "struct font_info" moved to
16367 here. Members font and entity deleted.
16368 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16369 the new font-related objects.
16370 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16371 (CHECK_FONT_GET_OBJECT): Likewise.
16372 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16373 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16374 (struct font_driver): New members case_sensitive anc check. Type
16375 of the member list and open changed.
16376 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16377 (font_symbolic_width, font_find_object, font_get_spec)
16378 (font_set_lface_from_name): Delete extern.
16379 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16380
16381 * font.c: Include <strings.h>.
16382 (enable_font_backend): Delete it.
16383 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16384 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16385 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16386 (null_string): Delete it.
16387 (null_vector): Make it static.
16388 (font_family_alist): Delete it.
16389 (Qnormal): Extern it.
16390 (QCextra, QClanguage): Delete it.
16391 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16392 (font_make_spec, font_make_entity, font_make_object)
16393 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16394 the string. Callers changed.
16395 (font_pixel_size): Adjusted for the format change of font-related
16396 objects.
16397 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16398 (font_style_to_value, font_style_symbolic): New function.
16399 (build_font_family_alist): Delete it.
16400 (font_registry_charsets): Use Fassoc_string instead of
16401 assq_no_quit.
16402 (font_prop_validate_symbol): Don't return null_string.
16403 (font_prop_validate_style): Adjusted for the change of
16404 style-related values in a font vector.
16405 (font_property_table): Delete entries for QClanguage and
16406 QCantialias, add entries for QCavgwidth.
16407 (get_font_prop_index): Delete the 2nd argument FROM.
16408 (font_prop_validate): Arguments changed.
16409 (font_put_extra): Adjusted for the change of font-related objects.
16410 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16411 (font_parse_fcname, font_unparse_fcname)
16412 (font_prepare_composition): Likewise.
16413 (font_parse_family_registry): Renamed from font_merge_old_spec.
16414 (otf_open): Delete the 1st arg entity.
16415 (font_otf_capability): Adjusted for the above change.
16416 (font_score): New arg alternate_families. Adjusted for the change
16417 of font-related objects.
16418 (font_sort_entites): New arg best_only.
16419 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16420 Delete them.
16421 (font_match_p): Check alternate families.
16422 (font_find_object): Delete it.
16423 (font_check_object): New function.
16424 (font_clear_cache): Adjusted for the change of font-related objects.
16425 (font_delete_unmatched): New arg.
16426 (font_list_entities): Call font_driver->list with a spec that
16427 doesn't specify style-related properties.
16428 (font_matching_entity): Arguments changed. Caller changed.
16429 (font_open_entity): Adjusted for the change of font-related objects.
16430 (font_close_object, font_has_char, font_encode_char)
16431 (font_get_name, font_get_spec): Likewise.
16432 (font_spec_from_name, font_clear_prop, font_update_lface):
16433 New functions.
16434 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16435 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16436 (font_at): Adjusted for the change of font-related objects.
16437 (font_range): New function.
16438 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16439 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16440 (Fcopy_font_spec, Fmerge_font_spec): New function.
16441 (Ffont_family_list): Renamed from list-families.
16442 (Finternal_set_font_style_table): Arguments changed.
16443 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16444 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16445 change of font-related objects.
16446 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16447
16448 * fontset.h (struct font_info): Delete it. Most members go to
16449 struct font.
16450 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16451 (enum FONT_SPEC_INDEX): Delete it.
16452 (font_info, list_fonts_func, load_font_func, query_font_func)
16453 (set_frame_fontset_func, find_ccl_program_func)
16454 (get_font_repertory_func, new_fontset_from_font_name): Delete
16455 externs.
16456 (fontset_from_font_name): Extern it.
16457 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16458 (FONT_INFO_FROM_FACE): Deleted.
16459 (face_for_font): Adjust prototype.
16460
16461 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16462 conditionals. Don't check enable_font_backend. Delete all codes
16463 used only when USE_FONT_BACKEND is not defined.
16464 (get_font_info_func, list_font_func, load_font_func)
16465 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16466 (get_font_repertory_func): Delete them.
16467 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16468 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16469 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16470 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16471 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16472 (fontset_compare_rfontdef): New function.
16473 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16474 rfont-defs by qsort. Adjusted for the change of font-group vector.
16475 (load_font_get_repertory): Deleted.
16476 (fontset_find_font): Use new macros to ref/set elements of
16477 font-def and rfont-def.
16478 (fontset_font): Fix the timing of remembering that no font for C.
16479 (free_face_fontset): Do nothing if the face has no fontset.
16480 (face_suitable_for_char_p): Use new macros to ref/set elements of
16481 rfont-def.
16482 (face_for_char): Likewise. Call face_for_char with font_object.
16483 (fs_load_font): Delete. Delete #pragma surrounding it.
16484 (fs_query_fontset): Use strcasecmp instead of strcmp.
16485 (generate_ascii_font_name): Adjusted for the format change of
16486 font-spec.
16487 (Fset_fontset_font): Likewise. Use new macros to set elements of
16488 font-def.
16489 (Fnew_fontset): Use font_unparse_xlfd to generate
16490 FONTSET_ASCII (fontset).
16491 (new_fontset_from_font_name): Deleted.
16492 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16493 a fontset is already created for the font. FIx updating of
16494 Vfontset_alias_alist.
16495 (fontset_ascii_font): Deleted.
16496 (Ffont_info): Adjusted for the format change of font-spec.
16497 (Finternal_char_font): Likewise.
16498 (Ffontset_info): Likewise.
16499 (syms_of_fontset): Don't check load_font_func.
16500
16501 * fns.c (internal_equal): Handle PREV_FONT.
16502
16503 * frame.h: Delete USE_FONT_BACKEND conditional.
16504
16505 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16506 conditionals. Don't check enable_font_backend. Delete all codes
16507 used only when USE_FONT_BACKEND is not defined.
16508 (x_set_font): Call x_new_font, not x_new_fontset2.
16509 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16510 already set for the frame.
16511
16512 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16513 a font-entity by font_make_entity. Use font_intern_prop instead
16514 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16515 font property. If a font is scalable, set avgwidth property to 0.
16516 Set font-entity property by font_put_extra.
16517 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16518 (ffont_driver): Adjusted for the change of struct font_driver.
16519 (ftfont_spec_pattern): New function.
16520 (ftfont_list): Return a list, not vector.
16521 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16522 (ftfont_list_family): Don't downcase names.
16523 (ftfont_free_entity): Deleted.
16524 (ftfont_open): Return a font-object. Adjusted for the change of
16525 struct font. Get underline_thickness and underline_position from
16526 font property. Don't update dpyinfo->smallest_font_height and
16527 dpyinfo->smallest_char_width.
16528 (ftfont_close): Don't free `struct font'.
16529 (ftfont_has_char): Adjusted for the format change of font-entity.
16530 (ftfont_encode_char, ftfont_text_extents): Likewise.
16531
16532 * ftxfont.c (ftxfont_list): Return a list, not vector.
16533 (ftxfont_open): Return a font-object. Adjusted for the change of
16534 struct font. Get underline_thickness and underline_position from
16535 font property. Don't update dpyinfo->smallest_font_height and
16536 dpyinfo->smallest_char_width.
16537 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16538 (ftxfont_draw): Adjusted for the change of struct font.
16539
16540 * image.c (image_ascent): Don't include "charset.h". Include
16541 "character.h" and "font.h".
16542
16543 * lisp.h (enum pvec_type): New member PREV_FONT.
16544 (Fassoc_string): EXFUN it.
16545
16546 * print.c: Include font.h.
16547 (print_object): Handle font-related objects.
16548
16549 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16550 conditionals. Don't check enable_font_backend. Delete all codes
16551 used only when USE_FONT_BACKEND is not defined.
16552 (handle_auto_composed_prop): Do nothing if it->f is not on a
16553 window system. Check how many following characters can be
16554 displayed by the same font.
16555 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16556 'struct font *'.
16557 (get_char_face_and_encoding): Assign the whole encoding task to
16558 the `encode-char' method of a font driver.
16559 (fill_composite_glyph_string): Adjusted for the change of `struct
16560 face' and `struct glyph_string'.
16561 (fill_glyph_string): Likewise.
16562 (get_per_char_metric): Arguments changed.
16563 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16564 and `struct glyph_string'.
16565 (produce_stretch_glyph, calc_line_height_property)
16566 (x_produce_glyphs): Likewise.
16567
16568 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16569 conditionals. Don't check enable_font_backend. Delete all codes
16570 used only when USE_FONT_BACKEND is not defined. Use
16571 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16572 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16573 (Qp): Extern them.
16574 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16575 Deleted.
16576 (struct font_name): Deleted.
16577 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16578 (compare_fonts_by_sort_order): New function.
16579 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16580 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16581 Deleted.
16582 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16583 compare_fonts_by_sort_order.
16584 (Fx_font_family_list): Call Ffont_family_list.
16585 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16586 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16587 (face_symbolic_slant, face_symbolic_swidth)
16588 (split_font_name_into_vector, build_font_name_from_vector)
16589 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16590 (font_rescale_ratio, split_font_name, build_font_name)
16591 (free_font_names, sort_fonts, x_face_list_fonts)
16592 (face_font_available_p, sorted_font_list, cmp_font_names)
16593 (font_list_1, concat_font_list, font_list, remove_duplicates):
16594 Deleted.
16595 (Fx_list_fonts): Use Ffont_list.
16596 (LFACE_AVGWIDTH): Deleted.
16597 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16598 by FONTP.
16599 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16600 (set_lface_from_font_name): Delete it.
16601 (set_lface_from_font): Renamed from
16602 set_lface_from_font_and_fontset. Caller changed. Don't set
16603 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16604 for face.
16605 (merge_face_vectors): Copy font-spec if necessary.
16606 Clear properties of the font-spec if necessary.
16607 (merge_face_ref): Clear properties of the font-spec if necessary.
16608 (Finternal_set_lisp_face_attribute): Likewise.
16609 (set_font_frame_param): Use font_load_for_lface to load a
16610 font-object, and call Fmodify_frame_parameters with it.
16611 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16612 font name by Ffont_xlfd_name.
16613 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16614 QCslant, and QCwidth.
16615 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16616 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16617 Compare fonts by EQ.
16618 (lookup_non_ascii_face): Deleted.
16619 (face_for_font): The 2nd argument changed.
16620 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16621 Check atomic font properties by case insensitive.
16622 (realize_non_ascii_face): Set face->overstrike correctly.
16623 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16624 (dump_realized_face): Get font name from
16625 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16626
16627 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16628 conditionals. Don't check enable_font_backend. Delete all codes
16629 used only when USE_FONT_BACKEND is not defined.
16630 (xic_create_xfontset): Original code deleted and renamed from
16631 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16632 (x_make_gc): Don't set GCFont in GCs.
16633 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16634 opened by "fixed".
16635 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16636 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16637 get_font_repertory_func.
16638
16639 * xfont.c: Include <stdlib.h> and "ccl.h".
16640 (struct xfont_info): New structure.
16641 (xfont_query_font): Deleted.
16642 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16643 moved from xterm.c.
16644 (xfont_driver): Adjusted for the change of struct font_driver.
16645 (compare_font_names): New function.
16646 (xfont_list_pattern): Sort font names case insensitively. Make
16647 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16648 (xfont_list): Return a list, not vector.
16649 (xfont_match): If the font doesn't have QCname property, generate
16650 a name from the other font properties.
16651 (xfont_open): Return a font-object. Adjusted for the change of
16652 struct font. Get underline_thickness and underline_position from
16653 font property. Don't update dpyinfo->smallest_font_height and
16654 dpyinfo->smallest_char_width.
16655 (xfont_close): Don't free struct font.
16656 (xfont_prepare_face): Adjusted for the change of struct font.
16657 (xfont_done_face): Deleted.
16658 (xfont_has_char): Adjusted for the change of struct font.
16659 (xfont_encode_char, xfont_draw): Likewise.
16660 (xfont_check): New function.
16661
16662 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16663 callback function.
16664 (xftfont_match): Adjusted for the format change of font-entity.
16665 (xftfont_open): Adjusted for the format change of font-entity and
16666 font-object. Adjusted for the change of struct font. Return a
16667 font-object. Don't update dpyinfo->smallest_font_height and
16668 dpyinfo->smallest_char_width.
16669 (xftfont_close): Block input while calling XftFontClose.
16670 (xftfont_prepare_face): Don't block input while calling
16671 xftfont_get_colors. Adjusted for the change of struct font.
16672 (xftfont_shape): Return value of error case fixed.
16673
16674 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16675
16676 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16677 conditionals.
16678 (FONT_WIDTH): Return (f)->max_width.
16679 (struct x_display_info): Delete member `font'.
16680 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16681 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16682 (struct x_output): Change type of `font' to `struct font *'.
16683
16684 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16685 conditionals. Don't check enable_font_backend. Delete all codes
16686 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16687 (x_per_char_metric, x_encode_char): Deleted.
16688 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16689 (x_compute_glyph_string_overhangs): Adjusted for the change of
16690 `struct face'.
16691 (x_draw_glyph_string_foreground)
16692 (x_draw_composite_glyph_string_foreground): Likewise.
16693 (x_draw_glyph_string): Likewise. Use font->underline_position and
16694 font->underline_thickness.
16695 (x_new_font): Renamed from x_new_fontset2.
16696 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16697 (x_check_font): Call `check' method of a font driver.
16698 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16699 (x_query_font, x_get_font_repertory): Deleted.
16700 (x_find_ccl_program): Renamed and moved to xfont.c.
16701 (x_redisplay_interface): Adjusted for the change of `struct
16702 redisplay_interface'.
16703
16704 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16705 conditionals. Don't check enable_font_backend. Delete all codes
16706 used only when USE_FONT_BACKEND is not defined. Surround non-used
16707 code by "#ifdef OLD_FONT" and "endif".
16708 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16709
16710 * w32font.h (struct w32font_info): New member.
16711 (FONT_COMPAT): New macro.
16712 (w32font_open_internal): Prototype adjusted.
16713
16714 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16715 OLD_FONT" and "endif".
16716
16717 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16718 conditionals. Don't check enable_font_backend. Delete all codes
16719 used only when USE_FONT_BACKEND is not defined.
16720 (w32font_open): Return a font-object. Make a font-object by
16721 font_make_object. Adjusted for the change of struct w32font_info.
16722 (w32font_close): Don't free struct font. Adjusted for the change
16723 of struct w32font_info.
16724 (w32font_encode_char, w32font_text_extents, w32font_draw):
16725 Adjusted for the change of struct w32font_info.
16726 (w32font_draw): Likewise.
16727 (w32font_list_internal): Return a list, not vector.
16728 (w32font_open_internal): Change the 4th arg to font-object.
16729 Adjusted for the change of struct w32font_info and font-object format.
16730 (add_font_name_to_list): Don't downcase names.
16731 (w32_enumfont_pattern_entity): Make a font-entity by
16732 font_make_entity. Adjusted for the format change of font-entity.
16733 Use FONT_SET_STYLE to set a style-related font property. If a
16734 font is scalable, set avgwidth property to 0. Set font-entity
16735 property by font_put_extra.
16736 (font_matches_spec): Adjusted for the format change of font-entity.
16737 (w32_weight_table, w32_decode_weight): New variables.
16738 (w32_encode_weight): New function.
16739 (fill_in_logfont): Adjusted for the format change of font-spec.
16740 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16741 weight value.
16742 (w32font_driver): Adjusted for the change of struct font_driver.
16743
16744 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16745 conditionals. Don't check enable_font_backend. Surround non-used
16746 code by "#ifdef OLD_FONT" and "endif".
16747 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16748 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16749
16750 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16751 conditionals. Don't check enable_font_backend. Delete all codes
16752 used only when USE_FONT_BACKEND is not defined. Surround non-used
16753 code by "#ifdef OLD_FONT" and "endif".
16754
16755 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16756 (uniscribe_open): Return value changed to font-object.
16757 Adjusted for the format change of font-object.
16758 (uniscribe_otf_capability): Adjusted for the change of struct font.
16759 (add_opentype_font_name_to_list): Don't downcase names.
16760 (uniscribe_font_driver): Adjusted for the change of struct
16761 font_driver.
16762
167632008-05-13 Chong Yidong <cyd@stupidchicken.com>
16764
16765 * dispnew.c (update_frame_1): Check if tty output is still valid
16766 before flushing it.
16767
167682008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16769
16770 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16771 to Gtk+ menus.
16772
167732008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16774
16775 * dired.c (file_name_completion): Tweak the code so as to always do it
16776 in a single pass. Tighten the scope of some variables.
16777
16778 * dired.c (Qdefault_directory): New var.
16779 (file_name_completion): Use it instead of Fexpand_file_name.
16780 (syms_of_dired): Initialize it.
16781
167822008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16783
16784 * fileio.c (double_dollars): Remove dead code.
16785
167862008-05-10 Eli Zaretskii <eliz@gnu.org>
16787
16788 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16789 Mention w32-get-true-file-attributes in doc string.
16790
16791 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16792
167932008-05-09 Glenn Morris <rgm@gnu.org>
16794
16795 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16796 2008-04-23.
16797
167982008-05-09 Eli Zaretskii <eliz@gnu.org>
16799
16800 Support for reporting owner and group of each file on MS-Windows:
16801 * dired.c (stat_uname, stat_gname): New functions, with special
16802 implementation for w32.
16803 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16804
16805 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16806 (dflt_group_name): New static variable.
16807 (dflt_group): Rename from the_group.
16808 (init_user_info): Init dflt_group fields. Get user's group name
16809 from LookupAccountSid.
16810 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16811 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16812 New initialization states.
16813 (globals_of_w32): Initialize them to zero. Initialize the default
16814 group name to "None".
16815 (GetFileSecurity_Name): New global var, the name of the function
16816 to call for GetFileSecurity.
16817 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16818 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16819 (get_file_security, get_security_descriptor_owner)
16820 (get_security_descriptor_group, is_valid_sid)
16821 (get_file_security_desc, get_rid, get_name_and_id)
16822 (get_file_owner_and_group): New functions.
16823 (stat): Use get_file_security_desc and get_file_owner_and_group to
16824 report the owner and primary group of each file. Don't ignore the
16825 high 32 bits of file's size, now that st_size is 64-bit wide.
16826 Fix test when to get true file attributes.
16827 (init_user_info): Use get_rid instead of equivalent inline code.
16828 (fstat): Don't ignore the high 32 bits of file's size.
16829
168302008-05-09 Chong Yidong <cyd@stupidchicken.com>
16831
16832 * image.c (png_load): Use correct bit-depth for setting background
16833 color.
16834
168352008-05-08 Eli Zaretskii <eliz@gnu.org>
16836
16837 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16838 epa-hook.elc.
16839
168402008-05-08 Juanma Barranquero <lekktu@gmail.com>
16841
16842 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16843
168442008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16845
16846 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16847 because the original parameters are in pure storage now.
16848 (mac_window): Remove unused params. Update callers.
16849
168502008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16851
16852 * lread.c (substitute_object_recurse): Use lower-level primitives.
16853 Don't signal errors when traversing sub-char-tables.
16854 Don't loop over all the possible characters when traversing char-tables.
16855
16856 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16857 just like we do in print.c.
16858
168592008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16860
16861 * minibuf.c (Ftry_completion): Remove code left over from when we used
16862 scmp instead of Fcompare_strings.
16863
168642008-05-04 Juanma Barranquero <lekktu@gmail.com>
16865
16866 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16867
168682008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16869
16870 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16871 Create bitmap context in native byte order.
16872
16873 * macterm.c (XDrawLine)
16874 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16875 context in native byte order.
16876
168772008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16878
16879 * config.in: Regenerate.
16880
16881 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16882 New definitions for Image I/O support.
16883 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16884 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16885 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16886 (mac_data_provider_release_data, image_load_image_io)
16887 [USE_MAC_IMAGE_IO]: New functions.
16888 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16889 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16890 (init_image_func_pointer) [MAC_OSX]: Remove function.
16891 (image_load_quartz2d) [MAC_OSX]: Check availability of
16892 CGImageCreateWithPNGDataProvider at compile time.
16893 Use lowercase `false' for boolean constant.
16894 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16895 Use image_load_image_io.
16896 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16897 Don't check MyCGImageCreateWithPNGDataProvider.
16898 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16899 Don't call init_image_func_pointer.
16900
16901 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16902
16903 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16904 Make variable non-static.
16905 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16906 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16907
16908 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16909 (RED_FROM_ULONG): Mask off higher bits.
16910 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16911
16912 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16913 Include AvailabilityMacros.h.
16914 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16915 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16916
169172008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16918
16919 * chartab.c (Fset_char_table_range): If range is t, really set all
16920 chars to that value.
16921
169222008-05-03 Eli Zaretskii <eliz@gnu.org>
16923
16924 * dired.c (Ffile_attributes): Don't allow the device number become
16925 negative.
16926
169272008-05-02 Daiki Ueno <ueno@unixuser.org>
16928
16929 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16930
169312008-05-02 Juri Linkov <juri@jurta.org>
16932
16933 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16934 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16935 DEFAULT argument as a list of default values in docstrings.
16936
169372008-05-01 Chong Yidong <cyd@stupidchicken.com>
16938
16939 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16940
169412008-05-01 Martin Rudalics <rudalics@gmx.at>
16942
16943 * dispnew.c (change_frame_size_1): Preserve small windows when
16944 shrinking frames by calling set_window_height|width with third
16945 arg 2.
16946
16947 * window.h (struct window): Replace field too_small_ok by field
16948 resize_proportionally.
16949
16950 * window.c (make_window): Initialize resize_proportionally.
16951 (enlarge_window): Temporarily set resize_proportionally to make
16952 sure that shrink_windows does scale the window proportionally.
16953 (shrink_windows): When window has resize_proportionally set try
16954 to shrink it proportionally by stealing from other windows.
16955 (struct saved_window, Fset_window_configuration)
16956 (compare_window_configurations): Handle resize_proportionally.
16957 (WINDOW_TOTAL_SIZE): New macro.
16958 (window_min_size, shrink_windows, size_window): Use it.
16959 (check_min_window_sizes): Remove. Invalid values of
16960 window-min-height|width are handled by window_min_size_2 now.
16961 (size_window, Fsplit_window, enlarge_window)
16962 (adjust_window_trailing_edge, grow_mini_window): Don't call
16963 check_min_window_sizes.
16964 (window_min_size_2, window_min_size_1, window_min_size):
16965 New argument safe_p for retrieving "safe" minimum sizes.
16966 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16967 (adjust_window_trailing_edge, grow_mini_window):
16968 Adjust arguments of window_min_size... functions.
16969 (shrink_windows): Argument min_size removed. New argument
16970 safe_p allows shrinking windows to their safe minimum sizes.
16971 Calculate minimum size and decide whether a window shall be
16972 deleted for each window individually.
16973 (size_window): When nodelete_p equals 2, tell shrink_windows to
16974 delete windows only if their new minimum size is no more safe.
16975 (shrink_window_lowest_first): Call window_min_size_1 to make
16976 sure to preserve modeline of bottom-most window when resizing
16977 the minibuffer.
16978 (Fset_window_configuration, Fcurrent_window_configuration)
16979 (compare_window_configurations): Do not handle
16980 window-min-height|width any more.
16981 (syms_of_window): Clarify window-min-height|width doc-strings.
16982
169832008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16984
16985 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16986 some more. Copy some of the code from Ftry_completions.
16987 Remove special case code that dates back to initial revision when the
16988 slash was only added when necessary and that can't trigger nowadays.
16989
169902008-04-27 Kenichi Handa <handa@m17n.org>
16991
16992 * font.c (font_prop_validate): Signal `error' instead of `font'.
16993
169942008-04-29 Jason Rumney <jasonr@gnu.org>
16995
16996 * w32fns.c (Fw32_battery_status): New defun.
16997 (syms_of_w32fns): Defsubr it.
16998
169992008-04-28 Andreas Schwab <schwab@suse.de>
17000
17001 * dired.c (file_name_completion): Fix another mixing of encoded
17002 and decoded names.
17003
170042008-04-28 Juanma Barranquero <lekktu@gmail.com>
17005
17006 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17007
170082008-04-27 Juanma Barranquero <lekktu@gmail.com>
17009
17010 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17011
170122008-04-27 Andreas Schwab <schwab@suse.de>
17013
17014 * dired.c (file_name_completion): Fix inappropriate mixing of
17015 encoded and decoded names.
17016
17017 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17018
17019 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17020
170212008-04-26 Eli Zaretskii <eliz@gnu.org>
17022
17023 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17024 2008-03-31, it's not needed anymore with `struct stat' definition
17025 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17026 for the same reasons.
17027
170282008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17029
17030 * m/sparc.h: Additional redefinitions for GNU/Linux.
17031
170322008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17033
17034 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17035 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17036 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17037 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17038 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17039 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17040 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17041 Likewise.
17042
17043 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17044 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17045 (mac_ax_number_of_characters): Add externs.
17046 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17047 [USE_MAC_TSM]: Likewise.
17048 (mac_handle_text_input_event) [MAC_OSX]:
17049 Handle kEventTextInputOffsetToPos for no active input area case.
17050 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17051 (mac_handle_document_access_event)
17052 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17053 (install_application_handler) [MAC_OSX]: Register handlers for
17054 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17055 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17056 Register mac_handle_document_access_event.
17057
17058 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17059 Make functions non-static.
17060
170612008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17062
17063 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17064 (read_file_name_completion_ignore_case, insert_default_directory)
17065 (Qdefault_directory): Move to minibuffer.el.
17066 (Fread_file_name): Call the new `read-file-name' instead.
17067
170682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17069
17070 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17071 Make function non-static.
17072 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17073 Remove function.
17074 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17075 Move to mactoolbox.c.
17076 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17077
17078 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17079 (mac_rect_make): New macro.
17080
17081 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17082 instead of float.
17083 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17084 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17085 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17086 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17087 CGRectMake.
17088 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17089 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17090 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17091 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17092 instead of WindowRef in argument type.
17093 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17094 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17095 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17096 instead of DISPLAY. All uses changed.
17097 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17098 (x_calc_absolute_position): Simplify so as not to use
17099 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17100
17101 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17102 instead of WindowRef in argument type.
17103 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17104 [TARGET_API_MAC_CARBON]: Remove externs.
17105 (create_apple_event, mac_event_parameters_to_lisp)
17106 [TARGET_API_MAC_CARBON]: Add externs.
17107
17108 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17109 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17110 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17111 is clicked.
17112 (x_activate_menubar): Remove extern for saved_menu_event_location.
17113 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17114 Move from mac.c.
17115
171162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17117
17118 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17119 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17120
171212008-04-23 Jason Rumney <jasonr@gnu.org>
17122
17123 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17124 attributes only for local files.
17125
17126 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17127 default to Qlocal.
17128
171292008-04-22 Juri Linkov <juri@jurta.org>
17130
17131 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17132 read-buffer-to-switch instead of using the letter "B".
17133
171342008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17135
17136 * fileio.c (Qdefault_directory): New variable.
17137 (Fread_file_name): Use it to pass `dir' to the completion functions.
17138
171392008-04-20 Chong Yidong <cyd@stupidchicken.com>
17140
17141 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17142
171432008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17144
17145 * keyboard.c (Vpre_help_message): Remove.
17146 (show_help_echo): Remove default C code.
17147
17148 * dired.c (directory_files_internal, file_name_completion):
17149 Only call ENCODE_FILE if the string is indeed decoded.
17150
171512008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17152
17153 * Makefile.in (TOOLKIT_DEFINES): Remove.
17154 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17155
171562008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17157
17158 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17159 (mactoolbox.o): New target.
17160
17161 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17162 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17163
17164 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17165 Use mac_set_frame_window_background instead of XSetWindowBackground.
17166 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17167 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17168 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17169 instead of SetWindowTitleWithCFString.
17170 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17171 Move function to mactoolbox.c.
17172 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17173 Use mac_set_window_modified instead of SetWindowModified.
17174 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17175 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17176 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17177 FrontNonFloatingWindow. Use mac_activate_window instead of
17178 ActivateWindow. Use mac_active_non_floating_window instead of
17179 ActiveNonFloatingWindow.
17180 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17181 Use mac_show_hourglass and mac_hide_hourglass.
17182 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17183 instead of GetGlobalMouse.
17184 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17185 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17186 Use mac_bring_window_to_front instead of BringToFront.
17187 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17188 mactoolbox.c.
17189 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17190 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17191 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17192 mactoolbox.c.
17193
17194 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17195 (XtPointer): Move typedef from macmenu.c.
17196 (enum button_type): Move enum from macmenu.c.
17197 (widget_value): Move typedef from macmenu.c.
17198 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17199 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17200 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17201 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17202 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17203 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17204 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17205 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17206 (Selection): Move typedef from macselect.c.
17207 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17208 macterm.c.
17209 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17210 (mac_is_window_collapsed, mac_bring_window_to_front)
17211 (mac_send_window_behind, mac_hide_window, mac_show_window)
17212 (mac_collapse_window, mac_front_non_floating_window)
17213 (mac_active_non_floating_window, mac_activate_window)
17214 (mac_move_window_structure, mac_move_window, mac_size_window)
17215 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17216
17217 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17218 (enum mac_menu_kind): Move enum to mactoolbox.c.
17219 (min_menu_id): Move variable to mactoolbox.c.
17220 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17221 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17222 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17223 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17224 [TARGET_API_MAC_CARBON]: Likewise.
17225 (XtPointer): Move typedef to macgui.h.
17226 (enum button_type): Move enum to macgui.h.
17227 (widget_value): Move typedef to macgui.h.
17228 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17229 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17230 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17231 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17232 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17233 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17234 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17235 (popup_activated_flag): Make variable non-static.
17236 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17237 (add_menu_item, fill_menu, dispose_menus):
17238 Move functions to mactoolbox.c.
17239 (restore_show_help_function, menu_target_item_handler)
17240 (install_menu_target_item_handler, mac_handle_dialog_event)
17241 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17242 [TARGET_API_MAC_CARBON]: Likewise.
17243 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17244 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17245 (find_and_call_menu_selection, name_is_separator): Make function
17246 non-static.
17247 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17248 to mactoolbox.c.
17249 (set_frame_menubar): Don't call install_menu_quit_handler.
17250 (menu_item_selection): New variable.
17251 (mac_menu_show): Use create_and_show_popup_menu.
17252 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17253 selection but set variable menu_item_selection. All uses changed.
17254 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17255 Call install_menu_quit_handler. Move to mactoolbox.c.
17256
17257 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17258 (Selection): Move typedef to macgui.h.
17259 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17260 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17261 Make variables non-static.
17262 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17263 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17264 Make functions non-static.
17265 (Vmac_service_selection) [MAC_OSX]: Likewise.
17266 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17267 (mac_valid_selection_target_p, mac_clear_selection)
17268 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17269 (mac_put_selection_value, mac_selection_has_target_p)
17270 (mac_get_selection_value, mac_get_selection_target_list)
17271 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17272 Move functions to mactoolbox.c.
17273 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17274 Likewise.
17275 (copy_scrap_flavor_data, mac_handle_service_event)
17276 (install_service_handler) [MAC_OSX]: Likewise.
17277 (syms_of_macselect) <Vmac_dnd_known_types>:
17278 Use mac_dnd_default_known_types.
17279
17280 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17281 Move to mactoolbox.c.
17282 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17283 (Fx_selection_owner_p): Add EXFUN.
17284 (install_window_handler, remove_window_handler, XSetWindowBackground):
17285 Remove externs.
17286 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17287 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17288 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17289 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17290 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17291 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17292 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17293 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17294 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17295 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17296 (mac_valid_selection_target_p, mac_clear_selection)
17297 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17298 (mac_put_selection_value, mac_selection_has_target_p)
17299 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17300 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17301 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17302 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17303 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17304 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17305 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17306 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17307 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17308
17309 * mactoolbox.c: New file.
17310
173112008-04-18 Jason Rumney <jasonr@gnu.org>
17312
17313 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17314
173152008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17316
17317 * character.c (Fmultibyte_char_to_unibyte):
17318 Return latin1 chars unchanged.
17319
17320 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17321 relocated if it points to `name'.
17322
173232008-04-17 Kenichi Handa <handa@m17n.org>
17324
17325 * data.c (Faset): Allow setting a multibyte character in an
17326 ASCII-only unibyte string.
17327
17328 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17329
173302008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17331
17332 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17333 done in config.h.
17334
173352008-04-16 Juanma Barranquero <lekktu@gmail.com>
17336
17337 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17338 (Fchar_direction): Add usage in the docstring.
17339
173402008-04-15 Chong Yidong <cyd@stupidchicken.com>
17341
17342 * keyboard.c (read_key_sequence): Remove always-true checks.
17343
173442008-04-14 Jason Rumney <jasonr@gnu.org>
17345
17346 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17347 compatibility struct, for better underline positioning.
17348
173492008-04-13 David Hansen <david.hansen@gmx.net>
17350
17351 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17352 string.
17353
173542008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17355
17356 * m/hp800.h (XUINT, XSET): Remove.
17357
173582008-04-12 Juanma Barranquero <lekktu@gmail.com>
17359
17360 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17361 previous change.
17362
173632008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17364
17365 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17366 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17367
173682008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17369
17370 * keymap.h (map_keymap_canonical): Declare.
17371 * xmenu.c (single_keymap_panes): Use it.
17372
173732008-04-11 Glenn Morris <rgm@gnu.org>
17374
17375 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17376 set the target's value to that of the alias.
17377
173782008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17379
17380 * term.c (set_tty_color_mode): Left over typo.
17381
173822008-04-10 Michael Albinus <michael.albinus@gmx.de>
17383
17384 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17385 only after check for file name handler functions. Signal, when
17386 native functionality is not supported.
17387 (syms_of_fileio): Declare it unconditionally.
17388
173892008-04-10 Jason Rumney <jasonr@gnu.org>
17390
17391 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17392 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17393
17394 * w32.c (logon_network_drive): Also logon to remote drives that
17395 are mapped to drive letters.
17396
173972008-04-10 Glenn Morris <rgm@gnu.org>
17398
17399 * xdisp.c (truncate-partial-width-windows): Doc fix.
17400
174012008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17402
17403 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17404 Move functions to minibuffer.el.
17405 (syms_of_fileio): Don't declare them.
17406
174072008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17408
17409 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17410 (syms_of_minibuf): Remove its initialization.
17411
17412 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17413
174142008-04-09 Juanma Barranquero <lekktu@gmail.com>
17415
17416 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17417
174182008-04-09 Jason Rumney <jasonr@gnu.org>
17419
17420 * makefile.w32-in (distclean): Delete makefile too.
17421 (maintainer-clean): New target.
17422
17423 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17424
17425 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17426 for new font backend and composite cases.
17427
174282008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17429
17430 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17431 Most of the code moved to run_timers.
17432 (do_pending_atimers): Call run_timers.
17433 (run_timers): New function.
17434
17435 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17436 run atimers.
17437
17438 * process.c (wait_reading_process_output): The same as above.
17439
174402008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17441
17442 * minibuf.c (last_exact_completion): Remove variable.
17443 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17444 (complete_and_exit_1, complete_and_exit_2)
17445 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17446 (Fdisplay_completion_list, display_completion_list_1)
17447 (Fminibuffer_completion_help, Fself_insert_and_exit)
17448 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17449 minibuffer.el.
17450 (syms_of_minibuf): Remove corresponding initializations.
17451
17452 * keyboard.c (Qdeactivate_mark): New var.
17453 (command_loop_1): Use it to call `deactivate-mark'.
17454 (syms_of_keyboard): Initialize it.
17455
17456 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17457 to another frame.
17458 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17459 Don't call set_tty_color_mode.
17460 (store_frame_param): Reset previous_frame rather than call
17461 set_tty_color_mode.
17462 * term.c (set_tty_color_mode): Rewrite.
17463 * dispextern.h (set_tty_color_mode): New type.
17464 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17465
174662008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17467
17468 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17469 for generic chars, which do not exist any more in emacs-unicode.
17470
174712008-04-08 Michael Albinus <michael.albinus@gmx.de>
17472
17473 * coding.c (detect_coding_emacs_mule)
17474 (Ffind_operation_coding_system): Fix typo.
17475
174762008-04-08 Jason Rumney <jasonr@gnu.org>
17477
17478 * w32uniscribe.c (SNAME): Extract only symbol name.
17479
17480 * w32font.h (struct w32_metric_cache): New struct.
17481 (w32font_info): Use it.
17482 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17483 (CACHE_BLOCKSIZE): New constants.
17484
17485 * w32font.c (Qja, Qko, Qzh): New symbols.
17486 (syms_of_w32font): Initialise them.
17487 (font_matches_spec): Use them to filter by language.
17488 (recompute_cached_metrics): Remove function.
17489 (compute_metrics, clear_cached_metrics): New functions.
17490 (w32font_encode_char): Use them to manage metric cache.
17491 (w32font_text_extents): Cache metrics for all glyphs on demand.
17492 Delay converting glyph indices to WORD until needed.
17493 (w32font_open_internal): Initialize metric cache to empty.
17494 (registry_to_w32_charset): Charset should always be a symbol.
17495 (fill_in_logfont, list_all_matching_fonts): Family should
17496 always be a symbol.
17497
174982008-04-06 Jason Rumney <jasonr@gnu.org>
17499
17500 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17501 Give up if glyph indices not supported. Use uniscribe obtained
17502 ABC widths for individual metrics. Map glyph clusters back to
17503 characters using fClusterStart flag. Return number of glyphs
17504 produced, not chars processed.
17505 (uniscribe_shape): Map char at FROM to current glyph.
17506
175072008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17508
17509 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17510 Use SetMenuItemHierarchicalMenu.
17511
175122008-04-05 Jason Rumney <jasonr@gnu.org>
17513
17514 * image.c (pbm_load): Allow color values up to 65535.
17515 Throw an error if max_color_idx is outside the supported range.
17516 Report an error when image size is invalid.
17517 Read two bytes at a time when raw images have max_color_idx above 255.
17518
aac0c6e3
MR
175192008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17520
17521 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17522 append "CCL: Quitted" when the CCL program is quitted.
17523 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17524
17525 * ccl.h (struct ccl_program): New member quit_silently.
17526
175272008-04-05 Chong Yidong <cyd@stupidchicken.com>
17528
17529 * search.c (compile_pattern_1): Treat non-nil and non-string of
17530 search-spaces-regexp as nil.
17531
17532 * minibuf.c (Fassoc_string): Tweak docstring.
17533
175342008-04-05 Eli Zaretskii <eliz@gnu.org>
17535
17536 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17537 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17538 2008-03-14 to force inode be positive.
17539
17540 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17541 _S_* ones, since we now use our own sys/stat.h.
17542 (stat, fstat): Don't mangle the inode number.
17543 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17544
175452008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17546
17547 * frame.h (struct frame): Give one more bit to `visible' since we use
17548 values larger than 1 to indicate obscured frames on ttys.
17549
17550 * keymap.c (Qkeymap_canonicalize): New var.
17551 (Fmap_keymap_internal): New fun.
17552 (describe_map): Use keymap-canonicalize.
17553
17554 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17555 (Fundo_boundary): Set them.
17556 (syms_of_undo): Initialize them.
17557 (record_point): Use them instead of last_point_position*.
17558 (last_undo_buffer): Change type.
17559
175602008-04-04 Jason Rumney <jasonr@gnu.org>
17561
17562 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17563 (recompute_cached_metrics): Don't set ascent and descent per char.
17564
17565 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17566 (uniscribe_check_otf): Add GC protection before consing.
17567 Rearrange loop for counting features.
17568
175692008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17570
17571 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17572 buffer with byte-size of source buffer.
17573
175742008-04-03 Chong Yidong <cyd@stupidchicken.com>
17575
17576 * callint.c (Fcall_interactively): Handle temporary region even
17577 when shift-select-mode is off.
17578
175792008-04-03 Jason Rumney <jasonr@gnu.org>
17580
17581 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17582
175832008-04-03 Kenichi Handa <handa@m17n.org>
17584
17585 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17586 (CATEGORY_MASK_UTF_16): Likewise.
17587 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17588 binary file.
17589 (detect_coding): Add null-byte detection for a binary file.
17590 (detect_coding_system): Likewise.
17591
175922008-04-03 Jason Rumney <jasonr@gnu.org>
17593
17594 * w32uniscribe.c: New file.
17595
17596 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17597
17598 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17599
17600 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17601 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17602 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17603 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17604 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17605 (Qphonetic): New symbols.
17606 (syms_of_w32font): Initialize them.
17607 (font_supported_scripts): Use them.
17608 (w32font_list_family): List all charsets.
17609 (w32font_text_extents, recompute_cached_metrics): Fix metric
17610 calculations.
17611 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17612 Give opentype fonts their own format.
17613 (font_matches_spec): New arguments backend and logfont.
17614 Handle :otf spec for uniscribe backend.
17615 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17616 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17617
17618 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17619 font backend.
17620 (globals_of_w32fns): Initialize uniscribe font backend.
17621
17622 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17623 dependencies.
17624 (w32uniscribe.$(O)): New file to build.
17625 (FONT_OBJ): Include w32uniscribe.$(O).
17626 (LIBS): Add uniscribe libraries.
17627
17628 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17629
176302008-04-02 Chong Yidong <cyd@stupidchicken.com>
17631
17632 * callint.c (Vshift_select_mode): New var.
17633 (Finteractive): Document new ^ spec.
17634 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17635 is present.
17636
17637 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17638 (command_loop_1): Avoid running the direct display versions of
17639 forward-char and backward-char if shift-selection may occur.
17640 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17641 shift-translation takes place.
17642
17643 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17644 avoid clobbering by define-minor-mode.
17645
17646 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17647 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17648
17649 * syntax.c (Fforward_word): Add ^ interactive spec.
17650
17651 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17652 (Fscroll_right): Add ^ interactive spec.
17653
176542008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17655
17656 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17657
17658 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17659
17660 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17661
176622008-03-31 Juri Linkov <juri@jurta.org>
17663
17664 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17665
176662008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17667
17668 * gtkutil.c (xg_set_geometry): Fix indentation.
17669 (xg_resize_outer_widget): Remove.
17670 (x_wm_size_hint_off): Fix indentation.
17671 (xg_frame_set_char_size): Call flush_and_sync after
17672 gtk_window_resize.
17673 (x_wm_set_size_hint): Pass NULL as geometry window to
17674 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17675 Add menu bar and tool bar height to base height.
17676 (xg_update_frame_menubar, free_frame_menubar)
17677 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17678 (update_frame_tool_bar, free_frame_tool_bar):
17679 Change xg_resize_outer_widget to xg_frame_set_char_size.
17680
176812008-03-30 Michael Albinus <michael.albinus@gmx.de>
17682
17683 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17684 (Fdbus_call_method): New parameter TIMEOUT.
17685 (dbus-send-signal): Optimize UNGCPRO call.
17686
176872008-03-29 Juri Linkov <juri@jurta.org>
17688
17689 * window.c (Fdisplay_buffer): Move call to
17690 Vsplit_window_preferred_function out of conditions that check
17691 if window is eligible for vertical splitting.
17692 When Vsplit_window_preferred_function is non-nil, call it and use
17693 its non-nil return value as window. Otherwise, continue doing
17694 vertical splitting using Fsplit_window with arg horflag=nil.
17695 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17696 default value from `split-window' to nil.
17697
176982008-03-29 Juri Linkov <juri@jurta.org>
17699
17700 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17701 for interactive code letters 'b' and 'B'.
17702
177032008-03-29 Eli Zaretskii <eliz@gnu.org>
17704
17705 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17706 multibyte string.
17707
177082008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17709
17710 * keyboard.c (pending_funcalls): New var.
17711 (timer_check): Run it.
17712 (syms_of_keyboard): Initialize it.
17713 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17714 (Vdelete_terminal_functions): New vars.
17715 (syms_of_terminal): Initialize them.
17716 (Fdelete_terminal): Run delete-terminal-functions.
17717 * xdisp.c (safe_eval): Rewrite.
17718 (safe_call2): New fun.
17719 * frame.c (Qdelete_frame_functions): New var.
17720 (syms_of_frame): Initialize it.
17721 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17722 * lisp.h (safe_call2, pending_funcalls): Declare.
17723
177242008-03-28 Andreas Schwab <schwab@suse.de>
17725
17726 * indent.c (Fmove_to_column): Move declaration before statements.
17727
177282008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17729
17730 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17731 (struct frame): Use bit fields for boolean vars.
17732
17733 * process.c (server_accept_connection): Simplify naming.
17734 (emacs_get_tty_pgrp): Use SDATA.
17735
17736 * coding.c (decode_coding_object): Fix last change.
17737
177382008-03-27 Jason Rumney <jasonr@gnu.org>
17739
17740 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17741
177422008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17743
17744 * charset.c (Fdefine_charset_internal): Change the way of
17745 registering charsets in Vcharset_order_list.
17746 (syms_of_charset): Make the charset `eight-bit' supplementary.
17747
177482008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17749
17750 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17751 operations, to avoid having the difference between pointers
17752 overflow.
17753
177542008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17755
17756 * indent.c (check_display_width): New fun.
17757 (scan_for_column): Use it.
17758
17759 * data.c (syms_of_data): Mark most-positive-fixnum and
17760 most-negative-fixnum as constants.
17761
17762 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17763
17764 * indent.c (scan_for_column): Extract from current_column_1.
17765 Merge with the same code from Fmove_to_column.
17766 (current_column_1, Fmove_to_column): Use it.
17767
177682008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17769
17770 * keymap.c (map_keymap_internal): New fun.
17771 (map_keymap): Use it.
17772 (Fmap_keymap_internal): New fun.
17773 (Fmap_keymap): Remove left-out test from before make_save_value.
17774
17775 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17776
17777 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17778 Use XCAR/XCDR.
17779
17780 * process.h (struct Lisp_Process): Remove filter_multibyte.
17781 * process.c (QCfilter_multibyte): Remove.
17782 (setup_process_coding_systems): Don't use filter_multibyte.
17783 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17784 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17785 (Fset_process_filter_multibyte): Change the coding-system to
17786 approximate the previous behavior.
17787 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17788 coding-system.
17789
17790 * coding.c (decode_coding_object): When not decoding into a buffer,
17791 obey the coding system's preference of (uni|multi)byte.
17792
177932008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17794
17795 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17796 every char is changed and has a different byte-length.
17797 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17798 Fix int -> EMACS_INT.
17799
178002008-03-23 David Hansen <david.hansen@gmx.net>
17801
17802 * dbusbind.c (xd_read_message): Remove extra copying of message
17803 strings. Check for NULL `interface' or `member'.
17804
178052008-03-22 Eli Zaretskii <eliz@gnu.org>
17806
17807 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17808 cFileName a file name that includes `?' characters, use the 8+3
17809 alias in cAlternateFileName instead.
17810
178112008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17812
17813 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17814
178152008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17816
17817 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17818 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17819 work on current_buffer only instead (that was already the case
17820 for some of the code anyway).
17821 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17822 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17823 (SET_PT, SET_PT_BOTH): Adjust.
17824 * intervals.h (set_point, temp_set_point, set_point_both)
17825 (temp_set_point_both): Remove redundant declarations.
17826
178272008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17828
17829 * fileio.c (Finsert_file_contents):
17830 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17831 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17832 when buffer != current_buffer anyway.
17833
178342008-03-20 Andreas Schwab <schwab@suse.de>
17835
17836 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17837 as default.
17838
178392008-03-19 Jason Rumney <jasonr@gnu.org>
17840
17841 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17842 (syms_of_w32fns): Initialize them.
17843 (HOURGLASS_ID): New constant.
17844 (x_window_to_frame): Don't check hourglass_window.
17845 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17846 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17847 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17848 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17849 Only change the cursor if hourglass is not active.
17850 (Fx_create_frame): Initialize frame's current_cursor.
17851 (hourglass_atimer): Remove.
17852 (hourglass_started): New function.
17853 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17854 (show_hourglass): Adapt to w32, changing argument to frame.
17855
17856 * w32term.h (struct w32_output): Remove hourglass_window.
17857 Add current_cursor.
17858
17859 * eval.c (call_debugger, Fsignal):
17860 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17861 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17862 (Fexecute_extended_command, cancel_hourglass_unwind):
17863 * minibuf.c (read_minibuf):
17864 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17865
178662008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17867
17868 * window.c (run_funs): New fun.
17869 (run_window_configuration_change_hook): Use it to run the buffer-local
17870 and the global part of the hook.
17871
17872 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17873 (unwind_format_mode_line): Restore selected window.
17874 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17875
178762008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17877
17878 * editfns.c (Fchar_equal): Check they are valid characters.
17879
17880 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17881
178822008-03-17 Andreas Schwab <schwab@suse.de>
17883
17884 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17885 against a charset.
17886
17887 * lisp.h (Fbuffer_list): Declare.
17888
178892008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17890
aac0c6e3
MR
17891 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17892 handlebox_widget is != 0.
17893
178942008-03-16 Juri Linkov <juri@jurta.org>
17895
17896 * callint.c (Fcall_interactively): For interactive code letters
17897 'b' and 'B' put the buffer list into the list of default "future"
17898 values of the minibuffer.
17899
179002008-03-16 Andreas Schwab <schwab@suse.de>
17901
17902 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17903 modifiers.
17904
17905 * regex.c (re_match_2_internal): Correct matching of a charset
17906 against latin-1 characters.
17907
179082008-03-16 Kenichi Handa <handa@m17n.org>
17909
17910 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17911 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17912 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17913 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17914 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17915 CHAR_STRING_ADVANCE.
17916 (produce_chars): Fix for the case that the source and the
17917 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17918 instead of CHAR_STRING_ADVANCE.
17919 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17920 STRING_CHAR_ADVANCE.
17921
179222008-03-15 Andreas Schwab <schwab@suse.de>
17923
17924 * regex.c (re_match_2_internal): Correct matching of eight bit
17925 characters in unibyte strings.
17926
179272008-03-15 Martin Rudalics <rudalics@gmx.at>
17928
17929 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17930 at end of range when it coincides with the end of the buffer.
17931
179322008-03-14 Eli Zaretskii <eliz@gnu.org>
17933
17934 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17935
17936 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17937
179382008-03-14 Jason Rumney <jasonr@gnu.org>
17939
17940 * editfns.c (initial_tz): New variable.
17941 (syms_of_editfns): Initialize it.
17942 (Fset_time_zone_rule): Set it when first called.
17943 Use it when TZSTRING is nil.
17944
17945 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17946 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17947 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17948 (globals_of_w32fns): Initialize them.
17949 (compute_tip_xy): Use them to position tooltips.
17950
179512008-03-14 Glenn Morris <rgm@gnu.org>
17952
17953 * emacs.c (main): Revert previous change.
17954 (standard_args): Revert -internal-script back to -scriptload,
17955 and remove the long-option form.
17956
179572008-03-13 Glenn Morris <rgm@gnu.org>
17958
17959 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17960 Remove option -enable-font-backend.
17961
179622008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17963
17964 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17965
179662008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17967
17968 * xterm.c (x_connection_closed): For GTK: If this is the last
17969 terminal just exit without closing the display.
17970
179712008-03-11 Jason Rumney <jasonr@gnu.org>
17972
17973 * w32font.c (w32font_full_name): Use floor to round.
17974
f0131492 179752008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17976
17977 * sound.c (alsa_configure): Declare vol at beginning of block.
17978
17979 * fontset.c (Ffontset_info): Remove extra semicolon.
17980
179812008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17982
17983 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17984 size of resulting string.
17985
179862008-03-10 Jason Rumney <jasonr@gnu.org>
17987
17988 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17989
179902008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17991
17992 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17993 Don't pretend as if characters with display property haven't been
17994 consumed for string-replacing-string case.
17995
179962008-03-08 Kim F. Storm <storm@cua.dk>
17997
17998 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17999 (get_next_display_element, next_element_from_string)
18000 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18001
180022008-03-08 Andreas Schwab <schwab@suse.de>
18003
18004 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18005
180062008-03-06 Jason Rumney <jasonr@gnu.org>
18007
18008 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18009 when charset not specified. Only translate ANSI to unicode when
18010 font_type is truetype.
18011 (w32font_coverage_ok): New function.
18012 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18013
180142008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18015
18016 * lread.c (Fread_char): Resolve modifiers.
18017 (Fread_char_exclusive): Likewise.
18018
18019 * character.c (char_resolve_modifier_mask): New function.
18020 (char_string): Use char_resolve_modifier_mask.
18021 (Fchar_resolve_modifiers): New function.
18022 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18023 function.
18024
180252008-03-04 Jason Rumney <jasonr@gnu.org>
18026
18027 * makefile.w32-in: Always include w32font.c in the build.
18028 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18029
180302008-03-04 Andreas Schwab <schwab@suse.de>
18031
18032 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18033 (versionclean): Likewise.
18034
180352008-03-04 Juanma Barranquero <lekktu@gmail.com>
18036
18037 * .cvsignore: Add oo.
18038
180392008-03-03 Andreas Schwab <schwab@suse.de>
18040
18041 * coding.c (decode_coding_object): Inhibit gap shrinking while
18042 decoding in place.
18043
180442008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18045
18046 * w32term.c: Remove unused include "gnu.h".
18047 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18048
18049 * gnu.h: Rename to ...
18050 * emacs-icon.h: ... this.
18051 * xterm.c: Use emacs-icon.h instead of gnu.h.
18052 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18053
180542008-03-03 Juanma Barranquero <lekktu@gmail.com>
18055
18056 * w32font.c: Include math.h.
18057
180582008-03-03 Jason Rumney <jasonr@gnu.org>
18059
18060 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18061 Compute options separately.
18062 (w32font_open_internal): Set glyph_idx before caching metrics.
18063
18064 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18065 Define if system headers don't.
18066 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18067 (w32font_encode_char): Don't declare here.
18068
18069 * w32font.c (Quniscribe, QCformat): New symbols.
18070 (syms_of_w32font): Define them.
18071 (w32font_has_char): Indicate uncertainty.
18072 (w32font_encode_char): Encode as glyph point. Make static.
18073 (recompute_cached_metrics): New function.
18074 (w32font_open_internal): Use it. Set font to use glyph points
18075 initially. Set format based on type of font.
18076 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18077 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18078 on it. Set format based on information available here.
18079 (add_font_entity_to_list): Identify backend based on opentype_only.
18080
180812008-03-02 Andreas Schwab <schwab@suse.de>
18082
18083 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18084
18085 * coding.c (decode_coding_big5, produce_chars):
18086 Fix typos in last change.
18087
180882008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18089
18090 * gnu.h: New icon.
18091
180922008-03-02 Kenichi Handa <handa@m17n.org>
18093
18094 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18095 `dos', don't decode '\r' if that is the last in the source.
18096 (decode_coding_utf_16, decode_coding_emacs_mule)
18097 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18098 (decode_coding_raw_text, decode_coding_charset): Likewise.
18099 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18100
181012008-03-01 Jason Rumney <jasonr@gnu.org>
18102
18103 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18104
181052008-03-01 Kim F. Storm <storm@cua.dk>
18106
18107 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18108
181092008-03-01 Jason Rumney <jasonr@gnu.org>
18110
18111 * w32font.c (w32font_full_name): New function.
18112 (w32font_open_internal): Use it.
18113
181142008-03-01 Kim F. Storm <storm@cua.dk>
18115
18116 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18117
181182008-03-01 Jason Rumney <jasonr@gnu.org>
18119
18120 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18121
181222008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18123
18124 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18125 xg_frame_resized when the event is for the edit widget.
18126
18127 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18128
18129 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18130 set_char_size.
18131 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18132 operations on widgets here. Just set frame size if needed.
18133 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18134 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18135 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18136 the whole frame.
18137 (xg_create_tool_bar): Move attachment of the tool bar to
18138 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18139 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18140
181412008-03-01 Jason Rumney <jasonr@gnu.org>
18142
18143 * w32fns.c (w32_msg_pump): Disable debug code.
18144
181452008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18146
18147 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18148
181492008-02-29 Chong Yidong <cyd@stupidchicken.com>
18150
18151 * xdisp.c (next_overlay_string): Don't set
18152 overlay_strings_at_end_processed_p if we're currently reading from
18153 a display string.
18154
181552008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18156
18157 * xdisp.c (get_overlay_strings_1): Fix typo.
18158
181592008-02-29 Chong Yidong <cyd@stupidchicken.com>
18160
18161 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18162
181632008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18164
18165 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18166
18167 * xdisp.c (display_mode_element): Cancel the previous change.
18168 (decode_mode_spec): Likewise.
18169 (handle_auto_composed_prop): Don't make composition if it->string
18170 is a string.
18171
181722008-02-27 Kim F. Storm <storm@cua.dk>
18173
18174 * lisp.h (GLYPH): Change type from int to struct with separate char
18175 and face_id members.
18176 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18177 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18178 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18179 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18180 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18181 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18182 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18183 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18184 handle new Lisp glyph code encoding, either an integer or a cons.
18185
18186 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18187 (GLYPH_ALIAS): Delete.
18188 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18189 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18190 (GLYPH_FROM_CHAR): Replace macro by ...
18191 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18192
18193 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18194 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18195 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18196 (GLYPH_INVALID_P): New macro.
18197 (spec_glyph_lookup_face): Update prototype.
18198
18199 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18200 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18201 new glyph code encoding.
18202 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18203 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18204
18205 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18206 Adapt to new glyph type and new glyph code encoding.
18207
18208 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18209
18210 * indent.c (current_column, current_column_1, Fmove_to_column)
18211 (compute_motion): Adapt to new glyph code encoding.
18212
18213 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18214
182152008-02-27 Chong Yidong <cyd@stupidchicken.com>
18216
18217 * process.c (wait_reading_process_output): Check for window
18218 changes caused by timers.
18219 Suggested by Johan Bockgård.
18220
182212008-02-27 Glenn Morris <rgm@gnu.org>
18222
18223 * emacs.c (USAGE1): Add `--disable-font-backend'.
18224
182252008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18226
18227 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18228 is made to the buffer.
18229
182302008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18231
18232 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18233 (face_at_string_position):
18234 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18235 (face_at_string_position):
18236 * xdisp.c (display_string, next_overlay_change):
18237 * buffer.h (overlays_at):
18238 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18239 Update callers.
18240
182412008-02-26 Chong Yidong <cyd@stupidchicken.com>
18242
18243 * editfns.c (Fformat): Doc fix.
18244
182452008-02-26 Juanma Barranquero <lekktu@gmail.com>
18246
18247 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18248 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18249 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18250
182512008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18252
18253 * buffer.c (Fbuffer_swap_text): New function.
18254 (syms_of_buffer): Defsubr it.
18255
182562008-02-25 Chong Yidong <cyd@stupidchicken.com>
18257
18258 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18259
182602008-02-25 Jason Rumney <jasonr@gnu.org>
18261
18262 * w32font.c (w32font_draw): Draw one character at a time when padding.
18263
182642008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18265
18266 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18267 Handle a nil arg. Use run_window_configuration_change_hook.
18268 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18269 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18270 Use run_window_configuration_change_hook.
18271
182722008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18273
18274 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18275 1-pixel width.
18276
182772008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18278
18279 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18280 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18281 if the glyph in the font is zero pixel with.
18282
18283 * dispextern.h (struct glyph_string): New member padding_p.
18284
18285 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18286
18287 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18288
18289 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18290
18291 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18292
18293 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18294
182952008-02-25 Jason Rumney <jasonr@gnu.org>
18296
18297 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18298
182992008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18300
18301 Allow fine-grained image-cache flushing.
18302 * dispextern.h (struct image): Add `dependencies' field.
18303 (clear_image_caches): Change arg to Lisp_Object.
18304 * image.c (make_image): Initialize `dependencies' field.
18305 (clear_image_cache): Change arg to allow fine-grained flushing.
18306 Perform the flush even if image-cache-eviction-delay is nil.
18307 (clear_image_caches): Change arg to Lisp_Object.
18308 (Fclear_image_cache): Expand meaning of the argument.
18309 (mark_image): Mark `dependencies' field.
18310 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18311 (lface_hash): Use XHASH rather than XFASTINT.
18312 (face_at_buffer_position): Fix int -> EMACS_INT position.
18313 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18314 (select_frame_for_redisplay): Remove code duplication.
18315 (redisplay_internal): Adapt arg to call to clear_image_caches.
18316
183172008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18318
18319 * s/vms4-0.h:
18320 * s/vms4-2.h:
18321 * s/vms4-4.h:
18322 * s/vms5-5.h: Remove, unused.
18323
18324 * s/irix5-2.h:
18325 * s/irix6-0.h:
18326 * s/riscos5.h:
18327 * s/mach-bsd4-3.h:
18328 * m/mips4.h: Remove files for obsolete systems.
18329
18330 * Makefile.in:
18331 * filelock.c:
18332 * unexmips.c:
18333 * m/hp9000s300.h:
18334 * m/iris4d.h:
18335 * s/aix3-1.h:
18336 * s/hpux.h:
18337 * s/msdos.h:
18338 * s/usg5-0.h:
18339 * s/usg5-2-2.h:
18340 * s/usg5-2.h:
18341 * s/usg5-3.h: Remove references to obsolete variables.
18342
18343 * s/irix5-0.h: Remove, move all the contents ...
18344 * s/irix6-5.h: ... here. Simplify.
18345 * config.in: Regenerate.
18346
183472008-02-24 Jason Rumney <jasonr@gnu.org>
18348
18349 * w32term.c (x_draw_glyph_string_background): Clear the background
18350 manually when cleartype is in use.
18351 (x_draw_glyph_string_foreground): Draw text transparently when
18352 cleartype is in use.
18353
18354 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18355 a font into it unless we have to.
18356
183572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18358
18359 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18360 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18361
aac0c6e3
MR
183622008-02-18 Jason Rumney <jasonr@gnu.org>
18363
18364 * w32fns.c (Fw32_shell_execute): Encode parameters.
18365
183662008-02-09 Eli Zaretskii <eliz@gnu.org>
18367
18368 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18369
183702008-02-05 Juanma Barranquero <lekktu@gmail.com>
18371
18372 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18373
183742008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18375
18376 * xterm.c (x_set_offset): Don't change the gravity if
18377 CHANGE_GRAVITY is -1.
18378
183792008-02-23 Chong Yidong <cyd@stupidchicken.com>
18380
18381 * fileio.c (auto_save_error_occurred): New var.
18382 (auto_save_error): Set it.
18383 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18384 error occurred.
18385
183862008-02-23 Eli Zaretskii <eliz@gnu.org>
18387
18388 * w32.c (globals_of_w32): Add initializations for
18389 g_b_init_get_sid_sub_authority and
18390 g_b_init_get_sid_sub_authority_count.
18391
183922008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18393
18394 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18395 (font_parse_xlfd): Use them for sanity check.
18396 (Finternal_set_font_style_table): Make sure the table is bijective.
18397
18398 Consolidate the image_cache to the terminal struct.
18399 * termhooks.h (P_): Remove redundant def.
18400 (struct terminal): New field `image_cache'.
18401 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18402 of FRAME_X_IMAGE_CACHE.
18403 * xterm.h (struct x_display_info): Remove image_cache field.
18404 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18405 * w32term.h (struct w32_display_info): Remove image_cache field.
18406 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18407 * macterm.h (struct mac_display_info): Remove image_cache field.
18408 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18409 * xterm.c (x_term_init):
18410 * w32term.c (w32_term_init):
18411 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18412 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18413 Remove declarations.
18414 (clear_image_caches, mark_image_cache): New declarations.
18415 * xfaces.c (clear_face_cache):
18416 * xdisp.c (redisplay_internal): Use clear_image_caches.
18417 * image.c (clear_image_cache): Don't check that a frame is on
18418 a window-system before checking if it shares the same cache.
18419 (clear_image_caches): New function.
18420 (Fclear_image_cache): Use it.
18421 (mark_image): Move from allo.c.
18422 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18423 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18424 (mark_object): Don't call mark_image_cache for frames.
18425 (mark_terminals): Call mark_image_cache.
18426
18427 * lisp.h (Fdelete_terminal): Declare.
18428
18429 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18430 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18431 wrong_type_argument.
18432
184332008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18434
18435 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18436 malayalam.el, and tamil.el. Add sinhala.el.
18437
184382008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18439
18440 * xterm.c (x_connection_closed): Consolidate identical tests.
18441 (x_delete_terminal): Don't crash if called via x_connection_closed.
18442
184432008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18444
18445 * xdisp.c (decode_mode_spec): New arg string.
18446 (display_mode_element): Adjust for the above change.
18447
184482008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18449
18450 * callint.c (Fcall_interactively): Use AREF.
18451
184522008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18453
18454 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18455
184562008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18457
18458 * xfns.c (Fx_show_tip): Set string to " " if empty.
18459
184602008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18461
18462 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18463 with Qt.
18464
184652008-02-17 Kenichi Handa <handa@m17n.org>
18466
18467 * ftfont.c (ftfont_shape): Return Lispy number.
18468
18469 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18470 for GCs.
18471 (Finternal_set_font_selection_order): Call font_update_sort_order
18472 only when enable_font_backend is set.
18473 (realize_x_face): Set face->font_info to that of default face only
18474 when enable_font_backend is set.
18475
18476 * xdisp.c (handle_composition_prop): Set it->c to the fist
18477 character of the composed region.
18478 (fill_composite_glyph_string): Set base_face->font_info to
18479 s->font_info. Get a face for ascii from base_face->ascii_face.
18480 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18481 with a face already decided.
18482 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18483 non-negative.
18484 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18485 call font_prepare_composition unconditionally.
18486
18487 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18488
18489 * xterm.h (struct x_display_info): New member font.
18490
18491 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18492 (x_set_mouse_face_gc, x_new_font): Likewise.
18493 (x_term_init): Setup display_info->font.
18494 (x_delete_terminal): Free display_info->font.
18495
18496 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18497
18498 * ftxfont.c (ftxfont_default_fid): Delete it.
18499 (ftxfont_open): Set xfont->fid to 0.
18500 (ftxfont_end_for_frame): Clear data specific to the frame and the
18501 font-driver.
18502
18503 * xftfont.c (xftfont_default_fid): Delete it.
18504 (xftfont_open): Set xfont->fid to 0.
18505
18506 * fontset.c (FONTSET_OBJLIST): New macro.
18507 (fontset_find_font): Update font-object list of the fontset.
18508 (free_realized_fontset): New function.
18509 (free_face_fontset): Call free_realized_fontset.
18510 (Ffont_info): Call font_close_object only when enable_font_backend
18511 is set.
18512
18513 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18514 [HAVE_NTGUI]: Include w32term.h.
18515 [MAC_OS]: Include macterm.ch.
18516 (font_otf_ValueRecord): Use make_number.
18517 (font_finish_cache): Fix handling of reference count.
18518 (font_clear_cache): Update num_fonts.
18519 (font_open_entity): Update smallest_char_width and
18520 smallest_font_height of the frame.
18521 (font_close_object): Update num_fonts.
18522 (Fclear_font_cache): Fix finding the target cache data.
18523
185242008-02-16 Glenn Morris <rgm@gnu.org>
18525
18526 * fontset.c (Finternal_char_font): Fix compilation warning.
18527
185282008-02-16 Eli Zaretskii <eliz@gnu.org>
18529
18530 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18531 instead of char arrays. Enlarge the size of array passed to
18532 get_token_information.
18533
18534 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18535 warnings.
18536
185372008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18538
18539 * .gdbinit: Don't set `args', it breaks gdb --args.
18540
185412008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18542
18543 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18544 within a narrowed buffer.
18545
185462008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18547
18548 * coding.c (decode_coding_object, encode_coding_object):
18549 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18550
185512008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18552
18553 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18554 hardcoding 1.
18555 (detect_coding_system):
18556 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18557 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18558 * insdel.c (insert_from_gap):
18559 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18560 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18561 (string_to_multibyte):
18562 * character.c (chars_in_text, multibyte_chars_in_text):
18563 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18564
18565 * character.h (FETCH_STRING_CHAR_ADVANCE)
18566 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18567 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18568 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18569
18570 * casefiddle.c (casify_region): Only call after-change and composition
18571 functions on the part of the region that was changed.
18572
18573 * keyboard.c (read_avail_input):
18574 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18575
185762008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18577
18578 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18579 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18580
185812008-02-11 Juanma Barranquero <lekktu@gmail.com>
18582
18583 * w32menu.c (push_submenu_start, push_submenu_end)
18584 (push_left_right_boundary, push_menu_pane, push_menu_item):
18585 * keyboard.c (read_key_sequence): Don't pass args with side effects
18586 to AREF, it fails when compiling with -DENABLE_CHECKING.
18587
185882008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18589
18590 * Makefile.in (${lispsource}international/charprop.el):
18591 Delete this target.
18592
18593 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18594 emacs-unicode-2.
18595
185962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18597
18598 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18599
186002008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18601
18602 * frame.c (Qnoelisp): New symbol.
18603 (syms_of_frame): Initialize it.
18604 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18605 harmless Elisp code, from a strong `force' from x_connection_closed.
18606 * frame.h (Qnoelisp): Declare.
18607 * xterm.c (x_connection_closed): Pass `noelisp'.
18608
18609 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18610 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18611 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18612 rather than `int' for the type of `type'.
18613
186142008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18615
18616 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18617
18618 * Makefile.in (GNUC): Remove support for gcc-1.x.
18619
186202008-02-10 Richard Stallman <rms@gnu.org>
18621
18622 * lisp.h (ASET): Use AREF, not ASLOT.
18623
186242008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18625
18626 * lisp.h (ASET): Check bounds.
18627
186282008-02-10 Glenn Morris <rgm@gnu.org>
18629
18630 * buffer.c (mode-name): Doc fix.
18631
186322008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18633
18634 * Makefile.in:
18635 * emacs.c:
18636 * gmalloc.c:
18637 * keyboard.c:
18638 * lisp.h:
18639 * m/ibm370aix.h:
18640 * process.c:
18641 * regex.c:
18642 * s/hpux.h:
18643 * sysdep.c:
18644 * sysselect.h:
18645 * systty.h:
18646 * unexec.c:
18647 * w32term.c:
18648 * xsmfns.c:
18649 * xterm.c: Remove code that deals with obsolete variables.
18650
18651 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18652
18653 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18654 nothing else needs it anymore.
18655
186562008-02-09 Eli Zaretskii <eliz@gnu.org>
18657
18658 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18659 instead of unibyte_char_to_multibyte.
18660
186612008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18662
18663 * s/gnu-linux.h: Remove commented out code.
18664
18665 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18666
18667 * Makefile.in: Update what RMS says about using autoconf.
18668 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18669 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18670 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18671 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18672
186732008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18674
18675 * keymap.c (Fkey_description): Move side effect outside of macro call.
18676
18677 * xfaces.c (Finternal_make_lisp_face):
18678 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18679
18680 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18681 (syms_of_fontset): Use ASET.
18682
18683 * fns.c (concat): Move side effect outside of macro call.
18684 (hash_clear): Use ASET.
18685
186862008-02-08 Richard Stallman <rms@gnu.org>
18687
18688 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18689 If FORCE, and frame has a surrogate minibuffer for another frame,
18690 delete the other frame first.
18691
186922008-02-07 Timo Savola <timo.savola@iki.fi>
18693
18694 * xterm.c (x_detect_focus_change): Handle embed client message.
18695 (handle_one_xevent): Ditto.
18696 (handle_one_xevent): If embedded and we get a button press/release,
18697 request focus.
18698 (xembed_set_info, xembed_send_message): New functions.
18699 (x_make_frame_visible): Call xembed_set_info if embedded.
18700 (x_make_frame_invisible): Call xembed_set_info if embedded.
18701 (x_term_init): Initialize Xatom_XEMBED.
18702 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18703 (x_iconify_frame): Ditto.
18704
18705 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18706 (enum xembed_info, enum xembed_message, enum xembed_focus)
18707 (enum xembed_modifier, enum xembed_accelerator): New.
18708 (xembed_set_info, xembed_send_message): Declare.
18709 (FRAME_X_EMBEDDED_P): New.
18710
18711 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18712 gtk_plug_new.
18713
18714 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18715 window ID of a frame.
18716 (x_window): Reparent frame if embedded.
18717 (Fx_create_frame): Don't set border width if embedded.
18718
18719 * emacs.c (USAGE3): Add --parent-id.
18720 (standard_args): Ditto.
18721
187222008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18723
18724 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18725
187262008-02-07 Jim Meyering <meyering@redhat.com>
18727
18728 Use "do...while (0)", not "if (1)...else" in macro definitions.
18729 The latter provokes a warning from gcc about the empty else, when
18730 followed by ";". Also, without that trailing semicolon, it would
18731 silently swallow up any following statement.
18732 * syntax.h (SETUP_SYNTAX_TABLE)
18733 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18734 * buffer.h (DECODE_POSITION): Likewise.
18735 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18736 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18737 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18738 (FETCH_CHAR_ADVANCE): Likewise.
18739 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18740
187412008-02-07 Jim Meyering <meyering@redhat.com>
18742
18743 * lread.c [lint]: Don't include <sys/inode.h>.
18744
187452008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18746
18747 * xselect.c (x_handle_dnd_message):
18748 * xmenu.c (digest_single_submenu, xmenu_show):
18749 * xdisp.c (with_echo_area_buffer_unwind_data)
18750 (format_mode_line_unwind_data, unwind_format_mode_line)
18751 (display_menu_bar):
18752 * eval.c (Ffetch_bytecode):
18753 * doc.c (store_function_docstring):
18754 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18755 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18756 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18757
187582008-02-07 Kenichi Handa <handa@m17n.org>
18759
18760 * ftxfont.c (ftxfont_open): Don't set
18761 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18762
18763 * ftfont.c (ftfont_open): Fix previous change.
18764
187652008-02-06 Jason Rumney <jasonr@gnu.org>
18766
18767 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18768 Use cached metrics for ASCII characters.
18769 (w32font_open_internal): Don't set font's owning_frame.
18770 Cache metrics for ASCII characters.
18771
18772 * w32font.h (struct w32font_info): Add ascii_metrics.
18773 Remove owning_frame.
18774
187752008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18776
18777 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18778 to negative value.
18779
18780 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18781
18782 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18783
18784 * charset.c (syms_of_charset): Set QCtest and Qeq.
18785
187862008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18787
18788 * process.c (Fstart_process):
18789 * callproc.c (Fcall_process): Handle the case where
18790 Funhandled_file_name_directory returns nil.
18791
18792 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18793 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18794 * font.c (check_gstring): Use them and AREF to access the vector before
18795 we know it's really a gstring.
18796 (Ffont_shape_text): Fix typo.
46e722a9 18797 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18798
18799 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18800 Declare.
18801
18802 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18803
188042008-02-05 Jason Rumney <jasonr@gnu.org>
18805
18806 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18807 Set smallest_font_height and smallest_char_width in display info.
18808
188092008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18810
18811 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18812
188132008-02-05 Miles Bader <miles@gnu.org>
18814
18815 * xfaces.c (get_lface_attributes, merge_named_face)
18816 (lookup_named_face, lookup_derived_face, realize_named_face):
18817 Revert 2008-02-01 change by cyd@stupidchicken.com.
18818
188192008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18820
18821 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18822 fallback fonts.
18823 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18824
188252008-02-04 Jason Rumney <jasonr@gnu.org>
18826
18827 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18828 set full_name.
18829 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18830
188312008-02-03 Jason Rumney <jasonr@gnu.org>
18832
18833 * makefile.w32-in (OBJ1): Include font.o here.
18834 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18835
188362008-02-02 Jason Rumney <jasonr@gnu.org>
18837
18838 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18839
188402008-02-01 Jason Rumney <jasonr@gnu.org>
18841
18842 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18843
18844 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18845
188462008-02-01 Andreas Schwab <schwab@suse.de>
18847
18848 * Makefile.in (shortlisp, lisp): Update for rename of
18849 ../lisp/language/myanmar.el.
18850
188512008-02-01 Chong Yidong <cyd@stupidchicken.com>
18852
18853 * xfaces.c (get_lface_attributes): Delete function.
18854 (merge_named_face, lookup_named_face, lookup_derived_face)
18855 (realize_named_face): Call lface_from_face_name directly, and use
18856 the fact that merge_face_vectors does not alter its FROM argument.
18857
188582008-02-01 Jason Rumney <jasonr@gnu.org>
18859
18860 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18861 input in the default locale. Handle non-Unicode multibyte input.
18862
188632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18864
18865 * fontset.c (reorder_font_vector): Exclude nil elements from the
18866 font group. Don't try multiple fonts.
18867 (fontset_font): Adjust for the above change.
18868 (Finternal_char_font): Return nil if the found font doesn't
18869 contain the character ch.
18870
18871 * Makefile.in (lisp, shortlisp): Add cham.el.
18872
188732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18874
18875 * font.h (FONTP): Make it return 1 also for a font-object.
18876
18877 * .gdbinit (xfontset): New function.
18878
18879 * font.c (font_find_for_lface): Check if the character C is
18880 supported or not only for the first font.
18881
18882 * fontset.c (reorder_font_vector): Fix typo.
18883 (fontset_find_font): Don't add a font-spec specifying a script.
18884 Use 0 (not Qt) for the indication of empty font-group. Change the
18885 format of RFONT-DEF. Return Qt if no font in the font-group
18886 support the character.
18887 (fontset_font): Adjust for the above change. If no font was
18888 found the character, remember that.
18889 (face_for_char): Adjust for the change of RFONT-DEF.
18890 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18891 no font for the target.
18892 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18893
188942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18895
18896 * font.c (font_load_for_face): Handle the case that the font in
18897 face->lface is a string.
18898
188992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18900
18901 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18902
189032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18904
18905 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18906 Fix previous change. If the frame is not on a window system,
18907 signal an error.
18908
189092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18910
18911 * coding.c (decode_coding_object, encode_coding_object): Adjust
18912 marker positions after conversion.
18913
18914 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18915
189162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18917
18918 * font.c (font_find_for_lface): Fix the handling of the return
18919 value of font_has_char.
18920 (Ffont_shape_text): Fix previous change.
18921
18922 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18923 (fontset_ref_and_range): Delete it.
18924 (fontset_find_font): Call char_table_ref_and_range instead of
18925 FONTSET_REF_AND_RANGE.
18926 (make_fontset): Don't setup font groups of Latin here.
18927 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18928 (new_fontset_from_font): Make the specified font the default for
18929 all Latin characters.
18930
189312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18932
18933 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18934 is on a window system before accessing the fontset of the frame.
18935
189362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18937
18938 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18939
18940 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18941 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18942
18943 * font.c (Ffont_shape_text): If the font driver doesn't have a
18944 shaper function, make zero-width glyphs to have at least one-pixel
18945 width. Fix setting of `to' field of glyphs.
18946
189472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18948
18949 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18950 glyphs.
18951
18952 * font.h (struct font_driver): Improve docstring of member `shape'.
18953
189542008-02-01 Kenichi Handa <handa@m17n.org>
18955
18956 * composite.c (syms_of_composite): Fix docstring of
18957 auto-composition-function.
18958
18959 * font.h (LGLYPH_SIZE): New macro.
18960
18961 * font.c (Ffont_fill_gstring): Stop filling when a character not
18962 supported by the font is found.
18963 (Ffont_shape_text): When a shape callback function returns nil,
18964 try at most two more times with larger gstring.
18965 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18966
18967 * xdisp.c (handle_auto_composed_prop): Change the argument to
18968 auto-composition-function.
18969
18970 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18971 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18972 Lispy glyph and store it in the lgstring.
18973
18974 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18975
18976 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18977
189782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18979
18980 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18981
18982 * fontset.c (Vfont_encoding_charset_alist): New variable.
18983 (syms_of_fontset): DEFVAR it.
18984 (reorder_font_vector, fontset_find_font): Optimize for the case of
18985 no need of reordering.
18986 (face_for_char): Map the charset property by
18987 Vfont_encoding_charset_alist.
18988
189892008-02-01 Jason Rumney <jasonr@gnu.org>
18990
18991 * w32font.c (logfonts_match): Don't check adstyle here.
18992 (font_matches_spec): Check here against physical font instead.
18993 (add_font_entity_to_list): Avoid some substitutions.
18994
18995 * font.c (font_parse_fcname): Default weight and slant to normal.
18996 (font_score): Prefer normal fonts if weight or slant unspecified.
18997 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18998 match freetype scores.
18999
190002008-02-01 Jason Rumney <jasonr@gnu.org>
19001
19002 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19003 font, as it may have been deleted.
19004 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19005 most common hyphenless variation.
19006 (logfonts_match): Check generic family.
19007 (font_matches_spec): Don't check generic family here.
19008 (fill_in_logfont): Set generic family based on adstyle.
19009
19010 * w32font.h (w32font_get_cache): Update declaration.
19011
190122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19013
19014 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19015
19016 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19017 If none of the new drivers are available, call font_update_drivers
19018 with the old drivers.
19019
19020 * w32font.c (w32font_get_cache): Adjust the argument type.
19021
19022 * xfont.c (xfont_get_cache): Adjust the argument type.
19023
19024 * font.h (struct font_driver): Change argument type of get_cache.
19025
19026 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19027
19028 * font.c (Ffont_get): Fix arguments to Fassoc.
19029 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19030 (font_clear_cache): New function.
19031 (font_list_entities, font_matching_entity): Use font_get_cache.
19032 (font_update_drivers): Call font_clear_cache when finishing a driver.
19033
19034 * fontset.c (fontset_find_font): Fix previous change.
19035
190362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19037
19038 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19039 dpyinfo->font_table.
19040 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19041 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19042
19043 * font.c (font_at): Handle the case that the arg C is negative.
19044 Handle the unibyte case.
19045 (Ffont_at): Call font_at with the arg C -1.
19046
19047 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19048 the position here, and call font_at with the arg C -1.
19049 Don't check the range of the existing composition at the point.
19050
190512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19052
19053 * fontset.c (fontset_add): New args charset_id and family.
19054 Change caller.
19055 (load_font_get_repertory, fontset_find_font): Assume that
19056 font_spec is always a font-spec object.
19057 (Fset_fontset_font): Always store a font-spec object in a fontset.
19058
19059 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19060 instead of get_property_and_range.
19061
190622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19063
19064 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19065 (xftfont_open): Don't keep locking face.
19066 (xftfont_close): Don't unlock face.
19067 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19068
19069 * fontset.c (fontset_find_font): Don't prefer a font of
19070 supplementary charset.
19071
190722008-02-01 Kenichi Handa <handa@m17n.org>
19073
19074 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19075 script, langsys_tag to langsys, new member script.
19076 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19077 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19078 listing to the script specified in that property. Fix arg to
19079 OTF_check_features.
19080
190812008-02-01 Jason Rumney <jasonr@gnu.org>
19082
19083 * w32font.h: New file.
19084
19085 * w32font.c: Include it.
19086 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19087 (w32font_open): Set owning_frame.
19088 (w32font_text_extents): Use owning_frame.
19089 (struct font_callback_data): Add opentype_only field.
19090 (add_font_entity_to_list): Use it to filter fonts.
19091 Don't check against full name.
19092 (w32font_list_internal): New function.
19093 (w32font_list): Use it.
19094 (w32font_match_internal): New function.
19095 (w32font_match): Use it.
19096 (w32font_open_internal): New function.
19097 (w32font_open): Use it.
19098 (w32font_get_cache, w32font_close, w32font_has_char)
19099 (w32font_encode_char, w32font_text_extents, w32font_draw):
19100 Make non-static.
19101
19102 * makefile.w32-in (w32font.o): Depend on w32font.h.
19103
191042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19105
19106 * charset.c (Fdefine_charset_internal): Record a supplementary
19107 charset at the tail of Vcharset_order_list.
19108
19109 * font.c (Ffont_shape_text): Fix the return value.
19110
19111 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19112
19113 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19114
191152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19116
19117 * ftfont.c (struct OpenTypeSpec): New struct.
19118 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19119 (ftfont_get_open_type_spec): New function.
19120 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19121
19122 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19123
191242008-02-01 Jason Rumney <jasonr@gnu.org>
19125
19126 * w32font.c (add_font_entity_to_list): Compare only the beginning
19127 of full name.
19128
191292008-02-01 Kenichi Handa <handa@m17n.org>
19130
19131 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19132 Never return HANDLED_RECOMPUTE_PROPS.
19133
191342008-02-01 Kenichi Handa <handa@m17n.org>
19135
19136 * font.c (font_gstring_produce): Delete it.
19137
19138 * composite.h (COMPOSITION_METHOD):
19139 Handle COMPOSITION_WITH_GLYPH_STRING.
19140
191412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19142
19143 * xfont.c (Qx): Delete.
19144 (syms_of_xfont): Don't initialize Qx.
19145
19146 * composite.h (enum composition_method):
19147 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19148
191492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19150
19151 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19152 (choose_face_font): Accept new form of font-spec.
19153
19154 * frame.h (font_driver_list): Declare it unconditionally.
19155 (struct frame): Define members font_driver_list and font_data_list
19156 unconditionally.
19157
19158 * fontset.c: Include "font.h" unconditionally.
19159 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19160 (Fset_fontset_font): Accept a font-spec object.
19161
19162 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19163 PIXEL_SIZE part a wild card.
19164
19165 * dispextern.h (struct glyph_string): Define members clip and
19166 num_clips unconditionally.
19167 (struct face): Define members font_info and extra unconditionally.
19168
19169 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19170 ftfont_info only when HAVE_LIBOTF is defined.
19171
191722008-02-01 Andreas Schwab <schwab@suse.de>
19173
19174 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19175 and end.
19176
191772008-02-01 Jason Rumney <jasonr@gnu.org>
19178
19179 * w32font.c (w32font_driver): Add new fields.
19180
191812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19182
19183 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19184 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19185 (LIBES): Add @M17N_FLT_CFLAGS@.
19186
19187 * composite.c (compose_text): Don't treat the new style
19188 composition specially.
19189
19190 * emacs.c (main): Call syms_of_font unconditionally.
19191
19192 * font.h (FONT_ENTITY_NOT_LOADABLE)
19193 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19194 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19195 (struct font_driver): New member shape.
19196 (font_registry_charsets): Extern it.
19197 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19198 (font_otf_capability, font_drive_otf): Delete their externs.
19199
19200 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19201 (font_charset_alist, font_registry_charsets): Move from xfont.c
19202 and rename.
19203 (font_prop_validate_otf): New function.
19204 (font_property_table): Register it for QCotf.
19205 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19206 (font_drive_otf): Delete.
19207 (font_prepare_composition): New arg F. Adjust for the change of
19208 lispy gstring.
19209 (font_find_for_lface): New arg C.
19210 (font_load_for_face): Adjust for the change of font_find_for_lface.
19211 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19212 lispy gstring.
19213 (Ffont_shape_text): New function.
19214 (Fopen_font): If the font size is not given, use 12-pixel.
19215 (Ffont_at): New arg STRING.
40b1a3a9 19216 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19217 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19218 conditionally.
19219
19220 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19221 fonts of the same font-spec. Change the format of RFONT-DEF.
19222 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19223 Adjust for the change of RFONT-DEF.
19224 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19225
19226 * ftfont.h: New file.
19227
19228 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19229 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19230 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19231 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19232 font_otf_capability and font_drive_otf, set ftfont_shape.
19233 (ftfont_list): Adjust for the change of :otf property value.
19234 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19235 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19236 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19237 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19238 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19239 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19240
19241 * w32term.c (x_draw_composite_glyph_string_foreground):
19242 Adjust for the change of lispy gstring.
19243
19244 * xdisp.c (handle_composition_prop): Adjust for the change of
19245 lispy gstring. Call a function for auto-composition with the
19246 third arg it->window.
19247 (fill_composite_glyph_string): Adjust for the change of lispy string.
19248 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19249
19250 * xfaces.c (set_font_frame_param): Adjust for the change of
19251 font_find_for_lface.
19252
19253 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19254 (xfont_registry_charsets): Likewise. Change caller.
19255 (syms_of_xfont): Don't handle x_font_charset_alist.
19256
19257 * xftfont.c: Include "ftfont.h".
19258 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19259 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19260 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19261 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19262 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19263 Set xftfont_driver.shape to xftfont_shape.
19264
19265 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19266 the change of lispy gstring.
19267
192682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19269
19270 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19271
192722008-02-01 Jason Rumney <jasonr@gnu.org>
19273
19274 * w32font.c (w32font_draw): Fill background manually.
19275
192762008-02-01 Jason Rumney <jasonr@gnu.org>
19277
19278 * font.c (Qfontp): Remove unused symbol.
19279 (QCantialias): New symbol.
19280 (syms_of_font): Define it.
19281 (font_property_table): Set a validator for QCantialias.
19282
19283 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19284 Define if not already.
19285 (QCfamily): Share with xfaces.c.
19286 (Qstandard, Qsubpixel, Qnatural): New symbols.
19287 (syms_of_w32font): Define them. Don't define QCfamily here.
19288 (w32_antialias_type, lispy_antialias_type): New functions.
19289 (w32_enumfont_pattern_entity): New arg requested_font.
19290 Set antialias parameter if non-default was requested.
19291 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19292
192932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19294
19295 * lread.c (read1): Undo the previous change.
19296
192972008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19298
19299 * frame.c (Fdelete_frame): Call font_update_drivers only when
19300 USE_FONT_BACKEND is defined.
19301
193022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19303
19304 * font.h (struct font_bitmap): New member bits_per_pixel.
19305 (struct font_driver): New members start_for_frame and end_for_frame.
19306 (struct font_data_list): New struct.
19307 (font_put_frame_data, font_get_frame_data): Extern them.
19308
19309 * frame.h (struct frame): New member font_data_list.
19310
19311 * font.c (font_update_drivers): Call driver->start_for_frame and
19312 driver->end_for_frame at proper timings.
19313 (font_put_frame_data, font_get_frame_data): New functions.
19314 (Ffont_spec): Add usage in the docstring.
19315
19316 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19317 (Fdelete_frame): Call font_update_drivers.
19318
19319 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19320 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19321 (xftfont_get_xft_draw): New function.
19322 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19323 (xftfont_end_for_frame): New function.
19324 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19325
19326 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19327 Change argument. Cache GCs in the per-frame data.
19328 (struct ftxfont_frame_data): New struct.
19329 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19330 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19331 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19332 (ftxfont_end_for_frame): New function.
19333 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19334
19335 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19336
193372008-02-01 Kenichi Handa <handa@m17n.org>
19338
19339 * xselect.c (Vselection_coding_system)
19340 (Vnext_selection_coding_system): Delete them.
19341 (syms_of_xselect): Don't declare selection-coding-system and
19342 next-selection-coding-system. They are declared in select.el.
19343
193442008-02-01 Jason Rumney <jasonr@gnu.org>
19345
19346 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19347
19348 * w32fns.c: Include imm.h.
19349 (get_composition_string_fn, get_ime_context_fn): New optional
19350 system functions.
19351 (globals_of_w32fns): Load them from imm32.dll.
19352 (ignore_ime_char): New flag.
19353 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19354 WM_IME_ENDCOMPOSITION messages.
19355
19356 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19357 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19358
193592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19360
19361 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19362 (READCHAR_REPORT_MULTIBYTE): New macro.
19363 (readchar): New 2nd arg MULTIBYTE.
19364 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19365 Make symbol's name multibyte according to the multibyteness of the
19366 source.
19367
193682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19369
19370 * xfaces.c (face_for_overlay_string): Call lookup_face with
19371 correct arguments (fix of synching with the trunk).
19372
193732008-02-01 Kenichi Handa <handa@m17n.org>
19374
19375 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19376 (font_prop_validate_non_neg, font_prop_validate_spacing):
19377 Delete argument prop_index.
19378 (font_property_table): Change arguments to validater. Change Callers.
19379 (font_lispy_object): Delete.
19380 (font_at): Use font_find_object instead fo font_lispy_object.
19381
193822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19383
19384 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19385 and file names.
19386
193872008-02-01 Jason Rumney <jasonr@gnu.org>
19388
19389 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19390 (font_matches_spec): Remove debug output.
19391 (add_font_entity_to_list): Avoid using substituted fonts.
19392
193932008-02-01 Jason Rumney <jasonr@gnu.org>
19394
19395 * doc.c (Fsnarf_documentation):
19396 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19397
193982008-02-01 Miles Bader <miles@gnu.org>
19399
19400 * dispextern.h (struct glyph_row): Only define "clip" field if
19401 HAVE_WINDOW_SYSTEM is defined.
19402
194032008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19404
19405 Fix up multi-tty merge.
19406
19407 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19408 and indentation.
19409
19410 * xfaces.c (free_realized_face, clear_face_gcs):
19411 Include font_done_for_face in the input_blocked section, just in case.
19412
19413 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19414 (get_char_face_and_encoding): Undo last change and remove the *other*
19415 duplicate definition (i.e. keep the one that's better scoped and that
19416 includes code for the font-backend).
19417
19418 * terminal.c (create_terminal): Default keyboard_coding to
19419 `no-conversion' and terminal_coding to `undecided'.
19420
19421 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19422
19423 * fontset.c (free_realized_fontsets): Check that the table entry does
19424 contain a fontset before trying to compare it to `base'.
19425
19426 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19427 syms_of_charset, and syms_of_coding earlier because init_window_once
19428 now needs Vcoding_system_hash_table to be setup.
19429
19430 * coding.h (default_buffer_file_coding): Remove.
19431
19432 * coding.c (default_buffer_file_coding): Remove.
19433 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19434 than ->symbol, and use the terminal-local coding system.
19435 (syms_of_coding): Don't setup the coding-systems that are not
19436 terminal-local.
19437 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19438
19439 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19440 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19441
19442 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19443 in chartab.c and were re-added here by mistake.
19444 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19445
19446 * doc.c (Fsnarf_documentation):
19447 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19448 src to etc.
19449
19450 * ChangeLog.10: Add mistakenly removed entry.
19451
194522008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19453
19454 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19455
194562008-02-01 Miles Bader <miles@gnu.org>
19457
19458 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19459 Add extra args to FACE_FOR_CHAR.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19464 in sequence.
19465
19466 * chartab.c (map_sub_char_table, map_char_table): If the range
19467 contains just one character, call the function with that character
19468 even if the depth is not 3.
19469
194702008-02-01 Jason Rumney <jasonr@gnu.org>
19471
19472 * w32font.c (w32font_text_extents): Calculate metrics for the
19473 whole string.
19474
194752008-02-01 Jason Rumney <jasonr@gnu.org>
19476
19477 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19478
194792008-02-01 Jason Rumney <jasonr@gnu.org>
19480
19481 * w32term.c (x_set_glyph_string_clipping): Use
19482 get_glyph_string_clip_rects.
19483 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19484 Adjust for the change of struct glyph_string.
19485
19486 * w32font.c (w32font_draw): Do clipping here.
19487
194882008-02-01 Kenichi Handa <handa@m17n.org>
19489
19490 * xftfont.c (xftfont_draw): Adjust for the change of struct
19491 glyph_string.
19492
19493 * xterm.c (x_set_glyph_string_clipping): Use
19494 get_glyph_string_clip_rects.
19495 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19496 Adjust for the change of struct glyph_string.
19497
19498 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19499 the resulting clip(s}.
19500 (expose_overlaps): Add arg r. Change callers. Set it to
19501 row->clip temporarily.
19502 (expose_window): Redraw rows overlapping the exposed area.
19503
19504 * dispextern.h (struct glyph_row): New member clip.
19505 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19506 clip_height, new member clip, and num_clips.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * data.c (Fchar_or_string_p): Fix docstring.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19515 create a temporary XftDraw object.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * font.c (Ffontp): Fix docstring.
19520
19521 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19522 strong evidence of ISO-2022.
19523
195242008-02-01 Kenichi Handa <handa@m17n.org>
19525
19526 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19527 SYNTAX_ENTRY_FOLLOW_PARENT.
19528
195292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19530
19531 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19532 its type.
19533 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19534 Update to the new type of weak_hash_tables and next_weak.
19535
19536 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19537 a plain C pointer to Lisp_Hash_Table.
19538
19539 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19540 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19541 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19542 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19543 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19544 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19545 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19546 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19547 (GC_EQ): Remove since they've been identical to their non-GC_
19548 alter-egos ever since the markbit was eradicated.
19549
19550 * alloc.c:
19551 * buffer.c:
19552 * buffer.h:
19553 * data.c:
19554 * fileio.c:
19555 * filelock.c:
19556 * fns.c:
19557 * frame.h:
19558 * lisp.h:
19559 * macterm.c:
19560 * print.c:
19561 * process.c:
19562 * w32fns.c:
19563 * w32menu.c:
19564 * w32term.c:
19565 * xfns.c:
19566 * xmenu.c:
19567 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * chartab.c (map_sub_char_table): Make it work for the top-level
19572 char-table. Fix handling of parent char-table.
19573 (map_char_table): Adjust for the above change.
19574
195752008-02-01 Jason Rumney <jasonr@gnu.org>
19576
19577 * w32font.c (Qgdi): Rename from Qw32.
19578
195792008-02-01 Jason Rumney <jasonr@gnu.org>
19580
19581 * w32bdf.c (get_quoted_string): Make function static.
19582
195832008-02-01 Kenichi Handa <handa@m17n.org>
19584
19585 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19586 bigger ascent and descent than those of the font, use them as
19587 font's ascent and descent.
19588
195892008-02-01 Kenichi Handa <handa@m17n.org>
19590
19591 * Makefile.in (${lispsource}international/charprop.el): Move this
19592 target within "#ifdef HAVE_UNIDATA" and "#endif".
19593
195942008-02-01 Kenichi Handa <handa@m17n.org>
19595
19596 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19597 (shortlisp): Add ../lisp/language/tai-viet.el.
19598
195992008-02-01 Ulrich Mueller <ulm@gentoo.org>
19600
19601 * Makefile.in (${lispsource}international/charprop.el): Depend on
19602 temacs${EXEEXT}.
19603
196042008-02-01 Jason Rumney <jasonr@gnu.org>
19605
19606 * w32font.c (w32font_close): Delete the GDI font object.
19607
19608 * w32menu.c: Include character.h.
19609
19610 * w32proc.c: Likewise.
19611
19612 * w32select.c: Likewise.
19613
19614 * makefile.w32-in (w32proc.o): Depend on character.h.
19615
196162008-02-01 Jason Rumney <jasonr@gnu.org>
19617
19618 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19619
19620 * w32menu.c (syms_of_w32menu): Likewise.
19621
19622 * w32proc.c (syms_of_ntproc): Likewise.
19623
19624 * w32select.c (syms_of_w32select): Likewise.
19625
19626 * w32term.c (syms_of_w32term): Likewise.
19627
196282008-02-01 Jason Rumney <jasonr@gnu.org>
19629
19630 * w32font.c (w32font_draw): Delete brush after using it.
19631
196322008-02-01 Jason Rumney <jasonr@gnu.org>
19633
19634 * w32font.c (w32font_open): Don't set font_idx.
19635 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19636 to font settings.
19637 (w32font_draw): Fill background explicitly.
19638
196392008-02-01 Jason Rumney <jasonr@gnu.org>
19640
19641 * w32term.c (w32_initialize): Don't call w32font_initialize.
19642
19643 * w32font.c (w32font_info): Remove subranges.
19644 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19645 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19646 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19647 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19648 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19649 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19650 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19651 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19652 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19653 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19654 New symbols.
19655 (font_callback_data): New struct.
19656 (w32font_list, w32font_match): Use it.
19657 (w32font_open): Don't populate subranges.
19658 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19659 (w32font_encode_char): Always return unicode code-point as-is.
19660 (w32font_text_extents): Supply a transformation matrix to
19661 GetGlyphOutline. Never look up by glyph index. Avoid looping
19662 twice. Use unicode version of GetTexExtentPoint32 instead of
19663 glyph index version.
19664 (set_fonts_frame): Remove.
19665 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19666 set frame parameter. Use backward compatible fake foundries.
19667 Save generic family in extra slot under QCfamily. Make width slot
19668 constant. Save QCspacing value. Save list of scripts instead of
19669 binary subranges.
19670 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19671 (add_font_entity_to_list): Use font_callback_data struct. Filter
19672 unwanted fonts.
19673 (add_one_font_entity_to_list): Use font_callback_data struct.
19674 (w32_registry): Default to iso10646_1.
19675 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19676 string font registries. Don't fill in font name if it is a generic
19677 family name, fill family instead. Use spacing, family and script
19678 extra info to fill pitch, family and charset fields.
19679 (list_all_matching_fonts): Use font_callback_data struct.
19680 (unicode_range_for_char): Remove.
19681 (font_supported_scripts): New function.
19682 (w32font_initialize): Remove.
19683 (syms_of_w32font): Update which symbols are defined.
19684
196852008-02-01 Jason Rumney <jasonr@gnu.org>
19686
19687 * font.c (font_pixel_size): Reverse assq_no_quit args.
19688
19689 * w32term.h (FONT_WIDTH): Report max width, not average.
19690 (FONT_MAX_WIDTH): Remove.
19691 (FONT_AVG_WIDTH): New macro.
19692
19693 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19694 redefinition of FONT_WIDTH.
19695
19696 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19697 (w32_cache_char_metrics): Use FONT_WIDTH.
19698
19699 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19700
197012008-02-01 Jason Rumney <jasonr@gnu.org>
19702
19703 * w32font.c (w32font_open): Make lfHeight negative.
19704
19705 * w32fns.c (x_default_font_parameter): Use new style font name.
19706 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19707
197082008-02-01 Jason Rumney <jasonr@gnu.org>
19709
19710 * w32font.c (QCsubranges): New symbol.
19711 (w32font_open, w32font_has_char): Get subranges from subproperty
19712 of extra.
19713 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19714 (syms_of_w32font): Define :subranges symbol.
19715
19716 * font.c (font_put_extra): Expose externally.
19717
19718 * font.h (font_put_extra): Move declaration from font.c.
19719
19720 * font.c (Ffont_get): Use font driver to determine otf capability.
19721 (adjust_anchor): Check if driver defines anchor_point before using.
19722
19723 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19724 (w32font_draw): Use options.
19725 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19726 Fix detection of truetype fonts.
19727 (registry_to_w32_charset): Handle charsets other than iso8859-1
19728 expressed as lisp symbols.
19729 (w32_registry): Express charset as lisp symbol.
19730 (fill_in_logfont): Reverse pixel and point height logic.
19731 Don't set width here. Set quality to default.
19732
19733 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19734 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19735
19736 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19737 Remove redundant loop and allocation.
19738
19739 * makefile.w32-in (font.o, w32font.o): New objects.
19740 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19741 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19742
19743 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19744 STORE_XCHARB a valid l-value.
19745
19746 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19747 calculations for non-Truetype fonts.
19748 (x_draw_glyph_string): Sync with xterm.c.
19749 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19750 Remove redundant code.
19751 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19752
19753 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19754 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19755
19756 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19757 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19758
19759 * w32font.c: New file for w32 font backend.
19760
197612008-02-01 Kenichi Handa <handa@m17n.org>
19762
19763 * term.c: Don't include "buffer.h" twice.
19764
197652008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * character.c (Funibyte_string): New function.
19768 (syms_of_character): Defsubr it.
19769
197702008-02-01 Jason Rumney <jasonr@gnu.org>
19771
19772 * w32term.c [USE_FONT_BACKEND]:
19773 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19774 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19775 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19776 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19777 (x_free_frame_resources): Sync with xterm.c.
19778
197792008-02-01 Andreas Schwab <schwab@suse.de>
19780
19781 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19782 char-table size.
19783
197842008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19787
197882008-02-01 Kenichi Handa <handa@m17n.org>
19789
19790 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19791 font_otf_gpos, add font_drive_otf.
19792
19793 * fontset.c (fontset_find_font): Pay attention to font size
19794 specified for a font.
19795 (reorder_font_vector): Check contents of font_def.
19796
19797 * font.c (struct otf_list): Delete it.
19798 (otf_list): Make it a lisp variable.
19799 (otf_open): Use lispy otf_list.
19800 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19801 (check_otf_features): New function.
19802 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19803 New functions.
19804 (font_drive_otf): New function merging font_otf_gsub and
19805 font_otf_gpos.
19806 (font_open_for_lface): New arg spec. Change argument order.
19807 (font_load_for_face): Adjust for the change of font_open_for_lface.
19808 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19809 Ffont_otf_gpos.
19810 (syms_of_font): Staticpro otf_list. Delete defsubr of
19811 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19812
19813 * xfaces.c (set_font_frame_param): Adjust for the change of
19814 font_open_for_lface.
19815
19816 * font.h (font_open_for_lface): Adjust prototype.
19817 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19818 member otf_drive.
19819 (font_otf_gsub, font_otf_gpos): Delete externs.
19820 (font_drive_otf): Extern it.
19821
198222008-02-01 Kenichi Handa <handa@m17n.org>
19823
19824 * font.c (font_at): If the window W is not on a window system,
19825 return Qnil.
19826
19827 * coding.c (produce_chars, encode_coding): Don't call
19828 insert_from_gap if no characters to produce.
19829
198302008-02-01 Kenichi Handa <handa@m17n.org>
19831
19832 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19833 Fclear_face_cache.
19834
19835 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19836
198372008-02-01 Miles Bader <miles@gnu.org>
19838
19839 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19840 Parse "--disable-font-backend" option.
19841 (standard_args): Add "--disable-font-backend" option.
19842
198432008-02-01 Kenichi Handa <handa@m17n.org>
19844
19845 * fontset.c (fontset_find_font): New function.
19846 (fontset_font): Use fontset_find_font.
19847 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19848 Register the specified font for all Latin characters.
19849 (new_fontset_from_font): Register the specified font for all Latin
19850 characters.
19851 (dump_fontset): For a realized fontset, include the base fontset
19852 name in the returned vector.
19853
198542008-02-01 Kenichi Handa <handa@m17n.org>
19855
19856 * character.h (CHAR_STRING): Cast C to unsigned on calling
19857 char_string.
19858
19859 * character.c (char_string): Type of arg C changed to unsigned.
19860 Signal an error if C is an invalid character code.
19861
19862 * editfns.c (general_insert_function, Fchar_to_string):
19863 Use CHARACTERP, not INTEGERP.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19868 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19869
19870 * regex.c (analyse_first): Fix for multibyte characters in "case
19871 charset:" and "case categoryspec:".
19872
198732008-02-01 Andreas Schwab <schwab@suse.de>
19874
19875 * Makefile.in (LIBES): Move standard libraries to the end.
19876
198772008-02-01 Kenichi Handa <handa@m17n.org>
19878
19879 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19880 nonzero, don't shrink the buffer nextb.
19881
19882 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19883
19884 * coding.c (coding_alloc_by_making_gap): New arg offset.
19885 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19886 offset.
19887 (decode_coding_iso_2022): Update coding->safe_charsets.
19888 (decode_coding_gap): Temporarily set
19889 current_buffer->text->inhibit_shrinking to 1.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19894 indexing into elements of s->cmp and s->char2b.
19895
198962008-02-01 Juanma Barranquero <lekktu@gmail.com>
19897
19898 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19899
199002008-02-01 Kenichi Handa <handa@m17n.org>
19901
19902 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19903 target_multibyte instead of multibyte.
19904 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19905 (bcmp_translate): Change the argument name from multibyte to
19906 target_multibyte.
19907
199082008-02-01 Kenichi Handa <handa@m17n.org>
19909
19910 These changes are to compile a regexp into a pattern that can be
19911 used both for multibyte and unibyte targets.
19912
19913 * Makefile.in (search.o): Depend on charset.h.
19914
19915 * character.c (multibyte_char_to_unibyte_safe): New function.
19916
19917 * search.c: Include "charset.h".
19918 (compile_pattern_1): Delete argument multibyte. Don't set
19919 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19920 (compile_pattern): Don't compare cp->buf.target_multibyte.
19921 Compare cp->buf.charset_unibyte.
19922 (compile_pattern): Set cp->buf.target_multibyte.
19923
19924 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19925
19926 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19927
19928 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19929 multibyte. Change callers.
19930 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19931 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19932 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19933 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19934 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19935 (regex_compile): Make the compiled pattern usable both for
19936 multibyte and unibyte targets.
19937 (analyse_first): Make the fastmap usable both for multibyte and
19938 unibyte targets.
19939 (TRANSLATE_VIA_MULTIBYTE): Delete.
19940 (re_match_2_internal): Pay attention to the case that the
19941 multibyteness of bufp and target may be different.
19942
199432008-02-01 Kenichi Handa <handa@m17n.org>
19944
19945 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19946 empty box occupy at least one column width.
19947
199482008-02-01 Miles Bader <miles@gnu.org>
19949
19950 * Makefile.in: Remove redundant HAVE_XFT clause.
19951
199522008-02-01 Kenichi Handa <handa@m17n.org>
19953
19954 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19955
199562008-02-01 Kenichi Handa <handa@m17n.org>
19957
19958 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19959 being nil.
19960
199612008-02-01 Kenichi Handa <handa@m17n.org>
19962
19963 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19964
199652008-02-01 Kenichi Handa <handa@m17n.org>
19966
19967 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19968
199692008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * search.c (simple_search): Fix previous change.
19972
199732008-02-01 Kenichi Handa <handa@m17n.org>
19974
19975 * xftfont.c (ftfont_font_format): Extern declaration.
19976
19977 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19978
19979 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19980 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19981
19982 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19983 (ftfont_font_format): Fix previous change.
19984
19985 * font.h (Ffont_xlfd_name): EXFUN it.
19986
19987 * font.c (font_parse_xlfd): Fix the array size of `f'.
19988 (register_font_driver): Use EQ to compare driver->type.
19989
19990 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19991 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19992 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19993
199942008-02-01 Kenichi Handa <handa@m17n.org>
19995
19996 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19997 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19998
199992008-02-01 Kenichi Handa <handa@m17n.org>
20000
20001 * xfont.c (xfont_open): Set font->format.
20002
20003 * xftfont.c (xftfont_open): Set font->format.
20004
20005 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20006 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20007 (ftfont_open): Set font->format.
20008 (ftfont_font_format): New function.
20009
20010 * font.h (struct font): New member format.
20011
20012 * font.c (Qopentype): New variable.
20013 (syms_of_font): Defsym it.
20014 (Fquery_font): Change the format of the last element of the return
20015 value.
20016
200172008-02-01 Kenichi Handa <handa@m17n.org>
20018
20019 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20020 last resort.
20021
200222008-02-01 Kenichi Handa <handa@m17n.org>
20023
20024 * coding.c (detect_coding_charset): Fix detection of multi-byte
20025 charset.
20026
200272008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20028
20029 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20030
200312008-02-01 Kenichi Handa <handa@m17n.org>
20032
20033 * xdisp.c (get_next_display_element): Set it->face_id for the
20034 first component of a composition.
20035 (x_produce_glyphs): Check if the font is changed or not for composition.
20036
200372008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * fontset.c (Qlatin): New variable.
20040 (syms_of_fontset): Define it as a lisp symbol.
20041 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20042
200432008-02-01 Kenichi Handa <handa@m17n.org>
20044
20045 * font.c (font_unparse_fcname): Pay attention to the case that
20046 some of font property is a null string.
20047
200482008-02-01 Kenichi Handa <handa@m17n.org>
20049
20050 * term.c: Include "composite.h".
20051 (encode_terminal_code): Output all components of composition.
20052 Check the size of encode_terminal_src.
20053 (produce_glyphs): For composition, call produce_composite_glyph.
20054 (append_composite_glyph, produce_composite_glyph): New functions.
20055
20056 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20057 is not found, get font_info from the current ascii face.
20058
200592008-02-01 Kenichi Handa <handa@m17n.org>
20060
20061 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20062 buffer-file-name to Qnil before calling insert_from_buffer.
20063
20064 * font.c (font_unparse_fcname): Pay attention to the case that
20065 foundry is a null string.
20066
200672008-02-01 Kenichi Handa <handa@m17n.org>
20068
20069 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20070
20071 * font.c (Qunicode_sip): New variable.
20072 (syms_of_font): Declare it as a Lisp symbol.
20073
20074 * font.h (Qunicode_sip): Extern it.
20075
200762008-02-01 Kenichi Handa <handa@m17n.org>
20077
20078 * composite.c (get_composition_id): Pay attention to TAB component.
20079
20080 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20081 TAB. Adjust for the change of s->char2b which always points to
20082 the first element of allocated memory.
20083
20084 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20085
20086 * xdisp.c (handle_composition_prop): Set it->c to the first
20087 non-TAB component.
20088 (fill_composite_glyph_string): Change argument.
20089 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20090 (x_produce_glyphs): Fix handling of left/right padding.
20091
200922008-02-01 Kenichi Handa <handa@m17n.org>
20093
20094 * coding.c (detect_coding_system): Fix for handling off
20095 inhibit_iso_escape_detection. Fix for the case that no coding
20096 system is defined for a specific coding category.
20097
200982008-02-01 Kenichi Handa <handa@m17n.org>
20099
20100 * font.c (font_matching_entity): Delete unused local var.
20101
20102 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20103 opening a font.
20104
20105 * fileio.c (Finsert_file_contents): On recovering a file, assume
20106 Unix-like eol.
20107 (choose_write_coding_system): On auto-saving a file, force
20108 Unix-like eol.
20109
20110 * coding.c (setup_coding_system): Fix setting of
20111 coding->common_flags based on eol_type.
20112 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20113 inherit from it.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * alloc.c (NSTATICS): Increas to 0x600.
20118
201192008-02-01 Kenichi Handa <handa@m17n.org>
20120
20121 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20122 (ftfont_list): Don't check :name property.
20123 (ftfont_match): New function.
20124 (ftfont_pattern_entity): If the pattern doesn't contain
20125 FC_SPACING, don't assume FC_MONO.
20126
20127 * font.h (struct font_driver): New member `match'.
20128 (font_update_drivers): Adjust prototype.
20129
20130 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20131 property of FONT.
20132 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20133 them unconditionally.
20134 (font_matching_entity): New function.
20135 (font_open_by_name): Try font_matching_entity if exact match is
20136 not found.
20137 (font_update_drivers): Delete the arg FONT. Return a list of
20138 actually used backends. Don't free faces, font caches here.
20139 Don't store data in frame parameters. Don't call x_set_font.
20140 (Ffont_spec): Store :name property as is.
20141 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20142 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20143 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20144 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20145 Call font->driver->otf_gsub instead of font_otf_gsub.
20146
20147 * frame.c (x_set_font_backend): Do more works that were done in
20148 font_update_drivers before.
20149
20150 * xfont.c (xfont_match): New function.
20151 (xfont_driver): Set xfont_driver.match to xfont_match.
20152 (xfont_draw): Set font in GC if necessary.
20153
20154 * ftxfont.c (ftxfont_match): New function.
20155 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20156
20157 * xftfont.c (xftfont_match): New function.
20158 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20159
201602008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 * font.h (struct font): New member scalable.
20163 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20164 (font_otf_gsub): Adjust prototype.
20165
20166 * font.c (font_otf_capability): Fix handling of the default langsys.
20167 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20168 Check the contents of SPEC.
20169 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20170 (check_gstring): New function.
20171 (REPLACEMENT_CHARACTER): New macro.
20172 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20173 glyph codes of GSTRING.
20174 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20175 (font_prepare_composition): Set cmp->glyph_len.
20176 (font_open_entity): Set font->scalable.
20177 (Ffont_get): Handle :otf property.
20178 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20179 functions.
20180 (Fquery_font): Use font->font.full_name.
20181 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20182 Sfont_otf_alternates.
20183
20184 * ftfont.c (ftfont_open): Set font->font.full_name and
20185 font->font.name properly. Fix calculation of font->font.height
20186 and font->min_width.
20187
20188 * ftxfont.c (ftxfont_create_gcs): New function.
20189 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20190 (ftxfont_draw_backgrond): Fix filling region.
20191 (ftxfont_default_fid): New function.
20192 (ftxfont_open): Set xfont->fid to the return value of
20193 ftxfont_default_fid.
20194 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20195 (ftxfont_done_face): Free only GCs that are created by
20196 ftxfont_create_gcs.
20197 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20198
20199 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20200 Clip to src->width, etc (not src->clip_XXX).
20201
20202 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20203 FontBackend frame parameter.
20204
202052008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * font.h (struct font_driver_list): New member `on'.
20208 (Fclear_font_cache): EXFUN it.
20209 (font_update_drivers): Extern it.
20210
20211 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20212 (font_list_entities): Check driver_list->on.
40b1a3a9 20213 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20214 (font_update_drivers): New function.
20215 (Fclear_font_cache): Check driver_list->on.
20216
20217 * frame.h (Qfont_backend): Extern it.
20218 (x_set_font_backend): Extern it.
20219
20220 * frame.c (Qfont_backend): New variable.
20221 (frame_parms): New element for font-backend.
20222 (x_set_font_backend): New function.
20223
20224 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20225 FontBackend frame parameter.
20226 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20227 x_set_font_backend.
20228
20229 * xfont.c (xfont_list): Don't try listing by :name property if the
20230 name is not for XLFD.
20231
202322008-02-01 Kenichi Handa <handa@m17n.org>
20233
20234 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20235 (LGLYPH_SET_TO): New macros.
20236 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20237 element of G is vector or not.
20238 (font_at): Extern it.
20239
20240 * font.c: Include window.h.
20241 (font_lispy_object): New function.
20242 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20243 end of valid glyph.
20244 (font_close_object): Fix getting (struct font *).
20245 (font_at): New function.
20246 (Ffont_get): If FONT is a font-object, get entity from it.
20247 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20248 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20249 range check.
20250 (Ffont_at): New function.
20251 (syms_of_font): Defsubr Sfont_at.
20252
20253 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20254 before the entry for Qcomposition.
20255 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20256 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20257 the font in gstring.
20258 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20259 LGLYPH_FORM (g) to detect the end of valid glyph.
20260 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20261 we are composing with gstring.
20262
20263 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20264 Check if adjustment is vector or not.
20265
20266 * Makefile.in (font.o): Make it depends on window.h.
20267
202682008-02-01 Kenichi Handa <handa@m17n.org>
20269
20270 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20271 adjustment is vector or not.
20272
202732008-02-01 Miles Bader <miles@gnu.org>
20274
20275 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20276
202772008-02-01 Kenichi Handa <handa@m17n.org>
20278
20279 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20280 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20281 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20282
20283 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20284 (DEVICE_DELTA): Fix typo.
20285 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20286 LGLYPH format.
20287
20288 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20289 the change of LGLYPH format.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * ftfont.c (ftfont_list): Fix typo.
20294 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20295
202962008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20297
20298 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20299
20300 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20301 xftface_info is non-NULL.
20302
203032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20304
20305 * ftfont.c (ftfont_list): Move misplaced #endif.
20306
203072008-02-01 Kenichi Handa <handa@m17n.org>
20308
20309 * ftfont.c (ftfont_list): Pay attention to the case that
20310 FC_CAPABILITY is not defined.
20311
203122008-02-01 Kenichi Handa <handa@m17n.org>
20313
20314 * xftfont.c (xftfont_open): Set charset related members to -1.
20315
20316 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20317 QCname.
20318 (ftfont_open): Set charset related members to -1.
20319
20320 * fontset.c (Votf_script_alist): New variable.
20321 (syms_of_fontset): Initialize it.
20322 (fontset_font): Delete unused variable.
20323
20324 * fontset.h (Votf_script_alist): Extern it.
20325
20326 * font.c (font_find_for_lface): Optimize code.
20327
20328 * font.h (font_close_object, font_merge_old_spec): Extern them.
20329
203302008-02-01 Kenichi Handa <handa@m17n.org>
20331
20332 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20333 (syms_of_font): Initialize them.
20334 (font_pixel_size): Allow float value in dpi.
20335 (font_prop_validate_type): Delete.
20336 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20337 Change caller.
20338 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20339 (font_prop_validate_extra): Delete.
20340 (font_prop_validate_spacing): New function.
20341 (font_property_table): Add elements for all known properties.
20342 (get_font_prop_index): Rename from check_font_prop_name. New
20343 argument FROM. Change caller.
20344 (font_prop_validate): Validate all known properties.
20345 (font_put_extra): Delete argument force. Change caller.
20346 (font_expand_wildcards): Make it static. Fix the way of shrinking
20347 the possible range.
20348 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20349 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20350 Change caller.
20351 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20352 (font_parse_fcname): Delete argument merge. Fix parsing of point
20353 size. Don't validate properties values here. Change caller.
20354 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20355 (font_open_by_name): Delete unused variable.
20356 (Ffont_spec): Likewise. Validate property values.
20357 (Ffont_match_p): New function.
20358
20359 * font.h (QCscalable): Extern it.
20360 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20361
20362 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20363
20364 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20365 (xfont_list_pattern): New function.
20366 (xfont_list): Use xfont_list_pattern.
20367
203682008-02-01 Kenichi Handa <handa@m17n.org>
20369
20370 * font.h (Flist_fonts): EXFUN it.
20371
203722008-02-01 Jason Rumney <jasonr@gnu.org>
20373
20374 * w32term.c (w32_initialize): Add back smoothing_type and
20375 smoothing_enabled definitions.
20376
203772008-02-01 Kenichi Handa <handa@m17n.org>
20378
20379 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20380 s->face->font on determining underline position.
20381
203822008-02-01 Kenichi Handa <handa@m17n.org>
20383
20384 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20385 (font_has_char): Accept font-object too.
20386 (font_find_for_lface): Try at first with a size specified in face.
20387
203882008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20391 font_open_by_name.
20392
203932008-02-01 Kenichi Handa <handa@m17n.org>
20394
20395 * font.h (QCspacing, QCdpi): Extern them.
20396 (enum font_spacing): New enum.
20397 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20398
20399 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20400 (QCspacing, QCdpi): New variables.
20401 (syms_of_font): Initialize them.
20402 (font_pixel_size): New function.
20403 (font_put_extra): New function.
20404 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20405 in FONT_EXTRA.
20406 (font_parse_fcname): Handle enumerated values (e.g. bold).
20407 Fix handling font size. Add QCname property that contains only
20408 unknown properties.
20409 (font_score): Change argument. Change caller. Pay attention to
20410 FONT_PIXEL_SIZE_QUANTUM.
20411 (font_sort_entites, font_list_entities, font_find_for_lface)
20412 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20413 (Ffont_spec): Add QCname property that contains only unknown properties.
20414
20415 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20416 include weight in listing pattern, instead check weight of each
20417 listed font. Don't include scalable in pattern. Pay attention to
20418 FONT_PIXEL_SIZE_QUANTUM.
20419
204202008-02-01 Kenichi Handa <handa@m17n.org>
20421
20422 * font.c (font_parse_fcname): Fix parsing of point-size.
20423 (font_unparse_fcname): Produce symbolic names for style properties.
20424 (font_list_entities): Handle float size correctly.
20425 (font_open_by_name): Prefer `normal' property values if the name
20426 doesn't specify them.
20427
20428 * fontset.c (Finternal_char_font): Use font_get_name, not
20429 Ffont_xlfd_name.
20430
20431 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20432 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20433 pattern. Don't force scalable.
20434
20435 * xftfont.c (xftfont_open): For generating a name, start from
20436 96-byte buffer.
20437
204382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20439
20440 * frame.h (x_new_fontset2): Fix prototype.
20441
204422008-02-01 Kenichi Handa <handa@m17n.org>
20443
20444 * font.h (struct font_driver): Delete member parse_name.
20445 (font_match_p, font_get_spec, font_parse_fcname)
20446 (font_unparse_fcname): Extern them.
20447 (font_get_name): Adjust prototype.
20448
20449 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20450 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20451 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20452 unnecessary checks for weight, slant, and swidth.
20453 (font_parse_fcname): New function.
20454 (font_unparse_fcname): New function.
20455 (font_parse_name): New function.
20456 (font_match_p): New function.
20457 (font_get_name): Change return value to Lisp string.
20458 (font_get_spec): New function.
20459 (Qunspecified, Qignore_defface): Don't extern them.
20460 (font_find_for_lface): Assume that LFACE is fully specified.
20461 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20462 object, use it for FACE.
20463 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20464 driver->parse_name.
20465 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20466
20467 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20468 prototype.
20469
20470 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20471 argument F. Don't call Fnew_fontset. Instead, directly call
20472 make_fontset.
20473
20474 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20475
20476 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20477 of x_new_fontset2.
20478
20479 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20480 (Qsans__serif): New variables.
20481 (ftfont_generic_family_list): New variable.
20482 (syms_of_ftfont): Initialize the above variables.
20483 (ftfont_pattern_entity): Delete argument NAME.
20484 (ftfont_list_generic_family): New function.
20485 (ftfont_parse_name): Delete this function.
20486 (ftfont_list): Try generic family only when FcFontList found no font.
20487 (ftfont_list_family): Fix args to FcObjectSetBuild.
20488
20489 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20490 object in attrs[LFACE_FONT_INDEX].
20491 (set_lface_from_font_name): Cancel all changes for font-backend.
20492 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20493 function.
20494 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20495 font object in QCfont attribute.
20496 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20497 (realize_default_face) [USE_FONT_BACKEND]: Call
20498 set_lface_from_font_and_fontset.
20499
20500 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20501 "fixed", and signal error here if no suitable font was found.
20502
20503 * xfont.c (xfont_parse_name): Delete this function.
20504
20505 * xftfont.c (xftfont_open): Change coding style of error
20506 handling. Generate fontconfig's fontname pattern.
20507
20508 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20509 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20510
20511 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20512 Both args FONTSET and FONT_OBJECT must be existing ones.
20513
205142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20515
20516 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20517
205182008-02-01 Kenichi Handa <handa@m17n.org>
20519
20520 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20521
20522 * font.h (struct font): Fix typo.
20523
20524 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20525 XLFD_XXX_INDEX.
20526 (enum xlfd_field_mask): New enum.
20527 (intern_font_field): Changed argument. Change caller. If digits
20528 are followed by non-digits, return a symbol.
20529 (font_expand_wildcards): New function.
20530 (font_parse_xlfd): Fix wildcard handling.
20531 (Ffont_spec): If :name is specified, reflect the info in the other
20532 properties.
20533
20534 * ftfont.c (ftfont_pattern_entity): Fix typo.
20535 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20536 locale.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20541
20542 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20543 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20544 registry doesn't specify encoding part.
20545 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20546 (font_open_by_name): At first try parsing the name.
20547 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20548 as Lisp symbols.
20549
20550 * fontset.c (reorder_font_vector): Pay attention to the case that
20551 the 3rd element of font_def is nil.
20552 (fontset_font): For the default fontset, append one more fontset
20553 elements for a script-based font specification. Don't add script
20554 attribute on finding a font.
20555 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20556 font name.
20557 (fontset_ascii_font): If a font can't be opened, return nil.
20558
20559 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20560 (ftfont_pattern_entity): New function.
20561 (ftfont_get_cache): Assume that freetype_font_cache is already
20562 initialized.
20563 (ftfont_list): Handle the case that a file is specified in font
20564 name. Use ftfont_pattern_entity to generate entities.
20565 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20566 (syms_of_ftfont): Initialize freetype_font_cache.
20567
20568 * xftfont.c (xftfont_open): Make the font name fontconfig's
20569 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20570 (xftfont_close): Free font->font.name if not NULL.
20571
20572 * xfont.c (xfont_list): If script is specified for a font, return
20573 null_vector.
20574 (xfont_list_family): Declare argument type.
20575
20576 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20577 name, set LFACE_FONT (lface) to nil.
20578
20579 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20580 return Qnil.
20581
205822008-02-01 Kenichi Handa <handa@m17n.org>
20583
20584 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20585 (standard_args): Add "-enable-font-backend".
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20590 (struct xftdraw_list, xftdraw_list): Delete them.
20591 (register_xftdraw, check_xftdraw): Delete them.
20592 (xftfont_prepare_face): Don't call register_xftdraw.
20593 (xftfont_done_face): Don't call check_xftdraw.
20594 (xftfont_draw): Get background color only when with_background is
20595 nonzero.
20596
20597 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20598
205992008-02-01 Kenichi Handa <handa@m17n.org>
20600
20601 These changes are for the new font handling codes.
20602
20603 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20604 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20605 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20606 (FONTSRC, FONTOBJ): New variables.
20607 (obj): Add $(FONTOBJ).
20608 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20609 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20610 @LIBOTF_LIBS@.
20611 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20612 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20613
20614 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20615
20616 * character.h (Vscript_representative_chars): Extern it.
20617
20618 * character.c (Vscript_representative_chars): New variable.
20619 (syms_of_character): Declare it as a Lisp variable.
20620
20621 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20622 enable_font_backend is nonzero, accept the composition method
20623 COMPOSITION_WITH_GLYPH_STRING.
20624
20625 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20626 enumeration COMPOSITION_WITH_GLYPH_STRING.
20627
20628 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20629 members clip_x, clip_y, clip_width, and clip_height.
20630 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20631
20632 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20633 --enable-font-backend. Call syms_of_font.
20634
20635 * fns.c (assoc_no_quit): New function.
20636
20637 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20638 (face_for_font, new_fontset_from_font)
20639 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20640
20641 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20642 (fontset_font, fontset_ascii, face_for_char)
20643 (make_fontset_for_ascii_face, Ffont_info)
20644 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20645 is nonzero, use font-backend mechanism.
20646 (find_font_encoding): Make it non-static.
20647 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20648 New functions.
20649
20650 * frame.h (struct frame): New members resx and resy.
20651 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20652 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20653
20654 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20655 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20656
20657 * lisp.h (assoc_no_quit): Extern it.
20658
20659 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20660 Through out the file, use FONT_INFO_FROM_FACE instead of
20661 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20662 rif->per_char_metric.
20663 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20664 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20665 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20666 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20667 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20668 nonzero, use font-backend mechanism.
20669 (get_per_char_metric): New function.
20670
20671 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20672 (set_lface_from_font_name)
20673 (set_font_frame_param, free_realized_face)
20674 (prepare_face_for_display, clear_face_gcs)
20675 (Finternal_set_font_selection_order, realize_x_face)
20676 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20677 font-backend mechanism.
20678 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20679 (load_face_font) [USE_FONT_BACKEND]: Abort.
20680 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20681 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20682
20683 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20684 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20685 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20686 nonzero, register all available font drivers. Call
20687 x_default_font_parameter for deciding a font.
20688 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20689
20690 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20691 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20692 (x_set_glyph_string_clipping_exactly)
20693 (x_compute_glyph_string_overhangs)
20694 (x_draw_glyph_string_foreground)
20695 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20696 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20697 enable_font_backend is nonzero, use font-backend mechanism.
20698 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20699
207002008-02-01 Kenichi Handa <handa@m17n.org>
20701
20702 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20703 system_eol_type.
20704 (syms_of_coding): Initialize system_eol_type.
20705
20706 * process.c (Fset_process_coding_system): Inherit system's eol
20707 format if necessary.
20708
207092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20710
20711 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20712
207132008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * coding.c (decode_eol): Pay attention to buffer relocation in
20716 del_range_2.
20717 (decode_coding): Call decode_eol before restoring undo_list.
20718
207192008-02-01 Kenichi Handa <handa@m17n.org>
20720
20721 * charset.c (Fdefine_charset_internal): Fix setting of
20722 emacs_mule_bytes.
20723
207242008-02-01 Kenichi Handa <handa@m17n.org>
20725
20726 * keyboard.c (read_char): Check if C is a character or not before
20727 looking up Vkeyboard_translate_table.
20728
207292008-02-01 Kenichi Handa <handa@m17n.org>
20730
20731 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20732 condition to terminate the loop.
20733
207342008-02-01 Kenichi Handa <handa@m17n.org>
20735
20736 * coding.c (produce_composition): Compare charbuf[i] instead of
20737 args[i] against 0.
20738 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20739
207402008-02-01 Kenichi Handa <handa@m17n.org>
20741
20742 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20743 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20744 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20745 detect_coding.
20746 (emacs_mule_char): Handle old style (Emacs 20) component character
20747 of a composition.
20748 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20749 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20750 composition rule.
20751 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20752
207532008-02-01 Kenichi Handa <handa@m17n.org>
20754
20755 * coding.c (encode_coding_ccl): Allocate destination dynamically
20756 when necessary.
20757
207582008-02-01 Kenichi Handa <handa@m17n.org>
20759
20760 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20761 the loop. When quitted, show a proper error message.
20762
207632008-02-01 Kenichi Handa <handa@m17n.org>
20764
20765 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20766 src->clip_head and src->clip_tail temporarily instead of src->hl.
20767
20768 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20769 character sequence.
20770 (Fccl_execute_on_string): Use ASET, not XSET.
20771
207722008-02-01 Kenichi Handa <handa@m17n.org>
20773
20774 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20775
207762008-02-01 Kenichi Handa <handa@m17n.org>
20777
20778 * coding.c (decode_coding): Fix the condition of terminating the
20779 decoding loop.
20780
207812008-02-01 Kenichi Handa <handa@m17n.org>
20782
20783 * data.c (Faset): On setting a character bigger than 255 in a
20784 unibyte string, signal an error instead of make the string multibyte.
20785
207862008-02-01 Kenichi Handa <handa@m17n.org>
20787
20788 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20789 made by a mapping table.
20790
207912008-02-01 Kenichi Handa <handa@m17n.org>
20792
20793 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20794 not.
20795 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20796 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20797
20798 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20799 s->face is NULL or not.
20800
208012008-02-01 Kenichi Handa <handa@m17n.org>
20802
20803 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20804 (x_draw_glyph_string): Fix drawing of right_overhang and
20805 left_overhang around/on cursor.
20806
20807 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20808
208092008-02-01 Kenichi Handa <handa@m17n.org>
20810
20811 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20812
208132008-02-01 Kenichi Handa <handa@m17n.org>
20814
20815 * coding.c (Fdefine_coding_system_internal)
20816 (Fdefine_coding_system_alias): Avoid a duplicated element in
20817 Vcoding_system_alist.
20818
208192008-02-01 Kenichi Handa <handa@m17n.org>
20820
20821 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20822
20823 * coding.c (Qcoding_system_define_form): New variable.
20824 (syms_of_coding): Intern and staticpro it.
20825 (Fcoding_system_p): Check Qcoding_system_define_form.
20826 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20827
20828 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20829 Fcoding_system_p.
20830 (CHECK_CODING_SYSTEM): If ID is not available, call
20831 Fcheck_coding_system.
20832 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20833 Try also Fcheck_coding_system.
20834
208352008-02-01 Kenichi Handa <handa@m17n.org>
20836
20837 * coding.c (code_conversion_restore): GCPRO arg.
20838
208392008-02-01 Kenichi Handa <handa@m17n.org>
20840
20841 * character.c (lisp_string_width): Check multibyteness of STRING.
20842
208432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20844
20845 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20846 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20847 (decode_mac_font_name): Use decode_coding_c_string instead of
20848 decode_coding.
20849 (x_load_font): Initialize fontp->fontset to -1. Set
20850 fontp->encoding_type.
20851
208522008-02-01 Kenichi Handa <handa@m17n.org>
20853
20854 * search.c (search_buffer): Give up BM search on case-fold-search
20855 if one of a target character has a case-equivalence of different
3b59c351 20856 byte length even if that target character is an ASCII.
aac0c6e3
MR
20857 (simple_search): Fix calculation of byte length of matched text.
20858 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20859
208602008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * coding.c (decode_coding): Fix handling of invalid bytes.
20863
208642008-02-01 Kenichi Handa <handa@m17n.org>
20865
20866 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20867 Unicode characters.
20868
208692008-02-01 Kenichi Handa <handa@m17n.org>
20870
20871 * coding.c (encode_coding_object): If a pre-write-conversion
20872 function makes a new buffer, kill it.
20873
208742008-02-01 Kenichi Handa <handa@m17n.org>
20875
20876 * coding.c (QCascii_compatible_p): New variable.
20877 (syms_of_coding): Initialize it.
20878 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20879 calling string_char.
20880 (record_conversion_result): Add `default:' case.
20881 (coding_charset_list): Delete unused variable `coding_type'.
20882 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20883 property in the plist of the coding system.
20884 (Fcoding_system_put): Check QCascii_compatible_p.
20885
208862008-02-01 Miles Bader <miles@gnu.org>
20887
20888 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20889 removed calculation of frame `f', as it's now used.
20890
208912008-02-01 Kenichi Handa <handa@m17n.org>
20892
20893 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20894 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20895 (UNIDATA): New variable.
20896 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20897 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20898 $(RUN_TEMACS) unconditionally.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20903 (admindir): New variable.
20904 ($(lispsource)international/charprop.el): New target.
20905
209062008-02-01 Miles Bader <miles@gnu.org>
20907
20908 * character.c (chars-in-region): Remove obsolete function.
20909 (syms_of_character): Remove its initialization.
20910
209112008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20912
20913 * w32select.c (validate_coding_system)
20914 (setup_windows_coding_system): New functions.
20915 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20916 setup_windows_coding_system.
20917 (setup_config, Fw32_get_clipboard_data): Use
20918 validate_coding_system.
20919 (Fx_selection_exists): Move call to setup_config to a place
20920 where signals are allowed.
20921
20922 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20923 (Fcheck_coding_system): Add declarations.
20924
209252008-02-01 Kenichi Handa <handa@m17n.org>
20926
20927 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20928
209292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20930
20931 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20932 string as the second argument for x_new_fontset.
20933
209342008-02-01 Kenichi Handa <handa@m17n.org>
20935
20936 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20937 (encode_coding_object): Use safe_call instead of call2.
20938
209392008-02-01 Kenichi Handa <handa@m17n.org>
20940
20941 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20942
20943 * Makefile.in (lisp): Include charprop.el.
20944
209452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20946
20947 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20948 Not sure if it's unnecessary.
20949
209502008-02-01 Steven Tamm <steventamm@mac.com>
20951
20952 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20953 some possibly unnecessary fontset checking code that crashed
20954 when creating a new frame.
20955
209562008-02-01 Kenichi Handa <handa@m17n.org>
20957
20958 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20959 lookup_face.
20960
20961 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20962
20963 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20964
209652008-02-01 Kenichi Handa <handa@m17n.org>
20966
20967 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20968 (coding_charset_list): New function.
20969
20970 * coding.h (coding_charset_list): Extern it.
20971
209722008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20975 concatenation of family and registry.
20976
209772008-02-01 Kenichi Handa <handa@m17n.org>
20978
20979 * character.h (BYTE8_STRING): Fix typo.
20980
20981 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20982 string to multibyte (sync to HEAD).
20983
20984 * casefiddle.c (casify_region): Handle changes in byte-length
20985 using replace_range_2 (sync to HEAD).
20986
209872008-02-01 Andreas Schwab <schwab@suse.de>
20988
20989 * chartab.c (map_char_table): GCPRO table and arg.
20990
209912008-02-01 Kenichi Handa <handa@m17n.org>
20992
20993 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20994 already at limit.
20995
209962008-02-01 Kenichi Handa <handa@m17n.org>
20997
20998 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20999 instead of fast_c_string_match_ignore_case.
21000 (find_font_encoding): Change argument to Lisp_Object. Use
21001 fast_string_match_ignore_case instead of
21002 fast_c_string_match_ignore_case. Change caller.
21003
210042008-02-01 Kenichi Handa <handa@m17n.org>
21005
21006 * xdisp.c (get_next_display_element): In unibyte case, decide to
21007 display in octal form by checking a character by
21008 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21009
21010 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21011
21012 * character.c (unibyte_has_multibyte_table): New variable.
21013
21014 * character.h (unibyte_has_multibyte_table): Extern it.
21015 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21016
210172008-02-01 Kenichi Handa <handa@m17n.org>
21018
21019 * coding.c (encode_coding_iso_2022): Fix handling of charset
21020 annotation.
21021
210222008-02-01 Kenichi Handa <handa@m17n.org>
21023
21024 * coding.c (setup_coding_system): If coding_system is nil, use
21025 Qundecided.
21026 (Fterminal_coding_system): Return nil if terminal coding system is
21027 `undecided'.
21028 (syms_of_coding): Define coding-system `undecided' here. Setup
21029 terminal_coding as `undecided'.
21030
210312008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * xdisp.c (message_dolog, set_message_1): Call
21034 unibyte_char_to_multibyte with arg type int.
21035
21036 * lread.c (read1): Fix reading of a char-table.
21037
21038 * print.c (print_object): Include sub char-table in circularities
21039 detection.
21040
210412008-02-01 Kenichi Handa <handa@m17n.org>
21042
21043 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21044 Append the found sequences in car of ARGS instead of prepending.
21045
210462008-02-01 Kenichi Handa <handa@m17n.org>
21047
21048 * fileio.c (report_file_error): Make a unibyte string from
21049 strerror (errorno).
21050 (Fsubstitute_in_file_name): Fix the arg to
21051 unibyte_char_to_multibyte. It is evaluated twice.
21052
210532008-02-01 Kenichi Handa <handa@m17n.org>
21054
21055 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21056
210572008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21060 BOM is not found.
21061 (detect_coding, detect_coding_system): Optimization for ISO-2022
21062 when no 8-bit data is found.
21063
210642008-02-01 Jason Rumney <jasonr@gnu.org>
21065
21066 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21067
210682008-02-01 Kenichi Handa <handa@m17n.org>
21069
21070 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21071 CHARS.
21072
210732008-02-01 Steven Tamm <steventamm@mac.com>
21074
21075 * macterm.c (mac_encode_char): Add charset argument and update
21076 to use encoding_type.
21077 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21078 switch to pure fontset.
21079 (decode_mac_font_name): Temporarily remove decoding.
21080 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21081 (x_load_font): Temporarily remove encoding.
21082
210832008-02-01 Kenichi Handa <handa@m17n.org>
21084
21085 * xfaces.c (Fface_font): If frame is not on a window system,
21086 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21087 refer to face->font.
21088 (split_font_name_into_vector, build_font_name_from_vector)
21089 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21090 when HAVE_WINDOW_SYSTEM is defined.
21091
210922008-02-01 Kenichi Handa <handa@m17n.org>
21093
21094 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21095 (x_produce_glyphs): Fix setting of members of cmp in case
21096 cmp->glyph_len is zero.
21097
21098 * fontset.c (Fset_fontset_font): Fix docstring.
21099 (Ffontset_info): Make it backward compatible. New arg ALL.
21100
211012008-02-01 Kim F. Storm <storm@cua.dk>
21102
21103 * process.c (read_process_output): Grow decoding_buf when needed;
21104 this could cause a crash in allocate_string and compact_small_strings.
21105
211062008-02-01 Kenichi Handa <handa@m17n.org>
21107
21108 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21109
211102008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * coding.c (setup_coding_system): Set coding->common_flags
21113 correctly for raw-text.
21114 (consume_chars): On encoding unibyte text by raw-text, don't check
21115 multibyte form.
21116 (encode_coding): On encoding by raw-text, never use translation tables.
21117
21118 * fileio.c (e_write): Short cut for the case of no encoding.
21119
211202008-02-01 Kenichi Handa <handa@m17n.org>
21121
21122 * coding.c (detect_coding, detect_coding_system): Delete unused
21123 variables.
21124
211252008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21128 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21129
211302008-02-01 Kenichi Handa <handa@m17n.org>
21131
21132 * coding.c (Ffind_coding_systems_region_internal): Include
21133 raw-text and no-conversion in the result.
21134
211352008-02-01 Kenichi Handa <handa@m17n.org>
21136
21137 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21138 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21139 FONT_DEF.
21140 (font_def_arg, add_arg, from_arg, to_arg): New args.
21141 (set_fontset_font): Change argument.
21142 (Fset_fontset_font): Fix for the case that TARGET is a script
21143 name and charset name.
21144 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21145
211462008-02-01 Kenichi Handa <handa@m17n.org>
21147
21148 * fontset.c (fontset_font): Rename from fontset_face. Change return
21149 value.
21150 (face_suitable_for_char_p, face_for_char): Adjust for the change
21151 of fontset_font.
21152 (make_fontset_for_ascii_face): Fix setting of the fontset element
21153 for ASCII.
21154 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21155 to get a font name.
21156 (Ffontset_info): Adjust for the change of fontset_font.
21157
21158 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21159
21160 * character.h (LEADING_CODE_LATIN_1_MIN)
21161 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21162
211632008-02-01 Kenichi Handa <handa@m17n.org>
21164
21165 * editfns.c (check_translation): New function.
21166 (Ftranslate_region_internal): Handle M:N mapping.
21167
211682008-02-01 Kenichi Handa <handa@m17n.org>
21169
21170 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21171
211722008-02-01 Kenichi Handa <handa@m17n.org>
21173
21174 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21175 goto invalid_code.
21176 (decode_coding_iso_2022): Fix handling of invalid designation.
21177
21178 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21179 after calling code_conversion_save.
21180
211812008-02-01 Kenichi Handa <handa@m17n.org>
21182
21183 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21184
21185 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21186
21187 * fontset.c: Include "intervals.h".
21188 (fontset_face): Fix comparing of Lisp_Objects.
21189 (free_face_fontset, new_fontset_from_font_name): Fix
21190 Lisp_Object/int mixup.
21191
21192 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21193
21194 * coding.c: Add many prototypes for static functions.
21195 (get_translation_table): Allow max_lookup to be NULL.
21196 (decode_coding, Ffind_coding_systems_region_internal)
21197 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21198 get_translation_table with max_lookup NULL.
21199
212002008-02-01 Kenichi Handa <handa@m17n.org>
21201
21202 * coding.c (get_translation_table): Declare it as Lisp_Object.
21203 (LOOKUP_TRANSLATION_TABLE): New macro.
21204 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21205 instead of CHAR_TABLE_REF.
21206
212072008-02-01 Kenichi Handa <handa@m17n.org>
21208
21209 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21210 annotation data format.
21211 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21212 Change arguments FROM and TO to single argument NCHARS. Change caller.
21213 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21214 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21215 (decode_coding_ccl, decode_coding_charset): Pay attention to
21216 coding->charbuf_used.
21217 (get_translation): New function.
21218 (produce_chars): New arguments translation_table and last_block.
21219 Translate characters here. Return number of carryover chars.
21220 Change caller.
21221 (produce_composition): New argument pos. Change caller.
21222 Adjust for the change of annotation data format.
21223 (produce_charset, produce_annotation): Likewise.
21224 (decode_coding, encode_coding): Don't call translate_chars.
21225 (consume_chars): New arg translation_table. Change caller.
21226 (translate_chars): Delete.
21227 (syms_of_coding): Make translation-table's number of extra slots 2.
21228
212292008-02-01 Kenichi Handa <handa@m17n.org>
21230
21231 * search.c (simple_search): Fix setting this_pos_byte in backward
21232 search.
21233
21234 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21235 byte sequence.
21236 (detect_coding_ccl): Fix setting of the variable valids.
21237
212382008-02-01 Kenichi Handa <handa@m17n.org>
21239
21240 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21241
21242 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21243
21244 * editfns.c (Ftranslate_region_internal): Rename from
21245 Ftranslate_region. Accept a char-table in TABLE.
21246 (syms_of_editfns): Defsubr Stranslate_region_internal.
21247
21248 * xfaces.c (set_lface_from_font_name): If a font is specified for
21249 a frame, generate a fontset from the font.
21250 (build_scalable_font_name): If the scalable font is requested for
21251 a specific size, don't change that size.
21252 (try_font_list): Try a scalable font also in the case that a
21253 pattern string is specified.
21254
212552008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * xfaces.c (Fface_font): New optional arg CHARACTER.
21258
212592008-02-01 Kenichi Handa <handa@m17n.org>
21260
21261 * charset.h (CHARSET_OFFSET): New macro.
21262
212632008-02-01 Kenichi Handa <handa@m17n.org>
21264
21265 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21266
21267 * fontset.c (fontset_face): Handle the case that repertory is a
21268 char-table.
21269 (find_font_encoding): Return nil for unknown encoding.
21270 (Fset_fontset_font): Ignore a font of unknown encoding.
21271
212722008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * keymap.c (describe_vector): Handle default value of a char table.
21275
21276 * fontset.c (fontset_face): Handle fallback fonts correctly.
21277 (Ffontset_info): Return infomation about fallback fonts.
21278
212792008-02-01 Kenichi Handa <handa@m17n.org>
21280
21281 * fontset.c (FONTSET_DEFAULT): New macro.
21282 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21283 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21284 the case that it is nil.
21285 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21286 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21287
21288 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21289 subset or superset.
21290
212912008-02-01 Kenichi Handa <handa@m17n.org>
21292
21293 * emacs.c (main): Call init_charset after syms_of_XXX.
21294
21295 * charset.c (Vcharset_map_directory): Delete.
21296 (Vcharset_map_path): New variable.
21297 (load_charset_map_from_file): Use Vcharset_map_path instead.
21298 (init_charset): Initialize Vcharset_map_path.
21299 (syms_of_charset): Delete declaration of "charset-map-directory",
21300 add declaration of "charset-map-path".
21301
213022008-02-01 Kenichi Handa <handa@m17n.org>
21303
21304 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21305 ASCII only string.
21306
21307 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21308
21309 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21310 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21311
213122008-02-01 Kenichi Handa <handa@m17n.org>
21313
21314 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21315
21316 * coding.c (QCmnemonic, QCdefalut_char)
21317 (QCdecode_translation_table, QCencode_translation_table)
21318 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21319 (get_translation_table): Return a list of translation tables if
21320 necessary.
21321 (decode_coding): Call get_translation_table with ENCODEP 0.
21322 (char_encodable_p): If translation_table is non-nil, always call
21323 translate_char.
21324 (Fdefine_coding_system_internal): Accept list of translation
21325 tables as :encode-translation-table and :decode-translation-table.
21326 (Fcoding_system_put): New function.
21327 (syms_of_coding): Declare new symbols. Defsubr
21328 Scoding_system_put.
21329 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21330 typically JISX0212.
21331
21332 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21333 when the charset is superset type.
21334
21335 * character.c (translate_char): Accept list of translation tables.
21336
213372008-02-01 Kenichi Handa <handa@m17n.org>
21338
21339 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21340 (CODING_ATTR_TRANS_TBL): New macro.
21341
21342 * coding.c (get_translation_table): New function.
21343 (translate_chars): Fix the bug of skipping annotation data.
21344 (decode_coding, encode_coding): Utilize get_translation_table.
21345 (char_encodable_p, Funencodable_char_position): Translate char if
21346 necessary.
21347 (Ffind_coding_systems_region_internal)
21348 (Fcheck_coding_systems_region): Setup translation table for encode
21349 in a coding system attribute vector in advance.
21350 (Fdefine_coding_system_internal): Allow a symbol as translation
21351 table. For shift-jis type coding system, allow 4th charset.
21352
213532008-02-01 Kenichi Handa <handa@m17n.org>
21354
21355 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21356
21357 * xdisp.c (get_next_display_element): Pass -1 as POS to
21358 FACE_FOR_CHAR if displaying a C-string.
21359
213602008-02-01 Kenichi Handa <handa@m17n.org>
21361
21362 * composite.c (get_composition_id): Handle xoff and yoff in a
21363 composition rule.
21364
21365 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21366 (struct composition): New member lbearing and rbearing.
21367
21368 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21369 (x_get_glyph_overhangs): Handle a composition glyph.
21370 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21371
21372 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21373 composition glyph.
21374
213752008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * print.c: Include charset.h.
21378 (Vprint_charset_text_property): New variable.
21379 (Qdefault): Extern it.
21380 (PRINT_STRING_NON_CHARSET_FOUND)
21381 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21382 (print_check_string_result): New variable.
21383 (print_check_string_charset_prop): New function.
21384 (print_prune_charset_plist): New variable.
21385 (print_prune_string_charset): New function.
21386 (print_object): Call print_prune_string_charset if
21387 Vprint_charset_text_property is not t.
21388 (print_interval): Print nothing if interval->plist is nil.
21389 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21390 variable. Init and staticpro print_prune_charset_plist.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * fontset.c (new_fontset_from_font_name): Use the specified font
21395 for all characters in the new fontset.
21396
21397 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21398 OBJECT args.
21399
21400 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21401 OBJECT args for composition too.
21402
21403 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21404 OBJECT args.
21405
214062008-02-01 Kenichi Handa <handa@m17n.org>
21407
21408 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21409
21410 * fontset.c (reorder_font_vector): Adjust for the change of
21411 FONT_DEF format.
21412 (fontset_face): New arg id. Change caller.
21413 (face_for_char): New args pos and object.
21414 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21415 (fs_query_fontset): Check NAME by Fassoc too.
21416 (Fset_fontset_font): Allow non-XLFD font name.
21417 (Ffontset_info): Adjust for the change of FONT_DEF format.
21418
21419 * fontset.h (face_for_char): Adjust prototype.
21420
21421 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21422 (append_space, extend_face_to_end_of_line)
21423 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21424 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21425
21426 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21427 POS and OBJECT args.
21428
21429 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21430 POS and OBJECT args.
21431
214322008-02-01 Jason Rumney <jasonr@gnu.org>
21433
21434 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21435 of GlobalAlloc'ed memory.
21436
214372008-02-01 Kenichi Handa <handa@m17n.org>
21438
21439 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21440
21441 * charset.h (charset_table_used): Delete extern.
21442
21443 * charset.c (charset_table_used): Make it static.
21444 (map_charset_chars): Fix args to c_function with.
21445
21446 * chartab.c (map_sub_char_table_for_charset): Fix args to
21447 c_function with.
21448
21449 * coding.h (enum coding_result_code): Delete
21450 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21451
21452 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21453 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21454 (Vlast_code_conversion_error): New variables.
21455 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21456 (ONE_MORE_BYTE): Record error if any instead of signaling an
21457 error. If non-ASCII multibyte char is found, return the negative
21458 value of the code. All callers changed to check it.
21459 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21460 (record_conversion_result): New function. Change all codes setting
21461 coding->result to call this function.
21462 (detect_coding_utf_8, decode_coding_utf_8)
21463 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21464 Don't use the local variable incomplete.
21465 (emacs_mule_char): Change the second arg to `const'.
21466 (decode_coding): Fix of flushing out unprocessed data.
21467 (make_conversion_work_buffer): Fix making of a work buffer.
21468 (decode_coding_object): Return coding->dst_object.
21469
21470 * fontset.c (set_fontset_font): Fix args.
21471
21472 * lisp.h (CHARACTERBITS): Define as 22.
21473
21474 * process.c (send_process): Be sure to set coding->src_multibyte.
21475
21476 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21477
214782008-02-01 Kenichi Handa <handa@m17n.org>
21479
21480 * xdisp.c (handle_auto_composed_prop): Give limit to
21481 Fnext_single_char_property_change.
21482
214832008-02-01 Kenichi Handa <handa@m17n.org>
21484
21485 * composite.c (syms_of_composite): Don't make the composition hash
21486 table weak.
21487
21488 * fontset.c (Fset_fontset_font): Fix docstring.
21489
21490 * lisp.h (detect_coding_system): Adjust prototype.
21491
21492 * fileio.c (kill_workbuf_unwind): Delete this function.
21493 (Finsert_file_contents): Adjust the call of detect_coding_system.
21494 Get conversion_buffer by code_conversion_save. Use the macro
21495 CODING_MAY_REQUIRE_DECODING. After decoding, update
21496 coding_system.
21497
21498 * coding.h (make_conversion_work_buffer): Delete extern.
21499 (code_conversion_save): Extern it.
21500
21501 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21502 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21503 (decode_coding_utf_8): Don't do eol converion.
21504 (detect_coding_utf_16): Check coding->src_chars, not
21505 coding->src_bytes. Add heuristics for those that have no signature.
21506 (decode_coding_emacs_mule, decode_coding_iso_2022)
21507 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21508 Don't do eol converion.
21509 (adjust_coding_eol_type): Return a new coding system.
21510 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21511 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21512 each change.
21513 (decode_coding): Pay attention to undo_list. Do eol conversion for
21514 all types of coding-systems (if necessary).
21515 (Vcode_conversion_work_buf_list): Delete it.
21516 (Vcode_conversion_reused_workbuf): Rename from
21517 Vcode_conversion_reused_work_buf.
21518 (Vcode_conversion_workbuf_name): New variable.
21519 (reused_workbuf_in_use): New variable.
21520 (make_conversion_work_buffer): Delete the arg DEPTH.
21521 (code_conversion_restore): Change argument to cons.
21522 (code_conversion_save): Delete the argument BUFFER. Change callers.
21523 (detect_coding_system): New argument src_chars. Change callers.
21524 Fix for utf-16 detection.
21525 (init_coding_once): Don't use ISO_carriage_return.
21526 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21527 reused_workbuf_in_use.
21528
215292008-02-01 Kenichi Handa <handa@m17n.org>
21530
21531 * keymap.c (store_in_keymap): Pay attention to the case that idx
21532 is a cons specifying a character range.
21533
215342008-02-01 Kenichi Handa <handa@m17n.org>
21535
21536 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21537 HANDLED_RECOMPUTE_PROPS.
21538
21539 * coding.c (Fdefine_coding_system_internal): Fix checking of
21540 ascii compatibility.
21541
215422008-02-01 Kenichi Handa <handa@m17n.org>
21543
21544 * charset.c (find_charsets_in_text): Delete unused locale variable.
21545 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21546
21547 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21548 Resync charset_list to Vemacs_mule_charset_list.
21549
21550 * keymap.c (store_in_keymap): Pay attention to the case that idx
21551 is a cons specifying a character range.
21552
215532008-02-01 Kenichi Handa <handa@m17n.org>
21554
21555 * composite.c (update_compositions): Bind inhibit-read-only, etc
21556 to t before calling remove-list-of-text-properties.
21557
21558 * print.c (print_object): Always print ASCII chars as is.
21559
215602008-02-01 Kenichi Handa <handa@m17n.org>
21561
21562 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21563
21564 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21565 is a char table.
21566
215672008-02-01 Kenichi Handa <handa@m17n.org>
21568
21569 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21570
215712008-02-01 Kenichi Handa <handa@m17n.org>
21572
21573 * xfaces.c (set_lface_from_font_name): Fix for the case that
21574 FONTNAME is not fontset name.
21575
215762008-02-01 Kenichi Handa <handa@m17n.org>
21577
21578 * fns.c (base64_encode_1): Fix previous change.
21579
215802008-02-01 Kenichi Handa <handa@m17n.org>
21581
21582 * fontset.c (set_fontset_font): New function.
21583 (Fset_fontset_font): If a font is specified for a charset, use
21584 map_charset_chars to store the font spec in a fontset.
21585
215862008-02-01 Kenichi Handa <handa@m17n.org>
21587
21588 * fontset.c (fontset_face): Create a fallback fontset on demand.
21589 (make_fontset): Don't create a fallback fontset here.
21590 (free_face_fontset): Free a fallback fontset (if any) too.
21591 (n_auto_fontsets): Delete this variable.
21592 (auto_fontset_alist): New variable.
21593 (new_fontset_from_font_name): Check auto_fontset_alist.
21594 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21595 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21596 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21597 Defsubr Sfontset_list_all.
21598
215992008-02-01 Kenichi Handa <handa@m17n.org>
21600
21601 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21602
216032008-02-01 Kenichi Handa <handa@m17n.org>
21604
21605 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21606
216072008-02-01 Kenichi Handa <handa@m17n.org>
21608
21609 * editfns.c (Fgoto_char): Fix docstring.
21610
216112008-02-01 Kenichi Handa <handa@m17n.org>
21612
21613 * insdel.c (insert_from_gap): Adjust intervals correctly.
21614
216152008-02-01 Jason Rumney <jasonr@gnu.org>
21616
21617 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21618 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21619 (w32_initialize): Try to load it.
21620 (x_get_font_repertory): Use it if available.
21621 (w32_encode_char): Add shortcut for unicode output.
21622
21623 * w32fns.c (w32_load_system_font): Default charset to -1.
21624 (x_to_w32_charset): Match all fonts for unicode.
21625 (w32_to_x_charset): New parameter matching. Don't return partial
21626 or wildcard charsets.
21627 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21628 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21629 (w32_to_x_font): Match charset to real charset.
21630 (enum_font_cb2): Always list unicode versions.
21631
21632 * makefile.w32-in (temacs): Increase EMHEAP.
21633
216342008-02-01 Jason Rumney <jasonr@gnu.org>
21635
21636 * w32term.c (w32_encode_char): New charset parameter.
21637 font_info.encoding becomes encoding_type.
21638 (x_get_font_repertory): New function. Warning: stub only!
21639 (x_new_font): Return quickly if font already set.
21640 (x_new_fontset): fontsetname parameter is Lisp_Object.
21641 Use new fs_query_fontset. Try new_fontset_from_font_name.
21642 Use fontset_name for return value.
21643
21644 * w32term.h: Declare x_get_font_repertory.
21645
21646 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21647 place of find_charset_in_text. Use encode_coding_object in place
21648 of encode_coding.
21649 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21650 decode_coding.
21651
21652 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21653 of x_new_fontset.
21654 (w32_load_system_font): Initialize charset as unicode.
21655 font_info.encoding becomes encoding_type.
21656 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21657 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21658 (syms_of_w32fns): Set get_font_repertory_func.
21659
21660 * w32console.c: Include character.h. Use terminal_encode_buffer
21661 from term.c.
21662 (write_glyphs): Use new version of encode_terminal_code. Use
21663 encode_coding_object in place of encode_coding.
21664
21665 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21666 encoding becomes encoding_type.
21667
21668 * term.c (terminal_encode_buffer): Make externally visible.
21669
21670 * makefile.w32-in: Add character.h dependancies.
21671 (character.o, chartab.o): New targets.
21672
216732008-02-01 Kenichi Handa <handa@m17n.org>
21674
21675 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21676 CODING_ID_EOL_TYPE.
21677
216782008-02-01 Andreas Schwab <schwab@suse.de>
21679
21680 * coding.c (produce_chars): Revert last change.
21681
216822008-02-01 Kenichi Handa <handa@m17n.org>
21683
21684 * charset.h (charset_unicode): Extern it.
21685
21686 * charset.c (string_xstring_p): Check by (C >= 0x100).
21687 (find_charsets_in_text): Change format of the arc CHARSETS. New
21688 arg MULTIBYTE.
21689 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21690 change of find_charsets_in_text.
21691 (Fsplit_char): Fix doc. Never return unknown.
21692
21693 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21694
21695 * coding.c (Fdefine_coding_system_alias): Update
21696 Vcoding_system_list.
21697
21698 * fontset.c (load_font_get_repertory): Pay attention to the case
21699 that ENCODING of a font is specified by a char-table.
21700
21701 * xterm.c (x_get_font_repertory): Handle the case that the
21702 encoding of font is other than Unicode.
21703
217042008-02-01 Kenichi Handa <handa@m17n.org>
21705
21706 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21707 if a character is encodable by the terminal coding system. If
21708 not, produces proper number of `?'s. Update
21709 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21710 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21711
217122008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21715 variables.
21716 (encode_terminal_code): Change argument. Encode multiple
21717 characters at once. Store the result of encoding in
21718 terminal_encode_buffer.
21719 (write_glyphs, insert_glyphs): Adjust for the change of
21720 encode_terminal_code.
21721 (term_init): Initialize terminal_encode_buffer and
21722 terminal_encode_buf_size.
21723
21724 * coding.c (consume_chars): If coding->src_object is nil, don't
21725 check annotation.
21726
217272008-02-01 Kenichi Handa <handa@m17n.org>
21728
21729 * character.c (char_string): Use ASCII_CHAR_P instead of
21730 SINGLE_BYTE_CHAR_P.
21731
217322008-02-01 Kenichi Handa <handa@m17n.org>
21733
21734 * xdisp.c (handle_auto_composed_prop): Check if the last
21735 characters of auto-composed region is newly composed with the
21736 following characters.
21737 (handle_composition_prop): Fix checking of point being inside
21738 composition.
21739
217402008-02-01 Kenichi Handa <handa@m17n.org>
21741
21742 * fns.c (concat): Don't change multibyteness of the result by
21743 concatenating an 8-bit character.
21744
21745 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21746 multibyteness of the result when newelt is an 8-bit character.
21747
217482008-02-01 Dave Love <fx@gnu.org>
21749
21750 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21751 EMACS_INT.
21752
21753 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21754
21755 * xfaces.c (face_numeric_value): Declare dim size_t.
21756 (Finternal_lisp_face_equal_p): Remove unused f.
21757
21758 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21759 (MATRIX_ROW): Remove unused vars.
21760 (draw_glyphs, x_insert_glyphs, fast_find_position)
21761 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21762 byte/char counts.
21763
21764 * regex.c (regex_compile): Remove unused var.
21765
21766 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21767
21768 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21769 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21770
21771 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21772
21773 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21774
21775 * fileio.c (Fwrite_region): Remove unused var.
21776
21777 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21778 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21779
21780 * composite.c (Fremove_list_of_text_properties): Declare.
21781
21782 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21783 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21784 (coding_inherit_eol_type): Remove unused attrs.
21785 (detect_coding): Cast arg of detect_eol.
21786
21787 * charset.c (syms_of_charset): Remove unused var p.
21788 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21789 byte/char counts.
21790
21791 * casetab.c (set_case_table): Remove unused var.
21792
21793 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21794 unused vars.
21795
217962008-02-01 Dave Love <fx@gnu.org>
21797
21798 * xterm.c (x_bitmap_mask): Declare.
21799
218002008-02-01 Dave Love <fx@gnu.org>
21801
21802 * xterm.c (x_term_init): Fix type error.
21803
21804 * lisp.h: Add Funibyte_char_to_multibyte.
21805
21806 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21807 (Fset_coding_system_priority): Doc fix.
21808
21809 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21810
21811 * indent.c (check_composition): Make start and end EMACS_INT.
21812
21813 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21814
21815 * xdisp.c (handle_composition_prop, check_point_in_composition):
21816 Make buffer positions EMACS_INT.
21817
21818 * composite.c (find_composition, run_composition_function)
21819 (update_compositions, Ffind_composition_internal): Make buffer
21820 positions EMACS_INT.
21821
21822 * composite.h (find_composition, update_compositions): Make
21823 position args EMACS_INT.
21824
21825 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21826
21827 * intervals.c (get_property_and_range):
21828 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21829
21830 * unexalpha.c: Don't include varargs.h.
21831
218322008-02-01 Dave Love <fx@gnu.org>
21833
21834 * coding.h (ENCODE_UTF_8): New.
21835
21836 * Makefile.in (gtkutil.o): Depend on coding.h.
21837
21838 * coding.c (Fset_coding_system_priority): Doc fix.
21839
218402008-02-01 Kenichi Handa <handa@m17n.org>
21841
21842 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21843 the case of auto saving.
21844
218452008-02-01 Andreas Schwab <schwab@suse.de>
21846
21847 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21848 `range' from GC.
21849
218502008-02-01 Kenichi Handa <handa@m17n.org>
21851
21852 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21853
218542008-02-01 Kenichi Handa <handa@m17n.org>
21855
21856 * fileio.c (choose_write_coding_system): Return a decided coding system.
21857 (Fwrite_region): Set Vlast_coding_system_used to the return value
21858 of choose_write_coding_system.
21859
218602008-02-01 Kenichi Handa <handa@m17n.org>
21861
21862 * charset.c (Fset_charset_priority): Pay attention to duplicated
21863 arguments.
21864
21865 * coding.c (QCcategory): New variable.
21866 (syms_of_coding): Defsym it. Set all elements of
21867 Vcoding_category_table and their symbol values.
21868 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21869 coding-category-XXX, and coding-category-list.
21870 (Fdefine_coding_system_internal): Add category in the plist.
21871
218722008-02-01 Kenichi Handa <handa@m17n.org>
21873
21874 * callproc.c (Fcall_process): Handle carryover correctly.
21875
21876 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21877 (raw_text_coding_system): Check NILP (coding_system).
21878 (coding_inherit_eol_type): Check NILP (coding_system) and
21879 NILP (parent).
21880 (consume_chars): Fix for the case of raw-text.
21881
21882 * process.c (read_process_output): Handle carryover correctly.
21883
218842008-02-01 Dave Love <fx@gnu.org>
21885
21886 * regex.c (re_search_2): Fix last change.
21887
218882008-02-01 Kenichi Handa <handa@m17n.org>
21889
21890 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21891 target_multibyte. Even in a unibyte case, return a converted
21892 multibyte char.
21893 (GET_CHAR_AFTER): New macro.
21894 (PATFETCH): Translate via multibyte char.
21895 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21896 (SETUP_MULTIBYTE_RANGE): New macro.
21897 (regex_compile): Setup compiled code so that its multibyteness
21898 matches that of a target. Fix the handling of "[X-YZ]" using
21899 SETUP_MULTIBYTE_RANGE.
21900 (analyse_first) <charset>: For filling fastmap for all multibyte
21901 characters, don't check by BASE_LEADING_CODE_P.
21902 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21903 the same as RE_MULTIBYTE_P (bufp) now.
21904 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21905 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21906 (TRANSLATE_VIA_MULTIBYTE): New macro.
21907 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21908 It is the same as RE_MULTIBYTE_P (bufp) now.
21909 <exactn>: Translate via multibyte.
21910 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21911 translate it.
21912 <charset, charset_not>: Fetch a character by
21913 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21914 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21915 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21916 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21917 by GET_CHAR_AFTER.
21918 (bcmp_translate): Likewise.
21919
21920 * search.c (compile_pattern): Check the member target_multibyte,
21921 not the member multibyte of buf.
21922
21923 * lread.c (read1): While reading a string, set force_singlebyte
21924 and force_multibyte correctly.
21925
21926 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21927 up of unibyte_to_multibyte_table.
21928
219292008-02-01 Kenichi Handa <handa@m17n.org>
21930
21931 * coding.c (setup_coding_system): If coding has
21932 post-read-conversion or pre-write-conversion, set
21933 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21934 respectively.
21935 (decode_coding_gap): Run post-read-conversion if any.
21936
21937 * fileio.c (Finsert_file_contents): Even if we read into a
21938 unibyte buffer, check if we must decode the result or not.
21939
219402008-02-01 Kenichi Handa <handa@m17n.org>
21941
21942 * coding.c (make_conversion_work_buffer): Change the work buffer
21943 name to the same one as that of Emacs 21.
21944
219452008-02-01 Kenichi Handa <handa@m17n.org>
21946
21947 * coding.h (make_conversion_work_buffer): Adjust prototype.
21948 (code_conversion_restore): Don't extern it.
21949
21950 * coding.c (detected_mask): Delete unused variable.
21951 (decode_coding_iso_2022): Pay attention to the byte sequence of
21952 CTEXT extended segment, and retain those bytes as is.
21953 (decode_coding_ccl): Delete unused variable `valids'.
21954 (setup_coding_system): Delete unused variable `category'.
21955 (consume_chars): Delete unused variable `category'. Make it work
21956 for non-multibyte case.
21957 (make_conversion_work_buffer): Change argument.
21958 (saved_coding): Delete unused variable.
21959 (code_conversion_restore): Don't check saved_coding->destination.
21960 (code_conversion_save): New function.
21961 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21962 instead of record_unwind_protect.
21963 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21964 (detect_coding_system): Delete unused variable `mask'.
21965 (Fdefine_coding_system_internal): Delete unused variable id.
21966
21967 * fileio.c (kill_workbuf_unwind): New function.
21968 (Finsert_file_contents): On replacing, call
21969 make_conversion_work_buffer with correct args, and call
21970 record_unwind_protect with the first arg kill_workbuf_unwind.
21971
21972 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21973
219742008-02-01 Kenichi Handa <handa@m17n.org>
21975
21976 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21977 (fontset_add): Fix for the case that TO is less than TO1.
21978 (Ffontset_info): Don't use fallback fontset on checking the
21979 default fontset.
21980 (dump_fontset): New function for debugging.
21981
21982 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21983 coding_type is Qcharset.
21984
219852008-02-01 Kenichi Handa <handa@m17n.org>
21986
21987 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21988 (map_char_table): Don't inherit the value from the parent on
21989 initializing VAL. Adjust for the above change.
21990
219912008-02-01 Kenichi Handa <handa@m17n.org>
21992
21993 * coding.c (Qsignature, Qendian): Delete these variables.
21994 (syms_of_coding): Don't initialize them.
21995 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21996 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21997 detect_info->found.
21998 (decode_coding_utf_16): Don't detect BOM here.
21999 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22000 is NOT utf_16_without_bom.
22001 (setup_coding_system): For a coding system of type utf-16, check
22002 if the attribute :endian is Qbig or not (not nil or not), and set
22003 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22004 (detect_coding): If coding type is utf-16 and BOM detection is
22005 required, detect it.
22006 (Fdefine_coding_system_internal): For a coding system of type
22007 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22008
220092008-02-01 Kenichi Handa <handa@m17n.org>
22010
22011 * coding.c (coding_set_source): Fix for the case that the current
22012 buffer is different from coding->src_object.
22013 (decode_coding_object): Don't use the conversion work buffer if
22014 DST_OBJECT is a buffer.
22015
220162008-02-01 Dave Love <fx@gnu.org>
22017
22018 * lread.c (read_emacs_mule_char) [len==2]: Index
22019 emacs_mule_charset correctly.
22020
220212008-02-01 Dave Love <fx@gnu.org>
22022
22023 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22024 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22025 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22026 treated specially.)
22027 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22028 (detected_mask): Remove Big5 bits.
22029
220302008-02-01 Kenichi Handa <handa@m17n.org>
22031
22032 The following changes are to make the font rescaling facility
22033 compatible with Emacs 21.
22034
22035 * xfaces.c (Vface_font_rescale_alist): Rename from
22036 Vface_resizing_fonts.
22037 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22038 (font_rescale_ratio): Rename from font_resizing_ratio.
22039 (split_font_name): Set font->rescale_ratio.
22040 (better_font_p): Pay attention to font->rescale_ratio.
22041 (build_scalable_font_name): Likewise. Change RESX, and RESY
22042 fields.
22043 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22044
220452008-02-01 Kenichi Handa <handa@m17n.org>
22046
22047 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22048 (Qutf_16_le): Remove these variables.
22049 (syms_of_coding): Don't DEFSYM them.
22050 (decode_coding_utf_16): Fix handling of BOM.
22051 (encode_coding_utf_16): Fix handling of BOM.
22052
220532008-02-01 Kenichi Handa <handa@m17n.org>
22054
22055 * fileio.c (Finsert_file_contents): On replacing, before decoding
22056 the file into the work buffer, set point of the work buffer to the end.
22057
220582008-02-01 Dave Love <fx@gnu.org>
22059
22060 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22061
220622008-02-01 Dave Love <fx@gnu.org>
22063
22064 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22065 and fix C types.
22066
220672008-02-01 Kenichi Handa <handa@m17n.org>
22068
22069 * xdisp.c (SKIP_GLYPHS): New macro.
22070 (set_cursor_from_row): Pay attention to string display properties.
22071
22072 * category.c (copy_category_entry): Fix for the case that RANGE
22073 is an integer.
22074
22075 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22076
22077 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22078
220792008-02-01 Kenichi Handa <handa@m17n.org>
22080
22081 * charset.c (Fcharset_id_internal): New function.
22082 (syms_of_charset): Defsubr it.
22083
22084 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22085 with the last arg charset_list acquired from coding.
22086 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22087 the attribute coding_attr_ccl_valids.
22088
22089 * coding.h (enum define_coding_ccl_arg_index): Set the first
22090 member coding_arg_ccl_decoder to coding_arg_max.
22091
22092 * ccl.h (ccl_driver): Adjust prototype.
22093
22094 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22095 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22096 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22097 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22098 last arg Qnil.
22099
221002008-02-01 Kenichi Handa <handa@m17n.org>
22101
22102 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22103 call encode_char.
22104
22105 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22106
221072008-02-01 Dave Love <fx@gnu.org>
22108
22109 * composite.c (syms_of_composite): Make composition_hash_table weak.
22110
221112008-02-01 Kenichi Handa <handa@m17n.org>
22112
22113 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22114 (font_name_registry): Don't extern them.
22115 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22116
22117 * fontset.h (Qfontset): Don't extern it.
22118 (new_fontset_from_font_name): Extern it.
22119
22120 * fontset.c: Give 8 extra slots to fontset objects.
22121 (Qfontset_info): New variable.
22122 (syms_of_fontset): Defsym it.
22123 (FONTSET_FALLBACK): New macro.
22124 (fontset_face): Try also the default fontset.
22125 (make_fontset): Realize a fallback fontset from the default fontset.
22126 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22127 using split_font_name_into_vector and build_font_name_from_vector.
22128 (Fset_fontset_font): Access the elements of font_spec by enum
22129 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22130 name by using split_font_name_into_vector.
22131 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22132 generate a proper font name from the fontset name. Update
22133 Vfontset_alias_alist.
22134 (n_auto_fontsets): New variable.
22135 (new_fontset_from_font_name): New function.
22136 (Ffont_info): Store the information about fonts generated from the
22137 default fontset in the first extra slot of the returned char-table.
22138
22139 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22140 (font_name_registry): Delete function.
22141 (split_font_name_into_vector): New function.
22142 (build_font_name_from_vector): New function.
22143 (font_list): The argument REGISTRY is now a list of registry names.
22144 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22145 specifies an explicit font name, return the name as is. Make a
22146 list of registy names.
22147
22148 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22149 of x_new_fontset.
22150 (Fx_create_frame): Don't call x_new_fontset here. Just use
22151 x_list_fonts to check the existence of fonts.
22152
22153 * xterm.h (x_new_fontset): Adjust prototype.
22154
22155 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22156 string. Use new_fontset_from_font_name to create a fontset from a
22157 font name.
22158
221592008-02-01 Kenichi Handa <handa@m17n.org>
22160
22161 * syntax.c (Vfind_word_boundary_function_table): New name for
22162 Vnext_word_boundary_function_table.
22163 (find-word-boundary-function-table): New name for
22164 next-word-boundary-function-table.
22165
221662008-02-01 Dave Love <fx@gnu.org>
22167
22168 * Makefile.in: Fix some dependencies.
22169
22170 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22171 set it to nil before returning.
22172
22173 * composite.c (update_compositions): Fix type error.
22174
22175 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22176
221772008-02-01 Kenichi Handa <handa@m17n.org>
22178
22179 * xterm.c (x_new_font): Optimize for the case that the font is
22180 already set for the frame.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * chartab.c (char_table_ascii): Check if the char table contents
22185 is sub-char-table or not.
22186 (char_table_set, char_table_set_range): Fix argument to
22187 char_table_ascii.
22188
22189 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22190 (detect_coding_utf_8, detect_coding_utf_16)
22191 (detect_coding_emacs_mule, detect_coding_iso_2022)
22192 (detect_coding_sjis, detect_coding_big5)
22193 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22194 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22195 sequence is valid in this coding system. Change callers.
22196 (MAX_ANNOTATION_LENGTH): New macro.
22197 (ADD_ANNOTATION_DATA): New macro.
22198 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22199 ADD_ANNOTATION_DATA. Change the format of annotation data.
22200 (ADD_CHARSET_DATA): New macro.
22201 (emacs_mule_char): New argument ID. Change callers.
22202 (decode_coding_emacs_mule, decode_coding_iso_2022)
22203 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22204 Produce charset annotation data in coding->charbuf.
22205 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22206 to charset annotation data in coding->charbuf.
22207 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22208 coding->common_flags if the coding system is iso-2022 based and
22209 uses designation.
22210 (produce_composition): Adjust for the new annotation data format.
22211 (produce_charset): New function.
22212 (produce_annotation): Handle charset annotation.
22213 (handle_composition_annotation, handle_charset_annotation): New
22214 functions.
22215 (consume_chars): Handle charset annotation. Utilize the above two
22216 functions.
22217 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22218 buffer, get the deleted text as a string and set
22219 coding->src_object to that string.
22220 (detect_coding, detect_coding_system): Use the new struct
22221 coding_detection_info.
22222
22223 * coding.h (struct coding_detection_info): New structure.
22224 (struct coding_system): Adjust prototype of the member `detector'.
22225 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22226
222272008-02-01 Kenichi Handa <handa@m17n.org>
22228
22229 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22230
222312008-02-01 Dave Love <fx@gnu.org>
22232
22233 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22234 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22235 to new local and nullify apropos_accumulate before returning.
22236 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22237
222382008-02-01 Kenichi Handa <handa@m17n.org>
22239
22240 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22241 correctly.
e3eea1fc 22242
aac0c6e3
MR
222432008-02-01 Dave Love <fx@gnu.org>
22244
22245 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22246
222472008-02-01 Kenichi Handa <handa@m17n.org>
22248
22249 The following changes are to make character composition happen
22250 automatically on displaying.
22251
22252 * Makefile.in (lisp, shortlisp): Add composite.elc.
22253
22254 * composite.h (Qauto_composed, Vauto_composition_function)
22255 (Qauto_composition_function): Extern them.
22256
22257 * composite.c (Vcomposition_function_table)
22258 (Qcomposition_function_table): Delete variables.
22259 (Qauto_composed, Vauto_composition_function)
22260 (Qauto_composition_function): New variables.
22261 (run_composition_function): Don't call
22262 compose-chars-after-function.
22263 (update_compositions): Clear `auto-composed' text property.
22264 (compose_chars_in_text): Delete this function.
22265 (syms_of_composite): Staticpro Qauto_composed and
22266 Qauto_composition_function. Declare Vauto_composition_function as
22267 a Lisp variable.
22268
22269 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22270
22271 * xdisp.c (it_props): Add an entry for Qauto_composed.
22272 (handle_auto_composed_prop): New function.
22273
22274 * xselect.c (selection_data_to_lisp_data): Don't call
22275 compose_chars_in_text.
22276
222772008-02-01 Dave Love <fx@gnu.org>
22278
22279 * keyboard.c (read_char): Modify checking around use of
22280 Vkeyboard_translate_table.
22281
22282 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22283 and fix C types.
22284
222852008-02-01 Kenichi Handa <handa@m17n.org>
22286
22287 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22288 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22289 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22290 the case that the last byte is '\r' correctly.
22291 (decode_coding): Flush out the unprocessed data correctly.
22292 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22293
222942008-02-01 Dave Love <fx@gnu.org>
22295
22296 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22297 Add XK_ISO... case.
22298 (xaw_scroll_callback): Revert last change.
22299
223002008-02-01 Kenichi Handa <handa@m17n.org>
22301
22302 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22303
223042008-02-01 Kenichi Handa <handa@m17n.org>
22305
22306 * xfaces.c (Vface_resizing_fonts): New variable.
22307 (struct font_name): New member `resizing_ratio'.
22308 (font_resizing_ratio): New function.
22309 (split_font_name): Set font->resizing_ratio.
22310 (better_font_p): Pay attention to font->resizing_ratio.
22311 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22312 RESX, and RESY fields.
22313 (try_alternative_families): Try scalable fonts if
22314 Vscalable_fonts_allowed is not Qt.
22315 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22316
223172008-02-01 Dave Love <fx@gnu.org>
22318
22319 * xterm.c (xaw_scroll_callback): Cast correctly.
22320
223212008-02-01 Dave Love <fx@gnu.org>
22322
22323 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22324 (lispy_kana_keys): Comment out.
22325 (make_lispy_event) [XK_kana_A]: Comment out.
22326
22327 * xterm.c (xaw_scroll_callback): Cast call_data.
22328 (XTread_socket): Deal with ASCII keysyms.
22329 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22330
223312008-02-01 Dave Love <fx@gnu.org>
22332
22333 * xterm.c (Vx_keysym_table): New.
22334 (syms_of_xterm): Initialize it.
22335 (XTread_socket): Use it.
22336 From head: Eliminate incorrect optimization that tried to avoid
22337 decoding the output of X*LookupString.
22338 (x_get_font_repertory): Delete charset declaration.
22339
223402008-02-01 Kenichi Handa <handa@m17n.org>
22341
22342 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22343 return 0.
22344 (Fdefine_coding_system_internal): Setup
22345 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22346
223472008-02-01 Dave Love <fx@gnu.org>
22348
22349 * coding.c (Fcheck_coding_system): Doc fix.
22350
22351 * editfns.c (Finsert_byte): Return a proper value.
22352
223532008-02-01 Kenichi Handa <handa@m17n.org>
22354
22355 * coding.c (decode_coding): Fix args to translate_chars. Pay
22356 attention to Vstandard_translation_table_for_decode.
22357 (encode_coding): Fix args to translate_chars. Pay attention to
22358 Vstandard_translation_table_for_encode.
22359
22360 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22361 SINGLE_BYTE_CHAR_P.
22362
22363 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22364 not by SINGLE_BYTE_CHAR_P.
22365
22366 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22367 SINGLE_BYTE_CHAR_P.
22368
22369 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22370 SINGLE_BYTE_CHAR_P.
22371
22372 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22373 by SINGLE_BYTE_CHAR_P.
22374
22375 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22376 SINGLE_BYTE_CHAR_P.
22377
223782008-02-01 Dave Love <fx@gnu.org>
22379
22380 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22381
223822008-02-01 Dave Love <fx@gnu.org>
22383
22384 * fns.c (Flanginfo): Fix typo.
22385
22386 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22387
223882008-02-01 Kenichi Handa <handa@m17n.org>
22389
22390 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22391 (detect_coding_emacs_mule, detect_coding_iso_2022)
22392 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22393 incomplete byte sequence. Don't update *mask when correctly detected.
22394 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22395 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22396 (detect_coding, detect_coding_system): Adjust for the changes above.
22397
223982008-02-01 Kenichi Handa <handa@m17n.org>
22399
22400 * character.c (char_string): Rename from
22401 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22402 (string_char): Rename from string_char.
22403
22404 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22405 if C is greater than MAX_3_BYTE_CHAR.
22406 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22407 string_char instead of string_char_with_unification.
22408
224092008-02-01 Dave Love <fx@gnu.org>
22410
22411 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22412
224132008-02-01 Kenichi Handa <handa@m17n.org>
22414
22415 * keymap.c (push_key_description): Pay attention to force_multibyte.
22416
22417 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22418
224192008-02-01 Dave Love <fx@gnu.org>
22420
22421 * charset.c (define_charset_internal): Rename `supprementary'.
22422
22423 * Makefile.in (lisp, shortlisp): Remove latin-N.
22424
224252008-02-01 Dave Love <fx@gnu.org>
22426
22427 * xfns.c (x_window, x_window): Use use_xim.
22428
22429 * xterm.c (use_xim): Initialize.
22430 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22431 (x_term_init): Maybe set use_xim.
22432
22433 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22434
224352008-02-01 Kenichi Handa <handa@m17n.org>
22436
22437 * search.c (search_buffer): Fix case-fold-search of multibyte
22438 characters.
22439 (boyer_moore): Rename the last argument to char_high_bits.
22440
224412008-02-01 Kenichi Handa <handa@m17n.org>
22442
22443 * xdisp.c (display_string): Fix for the case of zero width glyph.
22444
22445 * xfns.c (x_set_font): Change the error message of the case that
22446 x_new_fontset returns Qt.
22447
22448 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22449 (Finternal_set_lisp_face_attribute): Use signal_error for the
22450 error of invalid fontset.
22451
22452 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22453 fontset, return Qt.
22454
224552008-02-01 Dave Love <fx@gnu.org>
22456
22457 * unexelf.c (unexec): Make .got handling not SGI-specific.
22458
22459 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22460
22461 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22462
22463 * keyboard.c (read_key_sequence): Fix type error.
22464
22465 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22466 type error.
22467
22468 * fontset.c (fontset_add): Return Lisp_Object.
22469
224702008-02-01 Dave Love <fx@gnu.org>
22471
22472 * charset.h (charset_ordered_list_tick): Declare extern.
22473
224742008-02-01 Kenichi Handa <handa@m17n.org>
22475
22476 The following changes (and some of 2008-02-01 changes of mine) are
22477 for handling syntax, category, and case conversion for unibyte
22478 characters by converting them to multibyte on the fly. With these
22479 changes, we don't have to setup syntax and case tables for unibyte
22480 characters in each language environment.
22481
22482 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22483 multibyte if necessary.
22484
22485 * bytecode.c (Fbyte_code): Likewise.
22486
22487 * character.h (LEADING_CODE_LATIN_1_MIN)
22488 (LEADING_CODE_LATIN_1_MAX): New macros.
22489 (unibyte_to_multibyte_table): Extern it.
22490 (unibyte_char_to_multibyte): New macro.
22491 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22492 (CHAR_LEADING_CODE): New macro.
22493 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22494
22495 * character.c (unibyte_to_multibyte_table): New variable.
22496 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22497 (multibyte_char_to_unibyte): If C is an eight-bit character,
22498 convert it to the corresponding byte value.
22499
22500 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22501 not 1, signals an error. Update the elements of
22502 unibyte_to_multibyte_table.
22503 (init_charset_once): Initialize unibyte_to_multibyte_table.
22504 (syms_of_charset): Define the charset `iso-8859-1'.
22505
22506 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22507 as is without converting it to unibyte. In a unibyte buffer,
22508 convert C to multibyte before checking the syntax.
22509
22510 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22511
22512 * minibuf.c (Fminibuffer_complete_word): Use the macro
22513 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22514
22515 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22516
22517 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22518 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22519 that is zero, convert an eight-bit char to multibyte.
22520 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22521 non-emacs case.
22522 (PATFETCH): Convert an eight-bit char to multibyte.
22523 (HANDLE_UNIBYTE_RANGE): New macro.
22524 (regex_compile): Setup the compiled pattern for multibyte chars
22525 even if the given regex string is unibyte. Use PATFETCH_RAW
22526 instead of PATFETCH in many places. To handle `charset'
22527 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22528 only for ASCII chars.
22529 (analyse_first) <exactn>: Simplify because the compiled pattern
22530 is multibyte.
22531 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22532 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22533 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22534 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22535 multibyte always 1.
22536 (re_search_2): In emacs, set the locale variable multibyte to 1,
22537 otherwise to 0. New local variable target_multibyte. Check it
22538 to decide the multibyteness of STR1 and STR2. If
22539 target_multibyte is zero, convert unibyte chars to multibyte
22540 before translating and checking fastmap.
22541 (TARGET_CHAR_AND_LENGTH): New macro.
22542 (re_match_2_internal): In emacs, set the locale variable multibyte
22543 to 1, otherwise to 0. New local variable target_multibyte. Check
22544 it to decide the multibyteness of STR1 and STR2. Use
22545 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22546 <charset, charset_not>: If multibyte is nonzero, check fastmap
22547 only for ASCII chars. Call bcmp_translate with
22548 target_multibyte, not with multibyte.
22549 <begline>: Declare the local variable C as `unsigned'.
22550 (bcmp_translate): Change the last arg name to target_multibyte.
22551
22552 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22553 the regexp pattern and the matching target. Set cp->buf.multibyte
22554 to the multibyteness of the regexp pattern. Set
22555 cp->but.target_multibyte to the multibyteness of the matching target.
22556 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22557 FETCH_STRING_CHAR_ADVANCE.
22558 (Freplace_match): Convert unibyte chars to multibyte.
22559
22560 * syntax.c (char_quoted, back_comment, scan_words)
22561 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22562 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22563 unibyte chars to multibyte.
22564 (skip_chars): Delete the arg syntaxp, and move the code for
22565 handling syntaxes to skip_syntaxes. Change callers.
22566 Fix the case that the multibyteness of STRING and the current
22567 buffer doesn't match.
22568 (skip_syntaxes): New function.
22569 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22570 SINGLE_BYTE_CHAR_P.
22571
225722008-02-01 Kenichi Handa <handa@m17n.org>
22573
22574 * xfaces.c (QCfontset): New variable.
22575 (LFACE_FONTSET): New macro.
22576 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22577 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22578 (Finternal_set_lisp_face_attribute)
22579 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22580 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22581 check also LFACE_FONTSET_INDEX.
22582 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22583 attrs[LFACE_FONT_INDEX].
22584 (syms_of_xfaces): Intern and staticpro QCfontset.
22585
22586 * dispextern.h (enum lface_attribute_index): New member
22587 LFACE_FONTSET_INDEX.
22588
22589 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22590
225912008-02-01 Kenichi Handa <handa@m17n.org>
22592
22593 * coding.c (coding_set_destination): Fix coding->destination for
22594 the case converting a region.
22595 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22596 (encode_coding_object): Fix coding->dst_pos and
22597 coding->dst_pos_byte for the case converting a region.
22598
22599 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22600
22601 * character.h (BYTE8_STRING): New macro.
22602
22603 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22604
226052008-02-01 Kenichi Handa <handa@m17n.org>
22606
22607 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22608 characters by octal form.
22609
22610 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22611
22612 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22613 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22614 _fetch_multibyte_char_len.
22615 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22616
22617 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22618
22619 * casefiddle.c (casify_object): Simplify. Handle the case that
22620 the case conversion change the byte length.
22621 (casify_region): Likewise.
22622
22623 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22624
22625 * character.c (_fetch_multibyte_char_len): Delete this variable.
22626 (syms_of_character): Setup Vprintable_chars.
22627
22628 * editfns.c (Fchar_equal): Fix for the unibyte case.
22629 (Finsert_byte): New function.
22630 (syms_of_editfns): Defsubr it.
22631
22632 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22633 of direct code 0x3ffff.
22634
22635 * search.c (Freplace_match): Fix for the unibyte case.
22636
226372008-02-01 Kenichi Handa <handa@m17n.org>
22638
22639 * lread.c (safe_to_load_p): Fix the logic.
22640
22641 * syntax.c (scan_words): Don't treat characters belonging to
22642 different scripts as constituting a word.
22643
22644 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22645
22646 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22647
22648 * emacs.c (main): In the case of --unibyte, instead of aborting on
22649 finding non-empty buffer, make it unibyte.
22650
226512008-02-01 Kenichi Handa <handa@m17n.org>
22652
22653 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22654 to create a fontset.
22655
226562008-02-01 Dave Love <fx@gnu.org>
22657
22658 * character.c (Funibyte_char_to_multibyte): Doc fix.
22659
22660 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22661
226622008-02-01 Kenichi Handa <handa@m17n.org>
22663
22664 * fontset.c (fontset_add): Make the type `int'.
22665 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22666
22667 * character.c (unibyte_char_to_multibyte)
22668 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22669 charset_unibyte, not charset_primary.
22670
22671 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22672
22673 * charset.c (charset_unibyte): Rename from charset_primary.
22674 (Funibyte_charset): Rename from Fprimary_charset.
22675 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22676 (syms_of_charset): Adjust for the above changes.
22677
22678 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22679 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22680 it->multibyte_p is zero.
22681
22682 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22683 Delete extern.
22684
226852008-02-01 Kenichi Handa <handa@m17n.org>
22686
22687 * coding.c (Fdefine_coding_system_internal): Fix category setting
22688 for a coding system of type iso-2022.
22689
226902008-02-01 Kenichi Handa <handa@m17n.org>
22691
22692 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22693
226942008-02-01 Kenichi Handa <handa@m17n.org>
22695
22696 * syntax.c (Vnext_word_boundary_function_table): New variable.
22697 (next-word-boundary-function-table): Declare it as a Lisp variable
22698 in syms_of_syntax.
22699 (scan_words): Call functions in Vnext_word_boundary_function_table
22700 if any.
22701
22702 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22703
22704 * fontset.c (fs_load_font): If fontp->charset is not negative,
22705 return fontp without setting its members.
22706
227072008-02-01 Dave Love <fx@gnu.org>
22708
22709 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22710
22711 * m/sparc.h (HAVE_ALLOCA): Delete.
22712
22713 * s/irix6-5.h: Don't include strings.h.
22714 (bcopy, bzero, bcmp): Don't undef.
22715
22716 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22717
22718 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22719 (TIOCSIGSEND): Don't test IRIX6.
22720 (bcopy, bzero, bcmp): Define conditionally.
22721
227222008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * buffer.c (Qas, Qmake, Qto): New variables.
22725 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22726 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22727
22728 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22729 we are inserting a process output into a multibyte buffer.
22730
22731 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22732 multibyte_char_to_unibyte.
22733
22734 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22735 by the primary charset, make it eight-bit char.
22736 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22737
22738 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22739 (charset_8_bit__control, charset_8_bit_graphic)
22740 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22741 (define_charset_internal): New function.
22742 (syms_of_charset): Call define_charset_internal for pre-defined
22743 charsets.
22744
22745 * charset.h (charset_8_bit): Extern it.
22746
22747 * coding.c (make_conversion_work_buffer): Adjust for the change
22748 of Fset_buffer_multibyte.
22749 (encode_coding_raw_text): Increment p0 in the loop.
22750
22751 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22752
22753 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22754 for the change of Fset_buffer_multibyte.
22755
22756 * fns.c (Fstring_to_multibyte): New function.
22757 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22758
227592008-02-01 Dave Love <fx@gnu.org>
22760
22761 * xfns.c (x_put_x_image): Declare args.
22762
22763 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22764 (try_font_list): Declare an arg.
22765
22766 * xdisp.c (message2_nolog, set_message): Declare an arg.
22767
22768 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22769
22770 * syntax.c (scan_sexps_forward): Declare an arg.
22771
22772 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22773 Declare an arg.
22774
22775 * lisp.h (Fnew_fontset): Declare.
22776
22777 * keymap.c (push_key_description): Call CHARACTERP correctly.
22778
22779 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22780 (face_for_char): Delete unused vars.
22781 (Fset_fontset_font): Doc fix. Delete unused vars.
22782
22783 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22784
22785 * composite.c (update_compositions): Declare arg.
22786
22787 * cm.c (calccost, cmgoto): Declare args.
22788
22789 * charset.c: Remove `emacs' conditional. Doc fixes.
22790 (map_char_table_for_charset): Declare.
22791
22792 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22793
22794 * ccl.c: Remove `emacs' conditional.
22795
227962008-02-01 Kenichi Handa <handa@m17n.org>
22797
22798 The following changes are to allow specifying multiple font
22799 patterns for a character range (specified by script or charset).
22800
22801 * Makefile.in (abbrev.o): Depend on syntax.h.
22802 (xfaces.o): Depend on charset.h.
22803
22804 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22805 SINGLE_BYTE_CHAR_P.
22806
22807 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22808
22809 * character.h (Vchar_script_table): Extern it.
22810
22811 * character.c (Vscript_alist): Delete.
22812 (Vchar_script_table, Qchar_script_table): New variable.
22813 (syms_of_character): Declare Vchar_script_table as a lisp variable
22814 and initialize it.
22815
22816 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22817 have property char-table-extra-slots, make no extra slot.
22818
22819 * dispextern.h (struct face): Delete member `charset'.
22820 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22821 SINGLE_BYTE_CHAR_P.
22822 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22823 Add prototypes.
22824 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22825 (generate_ascii_font_name): Rename from generate_ascii_font.
22826
22827 * fontset.h (get_font_repertory_func): New prototype.
22828 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22829 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22830
22831 * fontset.c (Qprepend, Qappend): New variables.
22832 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22833 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22834 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22835 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22836 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22837 (load_font_get_repertory): New functions.
22838 (fontset_set): Delete.
22839 (fontset_face): New arg FACE. Return face ID, not face.
22840 Complete re-write to handle new fontset structure. Change caller.
22841 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22842 (face_for_char): Don't call lookup_face.
22843 (make_fontset_for_ascii_face): New arg FACE.
22844 (fs_load_font): New arg CHARSET_ID. Don't check
22845 Vfont_encoding_alist here.
22846 (find_font_encoding): New function.
22847 (list_fontsets): Use STRINGP, not ! NILP.
22848 (accumulate_script_ranges): New function.
22849 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22850 re-written to handle new fontset structure.
22851 (Ffontset_font): Return a copy of element.
22852 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22853 docstring of font-encoding-alist.
22854
22855 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22856 (Fset_fotset_font): Fix arguments to 5.
22857
22858 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22859
22860 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22861 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22862 (highlight_trailing_whitespace): Adjust for the change of
22863 lookup_named_face.
22864
22865 * xfaces.c: Include charset.h.
22866 (load_face_font): Delete argument C. Change caller.
22867 (generate_ascii_font_name): Rename from generate_ascii_font.
22868 (font_name_registry): New function.
22869 (cache_face): Store ascii faces before non-ascii faces in buckets.
22870 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22871 Lookup only ascii faces.
22872 (lookup_non_ascii_face): New function.
22873 (lookup_named_face): Delete argument C. Change caller.
22874 (lookup_derived_face): Delete argument C. Change caller.
22875 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22876 a string, just call font_list with it.
22877 (choose_face_font): Delete arguments FACE and C. New arg
22878 FONT_SPEC. Change caller.
22879 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22880 Change caller.
22881 (realize_non_ascii_face): New function.
22882 (realize_x_face): Call load_face_font here.
22883 (realize_tty_face): Delete argument C. Change caller.
22884 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22885 get a face ID.
22886 (dump_realized_face): Don't print charset of FACE.
22887
22888 * xfns.c (x_set_font): Always call x_new_fontset and
22889 store_frame_parameter.
22890 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22891 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22892
22893 * xterm.h (x_get_font_repertory): Extern it.
22894
22895 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22896 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22897 it->multibyte_p is zero.
22898 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22899 (x_new_fontset): If FONTSETNAME doesn't match any existing
22900 fontsets, create a new one.
22901 (x_get_font_repertory): New function.
22902
229032008-02-01 Kenichi Handa <handa@m17n.org>
22904
22905 * coding.c (Ffind_coding_systems_region_internal): Detect an
22906 ASCII only string correctly.
22907
22908 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22909 version is 0.
22910
229112008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * lread.c: Include "coding.h".
22914 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22915 (load_each_byte, unread_char): New variables.
22916 (readchar_backlog): Delete.
22917 (readchar): Return a character unless load_each_byte is nonzero.
22918 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22919 cons. If unread_char is not -1, simply return it.
22920 (unreadchar): Handle the case that readcharfun is
22921 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22922 (read_multibyte): Delete.
22923 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22924 (read_emacs_mule_char): New functions.
22925 (Fload): Even if the file doesn't have the extension ".elc", if
22926 safe_to_load_p returns a positive version number, assume that the
22927 file contains bytecompiled code. If the version is less than 22,
22928 load the file while decoding multibyte sequences by emacs-mule.
22929 (readevalloop): Don't use readchar_backlog.
22930 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22931 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22932 (read_escape): Delete the arg BYTEREP.
22933 (read1): Set load_each_byte to 1 temporarily while handling
22934 #@NUMBER. Don't call read_multibyte.
22935 (read_vector): Call Fread with a cons. If readcharfun is
22936 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22937 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22938 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22939 and Qload_force_doc_strings.
22940
229412008-02-01 Kenichi Handa <handa@m17n.org>
22942
22943 * xdisp.c (face_before_or_after_it_pos): Call
22944 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22945
229462008-02-01 Kenichi Handa <handa@m17n.org>
22947
22948 * character.h (TRAILING_CODE_P): New macro.
22949 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22950 (string_char_with_unification): Fix prototype.
22951 (Vscript_alist): Extern it.
22952
22953 * character.c (Vscript_alist): New variable.
22954 (string_char_with_unification, str_as_unibyte)
22955 (string_escape_byte8): Add `const' to local variables.
22956 (syms_of_character): Declare script-alist as a Lisp variable.
22957
22958 * charset.h (Vcharset_ordered_list): Extern it.
22959 (charset_ordered_list_tick): Extern it.
22960 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22961 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22962 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22963 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22964 (Funify_charset): Adjust for the change of Funify_charset.
22965
22966 * charset.c (charset_ordered_list_tick): New variable.
22967 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22968 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22969 deunify instead of unify a charset.
aac0c6e3
MR
22970 (string_xstring_p): Add `const' to local variables.
22971 (find_charsets_in_text): Add `const' to arguments and local variables.
22972 (encode_char): Adjust for the change of Funify_charset. Fix
22973 detecting of invalid code.
22974 (Fset_charset_priority): Increment charset_ordered_list_tick.
22975 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22976 and TO_CODE.
22977
22978 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22979 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22980 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22981 (decode_coding_ccl, consume_chars)
22982 (Ffind_coding_systems_region_internal)
22983 (Fcheck_coding_systems_region): Add `const' to local variables.
22984
22985 * print.c (print_object): Use octal form for printing the
22986 contents of a bool vector.
22987
229882008-02-01 Dave Love <fx@gnu.org>
22989
22990 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22991 <version == 20>: Refuse to load.
22992
229932008-02-01 Dave Love <fx@gnu.org>
22994
22995 * fns.c: Move coding.h.
22996 (Qcodeset, Qdays, Qmonths): New.
22997 (concat): Use CHARACTERP instead of INTEGERP.
22998 (Flocale_codeset): Delete.
22999 (Flanginfo): New function.
23000 (syms_of_fns): Change accordingly.
23001
23002 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23003
230042008-02-01 Dave Love <fx@gnu.org>
23005
23006 * casetab.c (init_casetab_once, init_casetab_once): Fix
23007 CHAR_TABLE_SET call.
23008
23009 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23010
23011 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23012
23013 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23014 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23015 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23016
23017 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23018
23019 * coding.c (ENCODE_DESIGNATION, decode_eol)
23020 (make_conversion_work_buffer, code_conversion_restore)
23021 (Fdefine_coding_system_internal): Convert Lisp types.
23022 (code_conversion_restore): Use EQ, not ==.
23023 (Fencode_coding_string): Fix code_convert_string call.
23024
23025 * coding.h (code_convert_region): Fix prototype.
23026
23027 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23028
23029 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23030 (Ffontset_info): Convert Lisp types.
23031
23032 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23033
23034 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23035
23036 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23037
23038 * chartab.c: Include "...h", not <...h> in some cases.
23039
23040 * callproc.c (Fcall_process): Remove unused variables.
23041
230422008-02-01 Dave Love <fx@gnu.org>
23043
23044 * coding.c (Fset_coding_system_priority): Allow null arg list.
23045
230462008-02-01 Dave Love <fx@gnu.org>
23047
23048 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23049 (Fself_insert_and_exit): Use CHARACTERP.
23050
23051 * callproc.c (Fcall_process): Remove unused vars.
23052
23053 * xterm.c (XTread_socket): Add extra dead keysyms.
23054
23055 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23056
23057 * dispextern.h: Remove prototypes for redraw_frame,
23058 redraw_garbaged_frames.
23059
23060 * cmds.c (Fself_insert_command): Use CHARACTERP.
23061
23062 * chartab.c (make_sub_char_table): Remove unused var.
23063 (Fset_char_table_default, Fmap_char_table): Doc fix.
23064
23065 * keymap.c (access_keymap): Remove generic char code.
23066 (push_key_description): Use CHARACTERP.
23067
230682008-02-01 Dave Love <fx@gnu.org>
23069
23070 * charset.c: Doc fixes.
23071 (Funify_charset): Extra checking.
23072
230732008-02-01 Dave Love <fx@gnu.org>
23074
23075 * lread.c: Remove some unused variables.
23076 (safe_to_load_p): If safe, return the magic number version byte.
23077 (Fload): Maybe use load-with-code-conversion.
23078
230792008-02-01 Kenichi Handa <handa@m17n.org>
23080
23081 * category.c (Fmodify_category_entry): Don't modify the contents
23082 of category_set for characters out of the range. Avoid
23083 unnecessary modification.
23084
23085 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23086 Vchar_unify_table. The default value of the table is now nil.
23087
23088 * character.c (syms_of_character): Setup Vchar_width_table for
23089 eight-bit-control and raw-byte chars.
23090
23091 * charset.h (enum define_charset_arg_index): Delete
23092 charset_arg_parents and add charset_arg_subset and
23093 charset_arg_superset.
23094 (enum charset_attr_index): Delete charset_parents and add
23095 charset_subset and charset_superset.
23096 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23097 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23098 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23099 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23100 (CHARSET_SUPERSET): New macros.
23101 (charset_work): Extern it.
23102 (ENCODE_CHAR): Use charset_work.
23103 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23104 (map_charset_chars): Extern it.
23105
23106 * charset.c (load_charset_map): Set the default value of encoder
23107 and deunifier char-tables to nil.
23108 (map_charset_chars): Change argument. Change callers. Use
23109 map_char_table_for_charset instead of map_char_table.
23110 (Fmap_charset_chars): New optional args from_code and to_code.
23111 (Fdefine_charset_internal): Adjust for the change of
23112 `define-charset' (:parents -> :subset or :superset).
23113 (charset_work): New variable.
23114 (encode_char, syms_of_charset): Adjust for the change of
23115 Fdefine_charset_internal.
23116 (Ffind_charset_string): Setup the vector `charsets' correctly.
23117
23118 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23119 the previous change.
23120 (char_table_ref_and_range): Adjust for the above change.
23121 (map_sub_char_table_for_charset): New function.
23122 (map_char_table_for_charset): New function.
23123
23124 * keymap.c (describe_vector): Handle a char-table directly here.
23125 (describe_char_table): Delete.
23126
23127 * lisp.h (map_charset_chars): Delete.
23128
231292008-02-01 Dave Love <fx@gnu.org>
23130
23131 * fns.c (count_combining): Comment out (unused).
23132 (Flocale_codeset): New.
23133 (syms_of_fns): Defsubr it.
23134
23135 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23136 (size_t): Remove.
23137
231382008-02-01 Dave Love <fx@gnu.org>
23139
23140 * Makefile.in (chartab.o): Depend on charset.h.
23141
231422008-02-01 Kenichi Handa <handa@m17n.org>
23143
23144 * character.c (syms_of_character): Set the default value of
23145 Vprintable_chars to Qnil.
23146
231472008-02-01 Dave Love <fx@gnu.org>
23148
23149 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23150
231512008-02-01 Kenichi Handa <handa@m17n.org>
23152
23153 * charset.c (load_charset_map): Handle the case that from < to
23154 correctly.
23155
23156 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23157 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23158 Pay attention to raw-8-bit chars.
23159
231602008-02-01 Kenichi Handa <handa@m17n.org>
23161
23162 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23163 It is not bytecompiled now.
23164
23165 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23166 (charset_jisx0208): New variables.
23167 (Fdefine_charset_internal): Setup them if appropriate.
23168 (init_charset_once): Initialize them to -1.
23169
23170 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23171 (charset_jisx0208): Extern them.
23172
23173 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23174 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23175 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23176 (setup_iso_safe_charsets): Fix arguments to Fassq.
23177 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23178 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23179 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23180 (encode_coding_iso_2022): Change the 1st arg to
23181 ENCODE_ISO_CHARACTER to a variable.
23182
231832008-02-01 Kenichi Handa <handa@m17n.org>
23184
23185 * charset.h (enum define_charset_arg_index): New enums
23186 charset_arg_min_code and charset_arg_max_code.
23187 (struct charset): New member char_index_offset.
23188
23189 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23190 Take charset->char_index_offset into account.
23191 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23192 args[charset_arg_max_code]. Setup charset.char_index_offset.
23193 (syms_of_charset): Fix args to Fdefine_charset_internal.
23194
231952008-02-01 Dave Love <fx@gnu.org>
23196
23197 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23198
231992008-02-01 Dave Love <fx@gnu.org>
23200
23201 * coding.c: Doc fixes.
23202 (Fcoding_system_aliases): Fix return value.
23203 (Qmac): Remove (duplicated) definition.
23204
232052008-02-01 Dave Love <fx@gnu.org>
23206
362654a6
JB
23207 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23208 New functions.
aac0c6e3
MR
23209
23210 * character.c (Fstring): Doc fix.
23211
23212 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23213
362654a6 23214 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23215 (font-encoding-alist): Doc fix.
23216
232172008-02-01 Dave Love <fx@gnu.org>
23218
23219 * term.c (costs_set): Declare static, non-initialized for pcc.
23220 (encode_terminal_code): Remove unused var.
23221
23222 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23223 for K&R.
23224
23225 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23226
23227 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23228 (suffixes): Move out of make_subsidiaries for K&R.
23229
23230 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23231
23232 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23233
232342008-02-01 Dave Love <fx@gnu.org>
23235
23236 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23237
23238 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23239
232402008-02-01 Yong Lu <lyongu@asia-infonet.com>
23241
23242 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23243
23244 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23245
232462008-02-01 Kenichi Handa <handa@m17n.org>
23247
23248 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23249 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23250
232512008-02-01 Kenichi Handa <handa@m17n.org>
23252
23253 * coding.c (decode_coding_charset): Adjust for the change of
23254 Fdefine_coding_system_internal.
23255 (Fdefine_coding_system_internal): For a coding system of
23256 `charset' type, store a list of charset IDs in
23257 `charset_attr_charset_valids' element of coding attributes.
23258
232592008-02-01 Kenichi Handa <handa@m17n.org>
23260
23261 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23262 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23263 caller. Handle 2-byte and 3-byte charsets correctly.
23264 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23265 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23266 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23267 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23268 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23269 sequence.
23270 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23271 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23272 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23273 and alt&rule composition.
23274 (decode_coding_iso_2022): Handle composition correctly.
23275 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23276
23277 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23278 re-defining a charset. If the charset has :emacs-mule-id, setup
23279 emacs_mule_bytes.
23280 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23281
232822008-02-01 Kenichi Handa <handa@m17n.org>
23283
23284 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23285 (encode_coding_big5, encode_coding_charset): If coding requires safe
23286 encoding, produce a character specified by
23287 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23288
232892008-02-01 Dave Love <fx@gnu.org>
23290
23291 * xterm.c (XSetIMValues): Declare.
23292
23293 * process.c: Conditionally include sys/wait.h, pty.h.
23294
23295 * print.c (print_object): Fix print format for 64-bit systems.
23296
23297 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23298
23299 * buffer.c (emacs_strerror): Declare.
23300
23301 * fontset.c (Fclear_face_cache): Declare.
23302 (accumulate_font_info): Comment-out (unused).
23303 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23304 variables.
23305
23306 * character.h (string_escape_byte8): Declare.
23307
23308 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23309 unused vars.
23310 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23311 (Fmap_charset_chars): Doc fix.
23312
23313 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23314 (Fset_coding_system_priority, Fset_coding_system_priority)
23315 (Fdefine_coding_system_internal): Doc fix.
23316
233172008-02-01 Dave Love <fx@gnu.org>
23318
23319 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23320
233212008-02-01 Kenichi Handa <handa@m17n.org>
23322
23323 * character.c (string_escape_byte8): Make multibyte string with
23324 correct size.
23325
23326 * charset.c (Fmake_char): Delete unnecessary code.
23327
233282008-02-01 Kenichi Handa <handa@m17n.org>
23329
23330 * xfns.c (x_encode_text): Allocate coding.destination here, and
23331 call encode_coding_object with dst_object Qnil.
23332
23333 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23334 multibyte form correctly.
23335
23336 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23337 against Vfont_encoding_alist.
23338
23339 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23340 handling of charset list.
23341 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23342 (decode_coding_object): Move point to coding->dst_pos before
23343 calling post-read-conversion function.
23344 (encode_coding_object): Give correct arguments to
23345 pre-write-conversion. Ignore the return value of
23346 pre-write-conversion function. Pay attention to the case that
23347 pre-write-conversion changes the current buffer. If dst_object is
23348 Qt, even if coding->src_bytes is zero, allocate at least one byte
23349 to coding->destination.
23350
23351 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23352
23353 * charset.c (Fmake_char): Make it more backward compatible.
23354 (Fmap_charset_chars): Fix docstring.
23355
233562008-02-01 Dave Love <fx@gnu.org>
23357
23358 * coding.c: Doc fixes.
23359 (Fdefine_coding_system_alias): Use names, not symbols, in
23360 coding-system-alist.
23361
233622008-02-01 Kenichi Handa <handa@m17n.org>
23363
23364 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23365 of calling free_realized_face.
23366
233672008-02-01 Yong Lu <lyongu@asia-infonet.com>
23368
23369 * charset.c (read_hex): Don't treat SPC as a comment starter.
23370 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23371 (Fdecode_char): Fix typo.
23372
233732008-02-01 Kenichi Handa <handa@m17n.org>
23374
23375 * charset.h (struct charset): New member `code_space_mask'.
23376
23377 * coding.c (coding_set_source): Delete the local variable beg_byte.
23378 (encode_coding_charset, Fdefine_coding_system_internal):
23379 Delete the local variable charset.
23380 (Fdefine_coding_system_internal): Setup
23381 attrs[coding_attr_charset_valids] correctly.
23382
23383 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23384 member to check if CODE is valid or not.
23385 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23386 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23387 is within the range of charset->min_code and carset->max_code.
23388
233892008-02-01 Dave Love <fx@gnu.org>
23390
23391 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23392
23393 * dispextern.h (generate_ascii_font): Fix return type.
23394
23395 * xfaces.c (generate_ascii_font): Fix arg declaration.
23396
23397 * coding.c (coding_inherit_eol_type)
23398 (Fset_terminal_coding_system_internal)
23399 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23400
234012008-02-01 Kenichi Handa <handa@m17n.org>
23402
23403 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23404 multiple charsets correctly.
23405
234062008-02-01 Kenichi Handa <handa@m17n.org>
23407
23408 * search.c (boyer_moore): Fix handling of multibyte character
23409 translation.
23410
23411 * xdisp.c (display_mode_element): When the variable `elt' is
23412 changed, update `this' and `lisp_string'.
23413
234142008-02-01 Kenichi Handa <handa@m17n.org>
23415
23416 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23417
23418 * callproc.c (Fcall_process): Be sure to give the current buffer
23419 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23420
23421 * charset.c (struct charset_map_entries): New struct.
23422 (load_charset_map): Rename from parse_charset_map. New args
23423 entries and n_entries. Change caller.
23424 (load_charset_map_from_file): Rename from load_charset_map.
23425 Change caller. New arg control_flag. Call load_charset_map at
23426 the tail.
23427 (load_charset_map_from_vector): New function.
23428 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23429 (encode_char): If the charset is compact, change a character index
23430 to a code point.
23431
23432 * coding.c (coding_alloc_by_making_gap): Check the case that the
23433 source and destination are the same correctly.
23434 (decode_coding_raw_text): Set coding->consumed_char and
23435 coding->consumed to 0.
23436 (produce_chars): If coding->chars_at_source is nonzero, update
23437 coding->consumed_char and coding->consumed before calling
23438 alloc_destination.
23439 (Fdefine_coding_system_alias): Register ALIAS in
23440 Vcoding_system_alist.
23441 (syms_of_coding): Define `no-conversion' coding system at the tail.
23442
23443 * fileio.c (Finsert_file_contents): Set coding_system instead of
23444 val. If the current buffer is multibyte, always call
23445 decode_coding_gap.
23446
23447 * xfaces.c (try_font_list): Give higher priority to fontset's
23448 family than face's family.
23449
234502008-02-01 Kenichi Handa <handa@m17n.org>
23451
23452 * callproc.c (Fcall_process): Be sure to give the current buffer
23453 to decode_coding_c_string.
23454
23455 * xfaces.c (try_font_list): Give a family specified in a fontset
23456 higher priority than a family specified in a face.
23457
234582008-02-01 Kenichi Handa <handa@m17n.org>
23459
23460 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23461 Fix arguments to insert_from_buffer.
23462
23463 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23464
234652008-02-01 Kenichi Handa <handa@m17n.org>
23466
23467 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23468 (decode_coding_gap): Set coding->dst_multibyte correctly.
23469
234702008-02-01 Kenichi Handa <handa@m17n.org>
23471
23472 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23473 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23474 (encode_coding_utf_16): Substitute coding->default_char for
23475 non-Unicode characters.
23476 (decode_coding): Don't call record_insert here.
23477 (setup_coding_system): Initialize `surrogate' of
23478 coding->spec.utf_16 to 0.
23479 (EMIT_ONE_BYTE): Fix for multibyte case.
23480
23481 * insdel.c (insert_from_gap): Call record_insert.
23482
234832008-02-01 Kenichi Handa <handa@m17n.org>
23484
23485 * casefiddle.c (casify_region): Fix multibyte case.
23486
23487 * character.c (c_string_width): Add return type `int'.
23488 (char_string_with_unification): Delete arg ADVANCED.
23489
23490 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23491 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23492 (CHAR_STRING_ADVANCE): Make it do-while statement.
23493
23494 * chartab.c (sub_char_table_set_range): Optimize for the case
23495 DEPTH == 3. Add workaround code for a GCC optimization bug.
23496
23497 * charset.c (parse_charset_map): Remove an unused variable.
23498
23499 * coding.c: Delete unused variables.
23500
23501 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23502 earlier. If inserted is zero and the coding system doesn't
23503 require flushing, don't call decode_coding_gap.
23504
23505 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23506
235072008-02-01 Kenichi Handa <handa@m17n.org>
23508
23509 The following changes are for using Unicode as an internal
23510 character model, and use UTF-8 format for buffer/string
23511 representation.
23512
23513 * .gdbinit (xchartable): Adjust for the change of char table structure.
23514 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23515
23516 * Makefile.in (obj): Add character.o and chartab.o.
23517 (lisp, shortlisp): Remove utf-8.elc.
23518 (*.o): For many files, change dependency on charset.h to
23519 character.h, and add dependency on character.h.
23520 (character.o, chartab.o): New targets.
23521
23522 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23523 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23524 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23525 of "charset.h".
23526
23527 * dired.c, filelock.c: Include "character.h".
23528
23529 * alloc.c: Include "character.h" instead of "charset.h".
23530 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23531 (syms_of_alloc): Remove defsubr for Smake_char_table.
23532
23533 * buffer.c: Include "character.h" instead of "charset.h", don't
23534 include "coding.h".
23535 (Fset_buffer_multibyte): Adjust for UTF-8.
23536
23537 * buffer.h: EXFUN Fbuffer_live_p.
23538
23539 * callproc.c: Include "character.h" instead of "charset.h".
23540 (Fcall_process): Big change for the new code-conversion APIs.
23541
23542 * casetab.c: Include "character.h" instead of "charset.h".
23543 (set_canon, set_identity, shuffle): Adjust for the new
23544 map_char_table spec.
23545 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23546 accessing the char table structure.
23547
23548 * chartab.c: New file that implements char table.
23549
23550 * category.c: Include "character.h".
23551 (copy_category_entry): New function.
23552 (copy_category_table): Call map_char_table and copy_category_entry.
23553 (Fmake_category_table): Initialize all top-level slots.
23554 (char_category_set): New function.
23555 (modify_lower_category_set): Delete.
23556 (Fmodify_category_entry): Call char_table_ref_and_range.
23557
23558 * category.h (CATEGORY_SET): Just call char_category_set.
23559
23560 * ccl.c: Include "character.h".
23561 (Qccl, Qcclp): New variables.
23562 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23563 it's less than 256.
23564 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23565 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23566 and DST type.
23567 (ccl_driver): Change types of argument, adjust code accordingly.
23568 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23569 ccl_driver.
23570 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23571
23572 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23573 New members src_multibyte, dst_multibyte, consumed, and produced.
23574 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23575 (CODING_SPEC_CCL_PROGRAM): New macro.
23576 (ccl_driver): Update prototype.
23577 (Qccl, Qcclp, Fccl_program_p): Extern them.
23578 (CHECK_CCL_PROGRAM): New macro.
23579
23580 * character.c, character.h, chartab.c: New files.
23581
23582 * charset.c: Mostly re-written. Move character and multibyte sequence
23583 handling codes to character.c.
23584
23585 * charset.h: Mostly re-written. Move character and multibyte sequence
23586 handling codes to character.h.
23587
23588 * coding.c, coding.h: Mostly re-written.
23589
23590 * composite.c: Include "character.h" instead of "charset.h".
23591 (CHAR_WIDTH): Move to character.h.
23592 (HASH_KEY, HASH_VALUE): Delete.
23593
23594 * composite.h (enum composition_method): Change order of enumeration
23595 symbols.
23596
23597 * data.c: Include "character.h" instead of "charset.h".
23598 (Faref): Call CHAR_TABLE_REF for a char table.
23599 (Faset): Call CHAR_TABLE_SET for a char table.
23600
23601 * dispextern.h (free_realized_face, check_face_attribytes)
23602 (generate_ascii_font): Extern them.
23603 (free_realized_multibyte_face): Delete extern.
23604
23605 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23606 table structure.
23607
23608 * editfns.c: Include "character.h" instead of "charset.h".
23609 (Fchar_to_string): Always call CHAR_STRING.
23610
23611 * emacs.c (main): Call init_charset_once, init_charset,
23612 syms_of_chartab, and syms_of_character.
23613
23614 * fileio.c: Include "character.h" instead of "charset.h".
23615 (Finsert_file_contents): Big change for the new code-conversion API.
23616 (choose_write_coding_system, Fwrite_region): Likewise.
23617 (build_annotations_2): Delete.
23618 (e_write): Big change for the new code-conversion API.
23619
23620 * fns.c: Include "character.h" instead of "charset.h".
23621 (copy_sub_char_table): Move to chartab.c.
23622 (Fcopy_sequence): Call copy_char_table for a char table.
23623 (concat): Delete codes calling count_multibyte.
23624 (string_char_to_byte, string_byte_to_char): Adjust for the new
23625 multibyte form.
23626 (internal_equal): Adjust for the change of char table structure.
23627 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23628 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23629 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23630 (char_table_translate, optimize_sub_char_table)
23631 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23632 chartab.c.
23633 (char_table_ref_and_index): Delete.
23634 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23635 (Fmd5): Call preferred_coding_system instead of accessing
23636 Vcoding_category_list. Adjust for the new code-conversion API.
23637 (syms_of_fns): Move defsubr for char table related functions to
23638 chartab.c.
23639
23640 * fontset.c: Mostly re-written.
23641
23642 * fontset.h (struct font_info): Change type of the member encoding_type.
23643 (enum FONT_SPEC_INDEX): New enum.
23644 (fontset_font_pattern, fs_load_font): Update prototype.
23645 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23646
23647 * indent.c: Include "character.h" instead of "charset.h".
23648 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23649
23650 * insdel.c: Include "character.h" instead of "charset.h".
23651 (copy_text): Don't refer to Vnonascii_translation_table.
23652 (insert_from_gap): New function.
23653
23654 * keyboard.c: Include "character.h" instead of "charset.h".
23655 (command_loop_1): Never call direct_output_forward_char before
23656 a non-ASCII character.
23657 (read_char): If Vkeyboard_translate_table is a char table, always
23658 translate a character.
23659
23660 * keymap.c: Include "character.h".
23661 (store_in_keymap): Handle the case that IDX is a cons.
23662 (Fdefine_key): Handle the case that KEY is a cons and the car part
23663 is also a cons (range).
23664 (push_key_description): Adjust for the new character code.
23665 (describe_vector): Call describe_char_table for a char table.
23666 (describe_char_table): New function.
23667
23668 * keymap.h (describe_char_table): Extern it.
23669
23670 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23671 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23672 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23673 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23674 Delete.
23675 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23676 structure.
23677 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23678 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23679 (CHARTAB_SIZE_BITS_3): New macros.
23680 (chartab_size): Extern it.
23681 (struct Lisp_Char_Table): Re-design.
23682 (struct Lisp_Sub_Char_Table): New structure.
23683 (HASH_KEY, HASH_VALUE): Move from fns.c.
23684 (CHARACTERBITS): Define as 22.
23685 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23686 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23687 (GC_SUB_CHAR_TABLE_P): New macro.
23688 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23689 (code_convert_string_norecord): Deleted extern.
23690 (init_character_once, syms_of_character, init_charset)
23691 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23692
23693 * lread.c: Include "character.h".
23694 (read_multibyte): New arg NBYTES.
23695 (read_escape): Change the meaning of returned *BYTEREP.
23696 (to_multibyte): Delete.
23697 (read1): Adjust the handling of char table and string.
23698
23699 * print.c: Include "character.h" instead of "charset.h".
23700 (print_string): Convert 8-bit raw bytes to octal form by
23701 string_escape_byte8.
23702 (print_object): Adjust for the new multibyte form. Print 8-bit
23703 raw bytes always in octal form. Handle sub char table correctly.
23704
23705 * process.c: Include "character.h" instead of "charset.h".
23706 (read_process_output, send_process): Adjust for the new
23707 code-conversion API.
23708
23709 * puresize.h (BASE_PURESIZE): Increase.
23710
23711 * regex.c: Include "character.h" instead of "charset.h".
23712 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23713 (regex_compile): Accept a range whose starting and ending
23714 character have different leading bytes.
23715 (analyse_first): Adjust for the above change.
23716
23717 * search.c: Include "character.h" instead of "charset.h".
23718 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23719 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23720
23721 * syntax.c: Include "character.h" instead of "charset.h".
23722 (syntax_parent_lookup): Delete.
23723 (Fmodify_syntax_entry): Accept a cons as CHAR.
23724 (skip_chars): Adjust for the new multibyte form.
23725 (init_syntax_once): Call char_table_set_range instead of directly
23726 accessing the structure of a char table.
23727
23728 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23729 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23730 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23731 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23732
23733 * term.c: Include "buffer.h" and "character.h".
23734 (encode_terminal_code, write_glyphs): Adjust for the new
23735 code-conversion API.
23736 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23737
23738 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23739
23740 * xdisp.c: Include "character.h".
23741 (get_next_display_element): Adjust for the new multibyte form.
23742 (disp_char_vector): Adjust for the new char table structure.
23743 (decode_mode_spec_coding): Adjust for the new structure of
23744 coding system.
23745 (decode_mode_spec): Adjust for the new code-conversion API.
23746
23747 * xfaces.c: Include "character.h" instead of "charset.h".
23748 (load_face_font): Adjust for the change of choose_face_font and
23749 FS_LOAD_FONT.
23750 (generate_ascii_font): New function.
23751 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23752 (set_font_frame_param): Adjust for the change of choose_face_font.
23753 (free_realized_face): Make it public.
23754 (free_realized_faces_for_fontset): Rename from
23755 free_realized_multibyte_face. Free also faces realized for ASCII.
23756 (choose_face_font): Change arguments. Adjust for the change of
23757 fontset_font_pattern and FS_LOAD_FONT.
23758
23759 * xfns.c: Include "character.h".
23760 (x_encode_text): Adjust for the new code-conversion API.
23761
23762 * xselect.c: Don't include "charset.h".
23763 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23764
23765 * xterm.c: Include "character.h".
23766 (x_encode_char): New argument CHARSET. Change caller.
23767 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23768 Call ENCODE_CHAR instead of SPLIT_CHAR.
23769 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23770 CHAR_WIDTH instead of CHARSET_WIDTH.
23771 (XTread_socket): Adjust for the new code-conversion API.
23772 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23773 (x_load_font): Adjust for the change of struct font.
23774
237752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23776
23777 * xfaces.c (face_at_buffer_position): Remove unused vars.
23778
237792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23780
23781 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23782 Fix overflow checking.
23783
237842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23785
23786 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23787 Cancel previous change.
23788
237892008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23790
23791 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23792 ccl->eight_bit_control. Fix check for buffer overflow.
23793 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23794 (ccl_driver): Initialize extra_bytes to 0.
23795
237962008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23797
23798 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23799 return it ORed with ctrl_modifier.
23800
238012008-01-29 Miles Bader <miles@gnu.org>
23802
23803 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23804
238052008-01-28 Jason Rumney <jasonr@gnu.org>
23806
23807 * w32.c (stat): Don't double check for networked drive.
23808
238092008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23810
23811 * window.c (run_window_configuration_change_hook): New function.
23812 Code extracted from set_window_buffer. Set the selected frame.
23813 (set_window_buffer): Use it.
23814 * window.h (run_window_configuration_change_hook): Declare.
23815 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23816
23817 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23818
238192008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23820
23821 * Makefile.in: Remove references to unused macros.
23822
238232008-01-26 Eli Zaretskii <eliz@gnu.org>
23824
23825 * w32.c (g_b_init_get_sid_sub_authority)
23826 (g_b_init_get_sid_sub_authority_count): New static variables.
23827 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23828 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23829 (init_user_info): Use them to retrieve uid and gid.
23830 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23831 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23832 st_uid and st_gid of the file.
23833
238342008-01-26 Jason Rumney <jasonr@gnu.org>
23835
23836 * w32.c (logon_network_drive): New function.
23837 (stat): Use it.
23838
238392008-01-26 Chong Yidong <cyd@stupidchicken.com>
23840
23841 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23842 invisible text covered with an ellipsis.
23843
238442008-01-25 Richard Stallman <rms@gnu.org>
23845
23846 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23847 jump back to beginning. Move some other initializations after that.
23848 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23849 New variables.
23850 (syms_of_xdisp): Init them.
23851
23852 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23853
23854 * buffer.c (reset_buffer_local_variables):
23855 Implement `permanent-local-hook'.
23856 (Qpermanent_local_hook): New variable.
23857 (syms_of_buffer): Init and staticpro it.
23858
238592008-01-25 Michael Albinus <michael.albinus@gmx.de>
23860
23861 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23862
238632008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23864
23865 * fns.c (Fclrhash): Return TABLE.
23866
238672008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23868
23869 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23870 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23871 is set even without positional changes.
23872 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23873
23874 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23875
238762008-01-23 Jason Rumney <jasonr@gnu.org>
23877
23878 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23879
23880 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23881 the unicode range available in MULE by locale-coding-system.
23882 Improve dbcs lead byte detection. Set event timestamp and modifiers
23883 earlier.
23884
238852008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23886
23887 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23888 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23889 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23890 when used on child processes.
23891
238922008-01-21 Michael Albinus <michael.albinus@gmx.de>
23893
23894 * dbusbind.c (Fdbus_method_return_internal): Rename from
23895 Fdbus_method_return.
23896 (Fdbus_unregister_object): Move to dbus.el.
23897 (Fdbus_call_method, Fdbus_method_return_internal)
23898 (Fdbus_send_signal): Improve debug messages.
23899
239002008-01-20 Martin Rudalics <rudalics@gmx.at>
23901
23902 * undo.c (undo_inhibit_record_point): New variable.
23903 (syms_of_undo): Initialize it.
23904 (record_point): Don't record point when undo_inhibit_record_point
23905 is set.
23906
239072008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23908
23909 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23910
23911 * xdisp.c (Qauto_hscroll_mode): New var.
23912 (syms_of_xdisp): Initialize it.
23913 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23914 window's buffer.
23915 (hscroll_windows): Don't check automatic_hscrolling_p here.
23916
23917 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23918 vscroll if we're setting window-buffer to the value it already has.
23919
239202008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23921
23922 * m/intel386.h: Remove references to XENIX.
23923
239242008-01-17 Andreas Schwab <schwab@suse.de>
23925
23926 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23927 instead of HAVE_X86_64_LIB64_DIR.
23928 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23929
239302008-01-17 Glenn Morris <rgm@gnu.org>
23931
23932 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23933 to HAVE_X86_64_LIB64_DIR.
23934
239352008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23936
23937 * s/irix3-3.h:
23938 * s/irix4-0.h:
23939 * s/386-ix.h:
23940 * s/domain.h:
23941 * s/hpux9-x11r4.h:
23942 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23943
23944 * sysdep.c: Remove code containing references to symbols defined
23945 by unsupported systems.
23946
239472008-01-16 Glenn Morris <rgm@gnu.org>
23948
23949 * coding.c (select-safe-coding-system-function): Doc fix.
23950
239512008-01-15 Glenn Morris <rgm@gnu.org>
23952
23953 * config.in: Revert 2008-01-13 change: this is a generated file.
23954
239552008-01-13 Tom Tromey <tromey@redhat.com>
23956
23957 * lisp.h: Fix typo.
23958
239592008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23960
23961 * m/sequent-ptx.h:
23962 * m/sequent.h:
23963 * s/ptx.h:
23964 * s/ptx4-2.h:
23965 * s/ptx4.h: Remove files for systems no longer supported.
23966
23967 * callproc.c (Fcall_process): Fix previous change.
23968
239692008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23970
23971 * unexsunos4.c: Remove file, system not supported anymore.
23972
23973 * m/mips.h:
23974 * m/intel386.h:
23975 * callproc.c:
23976 * config.in:
23977 * ecrt0.c:
23978 * emacs.c:
23979 * fileio.c:
23980 * frame.c:
23981 * getpagesize.h:
23982 * keyboard.c:
23983 * lread.c:
23984 * process.c:
23985 * puresize.h:
23986 * sysdep.c:
23987 * systty.h:
23988 * syswait.h:
23989 * unexec.c:
23990 * xdisp.c:
23991 * alloc.c: Remove code containing references to symbols defined by
23992 unsupported systems.
23993
239942008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23995
23996 * coding.c (detect_coding_mask): Fix previous change.
23997
239982008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23999
24000 * coding.c (detect_coding_iso2022): New arg
24001 latin_extra_code_state. Allow Latin extra codes only
24002 when *latin_extra_code_state is nonzero.
24003 (detect_coding_mask): If there is a NULL byte, detect the encoding
24004 as UTF-16 or binary. If Latin extra codes exist, detect the
24005 encoding as ISO-2022 only when there's no other proper encoding is
24006 found.
24007
240082008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24009
24010 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24011 #ifdef MAC_OS.
24012
240132008-01-08 Richard Stallman <rms@gnu.org>
24014
24015 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24016
240172008-01-06 Nick Roberts <nickrob@snap.net.nz>
24018
24019 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24020 menu bar in parentheses.
24021
240222008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24023
24024 * m/7300.h:
24025 * m/acorn.h:
24026 * m/alliant-2800.h:
24027 * m/alliant.h:
24028 * m/alliant1.h:
24029 * m/alliant4.h:
24030 * m/altos.h:
24031 * m/amdahl.h:
24032 * m/apollo.h:
24033 * m/att3b.h:
24034 * m/aviion-intel.h:
24035 * m/aviion.h:
24036 * m/celerity.h:
24037 * m/clipper.h:
24038 * m/cnvrgnt.h:
24039 * m/convex.h:
24040 * m/cydra5.h:
24041 * m/delta88k.h:
24042 * m/dpx2.h:
24043 * m/dual.h:
24044 * m/elxsi.h:
24045 * m/f301.h:
24046 * m/gould-np1.h:
24047 * m/gould.h:
24048 * m/i860.h:
24049 * m/ibmps2-aix.h:
24050 * m/ibmrt-aix.h:
24051 * m/ibmrt.h:
24052 * m/irist.h:
24053 * m/is386.h:
24054 * m/isi-ov.h:
24055 * m/mega68.h:
24056 * m/mg1.h:
24057 * m/news-r6.h:
24058 * m/news-risc.h:
24059 * m/news.h:
24060 * m/nh3000.h:
24061 * m/nh4000.h:
24062 * m/ns16000.h:
24063 * m/ns32000.h:
24064 * m/nu.h:
24065 * m/orion.h:
24066 * m/orion105.h:
24067 * m/paragon.h:
24068 * m/pfa50.h:
24069 * m/plexus.h:
24070 * m/pyramid.h:
24071 * m/pyrmips.h:
24072 * m/sh3el.h:
24073 * m/sps7.h:
24074 * m/sr2k.h:
24075 * m/stride.h:
24076 * m/sun1.h:
24077 * m/sun2.h:
24078 * m/sun3-68881.h:
24079 * m/sun3-fpa.h:
24080 * m/sun3-soft.h:
24081 * m/sun3.h:
24082 * m/sun386.h:
24083 * m/symmetry.h:
24084 * m/tad68k.h:
24085 * m/tahoe.h:
24086 * m/targon31.h:
24087 * m/tek4300.h:
24088 * m/tekxd88.h:
24089 * m/tower32.h:
24090 * m/tower32v3.h:
24091 * m/ustation.h:
24092 * m/wicat.h:
24093 * m/xps100.h:
24094 * s/cxux.h:
24095 * s/cxux7.h:
24096 * s/dgux.h:
24097 * s/dgux4.h:
24098 * s/dgux5-4-3.h:
24099 * s/dgux5-4r2.h:
24100 * s/esix.h:
24101 * s/esix5r4.h:
24102 * s/hiuxmpp.h:
24103 * s/hiuxwe2.h:
24104 * s/iris3-5.h:
24105 * s/iris3-6.h:
24106 * s/isc2-2.h:
24107 * s/isc3-0.h:
24108 * s/isc4-0.h:
24109 * s/isc4-1.h:
24110 * s/newsos5.h:
24111 * s/newsos6.h:
24112 * s/osf1.h:
24113 * s/osf5-0.h:
24114 * s/riscix1-1.h:
24115 * s/riscix12.h:
24116 * s/sco4.h:
24117 * s/sco5.h:
24118 * s/sunos4-0.h:
24119 * s/sunos4-1.h:
24120 * s/sunos413.h:
24121 * s/sunos4shr.h:
24122 * s/umax.h:
24123 * s/unipl5-2.h:
24124 * s/xenix.h:
24125 * cxux-crt0.s:
24126 * unexapollo.c:
24127 * unexconvex.c:
24128 * unexenix.c:
24129 * unexsni.c: Remove files for systems no longer supported.
24130
24131 * m/intel386.h: Remove references to unsupported systems.
24132
24133 * w32.c (get_emacs_configuration): Remove reference to i860.
24134
24135 * sysdep.c: Remove dead code.
24136
241372008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24138
24139 * s/rtu.h:
24140 * m/masscomp.h: Remove files. Platform is obsolete.
24141
241422008-01-04 Michael Albinus <michael.albinus@gmx.de>
24143
24144 * dbusbind.c (Fdbus_method_return): New function.
24145 (xd_read_message): Add the serial number to the event.
24146 (Fdbus_register_method): Activate the function.
24147
241482008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24149
24150 * keyboard.c (read_key_sequence): Fix typo.
24151
241522008-01-03 Michael Albinus <michael.albinus@gmx.de>
24153
24154 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24155 (xd_signature, xd_append_arg): Handle element type detection for
24156 empty arrays.
24157 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24158 SDATA () calls; this must be solved more general.
24159 (Fdbus_register_signal): Use SBYTES instead of strlen.
24160
241612008-01-03 Magnus Henoch <magnus@zemdatav>
24162
24163 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24164 unsigned int for byte values (necessary for big-endian platform).
24165 (Fdbus_call_method): Handle the case of no returned arguments.
24166
241672007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24168
24169 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24170
241712007-12-31 Magnus Henoch <mange@freemail.hu>
24172
24173 * dbusbind.c (xd_signature): Signature of variant is just "v".
24174
241752007-12-30 Michael Albinus <michael.albinus@gmx.de>
24176
24177 * dbusbind.c: Fix several errors and compiler warnings.
24178 Reported by Tom Tromey <tromey@redhat.com>.
24179 (XD_ERROR, XD_DEBUG_MESSAGE)
24180 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24181 (xd_append_arg): Part for basic D-Bus types rewritten.
24182 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24183 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24184 appropriate.
24185 (xd_read_message): Return Qnil. Don't signal an error; it is not
24186 useful during event reading.
24187 (Fdbus_register_signal): Signal an error if the check for
24188 FUNCTIONP fails.
24189 (Fdbus_register_method): New function. The implementation is not
24190 complete, the call of the function signals an error therefore.
24191 (Fdbus_unregister_object): New function, renamed from
24192 Fdbus_unregister_signal. The initial check signals an error, if
24193 the object is not well formed.
24194
241952007-12-30 Richard Stallman <rms@gnu.org>
24196
24197 * textprop.c (get_char_property_and_overlay):
24198 Signal error if POSITION is out of range in a buffer.
24199
242002007-12-29 Martin Rudalics <rudalics@gmx.at>
24201
24202 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24203 because the original parameters are in pure storage now.
24204
242052007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24206
24207 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24208
242092007-12-22 Eli Zaretskii <eliz@gnu.org>
24210
24211 * callint.c (syms_of_callint) <command-history>: Add reference to
24212 history-length in the doc string.
24213
242142007-12-17 Jason Rumney <jasonr@gnu.org>
24215
24216 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24217 before passing as wParam.
24218
242192007-12-22 Michael Albinus <michael.albinus@gmx.de>
24220
24221 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24222 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24223 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24224 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24225 as number.
24226 (Fdbus_call_method): Fix docstring.
24227
242282007-12-21 Michael Albinus <michael.albinus@gmx.de>
24229
24230 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24231 New macros.
24232 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24233 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24234 Simplify.
24235 (xd_signature): New function.
24236 (xd_append_arg): Compute also signatures. Major rewrite.
24237 (xd_retrieve_arg): Make debug messages friendly.
24238 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24239 Check for signatures of arguments.
24240
242412007-12-19 Michael Albinus <michael.albinus@gmx.de>
24242
24243 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24244 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24245 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24246 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24247 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24248 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24249 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24250 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24251 (xd_retrieve_value): Remove. Functionality included in ...
24252 (xd_append_arg): New function.
24253 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24254
242552007-12-16 Michael Albinus <michael.albinus@gmx.de>
24256
24257 * dbusbind.c (top): Include <stdio.h>.
24258 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24259 dbus_message_new_method_call and dbus_message_new_signal.
24260 (Fdbus_register_signal): Rename unique_name to uname.
24261 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24262 non-existing unique name. Fix typos in matching rule. Return an
24263 object which is useful in Fdbus_unregister_signal.
24264 (Fdbus_unregister_signal): Reimplementation, in order to remove
24265 only the corresponding entry.
24266 (Vdbus_registered_functions_table): Change the order of entries.
24267 Apply these changes in xd_read_message and Fdbus_register_signal.
24268
242692007-12-16 Andreas Schwab <schwab@suse.de>
24270
24271 * fileio.c (Finsert_file_contents): Fix overflow check to not
24272 depend on undefined integer overflow.
24273
242742007-12-14 Jason Rumney <jasonr@gnu.org>
24275
24276 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24277 for characters above 127.
24278
242792007-12-13 Jason Rumney <jasonr@gnu.org>
24280
24281 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24282 before dereferencing array.
24283 (lookup_vk_code): Remove zero comparison.
24284
242852007-12-14 Michael Albinus <michael.albinus@gmx.de>
24286
24287 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24288 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24289 Use `unsigned int' instead of `uint'.
24290 (xd_read_message, Fdbus_register_signal): Split expressions into
24291 multiple lines before operators "&&" and "||", according to the
24292 GNU Coding Standards.
24293
242942007-12-14 Eli Zaretskii <eliz@gnu.org>
24295
24296 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24297
242982007-12-12 Juri Linkov <juri@jurta.org>
24299
24300 * buffer.c (Frename_buffer): In interactive spec replace
24301 `read-buffer' with `read-string' that uses `buffer-name-history'
24302 as history, and the current buffer's name as default.
24303
243042007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24305
24306 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24307 manipulating the backtrace manually.
24308 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24309 (struct backtrace, backtrace_list): Remove.
24310 (command_loop_1): Remove dead var `no_direct'.
24311
24312 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24313 preserve non-built-in buffer-local variables.
24314 (Fkill_all_local_variables): Don't re-create&re-set permanent
24315 buffer-local variables.
24316
243172007-12-09 Juri Linkov <juri@jurta.org>
24318
24319 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24320 Lisp code that uses `read-buffer' with current buffer as default.
24321
243222007-12-08 Michael Albinus <michael.albinus@gmx.de>
24323
24324 * dbusbind.c (xd_read_message): Generate an event for every
24325 registered handler. There might be several handlers registered
24326 for the same signal.
24327 (Fdbus_register_signal): Don't overwrite a registration for the
24328 same signal. Add a new registration if handlers are different.
24329 (Vdbus_registered_functions_table): Rework doc string.
24330
243312007-12-07 Michael Albinus <michael.albinus@gmx.de>
24332
24333 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24334 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24335 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24336 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24337 Unify argument lists.
24338 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24339 arguments and hash table keys. Use unique name for service.
24340 (Fdbus_unregister_signal): Remove checks.
24341 (Vdbus_registered_functions_table): Fix doc string.
24342
243432007-12-05 Magnus Henoch <mange@freemail.hu>
24344
24345 * process.c (make_process): Initialize pty_flag to 0.
24346
243472007-12-05 Jason Rumney <jasonr@gnu.org>
24348
24349 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24350 specified XBMs.
24351
243522007-12-05 Richard Stallman <rms@gnu.org>
24353
24354 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24355
243562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24357
24358 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24359 New variable.
24360 (mac_try_close_socket) [MAC_OSX]: New function.
24361 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24362 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24363
24364 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24365 Use mac_try_close_socket.
24366
243672007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24368
24369 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24370 reloc_base.
24371 (copy_dysymtab): Compute relocation base here.
24372 (rebase_reloc_address) [__ppc64__]: New function.
24373 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24374 changed.
24375
243762007-12-05 Jason Rumney <jasonr@gnu.org>
24377
24378 * w32proc.c (sys_spawnve): Quote args with wildcards.
24379
243802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24381
24382 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24383 __objc_* sections.
24384 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24385
243862007-12-05 Michael Albinus <michael.albinus@gmx.de>
24387
24388 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24389 Move check for Vdbus_registered_functions_table to
24390 xd_read_queued_messages.
24391 (xd_read_queued_messages): Protect xd_read_message calls by
24392 internal_condition_case_1.
24393
243942007-12-04 Michael Albinus <michael.albinus@gmx.de>
24395
24396 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24397 Qdbus_system_bus and Qdbus_session_bus, respectively.
24398 (Vdbus_intern_symbols): Remove.
24399 (Vdbus_registered_functions_table): New hash table.
24400 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24401 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24402 Rewrite in order to manage registered functions by hash table
24403 Vdbus_registered_functions_table.
24404
244052007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24406
24407 * xterm.c: Update URL to Window Manager Specification in comment.
24408
244092007-12-02 Michael Albinus <michael.albinus@gmx.de>
24410
24411 * config.in (HAVE_DBUS): Add.
24412
24413 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24414 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24415 (obj): Add $(DBUS_OBJ).
24416 (LIBES): Add $(DBUS_LIBS).
24417 (dbusbind.o): New target.
24418
24419 * dbusbind.c: New file.
24420
24421 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24422
24423 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24424 (Qdbus_event): New Lisp symbol.
24425 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24426 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24427 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24428
24429 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24430
244312007-12-01 Richard Stallman <rms@gnu.org>
24432
24433 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24434
244352007-11-30 Jason Rumney <jasonr@gnu.org>
24436
24437 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24438 (w32con_reset_terminal_modes): Clear screen buffer.
24439 (w32_face_attributes): Don't use color indexes that are out of range.
24440 Only reverse the default colors.
24441
24442 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24443 WINDOWSNT.
24444
24445 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24446
244472007-11-29 Jason Rumney <jasonr@gnu.org>
24448
24449 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24450 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24451 if the terminal colors are initialized.
24452 (unspecified_fg, unspecified_bg): Remove unused declarations.
24453
244542007-11-29 Andreas Schwab <schwab@suse.de>
24455
24456 * keyboard.c (apply_modifiers): Fix typo.
24457
244582007-11-29 Richard Stallman <rms@gnu.org>
24459
24460 * keymap.c (Fcurrent_local_map): Doc fix.
24461
244622007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24463
24464 * s/gnu-kfreebsd.h: New file.
24465
244662007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24467
24468 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24469 Don't cast redundantly.
24470
24471 * keyboard.c (KEY_TO_CHAR): New macro.
24472 (parse_modifiers, apply_modifiers): Accept integer arguments.
24473 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24474 for chars and symbol keys.
24475 After doing such remapping, apply function-key-map again.
24476
244772007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24478
24479 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24480 compiled anymore.
24481
244822007-11-26 Andreas Schwab <schwab@suse.de>
24483
24484 * process.c (list_processes_1): Fix indentation level of the
24485 command column.
24486
244872007-11-23 Andreas Schwab <schwab@suse.de>
24488
24489 * editfns.c (Fformat): Handle %c specially since it requires the
24490 argument to be of type int.
24491
244922007-11-23 Markus Triska <markus.triska@gmx.at>
24493
24494 * emacs.c (main): Call init_editfns before init_process, since
24495 init_process sets Vprocess_connection_type depending on OS release.
24496
244972007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24498
24499 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24500 (find_symbol_value): Use do_symval_forwarding.
24501
24502 * data.c (set_internal): Set the value in the `cons-cell' (for
24503 Buffer_Local_values) not only for frame-local variables.
24504
245052007-11-22 Andreas Schwab <schwab@suse.de>
24506
24507 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24508 values to sprintf.
24509 * keymap.c (Fsingle_key_description): Likewise.
24510 * print.c (print_object): Likewise.
24511
245122007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24513
24514 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24515 file for image is nil.
24516
245172007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24518
24519 * term.c: Include stdarg.h.
24520 (fatal): Implement using varargs.
24521 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24522
245232007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24524
24525 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24526 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24527 Update call to buffer_slot_type_mismatch.
24528 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24529 (buffer_slot_type_mismatch): Update.
24530 * buffer.c (buffer_local_types): Remove.
24531 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24532 (defvar_per_buffer): Set the type in the buffer_objfwd.
24533
245342007-11-21 Jason Rumney <jasonr@gnu.org>
24535
24536 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24537 CreateFileMapping returns NULL on failure.
24538
245392007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24540
24541 * search.c (Fset_match_data): Remove the `evaporate' feature.
24542 (unwind_set_match_data): Don't use the `evaporate' feature.
24543
245442007-11-21 Jason Rumney <jasonr@gnu.org>
24545
24546 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24547
24548 * w32console.c (w32con_write_glyphs): Remove unused variables.
24549
245502007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24551
24552 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24553
24554 * s/darwin.h (MULTI_KBOARD): Remove.
24555
24556 * macfns.c (x_create_tip_frame, Fx_create_frame)
24557 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24558
245592007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24560
24561 * buffer.c (Fbuffer_local_value): Remove redundant test.
24562 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24563 than in `current-buffer' to match the comment.
24564 Do the swap using swap_in_global_binding.
24565
24566 * data.c (store_symval_forwarding, set_internal):
24567 * eval.c (specbind): Remove dead code.
24568
24569 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24570 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24571 Since we do not want to see internal Lisp_*fwd objects here.
24572
245732007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24574
24575 * sysdep.c (init_system_name): Use getaddrinfo if available.
24576
24577 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24578 (x_scroll_bar_note_movement): start, end, with, height in struct
24579 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24580
245812007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24582
24583 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24584
245852007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24586
24587 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24588 This undoes Richard's change of 14-Oct-2002.
24589
24590 * alloc.c (allocate_other_vector):
24591 * lisp.h (allocate_other_vector): Remove.
24592
24593 * window.c (struct save_window_data): Move non-lisp data to the end
24594 and make it `int' rather than Lisp_Object.
24595 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24596 Done wrap/unwrap integer values.
24597 (Fset_window_configuration, compare_window_configurations):
24598 Update use of fields to their new types.
24599
24600 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24601 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24602 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24603 (SET_SCROLL_BAR_X_WINDOW): Remove.
24604 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24605 Access the new x_window field directly.
24606 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24607 Don't wrap/unwrap integers into Lisp_Objects.
24608 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24609 (x_scroll_bar_report_motion):
24610 Don't wrap/unwrap integers into Lisp_Objects.
24611 (x_term_init): Use SDATA.
24612 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24613 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24614 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24615 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24616 * xfns.c (x_set_background_color):
24617 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24618 Access the new x_window field directly.
24619
24620 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24621 (allocate_pseudovector): Make non-static.
24622
24623 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24624 (allocate_pseudovector): Declare.
24625 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24626
246272007-11-15 Andreas Schwab <schwab@suse.de>
24628
24629 * editfns.c (Fformat): Correctly format EMACS_INT values.
24630 Also take precision into account when formatting an integer.
24631
24632 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24633
246342007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24635
24636 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24637 (syms_of_keyboard): Defsubr it.
24638
24639 * data.c (swap_in_global_binding): Fix longstanding bug where
24640 store_symval_forwarding was not called with the right second argument,
24641 thus causing objfwd-ing from being dropped.
24642
246432007-11-14 Juanma Barranquero <lekktu@gmail.com>
24644
24645 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24646 (Fx_display_pixel_height, Fx_display_planes)
24647 (Fx_display_color_cells, Fx_server_max_request_size)
24648 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24649 (Fx_display_visual_class, Fx_display_save_under):
24650 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24651 (Fx_display_pixel_height, Fx_display_planes)
24652 (Fx_display_color_cells, Fx_server_max_request_size)
24653 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24654 (Fx_display_mm_height, Fx_display_mm_width)
24655 (Fx_display_backing_store, Fx_display_visual_class)
24656 (Fw32_select_font, Fx_display_save_under):
24657 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24658 (Fx_display_pixel_height, Fx_display_planes)
24659 (Fx_display_color_cells, Fx_server_max_request_size)
24660 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24661 (Fx_display_save_under): Fix typos in docstrings.
24662
246632007-11-14 Juanma Barranquero <lekktu@gmail.com>
24664
24665 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24666 corresponding to deleted entries; they are an implementation detail.
24667 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24668 Remove variables.
24669 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24670 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24671 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24672 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24673 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24674 (Fw32_define_rgb_color, Fw32_load_color_file)
24675 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24676 Fix typos in docstrings.
24677 (Fx_server_version): Reflow docstring.
24678 (Fw32_shell_execute): Doc fixes.
24679
246802007-11-13 Juanma Barranquero <lekktu@gmail.com>
24681
24682 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24683 if w32_parse_hot_key returned nil.
24684
246852007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24686
24687 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24688
246892007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24690
aac0c6e3
MR
24691 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24692
24693 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24694
24695 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24696 Remove W32_SCROLL_BAR_CLICK_EVENT.
24697
24698 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24699 Add MULTIMEDIA_KEY_EVENT.
24700
24701 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24702 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24703 (make_lispy_event) [WINDOWSNT]: Use it to translate
24704 MULTIMEDIA_KEY_EVENT.
24705
24706 * w32term.h (WM_APPCOMMAND): Define if not already.
24707 (GET_APPCOMMAND_LPARAM): Likewise.
24708
24709 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24710 WM_APPCOMMAND.
24711
24712 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24713 (syms_of_w32fns): Export and initialize it.
24714 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24715
247162007-11-09 Chong Yidong <cyd@stupidchicken.com>
24717
24718 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24719 twice.
24720
24721 * xdisp.c (handle_face_prop): Fix last change.
24722
247232007-11-09 Richard Stallman <rms@gnu.org>
24724
24725 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24726 not just for after-strings and before-strings.
24727 Call face_for_overlay_string and pass the overlay to it.
24728 (handle_display_prop): Determine whether property came from an overlay.
24729 Pass OVERLAY arg to handle_single_display_spec.
24730 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24731 (load_overlay_strings): Fill in it->string_overlays.
24732 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24733
24734 * xfaces.c (face_for_overlay_string): Function renamed from
24735 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24736
24737 * dispextern.h (struct it): New elt string_overlays.
24738 New elt from_overlay, also in stack.
24739 Rearrange a few elements.
24740 (face_for_overlay_string): Decl renamed from
24741 face_at_buffer_position_no_overlays, and add argument.
24742
247432007-11-09 Richard Stallman <rms@gnu.org>
24744
24745 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24746 to get the base face for an overlay string.
24747
24748 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24749
24750 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24751
24752 * xdisp.c (handle_stop): Move some code out of loop.
24753
247542007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24755
24756 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24757 Fix conversion from Lisp object to ATSUFontID.
24758
247592007-11-09 Jason Rumney <jasonr@gnu.org>
24760
24761 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24762
247632007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24764
24765 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24766 Don't assume regions are aligned to page boundary.
24767 (print_load_command_name): Add LC_UUID if defined.
24768
247692007-11-09 Richard Stallman <rms@gnu.org>
24770
24771 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24772
247732007-11-07 Jason Rumney <jasonr@gnu.org>
24774
24775 * s/windows95.h: Remove.
24776
247772007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24778
24779 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24780 abort with a message on unhandled store_type values.
24781
247822007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24783
24784 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24785 Remove HAVE_X11R5 and HAVE_X11R4.
24786
247872007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24788
24789 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24790
247912007-11-01 Johan Bockgård <bojohan@gnu.org>
24792
24793 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24794 Don't set s->stippled_p here, since it has already been set by
24795 x_set_glyph_string_gc from x_draw_glyph_string.
24796
247972007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24798
24799 * sunfns.c: Remove file.
24800
24801 * m/sun386.h:
24802 * m/sun2.h:
24803 * m/sparc.h: Remove Sun windows code.
24804
248052007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24806
24807 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24808 (init_keyboard): Set current_kboard's window-system to nil.
24809 (tty_read_avail_input): Typo.
24810 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24811
248122007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24813
24814 * s/usg5-4.h:
24815 * s/usg5-3.h:
24816 * s/ptx.h:
24817 * m/is386.h:
24818 * m/ibmps2-aix.h:
24819 * Makefile.in: Remove all mentions of X10.
24820
24821 * dispnew.c (syms_of_display): Don't mention version 10.
24822
248232007-10-28 Juanma Barranquero <lekktu@gmail.com>
24824
24825 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24826 ($(BLD)/abbrev.$(O)): Remove.
24827
248282007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24829
24830 Rewrite abbrev.c in Elisp.
24831 * image.c (Qcount): Don't declare as extern.
24832 (syms_of_image): Initialize and staticpro `Qcount'.
24833 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24834 * emacs.c (main): Don't call syms_of_abbrev.
24835 * Makefile.in (obj): Remove abbrev.o.
24836 (abbrev.o): Remove.
24837 * abbrev.c: Remove.
24838
248392007-10-26 Martin Rudalics <rudalics@gmx.at>
24840
24841 * window.c (window_min_size_2): Don't count header-line.
24842
248432007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24844
24845 * frame.h (struct frame): Move all bit fields after the first bit
24846 field to take advantage of the available space. Group all the
24847 chars together to reduce wasted space due to padding.
24848
248492007-10-26 Juanma Barranquero <lekktu@gmail.com>
24850
24851 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24852
24853 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24854 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24855 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24856 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24857 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24858 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24859 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24860 (last_marked, mark_object_loop_halt): Make static.
24861
24862 * frame.c (syms_of_frame) <delete-frame-functions>:
24863 Fix typo in docstring.
24864
248652007-10-25 Juanma Barranquero <lekktu@gmail.com>
24866
24867 * w32.c (init_environment): Fix tiny memory leak.
24868 (w32_get_resource): Remove unused variable `ok'.
24869
248702007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24871
24872 Make `window-system' into a keyboard-local variable (rather than
24873 frame-local as done originally by multi-tty).
24874
24875 * keyboard.h (struct kboard): Add Vwindow_system.
24876 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24877 (mark_kboards): Mark Vwindow_system.
24878
24879 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24880 (init_display): Don't set the obsolete `window-system' frame-param.
24881
24882 * xterm.c (x_term_init):
24883 * w32term.c (w32_create_terminal):
24884 * term.c (init_tty): Set Vwindow_system.
24885 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24886 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24887
24888 * xfns.c (Fx_create_frame, x_create_tip_frame):
24889 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24890 * macfns.c (Fx_create_frame):
24891 Don't set the obsolete `window-system' frame-param.
24892
24893 * frame.h (Qwindow_system): Remove.
24894 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24895 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24896
248972007-10-24 Richard Stallman <rms@gnu.org>
24898
24899 * frame.c (x_figure_window_size): For fullscreen case,
24900 set USPosition | PPosition without clobbering rest of window_prompting.
24901
24902 * keyboard.c (Fcurrent_idle_time): Doc fix.
24903
24904 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24905
249062007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24907
24908 * process.c (unwind_request_sigio): Only define if __ultrix__.
24909
24910 * callproc.c (child_setup): Remove spurious *.
24911
24912 * lisp.h (Fget_text_property): Declare.
24913 (have_menus_p): Declare it here rather than in sys-dep header files.
24914 * macterm.h (have_menus_p):
24915 * msdos.h (have_menus_p):
24916 * xterm.h (have_menus_p): Remove.
24917
24918 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24919 (Fmake_variable_frame_local): Just check the variable's const-ness
24920 rather than checking nil or t.
24921
249222007-10-22 Jason Rumney <jasonr@gnu.org>
24923
24924 * w32fns.c: Include math.h.
24925 (w32_abort): Declaration moved to nt/config.nt.
24926
24927 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24928 (abort): Redefinition moved to nt/config.nt.
24929
24930 * m/windowsnt.h: Remove.
24931
249322007-10-22 Juanma Barranquero <lekktu@gmail.com>
24933
24934 * emacs.c (Fdump_emacs): Fix typo in message.
24935 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24936 <installation-directory>: Reflow docstring.
24937
249382007-10-22 Juri Linkov <juri@jurta.org>
24939
24940 * minibuf.c: Allow minibuffer default to be a list of default values.
24941 With empty input use the first element of this list as returned default.
24942 (string_to_object)
24943 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24944 (read_minibuf): If defalt is cons, set histstring to its car.
24945 (Fread_string): If default_value is cons, set val to its car.
24946 (Fread_buffer): If def is cons, use its car.
24947 (Fcompleting_read): If defalt is cons, set val to its car.
24948
249492007-10-21 Michael Albinus <michael.albinus@gmx.de>
24950
24951 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24952
249532007-10-20 Juanma Barranquero <lekktu@gmail.com>
24954
24955 * doc.c (Fdocumentation): Check for advice in all cases.
24956
249572007-10-19 Chong Yidong <cyd@stupidchicken.com>
24958
24959 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24960
249612007-10-19 Richard Stallman <rms@gnu.org>
24962
24963 * doc.c (Fdocumentation): Check for and handle an advised function.
24964
249652007-10-19 Juanma Barranquero <lekktu@gmail.com>
24966
24967 * process.c (Fset_process_filter): Doc fix.
24968
249692007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24970
24971 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24972 which caused key-translation-map to applied repeatedly (thus breaking
24973 double-mode).
24974
249752007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24976
24977 * xselect.c (x_own_selection, x_handle_selection_clear)
24978 (x_clear_frame_selections):
24979 * w32menu.c (list_of_panes, list_of_items):
24980 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24981 * textprop.c (validate_plist, interval_has_all_properties)
24982 (interval_has_some_properties, interval_has_some_properties_list)
24983 (add_properties, text_property_list):
24984 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24985 * minibuf.c (Fassoc_string):
24986 * macselect.c (x_own_selection, x_clear_frame_selections)
24987 (Fx_disown_selection_internal):
24988 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24989 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24990
249912007-10-17 Chong Yidong <cyd@stupidchicken.com>
24992
24993 * process.c: Link to libs for calling res_init() if available.
24994 (Fmake_network_process): Call res_init() before getaddrinfo or
24995 gethostbyname, if possible.
24996
249972007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24998
24999 * lread.c (read1): Set pvectype for char_tables.
25000
25001 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25002 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25003 Add type checks.
25004 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25005
25006 * alloc.c (free_misc): Use XMISCTYPE.
25007 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25008
250092007-10-17 Glenn Morris <rgm@gnu.org>
25010
25011 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25012 (syms_of_minibuf): Add Qcompletion_ignore_case.
25013 * dired.c (Qcompletion_ignore_case): Change to external.
25014 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25015 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25016 (Fread_file_name): Use it rather than intern'ing.
25017
25018 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25019 (Fread_coding_system): Ignore case of user input.
25020
250212007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25022
25023 * xdisp.c (handle_display_prop): Ignore display specs after
25024 replacing one when string text is being replaced.
25025 (handle_single_display_spec): Pretend as if characters with display
25026 property haven't been consumed only when buffer text is being replaced.
25027
250282007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25029
25030 * xfns.c (Fx_create_frame, Fx_display_list):
25031 * window.c (window_fixed_size_p, enlarge_window)
25032 (shrink_window_lowest_first):
25033 * macterm.c (init_font_name_table):
25034 * macfns.c (Fx_create_frame, Fx_display_list):
25035 * lread.c (close_load_descs):
25036 * keyboard.c (read_char_x_menu_prompt):
25037 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25038 * coding.c (code_convert_region_unwind): Test the type of an object
25039 rather than just !NILP before extracting data from it.
25040
25041 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25042
25043 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25044 (XMISCANY): New macro.
25045 (XMISCTYPE): Use it.
25046 (struct Lisp_Misc_Any): New type.
25047 (union Lisp_Misc): Use it.
25048 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25049 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25050 (find_symbol_value, set_internal, default_value, Fset_default)
25051 (Fmake_variable_buffer_local, Fmake_local_variable)
25052 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25053 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25054 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25055 * alloc.c (allocate_buffer): Set the size and tag.
25056 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25057 Use XMISCANY.
25058 (die): Follow the GNU convention for error messages.
25059 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25060 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25061 tag any more.
25062 (set_buffer_internal_1):
25063 * frame.c (store_frame_param):
25064 * eval.c (specbind):
25065 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25066
25067 * doc.c (Fsnarf_documentation): Simplify.
25068
250692007-10-14 Juanma Barranquero <lekktu@gmail.com>
25070
25071 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25072 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25073
250742007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25075
25076 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25077
250782007-10-14 Juanma Barranquero <lekktu@gmail.com>
25079
25080 * eval.c (do_autoload): Don't save autoloads.
25081
25082 * data.c (Ffset): Save autoload of the function being set.
25083
250842007-10-07 John Paul Wallington <jpw@pobox.com>
25085
25086 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25087 parameter before setting up faces.
25088
250892007-10-13 Eli Zaretskii <eliz@gnu.org>
25090
25091 * ccl.c (Fregister_code_conversion_map):
25092 * keyboard.c (append_tool_bar_item): Reformat last change.
25093
25094 * lisp.h (eabs): Rename from `abs'. All callers changed.
25095
250962007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25097
25098 * buffer.c (add_overlay_mod_hooklist):
25099 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25100 * fontset.c (make_fontset):
25101 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25102 (append_tool_bar_item):
25103 * macmenu.c (grow_menu_items):
25104 * w32menu.c (grow_menu_items):
25105 * xmenu.c (grow_menu_items): Use larger_vector.
25106
251072007-10-13 Eli Zaretskii <eliz@gnu.org>
25108
25109 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25110 selected frame'' on MSDOS).
25111
251122007-10-12 Martin Rudalics <rudalics@gmx.at>
25113
25114 * frame.c (Qexplicit_name): New variable.
25115 (x_report_frame_params): Report it in parameter alist.
25116 (syms_of_frame): Intern and staticpro it.
25117
251182007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25119
25120 * macfns.c (x_create_tip_frame): Set terminal for frame.
25121
251222007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25123
25124 * frame.c (Qenvironment): Remove.
25125 (syms_of_frame) <Qenvironment>: Don't initialize.
25126 (Fdelete_frame): Don't treat the `environment' param specially.
25127 * frame.h (Qenvironment): Don't declare.
25128 * callproc.c (set_initial_environment): Don't set unused frame param.
25129
25130 * frame.c (Fframe_with_environment): Remove.
25131 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25132
25133 * lisp.h (Fframe_with_environment): Don't declare.
25134
251352007-10-10 Juanma Barranquero <lekktu@gmail.com>
25136
25137 * indent.c (indent_tabs_mode, last_known_column)
25138 (last_known_column_modified): Make static.
25139 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25140
251412007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25142
25143 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25144
251452007-10-09 Jason Rumney <jasonr@gnu.org>
25146
25147 * w32term.c (x_set_window_size): Disable code that attempts to tell
25148 Lisp code about a size change before it actually happens.
25149
251502007-10-09 Richard Stallman <rms@gnu.org>
25151
25152 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25153 return HANDLED_RETURN.
25154
251552007-10-08 Martin Rudalics <rudalics@gmx.at>
25156
25157 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25158 when there's an unread command event.
25159
25160 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25161 window autoselection act appropriately when leaving selected frame.
25162 (syms_of_frame): Initialize focus_follows_mouse.
25163 * frame.h (focus_follows_mouse): Extern it.
25164 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25165 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25166 * msdos.c (dos_rawgetc): Likewise.
25167 * w32term.c (w32_read_socket): Likewise.
25168 * xterm.c (handle_one_xevent): Likewise.
25169 * xdisp.c (syms_of_xdisp): In doc-string of
25170 mouse-autoselect-window mention focus-follows-mouse.
25171
251722007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25173
25174 * macterm.c (mac_load_query_font): Fix missing return value.
25175 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25176 Add BLOCK_INPUT.
25177
251782007-10-08 Richard Stallman <rms@gnu.org>
25179
25180 * xdisp.c (get_window_cursor_type): Implement documented behavior
25181 for cursor-in-non-selected-windows = t.
25182
251832007-10-08 Jason Rumney <jasonr@gnu.org>
25184
25185 * w32.c (w32_get_resource): Always close registry keys.
25186
251872007-10-08 Jason Rumney <jasonr@gnu.org>
25188
25189 * makefile.w32-in (LIBS): Add COMCTL32.
25190
25191 * w32fns.c (globals_of_w32fns): Init common controls.
25192
251932007-10-08 Richard Stallman <rms@gnu.org>
25194
25195 * image.c (our_memory_buffer): Rename from omfib_buffer.
25196
251972007-10-08 Richard Stallman <rms@gnu.org>
25198
25199 * buffer.c (Foverlays_at): Doc fix.
25200
252012007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25202
25203 * fns.c (Fplist_put): Preserve uneven tail data.
25204
252052007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25206
25207 * termhooks.h (enum event_kind): Remove trailing comma.
25208
25209 * frame.h (enum): Remove trailing comma.
25210
252112007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25212
25213 * w32proc.c (delete_child): Don't terminate threads of zombies.
25214
252152007-10-08 Martin Rudalics <rudalics@gmx.at>
25216
25217 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25218
25219 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25220 last-repeatable-command.
25221 (init_kboard): Initialize Vlast_repeatable_command.
25222 (command_loop_1): Set it to real_this_command unless that was
25223 bound to an input event.
25224 (mark_kboards): Mark it.
25225
252262007-10-08 Richard Stallman <rms@gnu.org>
25227
25228 * eval.c (condition-case): Doc fix.
25229
252302007-10-08 Masatake YAMATO <jet@gyve.org>
25231
25232 * xfaces.c (tty_supports_face_attributes_p): Fix code
25233 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25234 was copied and not edited.
25235
252362007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25237
25238 Add new `input-decode-map' keymap and use it for terminal
25239 escape sequences.
25240 * keyboard.h (struct kboard): Add Vinput_decode_map.
25241 Remove Vlocal_key_translation_map.
25242 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25243 (init_kboard): Init input-decode-map.
25244 Replace local-key-translation-map back with key-translation-map.
25245 (syms_of_keyboard): Declare input-decode-map.
25246 Remove local-key-translation-map. Update docstrings.
25247 (mark_kboards): Mark Vinput_decode_map.
25248 Don't mark Vlocal_key_translation_map.
25249 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25250 Replace local-key-translation-map back with key-translation-map.
25251 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25252 Bind in input-decode-map rather than function-key-map.
25253
25254 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25255 This was made redundant by the previous introduction of XSETPVECTYPE.
25256
252572007-10-09 Richard Stallman <rms@gnu.org>
25258
25259 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25260
252612007-09-29 Richard Stallman <rms@gnu.org>
25262
25263 * eval.c (internal_condition_case_2, internal_condition_case_1)
25264 (internal_condition_case): Reenable abort if x_catching_errors ()
25265 to see if that really happens and why.
25266
252672007-10-06 Andreas Schwab <schwab@suse.de>
25268
25269 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25270
252712007-10-04 Juanma Barranquero <lekktu@gmail.com>
25272
25273 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25274
252752007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25276
25277 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25278
252792007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25280
25281 * window.h (struct window):
25282 * window.c (struct save_window_data, struct saved_window):
25283 * termhooks.h (struct terminal):
25284 * process.h (struct Lisp_Process):
25285 * frame.h (struct frame):
25286 * buffer.h (struct buffer):
25287 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25288 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25289 The size field of (pseudo)vectors is now unsigned.
25290 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25291
25292 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25293 Turn `count' into an integer.
25294
25295 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25296 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25297 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25298 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25299 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25300
25301 * alloc.c (allocate_pseudovector): New fun.
25302 (ALLOCATE_PSEUDOVECTOR): New macro.
25303 (allocate_window, allocate_terminal, allocate_frame)
25304 (allocate_process): Use it.
25305 (mark_vectorlike): New function.
25306 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25307 (mark_terminals): Use it.
25308 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25309 (Fmake_byte_code): Use XSETPVECTYPE.
25310
25311 * frame.c (Fframe_parameters): Minor simplification.
25312
25313 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25314
25315 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25316
25317 * buffer.c (Fget_buffer_create, init_buffer_once):
25318 * lread.c (defsubr):
25319 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25320
25321 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25322 defined differently in the m/*.h files.
25323 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25324 (XSETPVECTYPE): New macro.
25325 (XSETPSEUDOVECTOR): Use it.
25326
25327 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25328 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25329
25330 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25331 * lread.c (defvar_per_buffer):
25332 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25333
25334 * window.c (candidate_window_p): Only consider as visible frames that
25335 are on the same terminal.
25336
25337 * m/ibms390x.h (MARKBIT): Remove unused macro.
25338
253392007-10-01 Juanma Barranquero <lekktu@gmail.com>
25340
25341 * lread.c (Fload): Fix typo in docstring.
25342
253432007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25344
25345 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25346 of a non-zero value can't yield zero.
25347
253482007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25349
25350 * term.c (term_clear_mouse_face, term_mouse_highlight)
25351 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25352
25353 * print.c (safe_debug_print): Use XHASH.
25354
25355 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25356 Lisp elements such as tags.
25357 (XHASH): New macro.
25358 (EQ): Use it.
25359 (SREF, SSET, STRING_COPYIN): Use SDATA.
25360 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25361
25362 * alloc.c (mark_terminal): Remove left-over declaration.
25363 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25364 (allocate_vectorlike): Remove type argument. Adjust callers.
25365 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25366 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25367
25368 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25369 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25370 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25371 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25372 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25373 Use them.
25374
25375 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25376 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25377 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25378
253792007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25380
25381 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25382 loaded by default.
25383
253842007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25385
25386 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25387 on this tty.
25388 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25389
25390 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25391 Update all users.
25392 (handle_one_term_event): Use Gpm_DrawPointer.
25393 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25394 Signal errors instead of returning nil. Always return nil.
25395 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25396 Make it a noop if gpm-mouse was not activated.
25397 (syms_of_term): Update names.
25398
253992007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25400
25401 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25402 (init_sys_modes): Check that gpm_tty is the current tty.
25403
25404 * alloc.c (allocate_terminal): Set the vector size to only count the
25405 lisp fields. Initialize those to nil.
25406 (mark_object): Don't treat terminals specially.
25407 (mark_terminal): Remove.
25408 (mark_terminals): Use mark_object instead.
25409
25410 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25411 the GC to the beginning.
25412
25413 * indent.h:
25414 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25415
25416 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25417
254182007-09-25 Jason Rumney <jasonr@gnu.org>
25419
25420 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25421
25422 * w32console.c (create_w32cons_output): Remove.
25423
25424 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25425
25426 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25427 (reset_sys_modes): Use reset_terminal_modes_hook.
25428
254292007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25430
25431 * eval.c (do_autoload): Don't output any message.
25432
254332007-09-24 Juri Linkov <juri@jurta.org>
25434
25435 * emacs.c (standard_args): Change priority of "--no-splash"
25436 from 40 to 3. Add "--no-desktop" with the same priority.
25437
254382007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25439
25440 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25441 and optimize the case where they are all 1.
25442
254432007-09-23 Johannes Weiner <hannes@saeurebad.de>
25444
25445 * lisp.h (abs): Define if not defined.
25446 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25447 Don't define `abs', since it's defined in lisp.h.
25448
254492007-09-22 Eli Zaretskii <eliz@gnu.org>
25450
25451 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25452 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25453 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25454 (init_tty): Use DEV_TTY instead of "/dev/tty".
25455 [WINDOWSNT]: No need to protect from NAME arg being null.
25456
254572007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25458
25459 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25460 up the tty state.
25461
254622007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25463
25464 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25465 (gpm_tty): Change its type.
25466 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25467 (gpm_tty): Change its type and initialize it.
25468 (Fterm_open_connection): Check the frame is indeed a tty.
25469 Use the new gpm_tty.
25470 (Fterm_close_connection): Use the new gpm_tty.
25471 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25472 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25473
254742007-09-21 Juanma Barranquero <lekktu@gmail.com>
25475
25476 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25477 underline_color, to draw strike-through.
25478
254792007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25480
25481 * lisp.h (allocate_terminal): Declare.
25482
25483 * window.c (candidate_window_p): Consider frames that are being placed
25484 by the user as somewhere between visible and iconified.
25485 (window_loop): Prefer windows on the current frame.
25486 (Fselect_window): Move the use of select-frame to the beginning so we
25487 can just delegate all the work (it'll call us back anyway).
25488
25489 * frame.c (Qdisplay_environment_variable):
25490 * frame.h (Qdisplay_environment_variable): Delete.
25491
25492 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25493 of the first arg, since that value may be a union.
25494
25495 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25496 parameter rather than Qdisplay_environment_variable. If all else
25497 fails, look for DISPLAY in initial-environment.
25498
254992007-09-21 Glenn Morris <rgm@gnu.org>
25500
25501 * Makefile.in (emacstool): Remove target.
25502 (lisp, shortlisp): Remove termdev.elc.
25503
255042007-09-21 Markus Triska <markus.triska@gmx.at>
25505
25506 * xterm.c (x_delete_display): Compile session management conditionally.
25507
255082007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25509
25510 * callproc.c (getenv_internal_1): New function.
25511 (getenv_internal): Use it.
25512 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25513
25514 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25515 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25516 (Fset_terminal_parameter): Work with dead terminals as well.
25517 (Fmodify_terminal_parameters): Remove.
25518
25519 * terminal.c (get_terminal): Handle terminals.
25520 Make sure the terminal returned is live.
25521 (create_terminal): Use allocate_terminal.
25522 (mark_terminals): Move to alloc.c.
25523 (delete_terminal): Use terminal->name as liveness status.
25524 NULL out fields after freeing their contents.
25525 Don't deallocate the object.
25526 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25527 rather than an int.
25528 (Fterminal_live_p): Accept non-integer arguments.
25529 (Fterminal_list): Return terminal objects rather than an ints.
25530
25531 * alloc.c (enum mem_type): New member for `terminal' objects.
25532 (allocate_terminal): New function.
25533 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25534 Handle terminals.
25535 (mark_terminal): New fun.
25536 (mark_terminals): Move from terminal.c.
25537
25538 * term.c (get_tty_terminal): Don't treat output_initial specially.
25539 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25540 (delete_tty): Use terminal->name as liveness status.
25541
25542 * termhooks.h (struct terminal): Make it into a pseudovector.
25543 Remove `deleted' replaced by checking `name's nullness.
25544
25545 * print.c (print_object): Handle terminals.
25546
25547 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25548 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25549
25550 * frame.c (make_terminal_frame):
25551 * keyboard.c (tty_read_avail_input):
25552 * w32term.c (x_delete_terminal):
25553 * xfns.c (Fx_create_frame, x_create_tip_frame):
25554 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25555
255562007-09-20 Glenn Morris <rgm@gnu.org>
25557
25558 * process.c (Fmake_network_process): Doc fix.
25559
255602007-09-19 Jason Rumney <jasonr@gnu.org>
25561
25562 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25563
255642007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25565
25566 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25567 Fix a C warning regarding variable constness.
25568
25569 * xterm.c (handle_one_xevent): Fix a C warning.
25570
255712007-09-18 Jason Rumney <jasonr@gnu.org>
25572
25573 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25574
255752007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25576
25577 * gtkutil.c (gdpy_def): New variable.
25578 (xg_initialize): Initialize gdpy_def.
25579 (xg_display_close): If no other display exists, set gdpy_def to a
25580 new connection.
25581
255822007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25583
25584 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25585 when we have no file name for the icon.
25586 (xg_tool_bar_expose_callback): Remove.
25587 (xg_create_tool_bar): Don't connect expose signal to
25588 xg_tool_bar_expose_callback.
25589 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25590
255912007-09-16 Andreas Schwab <schwab@suse.de>
25592
25593 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25594 values instead of zapping them.
25595
255962007-09-14 Glenn Morris <rgm@gnu.org>
25597
25598 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25599 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25600 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25601 scope and rename to omfib_buffer for clarity.
25602 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25603
256042007-09-14 Kenichi Handa <handa@m17n.org>
25605
25606 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25607
256082007-09-13 Jason Rumney <jasonr@gnu.org>
25609
25610 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25611
25612 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25613
25614 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25615 (mac_term_init): Call here instead, passing rif.
25616
256172007-09-13 Glenn Morris <rgm@gnu.org>
25618
25619 * s/hpux.h: No longer define `static' as nothing.
25620
256212007-09-13 Johan Bockgård <bojohan@gnu.org>
25622
25623 * callint.c (Fcall_interactively): Remove unused var `fun'.
25624
256252007-09-12 Romain Francoise <romain@orebokech.com>
25626
25627 * window.c (prefer_window_split_horizontally, display_buffer):
25628 Revert 2007-09-08 change.
25629
256302007-09-12 Glenn Morris <rgm@gnu.org>
25631
25632 * alloca.c: Remove file.
25633 * Makefile.in (alloca): Do not undef.
25634 (allocaobj, alloca.o): Remove.
25635 (otherobj): Remove allocaobj.
25636 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25637 * regex.c (C_ALLOCA): Remove all references and code that was only
25638 used when this was defined.
25639 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25640 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25641 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25642
25643 * Makefile.in (SOURCES, unlock, relock): Delete.
25644
25645 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25646 (menu_grab_callback): All uses changed.
25647
25648 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25649 (x_reply_selection_request): All uses changed.
25650
256512007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25652
25653 * lread.c (load_warn_old_style_backquotes): Change message to look
25654 better when it appears in the middle of byte-compiler messages.
25655
256562007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25657
25658 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25659
25660 * xterm.c (x_create_terminal): Add comment.
25661
25662 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25663
256642007-09-10 Richard Stallman <rms@gnu.org>
25665
25666 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25667
256682007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25669
25670 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25671 (DEFUN): Document `intspec', use it instead of `prompt'.
25672
25673 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25674
25675 * data.c (Finteractive_form): If the interactive specification starts
25676 with a `(', use it as a Lisp form.
25677
25678 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25679 name and file modes.
25680
25681 * callint.c (Fcall_interactively): Comment fixes.
25682
256832007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25684
25685 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25686 and compiled functions.
25687
256882007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25689
25690 * window.c (prefer_window_split_horizontally): New variable.
25691 (display_buffer): Consider splitting window horizontally depending
25692 on prefer_window_split_horizontally.
25693
256942007-09-08 Eli Zaretskii <eliz@gnu.org>
25695
25696 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25697
256982007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25699
25700 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25701
25702 * frame.c (x_set_frame_parameters): Check number is positive before
25703 using XFASTINT.
25704
25705 * window.c (freeze_window_start): Don't presume selected_window holds
25706 a window object.
25707 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25708
257092007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25710
25711 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25712
257132007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25714
25715 * window.c (Vsplit_window_preferred_function): New var.
25716 (Fdisplay_buffer): Use it.
25717 (syms_of_window): Export, and initialize it.
25718
257192007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25720
25721 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25722
257232007-09-06 Glenn Morris <rgm@gnu.org>
25724
25725 * gtkutil.c (menu_grab_callback) <cnt>:
25726 * xselect.c (x_reply_selection_request) <cnt>: Move static
25727 variable to file scope.
25728
257292007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25730
25731 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25732 consistent values of selected_frame and selected_window.
25733
257342007-09-04 Jason Rumney <jasonr@gnu.org>
25735
25736 * w32console.c (initialize_w32_display): Zero unused hooks.
25737
257382007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25739
25740 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25741 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25742
257432007-09-04 Jason Rumney <jasonr@gnu.org>
25744
25745 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25746 in w32console.c. Set up input. Remove XXX comments that have been
25747 confirmed as correct.
25748
25749 * s/ms-w32.h (MULTI_KBOARD): Define.
25750
25751 * w32console.c (one_and_only_w32cons): Remove.
25752 (initialize_w32_display): Take terminal argument.
25753
25754 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25755 initialize_w32_display.
25756 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25757
25758 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25759
25760 * keyboard.c (discard_mouse_events): Discard it.
25761 (make_lispy_event): Translate it to a lisp event.
25762 (lispy_wheel_names): Add wheel-left and right events.
25763 (syms_of_keyboard): Enlarge wheel_syms.
25764
25765 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25766 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25767
25768 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25769
25770 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25771 from WM_MOUSEHWHEEL.
25772 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25773
25774 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25775 terminal.
25776
25777 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25778 keyboard for the terminal.
25779
257802007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25781
25782 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25783 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25784 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25785 and resume-tty-function to resume-tty-hook.
25786 (Fsuspend_tty, Fresume_tty): Use new names.
25787
257882007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25789
25790 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25791 if it starts with "n:".
25792
257932007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25794
25795 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25796
257972007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25798
25799 * frame.h:
25800 * frame.c (Qterm_environment_variable): Remove.
25801 (syms_of_frame): Don't init and staticpro it.
25802
25803 * callproc.c (getenv_internal): Remove special case for $TERM.
25804
25805 * callproc.c (Vinitial_environment): New variable.
25806 (set_initial_environment): Initialize it.
25807 (syms_of_callproc): Declare it.
25808 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25809 TERM under which a process runs is never related to the TERM in which
25810 Emacs is running.
25811
258122007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25813
25814 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25815 * s/darwin.h: ... do it here.
25816
258172007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25818
25819 * lisp.h (set_initial_environment): Rename from set_global_environment.
25820
25821 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25822 removed by mistake on the multi-tty branch.
25823
25824 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25825 (Fmodify_frame_parameters): Return a value.
25826
25827 * image.c (png_load): Comment-out var only used in commented-out code.
25828
25829 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25830 before passing it to mark_object.
25831
25832 * xfaces.c (internal_resolve_face_name): Return a value.
25833 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25834
25835 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25836 (x_icon): Comment-out var only used in commented-out code.
25837
258382007-08-29 Romain Francoise <romain@orebokech.com>
25839
25840 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25841 QUIT hasn't been provided.
25842
258432007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25844
25845 * callproc.c (child_setup, getenv_internal): Use the
25846 display-environment-variable and term-environment-variable frame params.
25847 (set_initial_environment): Initialise Vprocess_environment.
25848
25849 * config.in: Disable multi-keyboard support on a mac.
25850
25851 * frame.c (Qterm_environment_variable)
25852 (Qdisplay_environment_variable): New variables.
25853 (syms_of_frame): Intern and staticpro them.
25854 (Fmake_terminal_frame): Disable output method test.
25855
25856 * frame.h: Declare them here.
25857
25858 * macfns.c (x_set_mouse_color): Get rif from the frame.
25859 (x_set_tool_bar_lines): Don't use updating_frame.
25860 (mac_window): Add 2 new parameters for consistency with other systems.
25861 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25862 frame parameters following what is done in X11 and w32. Don't use
25863 FRAME_MAC_DISPLAY_INFO.
25864 (Fx_open_connection, start_hourglass): Remove window-system check.
25865 (x_create_tip_frame): Get the keyboard from the terminal.
25866
25867 * macmenu.c: Reorder includes.
25868 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25869
25870 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25871 terminal parameter.
25872 (x_clear_frame): Add a frame parameter.
25873 (note_mouse_movement): Get rif from the frame.
25874 (mac_term_init): Initialize the terminal.
25875 (mac_initialize): Make static and move terminal initialization ...
25876 (mac_create_terminal): ... to this new function.
25877
25878 * macterm.h (struct mac_display_info): Add terminal.
25879 (mac_initialize): Delete declaration.
25880
25881 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25882
25883 * sysdep.c: Comment out text after #endif.
25884
25885 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25886 is defined. Better initialize ttys in windows. Use terminal
25887 specific mouse_position_hook.
25888
25889 * termhooks.h (union display_info): Add mac_display_info.
25890
25891 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25892 Set the default minibuffer frame, window_system and the rest of the
25893 frame parameters following what is done in X11.
25894
25895 * w32term.c (w32_initialize): Make static.
25896
25897 * xselect.c (x_handle_selection_clear): Only access
25898 terminal->kboard when MULTI_KBOARD is defined.
25899
25900 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25901 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25902
259032007-08-29 Jason Rumney <jasonr@gnu.org>
25904
25905 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25906 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25907
25908 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25909 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25910
25911 * keyboard.c (restore_kboard_configuration): Only define when
25912 MULTI_KBOARD defined.
25913
25914 * makefile.w32-in: Update dependancies from Makefile.in.
25915 (OBJ1): Add terminal.$(O)
25916
25917 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25918 Don't define function body.
25919 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25920
25921 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25922
25923 * w32.c (request_sigio, unrequest_sigio): Remove.
25924
25925 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25926 (w32con_clear_frame, w32con_clear_end_of_line)
25927 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25928 (w32con_delete_glyphs, w32con_set_terminal_window)
25929 (scroll_line, w32_sys_ring_bell): Add frame arg.
25930 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25931 Add terminal arg.
25932 (PICK_FRAME): Remove.
25933 (w32con_write_glyphs): Use frame specific terminal coding.
25934 (one_and_only_w32cons): New global variable.
25935 (initialize_w32_display): Use it for storing hooks.
25936 (create_w32cons_output): New function.
25937
25938 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25939 arg a frame.
25940
25941 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25942 Set window_system.
25943 (x_set_tool_bar_lines): Don't use updating_frame.
25944 (Fx_create_frame): Set terminal and ref count.
25945 (Fx_open_connection): Remove window-system check.
25946
25947 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25948
25949 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25950 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25951 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25952 Add frame arg.
25953 (x_delete_terminal, w32_create_terminal): New functions.
25954 (w32_term_init): Create a terminal.
25955 (w32_initialize): Move terminal specific initialization to
25956 w32_create_terminal.
25957
25958 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25959 (w32_clear_rect, w32_clear_area): Use background from frame.
25960 (w32_display_info): Add terminal.
25961 (w32_sys_ring_bell, x_delete_display): Declare here.
25962
25963 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25964
25965 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25966
259672007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25968
25969 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25970 Fix get_named_tty calls for the controlling tty.
25971
259722007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25973
194d44e7 25974 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25975
259762007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25977
25978 * term.c (tty_insert_glyphs): Add missing first parameter.
25979
259802007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25981
25982 * buffer.c (Fbuffer_list, Fbury_buffer):
25983 Take frame->buried_buffer_list into account.
25984
25985 * cm.c (current_tty): New variable, for cmputc().
25986 (cmputc): Use it.
25987 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25988 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25989 (cmgoto): Add tty parameter. Pass it on to calccost().
25990 Use emacs_tputs() instead of tputs().
25991
25992 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25993 tputs().
25994 (current_tty): New variable, for cmputc().
25995 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25996
25997 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25998 (internal_condition_case, internal_condition_case_1)
25999 (internal_condition_case_2): Don't abort when x_catching_errors.
26000
26001 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26002 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26003 prevent crashes caused by bogus longjmps in read_char.
26004
26005 * keymap.h (Fset_keymap_parent): Add EXFUN.
26006
26007 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26008 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26009 Remove redundant definition.
26010
26011 * macfns.c (x_set_mouse_color, x_make_gc):
26012 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26013
26014 * w32term.c (x_free_frame_resources):
26015 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26016 (w32_initialize): Use the accessor macros for terminal characteristics.
26017
26018 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26019 Use the accessor macros for terminal characteristics.
26020 * msdos.c (internal_terminal_init): Use the accessor macros for
26021 terminal characteristics.
26022 (ScreenVisualBell, internal_terminal_init):
26023 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26024
26025 * termopts.h (no_redraw_on_reenter): Declare.
26026
26027 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26028 (mark_terminals, mark_ttys): Declare.
26029 (Fgarbage_collect): Call them.
26030 (mark_object): Mark buried_buffer_list.
26031
26032 * prefix-args.c: Include stdlib.h for exit.
26033
26034 * syssignal.h: Add comment.
26035
26036 * indent.c: Include stdio.h.
26037
26038 * window.h (Vinitial_window_system): Declare.
26039 (Vwindow_system): Delete declaration.
26040
26041 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26042
26043 * image.c (lookup_image): Don't initialize `c' until the xasserts
26044 have been run.
26045
26046 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26047 FRAME_FOREGROUND_PIXEL.
26048
26049 * print.c (print_preprocess): Don't lose print_depth levels while
26050 iterating.
26051
26052 * widget.c (update_from_various_frame_slots):
26053 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26054
26055 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26056 frames.
26057 (window_internal_height): Remove bogus make_number call.
26058 (init_window_once): Call make_terminal_frame with two zero parameters.
26059
26060 * fileio.c (Fread_file_name): Update comment.
26061
26062 * callint.c (Fcall_interactively):
26063 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26064 Make sure it is correctly unwound.
26065
26066 * xsmfns.c (x_session_close): New function.
26067
26068 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26069 Delete declarations.
26070
26071 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26072 (x_output): Remove background_pixel and foreground_pixel fields.
26073 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26074 (x_delete_device, x_session_close): Declare.
26075
26076 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26077 (read_filtered_event): Call `read_char' with a local
26078 `wrong_kboard_jmpbuf'.
26079
26080 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26081 Don't call single_kboard_state. Use FRAME_RIF.
26082
26083 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26084 systems.
26085
26086 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26087 (Fframe_with_environment, Fset_input_meta_mode)
26088 (Fset_quit_char): EXFUN.
26089 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26090 (init_sys_modes, reset_sys_modes): Update prototypes.
26091 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26092
26093 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26094 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26095 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26096 Delete declarations.
26097 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26098 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26099 New declarations.
26100
26101 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26102 already does that during init_display(). Call syms_of_keymap
26103 before syms_of_keyboard. Call `syms_of_terminal'.
26104 Call set_initial_environment, not set_process_environment.
26105 (shut_down_emacs): Call reset_all_sys_modes() instead of
26106 reset_sys_modes().
26107
26108 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26109 (internal_resolve_face_name, resolve_face_name_error): New functions.
26110 (resolve_face_name): Protect against loops and errors thrown by Fget.
26111 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26112 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26113
26114 * scroll.c: Replace CURTTY() with local variables throughout the
26115 file (where applicable).
26116 (calculate_scrolling, calculate_direct_scrolling)
26117 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26118 characteristics.
26119
26120 * keymap.c (Vfunction_key_map): Remove.
26121 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26122 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26123 (Vkey_translation_map): Remove.
26124 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26125 (Fdescribe_buffer_bindings)
26126 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26127 Update for terminal-local key-translation-map.
26128
26129 * Makefile.in (callproc.o): Update dependencies.
26130 (lisp, shortlisp): Add termdev.elc.
26131 (obj): Add terminal.o.
26132 (terminal.o): Add dependencies.
26133 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26134 (data.o, fns.o): Add termhooks.h dependency.
26135 (SOME_MACHINE_LISP): Add dnd.elc.
26136 (minibuf.o): Fix typo.
26137 Update dependencies.
26138
26139 * data.c (do_symval_forwarding, store_symval_forwarding)
26140 (find_symbol_value): Use the selected frame's keyboard, not
26141 current_kboard.
26142
26143 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26144 Vwindow_system.
26145
26146 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26147 Fmenu_bar_open.
26148 (syms_of_xmenu): Update defsubr.
26149 (mouse_position_for_popup, Fx_popup_menu)
26150 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26151 (set_frame_menubar, free_frame_menubar)
b97439ce 26152 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26153 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26154 an X frame.
26155
26156 * xselect.c (x_own_selection): Abort if not an X frame.
26157 (some_frame_on_display): Check if it is an X frame.
26158 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26159
26160 * coding.c: Include frame.h and termhooks.h.
26161 (terminal_coding, keyboard_coding): Delete.
26162 (Fset_terminal_coding_system_internal)
26163 (Fset_keyboard_coding_system_internal)
26164 (Fkeyboard_coding_system)
26165 (Fterminal_coding_system): Add a terminal parameter.
26166 Get terminal_coding from the terminal.
26167 (init_coding_once): Don't call setup_coding_system here.
26168
26169 * dispextern.h (set_scroll_region, turn_off_insert)
26170 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26171 (tty_clear_end_of_line, tty_setup_colors)
26172 (delete_tty, updating_frame)
26173 (produce_special_glyphs, produce_glyphs, write_glyphs)
26174 (insert_glyphs): Remove.
26175 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26176 (tty_turn_off_highlight, get_tty_size): Add declaration.
26177 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26178
26179 * frame.h (enum output_method): Add output_initial.
26180 (struct x_output): Delete.
26181 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26182 Access foreground_pixel and background_pixel directly from the frame.
26183 (tty_display): Delete.
26184 (struct frame): Add buried_buffer_list, foreground_pixel,
26185 background_pixel and terminal. Delete kboard.
26186 (union output_data): Add tty.
26187 (FRAME_KBOARD): Get the kboard from the terminal.
26188 (FRAME_INITIAL_P): New macro.
26189 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26190 (Qterm_environment_variable, Qdisplay_environment_variable)
26191 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26192 New declarations.
26193
26194 * termchar.h (tty_output, tty_display_info): New structures.
26195 (tty_list): Declare.
26196 (FRAME_TTY, CURTTY): New macros.
26197 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26198 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26199 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26200 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26201
26202 * callproc.c: Include frame.h and termhooks.h, for terminal
26203 parameters.
26204 (add_env): New function.
26205 (child_setup): Use it.
26206 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26207 (getenv_internal): Fix get_terminal_param call.
26208 (Fgetenv_internal, egetenv): Update doc.
26209 (syms_of_callproc): Initialize Vprocess_environment to nil.
26210 Register and initialize them. Remove obsolete defvars. Update doc
26211 strings.
26212 (child_setup): Handle Vlocal_environment_variables.
26213 (getenv_internal): Add terminal parameter.
26214 Handle Vlocal_environment_variables.
26215 (Fgetenv_internal): Add terminal parameter.
26216 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26217 environment in a frame (not terminal) parameter. Update doc strings.
26218 (set_initial_environment): Rename from set_global_environment.
26219 Store Emacs environment in initial frame parameter.
26220
26221 * xdisp.c (redisplay_internal): Update references to
26222 `previous_terminal_frame'.
26223 (display_mode_line, Fformat_mode_line): Replace calls to
26224 `push_frame_kboard' with `push_kboard'.
26225 (get_glyph_string_clip_rects): Add extra parentheses and
26226 braces to prevent compiler warnings.
26227 (calc_pixel_width_or_height): Add xassert to check that the
26228 frame is alive. Don't call `lookup_image' on a termcap frame.
26229 (message2_nolog, message3_nolog, redisplay_internal)
26230 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26231 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26232 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26233 (Fx_display_pixel_width, Fx_display_pixel_height)
26234 (Fx_display_planes, Fx_display_color_cells)
26235 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26236 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26237 (Fx_display_backing_store, Fx_display_visual_class)
26238 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26239 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26240
26241 * xfns.c (x_set_foreground_color x_set_background_color)
26242 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26243 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26244 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26245 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26246 terminal that is being deleted.
26247 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26248 frame parameter, and make sure it overrides any user-supplied setting.
26249 (Fx_close_connection, Fx_synchronize): Unify argument names with
26250 the rest of the DEFUNs.
26251
26252 * dispnew.c (Fsend_string_to_terminal): Update call to
26253 `get_tty_terminal'.
26254 (Fredraw_frame, Fsend_string_to_terminal)
26255 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26256 FRAME_TERMCAP_P and FRAME_TTY.
26257 (window_change_signal): Don't believe width/height values that are
26258 impossibly small.
26259 (Vinitial_window_system): Rename from Vwindow_system.
26260 (termscript, Wcm, rif): Delete.
26261
26262 * termhooks.h (struct terminal): New struct containing the
26263 previously global text display hooks and new members NAME,
26264 DELETED and PARAM_ALIST.
26265 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26266 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26267 (FRAME_RIF): New macros.
26268 (get_terminal_param, get_device): New declarations.
26269 (termscript): Delete declaration.
26270
26271 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26272 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26273 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26274 FRAME_FOREGROUND_PIXEL.
26275 (x_fully_uncatch_errors): Disable definition.
26276 (x_scroll_bar_expose): Fix reference to foreground pixel.
26277 (XTread_socket): Disable loop on all X displays.
26278 (x_delete_terminal): Don't set terminal->deleted and let
26279 delete_terminal delete the frames on the terminal.
26280 (x_delete_display): Doc update to reflect changes in
26281 delete_terminal.
26282 (x_display_info) <terminal>: Move member earlier in the struct.
26283 (deleting_tty): Remove old variable.
26284 (Fsuspend_tty): Call clear_tty_hooks.
26285 (Fresume_tty, init_tty): Call set_tty_hooks.
26286 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26287 errors on X frames.
26288 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26289 (handle_one_xevent): Initialize `f' to NULL.
26290 (x_delete_terminal, x_create_terminal): New functions.
26291 (XTset_terminal_modes, XTreset_terminal_modes)
26292 (XTread_socket, x_connection_closed, x_term_init)
26293 (x_term_init, x_delete_display): Add terminal parameter.
26294 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26295 X connections.
26296
26297 * frame.c: Include termchar.h.
26298 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26299 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26300 (Qdisplay_environment_variable): New vars.
26301 (Fframep): Deal with output_initial.
26302 (Fframe-live-p): Doc fix.
26303 (Fwindow-system): New function.
26304 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26305 (make_terminal_frame): Don't create frames on a terminal that is
26306 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26307 (store_frame_param): Check for found_for_frame before calling XFRAME.
26308 (Fmake_terminal_frame): Handle NULL tty names correctly.
26309 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26310 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26311 frames to refer to a deleted frame in their 'environment parameter.
26312 (Fframe_with_environment): New function.
26313 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26314 (get_future_frame_param): New function.
26315 (Fmake_terminal_frame): Use it.
26316 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26317
26318 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26319 * sysdep.c (reset_sys_modes): Update for renames.
26320
26321 * keyboard.c (tty_read_avail_input): New function.
26322 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26323 (syms_of_keyboard): Defsubr them.
26324 (Fset_input_meta_mode, Fset_quit_char): New functions.
26325 (Fset_input_mode): Split to above functions.
26326 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26327 parameter. Use it in call to `read_char'.
26328 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26329 Set wrong_kboard_jmpbuf correctly in recursive calls.
26330 Use current_kboard to access Vkeyboard_translate_table.
26331 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26332 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26333 Update longjmp invocations. Remember the original current_kboard,
26334 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26335 changes it. Comment out unnecessary calls to
26336 `record_single_kboard_state' and `any_kboard_state'.
26337 Update recursive calls.
26338 (wrong_kboard_jmpbuf): Remove global variable.
26339 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26340 Handle deleted interrupted_kboards correctly; that is a legal
26341 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26342 and read_char calls. Abort if interrupted_kboard died in read_char.
26343 (any_kboard_state, single_kboard_state)
26344 (push_frame_kboard): Remove function.
26345 (pop_kboard): Switch out of single_kboard mode if the kboard has
26346 been deleted. Remove unused variable. Help debugging by not
26347 changing current_kboard unnecessarily. Set current_kboard to the
26348 kboard of the selected frame when the stored kboard object has
26349 been deleted before pop_kboard.
26350 (temporarily_switch_to_single_kboard): Change first parameter to a
26351 frame pointer. Throw an error when caller wants to change kboards
26352 while in single_kboard mode. Don't push_kboard if we weren't in
26353 single kboard state. Don't pop_kboard if we popped into any
26354 kboard state.
26355 (restore_kboard_configuration): Abort if pop_kboard changed the
26356 kboard in single_kboard mode. Call pop_kboard only after setting
26357 up single_kboard mode.
26358 (Frecursive_edit): Switch to single_kboard mode only in nested
26359 command loops.
26360 (cmd_error, command_loop, command_loop_1, timer_check):
26361 Comment out unnecessary call to `any_kboard_state' and
26362 `record_single_kboard_state'.
26363 (delete_kboard): Exit single_kboard mode if we have just deleted
26364 that kboard. Use FRAME_KBOARD.
26365 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26366 `fatal_error_signal'.
26367 (record_single_kboard_state): Don't push_kboard if we weren't in
26368 single kboard state. Don't pop_kboard if we popped into any
26369 kboard state.
26370 (push_frame_kboard): Rename to push_kboard.
26371 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26372 (read_avail_input): Read input from all terminals.
26373 (mark_kboards): Also mark Vkeyboard_translate_table.
26374 (kbd_buffer_store_event_hold): Simplify condition.
26375 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26376 (Vkeyboard_translate_table): Move to struct kboard.
26377 (init_kboard): Initialize Vkeyboard_translate_table.
26378 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26379 Vkeyboard_translate_table. Update doc strings. Update docs of
26380 local-function-key-map and function-key-map.
26381
26382 * terminal.c: New file.
26383
26384 * term.c: Include errno.h.
26385 (Vring_bell_function, device_list, initial_device)
26386 (next_device_id, ring_bell, update_begin, update_end)
26387 (set_terminal_window, cursor_to, raw_cursor_to)
26388 (clear_to_end, clear_frame, clear_end_of_line)
26389 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26390 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26391 (syms_of_term): Move their initialization to terminal.c.
26392 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26393 (Ftty_display_color_cells)
26394 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26395 (clear_tty_hooks, set_tty_hooks)
26396 (init_tty, maybe_fatal): New functions.
26397 (Ftty_type): Return nil if terminal is not on a tty instead of
26398 throwing an error. Doc update.
26399 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26400 Doc update. Initialize new subrs and variables.
26401 (delete_tty): Use terminal->deleted.
26402 (tty_set_terminal_modes): Rename from set_terminal_modes.
26403 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26404 (set_scroll_region): Rename to `tty_set_scroll_region'.
26405 (turn_on_insert): Rename to `tty_turn_on_insert'.
26406 (turn_off_insert): Rename to `tty_turn_off_insert'.
26407 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26408 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26409 (toggle_highligh): Rename to `tty_toggle_highlight'.
26410 (background_highlight): Rename to `tty_background_highlight'.
26411 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26412 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26413 (tty_set_scroll_region, tty_background_highlight)
26414 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26415 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26416 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26417 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26418 Add static modifier.
26419 (tty_reset_terminal_modes, tty_set_terminal_window)
26420 (tty_set_scroll_region, tty_background_highlight)
26421 (tty_highlight_if_desired, tty_cursor_to)
26422 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26423 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26424 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26425 renames.
26426
264272007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26428
26429 * keyboard.c: Qrtl is new.
26430 (parse_tool_bar_item): Handle :rtl keyword.
26431 (syms_of_keyboard): Intern :rtl keyword.
26432
26433 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26434
26435 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26436 so no Lisp code is executed.
26437 (file_for_image, find_rtl_image): New functions.
26438 (xg_get_image_for_pixmap): Use file_for_image.
26439 (update_frame_tool_bar): If direction is RTL, use RTL image if
26440 defined. Use Gtk stock images if defined.
26441
264422007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26443
26444 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26445 for nonexistent or zero-width glyph in composition glyph.
26446
264472007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26448
26449 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26450
26451 * xdisp.c (Finvisible_p): New function.
26452 (syms_of_xdisp): defsubr it.
26453
264542007-08-24 Juanma Barranquero <lekktu@gmail.com>
26455
26456 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26457 Doc fixes.
26458
264592007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26460
26461 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26462
264632007-08-24 Martin Rudalics <rudalics@gmx.at>
26464
26465 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26466 whether decoding has modified buffer contents.
26467
264682007-08-24 Jason Rumney <jasonr@gnu.org>
26469
26470 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26471 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26472 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26473 (init_svg_functions) [HAVE_NTGUI]: New function.
26474 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26475 (svg_load_image): Use them.
26476 (svg_load_image) [HAVE_NTGUI]: Implement background.
26477
264782007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26479
26480 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26481 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26482 (LIBX): Remove @RSVG_LIBS@.
26483 (LIBES): Add $(RSVG_LIBS).
26484
26485 * image.c (svg_load_image): Blend with specified background if exists.
26486 Use IMAGE_BACKGROUND. Add Mac OS Support.
26487
26488 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26489 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26490 Remove macros.
26491 [MAC_OSX] (socket_callback): Do nothing.
26492 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26493 ReceiveNextEvent.
26494 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26495 socket_callback.
26496 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26497
264982007-08-22 Glenn Morris <rgm@gnu.org>
26499
26500 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26501
265022007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26503
26504 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26505
26506 * image.c: Add support for SVG images. Some additional comments
26507 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26508 (svg_image_p): New function to test for SVG image.
26509 (svg_load): New function to load SVG image.
26510 (svg_load_image): New function, helper for svg_load.
26511 (Qsvg): New Lisp_object.
26512 (svg_keyword_index): New enum.
26513 (svg_format): New static `image_keyword' struct.
26514 (svg_type): New static `image_type' struct.
26515 (librsvg/rsvg.h): Include it.
26516
265172007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26518
26519 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26520
265212007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26522
26523 * lread.c (Qold_style_backquotes): New var.
26524 (syms_of_lread): Init and staticpro it.
26525 (load_warn_old_style_backquotes): New fun.
26526 (Fload): Use them to warn about old style backquotes.
26527 (end_of_file_error, Fload): Remove unused vars.
26528
26529 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26530
26531 * lread.c (Vold_style_backquotes): New var.
26532 (syms_of_lread): Init and export it to Elisp.
26533 (read1): Set it when we find an old-style (back)quote.
26534
265352007-08-22 Jason Rumney <jasonr@gnu.org>
26536
26537 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26538
265392007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26540
26541 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26542
265432007-08-19 Richard Stallman <rms@gnu.org>
26544
26545 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26546
265472007-08-19 Andreas Schwab <schwab@suse.de>
26548
26549 * alloc.c (pure): Round PURESIZE up.
26550
265512007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26552
26553 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26554 active frame.
26555
265562007-08-16 Richard Stallman <rms@gnu.org>
26557
26558 * eval.c (Fcommandp): Add parens to clarify.
26559
26560 * minibuf.c (Fall_completions): Use enum for type of table.
26561
26562 * emacs.c (USAGE2): Improve text.
26563
265642007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26565
26566 * term.c (tty_default_color_capabilities): Declare static
26567 variables in file scope, to avoid HPUX compiler problem.
26568
265692007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26570
26571 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26572 to gtk_toolbar_insert.
26573
265742007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26575
26576 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26577
26578 * insdel.c (reset_var_on_error): New fun.
26579 (signal_before_change, signal_after_change):
26580 Use it to reset (after|before)-change-functions to nil in case of error.
26581 Bind inhibit-modification-hooks to t.
26582 Don't bind (after|before)-change-functions to nil while they run.
26583
265842007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26585
26586 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26587 filling pixmap with stippled background.
26588
265892007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26590
26591 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26592 Don't use invisible frame as parent window for repositioning.
26593
265942007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26595
26596 * print.c (new_backquote_output): Rename from old_backquote_output.
26597 (print): Inverse its logic (according to its name) so as to match the
26598 behavior of new_backquote_flag in lread.c.
26599
266002007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26601
26602 * gmalloc.c (posix_memalign): New function.
26603
26604 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26605 ActivateControl/DeactivateControl here.
26606 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26607 frame-notice-user-settings is non-nil.
26608 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26609 for kEventParamFMFontStyle.
26610 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26611 mac_pass_command_to_system and mac_pass_control_to_system here.
26612 (XTread_socket): Call ActivateControl/DeactivateControl here.
26613 (XTread_socket) [TARGET_API_MAC_CARBON]:
26614 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26615 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26616 for window repositioning.
26617
266182007-08-08 Glenn Morris <rgm@gnu.org>
26619
26620 * Replace `iff' in doc-strings and comments.
26621
266222007-08-07 Chong Yidong <cyd@stupidchicken.com>
26623
26624 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26625
266262007-08-07 Martin Rudalics <rudalics@gmx.at>
26627
26628 * fileio.c (Finsert_file_contents): Run format-decode and
26629 after_insert_file_functions on entire buffer when REPLACE is
26630 non-nil and inhibit modification_hooks and point_motion_hooks.
26631 For consistency, run after_insert_file_functions iff something
26632 got inserted. Move signal_after_change and update_compositions
26633 after code running after_insert_file_functions. Make sure that
26634 undo_list doesn't record intermediate steps of the decoding process.
26635
266362007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26637
26638 * emacs.c (main)
26639 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26640 Call malloc_enable_thread on interactive startup.
26641
26642 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26643 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26644 [USE_PTHREAD]: Conditionalize with it.
26645 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26646 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26647 New functions.
26648
266492007-08-06 Chong Yidong <cyd@stupidchicken.com>
26650
26651 * xdisp.c (redisplay_window): When restoring original buffer
26652 position, make sure it is still valid.
26653
26654 * image.c (png_load): Ignore png-supplied background color.
26655
266562007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26657
26658 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26659 Use kCFAbsoluteTimeIntervalSince1970.
26660
26661 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26662 New variable.
26663 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26664 event loop should be quit.
26665 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26666 Quit dialog event loop if quit_dialog_event_loop is set.
26667
26668 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26669 (Selection): New typedef. Use instead of ScrapRef.
26670 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26671 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26672 (mac_clear_selection): Rename from clear_scrap.
26673 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26674 scrap_has_target_type. All uses changed.
26675 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26676 (mac_selection_has_target_p): New functions.
26677 (mac_put_selection_value): Rename from put_scrap_string.
26678 (mac_get_selection_value): Rename from get_scrap_string.
26679 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26680 (put_scrap_private_timestamp, scrap_has_target_type)
26681 (get_scrap_private_timestamp): Remove functions.
26682 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26683 (x_own_selection, x_get_local_selection):
26684 Use mac_valid_selection_value_p.
26685 (x_own_selection): Don't use put_scrap_private_timestamp.
26686 Record OWNERSHIP-INFO into Vselection_alist instead.
26687 (x_get_local_selection): Don't check type if request is local.
26688 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26689 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26690
266912007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26692
26693 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26694 add comment explaining why.
26695
266962007-08-03 Richard Stallman <rms@gnu.org>
26697
26698 * fileio.c (Fvisited_file_modtime): Use make_time.
26699
267002007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26701
26702 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26703 build.
26704
267052007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26706
26707 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26708
267092007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26710
26711 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26712
267132007-07-30 Richard Stallman <rms@gnu.org>
26714
26715 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26716
267172007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26718
26719 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26720
267212007-07-28 Nick Roberts <nickrob@snap.net.nz>
26722
26723 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26724 remote default-directory.
26725
26726 * buffer.c (mode-line-format): Update doc string.
26727
267282007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26729
26730 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26731 scroll bar gap.
26732 (x_scroll_bar_create): Set bar->fringe_extended_p.
26733 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26734 on frame edge. Check fringe background extension. Don't clear
26735 extended fringe background area.
26736
26737 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26738 (w32_fill_area): Enclose multiple statements with do ... while (0).
26739
26740 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26741 Extend fringe background to scroll bar gap.
26742 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26743 Set bar->fringe_extended_p.
26744 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26745 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26746 background extension. Don't clear extended fringe background area.
26747
26748 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26749 New member fringe_extended_p.
26750
267512007-07-25 Glenn Morris <rgm@gnu.org>
26752
26753 * Relicense all FSF files to GPLv3 or later.
26754
26755 * COPYING: Switch to GPLv3.
26756
267572007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26758
26759 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26760
26761 * data.c (Finteractive_form): Check for the presence of an
26762 `interactive-form' symbol property more thoroughly.
26763
26764 * data.c (Finteractive_form): Use an `interactive-form' property if
26765 present, analogous to the function-documentation property.
26766
267672007-07-24 Jason Rumney <jasonr@gnu.org>
26768
26769 * w32fns.c (x_real_positions): Get real position from OS instead of
26770 calculating it.
26771
267722007-07-23 Jason Rumney <jasonr@gnu.org>
26773
26774 * filelock.c (current_lock_owner): Allow for @ sign in username.
26775
267762007-07-22 Nick Roberts <nickrob@snap.net.nz>
26777
26778 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26779 remote default-directory.
26780
26781 * buffer.c (mode-line-format): Describe above case in doc string.
26782
267832007-07-20 Eli Zaretskii <eliz@gnu.org>
26784
26785 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26786 Define if not defined.
26787
267882007-07-18 Jason Rumney <jasonr@gnu.org>
26789
26790 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26791
267922007-07-18 Richard Stallman <rms@gnu.org>
26793
26794 * data.c (Fsetq_default): Doc fix.
26795
26796 * eval.c (Fsetq): Doc fix.
26797
267982007-07-18 Juanma Barranquero <lekktu@gmail.com>
26799
26800 * coding.c (Ffind_operation_coding_system):
26801 * eval.c (For, Fand): Doc fixes.
26802 Reported by Johan Bockgård.
26803
268042007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26805
26806 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26807
26808 * xterm.h: Declare x_ewmh_activate_frame.
26809
26810 * xterm.c (x_ewmh_activate_frame): New function.
26811 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26812
268132007-07-17 Martin Rudalics <rudalics@gmx.at>
26814
26815 * window.c (Fdisplay_buffer): If largest or LRU window is the
26816 only window, split it even if it is not eligible for splitting.
26817 This restores the original behavior broken by the 2007-07-15
26818 change.
26819
268202007-07-17 Glenn Morris <rgm@gnu.org>
26821
26822 * abbrev.c (abbrev_check_chars): New function.
26823 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26824 Call abbrev_check_chars to check abbrev characters are word
26825 constituents. Doc fix.
26826
268272007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26828
26829 * process.c (Fstart_process, Fmake_network_process)
26830 (read_process_output): Fix up last changes.
26831
268322007-07-16 Eli Zaretskii <eliz@gnu.org>
26833
26834 * makefile.w32-in (clean): Don't delete *~.
26835
268362007-07-16 Andreas Schwab <schwab@suse.de>
26837
26838 * window.c (Fdisplay_buffer): Use NILP.
26839 (Fset_window_scroll_bars): Likewise.
26840
268412007-07-15 Martin Rudalics <rudalics@gmx.at>
26842
26843 * window.c (window_min_size_2): New function.
26844 (window_min_size_1, size_window, Fdisplay_buffer)
26845 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26846 windows without mode- or header-lines when window-min-height is
26847 too small.
26848 (size_window): Reset nodelete_p after testing it, following an
26849 earlier note by Kim F. Storm.
26850 (display_buffer): Do not set split_height_threshold to twice the
26851 value of window_min_height to avoid changing the value of a
26852 customizable variable. Rather explicitly check whether the
26853 height of the window that shall be splitted is at least as large
26854 as split_height_threshold.
26855 (Fwindow_full_width_p): New defun.
26856 (syms_of_window): Defsubr it.
26857
26858 * window.h: Add EXFUN for Fwindow_full_width_p.
26859
268602007-07-14 Jason Rumney <jasonr@gnu.org>
26861
26862 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26863
268642007-07-14 Richard Stallman <rms@gnu.org>
26865
26866 * eval.c (maybe_call_debugger): New function.
26867 (find_handler_clause): Use maybe_call_debugger.
26868 Call it when the handler says `debug'.
26869 Eliminate DEBUGGER_VALUE_PTR.
26870 (Fsignal): Eliminate debugger_value.
26871 (Qdebug): New variable.
26872 (syms_of_eval): Initialize it.
26873
268742007-07-14 Juanma Barranquero <lekktu@gmail.com>
26875
26876 * eval.c (Fprogn):
26877 * keyboard.c (Ftrack_mouse):
26878 * print.c (Fwith_output_to_temp_buffer):
26879 * window.c (Fsave_window_excursion): Doc fix.
26880
268812007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26882
26883 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26884
268852007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26886
26887 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26888 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26889 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26890 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26891 Remove unused encoding_carryover.
26892 * process.c: Adjust all functions accordingly.
26893
268942007-07-12 Richard Stallman <rms@gnu.org>
26895
26896 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26897
268982007-07-11 Jason Rumney <jasonr@gnu.org>
26899
26900 * makefile.w32-in (LIBS): Include OLE32.
26901
26902 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26903 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26904
269052007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26906
26907 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26908 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26909 from a Lisp_Object into a bare pointer.
26910 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26911 Adjust the code correspondingly.
26912
26913 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26914
26915 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26916 (term_show_mouse_face): Remove unused var `j'.
26917 (handle_one_term_event): Remove unused vars `i' and `j'.
26918 Don't cast return value of ttyname since it's not necessary.
26919
269202007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26921
26922 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26923 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26924
26925 * fns.c (map_char_table): Use an array of int for `indices' rather than
26926 an array of Lisp_Objects (which are only ever integers anyway).
26927 (Fmap_char_table): Update caller.
26928 * lisp.h: Update prototype.
26929 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26930 * fontset.c (Ffontset_info):
26931 * casetab.c (set_case_table): Update callers.
26932
26933 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26934
26935 * keymap.c (struct accessible_keymaps_data)
26936 (struct where_is_internal_data): New structures.
26937 (accessible_keymaps_1, where_is_internal_1): Use them to change
26938 interface to adhere to the one used by map_keymap.
26939 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26940 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26941
26942 * keymap.h (map_keymap_function_t): More informative prototype.
26943
269442007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26945
26946 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26947 (looking_at_1): Don't change search_regs and last_thing_searched
26948 if `inhibit-changing-match-data' is non-nil.
26949 (string_match_1, search_buffer, set_search_regs): Likewise.
26950 (syms_of_search): Add Lisp level definition for
26951 `inhibit-changing-match-data' and set it to nil.
26952 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26953 start and end of the match, instead of using values in search_regs.
26954
269552007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26956
26957 * minibuf.c (Fcompleting_read): New value `confirm-only'
26958 for `require-match'.
26959
269602007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26961
26962 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26963 part of the 2007-06-27 change to syms_of_fileio.
26964
269652007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26966
26967 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26968 Check WINDOWP before using XWINDOW. Consolidate return statements.
26969
269702007-06-27 Richard Stallman <rms@gnu.org>
26971
26972 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26973
269742007-06-27 Juanma Barranquero <lekktu@gmail.com>
26975
26976 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26977
269782007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26979
26980 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26981 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26982 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26983 (_free_internal, memalign): Use them.
26984 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26985 Initialize to PTHREAD_MUTEX_INITIALIZER.
26986 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26987 (morecore_nolock): Rename from morecore. All uses changed.
26988 Use only nolock versions of internal allocation functions.
26989 (_malloc_internal_nolock, _realloc_internal_nolock)
26990 (_free_internal_nolock): New functions created from
26991 _malloc_internal, _realloc_internal, and _free_internal.
26992 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26993 Copy hook value to automatic variable before its use.
26994 (memalign): Copy hook value to automatic variable before its use.
26995
269962007-06-26 Kenichi Handa <handa@m17n.org>
26997
26998 * coding.c (Ffind_operation_coding_system): Docstring improved.
26999 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27000
270012007-06-25 David Kastrup <dak@gnu.org>
27002
27003 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27004 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27005 cater for additional parameter.
27006
27007 * keymap.h: Adjust number of parameters to `current-active-maps'.
27008
27009 * doc.c (Fsubstitute_command_keys): Adjust call of
27010 `current-active-maps'.
27011
270122007-06-25 David Kastrup <dak@gnu.org>
27013
27014 * callint.c (Fcall_interactively): Make the parsing of interactive
27015 specs somewhat more readable.
27016
270172007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27018
27019 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27020 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27021 if extended background has already been filled.
27022
270232007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27024
27025 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27026 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27027
27028 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27029 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27030 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27031 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27032 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27033 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27034 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27035 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27036 Run timers during dialog popup.
27037 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27038
270392007-06-21 Jason Rumney <jasonr@gnu.org>
27040
27041 * image.c (convert_mono_to_color_image): Swap fore and background.
27042
270432007-06-20 Jason Rumney <jasonr@gnu.org>
27044
27045 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27046 (w32_free_bdf_font): Unmap memory not handle.
27047
270482007-06-20 Sam Steingold <sds@gnu.org>
27049
27050 * gmalloc.c (__morecore): Fix the declaration to comply with the
27051 definition.
27052
270532007-06-20 Juanma Barranquero <lekktu@gmail.com>
27054
27055 * w32term.c (w32_delete_display): Remove leftover declaration.
27056 (w32_define_cursor, w32_initialize): Make static.
27057
27058 * w32.c (_wsa_errlist): Fix typo in error message.
27059 (init_environment): Ignore any environment variable from the
27060 registry having a null value.
27061
270622007-06-20 Glenn Morris <rgm@gnu.org>
27063
27064 * Makefile.in (LIBGIF): Default to -lgif.
27065
270662007-06-17 Jason Rumney <jasonr@gnu.org>
27067
27068 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27069 unicode strings.
27070
270712007-06-16 Juanma Barranquero <lekktu@gmail.com>
27072
27073 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27074 Fix typo in docstring.
27075
270762007-06-16 Eli Zaretskii <eliz@gnu.org>
27077
27078 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27079 and their keybindings.
27080
270812007-06-15 Chong Yidong <cyd@stupidchicken.com>
27082
27083 * composite.c (update_compositions): Fix last fix.
27084
270852007-06-14 Jason Rumney <jasonr@gnu.org>
27086
27087 * w32.c (get_process_times_fn): New function pointer.
27088 (globals_of_w32): Intialize it if present in kernel32.dll.
27089 (w32_get_internal_run_time): New function.
27090
27091 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27092
270932007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27094
27095 * composite.c (update_compositions): Check the validness of
27096 compositions.
27097
270982007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27099
27100 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27101 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27102
27103 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27104 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27105
27106 * macgui.h (USE_MAC_TOOLBAR): New define.
27107
27108 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27109 Return immediately unless popup is activated.
27110
27111 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27112 background to scroll bar gap.
27113 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27114 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27115 scroll bars on frame edge. Check fringe background extension.
27116 Don't clear extended fringe background area.
27117 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27118 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27119 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27120 [USE_MAC_TOOLBAR]: New macros.
27121 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27122 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27123 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27124 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27125 [USE_MAC_TOOLBAR]: New functions.
27126 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27127 manually if previous repositioning has failed.
27128 (mac_handle_keyboard_event): Use precomputed event kind.
27129 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27130 as tool bar item click. Handle mouse movement over tool bar items.
27131
27132 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27133 toolbar_win_gravity.
27134 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27135 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27136 Add externs.
27137
27138 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27139 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27140
271412007-06-14 Chong Yidong <cyd@stupidchicken.com>
27142
27143 * image.c (search_image_cache): Remove unused variable.
27144
271452007-06-13 Chong Yidong <cyd@stupidchicken.com>
27146
27147 * xfns.c, xmenu.c: Link to xaw3d if available.
27148
271492007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27150
27151 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27152 frame_foreground and frame_background.
27153
27154 * image.c (lookup_image): Save frame foreground and background colors.
27155 (search_image_cache): Check if saved and current frame colors match.
27156
271572007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27158
27159 * regex.c (regex_compile): Remove the `regnum' counter.
27160 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27161
271622007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27163
27164 * term.c: Include intervals.h to declare Fget_text_property.
27165
271662007-06-10 Jason Rumney <jasonr@gnu.org>
27167
27168 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27169
271702007-06-08 Juanma Barranquero <lekktu@gmail.com>
27171
27172 * callint.c (Fcall_interactively):
27173 * editfns.c (Fdelete_and_extract_region):
27174 * fileio.c (Fread_file_name):
27175 * fns.c (Fmapconcat):
27176 * keyboard.c (cmd_error_internal):
27177 * keymap.c (Fkey_description):
27178 * lread.c (openp):
27179 * minibuf.c (read_minibuf):
27180 * search.c (wordify):
27181 * sunfns.c (sel_read):
27182 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27183 * xfns.c (x_default_scroll_bar_color_parameter):
27184 * xmenu.c (menu_help_callback):
27185 * xselect.c (Fx_get_atom_name):
27186 * xterm.c (x_term_init): Use empty_unibyte_string.
27187
271882007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27189
27190 * alloc.c (init_strings): Initialize canonical empty strings.
27191 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27192 canonical empty string when the requested size is 0.
27193
27194 * emacs.c (empty_unibyte_string): Rename from empty_string.
27195 (empty_multibyte_string): New canonical empty string.
27196 (syms_of_emacs): Don't initialize empty_string.
27197
27198 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27199 string, if appropriate.
27200 (empty_unibyte_string, empty_multibyte_string): New externs.
27201 (empty_string): Remove extern.
27202
27203 * lread.c (syms_of_lread): Use empty_unibyte_string.
27204
272052007-06-07 Jason Rumney <jasonr@gnu.org>
27206
27207 * s/ms-w32.h: Don't define HAVE_TZNAME.
27208
27209 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27210
272112007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27212
27213 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27214
27215 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27216 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27217
27218 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27219 Don't call next handler.
27220 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27221 Remove argument. Install handler to application.
27222 (set_frame_menubar): Don't change deep_p.
27223 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27224 FRAME_OUTER_TO_INNER_DIFF_Y.
27225 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27226 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27227 [HAVE_DIALOGS]: New macros.
27228 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27229 Use them.
27230 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27231
27232 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27233 init_service_handler. All callers changed. Return OSStatus value.
27234
27235 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27236 All callers changed so as not to call SetPortWindowPort.
27237 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27238 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27239 mac_draw_string_common.
27240 (mac_draw_image_string_qd): Likewise.
27241 (mac_draw_string_common): Use them. Add INLINE.
27242 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27243 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27244 GetGlobalMouse.
27245 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27246 and FRAME_OUTER_TO_INNER_DIFF_Y.
27247 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27248 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27249 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27250 repositioning window to mac_handle_window_event.
27251 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27252 saving window location to mac_handle_window_event
27253 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27254 (install_menu_target_item_handler): Remove argument in extern.
27255 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27256 Also accept command events.
27257 (do_keystroke): New function created from XTread_socket.
27258 (init_command_handler): Remove functions.
27259 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27260 and save window location by kEventWindowShowing and kEventWindowHiding
27261 handlers here. Don't call next handler for window state change and
27262 focus events.
27263 (mac_handle_application_event, mac_handle_keyboard_event)
27264 [TARGET_API_MAC_CARBON]: New functions.
27265 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27266 kEventWindowShowing and kEventWindowHiding events. Move installation
27267 of mouse, font, text input and menu target item handlers to
27268 install_application_handler.
27269 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27270 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27271 New function.
27272 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27273 Register it.
27274 (XTread_socket) [TARGET_API_MAC_CARBON]:
27275 Consolidate SendEventToEventTarget calls.
27276 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27277 Move application activation handler to mac_handle_application_event.
27278 Move keyboard handler to mac_handle_keyboard_event.
27279 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27280 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27281 init_command_handler. Call install_application_handler.
27282
27283 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27284 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27285
272862007-06-07 Glenn Morris <rgm@gnu.org>
27287
27288 * emacs.c (main): Use `emacs-copyright' in --version output.
27289
272902007-06-06 Chong Yidong <cyd@stupidchicken.com>
27291
27292 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27293
272942007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27295
27296 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27297
27298 * macgui.h: Replace WindowPtr with WindowRef.
27299
27300 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27301 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27302 Replace ControlHandle with ControlRef.
27303 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27304
27305 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27306 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27307 Replace ControlHandle with ControlRef.
27308 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27309 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27310
27311 * macterm.h (struct scroll_bar): Rename member control_handle_low
27312 and control_handle_high to control_ref_low and control_ref_high.
27313 All uses changed.
27314 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27315 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27316 respectively. All uses changed.
27317 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27318 (install_window_handler, remove_window_handler): Replace WindowPtr
27319 with WindowRef in externs.
27320
273212007-06-05 Juanma Barranquero <lekktu@gmail.com>
27322
27323 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27324
273252007-06-03 Nick Roberts <nickrob@snap.net.nz>
27326
27327 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27328
27329 * frame.c (Fmouse_position, Fmouse_pixel_position):
27330 Condition on HAVE_GPM too.
27331
27332 * term.c (term_mouse_highlight): Remove unused variables.
27333 (Fterm_open_connection): Set gpm_zerobased to 1.
27334 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27335 Use zero based co-ordinates.
27336 (handle_one_term_event): Report a drag as mouse movement too.
27337
27338 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27339
273402007-06-03 Chong Yidong <cyd@stupidchicken.com>
27341
27342 * image.c (search_image_cache): New function. Require background
27343 color match if background color is unspecified in the image spec.
27344 (uncache_image, lookup_image): Use it.
27345
273462007-06-01 Juanma Barranquero <lekktu@gmail.com>
27347
27348 * window.c (Fshrink_window): Reflow docstring.
27349
273502007-06-02 Chong Yidong <cyd@stupidchicken.com>
27351
27352 * Version 22.1 released.
27353
273542007-06-01 Richard Stallman <rms@gnu.org>
27355
27356 * xfns.c (x_encode_text): Add GCPRO.
27357
273582007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27359
27360 * xfns.c (x_set_name_internal): Save encoded name before
27361 x_encode_text in case string data is relocated.
27362
273632007-05-31 Richard Stallman <rms@gnu.org>
27364
27365 * buffer.c (syms_of_buffer): Doc fix.
27366
273672007-05-30 Nick Roberts <nickrob@snap.net.nz>
27368
27369 * sysdep.c (init_sys_modes): Add rather than replace with
27370 O_NONBLOCK.
27371
27372 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27373 term_mouse_moveto.
27374
27375 * termhooks.h (term_mouse_moveto): New extern.
27376
27377 * term.c (mouse_face_window): Rename...
27378 (Qmouse_face_window): ...to this.
27379 (term_show_mouse_face, term_clear_mouse_face)
27380 (term_mouse_highlight): Use Qmouse_face_window.
27381 (term_mouse_moveto): New function.
27382 (term_mouse_position): Make it work.
27383 (syms_of_term): Uncomment assignment to mouse_position_hook.
27384 Staticpro Qmouse_face_window.
27385
273862007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27387
27388 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27389 around current_column call.
27390
273912007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27392
27393 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27394 * xdisp.c (next_element_from_buffer):
27395 * window.c (delete_window):
27396 * term.c (term_mouse_highlight):
27397 * msdos.c (getdefdir):
27398 * macterm.c (mac_create_bitmap_from_bitmap_data)
27399 (init_font_name_table):
27400 * fns.c (Fsxhash):
27401 * data.c (Fmake_local_variable):
27402 * ccl.c (ccl_driver): Likewise.
27403
274042007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27405
27406 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27407 Call mac_wakeup_from_rne on window size change.
27408
274092007-05-25 Chong Yidong <cyd@stupidchicken.com>
27410
27411 * image.c (uncache_image): Fix typo.
27412
274132007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27414
27415 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27416
274172007-05-22 Richard Stallman <rms@gnu.org>
27418
27419 * xterm.c (x_connection_closed): Remove NO_RETURN.
27420
274212007-05-22 Martin Rudalics <rudalics@gmx.at>
27422
27423 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27424
274252007-05-21 Chong Yidong <cyd@stupidchicken.com>
27426
27427 * image.c (uncache_image): New function.
27428 (Fimage_refresh): New function.
27429
274302007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27431
27432 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27433
274342007-05-20 Nick Roberts <nickrob@snap.net.nz>
27435
27436 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27437 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27438
274392007-05-20 Nick Roberts <nickrob@snap.net.nz>
27440
27441 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27442 conditional on [HAVE_GPM_H].
27443
274442007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27445
27446 * syntax.c (skip_chars): Update syntax-table only after we checked that
27447 the new location is valid.
27448
274492007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27450
27451 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27452 mac_get_window_bounds.
27453
274542007-05-20 Nick Roberts <nickrob@snap.net.nz>
27455
27456 * Makefile.in (LIBGPM): Allow it to be set from configure.
27457 If set then link Emacs with it.
27458
27459 * config.in: Regenerate.
27460
27461 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27462 New externs.
27463
27464 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27465 Include gpm.h.
27466 (handle_one_term_event, term_gpm): New externs.
27467
27468 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27469 and allow it to be interrupted by SIGIO.
27470
27471 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27472 (wait_reading_process_output): Wait on gpm_fd too.
27473 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27474 (add_gpm_wait_descriptor_called_flag): New variable.
27475 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27476
27477 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27478 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27479 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27480 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27481 (make_lispy_event): Add case GPM_CLICK_EVENT.
27482 (read_avail_input): Handle mouse input.
27483
27484 * term.c (write_glyphs_with_face): New function.
27485 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27486 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27487 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27488 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27489 (last_mouse_x, last_mouse_y): New variables.
27490 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27491 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27492 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27493 (Fterm_close_connection): New functions.
27494 (term_init): Initialise mouse_face_window.
27495
274962007-05-19 Chong Yidong <cyd@stupidchicken.com>
27497
27498 * xdisp.c (redisplay_window): If first window line is a
27499 continuation line, recompute the new window start instead of
27500 recentering.
27501
275022007-05-18 Glenn Morris <rgm@gnu.org>
27503
27504 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27505 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27506
275072007-05-17 Glenn Morris <rgm@gnu.org>
27508
27509 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27510
275112007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27512
27513 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27514 dead key repeat and up events.
27515
275162007-05-14 Chong Yidong <cyd@stupidchicken.com>
27517
27518 * image.c (pbm_load): Check image size for monochrome pbm.
27519
275202007-05-13 Chong Yidong <cyd@stupidchicken.com>
27521
27522 * xterm.c (XTread_socket): Revert last change.
27523
275242007-05-12 Chong Yidong <cyd@stupidchicken.com>
27525
27526 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27527
27528 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27529
275302007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27531
27532 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27533 mixup (YAILOM).
27534
275352007-05-07 Andreas Schwab <schwab@suse.de>
27536
27537 * keymap.c (Flookup_key): Fix typo in last change.
27538
275392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27540
27541 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27542 mapping for unibyte strings.
27543
275442007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27545
27546 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27547 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27548
275492007-04-29 Richard Stallman <rms@gnu.org>
27550
27551 * insdel.c (replace_range): For undo, record insertion first.
27552
275532007-04-29 Andreas Schwab <schwab@suse.de>
27554
27555 * lisp.h (VECSIZE): Use OFFSETOF.
27556
275572007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27558
27559 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27560 disabled lines.
27561
275622007-04-28 Richard Stallman <rms@gnu.org>
27563
27564 * lread.c (read_escape): In a string, \s is always space.
27565
275662007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27567
27568 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27569
27570 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27571 submenu for menu bar items.
27572
27573See ChangeLog.10 for earlier changes.
27574
27575;; Local Variables:
27576;; coding: utf-8
27577;; add-log-time-zone-rule: t
aac0c6e3
MR
27578;; End:
27579
e3eb1dae 27580 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27581
27582 This file is part of GNU Emacs.
27583
27584 GNU Emacs is free software: you can redistribute it and/or modify
27585 it under the terms of the GNU General Public License as published by
27586 the Free Software Foundation, either version 3 of the License, or
27587 (at your option) any later version.
27588
27589 GNU Emacs is distributed in the hope that it will be useful,
27590 but WITHOUT ANY WARRANTY; without even the implied warranty of
27591 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27592 GNU General Public License for more details.
27593
27594 You should have received a copy of the GNU General Public License
27595 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27596
27597;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40